add graph.js function draw edge straight