Skip to content

A DSA-focused Java project that simulates the Delhi Metro network using graphs and heaps. Computes shortest routes and fares between stations using Dijkstra and BFS algorithms. Includes a CLI interface and interactive map for route visualization.

License

Notifications You must be signed in to change notification settings

Samyak-Jain-me/MetroNexus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetroNexus – Delhi Metro Route & Fare Calculator

A Java-based console application that computes the shortest route and fare between two Delhi Metro stations using graph algorithms and heap data structures. It also displays an interactive metro map for enhanced user navigation.


🚀 Features

  • Simulates the Delhi Metro network using a weighted graph with 100+ nodes and edges.
  • Computes shortest path and fare using Dijkstra’s Algorithm and Breadth-First Search (BFS).
  • Each station node stores relevant data like station name, corridor, and inter-line connectivity.
  • Includes an interactive metro map for better route planning and visualization.

🛠️ Tech Stack

  • Language: Java
  • Algorithms: Dijkstra, BFS, DFS
  • Data Structures: Graphs, Heaps, OOP Concepts

📁 File Structure

  • Main.java – Contains core logic, including graph setup and route computation.
  • Heap.java – Custom implementation of the Heap data structure used by Dijkstra.

🧠 Requirements

  • Any IDE (Eclipse, IntelliJ, NetBeans, or online editors like ideone.com).
  • Basic knowledge of Java programming is recommended.
  • Familiarity with graphs, heaps, and graph traversal algorithms (Dijkstra, BFS, DFS) is helpful.
  • Understanding of the Java Collections Framework is a plus.
    Quick Reference

✅ Getting Started

  1. Clone this repository or download the code files.
  2. Open Main.java in your Java IDE.
  3. Run the program and input the source and destination station names when prompted.
  4. View the shortest route and fare.
  5. (Optional) Explore the integrated map for visual navigation.

📌 Note

This is not an Android application. It is a Java-based CLI project designed to demonstrate core algorithmic and data structure skills.

About

A DSA-focused Java project that simulates the Delhi Metro network using graphs and heaps. Computes shortest routes and fares between stations using Dijkstra and BFS algorithms. Includes a CLI interface and interactive map for route visualization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages