Class VertexCollapseDemo

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class VertexCollapseDemo
    extends JPanel
    A demo that shows how collections of vertices can be collapsed into a single vertex. In this demo, the vertices that are collapsed are those mouse-selected by the user. Any criteria could be used to form the vertex collections to be collapsed, perhaps some common characteristic of those vertex objects.

    Note that the collection types don't use generics in this demo, because the vertices are of two types: String for plain vertices, and Graph<String,Number> for the collapsed vertices.

    Author:
    Tom Nelson
    See Also:
    Serialized Form
    • Constructor Detail

      • VertexCollapseDemo

        public VertexCollapseDemo()
    • Method Detail

      • main

        public static void main​(String[] args)