public class AbstractIncrementalMealyTreeBuilder.GraphView extends AbstractIncrementalMealyBuilder.AbstractGraphView<I,O,N,AnnotatedEdge<N,I,O>>
SimpleGraph.NormalGraphView<N,G extends SimpleGraph<N>>
Constructor and Description |
---|
GraphView() |
Modifier and Type | Method and Description |
---|---|
N |
getInitialNode() |
I |
getInputSymbol(AnnotatedEdge<N,I,O> edge) |
Collection<N> |
getNodes()
Retrieves an (unmodifiable) collection of the nodes in this graph.
|
Collection<AnnotatedEdge<N,I,O>> |
getOutgoingEdges(N node)
Retrieves the outgoing edges of a given node.
|
O |
getOutputSymbol(AnnotatedEdge<N,I,O> edge) |
N |
getTarget(AnnotatedEdge<N,I,O> edge)
Retrieves, for a given edge, its target node.
|
VisualizationHelper<N,AnnotatedEdge<N,I,O>> |
getVisualizationHelper() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asNormalGraph
adjacentTargetsIterator, adjacentTargetsStream, getAdjacentTargets, getEdgesBetween, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStream
iterator, nodeIDs, nodesStream, size
adjacentTargets, createDynamicNodeMapping, createStaticNodeMapping, isConnected
forEach, spliterator
public Collection<N> getNodes()
SimpleGraph
public Collection<AnnotatedEdge<N,I,O>> getOutgoingEdges(N node)
IndefiniteGraph
node
- the node.Collection
of all outgoing edges, or null
if the node has no outgoing edges.public N getTarget(AnnotatedEdge<N,I,O> edge)
IndefiniteGraph
edge
- the edge.public I getInputSymbol(AnnotatedEdge<N,I,O> edge)
public O getOutputSymbol(AnnotatedEdge<N,I,O> edge)
public N getInitialNode()
public VisualizationHelper<N,AnnotatedEdge<N,I,O>> getVisualizationHelper()
getVisualizationHelper
in interface Graph<N,AnnotatedEdge<N,I,O>>
getVisualizationHelper
in interface SimpleGraph<N>
getVisualizationHelper
in class AbstractIncrementalMealyBuilder.AbstractGraphView<I,O,N,AnnotatedEdge<N,I,O>>
Copyright © 2020. All rights reserved.