GraphStream Users

Archives de la liste Aide

Re: How to send a node's attribute to another node

Chronologique Discussions 
  • From: daniele visaggio <visaggio.daniele AT>
  • To: graphstream-users AT, guilhelm savin <guilhelm.savin AT>
  • Subject: Re: How to send a node's attribute to another node
  • Date: Sat, 12 Jan 2013 14:19:09 +0100

Hi Guilhelm,

thanks for the prompt reply. Basically I need to move (something like cut 'n paste) an attribute from one node to another. Let's say nodeA has attribute1. I need to move it to nodeB. After the operation nodeA won't have attribute1 anymore and nodeB will have it. Maybe a method like "node.sendAttribute()" or something like this :-)

Sorry for the poor explanation in my previous mail.

Best Regards

2013/1/12 guilhelm savin <guilhelm.savin AT>

Hi Daniele,

I  am not sure to understand what you want to do.
The following should work :

Node a, b;
b.setAttribute("attr1", a.getAttribute ("attr1"));

Is that you want to do ?


Le 12 janv. 2013 09:58, "daniele visaggio" <visaggio.daniele AT> a écrit :

Hi all,

each nodes inside my graph has various attributes. Every attribute consist of a string. I need a way to take a node's attribute and "transmit" it to another node.

Is there a specific method to do so? Sadly is down so I can't check the documentation.

Thank you in advance,


Archives gérées par MHonArc 2.6.16.

Top of page