Class WeightedDirectedEdge<S extends Node,​T extends java.lang.Number>

    • Constructor Summary

      Constructors 
      Constructor Description
      WeightedDirectedEdge​(S nodeA, S nodeB, T weight)
      Creates a new weighted direct edge.
    • Method Summary

      Modifier and Type Method Description
      T getWeight()
      Returns the weight of this edge.
      void setWeight​(T number)
      TODO
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WeightedDirectedEdge

        public WeightedDirectedEdge​(S nodeA,
                                    S nodeB,
                                    T weight)
        Creates a new weighted direct edge.
        Parameters:
        nodeA - some node
        nodeB - some node
        weight - some weight
    • Method Detail

      • getWeight

        public T getWeight()
        Description copied from interface: WeightedEdge
        Returns the weight of this edge.
        Specified by:
        getWeight in interface WeightedEdge<S extends Node,​T extends java.lang.Number>
        Returns:
        the weight of this edge.
      • setWeight

        public void setWeight​(T number)
        TODO
        Parameters:
        number -