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

Function _tiny_graph

tests/test_atomic_canvas_export.py:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def _tiny_graph():
15 G = nx.Graph()
16 G.add_node("a", label="Alpha", file_type="code", source_file="a.py")
17 G.add_node("b", label="Beta", file_type="code", source_file="b.py")
18 G.add_edge("a", "b", relation="calls", confidence="EXTRACTED", weight=1.0)
19 return G, {0: ["a", "b"]}
20
21
22def test_to_canvas_uses_atomic_replace(tmp_path, monkeypatch):

Calls 2

add_nodeMethod · 0.95
add_edgeMethod · 0.95

Tested by

no test coverage detected