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
Simplify Purchasing For Your Business Icon
Simplify Purchasing For Your Business

Manage what you buy and how you buy it with Order.co, so you have control over your time and money spent.

Simplify every aspect of buying for your business in Order.co. From sourcing products to scaling purchasing across locations to automating your AP and approvals workstreams, Order.co is the platform of choice for growing businesses.
Learn More
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

2026-01-22