My First Playground

node v6.17.1
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const Graph = require("node-dijkstra"); const route = new Graph(); route.addNode('A', { A: 0, B: 1 }); route.addNode('B', { A: 1, C: 2, D: 4 }); route.addNode('C', { B: 2, D: 1 }); route.addNode('D', { C: 1, B: 4 }); route.path('A', 'D');
Loading…

no comments

    sign in to comment