def remove_node(self, node: Node) -> None:
"""Remove a node from the graphm and all edges connected to it."""
self.nodes.pop(node.id)
self.edges = [
edge
for edge in self.edges
if edge.source != node.id and edge.target != node.id
]
``` graph is spelled graphm
### Idea or request for content:
```python
def remove_node(self, node: Node) -> None:
"""Remove a node from the **graph** and all edges connected to it."""
self.nodes.pop(node.id)
self.edges = [
edge
for edge in self.edges
if edge.source != node.id and edge.target != node.id
]
URL
https://api.python.langchain.com/en/latest/runnables/langchain_core.runnables.graph.Graph.html
Checklist
Issue with current documentation:
The code of the remove_node in https://github.com/langchain-ai/langchain/blob/master/libs/core/langchain_core/runnables/graph.py is as follow
Should replace graphm with graph