示例#1
0
 def save_node(self, node: Union[Node, dict]) -> Node:
     node = Node.create(node)
     self.graph.save_node(node)
     return node
示例#2
0
 def save_node(self, node: Node) -> Node:
     node = self.proxy.save_node(node)
     node = Node.create(node) if node else None
     return node
示例#3
0
 def remove_node(self, key: str) -> Node:
     node = self.proxy.remove_node(key)
     node = Node.create(node) if node else None
     return node
示例#4
0
 def get_node(self, key: str) -> Optional[Node]:
     node = self.proxy.get_node(key)
     node = Node.create(node) if node else None
     return node