vilterp / dagview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DagView

Takes SVG output from GraphViz, and returns HTML with some JS and CSS injected into that makes it interactive.

When you open the resulting HTML in a browser and hover over a node:

  • The node gets highlighted red
  • The edges coming out of it become red
  • The edges coming into it become green
  • The nodes on the end of out edges are circled in red
  • The nodes on the end of in edges are circled in green

It looks like this:

dag view Live Demo

Usage

cat myfile.dot \
  | dot -Tsvg \
  | dagview \
  > out.html

...and open up out.svg in your browser.

Installation

  1. install Go (TODO: prebuilt binary...)
  2. go get github.com/vilterp/dagview

About


Languages

Language:HTML 99.3%Language:Go 0.7%