const Graph = require('node-dijkstra');
const A = Symbol('A');
const B = Symbol('B');
const C = Symbol('C');
const a = new Map();
a.set(B, 1);
a.set(C, 2);
const b = new Map();
b.set(A, 2);
const graph = new Map();
graph.set(A, a);
graph.set(B, b);
const route = new Graph(graph);
route.path(A, B);