Interface GraphCapabilities


  • public interface GraphCapabilities
    Object specifying the capabilities of a graph implementation.

    Each implementation of the Graph interface may are may not support some operations. Each graph provide its capabilities using Graph.getCapabilities().

    Author:
    Barak Ugav
    See Also:
    Graph, GraphFactory
    • Method Detail

      • parallelEdges

        boolean parallelEdges()
        Checks whether parallel edges are supported.

        Parallel edges are multiple edges with identical source and target.

        Returns:
        true if the graph support parallel edges, else false.
      • selfEdges

        boolean selfEdges()
        Checks whether self edges are supported.

        Self edges are edges with the same source and target, namely a vertex with an edge to itself.

        Returns:
        true if the graph support self edges, else false.
      • directed

        boolean directed()
        Checks whether the graph is directed.
        Returns:
        true if the graph is directed, else false.