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

    Modifier and Type
    Method
    Description
    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 Details

    • getEdgesTo

      Set<E> getEdgesTo(V to) throws Ex
      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 interface SymmetricMultiGraph<V,E extends Edge<V>,Ex extends Exception>
      Throws:
      Ex