Live data from Hacker News

Graphviz in the browser

mdaines.github.io

61–70 of 74 posts

Re: Graphviz in the browser

#61
post #58
post #20

I could never use this to make a callgraph in a project. Probably because I have two many lines. How does a .dot file looks for you?

Doxygen ( http://www.stack.nl/~dimitri/doxygen ) automatically creates callgraphs from sources code using graphviz. A good intro is at: https://romanegloo.wordpress.com/2012/03/29/generating-a-cal...

Unfortunately not supporting my language.

Re: Graphviz in the browser

#62
post #60

Earlier quoted context omitted.

Ah I see, since you're on the inside I'll ask, why haven't you (i.e. yworks) implemented the so-called delta drawing for flow charts? Seems like that would be a real differentiator? Or have you and I haven't been paying attention?

I have to admit, I'm not familiar with that¹. Do you have a link to a paper or something; I could ask our layout team. But probably the answer will be that few customers asked so far and/or it might be fairly easy to accomplish with customizing one of the existing layout algorithms. We did something similar with our example BPMN implementation where a pre-processing step applied constraints for the hierarchic layout…

Your ¹ sounds like the Sankey diagram[1]. I only know about these because at one time matplotlib advertised support. And because of the classic diagram that Tufte promotes [2].

[1] https://en.wikipedia.org/wiki/Sankey_diagram

[2] https://en.wikipedia.org/wiki/Charles_Joseph_Minard#Work

Re: Graphviz in the browser

#64

https://teespring.com/fr/robot-1846#pid=2&cid=2397&sid=front https://teespring.com/fr/get-home-run#pid=2&cid=581&sid=fron...

Is this somehow relevant to the topic or are you just blindly advertising your shirts?

I like the robot one, but I don't believe that these in any way contribute to the post.

Re: Graphviz in the browser

#66
post #36
post #30

Earlier quoted context omitted.

Sometimes the matrix, like for example the adjacency matrix for Wikipedia internal links, will be very sparse. Another reason to use relations rather than an inefficient, mostly empty implicit data structure. That Wikipedia adjacency matrix would be interesting to visualize, though. There are tools out there for visualizing sparse matrices as graphs: http://yifanhu.net/GALLERY/GRAPHS/

"using relations" or a particular data structure wasn't at all the point of this particular discussion. The point was that, for a simple directed graph, the edges represent a binary relationship. While for a weighted directed graph, it represents a relationship-matrix. For the graph being non-directed this would mean, that the relationship(-matrix) is symmetric. Meaning that any algebra, algorithm, proof, etc. on gra…

Your last sentence is pretty much a summary of my attempt to understand the amplituhedron, and as far as I've gottan

Re: Graphviz in the browser

#68
post #10

My Graphviz in browser with embedable alien URL. https://graphviz.gomix.me/ Source: https://gomix.com/#!/project/graphviz Sample graph in SVG: https://graphviz.gomix.me/graphviz?layout=dot&format=svg&mod...

That's much nicer than mine at http://fiane.mooo.com:8080/graphviz/ , I was using another online graphviz service a while ago, that suddenly went offline - my google foo didn't find any other that worked - so I decided it was a nice starting project for learning some web development and Go.

Re: Graphviz in the browser

#69

Support for this would be very useful in a Jupyter notebook.

Wouldn't Jupyter do most of the heavy lifting on the server side so it would be more fitting to render with graphviz there?

Definitely. Jupyter makes it very easy to display SVG, which graphviz (naturally) targets out of the box - as an example, I've used this before in a project to display Python ASTs ( https://github.com/hchasestevens/show_ast ).

Re: Graphviz in the browser

#70
post #55
post #2

This is a beautiful thing. D3 can do a lot but very few programs have replicated what graphviz's dot can do.

I still think dot could be reimplemented in d3. I agree dot is very expressive but it's starting to feel like TeX where it works great until you need to mix it into more recent applications.

dagre.js uses DOT. https://github.com/cpettitt/dagre-d3
Post reply on HN