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

    Modifier and Type
    Method
    Description
    Gets the edges from the provided vertex.

    Methods inherited from interface com.aoapps.hodgepodge.graph.MultiGraph

    getVertices
  • Method Details

    • getEdgesFrom

      Set<E> getEdgesFrom(V from) throws Ex
      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 interface MultiGraph<V,E extends Edge<V>,Ex extends Exception>
      Throws:
      Ex