Retrieves the attributes of the specified node. :param node_id: ID of the node to retrieve. :return: Dictionary of node attributes or None if the node does not exist.
(self, node_id: str)
| 47 | return None |
| 48 | |
| 49 | def get_node(self, node_id: str) -> Optional[Dict]: |
| 50 | """ |
| 51 | Retrieves the attributes of the specified node. |
| 52 | |
| 53 | :param node_id: ID of the node to retrieve. |
| 54 | :return: Dictionary of node attributes or None if the node does not exist. |
| 55 | """ |
| 56 | return self.graph.nodes.get(node_id, None) |
| 57 | |
| 58 | def add_edge(self, from_node_id: str, to_node_id: str): |
| 59 | self.graph.add_edge(from_node_id, to_node_id) |
no outgoing calls
no test coverage detected