Given a graph of n nodes and m edges. given some value for each node.
For each i = 1 to N, we remove all the edges associated with node i , how to calculate number of pairs of nodes that have same value but are on different component?
Queries on Graph Destruction!
Given a graph of n nodes and m edges. given some value for each node.
For each i = 1 to N, we remove all the edges associated with node i , how to calculate number of pairs of nodes that have same value but are on different component?
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en2 |
|
hiphoplover | 2016-06-14 15:12:21 | 238 | ||
| en1 |
|
hiphoplover | 2016-06-14 14:15:24 | 267 | Initial revision (published) |