Class ForwardingGraph<N>

  • All Implemented Interfaces:
    Graph<N>, PredecessorsFunction<N>, SuccessorsFunction<N>
    Direct Known Subclasses:
    GraphView

    public abstract class ForwardingGraph<N>
    extends AbstractGraph<N>
    A class to allow Graph implementations to be backed by a BaseGraph. This class is a copy of a Guava class which is not currently planned to be released as a general-purpose forwarding class.
    Author:
    James Sexton
    • Constructor Detail

      • ForwardingGraph

        public ForwardingGraph()
    • Method Detail

      • delegate

        protected abstract Graph<N> delegate()
      • nodes

        public Set<N> nodes()
      • isDirected

        public boolean isDirected()
      • allowsSelfLoops

        public boolean allowsSelfLoops()
      • adjacentNodes

        public Set<N> adjacentNodes​(N node)
      • predecessors

        public Set<N> predecessors​(N node)
      • successors

        public Set<N> successors​(N node)
      • degree

        public int degree​(N node)
        Specified by:
        degree in interface Graph<N>
      • inDegree

        public int inDegree​(N node)
        Specified by:
        inDegree in interface Graph<N>
      • outDegree

        public int outDegree​(N node)
        Specified by:
        outDegree in interface Graph<N>
      • hasEdgeConnecting

        public boolean hasEdgeConnecting​(N nodeU,
                                         N nodeV)
        Specified by:
        hasEdgeConnecting in interface Graph<N>
      • validateEndpoints

        protected final void validateEndpoints​(EndpointPair<?> arg0)
      • isOrderingCompatible

        protected final boolean isOrderingCompatible​(EndpointPair<?> arg0)