acmpesuecc / acmpesuecc/traffic_simulation

Graph Visualization

Offen
#9 56 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
BOUNTY:350 hacknight-2025 hacktoberfest
Vorherrschende Sprache
Python
Sterne
1
Forks
13
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

# Bounty Points: 350

## Branch Instructions
push changes to a new *'visualize'* branch

***

**Explanation:**

* No **visual representation** of traffic network
* Cannot see car distribution or path taken
* Difficult to **debug** or understand simulation behavior

---

### Possible fix/approach:

* Use **`NetworkX`** + **`Matplotlib`** for graph visualization
* Display nodes with **car counts** (size or color-coded)
* Show edges with weights
* Highlight **subject car's path**
* Optional: **animate** state changes over time
* Save output as image file

---

### Features to include:

* **Node labels** (A, B, C, etc.)
* **Edge weights** (travel times)
* **Car count** at each node
* **Current path highlighting**
* **Legend** explaining visualization

---

### Maintainer notes:

* Should generate visualization at **end of simulation**
* Optional flag to **enable/disable** (don't force dependency)
* Keep it simple - **static image** is acceptable

---

### Resources:

* NetworkX visualization: `https://networkx.org/documentation/stable/reference/drawing.html`
* Matplotlib documentation

---

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.