Live data from Hacker News

Graphviz: Open-source graph visualization software

graphviz.org

61–70 of 156 posts

Re: Graphviz: Open-source graph visualization software

#62
post #33

Earlier quoted context omitted.

That looks really cool. Would you possibly share the script?

It's part of the repo. https://github.com/enter-haken/schema/blob/master/schema.sh It's a mixture of sed, awk and sql.

Oh I did take a quick look at the repo but didn't notice it was in the SQL. Thank you!

Re: Graphviz: Open-source graph visualization software

#63
post #2

I used Graphviz years ago to generate diagrams for NLP structures, and other visualizations. It was the only thing that could do what I needed. I ended up moving to Processing/P5 to create "spring physics" interactive graphs, then wrote my own eigenvector embedding visualization that could project into 3D space and had a moveable camera so you could fly around with WASD and mouse. Cool stuff! Graph visualization and…

Do you happen to have any open source code for this that I could look at. I am looking to do some interactive graph viz and would love to see if there is something I could reference

Sure. Let me look it up. It should be all here, at my OpenProcessing (at least all the code I wrote for myself personally):

https://openprocessing.org/user/15252?view=sketches

Basically any sketch that has "3d" or "aspekt" in the title is on that track. But you can also see from the thumbnail many of them are 3d world related. The navigation of that site is pretty tricky...but you can find the source code by:

- Click on a sketch

- Click on the 'abacus' control menu to the right

- Click on the files tab in that

Source code in Java should be available there.

Please remember it requires a version of Processing in Java to work. I worked on this in 2011/2012 so you may need to figure out which Processing version that is.

Also, here's a youtube video of flying around one of my sketches:

https://www.youtube.com/watch?v=lNshrYO7Kf4

and here are some more videos:

https://www.youtube.com/channel/UCw-6wNeif6-l7oqippdORcw

Re: Graphviz: Open-source graph visualization software

#66
I've used Graphviz for many years and my main gripe with it is the lack of customization. Yes, there's "some" customization, but there's a point (not too far from the initial style) where, if you don't like the output, you're out of luck and might as well redraw it using draw.io or some other WYSIWYG editor.

Re: Graphviz: Open-source graph visualization software

#67

I've never been that happy with the output from any of the different graphviz engines. I'd like to see a UI graph editing tool which can import and export .dot format, but also allows manually moving nodes (which I guess wouldn't get exported unless arbitrary metadata is supported), and ofc exports to svg. Maybe there's already something similar I haven't stumbled across yet? I guess my use case is mainly swimlanes a…

Look at the group attribute, it can help with vertical (off-rank) alignment

Re: Graphviz: Open-source graph visualization software

#68
For the ASCII lovers, I made this simple web page to help convert dot to text diagrams:

https://dot-to-ascii.ggerganov.com

It's useful to embed diagrams directly in source code for example.

Here is a sample [0]:

                     0.6
                 ┌─────────────────────────┐
                 ▼                         │
  ┌───┐  0.8   ┌───┐  0.1   ┌───┐  0.7   ┌───┐  0.2   ┌───┐
  │ d │ ─────▶ │   │ ◀───── │ e │ ─────▶ │ a │ ─────▶ │ b │
  └───┘        │ c │        └───┘        └───┘        └───┘
               │   │  0.4                               │
               │   │ ◀──────────────────────────────────┘
               └───┘
And a more complex example from a project of mine [1]:

  ┌─────────────┐
  │ @tweet2doom │
  │             │
  │    ROOT     │ ◀─────┐
  └─────────────┘       │
    ▲                   │
    │                   │
    │                   │
  ┌─────────────┐     ┌─────────────────┐
  │  @player1   │     │    @player2     │
  │             │     │                 │
  │ /play 50-u  │     │ /play 30-l,50-f │
  └─────────────┘     └─────────────────┘
    ▲                   ▲
    │                   │
    │                   │
  ┌─────────────┐     ┌─────────────────┐
  │ @tweet2doom │     │   @tweet2doom   │
  │             │     │                 │
  │    Video    │     │      Video      │
  │             │     │                 │
  │  Start: 1   │     │    Start: 1     │
  │   End:50    │     │     End:80      │
  └─────────────┘     └─────────────────┘
                        ▲
                        │
                        │
  ┌─────────────┐     ┌─────────────────┐
  │ @tweet2doom │     │                 │
  │             │     │    @player2     │
  │    Video    │     │                 │
  │             │     │   /play 30-l    │
  │  Start: 80  │     │                 │
  │   End:110   │ ──▶ │                 │
  └─────────────┘     └─────────────────┘
[0] https://dot-to-ascii.ggerganov.com/?src_hash=476410d3

[1] https://dot-to-ascii.ggerganov.com/?src_hash=1ee7dcfe

Post reply on HN