public static class IndefiniteSimpleGraph.NormalGraphView<N,G extends IndefiniteSimpleGraph<N>> extends Object implements IndefiniteGraph<N,N>
IndefiniteSimpleGraph.NormalGraphView<N,G extends IndefiniteSimpleGraph<N>>
Modifier and Type | Field and Description |
---|---|
protected G |
simpleGraph |
Constructor and Description |
---|
NormalGraphView(G simpleGraph) |
Modifier and Type | Method and Description |
---|---|
Iterable<N> |
adjacentTargets(N node) |
Iterator<N> |
adjacentTargetsIterator(N node) |
Stream<N> |
adjacentTargetsStream(N node) |
<V> MutableMapping<N,V> |
createDynamicNodeMapping() |
<V> MutableMapping<N,V> |
createStaticNodeMapping() |
Collection<N> |
getAdjacentTargets(N node) |
Collection<N> |
getOutgoingEdges(N node)
Retrieves the outgoing edges of a given node.
|
N |
getTarget(N edge)
Retrieves, for a given edge, its target node.
|
boolean |
isConnected(N source,
N target) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asNormalGraph, getEdgesBetween, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStream
protected final G extends IndefiniteSimpleGraph<N> simpleGraph
public NormalGraphView(G simpleGraph)
public Iterator<N> adjacentTargetsIterator(N node)
adjacentTargetsIterator
in interface IndefiniteGraph<N,N>
adjacentTargetsIterator
in interface IndefiniteSimpleGraph<N>
public Collection<N> getAdjacentTargets(N node)
getAdjacentTargets
in interface IndefiniteGraph<N,N>
getAdjacentTargets
in interface IndefiniteSimpleGraph<N>
public Stream<N> adjacentTargetsStream(N node)
adjacentTargetsStream
in interface IndefiniteGraph<N,N>
adjacentTargetsStream
in interface IndefiniteSimpleGraph<N>
public Collection<N> getOutgoingEdges(N node)
IndefiniteGraph
getOutgoingEdges
in interface IndefiniteGraph<N,N>
node
- the node.Collection
of all outgoing edges, or null
if the node has no outgoing edges.public N getTarget(N edge)
IndefiniteGraph
getTarget
in interface IndefiniteGraph<N,N>
edge
- the edge.public Iterable<N> adjacentTargets(N node)
adjacentTargets
in interface IndefiniteSimpleGraph<N>
public boolean isConnected(N source, N target)
isConnected
in interface IndefiniteSimpleGraph<N>
public <V> MutableMapping<N,V> createStaticNodeMapping()
createStaticNodeMapping
in interface IndefiniteSimpleGraph<N>
public <V> MutableMapping<N,V> createDynamicNodeMapping()
createDynamicNodeMapping
in interface IndefiniteSimpleGraph<N>
Copyright © 2020. All rights reserved.