-
Notifications
You must be signed in to change notification settings - Fork 7
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
Code from GitHub example fails #7
Comments
You have |
@etiennedeg Thank you for your suggestion. The documentation for this function is very sparse:
When
How come there are -1's in this list? And how do I get the weight? Also, to get an analog of scipy's implementation, if I have an mxn matrix
Is |
I agree that this package is severely undocumented (and in bad shape overall), I will try to fix it. help?> MatchingResult
search: MatchingResult
struct MatchingResult{U}
weight::U
mate::Vector{Int}
end
A type representing the result of a matching algorithm.
weight: total weight of the matching
mate: `mate[i] = j` if vertex `i` is matched to vertex `j`.
`mate[i] = -1` for unmatched vertices. There seems to be no accessors, I will add some. For the moment, you can do
That should do it, but I will add convenience methods to deal better with bipartite graphs.
Correct |
I think this package has great potential, since optimization algorithms are often used in industry (3 years ago, I succeeded in a job interview because I used scipy's If you could improve the ease of use of this package, that would be a big gain for the Julia ecosystem :). And I will try to help, by testing it out and opening issues when needed. |
On Julia 1.9.2 with GraphsMatching 0.2.0, the code from the introductory example does not run:
After digging around, I succeeded with:
On an unrelated note, I have a question: does the graph optimization ecosystem in Julia cover the functionality of scipy.sparse.csgraph.min_weight_full_bipartite_matching?
The text was updated successfully, but these errors were encountered: