graphlib a reference graph implementation in javascript. graph structure is created using adjacency lists