Testing grounds for drawing a directed graph in canvas