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

Function _two_node_graph

tests/test_export.py:769–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

767# ── Existing-vault safety: graphify must not clobber user notes / .obsidian (#1506) ──
768
769def _two_node_graph():
770 import networkx as nx
771 G = nx.Graph()
772 G.add_node("n1", label="Database", community=0, source_file="app/db.py", type="code")
773 G.add_node("n2", label="Server", community=0, source_file="app/srv.py", type="code")
774 G.add_edge("n1", "n2")
775 return G, {0: ["n1", "n2"]}
776
777
778def test_to_obsidian_preserves_existing_user_notes_and_obsidian_config():

Calls 2

add_nodeMethod · 0.95
add_edgeMethod · 0.95

Tested by

no test coverage detected