Package net.automatalib.graph.base
Class AbstractCompactBidiGraph<NP,EP>
- java.lang.Object
-
- net.automatalib.graph.base.AbstractCompactGraph<CompactBidiEdge<EP>,NP,EP>
-
- net.automatalib.graph.base.AbstractCompactBidiGraph<NP,EP>
-
- All Implemented Interfaces:
Iterable<Integer>,FiniteRepresentation,BidirectionalGraph<Integer,CompactBidiEdge<EP>>,BidirectionalGraph.IntAbstraction<CompactBidiEdge<EP>>,NodeIDs<Integer>,Graph<Integer,CompactBidiEdge<EP>>,Graph.IntAbstraction<CompactBidiEdge<EP>>,IndefiniteGraph<Integer,CompactBidiEdge<EP>>,IndefiniteSimpleGraph<Integer>,MutableGraph<Integer,CompactBidiEdge<EP>,NP,EP>,MutableGraph.IntAbstraction<CompactBidiEdge<EP>,NP,EP>,MutableUniversalBidirectionalGraph<Integer,CompactBidiEdge<EP>,NP,EP>,SimpleGraph<Integer>,SimpleGraph.IntAbstraction,UniversalBidirectionalGraph<Integer,CompactBidiEdge<EP>,NP,EP>,UniversalGraph<Integer,CompactBidiEdge<EP>,NP,EP>,UniversalGraph.IntAbstraction<CompactBidiEdge<EP>,NP,EP>,UniversalIndefiniteGraph<Integer,CompactBidiEdge<EP>,NP,EP>
- Direct Known Subclasses:
CompactBidiGraph,CompactSimpleBidiGraph
public abstract class AbstractCompactBidiGraph<@Nullable NP,@Nullable EP> extends AbstractCompactGraph<CompactBidiEdge<EP>,NP,EP> implements MutableUniversalBidirectionalGraph<Integer,CompactBidiEdge<EP>,NP,EP>, BidirectionalGraph.IntAbstraction<CompactBidiEdge<EP>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.automatalib.graph.BidirectionalGraph
BidirectionalGraph.IntAbstraction<E extends Object>
-
Nested classes/interfaces inherited from interface net.automatalib.graph.MutableGraph
MutableGraph.IntAbstraction<E extends Object,NP extends Object,EP extends Object>
-
Nested classes/interfaces inherited from interface net.automatalib.graph.UniversalGraph
UniversalGraph.IntAbstraction<E extends Object,NP extends Object,EP extends Object>
-
-
Constructor Summary
Constructors Constructor Description AbstractCompactBidiGraph()AbstractCompactBidiGraph(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddIntNode(@Nullable NP property)CompactBidiEdge<EP>connect(int source, int target, @Nullable EP property)protected CompactBidiEdge<EP>createEdge(int source, int target, @Nullable EP property)Collection<CompactBidiEdge<EP>>getIncomingEdges(int node)Collection<CompactBidiEdge<EP>>getIncomingEdges(Integer node)intgetIntSource(CompactBidiEdge<@Nullable EP> edge)IntegergetSource(CompactBidiEdge<@Nullable EP> edge)-
Methods inherited from class net.automatalib.graph.base.AbstractCompactGraph
addNode, connect, getEdgeProperty, getIntTarget, getNode, getNodeId, getNodeProperty, getNodes, getOutgoingEdges, getOutgoingEdges, getTarget, nodeIDs, setEdgeProperty, setNodeProperty, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.automatalib.graph.Graph
getAdjacentNodes, getOutgoingEdges, getOutgoingEdgesIterator, getVisualizationHelper
-
Methods inherited from interface net.automatalib.graph.Graph.IntAbstraction
getEdgesBetween, getIntTarget, getOutgoingEdges, getOutgoingEdgesIterator, isConnected
-
Methods inherited from interface net.automatalib.graph.IndefiniteGraph
getAdjacentNodesIterator, getEdgesBetween, getTarget
-
Methods inherited from interface net.automatalib.graph.IndefiniteSimpleGraph
createDynamicNodeMapping, createStaticNodeMapping, isConnected
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface net.automatalib.graph.MutableGraph
addNode, addNode, connect, connect, setEdgeProperty, setNodeProperty
-
Methods inherited from interface net.automatalib.graph.MutableGraph.IntAbstraction
addIntNode, connect, setNodeProperty
-
Methods inherited from interface net.automatalib.graph.SimpleGraph
getNodes, iterator, nodeIDs, size
-
Methods inherited from interface net.automatalib.graph.UniversalGraph.IntAbstraction
getNodeProperty
-
Methods inherited from interface net.automatalib.graph.UniversalIndefiniteGraph
getEdgeProperty, getNodeProperty
-
-
-
-
Method Detail
-
getIncomingEdges
public Collection<CompactBidiEdge<EP>> getIncomingEdges(Integer node)
- Specified by:
getIncomingEdgesin interfaceBidirectionalGraph<NP,EP>
-
getIncomingEdges
public Collection<CompactBidiEdge<EP>> getIncomingEdges(int node)
- Specified by:
getIncomingEdgesin interfaceBidirectionalGraph.IntAbstraction<NP>
-
addIntNode
public int addIntNode(@Nullable NP property)
- Specified by:
addIntNodein interfaceMutableGraph.IntAbstraction<CompactBidiEdge<EP>,NP,EP>- Overrides:
addIntNodein classAbstractCompactGraph<CompactBidiEdge<EP>,NP,EP>
-
getSource
public Integer getSource(CompactBidiEdge<@Nullable EP> edge)
- Specified by:
getSourcein interfaceBidirectionalGraph<NP,EP>
-
getIntSource
public int getIntSource(CompactBidiEdge<@Nullable EP> edge)
- Specified by:
getIntSourcein interfaceBidirectionalGraph.IntAbstraction<NP>
-
connect
public CompactBidiEdge<EP> connect(int source, int target, @Nullable EP property)
- Specified by:
connectin interfaceMutableGraph.IntAbstraction<CompactBidiEdge<EP>,NP,EP>- Overrides:
connectin classAbstractCompactGraph<CompactBidiEdge<EP>,NP,EP>
-
createEdge
protected CompactBidiEdge<EP> createEdge(int source, int target, @Nullable EP property)
- Specified by:
createEdgein classAbstractCompactGraph<CompactBidiEdge<EP>,NP,EP>
-
-