Class AdjacencyMatrix.NodeEdges<G extends BaseGraph<G,​N,​E>,​N extends Node<G,​N,​E>,​E extends Edge<G,​N,​E>>

  • Type Parameters:
    G - the type of the BaseGraphs the containing matrix can be used in
    N - the type of the Nodes in the containing matrix
    E - the type of the Edges in the containing matrix
    Enclosing class:
    AdjacencyMatrix<G extends BaseGraph<G,​N,​E>,​N extends Node<G,​N,​E>,​E extends Edge<G,​N,​E>>

    public static class AdjacencyMatrix.NodeEdges<G extends BaseGraph<G,​N,​E>,​N extends Node<G,​N,​E>,​E extends Edge<G,​N,​E>>
    extends java.lang.Object
    Utility class for representing the edges tied to a node, split into two sets: ingoing and outgoing.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.Set<E> getIngoing()
      Yields the ingoing edges.
      java.util.Set<E> getOutgoing()
      Yields the outgoing edges.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • getIngoing

        public java.util.Set<E> getIngoing()
        Yields the ingoing edges.
        Returns:
        the set of ingoing edges
      • getOutgoing

        public java.util.Set<E> getOutgoing()
        Yields the outgoing edges.
        Returns:
        the set of outgoing edges
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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