} else if (graphEvent.getType() == GraphEvent.POST_NODE_REMOVAL) {
Node node = (Node) graphEvent.getData();
fRemovedNodes.add(node);
} else if (graphEvent.getType() == GraphEvent.SUBGRAPH_INSERTION) {
NodeList nl = (NodeList) graphEvent.getData();
for (NodeCursor nc = nl.nodes(); nc.ok(); nc.next()) {
fAddedNodes.add(nc.node());
}
} else if (graphEvent.getType() == GraphEvent.EDGE_CREATION) {
Edge edge = (Edge) graphEvent.getData();
fAddedEdges.add(edge);