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

Function _graph

tests/test_labeling.py:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def _graph():
18 G = nx.Graph()
19 # community 0 = ordering, community 1 = payments
20 G.add_node("order_place", label="place_order")
21 G.add_node("order_repo", label="OrderRepository")
22 G.add_node("pay_charge", label="charge_card")
23 G.add_node("pay_stripe", label="StripeClient")
24 communities = {0: ["order_place", "order_repo"], 1: ["pay_charge", "pay_stripe"]}
25 return G, communities
26
27
28def test_label_communities_happy_path(monkeypatch):

Calls 1

add_nodeMethod · 0.95

Tested by

no test coverage detected