createGraph doesn't exist
otse opened this issue · 2 comments
otse commented
There's no createGraph function to be found anywhere!
The module's ambient file only exposes three functions
export function aStar, aGreedy and nba.
otse commented
Ah, there is a different repo for that named ngraph.graph to use alongside ngraph.path
anvaka commented
You are correct. the createGraph
comes from ngraph.graph
:
So, using npm
:
npm i ngraph.graph
and then
let createGraph = require('ngraph.graph');
let graph = createGraph();