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 theBaseGraphs the containing matrix can be used inN- the type of theNodes in the containing matrixE- the type of theEdges 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.ObjectUtility 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 booleanequals(java.lang.Object obj)java.util.Set<E>getIngoing()Yields the ingoing edges.java.util.Set<E>getOutgoing()Yields the outgoing edges.inthashCode()java.lang.StringtoString()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-