interactive graph using canvas to depicture dependecies