public class CyTableUtil extends Object
Module: model-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>model-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getColumnNames(CyTable table)
Returns all the column names of a given table.
|
static List<CyEdge> |
getEdgesInState(CyNetwork net,
String columnName,
boolean state)
A utility method that returns a list of edges that have a boolean attribute
in the
CyNetwork.DEFAULT_ATTRS namespace specified by columnName and are in
the specified state. |
static List<CyNode> |
getNodesInState(CyNetwork net,
String columnName,
boolean state)
A utility method that returns a list of nodes that have a boolean attribute
in the
CyNetwork.DEFAULT_ATTRS namespace specified by columnName and are in
the specified state. |
public static List<CyNode> getNodesInState(CyNetwork net, String columnName, boolean state)
CyNetwork.DEFAULT_ATTRS
namespace specified by columnName and are in
the specified state. If the attribute doesn't exist or is not of type
Boolean an IllegalArgumentException will be thrown.net
- The network to be queried.columnName
- The name of the column to be tested.state
- The state being queried.CyNetwork.DEFAULT_ATTRS
namespace specified by columnName and are in
the specified state.public static List<CyEdge> getEdgesInState(CyNetwork net, String columnName, boolean state)
CyNetwork.DEFAULT_ATTRS
namespace specified by columnName and are in
the specified state. If the attribute doesn't exist or is not of type
Boolean an IllegalArgumentException will be thrown.net
- The network to be queried.columnName
- The name of the column to be tested.state
- The state being queried.CyNetwork.DEFAULT_ATTRS
namespace specified by columnName and are in
the specified state.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.