public final class PartitionUtil extends Object
Module: layout-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>layout-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
static List<LayoutPartition> |
partition(CyNetworkView networkView,
boolean selectedOnly,
EdgeWeighter edgeWeighter)
Partition the graph -- this builds the LayoutEdge and LayoutNode
arrays as a byproduct.
|
static List<LayoutPartition> |
partition(CyNetworkView networkView,
Collection<CyNode> nodeSet,
EdgeWeighter edgeWeighter)
Partition the graph -- this builds the LayoutEdge and LayoutNode
arrays as a byproduct.
|
public static List<LayoutPartition> partition(CyNetworkView networkView, boolean selectedOnly, EdgeWeighter edgeWeighter)
networkView
- the CyNetworkView representing the graphselectedOnly
- only consider selected nodesedgeWeighter
- the weighter to use for edge weightingpublic static List<LayoutPartition> partition(CyNetworkView networkView, Collection<CyNode> nodeSet, EdgeWeighter edgeWeighter)
networkView
- the CyNetworkView representing the graphnodeSet
- the set of nodes to consideredgeWeighter
- the weighter to use for edge weightingCopyright 2011-2015 Cytoscape Consortium. All rights reserved.