Class UndirectedEdge<T extends Node>

  • Type Parameters:
    T - The type of the nodes this edge connects
    Direct Known Subclasses:
    Association

    public class UndirectedEdge<T extends Node>
    extends Edge<T>
    Instances of this class represent undirected edges.
    Author:
    Matthias Thimm
    • Constructor Summary

      Constructors 
      Constructor Description
      UndirectedEdge​(T nodeA, T nodeB)
      Creates a new undirected edge for the given nodes.
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • UndirectedEdge

        public UndirectedEdge​(T nodeA,
                              T nodeB)
        Creates a new undirected edge for the given nodes.
        Parameters:
        nodeA - some node.
        nodeB - some node.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Edge<T extends Node>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Edge<T extends Node>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object