<div dir="ltr">Hi Chris <br><br>> I want to keep my software free from Graphyiz complex<br>
dependencies<br><br>So it is better to create a *.dot file where you describe your graph (in your program) then build it with GraphViz once your program is closed. Alpar gives you the way to write this dot file. <br>
<br>Here is an example of a dot file (circuit.dot) that describes a circuit of length 3 : <br><br>digraph G { <br>a -> b ; <br>b -> c ; <br>c -> a ;<br>}<br><br>Type the following command from the console (Graphviz needs to be installed) and you get the circuit in jpeg format: <br>
<br>dot -Tjpg -ocircuit.jpg circuit.dot<br><br>You can change the layout for example with the following command : <br><br>neato -Tjpg -ocircuit.jpg circuit.dot<br><br>It is worth trying <br><br>>Of course, if anyone takes the hassle of developing a configurable<br>
>general purpose .dot exporter, we are very happy to add it to lemon.<br><br>What are the required skills to do so ? <br><br>Regards, <br><br>Cherif<br><br><br><div class="gmail_quote">Le 23 février 2012 05:47, Alpár Jüttner <span dir="ltr"><<a href="mailto:alpar@cs.elte.hu" target="_blank">alpar@cs.elte.hu</a>></span> a écrit :<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<div><br>
> Does lemon library exports in .dot format?<br>
<br>
</div>Not yet, but it is easy to do by hand. For example if you need no extra<br>
customization, this will do the job:<br>
<br>
std::cout << "digraph G {" << std::endl;<br>
for(ListGraph::ArcIt a(g);a!=INVALID;++a)<br>
std::cout << "n" << <a href="http://g.id" target="_blank">g.id</a>(g.source(a))<br>
<< " -> " << "n" << <a href="http://g.id" target="_blank">g.id</a>(g.source(a))<br>
<< std::endl;<br>
std::cout << "}" << std::endl;<br>
<br>
<br>
The dot language is described here:<br>
<a href="http://www.graphviz.org/content/dot-language" target="_blank">http://www.graphviz.org/content/dot-language</a><br>
This one is a nice (though a bit outdated) tutorial to the .dot<br>
language: <a href="http://www.graphviz.org/pdf/dotguide.pdf" target="_blank">http://www.graphviz.org/pdf/dotguide.pdf</a><br>
<br>
Of course, if anyone takes the hassle of developing a configurable<br>
general purpose .dot exporter, we are very happy to add it to lemon.<br>
<br>
<br>
Regards,<br>
Alpar<br>
<div><div><br>
> Regards<br>
> Chris<br>
><br>
> On Wed, Feb 22, 2012 at 11:01 AM, Cherif Mouaouia Bouzid<br>
> <<a href="mailto:cherifmouaouia.bouzid@gmail.com" target="_blank">cherifmouaouia.bouzid@gmail.com</a>> wrote:<br>
> > Hi Chris<br>
> ><br>
> > There exists a software called Graphviz that proposes different kinds of<br>
> > layouts, see :<br>
> ><br>
> > <a href="http://www.graphviz.org/About.php" target="_blank">http://www.graphviz.org/About.php</a><br>
> ><br>
> > You can either try to integrate Graphviz to your code as a library or<br>
> ><br>
> > create a file in your code where you describe your graph in *.dot format<br>
> > then build it with GraphViz outside the program.<br>
> ><br>
> > Regards,<br>
> ><br>
> > Cherif<br>
> ><br>
> > Le 21 février 2012 15:31, Chris Margiolas <<a href="mailto:chrmargiolas@gmail.com" target="_blank">chrmargiolas@gmail.com</a>> a écrit :<br>
> >><br>
> >> Hello,<br>
> >><br>
> >> I am checking lemon for my project, which requires complex computations<br>
> >> over graphs and I would like to know if there is any advanced layout system<br>
> >> for exporting graphs to typical picture formats. I saw some basic outputs<br>
> >> but I would like to have better representation results.<br>
> >><br>
> >><br>
> >> Regards<br>
> >> Chris<br>
> >> _______________________________________________<br>
> >> Lemon-user mailing list<br>
> >> <a href="mailto:Lemon-user@lemon.cs.elte.hu" target="_blank">Lemon-user@lemon.cs.elte.hu</a><br>
> >> <a href="http://lemon.cs.elte.hu/mailman/listinfo/lemon-user" target="_blank">http://lemon.cs.elte.hu/mailman/listinfo/lemon-user</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> _______________________________________________<br>
> Lemon-user mailing list<br>
> <a href="mailto:Lemon-user@lemon.cs.elte.hu" target="_blank">Lemon-user@lemon.cs.elte.hu</a><br>
> <a href="http://lemon.cs.elte.hu/mailman/listinfo/lemon-user" target="_blank">http://lemon.cs.elte.hu/mailman/listinfo/lemon-user</a><br>
><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Mouaouia Cherif BOUZID </div><br>
</div>