Package org.jgrapht

Interface WeightedGraph<V,​E>

    • Field Detail

      • DEFAULT_EDGE_WEIGHT

        static final double DEFAULT_EDGE_WEIGHT
        The default weight for an edge.
        See Also:
        Constant Field Values
    • Method Detail

      • setEdgeWeight

        void setEdgeWeight​(E e,
                           double weight)
        Assigns a weight to an edge.
        Parameters:
        e - edge on which to set weight
        weight - new weight for edge