MCPcopy Create free account
hub / github.com/CyberPoint/libpgm / list_edges

Function list_edges

utils/bntextutils.py:17–22  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

15import sys
16
17def list_edges(path):
18 _validate(path)
19 with open(path, "r") as f:
20 j = json.load(f)
21 for e in j["E"]:
22 print "%s --> %s" % (e[0], e[1])
23
24def list_nodes(path):
25 _validate(path)

Callers

nothing calls this directly

Calls 2

_validateFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected