Class Edge<V>

    • Field Detail

      • from

        protected final V from
      • to

        protected final V to
    • Constructor Detail

      • Edge

        public Edge​(V from,
                    V to)
    • Method Detail

      • getFrom

        public final V getFrom()
        The vertex the edge is from.
      • getTo

        public final V getTo()
        The vertex the edge is to.
      • equals

        public final boolean equals​(Object obj)
        Two edges are equal if they have equal from and to.
        Overrides:
        equals in class Object
      • hashCode

        public final int hashCode()
        The hashCode is generated from the from and to.
        Overrides:
        hashCode in class Object