- java.lang.Object
-
- net.automatalib.graph.base.AbstractCompactGraph<E,NP,EP>
-
- net.automatalib.graph.base.AbstractCompactUniversalGraph<CompactEdge<EP>,Void,EP>
-
- net.automatalib.graph.impl.CompactSimpleGraph<EP>
-
- Type Parameters:
EP- edge property type
- All Implemented Interfaces:
Iterable<Integer>,FiniteRepresentation,NodeIDs<Integer>,Graph<Integer,CompactEdge<EP>>,Graph.IntAbstraction<CompactEdge<EP>>,IndefiniteGraph<Integer,CompactEdge<EP>>,IndefiniteSimpleGraph<Integer>,MutableGraph<Integer,CompactEdge<EP>,Void,EP>,MutableGraph.IntAbstraction<CompactEdge<EP>,Void,EP>,SimpleGraph<Integer>,SimpleGraph.IntAbstraction,UniversalGraph<Integer,CompactEdge<EP>,Void,EP>,UniversalGraph.IntAbstraction<CompactEdge<EP>,Void,EP>,UniversalIndefiniteGraph<Integer,CompactEdge<EP>,Void,EP>
public class CompactSimpleGraph<EP> extends AbstractCompactUniversalGraph<CompactEdge<EP>,Void,EP>
A compact graph representation that supports arbitrary edge properties.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.automatalib.graph.MutableGraph
MutableGraph.IntAbstraction<E,NP,EP>
-
-
Constructor Summary
Constructors Constructor Description CompactSimpleGraph()CompactSimpleGraph(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompactEdge<EP>createEdge(int source, int target, EP property)VoidgetNodeProperty(int node)Int-abstracted version ofUniversalIndefiniteGraph.getNodeProperty(Object).voidsetNodeProperty(int node, Void property)Int-abstracted version ofMutableGraph.setNodeProperty(Object, Object).-
Methods inherited from class net.automatalib.graph.base.AbstractCompactUniversalGraph
getEdgeProperty, setEdgeProperty
-
Methods inherited from class net.automatalib.graph.base.AbstractCompactGraph
addIntNode, addNode, connect, connect, getIntTarget, getNode, getNodeId, getNodeProperty, getNodes, getOutgoingEdges, getOutgoingEdges, getTarget, nodeIDs, 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
isConnected
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface net.automatalib.graph.MutableGraph
addNode, addNode, connect, setNodeProperty
-
Methods inherited from interface net.automatalib.graph.MutableGraph.IntAbstraction
addIntNode, addIntNode, connect
-
Methods inherited from interface net.automatalib.graph.SimpleGraph
createDynamicNodeMapping, createStaticNodeMapping, getNodes, iterator, nodeIDs, size
-
Methods inherited from interface net.automatalib.graph.UniversalIndefiniteGraph
getNodeProperty
-
-
-
-
Method Detail
-
setNodeProperty
public void setNodeProperty(int node, Void property)Description copied from interface:MutableGraph.IntAbstractionInt-abstracted version ofMutableGraph.setNodeProperty(Object, Object).- Parameters:
node- the (int-abstracted) id of the nodeproperty- the property of the node
-
getNodeProperty
public Void getNodeProperty(int node)
Description copied from interface:UniversalGraph.IntAbstractionInt-abstracted version ofUniversalIndefiniteGraph.getNodeProperty(Object).- Parameters:
node- the (int-abstracted) node identifier- Returns:
- the property of the specified node
-
createEdge
protected CompactEdge<EP> createEdge(int source, int target, EP property)
- Specified by:
createEdgein classAbstractCompactGraph<CompactEdge<EP>,Void,EP>
-
-