Class DefaultDirectedWeightedGraph

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, DirectedGraph, Graph, WeightedGraph

    public class DefaultDirectedWeightedGraph
    extends DefaultDirectedGraph
    implements WeightedGraph
    A directed weighted graph. A directed weighted graph is a non-simple directed graph in which multiple edges between any two vertices are not permitted, but loops are. The graph has weights on its edges.

    prefixed 'Default' to avoid name collision with the DirectedWeightedGraph interface.

    See Also:
    DefaultDirectedGraph, Serialized Form
    • Constructor Detail

      • DefaultDirectedWeightedGraph

        public DefaultDirectedWeightedGraph()
        Creates a new directed weighted graph.
      • DefaultDirectedWeightedGraph

        public DefaultDirectedWeightedGraph​(EdgeFactory ef)
        Creates a new directed weighted graph with the specified edge factory.
        Parameters:
        ef - the edge factory of the new graph.