Graph-drawing using Canvas for edges, CSS for layout