Live data from Hacker News

Graphviz: Open-source graph visualization software

graphviz.org

101–110 of 156 posts

Re: Graphviz: Open-source graph visualization software

#101
Did anyone see the new pathing algorithm for connecting graph nodes that made some rounds on twitter? It looked way better than a normal force-directed graph. I can’t remember what it was exactly, and have lost the reference, but it was a side effect of solving what looked like a traffic problem.

Re: Graphviz: Open-source graph visualization software

#102

Did anyone see the new pathing algorithm for connecting graph nodes that made some rounds on twitter? It looked way better than a normal force-directed graph. I can’t remember what it was exactly, and have lost the reference, but it was a side effect of solving what looked like a traffic problem.

Stochastic gradient descent optimization of the layout based on distances in walks in the graph?

Re: Graphviz: Open-source graph visualization software

#103
post #9

Javascript and html version needed.

- Dagre (deprecated, unfortunately): https://github.com/dagrejs - Viz.js (via Emscripten): https://github.com/mdaines/viz.js ; Online demo: http://viz-js.com/

An alternative to dagre-d3 is d3-dag: https://github.com/erikbrinkman/d3-dag

I've had good success with cytoscapejs as well, integrating with react so the graph will animate layout on transition. I use elk, which is apparently superior to sugiyama (the algorithm graphviz uses for force-directed dag layouts).

Re: Graphviz: Open-source graph visualization software

#104
The `gvpr` tool in graphviz deserves more recognition.

Graphviz, at its core, is a simple graph description language (DOT), which allows progressive enhancement, and a bunch of auto-layout tools where some double as renderers.

The double-duty of the layout/renderers masks GraphViz's true power, which is that you can create a pipeline modifying your graph source (confusingly referred to as '.dot' files), progressively adding attributes.

This is where gvpr comes in. While most are familiar with GV's all-in-one layout+rendering tools like `dot` or `neato`, gvpr is a generic Awk-like programming tool that iterates over nodes and edges. With it, you can implement any layout algorithm you like (or not!), to specify part or all of the attributes of your graph (like positioning and style), to then be rendered using `dot` to the format of your choice.

Re: Graphviz: Open-source graph visualization software

#105
post #4

Here are some cool things I've done recently with graphviz: 1. Draw "sketch" style graphs using https://sketchviz.com/new 2. Draw graphs of memory usage in golang programs (using pprof): https://graphviz.org/Gallery/directed/pprof.html 3. Embed graphviz into Sphinx docs (shameless self-promotion: https://docs.robusta.dev/master/catalog/triggers/index.html#... )

Very cool. About Sketchviz 1) is there an option to make the graph horizontal instead of vertical? 2) can you make the svg option separate, instead of hidden behind the PNG button (with CTRL key)? 3) how did you do the handwriting style?

Yes, the name of this attribute is rankdir.

See in the docs: https://graphviz.org/docs/attrs/rankdir/

In the sketch example:

  digraph G {
    rankdir="LR";
    graph [fontname = "Handlee"];
    ...

Re: Graphviz: Open-source graph visualization software

#106
post #48

Earlier quoted context omitted.

Depending on what you're doing Cytoscape.js might also work. https://js.cytoscape.org/

I found cytoscape to be annoying because it assumes you are using npm.

Not sure what you mean, you can install it other ways, and the dist is packaged up in a variety of ways. (https://github.com/cytoscape/cytoscape.js)

Re: Graphviz: Open-source graph visualization software

#107
Graphviz was excellent for documenting my sailboat's electrical, plumbing, and data networks: https://github.com/aaronaxvig/hunter-376-docs

Odds are slim that its future owner will have the skills to work with such a resource. But I did leave a couple printouts on the boat before leaving it!

Re: Graphviz: Open-source graph visualization software

#108

The `gvpr` tool in graphviz deserves more recognition. Graphviz, at its core, is a simple graph description language (DOT), which allows progressive enhancement , and a bunch of auto-layout tools where some double as renderers. The double-duty of the layout/renderers masks GraphViz's true power, which is that you can create a pipeline modifying your graph source (confusingly referred to as '.dot' files), progressivel…

I'm actually disappointed that `gvpr` isn't mentioned at all on GraphViz's main page, because I think it's its most powerful tool. All I could find are manpages, and not even on GraphViz's own website!

https://manpages.debian.org/testing/graphviz/gvpr.1.en.html

Re: Graphviz: Open-source graph visualization software

#110

The `gvpr` tool in graphviz deserves more recognition. Graphviz, at its core, is a simple graph description language (DOT), which allows progressive enhancement , and a bunch of auto-layout tools where some double as renderers. The double-duty of the layout/renderers masks GraphViz's true power, which is that you can create a pipeline modifying your graph source (confusingly referred to as '.dot' files), progressivel…

I'm actually disappointed that `gvpr` isn't mentioned at all on GraphViz's main page, because I think it's its most powerful tool. All I could find are manpages, and not even on GraphViz's own website! https://manpages.debian.org/testing/graphviz/gvpr.1.en.html

I second the GVPR praise. Pretty powerful.
Post reply on HN