-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug of weighted graph #3
Comments
@zl930216 You must be referring to the following: Lines 23 to 32 in 2b87b59
This loop determines the maximum weighted independent set from all nodes in the graph, which will represent the non-conflicting set of branches with the highest likelihoods / weights. I am using the minimum node weight |
in WeightedGraph.mwis, max_weight is initialized min(self.__weights.values()), that would cause problem when all branches have the same score or there is only one branch. In that situation, no branch will be picked as solution. Setting it min(self.__weights.values())-1 or any value smaller than that will solve it.
The text was updated successfully, but these errors were encountered: