public class TrapSpaceTreeImpl extends AbstractDerivedGraph<TrapSpaceNode,TrapSpaceInclusion,RegulatoryGraph,RegulatoryNode,RegulatoryMultiEdge> implements TrapSpaceInclusionDiagram
associatedGraph, associatedID
attributes, graphAnnotation, graphName, ZIP_PREFIX
Constructor and Description |
---|
TrapSpaceTreeImpl(GraphFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected List<?> |
doMerge(Graph<TrapSpaceNode,TrapSpaceInclusion> graph)
Specialized method that execute the merging of the given graph with the current one
Must be override at specialized graph level
|
int |
getNodeOrderSize()
Return the size of the node order
|
Graph<TrapSpaceNode,TrapSpaceInclusion> |
getSubgraph(Collection<TrapSpaceNode> node,
Collection<TrapSpaceInclusion> 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)
test if a graph can be associated with this one.
|
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, getGINMLWriter, getGraphName, getGraphZipName, getIncomingEdges, getNodeAttributeReader, getNodeByName, getNodeCount, getNodes, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, getStyleManager, isEmpty, merge, refresh, removeEdge, removeNode, repaint, save, save, searchNodes, setAttribute, setGraphName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, removeEdge, removeNode, searchNodes, setGraphName
getAssociatedGraph, getAssociatedGraphID, setAssociatedGraph, setAssociatedGraphID
public TrapSpaceTreeImpl(GraphFactory factory)
public int getNodeOrderSize()
AbstractGraph
getNodeOrderSize
in interface GraphModel<TrapSpaceNode,TrapSpaceInclusion>
getNodeOrderSize
in class AbstractGraph<TrapSpaceNode,TrapSpaceInclusion>
public Graph<TrapSpaceNode,TrapSpaceInclusion> getSubgraph(Collection<TrapSpaceNode> node, Collection<TrapSpaceInclusion> edges)
AbstractGraph
getSubgraph
in interface GraphModel<TrapSpaceNode,TrapSpaceInclusion>
getSubgraph
in class AbstractGraph<TrapSpaceNode,TrapSpaceInclusion>
node
- the list of node to include in the desired sub-graphedges
- the list of edges to include in the sub-graphpublic GraphEventCascade graphChanged(RegulatoryGraph g, GraphChangeType type, Object data)
graphChanged
in interface GraphListener<RegulatoryGraph>
protected boolean isAssociationValid(Graph<?,?> graph)
AbstractDerivedGraph
isAssociationValid
in class AbstractDerivedGraph<TrapSpaceNode,TrapSpaceInclusion,RegulatoryGraph,RegulatoryNode,RegulatoryMultiEdge>
protected List<?> doMerge(Graph<TrapSpaceNode,TrapSpaceInclusion> graph)
AbstractGraph
doMerge
in class AbstractGraph<TrapSpaceNode,TrapSpaceInclusion>
Copyright © 2005–2020. All rights reserved.