Multigraph is a graph which is permitted to have multiple edges (also called parallel edges) between the same pair of nodes.
Key Characteristics:
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 Multiplicity | O(E) | O(1) |
Strengths:
Limitations: