Module net.automatalib.api
Package net.automatalib.automaton.graph
Class AbstractAutomatonGraphView<S,A extends Automaton<S,?,?>,E>
java.lang.Object
net.automatalib.automaton.graph.AbstractAutomatonGraphView<S,A,E>
- All Implemented Interfaces:
Iterable<S>,FiniteRepresentation,Graph<S,,E> IndefiniteGraph<S,,E> IndefiniteSimpleGraph<S>,SimpleGraph<S>
- Direct Known Subclasses:
AbstractBricsAutomaton.GraphView,AutomatonGraphView
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.automatalib.graph.Graph
Graph.IntAbstraction<E> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> MutableMapping<S,V> Creates aMutableMappingallowing to associate arbitrary data with this graph's nodes.<V> MutableMapping<S,V> Creates aMutableMappingallowing to associate arbitrary data with this graph's nodes.getNodes()Retrieves an (unmodifiable) collection of the nodes in this graph.iterator()nodeIDs()intsize()Retrieves the size (number of nodes) of this graph.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.automatalib.graph.Graph
getAdjacentNodes, getOutgoingEdges, getOutgoingEdgesIterator, getVisualizationHelperMethods inherited from interface net.automatalib.graph.IndefiniteGraph
getAdjacentNodesIterator, getEdgesBetween, getTargetMethods inherited from interface net.automatalib.graph.IndefiniteSimpleGraph
isConnectedMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
automaton
-
-
Constructor Details
-
AbstractAutomatonGraphView
-
-
Method Details
-
createStaticNodeMapping
Description copied from interface:IndefiniteSimpleGraphCreates aMutableMappingallowing to associate arbitrary data with this graph's nodes. The returned mapping is however only guaranteed to work correctly if the transition system is not modified.- Specified by:
createStaticNodeMappingin interfaceIndefiniteSimpleGraph<S>- Specified by:
createStaticNodeMappingin interfaceSimpleGraph<S>- Type Parameters:
V- the value type of the mapping- Returns:
- the mutable mapping
-
createDynamicNodeMapping
Description copied from interface:IndefiniteSimpleGraphCreates aMutableMappingallowing to associate arbitrary data with this graph's nodes. The returned mapping maintains the association even when the transition system is modified.- Specified by:
createDynamicNodeMappingin interfaceIndefiniteSimpleGraph<S>- Specified by:
createDynamicNodeMappingin interfaceSimpleGraph<S>- Type Parameters:
V- the value type of the mapping- Returns:
- the mutable mapping
-
size
public int size()Description copied from interface:SimpleGraphRetrieves the size (number of nodes) of this graph.- Specified by:
sizein interfaceFiniteRepresentation- Specified by:
sizein interfaceSimpleGraph<S>- Returns:
- the number of nodes of this graph
-
getNodes
Description copied from interface:SimpleGraphRetrieves an (unmodifiable) collection of the nodes in this graph.- Specified by:
getNodesin interfaceSimpleGraph<S>- Returns:
- the nodes in this graph
-
iterator
-
nodeIDs
- Specified by:
nodeIDsin interfaceSimpleGraph<S>
-