Skip to content
This repository

graph visualization #5

Closed
juanpr2 opened this Issue · 6 comments

3 participants

juanpr2 Jason Wolfe Jeroen van Dijk
juanpr2

Is there a way to visualize the created graphs?

Jason Wolfe
Owner

Nothing built-in yet. We use something like this code:

(defn graph-edges [g]
  (for [[k node] g
        parent (keys (plumbing.fnk.pfnk/input-schema node))]
     [parent k]))

to generate a list of edges, and then feed this into another component that generates a .dot file for graphviz from this edge list. If there's interest we can work on open-sourcing this component -- there's not much there.

juanpr2

Very interesting, would like to see that component. Thanks.

Jason Wolfe
Owner

Here it is as a Gist for now, until we get the chance to clean it up and release it properly:

https://gist.github.com/w01fe/4958807

(Could probably be simplified considerably, this is part of a more general graphviz thing I wrote long ago).

Jeroen van Dijk

Here is another (very minimal example): https://gist.github.com/jeroenvandijk/4959201

Jason Wolfe
Owner

Nice -- thanks!

Jason Wolfe
Owner

Closing for now -- we'll look into doing this at some point, but if you want something nice in the near future you're probably best off rolling your own (possibly using https://github.com/ztellman/rhizome)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.