Skip to content

Commit 769510d

Browse files
committed
Migrate from LightGraphs to Graphs.jl
1 parent 7e94066 commit 769510d

11 files changed

+37
-77
lines changed

.travis.yml

-38
This file was deleted.

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The LightGraphsMatching.jl package is licensed under the Simplified "2-clause" BSD License:
1+
The GraphsMatching.jl package is licensed under the Simplified "2-clause" BSD License:
22

33
> Copyright (c) 2017: mbesancon.
44
> All rights reserved.

Project.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name = "LightGraphsMatching"
1+
name = "GraphsMatching"
22
uuid = "160ba089-64bf-5ba7-9e14-98ab1d9bcb0a"
33
authors = ["JuliaGraphs"]
4-
version = "0.2.0"
4+
version = "0.1.0"
55

66
[deps]
77
BlossomV = "6c721016-9dae-5d90-abf6-67daaccb2332"
8+
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
89
Hungarian = "e91730f6-4275-51fb-a7a0-7064cfbd3b39"
910
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
10-
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
1111
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1212
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
1313
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1414

1515
[compat]
1616
BlossomV = "0.4"
17+
Graphs = "1.4.0"
1718
Hungarian = "0.4"
1819
JuMP = "0.20"
19-
LightGraphs = "1.2"
2020
MathOptInterface = "0.9"
2121
julia = "1"
2222

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# LightGraphsMatching
1+
# GraphsMatching
22

3-
[![Build Status](https://travis-ci.org/JuliaGraphs/LightGraphsMatching.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphs/LightGraphsMatching.jl)
3+
[![Build Status](https://travis-ci.org/JuliaGraphs/GraphsMatching.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphs/GraphsMatching.jl)
44

5-
[![Coverage Status](https://coveralls.io/repos/github/JuliaGraphs/LightGraphsMatching.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaGraphs/LightGraphsMatching.jl?branch=master)
5+
[![Coverage Status](https://coveralls.io/repos/github/JuliaGraphs/GraphsMatching.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaGraphs/GraphsMatching.jl?branch=master)
66

7-
[![codecov](https://codecov.io/gh/JuliaGraphs/LightGraphsMatching.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaGraphs/LightGraphsMatching.jl)
7+
[![codecov](https://codecov.io/gh/JuliaGraphs/GraphsMatching.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaGraphs/GraphsMatching.jl)
88

9-
Matching algorithms on top of [LightGraphs](https://github.com/JuliaGraphs/LightGraphs.jl).
9+
Matching algorithms on top of [Graphs.jl](https://github.com/JuliaGraphs/Graphs.jl).
1010

1111
## Usage
1212

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ build_script:
2626
# Need to convert from shallow to complete for Pkg.clone to work
2727
- IF EXIST .git\shallow (git fetch --unshallow)
2828
- C:\julia\bin\julia -e "using InteractiveUtils, Pkg; versioninfo();
29-
Pkg.clone(pwd(), \"LightGraphsMatching\"); Pkg.build(\"LightGraphsMatching\")"
29+
Pkg.clone(pwd(), \"GraphsMatching\"); Pkg.build(\"GraphsMatching\")"
3030

3131
test_script:
32-
- C:\julia\bin\julia -e "using Pkg; Pkg.test(\"LightGraphsMatching\")"
32+
- C:\julia\bin\julia -e "using Pkg; Pkg.test(\"GraphsMatching\")"
3333

3434
# # Uncomment to support code coverage upload. Should only be enabled for packages
3535
# # which would have coverage gaps without running on Windows

docs/make.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using Documenter
2-
using LightGraphsMatching
3-
import LightGraphs; const lg = LightGraphs
2+
using GraphsMatching
3+
import Graphs
44

55
makedocs(
6-
modules = [LightGraphsMatching],
6+
modules = [GraphsMatching],
77
format = :html,
8-
sitename = "LightGraphsMatching",
8+
sitename = "GraphsMatching",
99
pages = Any[
1010
"Getting started" => "index.md",
1111
]
@@ -14,7 +14,7 @@ makedocs(
1414
deploydocs(
1515
deps = nothing,
1616
make = nothing,
17-
repo = "github.com/JuliaGraphs/LightGraphsMatching.jl.git",
17+
repo = "github.com/JuliaGraphs/GraphsMatching.jl.git",
1818
target = "build",
1919
julia = "0.6",
2020
osname = "linux"

docs/mkdocs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
site_name: LightGraphsMatching.jl
2-
repo_url: https://github.com/JuliaGraphs/LightGraphsMatching.jl
3-
site_description: Documentation for LightGraphsMatching, the JuliaGraphs package to solve matching problems
1+
site_name: GraphsMatching.jl
2+
repo_url: https://github.com/JuliaGraphs/GraphsMatching.jl
3+
site_description: Documentation for GraphsMatching, the JuliaGraphs package to solve matching problems
44
site_author: JuliaGraphs
55

66
theme: material

docs/src/index.md

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
# LightGraphsMatching.jl: matching algorithms for LightGraphs
1+
# GraphsMatching.jl: matching algorithms for Graphs.jl
22

33
```@meta
4-
CurrentModule = LightGraphsMatching
4+
CurrentModule = GraphsMatching
55
DocTestSetup = quote
6-
using LightGraphsMatching
7-
import LightGraphs
8-
const lg = LightGraphs
6+
using GraphsMatching
7+
import Graphs
98
end
109
```
1110

12-
This is the documentation page for `LightGraphsMatching`.
13-
In all documentation examples, we assume LightGraphsMatching has been imported into scope
14-
and that LightGraphs is available with the alias `lg`:
11+
This is the documentation page for `GraphsMatching`.
12+
In all documentation examples, we assume GraphsMatching has been imported into scope
13+
and that Graphs.jl is imported:
1514
```julia
16-
using LightGraphsMatching
17-
import LightGraphs
18-
const lg = LightGraphs
15+
using GraphsMatching
16+
import Graphs
1917
```
2018

2119
```@autodocs
22-
Modules = [LightGraphsMatching]
23-
Pages = ["LightGraphsMatching.jl", "maximum_weight_matching.jl", "lp.jl", "blossomv.jl"]
20+
Modules = [GraphsMatching]
21+
Pages = ["GraphsMatching.jl", "maximum_weight_matching.jl", "lp.jl", "blossomv.jl"]
2422
Order = [:function, :type]
2523
```
2624

src/LightGraphsMatching.jl renamed to src/GraphsMatching.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module LightGraphsMatching
1+
module GraphsMatching
22

3-
using LightGraphs
3+
using Graphs
44

55
using SparseArrays: spzeros
66

src/hungarian.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function maximum_weight_maximal_matching_hungarian(g::Graph,
66
# Determine the bipartition of the graph.
77
bipartition = bipartite_map(g)
88
if length(bipartition) != n # Equivalent to !is_bipartite(g), but reuses the results of the previous function call.
9-
error("The Hungarian algorithm only works for bipartite graphs; otherwise, prefer the Blossom algorithm (not yet available in LightGraphsMatching")
9+
error("The Hungarian algorithm only works for bipartite graphs; otherwise, prefer the Blossom algorithm (not yet available in GraphsMatching")
1010
end
1111
n_first = count(bipartition .== 1)
1212
n_second = count(bipartition .== 2)

test/runtests.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using LightGraphs
2-
using LightGraphsMatching
1+
using Graphs
2+
using GraphsMatching
33
using Test
44
using Cbc
55
using JuMP
66
using LinearAlgebra: I
77

8-
@testset "LightGraphsMatching" begin
8+
@testset "GraphsMatching" begin
99

1010
@testset "maximum_weight_matching" begin
1111
g = complete_graph(3)

0 commit comments

Comments
 (0)