public NeighborCollection(GraphVisualizer graph) { this.graph = graph; graph.addPickedVertexStateChangeListener(this); graph.addEdgeChangeListener(this); }