- All Superinterfaces:
public interface CyNode extends CyIdentifiableAn object that represents a node (vertex) within a network of nodes and edges.
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>model-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getNetworkPointer()Returns the network referenced by this node.
setNetworkPointer(CyNetwork network)Allows a network reference for this node to be set.
CyNetwork getNetworkPointer()Returns the network referenced by this node. If no network has been specified this method will return null.
- A reference to a CyNetwork if one exists, returns null otherwise.
void setNetworkPointer(CyNetwork network)Allows a network reference for this node to be set. Only one network may be set for a given node. Any CyNetwork may be used (the network may be a subnetwork of the network that contains this node, but it is not mandatory). To unset a network, use null as an argument.
network- The network that is to be referenced by this node. If this value is null, any existing reference will be removed. Note that this if a previous referenced network is being replaced or nulled out, an
UnsetNetworkPointerEventwill be fired and if a new network will be set a
SetNetworkPointerEventwill be fired.