Skip to content

Conversation

@c-allergic
Copy link
Collaborator

Add GraphProblem class

@codecov
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 95.32%. Comparing base (ea50b96) to head (8229c19).

Files with missing lines Patch % Lines
src/models/models.jl 0.00% 2 Missing ⚠️
src/bitvector.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #115      +/-   ##
==========================================
- Coverage   95.51%   95.32%   -0.20%     
==========================================
  Files          34       34              
  Lines        1450     1453       +3     
==========================================
  Hits         1385     1385              
- Misses         65       68       +3     

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

@GiggleLiu
Copy link
Owner

The name GraphProblem is not accurate. We can

  • Keep using ConstraintSatisfactionProblem
  • add a @deprecate in GenericTensorNetworks to deprecate GraphProblem.

[deps]
BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Copy link
Owner

Choose a reason for hiding this comment

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

This dependency is not needed.

InteractiveUtils = "1"
MLStyle = "0.4"
PrettyTables = "2"
Printf = "1.11.0"
Copy link
Owner

Choose a reason for hiding this comment

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

Please only specify the first nonzero digit in deps.

MLStyle = "0.4"
PrettyTables = "2"
Printf = "1.11.0"
julia = "1.10"
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
julia = "1.10"
julia = "1"

The unit weight vector of length `n`.
"""
struct ZeroWeight <: AbstractVector{Int}
Copy link
Owner

Choose a reason for hiding this comment

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

Remove ZeroWeight since it is not used.

@GiggleLiu
Copy link
Owner

Tests are much more important than source code. Please focus on adding more tests.

@GiggleLiu
Copy link
Owner

Thanks for the PR, but I think we do not need this problem anymore (since it is a polynomial time solvable problem).

@GiggleLiu GiggleLiu closed this Dec 13, 2024
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