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

Function _mkG

tests/test_export.py:1123–1128  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

1121
1122
1123def _mkG(n):
1124 import networkx as nx
1125 G = nx.Graph()
1126 for i in range(n):
1127 G.add_node(f"n{i}", label=f"n{i}", community=0)
1128 return G
1129
1130
1131def test_to_json_refuses_shrink(tmp_path):

Calls 1

add_nodeMethod · 0.95

Tested by

no test coverage detected