What I need is a JavaScript implementation of pure mathematical graphs. To be clear I DON\'T mean graph visualization libraries like sigma.js or d3.js.
I have made a graph algorithms library https://github.com/devenbhooshan/graph.js in javascript. Library is clean and very simple. It is very easy to use. Just plug the graph.js file in your project and start using it.