MCPcopy Create free account
hub / github.com/Integuru-AI/Integuru / get_node

Method get_node

integuru/models/DAGManager.py:49–56  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected