Skip to content
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

Durham Workshop 2024 (Yue's group) #4328

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

YueRen
Copy link
Member

@YueRen YueRen commented Nov 19, 2024

Changes by my group

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 26.51515% with 97 lines in your changes missing coverage. Please review.

Project coverage is 84.43%. Comparing base (aa41156) to head (f28dbcf).
Report is 16 commits behind head on master.

Files with missing lines Patch % Lines
...rc/AlgebraicGeometry/Curves/MaximalMumfordCurve.jl 23.62% 97 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4328      +/-   ##
==========================================
- Coverage   84.50%   84.43%   -0.08%     
==========================================
  Files         644      647       +3     
  Lines       85606    85954     +348     
==========================================
+ Hits        72339    72571     +232     
- Misses      13267    13383     +116     
Files with missing lines Coverage Δ
src/Combinatorics/Graphs/functions.jl 95.34% <100.00%> (+0.02%) ⬆️
...edralGeometry/Polyhedron/standard_constructions.jl 97.35% <100.00%> (+0.02%) ⬆️
src/PolyhedralGeometry/visualization.jl 37.93% <ø> (ø)
...rc/AlgebraicGeometry/Curves/MaximalMumfordCurve.jl 23.62% <23.62%> (ø)

... and 24 files with indirect coverage changes

Comment on lines +19 to +23
function check_i_valency(G::Graph, i::Int)
return all(v -> degree(G, v) == i, vertices(G))
end

function check_i_connectivity(G::Graph, i::Int)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we usually name such function is_*, so in this case maybe is_i_valent and is_i_connected. check_* functions usually throw an error if their desired property is not satisfied, e.g. check_parent(a, b) checks that a and b have the same parent and throws otherwise

return all(v -> degree(G, v) == i, vertices(G))
end

function check_i_connectivity(G::Graph, i::Int)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add an Oscar wrapper for connectivity from polymake:

julia> g = complete_graph(4)
Undirected graph with 4 nodes and the following edges:
(2, 1)(3, 1)(3, 2)(4, 1)(4, 2)(4, 3)

julia> Polymake.graph.connectivity(g)
3

This should be a lot faster since it uses network flow instead of a brute-force approach with lots of graph copies.

But this only works for undirected graphs. For directed graphs it would be unclear what kind of connectivity this should imply.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, that sounds like a good idea and should probably be part of this pull request. Give me some time to clean everything up next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants