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
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
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