Working prototype of line graph.