Removes a node from this graph. All edges from/to the node will also be removed.
(N node)
| 77 | * All edges from/to the node will also be removed. |
| 78 | */ |
| 79 | public void removeNode(N node) { |
| 80 | nodes.remove(node); |
| 81 | preds.removeAll(node); |
| 82 | succs.removeAll(node); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Removes an edge from this graph. |