The GraphPanel class provides a drawing space in which a user may add, move, or delete Edge and Vertex objects in either a SimpleGraph or a SimpleUndirectedGraph. The NetWorKsPanel creates a GraphPanel and then creates a GraphControlPanel which attaches itself to the GraphPanel; however, a GraphPanel can function with or without a GraphControlPanel.
A GraphPanel contains both a SimpleGraph and a SimpleUndirectedGraph. Outside objects dictate which graph is active by invoking the currentGraph() method. Other GraphPanel methods display the current graph, animate movement, handle user interaction via mouse generated events, and support interaction with outside objects. A TrashCan object provides a means for users to delete Edge and Vertex objects.