Conversation
8477178 to
181aca5
Compare
|
I've rebased the changes now that #4450 is merged. @benlorenz: I also had to add an Let me know if there are any objections. (I normally try to have separate pull-requests for separate areas, but was too lazy to make this one-line change) |
|
Adding keys would imply that julia> eit = edges(g)
Oscar.EdgeIterator(Polymake.LibPolymake.GraphEdgeIteratorAllocated{Undirected}(Ptr{Nothing} @0x000000003f407670), 6)
julia> length(eit)
6
julia> iterate(eit)
(Edge(2, 1), 2)
julia> iterate(eit)
(Edge(3, 1), 2)
julia> length(eit)
4
julia> collect(eit)
4-element Vector{Edge}:
Edge(3, 2)
Edge(4, 1)
Edge(4, 2)
Edge(4, 3) |
Okay, I will remove |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4452 +/- ##
=======================================
Coverage 84.41% 84.41%
=======================================
Files 668 669 +1
Lines 88441 88457 +16
=======================================
+ Hits 74656 74672 +16
Misses 13785 13785
|
|
This seems to be ready for review since a month. Maybe the triage meeting can discuss who can review it. |
|
Perhaps @wdecker or @simonbrandhorst or @afkafkafk13 or @HechtiDerLachs or @ederc could review this? |
afkafkafk13
left a comment
There was a problem hiding this comment.
Looks fine.
I left you one comment on the docstring. Feel free to ignore it, if the example is printed the way you want it.
| julia> C2 = graph_curve(G2) | ||
| Projective curve | ||
| in projective 4-space over QQ with coordinates [x1, x2, x3, x4, x5] | ||
| defined by ideal with 5 generators | ||
|
|
There was a problem hiding this comment.
The automatic suppression of the equations in printing makes the second example lack a bit of 'content'...
If you would like to have it for testing reasons, please put it in the tests instead and test for correctness of the curve. If you consider the information as vital for users, please print at least one of the equations.
There was a problem hiding this comment.
Good point, I will adjust the docstring accordingly.
Co-authored-by: Simon Brandhorst <brandhorst@math.uni-sb.de>
| cycleMatrix = matrix(R,cycleMatrix) # converting to matrix over R for vcat below | ||
|
|
||
| vertexIdeals = MPolyIdeal[] | ||
| for v in 1:n_vertices(G) |
There was a problem hiding this comment.
Shouldn't this be like so? (Not sure if it ever matters... maybe for subgraphs...? Perhaps @lkastner can clarify?)
| for v in 1:n_vertices(G) | |
| for v in vertices(G) |
There was a problem hiding this comment.
Once #4633 is merged, this can (and should) be adapted
Co-authored-by: Max Horn <max@quendi.de>
Co-authored-by: Max Horn <max@quendi.de>
graph_curve(::Graph)
The final pull request of the Durham Workshop. Requires #4450, so I will rebase + undraft it once #4450 is merged.