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 Detail

      • getEdgesTo

        Set<E> getEdgesTo​(V to)
                   throws Ex extends Exception
        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 extends Exception