org.expasy.jpl.commons.collection.graph
Class GraphCollapser<V,E>
java.lang.Object
org.expasy.jpl.commons.collection.graph.GraphCollapser<V,E>
- Direct Known Subclasses:
- KPartiteGraphImpl.Collapser
public class GraphCollapser<V,E>
- extends Object
This object comes from jung. We had to rewrite it because of the original
createGraph() method that internally create a new instance of Graph by reflexion that is not accessible and cannot be overridden. We had
some problem while collapsing/expanding KPartiteGraph as constructor
has no parameters whereas Predicate is really needed.
The object is now handling generic param
- Version:
- 1.0
- Author:
- nikitin
|
Constructor Summary |
GraphCollapser(edu.uci.ics.jung.graph.Graph<V,E> originalGraph)
|
|
Method Summary |
edu.uci.ics.jung.graph.Graph<V,E> |
collapse(edu.uci.ics.jung.graph.Graph<V,E> inGraph,
edu.uci.ics.jung.graph.Graph<V,E> clusterGraph)
|
edu.uci.ics.jung.graph.Graph<V,E> |
expand(edu.uci.ics.jung.graph.Graph<V,E> inGraph,
edu.uci.ics.jung.graph.Graph<V,E> clusterGraph)
|
edu.uci.ics.jung.graph.Graph<V,E> |
getClusterGraph(edu.uci.ics.jung.graph.Graph<V,E> inGraph,
Collection<? extends V> picked)
|
void |
initGraph(edu.uci.ics.jung.graph.Graph<V,E> g)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
originalGraph
protected edu.uci.ics.jung.graph.Graph<V,E> originalGraph
GraphCollapser
public GraphCollapser(edu.uci.ics.jung.graph.Graph<V,E> originalGraph)
initGraph
public void initGraph(edu.uci.ics.jung.graph.Graph<V,E> g)
collapse
public edu.uci.ics.jung.graph.Graph<V,E> collapse(edu.uci.ics.jung.graph.Graph<V,E> inGraph,
edu.uci.ics.jung.graph.Graph<V,E> clusterGraph)
expand
public edu.uci.ics.jung.graph.Graph<V,E> expand(edu.uci.ics.jung.graph.Graph<V,E> inGraph,
edu.uci.ics.jung.graph.Graph<V,E> clusterGraph)
getClusterGraph
public edu.uci.ics.jung.graph.Graph<V,E> getClusterGraph(edu.uci.ics.jung.graph.Graph<V,E> inGraph,
Collection<? extends V> picked)
Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.