Class TrivialGraph<V,E extends Edge<V>,Ex extends Exception>

java.lang.Object
com.aoapps.hodgepodge.graph.TrivialGraph<V,E,Ex>
Type Parameters:
Ex - An arbitrary exception type that may be thrown
All Implemented Interfaces:
Graph<V,E,Ex>, MultiGraph<V,E,Ex>, SymmetricGraph<V,E,Ex>, SymmetricMultiGraph<V,E,Ex>

public class TrivialGraph<V,E extends Edge<V>,Ex extends Exception> extends Object implements SymmetricGraph<V,E,Ex>
A trivial graph is unmodifiable and has one vertex and no edges.
Author:
AO Industries, Inc.
  • Constructor Details

    • TrivialGraph

      public TrivialGraph(V vertex)
  • Method Details