From: Peter H. <gr...@he...> - 2010-12-21 18:03:48
|
On Tue, 21 Dec 2010 22:50:35 Stéphane Charette wrote: > Also note that 'dot' is one of a half-dozen layout engines. There are > other ones, such as 'neato', and ...? I forget the other names, but > you'll find them on the graphviz site. > > Neato has a lot of potential for us. I tried playing with it for about an > hour the other night when I replied to your other e-mail, but I don't have > time to figure out the details. It works by laying out the graph, > ...well...an example is worth 1000 words: > > (warning, 7mb file) > http://charette.no-ip.com:1234/Charette/dot.png > > (warning, 2mb file) > http://charette.no-ip.com:1234/Charette/neato.png I tried neato and got very similar results, with nodes overlapping badly. With options, it is possible to separate them, but the separation is too great, giving small nodes and long lines (edges) between them. > So while 'dot' is very grid-like in nature, 'neato' feels much more fluid. > But in the short time I looked into it the other night, I couldn't figure > out what needs to change in the .gv file to fix the node spacing. > > Anyway, all this to say we're barely scratching the surface when it comes > to GraphViz. If anyone wanted to spend some time going through the > GraphViz docs and trying things out with their genealogy graphs, I'm sure > we could incorporate suggestions easily into Gramps. I'll try to look into it further, but we are away for a couple of weeks after Christmas, so it might be in January some time. However, from my experimenting so far, it looks like the mclimit set to 99 (as in Gramps) is about right, rather than the default 30. In the files I tried, the optimum was usually reached after 40 or 50 runs (lines of dot -v) and increasing mclimit above 99 didn't help. regards Peter |