(self)
| 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 | |
| 1508 | try: |