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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T weight
      The weight of this edge.
    • 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

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • weight

        private T extends java.lang.Number weight
        The weight of this edge.
    • 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 -