MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / readable_list

Function readable_list

python/graphvite/util.py:56–62  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

54def assert_in(candidates, **kwargs):
55
56 def readable_list(iterable):
57 iterable = ["`%s`" % x for x in iterable]
58 s = ", ".join(iterable[:-1])
59 if s:
60 s += " and "
61 s += iterable[-1]
62 return s
63
64 for key, value in kwargs.items():
65 assert value in candidates, \

Callers 1

assert_inFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected