Module com.aoapps.hodgepodge
Package com.aoapps.hodgepodge.graph
Interface SymmetricGraph<V,E extends Edge<V>,Ex extends Exception>
-
- Type Parameters:
Ex- An arbitrary exception type that may be thrown
- All Superinterfaces:
Graph<V,E,Ex>,MultiGraph<V,E,Ex>,SymmetricMultiGraph<V,E,Ex>
- All Known Implementing Classes:
TrivialGraph
public interface SymmetricGraph<V,E extends Edge<V>,Ex extends Exception> extends Graph<V,E,Ex>, SymmetricMultiGraph<V,E,Ex>
A graph where each edge has an edge in the opposite direction.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<E>getEdgesTo(V to)Gets the edges to the provided vertex.-
Methods inherited from interface com.aoapps.hodgepodge.graph.Graph
getEdgesFrom
-
Methods inherited from interface com.aoapps.hodgepodge.graph.MultiGraph
getVertices
-
-
-
-
Method Detail
-
getEdgesTo
Set<E> getEdgesTo(V to) throws Ex extends Exception
Gets the edges to the provided vertex. The vertex must be part of this graph, and the results are undefined if it is not.A graph only allows unique combinations of from and to vertices.
- Specified by:
getEdgesToin interfaceSymmetricMultiGraph<V,E extends Edge<V>,Ex extends Exception>- Throws:
Ex extends Exception
-
-