How vishnu45/lynxapp works
This is a bus-route planning web service: a user supplies origin, destination, and route rank; the server loads the transit graph, computes ranked paths, and returns either path/cost details or a bus-change suggestion. The graph model also supports exporting a visualization. The excerpts establish backend calls and data dependencies, but do not show how the client invokes the endpoints, so that interaction is not asserted.
Main entry points: graph.py Directed graph · server.py HTTP endpoints · result.py Transfer suggestions · algorithms.py K-shortest paths
Components 11
Web interface
- Client page
Client/index.html
Route API
- HTTP endpoints
Server/server.py
Routing engine
- Directed graph
Server/graph.py - K-shortest paths
Server/algorithms.py - Shortest-path search
Server/algorithms.py - Priority queue
Server/prioritydictionary.py - Transfer suggestions
Server/result.py
Transit data and rendering
- Stop-route mapping
Server/stopRouteData.py - Transit network
Server/data/json/net5.json - Graph visualization
Server/graphviz.py
Other components
- Rider
Connections 15
- Rider → Client page: uses
- HTTP endpoints → Client page: serves page
Server/server.py - HTTP endpoints → Directed graph: loads graph
Server/server.py - HTTP endpoints → Directed graph: exports view
Server/server.py - HTTP endpoints → K-shortest paths: requests ranked paths
Server/server.py - HTTP endpoints → Transfer suggestions: requests transfer advice
Server/server.py - Directed graph → Transit network: reads network
Server/graph.py - Directed graph → Graph visualization: delegates rendering
Server/graph.py - K-shortest paths → Shortest-path search: finds shortest paths
Server/algorithms.py - K-shortest paths → Directed graph: alters and queries
Server/algorithms.py - Shortest-path search → Priority queue: orders candidates
Server/algorithms.py - Transfer suggestions → Directed graph: loads network
Server/result.py - Transfer suggestions → K-shortest paths: computes route
Server/result.py - Transfer suggestions → Stop-route mapping: looks up routes
Server/result.py - Graph visualization → Transit network: visualizes graph