private void disconnect() { graph.removeGraphListener(graphListener); for (GraphItem item : items()) { graphListener.itemRemoved(graph, item); } }