Class SparseUnDiGraph<V,​E extends UndirectedEdge<V>>

  • Type Parameters:
    V - vertex type
    E - undirected edge type
    All Implemented Interfaces:
    Graph<V,​E>, UnDiGraph<V,​E>

    public class SparseUnDiGraph<V,​E extends UndirectedEdge<V>>
    extends SparseGraph<V,​E>
    implements UnDiGraph<V,​E>
    This class implements the sparse undirected graph representation.
    • Constructor Detail

      • SparseUnDiGraph

        public SparseUnDiGraph()
        Construct an empty graph.
      • SparseUnDiGraph

        public SparseUnDiGraph​(UnDiGraph<V,​E> g)
        (Copy) construct a graph from another graph.
        Parameters:
        g - a graph