Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
import
sys
16
17
def
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
24
def
list_nodes(path):
25
_validate(path)
Callers
nothing calls this directly
Calls
2
_validate
Function · 0.85
load
Method · 0.45
Tested by
no test coverage detected