ngraph.path is a JavaScript library that implements efficient pathfinding algorithms for graphs, primarily designed to compute shortest paths in weighted or unweighted networks. It provides a clean API for constructing graph models, assigning weights to edges, and querying for optimal routes between nodes, making it useful for routing, games, maps, and network optimization. The library includes several algorithm implementations such as A*, Dijkstra’s, and breadth-first search, each suited to different types of graph structure and performance needs. It can be integrated with visualization libraries like VivaGraphJS to animate or highlight computed paths in a rendered graph, enabling interactive routing features. Its data structures and algorithm choices are optimized for performance and memory efficiency, so even large meshes or road networks can be navigated interactively. With its standalone design, ngraph.path can be used in browser apps, server-side Node.js services.

Features

  • Shortest path algorithms (A*, Dijkstra’s, BFS)
  • Weighted and unweighted graph support
  • Clean, simple API for building and querying graphs
  • Optimized for performance and memory efficiency
  • Integrates with graph visualization libraries
  • Usable in both browser and Node.js contexts

Project Samples

Project Activity

See All Activity >

Categories

Algorithms

License

MIT License

Follow ngraph.path

ngraph.path Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ngraph.path!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Algorithms

Registered

10 hours ago