- Type Parameters:
N- node typeE- edge type
- All Superinterfaces:
IndefiniteSimpleGraph<N>,Iterable<N>
- All Known Subinterfaces:
AcceptanceGraph<N,,E> ADSNode<S,,I, O> BidirectionalGraph<N,,E> FiniteKripkeStructure<N,,E, AP> FiniteLabeledGraph<N,,E, L> Graph<N,,E> MutableGraph<N,,E, NP, EP> MutableProceduralModalProcessGraph<N,,L, E, AP, TP> MutableUniversalBidirectionalGraph<N,,E, NP, EP> ProceduralModalProcessGraph<N,,L, E, AP, TP> RecursiveADSNode<S,,I, O, N> ShrinkableGraph<N,,E> UndirectedGraph<N,,E> UniversalBidirectionalGraph<N,,E, NP, EP> UniversalGraph<N,,E, NP, EP> UniversalIndefiniteGraph<N,E, NP, EP>
- All Known Implementing Classes:
AbstractAutomatonGraphView,AbstractBricsAutomaton.GraphView,AbstractCompactGraph,AbstractCompactUniversalBidiGraph,AbstractCompactUniversalGraph,AbstractRecursiveADSLeafNode,AbstractRecursiveADSSymbolNode,ADSLeafNode,ADSSymbolNode,AutomatonGraphView,CFMPSGraphView,CompactGraph,CompactPMPG,CompactSimpleBidiGraph,CompactSimpleGraph,CompactUniversalBidiGraph,CompactUniversalGraph,FiniteStateAcceptor.FSAGraphView,MealyMachine.MealyGraphView,MMLTGraphView,ModalTransitionSystem.MTSGraphView,MooreMachine.MooreGraphView,ProceduralGraphView,SEVPAGraphView,SimpleMapGraph,SubsequentialTransducer.SSTGraphView,UniversalAutomatonGraphView,WitnessTree
Interface for an (indefinite) graph structure. A graph consists of nodes, each of which has outgoing edges connecting
to other nodes. In an indefinite graph, the node set is not required to be finite.
-
Method Summary
Modifier and TypeMethodDescriptiongetAdjacentNodesIterator(N node) Retrieves, for a given node, all adjacent nodes.getEdgesBetween(N from, N to) Returns, for two given nodes, the edges between those nodes.getOutgoingEdgesIterator(N node) Retrieves, for a given node, all outgoing edges.Retrieves, for a given edge, its target node.Methods inherited from interface net.automatalib.graph.IndefiniteSimpleGraph
createDynamicNodeMapping, createStaticNodeMapping, isConnectedMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getOutgoingEdgesIterator
Retrieves, for a given node, all outgoing edges.- Parameters:
node- the node- Returns:
- an iterator over the outgoing edges
-
getTarget
Retrieves, for a given edge, its target node.- Parameters:
edge- the edge.- Returns:
- the target node of the given edge.
-
getEdgesBetween
Returns, for two given nodes, the edges between those nodes.- Parameters:
from- the source nodeto- the target node- Returns:
- an iterator over the edges between the two nodes
-
getAdjacentNodesIterator
Description copied from interface:IndefiniteSimpleGraphRetrieves, for a given node, all adjacent nodes.- Specified by:
getAdjacentNodesIteratorin interfaceIndefiniteSimpleGraph<N>- Parameters:
node- the node- Returns:
- an iterator over the adjacent nodes
-