Interface MultiGraph<V,E extends Edge<V>,Ex extends Exception>

Type Parameters:
Ex - An arbitrary exception type that may be thrown
All Known Subinterfaces:
Graph<V,E,Ex>, SymmetricGraph<V,E,Ex>, SymmetricMultiGraph<V,E,Ex>
All Known Implementing Classes:
TrivialGraph

public interface MultiGraph<V,E extends Edge<V>,Ex extends Exception>
A multi graph is a set of vertices that are connected by directed edges. Two vertices may have multiple edges between them.
Author:
AO Industries, Inc.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the edges from the provided vertex.
    Gets the set of vertices for this graph.
  • Method Details

    • getVertices

      Set<V> getVertices() throws Ex
      Gets the set of vertices for this graph.
      Throws:
      Ex
    • getEdgesFrom

      Collection<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.
      Throws:
      Ex