-
Notifications
You must be signed in to change notification settings - Fork 112
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
Matroids: Choose edges of graph as ground set for cycle_matroid #2887
Conversation
68906aa
to
b2b880c
Compare
0685daf
to
5240c13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look fine to me. But I want to remark the following:
-
It is odd that a cycle matroid gets now names from the edges of the graph while the dual matroid, i.e., bond or coycle matroid doesn't. This will confuse the user and should be a small fix.
-
The code assumes that edges are labeled by two nodes (source and destination) which are of type
Int
Should be more general edge labels and node labels be considered?
d5599c4
to
608f731
Compare
Codecov Report
@@ Coverage Diff @@
## master #2887 +/- ##
==========================================
- Coverage 80.55% 80.39% -0.16%
==========================================
Files 456 456
Lines 65233 65238 +5
==========================================
- Hits 52549 52449 -100
- Misses 12684 12789 +105
|
I do not understand this remark. In your code you have
so if
I am not sure what to fix here.
Which code are you referring to? The line I changed in the Matroid section is just
does not assume anything. If you are talking about the conversion, then you are correct. We modelled the Graphs such that they can be used in the same way as Julia's Graphs.jl package in order to make migrating code easier (usually I would call this "compatible", but @lgoettgens frowns up on this). These use only |
Regarding 1) Yes, you are right. What was irritating me is the change in Regarding 2) Currently the ground set will take the edges (pairs of nodes), but one might want to have other names, i.e., a labelling of nodes or edges which should then be taken as ground set instead. It is more an open question the a issue. |
608f731
to
30d78d7
Compare
30d78d7
to
0b1aa6e
Compare
No description provided.