public final class DynamicGraphImpl extends TransitionGraphImpl<DynamicNode,DynamicEdge> implements DynamicGraph
Modifier and Type | Field and Description |
---|---|
static String |
GRAPH_ZIP_NAME |
protected List |
v_stables |
nodeOrder
associatedGraph, associatedID
attributes, graphAnnotation, graphName, ZIP_PREFIX
MAXLEVEL, STARLEVEL
Modifier | Constructor and Description |
---|---|
protected |
DynamicGraphImpl() |
protected |
DynamicGraphImpl(List<org.colomoto.biolqm.NodeInfo> nodeOrder)
create a new DynamicGraph.
|
Modifier and Type | Method and Description |
---|---|
DynamicEdge |
addEdge(DynamicNode source,
DynamicNode target,
boolean multiple)
add an edge between source and target
|
protected List |
doMerge(Graph otherGraph)
Specialized method that execute the merging of the given graph with the current one
Must be override at specialized graph level
|
protected GINMLWriter |
getGINMLWriter() |
protected String |
getGraphZipName()
Return the zip extension for the graph type
|
List<org.colomoto.biolqm.NodeInfo> |
getNodeOrder()
Return the node order as a list of String
|
int |
getNodeOrderSize()
Return the size of the node order
|
Graph |
getSubgraph(Collection vertex,
Collection edges)
Specialized method that build the sub-graph corresponding to the given lists of vertices and edges
The returned graph contains clones of the given graph objects structured as they are in the current graph
|
GraphEventCascade |
graphChanged(RegulatoryGraph g,
GraphChangeType type,
Object data) |
protected boolean |
isAssociationValid(Graph<?,?> graph)
Indicates if the given graph can be associated to the current one
|
boolean |
removeEdge(DynamicEdge obj)
Remove an edge from the graph.
|
void |
setNodeOrder(List<org.colomoto.biolqm.NodeInfo> node_order)
Set a list of String representing the order of node as defined by the model
|
List |
shortestPath(byte[] source,
byte[] target)
look for the shortest path between two states.
|
fillExtraValues, getExtraNames, setLogicalModel
getAssociatedGraph, getAssociatedGraphID, graphChanged, setAssociatedGraph, setAssociatedGraphID
addEdge, addNode, addViewListener, containsEdge, containsNode, copyView, damage, doSave, fireGraphChange, fireMetaChange, getAnnotation, getAttributes, getCachedEdgeAttributeReader, getCachedNodeAttributeReader, getDimension, getDisplayName, getEdge, getEdgeAttributeReader, getEdges, getExistingNode, getGraphName, getIncomingEdges, getNodeAttributeReader, getNodeByName, getNodeCount, getNodes, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, getStyleManager, isEmpty, merge, refresh, removeNode, repaint, save, save, searchNodes, setAttribute, setGraphName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fillExtraValues, getExtraNames, setLogicalModel
addViewListener, copyView, fireGraphChange, getAttributes, getDimension, getDisplayName, getEdgeAttributeReader, getNodeAttributeReader, getStyleManager, save, save, setAttribute
addEdge, addNode, containsEdge, containsNode, getAnnotation, getEdge, getEdges, getExistingNode, getGraphName, getIncomingEdges, getNodeByName, getNodeCount, getNodes, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, merge, removeNode, searchNodes, setGraphName
getAssociatedGraph, getAssociatedGraphID, setAssociatedGraph, setAssociatedGraphID
public static final String GRAPH_ZIP_NAME
protected List v_stables
protected DynamicGraphImpl(List<org.colomoto.biolqm.NodeInfo> nodeOrder)
nodeOrder
- protected DynamicGraphImpl()
public GraphEventCascade graphChanged(RegulatoryGraph g, GraphChangeType type, Object data)
graphChanged
in interface GraphListener<RegulatoryGraph>
public List<org.colomoto.biolqm.NodeInfo> getNodeOrder()
getNodeOrder
in interface DynamicGraph
public int getNodeOrderSize()
getNodeOrderSize
in interface GraphModel<DynamicNode,DynamicEdge>
getNodeOrderSize
in class AbstractGraph<DynamicNode,DynamicEdge>
public void setNodeOrder(List<org.colomoto.biolqm.NodeInfo> node_order)
setNodeOrder
in interface DynamicGraph
node_order
- the list of String representing the order of node as defined by the modelprotected String getGraphZipName()
getGraphZipName
in class AbstractGraph<DynamicNode,DynamicEdge>
protected GINMLWriter getGINMLWriter()
getGINMLWriter
in class AbstractGraph<DynamicNode,DynamicEdge>
public boolean removeEdge(DynamicEdge obj)
AbstractGraph
removeEdge
in interface GraphModel<DynamicNode,DynamicEdge>
removeEdge
in class AbstractGraph<DynamicNode,DynamicEdge>
public DynamicEdge addEdge(DynamicNode source, DynamicNode target, boolean multiple)
DynamicGraph
addEdge
in interface DynamicGraph
protected List doMerge(Graph otherGraph)
AbstractGraph
doMerge
in class AbstractGraph<DynamicNode,DynamicEdge>
public Graph getSubgraph(Collection vertex, Collection edges)
AbstractGraph
getSubgraph
in interface GraphModel<DynamicNode,DynamicEdge>
getSubgraph
in class AbstractGraph<DynamicNode,DynamicEdge>
vertex
- the list of node to include in the desired sub-graphedges
- the list of edges to include in the sub-graphpublic List shortestPath(byte[] source, byte[] target)
shortestPath
in interface DynamicGraph
source
- target
- protected boolean isAssociationValid(Graph<?,?> graph)
isAssociationValid
in class AbstractDerivedGraph<DynamicNode,DynamicEdge,RegulatoryGraph,RegulatoryNode,RegulatoryMultiEdge>
graph
- the graph to associate to the current oneCopyright © 2005–2020. All rights reserved.