java.lang.Object
net.automatalib.graph.base.AbstractCompactGraph<SimpleEdge,Void,Void>
net.automatalib.graph.impl.CompactGraph
- All Implemented Interfaces:
Iterable<Integer>,FiniteRepresentation,NodeIDs<Integer>,Graph<Integer,,SimpleEdge> Graph.IntAbstraction<SimpleEdge>,IndefiniteGraph<Integer,,SimpleEdge> IndefiniteSimpleGraph<Integer>,MutableGraph<Integer,,SimpleEdge, Void, Void> MutableGraph.IntAbstraction<SimpleEdge,,Void, Void> SimpleGraph<Integer>,SimpleGraph.IntAbstraction,UniversalGraph<Integer,,SimpleEdge, Void, Void> UniversalGraph.IntAbstraction<SimpleEdge,,Void, Void> UniversalIndefiniteGraph<Integer,SimpleEdge, Void, Void>
A compact graph representation that only stores adjacency information.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.automatalib.graph.MutableGraph
MutableGraph.IntAbstraction<E,NP, EP> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnect(int source, int target) protected SimpleEdgecreateEdge(int source, int target, Void property) getEdgeProperty(SimpleEdge edge) Retrieves the property of a given edge.getNodeProperty(int node) Int-abstracted version ofUniversalIndefiniteGraph.getNodeProperty(Object).voidsetEdgeProperty(SimpleEdge edge, Void property) Sets the edge property of the given edge.voidsetNodeProperty(int node, Void property) Int-abstracted version ofMutableGraph.setNodeProperty(Object, Object).Methods inherited from class net.automatalib.graph.base.AbstractCompactGraph
addIntNode, addNode, connect, connect, getIntTarget, getNode, getNodeId, getNodeProperty, getNodes, getOutgoingEdges, getOutgoingEdges, getTarget, nodeIDs, setNodeProperty, sizeMethods 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, getOutgoingEdgesIterator, getVisualizationHelperMethods inherited from interface net.automatalib.graph.Graph.IntAbstraction
getEdgesBetween, getOutgoingEdgesIterator, isConnectedMethods inherited from interface net.automatalib.graph.IndefiniteGraph
getAdjacentNodesIterator, getEdgesBetweenMethods inherited from interface net.automatalib.graph.IndefiniteSimpleGraph
isConnectedMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.automatalib.graph.MutableGraph
addNodeMethods inherited from interface net.automatalib.graph.MutableGraph.IntAbstraction
addIntNodeMethods inherited from interface net.automatalib.graph.SimpleGraph
createDynamicNodeMapping, createStaticNodeMapping, iterator
-
Constructor Details
-
CompactGraph
public CompactGraph() -
CompactGraph
public CompactGraph(int initialCapacity)
-
-
Method Details
-
createEdge
- Specified by:
createEdgein classAbstractCompactGraph<SimpleEdge,Void, Void>
-
getNodeProperty
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
-
setNodeProperty
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
-
setEdgeProperty
Description copied from interface:MutableGraphSets the edge property of the given edge.- Parameters:
edge- the edgeproperty- the property to set
-
getEdgeProperty
Description copied from interface:UniversalIndefiniteGraphRetrieves the property of a given edge.- Parameters:
edge- the edge- Returns:
- the property of the specified edge
-
connect
-
connect
-