Calculate the degree of a node

27 views
Skip to first unread message

Ash

unread,
Nov 10, 2010, 10:51:33 PM11/10/10
to cytoscape-discuss
Hi all,

I am a new use of Cytoscape and i am writing a plug-in for Cytoscape
and for that need to calculate the degree of a node. But i still
couldn't find a way. Can anyone please help me with this.
I feel that this is not a very difficult thing, still i couldn't find
out a method to do that.

Thanks and Regards

Scooter Morris

unread,
Nov 11, 2010, 1:29:56 AM11/11/10
to cytoscap...@googlegroups.com
CyNetwork network = Cytoscape.getCurrentNetwork(); // or whatever
network you've got
int degree = network.getDegree(node); // where node is the node

-- scooter


Ashansa perera

unread,
Nov 11, 2010, 3:22:17 AM11/11/10
to cytoscap...@googlegroups.com, Scooter Morris
Hi,
 I am really thankful for the quick reply and I appreciate the help a lot.
 I am continuing my work with the help of this code.
thanks for the quick response




--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To post to this group, send email to cytoscap...@googlegroups.com.
To unsubscribe from this group, send email to cytoscape-disc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cytoscape-discuss?hl=en.




--
Best Regards,
    - Ash -

Reply all
Reply to author
Forward
0 new messages