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
Methods inherited from interface com.aoapps.hodgepodge.graph.Graph
getEdgesFrom
Methods inherited from interface com.aoapps.hodgepodge.graph.MultiGraph
getVertices
-
Method Details
-
getEdgesTo
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:
getEdgesTo
in interfaceSymmetricMultiGraph<V,
E extends Edge<V>, Ex extends Exception> - Throws:
Ex
-