Class GraphView<N>
- java.lang.Object
-
- com.google.common.graph.AbstractGraph<N>
-
- io.github.oliviercailloux.j_voting.graph.ForwardingGraph<N>
-
- io.github.oliviercailloux.j_voting.graph.GraphView<N>
-
- All Implemented Interfaces:
Graph<N>,PredecessorsFunction<N>,SuccessorsFunction<N>
public class GraphView<N> extends ForwardingGraph<N>
The sets accessible via this delegate are not currently editable (google/guava#3034), but this is not (currently) guaranteed by contract.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<N>adjacentNodes(N node)static <N> Graph<N>decorate(Graph<N> delegate)protected Graph<N>delegate()Set<EndpointPair<N>>edges()ElementOrder<N>incidentEdgeOrder()Set<EndpointPair<N>>incidentEdges(N node)protected booleanisOrderingCompatible(EndpointPair<?> arg0)Set<N>nodes()Set<N>predecessors(N node)Set<N>successors(N node)protected voidvalidateEndpoints(EndpointPair<?> arg0)-
Methods inherited from class io.github.oliviercailloux.j_voting.graph.ForwardingGraph
allowsSelfLoops, degree, edgeCount, hasEdgeConnecting, hasEdgeConnecting, inDegree, isDirected, nodeOrder, outDegree
-
Methods inherited from class com.google.common.graph.AbstractGraph
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.common.graph.Graph
incidentEdgeOrder
-
-
-
-
Method Detail
-
delegate
protected Graph<N> delegate()
- Specified by:
delegatein classForwardingGraph<N>
-
adjacentNodes
public Set<N> adjacentNodes(N node)
- Specified by:
adjacentNodesin interfaceGraph<N>- Overrides:
adjacentNodesin classForwardingGraph<N>
-
predecessors
public Set<N> predecessors(N node)
- Specified by:
predecessorsin interfaceGraph<N>- Specified by:
predecessorsin interfacePredecessorsFunction<N>- Overrides:
predecessorsin classForwardingGraph<N>
-
successors
public Set<N> successors(N node)
- Specified by:
successorsin interfaceGraph<N>- Specified by:
successorsin interfaceSuccessorsFunction<N>- Overrides:
successorsin classForwardingGraph<N>
-
incidentEdges
public Set<EndpointPair<N>> incidentEdges(N node)
- Specified by:
incidentEdgesin interfaceGraph<N>
-
incidentEdgeOrder
public ElementOrder<N> incidentEdgeOrder()
-
validateEndpoints
protected final void validateEndpoints(EndpointPair<?> arg0)
-
isOrderingCompatible
protected final boolean isOrderingCompatible(EndpointPair<?> arg0)
-
-