How to run on Server or Front-End Server side Install node call node useAlgo.js Run in Browser Install browserify Run browserify useAlgo.js > bundle.js Include bundle.js into your index.html Open index.html The graph library we are using ngraph, read the docs Its hosted as npm package npm install ngraph.graph to generate npm_modules folder with graph library Nice tutorial to Node slides