(
self,
vertices: Mapping[str, Union[List[str], None]],
edges: Mapping[str, Union[List[str], None]],
)
| 1388 | |
| 1389 | @apply_docstring(GraphDAGNode.project) |
| 1390 | def project( |
| 1391 | self, |
| 1392 | vertices: Mapping[str, Union[List[str], None]], |
| 1393 | edges: Mapping[str, Union[List[str], None]], |
| 1394 | ) -> Union["Graph", GraphDAGNode]: |
| 1395 | if not self.loaded(): |
| 1396 | raise RuntimeError("The graph is not loaded") |
| 1397 | return self._session._wrapper(self._graph_node.project(vertices, edges)) |
| 1398 | |
| 1399 | def _attach_interactive_instance(self, instance): |
| 1400 | """Store the instance when a new interactive instance is started. |