got a working demo using dagre (demo.html); things aren't terribly organized at the moment