GraphStream Users

Archives de la liste Aide


Re: Force graph to be undirected


Chronologique Discussions 
  • From: Stefan Balev <stefan.balev AT gmail.com>
  • To: graphstream-users AT litislab.fr, Voituret Félix <felix.voituret AT univ-avignon.fr>
  • Subject: Re: Force graph to be undirected
  • Date: Thu, 10 Jan 2013 14:24:57 +0100

Hi,

If your question is how to hide the arrows, it's quite simple. Use something like:

graph.addAttribute("ui.stylesheet", "edge { arrow-shape: none; }");

For more information about styling your graphs, have a look here
and here

Hope it helps,

--
Stefan



2013/1/10 Voituret Félix <felix.voituret AT univ-avignon.fr>
Hello,

I'm currently use GraphStream for a research project where i need to display a transportation network,
using the MATSim framework data structure.

I wrote a custom Graph structure that extends the AbstractGraph class so as to interface with this data structure. That is actually working well, but the thing is, with the basic viewer, the graph was drawn as an undirected graph which fit well with the purpose. Since i set the viewer as the advanced one, the graph is now drawn as a directed graph as you can see is the attached picture.

So i would like to now if there is any way to force the graph to be drawn as a undirected graph (well, mix two edges between two nodes) when i use the advanced viewer.

Regard.
Félix Voituret.




Archives gérées par MHonArc 2.6.16.

Top of page