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

Function _graph

tests/test_query_source_first.py:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def _graph():
25 G = nx.Graph()
26 G.add_node("src", label="validate_username()", source_file="pkg/auth/validators.py", source_location="L10")
27 G.add_node("tst", label="validate_username()", source_file="tests/auth/test_validators.py", source_location="L5")
28 G.add_node("doc", label="validate_username", source_file="docs/auth.md", source_location="L1")
29 G.add_node("cfg", label="username", source_file="pkg/settings.yml", source_location="L1")
30 G.add_node("ext", label="username") # external symbol: no source file
31 G.add_node(
32 "img", label="validate_username()",
33 source_file="fixtures/username_field.png", source_location="L1", file_type="image",
34 )
35 G.add_edge("tst", "src", relation="calls", confidence="EXTRACTED")
36 return G
37
38
39def _nodes_in_order(text: str) -> list[str]:

Calls 2

add_nodeMethod · 0.95
add_edgeMethod · 0.95

Tested by

no test coverage detected