News for hackers. Stuff that matters.
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by Buetol on Monday February 01, 2016 @04:50PM (#11015780)
This looks really similar to what you want to do but with d3 and interactive: http://maurizzzio.github.io/greuler/#/examples/dfs (click "run algorithm")
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by mapio on Monday February 01, 2016 @05:32PM (#11016138)
That's really nice! I like graphviz layouts because they use curved arcs (that sometimes make graphs look much better). How difficult would be to use it with d3?
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by tunesmith on Monday February 01, 2016 @05:51PM (#11016277)
The relevant algorithm is Sugiyama, and there's an unmaintained, but working plugin for d3 called dagre-d3.
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by mapio on Tuesday February 02, 2016 @12:16PM (#11020760)
Cool, I'm totally new to d3, but it seems very very interesting. It's nice to know that a good layout plugin is available. Thanks for the info!
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by lifeisstillgood on Monday February 01, 2016 @08:47PM (#11017175)
I'm not complaining but interested - why does this not work on my iPhone? Safari does not support it? Phones in general do not provide some basic resource needed?

I have usually dismissed JavaScript fails on iPhones as one of those things, but it is hard to argue with the idea that the mobile world is now the predominant platform?

Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by mapio on Tuesday February 02, 2016 @12:14PM (#11020747)
If I open the GitHub page on my iPhone I can see the graph animating. It's just an animated gif, so it should not really be a problem of Javascript at all (there is none involved). On the other hand, if you are trying to use the Jupyter notebook, I've no idea if it works on iPhone.

If you have a specific issue, can I please ask you to report it on GitHub Issues?

Thanks!

Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by minimaxir on Monday February 01, 2016 @04:56PM (#11015828)
Coincidentally I released an experimental graph animation video using graph-tool for rendering and ffmpeg for conversion: https://www.youtube.com/watch?v=TywrMtBcgeI

The technique works well for engaging data visualization, although the code is somewhat tedious.

Are the ImageMagick commands included in your Python module? I took a look and didn't see a way to create the GIF. (EDIT: found it; it is the gif() function in render.py. I am dumb)

Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by mapio on Monday February 01, 2016 @05:31PM (#11016125)
No, I am dumb and should comment the code (and provide few usage examples). I wrote it in a hurry yesterday night, it was just an hack and it ended up on the frontpage of HN.
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by venning on Monday February 01, 2016 @07:50PM (#11016951)
You are not dumb. Releasing un-commented code that works is still releasing code that works.

This actually solves a problem I was having. Thanks for sharing it.

Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by lifeisstillgood on Monday February 01, 2016 @08:47PM (#11017177)
Bravo
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by chris_wot on Tuesday February 02, 2016 @04:29AM (#11018454)
No, you are awesome. Thank you!
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by mapio on Tuesday February 02, 2016 @12:15PM (#11020753)
I'm flattered (and blushing) :-)
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by chris_wot on Wednesday February 03, 2016 @07:17PM (#11031028)
Anyone who puts up something so useful on GitHub and is so nice as to apologise for not commenting their code is pretty awesome and deserves to be thanked. Honestly, showing you my appreciation is the very least I can do. Keep being great!
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by mapio on Thursday February 04, 2016 @05:21AM (#11033038)
:-)
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by benbjohnson on Monday February 01, 2016 @04:42PM (#11015713)
I really like the idea of animating graphviz graphs. It definitely helps to make them clearer.

I know it's a proof of concept but one suggestion would be to animate the line drawing itself. That's difficult if you're outputting a raster format but if you're feeling adventurous then you could output to SVG and draw the lines using the stroke-dashoffset trick:

https://css-tricks.com/svg-line-animation-works/

Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by mapio on Monday February 01, 2016 @04:46PM (#11015751)
The `gvanim.jupyter` module is actually using SVG, so that would be awesome! Would you like to contribute? I'll be glad to accept a pull request :) I have opened an issue https://github.com/mapio/GraphvizAnim/issues/3 to keep track of your suggestion.
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by chris_wot on Tuesday February 02, 2016 @04:28AM (#11018447)
Probably off topic a bit - but is there any tool that will automatically analyze C++ code and create sequence diagrams?
Re:Show HN: GraphvizAnim, a tool to create animated graphs, ... by chris_wot on Tuesday February 02, 2016 @04:33AM (#11018469)
I'm going to answer my own question:

https://github.com/animatedb/oovaide