public interface CyNetworkFactory
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 |
|---|---|
CyNetwork |
createNetwork()
Returns a new, empty
CyNetwork object. |
CyNetwork |
createNetwork(SavePolicy policy)
Returns a new, empty
CyNetwork object. |
CyNetwork |
createNetworkWithPrivateTables()
Returns a new, empty
CyNetwork object where the associated default tables are private. |
CyNetwork |
createNetworkWithPrivateTables(SavePolicy policy)
Returns a new, empty
CyNetwork object where the associated default tables are private. |
CyNetwork createNetwork()
CyNetwork object.
The new network's save policy is SavePolicy.SESSION_FILE by default.
If you want to create a network that should not be saved in session files, use
the createNetwork(SavePolicy) method instead, and set the save policy to SavePolicy.DO_NOT_SAVE.CyNetwork object.CyNetwork createNetwork(SavePolicy policy)
CyNetwork object.policy - the save policy to follow during the life-cycle of the CyNetwork.CyNetwork object.CyNetwork createNetworkWithPrivateTables()
CyNetwork object where the associated default tables are private.
This method should only be used in special cases where the network created is not intended to
be used or shared like a normal network within the system.
The new network's save policy is SavePolicy.SESSION_FILE by default.
If you want to create a network that should not be saved in session files, use
the createNetwork(SavePolicy) method instead, and set the save policy to SavePolicy.DO_NOT_SAVE.CyNetwork object.CyNetwork createNetworkWithPrivateTables(SavePolicy policy)
CyNetwork object where the associated default tables are private.
This method should only be used in special cases where the network created is not intended to
be used or shared like a normal network within the system.policy - the save policy to follow during the life-cycle of the CyNetwork.CyNetwork object.Copyright 2011 Cytoscape Consortium. All rights reserved.