Re: [Cytoscape-discuss] Find a node inside a net with its name only

5 views
Skip to first unread message
Message has been deleted

Gang Su

unread,
Nov 13, 2009, 11:08:00 AM11/13/09
to cytoscap...@googlegroups.com
I don't exactly know what you want to do, but you may just iterate
over all the nodes:

Cytoscape.getCurrentNetwork().getNodeIndicesArray()

On Fri, Nov 13, 2009 at 6:05 AM, Franktwis <francesco...@gmail.com> wrote:
> Hi,
> how can I find a node inside a net I've build? I used the following
> functions to create N nodes and add them to the net.
>
> CyNode node0 = Cytoscape.getCyNode("rain", true);
> cyNetwork.addNode(node0);
>
>
> then I want, in another method, create associations between two
> nodes..
> CyEdge edge0 = Cytoscape.getCyEdge(node0, node1,
> Semantics.INTERACTION, "pp", true);
> cyNetwork.addEdge(edge0);
>
>
> but... how can I find node0 and node1 in another function having only
> the CyNetwork object?
>
> I have only the name of the node (ie. Rain) but how can I find a node
> in a net with his name only? I cannot find functions in Cytoscape and
> CyNetwork classes doing this.
>
> --
>
> 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.
> For more options, visit this group at http://groups.google.com/group/cytoscape-discuss?hl=.
>
>
>
Reply all
Reply to author
Forward
0 new messages