package graph; /** * This interface represents a vertex in a graph. * A vertex must have a name, and must provide a * <b>toString</b> method for printing purposes. * @author tcolburn */ public interface Vertex { /** * Accessor for this vertex's name. * @return A name this vertex */ String getName(); /** * Returns a printed representation of this vertex as a string. * @return A printed representation */ String toString(); }