public void removeNode(final NodeType node) {
    Preconditions.checkArgument(
        m_nodes.remove(node), String.format("Error: Node '%s' was not part of the graph", node));
    m_edges.removeAll(m_nodeToEdges.get(node));
    m_nodeToEdges.remove(node);
  }
Removes a node from the graph.

@param node The node to remove.
java/zylib/src/main/java/com/google/security/zynamics/zylib/types/graphs/MutableDirectedGraph.java