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
public interface Graph<V,E extends Edge<V>,Ex extends Exception> extends MultiGraph<V,E,Ex>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<E>getEdgesFrom(V from)Gets the edges from the provided vertex.-
Methods inherited from interface com.aoapps.hodgepodge.graph.MultiGraph
getVertices
-
-
-
-
Method Detail
-
getEdgesFrom
Set<E> getEdgesFrom(V from) throws Ex extends Exception
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:
getEdgesFromin interfaceMultiGraph<V,E extends Edge<V>,Ex extends Exception>- Throws:
Ex extends Exception
-
-