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

Method cpp

easygraph/classes/directed_graph.py:1190–1198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1188 return G, index_of_node, node_of_index
1189
1190 def cpp(self):
1191 G = DiGraphC()
1192 G.graph.update(self.graph)
1193 for u, attr in self.nodes.items():
1194 G.add_node(u, **attr)
1195 for u, v, attr in self.edges:
1196 G.add_edge(u, v, **attr)
1197 G.generate_linkgraph()
1198 return G
1199
1200
1201try:

Callers

nothing calls this directly

Calls 4

DiGraphCClass · 0.85
updateMethod · 0.80
add_nodeMethod · 0.45
add_edgeMethod · 0.45

Tested by

no test coverage detected