MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / graph_for

Function graph_for

tests/test_non_string_node_ids.py:103–107  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

101 or leaving a half-typed endpoint behind.
102 """
103 def graph_for(target):
104 G = build_from_json(
105 {"nodes": [_node("a", "Alpha")], "edges": [_edge("a", target)]}
106 )
107 return sorted(G.nodes), sorted(G.edges)
108
109 assert graph_for(99) == graph_for("99")
110

Calls 3

build_from_jsonFunction · 0.90
_nodeFunction · 0.70
_edgeFunction · 0.70

Tested by

no test coverage detected