Skip to content

[WIP] OB for maximal weighted independent set #65

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ default: init test

init:
$(JL) -e 'using Pkg; Pkg.activate("lib/OptimalBranchingMIS"); Pkg.develop(path="./lib/OptimalBranchingCore"); Pkg.update()'
$(JL) -e 'using Pkg; Pkg.develop([Pkg.PackageSpec(path = joinpath("lib", pkg)) for pkg in ["OptimalBranchingCore", "OptimalBranchingMIS"]]); Pkg.precompile()'
$(JL) -e 'using Pkg; Pkg.activate("lib/OptimalBranchingMWIS"); Pkg.develop(path="./lib/OptimalBranchingCore"); Pkg.update()'
$(JL) -e 'using Pkg; Pkg.develop([Pkg.PackageSpec(path = joinpath("lib", pkg)) for pkg in ["OptimalBranchingCore", "OptimalBranchingMIS", "OptimalBranchingMWIS"]]); Pkg.precompile()'

update:
git pull
$(JL) -e 'using Pkg; Pkg.update(); Pkg.precompile()'

test:
$(JL) -e 'using Pkg; Pkg.test(["OptimalBranching", "OptimalBranchingCore", "OptimalBranchingMIS"])'
$(JL) -e 'using Pkg; Pkg.test(["OptimalBranching", "OptimalBranchingCore", "OptimalBranchingMIS", "OptimalBranchingMWIS"])'

coverage:
$(JL) -e 'using Pkg; Pkg.test(["OptimalBranching", "OptimalBranchingCore", "OptimalBranchingMIS"]; coverage=true)'
$(JL) -e 'using Pkg; Pkg.test(["OptimalBranching", "OptimalBranchingCore", "OptimalBranchingMIS", "OptimalBranchingMWIS"]; coverage=true)'

init-docs:
$(JL) -e 'using Pkg; Pkg.activate("docs"); Pkg.develop([Pkg.PackageSpec(path = "."), [Pkg.PackageSpec(path = joinpath("lib", pkg)) for pkg in ["OptimalBranchingCore", "OptimalBranchingMIS"]]...]); Pkg.precompile()'
$(JL) -e 'using Pkg; Pkg.activate("docs"); Pkg.develop([Pkg.PackageSpec(path = "."), [Pkg.PackageSpec(path = joinpath("lib", pkg)) for pkg in ["OptimalBranchingCore", "OptimalBranchingMIS", "OptimalBranchingMWIS"]]...]); Pkg.precompile()'

serve:
$(JL) -e 'using Pkg; Pkg.activate("docs"); using LiveServer; servedocs(;skip_dirs=["docs/src/assets", "docs/src/generated"], literate_dir="examples")'
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version = "0.1.1"
GenericTensorNetworks = "3521c873-ad32-4bb4-b63d-f4f178f42b49"
OptimalBranchingCore = "c76e7b22-e1d2-40e8-b0f1-f659837787b8"
OptimalBranchingMIS = "1d45bab8-fbcd-445a-8de2-8d643ff389c2"
OptimalBranchingMWIS = "d46499bf-d5f4-4475-a342-1bae19c1e260"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[compat]
Expand Down
16 changes: 16 additions & 0 deletions lib/OptimalBranchingMWIS/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name = "OptimalBranchingMWIS"
uuid = "d46499bf-d5f4-4475-a342-1bae19c1e260"
authors = ["ArrogantGao <[email protected]> and contributors"]
version = "1.0.0-DEV"

[deps]
OptimalBranchingCore = "c76e7b22-e1d2-40e8-b0f1-f659837787b8"

[compat]
julia = "1.6.7"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
6 changes: 6 additions & 0 deletions lib/OptimalBranchingMWIS/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# OptimalBranchingMWIS

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://ArrogantGao.github.io/OptimalBranchingMWIS.jl/stable/)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://ArrogantGao.github.io/OptimalBranchingMWIS.jl/dev/)
[![Build Status](https://github.com/ArrogantGao/OptimalBranchingMWIS.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/ArrogantGao/OptimalBranchingMWIS.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Coverage](https://codecov.io/gh/ArrogantGao/OptimalBranchingMWIS.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/ArrogantGao/OptimalBranchingMWIS.jl)
5 changes: 5 additions & 0 deletions lib/OptimalBranchingMWIS/src/OptimalBranchingMWIS.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module OptimalBranchingMWIS

using OptimalBranchingCore

end
6 changes: 6 additions & 0 deletions lib/OptimalBranchingMWIS/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using OptimalBranchingMWIS
using Test

@testset "OptimalBranchingMWIS.jl" begin
# Write your tests here.
end
3 changes: 2 additions & 1 deletion src/OptimalBranching.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module OptimalBranching

using Reexport
@reexport using OptimalBranchingMIS

using OptimalBranchingCore
using OptimalBranchingMIS
using OptimalBranchingMWIS

export BranchingStrategy, IPSolver, LPSolver
export NoReducer
Expand Down
Loading