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

  • 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 Detail

      • TrivialGraph

        public TrivialGraph​(V vertex)