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 boolean
isOrderingCompatible(EndpointPair<?> arg0)
Set<N>
nodes()
Set<N>
predecessors(N node)
Set<N>
successors(N node)
protected void
validateEndpoints(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:
delegate
in classForwardingGraph<N>
-
adjacentNodes
public Set<N> adjacentNodes(N node)
- Specified by:
adjacentNodes
in interfaceGraph<N>
- Overrides:
adjacentNodes
in classForwardingGraph<N>
-
predecessors
public Set<N> predecessors(N node)
- Specified by:
predecessors
in interfaceGraph<N>
- Specified by:
predecessors
in interfacePredecessorsFunction<N>
- Overrides:
predecessors
in classForwardingGraph<N>
-
successors
public Set<N> successors(N node)
- Specified by:
successors
in interfaceGraph<N>
- Specified by:
successors
in interfaceSuccessorsFunction<N>
- Overrides:
successors
in classForwardingGraph<N>
-
incidentEdges
public Set<EndpointPair<N>> incidentEdges(N node)
- Specified by:
incidentEdges
in interfaceGraph<N>
-
incidentEdgeOrder
public ElementOrder<N> incidentEdgeOrder()
-
validateEndpoints
protected final void validateEndpoints(EndpointPair<?> arg0)
-
isOrderingCompatible
protected final boolean isOrderingCompatible(EndpointPair<?> arg0)
-
-