GraphStream Users

Archives de la liste Aide

Re: Issues with the dot format.

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: graphstream-users AT
  • Subject: Re: Issues with the dot format.
  • Date: Tue, 12 Jul 2011 12:11:54 +0200

Hi Nicolas,

Bug in dot sink has been fixed e813d08. Problem is that we
should iterate over edges to know if graph is connected or
not and this is not possible with streams.

So solution is to use the new method setDirected(boolean) of
FileSinkDOT :

| Graph g = ...;
| FileSinkDOT dotOut = new FileSinkDOT();
| dotOut.setDirected(true);
| dotOut.writeAll(g, "path/to/dot");

Hope this helps ...


2011/7/12 Antoine Dutot <antoine.dutot AT>

2011/7/12 Nicolas Quattropani <nicolas.quattropani AT>:
> Hi,
> I am now working with the dot format and I have some remarques / questions.
> My first problem is that it's not working because the "digraph" keyword
> should be written instead of "graph". Then we obtain this pdf file:

Yes, this is a bug. We are adding a way to specify explicitely before
exporting that the graph is directed. A better way will be added in
the future.

However we are actually working on the DOT format. GML, Pajek, Lgl and
ncol have just been added on git, DOT is on the list (since our
support of DOT is quite old).

> We can see that the composed names with the "-" are not properly handled.
> There is no problem when those names are surrounded by quotation mark "" .

We are correcting it on git actually. This should be available soon.

> Finally, how can I apply some of my css aspects in the pdf generated by
> GraphVitz ? I guess I have to look toward graphviz but I was wondering if
> there is an easy way to do that and modify the shapes aspect of my nodes
> (for example) in the pdf ?

This is not yet possible, but will be in import and export in the code to come.

Thanks, for these good remarks,



Guilhelm Savin
PhD Student of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page