* @param name name of the node to remove
*/
public void removeNode(Node node) throws RemoveNodeException {
for (T edge : edgeList) {
if (edge.getStart().equals(node) || edge.getEnd().equals(node)) {
throw new RemoveNodeException("Node has edges");
}
}
nodeList.remove(node);
}