G
- type of the original graphV
- type of the original verticesE
- type of the original edgespublic class ReducedGraphImpl<G extends Graph<V,E>,V,E extends Edge<V>> extends AbstractDerivedGraph<NodeReducedData,Edge<NodeReducedData>,G,V,E> implements ReducedGraph<G,V,E>
Modifier and Type | Field and Description |
---|---|
static String |
GRAPH_ZIP_NAME |
associatedGraph, associatedID
attributes, graphAnnotation, graphName, ZIP_PREFIX
Constructor and Description |
---|
ReducedGraphImpl() |
ReducedGraphImpl(G parent) |
ReducedGraphImpl(Set set,
File file) |
Modifier and Type | Method and Description |
---|---|
Edge<NodeReducedData> |
addEdge(NodeReducedData source,
NodeReducedData target)
add an edge to this graph.
|
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() |
String |
getGraphZipName()
Return the zip extension for the graph type
|
int |
getNodeOrderSize()
Return 0 since no node order is defined on this king of graph
|
Set<String> |
getSelectedSet(Collection<NodeReducedData> selection) |
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
|
protected boolean |
isAssociationValid(Graph<?,?> graph)
Indicates if the given graph can be associated to the current 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, getGraphName, 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 static final String GRAPH_ZIP_NAME
public ReducedGraphImpl(G parent)
parent
- public ReducedGraphImpl(Set set, File file) throws GsException
set
- file
- GsException
public ReducedGraphImpl()
public String getGraphZipName()
getGraphZipName
in class AbstractGraph<NodeReducedData,Edge<NodeReducedData>>
public int getNodeOrderSize()
getNodeOrderSize
in interface GraphModel<NodeReducedData,Edge<NodeReducedData>>
getNodeOrderSize
in class AbstractGraph<NodeReducedData,Edge<NodeReducedData>>
protected boolean isAssociationValid(Graph<?,?> graph)
isAssociationValid
in class AbstractDerivedGraph<NodeReducedData,Edge<NodeReducedData>,G extends Graph<V,E>,V,E extends Edge<V>>
graph
- the graph to associate to the current oneprotected GINMLWriter getGINMLWriter()
getGINMLWriter
in class AbstractGraph<NodeReducedData,Edge<NodeReducedData>>
public Edge<NodeReducedData> addEdge(NodeReducedData source, NodeReducedData target)
protected List doMerge(Graph otherGraph)
AbstractGraph
doMerge
in class AbstractGraph<NodeReducedData,Edge<NodeReducedData>>
public Graph getSubgraph(Collection vertex, Collection edges)
AbstractGraph
getSubgraph
in interface GraphModel<NodeReducedData,Edge<NodeReducedData>>
getSubgraph
in class AbstractGraph<NodeReducedData,Edge<NodeReducedData>>
vertex
- the list of node to include in the desired sub-graphedges
- the list of edges to include in the sub-graphpublic Set<String> getSelectedSet(Collection<NodeReducedData> selection)
getSelectedSet
in interface ReducedGraph<G extends Graph<V,E>,V,E extends Edge<V>>
Copyright © 2005–2020. All rights reserved.