I reduced my problem to finding the minimum spanning tree in the graph. But I want to have one more limitation, which is that the total degree for each vertex should not exceed a certain constant coefficient. How to simulate my problem? Is MST the wrong way? Do you know any algorithms that will help me?
Another problem: my graph has repeated edge weights, so is there a way to count the number of unique MSTs? Are there algorithms that do this?
Thanks.
Edit: by degree, I mean the total number of edges connecting the vertex. By double the weight of the edge, I mean that two edges have the same weight.
unj2 source
share