[Lemon-user] Question for layout capabilities.

Alpár Jüttner alpar at cs.elte.hu
Thu Feb 23 05:47:19 CET 2012


Hi,

> Does lemon library exports in .dot format?

Not yet, but it is easy to do by hand. For example if you need no extra
customization, this will do the job:

std::cout << "digraph G {" << std::endl;
for(ListGraph::ArcIt a(g);a!=INVALID;++a)
  std::cout << "n" << g.id(g.source(a))
            << " -> " << "n" << g.id(g.source(a))
            << std::endl;
std::cout << "}" << std::endl;


The dot language is described here:
http://www.graphviz.org/content/dot-language
This one is a nice (though a bit outdated) tutorial to the .dot
language: http://www.graphviz.org/pdf/dotguide.pdf

Of course, if anyone takes the hassle of developing a configurable
general purpose .dot exporter, we are very happy to add it to lemon.


Regards,
Alpar

> Regards
> Chris
> 
> On Wed, Feb 22, 2012 at 11:01 AM, Cherif Mouaouia Bouzid
> <cherifmouaouia.bouzid at gmail.com> wrote:
> > Hi Chris
> >
> > There exists a software called Graphviz that proposes different kinds of
> > layouts, see :
> >
> > http://www.graphviz.org/About.php
> >
> > You can either try to integrate Graphviz to your code as a library or
> >
> > create a file in your code where you describe your graph in *.dot format
> > then build it with GraphViz outside the program.
> >
> > Regards,
> >
> > Cherif
> >
> > Le 21 février 2012 15:31, Chris Margiolas <chrmargiolas at gmail.com> a écrit :
> >>
> >> Hello,
> >>
> >> I am checking lemon for my project, which requires complex computations
> >> over graphs and I would like to know if there is any advanced layout system
> >> for exporting graphs to typical picture formats. I saw some basic outputs
> >> but I would like to have better representation results.
> >>
> >>
> >> Regards
> >> Chris
> >> _______________________________________________
> >> Lemon-user mailing list
> >> Lemon-user at lemon.cs.elte.hu
> >> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
> >
> >
> >
> >
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
> 





More information about the Lemon-user mailing list