anvaka/ngraph.path ? reverse-engineered prompt

Reverse engineered prompt

Build me a fast JavaScript library for finding paths in a graph, like the one used for route finding between nodes. It should work on arbitrary graphs, support basic shortest path search, weighted edges, and a smarter A star mode where I can give a heuristic to guide the search using node data like coordinates.

I also want it to handle directed graphs when needed, and let me mark some links as blocked so they get ignored during search. Please make it easy to use from Node or the browser, and include a simple demo or example showing how to create a graph and find a path between two nodes.

If you need to check anything about the current recommended approach, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab