Weighted Graph is a graph where each edge has an associated numerical value (weight), representing cost, distance, or capacity.
Key Characteristics:
Strengths:
Limitations:
| Operation | Time Complexity | Space Complexity |
|---|---|---|
| Add Node | O(1) | O(V+E) |
| Add Edge | O(1) | O(1) |
| Remove Node | O(E) | O(V+E) |
| Remove Edge | O(E) | O(1) |
| Edge Count | O(1) | O(1) |
| Total Weight | O(E) | O(1) |