Class AdjacencyMatrix.NodeEdges<G extends BaseGraph<G,N,E>,N extends Node<G,N,E>,E extends Edge<G,N,E>>
- java.lang.Object
-
- it.unive.lisa.util.datastructures.graph.AdjacencyMatrix.NodeEdges<G,N,E>
-
- Type Parameters:
G
- the type of theBaseGraph
s the containing matrix can be used inN
- the type of theNode
s in the containing matrixE
- the type of theEdge
s 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()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-