GraphStream Users

Archives de la liste Aide

changing basic node/edge attributes in displayed graphs

Chronologique Discussions 
  • From: Luc Hogie <luc.hogie AT>
  • To: graphstream-users AT
  • Subject: changing basic node/edge attributes in displayed graphs
  • Date: Mon, 27 Jun 2011 16:15:05 +0200

Hi all,

My first post on GS mailing-list... Hope it won't hurt. :)

We've been using GS pre-1.0 for a while in the network simulator we're developing at INRIA/UNSA. I now switching to GS 1.0.
Basically we are dealing with large graphs whose the displayed properties change very frequently. In practice, the simulation process alters the basic properties of nodes/edges: their color, shape and size.

I didn't find a simple and intuitive way to change the value of such properties in the new version of GS. I'm merely willing to do something


To do this, it seems that I now need to produce a CSS which declares a class for every node in the graph (but what if the number of nodes changes?), with the adequate values... This would be difficult to write and would be inefficient.

What about an access to lower level graphics primitives of GS? Anyhow the CSS parser should perform a call to some setColor(Color) method on some object... Is there a way to bypass CSS, hence directly invoke the setColor() (and others) method?

Just wanna do simple things... No need (want) of CSS. :)

Cheers, and long-life to GraphStream!

Luc Hogie - CNRS Research Engineer
luc.hogie AT
+33 4 89 73 24 25 (office)
+33 6 80 91 40 71 (mobile)
Skype ID: luchogie

Archives gérées par MHonArc 2.6.16.

Top of page