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

New: reduction from Sat to Coloring #56

Merged
merged 11 commits into from
Jul 31, 2024
Merged

New: reduction from Sat to Coloring #56

merged 11 commits into from
Jul 31, 2024

Conversation

c-allergic
Copy link
Collaborator

  • New: Sat => Coloring

@c-allergic c-allergic requested review from GiggleLiu and SciCodePhy and removed request for GiggleLiu July 31, 2024 09:34
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.94%. Comparing base (56adfef) to head (37fe258).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   89.52%   90.94%   +1.41%     
==========================================
  Files          20       21       +1     
  Lines         735      795      +60     
==========================================
+ Hits          658      723      +65     
+ Misses         77       72       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

coloring::Coloring{K, WT}
varlabel::Dict{T, Int}
end
Base.:(==)(a::ReductionSatToColoring, b::ReductionSatToColoring) = a.coloring == b.coloring
Copy link
Owner

Choose a reason for hiding this comment

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

We do not need this function.



"""
Todo:Get the variables from the SAT problem and create 2 vertexs for themselves and their negations
Copy link
Owner

Choose a reason for hiding this comment

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

Please polish the docstring.

CNF2Graph(c::CNF)
This function return a graph that simulates the CNF problem
"""
function CNF2Graph(vars::AbstractVector{T}, c::CNF) where T <: BoolVar
Copy link
Owner

Choose a reason for hiding this comment

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

This function should be removed, maybe.

@c-allergic c-allergic merged commit 7beffd5 into main Jul 31, 2024
5 checks passed
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.

2 participants