MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / cpp

Method cpp

easygraph/classes/graph.py:1497–1505  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1495 self.cache = {}
1496
1497 def cpp(self):
1498 G = GraphC()
1499 G.graph.update(self.graph)
1500 for u, attr in self.nodes.items():
1501 G.add_node(u, **attr)
1502 for u, v, attr in self.edges:
1503 G.add_edge(u, v, **attr)
1504 G.generate_linkgraph()
1505 return G
1506
1507
1508try:

Callers 1

testMethod · 0.45

Calls 4

GraphCClass · 0.85
updateMethod · 0.80
add_nodeMethod · 0.45
add_edgeMethod · 0.45

Tested by 1

testMethod · 0.36