Module com.aoapps.hodgepodge
Package com.aoapps.hodgepodge.graph
Interface Graph<V,E extends Edge<V>,Ex extends Exception>
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown
- All Superinterfaces:
MultiGraph<V,
E, Ex>
- All Known Subinterfaces:
SymmetricGraph<V,
E, Ex>
- All Known Implementing Classes:
TrivialGraph
A graph is a set of vertices that are connected by directed edges. There may
only be one edge for each direction between any two vertices.
- Author:
- AO Industries, Inc.
-
Method Summary
Methods inherited from interface com.aoapps.hodgepodge.graph.MultiGraph
getVertices
-
Method Details
-
getEdgesFrom
Gets the edges from 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:
getEdgesFrom
in interfaceMultiGraph<V,
E extends Edge<V>, Ex extends Exception> - Throws:
Ex
-