Skip to content

Commit 4ae0fae

Browse files
committed
update pkg name to GraphsColoring
1 parent f836207 commit 4ae0fae

23 files changed

+131
-131
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ jobs:
7171
shell: julia --project=docs --color=yes {0}
7272
run: |
7373
using Documenter: DocMeta, doctest
74-
using GraphColoring
75-
DocMeta.setdocmeta!(GraphColoring, :DocTestSetup, :(using GraphColoring); recursive=true)
76-
doctest(GraphColoring)
74+
using GraphsColoring
75+
DocMeta.setdocmeta!(GraphsColoring, :DocTestSetup, :(using GraphsColoring); recursive=true)
76+
doctest(GraphsColoring)

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "GraphColoring"
1+
name = "GraphsColoring"
22
uuid = "ed38bb8a-6120-4024-8d1e-8789784f251b"
33
authors = ["Danijel Jukić <[email protected]> and contributors"]
44
version = "0.1.0"
@@ -11,7 +11,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1111
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1212

1313
[extensions]
14-
GraphColoringGraphs = ["Graphs"]
14+
GraphsColoringGraphs = ["Graphs"]
1515

1616
[compat]
1717
Aqua = "0.8"

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GraphColoring
1+
# GraphsColoring
22

33
<p align="center">
44
<picture>
@@ -7,10 +7,10 @@
77
</picture>
88
</p>
99

10-
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://djukic14.github.io/GraphColoring.jl/stable/)
11-
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://djukic14.github.io/GraphColoring.jl/dev/)
12-
[![Build Status](https://github.com/djukic14/GraphColoring.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/djukic14/GraphColoring.jl/actions/workflows/CI.yml?query=branch%3Amain)
13-
[![Coverage](https://codecov.io/gh/djukic14/GraphColoring.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/djukic14/GraphColoring.jl)
10+
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://djukic14.github.io/GraphsColoring.jl/stable/)
11+
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://djukic14.github.io/GraphsColoring.jl/dev/)
12+
[![Build Status](https://github.com/djukic14/GraphsColoring.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/djukic14/GraphsColoring.jl/actions/workflows/CI.yml?query=branch%3Amain)
13+
[![Coverage](https://codecov.io/gh/djukic14/GraphsColoring.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/djukic14/GraphsColoring.jl)
1414

1515
## Introduction
1616

@@ -25,5 +25,5 @@ Currently, the following aspects are implemented (✓) and planned (⌛):
2525

2626
## Documentation
2727

28-
- Documentation for the [latest stable version](https://djukic14.github.io/GraphColoring.jl/stable/).
29-
- Documentation for the [development version](https://djukic14.github.io/GraphColoring.jl/dev/)
28+
- Documentation for the [latest stable version](https://djukic14.github.io/GraphsColoring.jl/stable/).
29+
- Documentation for the [development version](https://djukic14.github.io/GraphsColoring.jl/dev/)

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ BEAST = "bb4162c7-ba94-5a20-af32-d8ec4428bdd1"
33
CompScienceMeshes = "3e66a162-7b8c-5da0-b8f8-124ecd2c3ae1"
44
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
55
GmshTools = "82e2f556-b1bd-5f1a-9576-f93c0da5f0ee"
6-
GraphColoring = "ed38bb8a-6120-4024-8d1e-8789784f251b"
6+
GraphsColoring = "ed38bb8a-6120-4024-8d1e-8789784f251b"
77
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
88
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a"

docs/make.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using GraphColoring
1+
using GraphsColoring
22
using Graphs, PlotlyJS
33
using Documenter
44

5-
import GraphColoring:
5+
import GraphsColoring:
66
node,
77
partition,
88
gather,
@@ -16,7 +16,7 @@ import GraphColoring:
1616

1717
# this will be moved to BEAST as soon as the pull request is ready
1818
using BEAST
19-
function GraphColoring.conflicts(
19+
function GraphsColoring.conflicts(
2020
space::BEAST.Space;
2121
addata=BEAST.assemblydata(space),
2222
refspace=BEAST.refspace(space),
@@ -36,26 +36,26 @@ function GraphColoring.conflicts(
3636
end
3737
end
3838
return eachindex(elements),
39-
GraphColoring.ConflictFunctor(conflictindices),
39+
GraphsColoring.ConflictFunctor(conflictindices),
4040
Base.OneTo(numfunctions(space))
4141
end
4242

43-
DocMeta.setdocmeta!(GraphColoring, :DocTestSetup, :(using GraphColoring); recursive=true)
43+
DocMeta.setdocmeta!(GraphsColoring, :DocTestSetup, :(using GraphsColoring); recursive=true)
4444

4545
makedocs(;
4646
modules=[
47-
GraphColoring,
47+
GraphsColoring,
4848
if isdefined(Base, :get_extension)
49-
Base.get_extension(GraphColoring, :GraphColoringGraphs)
49+
Base.get_extension(GraphsColoring, :GraphsColoringGraphs)
5050
else
51-
GraphColoring.GraphColoringGraphs
51+
GraphsColoring.GraphsColoringGraphs
5252
end,
5353
],
5454
authors="Danijel Jukić <[email protected]> and contributors",
55-
sitename="GraphColoring.jl",
55+
sitename="GraphsColoring.jl",
5656
format=Documenter.HTML(;
5757
prettyurls=true,
58-
canonical="https://djukic14.github.io/GraphColoring.jl",
58+
canonical="https://djukic14.github.io/GraphsColoring.jl",
5959
edit_link="main",
6060
assets=String[],
6161
),
@@ -73,7 +73,7 @@ makedocs(;
7373
)
7474

7575
deploydocs(;
76-
repo="github.com/djukic14/GraphColoring.jl",
76+
repo="github.com/djukic14/GraphsColoring.jl",
7777
target="build",
7878
devbranch="main",
7979
push_preview=true,

docs/src/apiref.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
```
55

66
```@autodocs
7-
Modules=[GraphColoring,
7+
Modules=[GraphsColoring,
88
if isdefined(Base, :get_extension)
9-
Base.get_extension(GraphColoring, :GraphColoringGraphs)
9+
Base.get_extension(GraphsColoring, :GraphsColoringGraphs)
1010
else
11-
GraphColoring.GraphColoringGraphs
11+
GraphsColoring.GraphsColoringGraphs
1212
end,
1313
]
1414
```

docs/src/assets/logo.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/src/conflicts.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A conflict representation must implement the following functions:
1515
3. [`noconflicts`](@ref): Returns a boolean indicating whether there occurs any conflict in the whole representation.
1616

1717
It is possible to have a [`SparseMatrixCSC`](https://docs.julialang.org/en/v1/stdlib/SparseArrays/#man-csc) from [`SparseArrays`](https://github.com/JuliaSparse/SparseArrays.jl) or a [`SimpleGraph`](https://juliagraphs.org/Graphs.jl/stable/core_functions/simplegraphs/#Graphs.SimpleGraphs.SimpleGraph) from [`Graphs.jl`](https://github.com/JuliaGraphs/Graphs.jl) as a conflict representation.
18-
The graph conflict representation is tied to `GraphColoring` as an extension depending on [`Graphs.jl`](https://github.com/JuliaGraphs/Graphs.jl).
18+
The graph conflict representation is tied to `GraphsColoring` as an extension depending on [`Graphs.jl`](https://github.com/JuliaGraphs/Graphs.jl).
1919

2020
The respective representation needs to support the [`conflicts`](@ref) function that returns
2121

@@ -26,25 +26,25 @@ The respective representation needs to support the [`conflicts`](@ref) function
2626
```@example conflicts
2727
using CompScienceMeshes
2828
using BEAST
29-
using GraphColoring
29+
using GraphsColoring
3030
3131
m = meshsphere(1.0, 0.1)
3232
X = raviartthomas(m)
3333
34-
conflicts = GraphColoring.conflicts(X)
34+
conflicts = GraphsColoring.conflicts(X)
3535
```
3636

3737
## Sparse matrix as conflict representation
3838

3939
```@example conflictmatrix
4040
using CompScienceMeshes
4141
using BEAST
42-
using GraphColoring
42+
using GraphsColoring
4343
4444
m = meshsphere(1.0, 0.1)
4545
X = raviartthomas(m)
4646
47-
conflicts = GraphColoring.conflictmatrix(X)
47+
conflicts = GraphsColoring.conflictmatrix(X)
4848
```
4949

5050
## Graph as conflict representation
@@ -53,11 +53,11 @@ conflicts = GraphColoring.conflictmatrix(X)
5353
using CompScienceMeshes
5454
using BEAST
5555
using Graphs
56-
using GraphColoring
56+
using GraphsColoring
5757
5858
m = meshsphere(1.0, 0.1)
5959
X = raviartthomas(m)
6060
61-
conflicts = GraphColoring.conflictgraph(X)
61+
conflicts = GraphsColoring.conflictgraph(X)
6262
println(typeof(conflicts))
6363
```

docs/src/contributing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For a consistent style the [JuliaFormatter.jl](https://github.com/domluna/JuliaF
1515

1616
```julia
1717
using JuliaFormatter
18-
format(pkgdir(GraphColoring; overwrite=true))
18+
format(pkgdir(GraphsColoring; overwrite=true))
1919
```
2020

2121
!!! note
@@ -35,20 +35,20 @@ Write tests for your code changes and verify that no errors occur, e.g., by runn
3535

3636
```julia
3737
using Pkg
38-
Pkg.test("GraphColoring")
38+
Pkg.test("GraphsColoring")
3939
```
4040

4141
For more detailed information on which parts are tested the coverage can be evaluated on your local machine, e.g., by
4242

4343
```julia
4444
using Pkg
45-
Pkg.test("GraphColoring"; coverage=true, julia_args=`--threads 6`)
45+
Pkg.test("GraphsColoring"; coverage=true, julia_args=`--threads 6`)
4646

4747
# determine coverage
4848
using Coverage
49-
src_folder = pkgdir(GraphColoring) * "/src"
49+
src_folder = pkgdir(GraphsColoring) * "/src"
5050
coverage = process_folder(src_folder)
51-
LCOV.writefile("path-to-folder-you-like" * "GraphColoring.lcov.info", coverage)
51+
LCOV.writefile("path-to-folder-you-like" * "GraphsColoring.lcov.info", coverage)
5252

5353
clean_folder(src_folder) # delete .cov files
5454

@@ -57,4 +57,4 @@ covered_lines, total_lines = get_summary(coverage)
5757
@info "Current coverage:\n$covered_lines of $total_lines lines ($(round(Int, covered_lines / total_lines * 100)) %)"
5858
```
5959

60-
In Visual Studio Code the [Coverage Gutters](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters) plugin can be used to visualize the tested lines of the code by inserting the path of the *GraphColoring.lcov.info* file in the settings.
60+
In Visual Studio Code the [Coverage Gutters](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters) plugin can be used to visualize the tested lines of the code by inserting the path of the *GraphsColoring.lcov.info* file in the settings.

docs/src/dsatur.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ The colors are not guaranteed to be balanced.
2121
using PlotlyJS
2222
using CompScienceMeshes
2323
using BEAST
24-
using GraphColoring
24+
using GraphsColoring
2525
2626
m = meshsphere(1.0, 0.1)
2727
X = raviartthomas(m)
2828
29-
conflicts = GraphColoring.conflictmatrix(X)
29+
conflicts = GraphsColoring.conflictmatrix(X)
3030
31-
colors = GraphColoring.color(conflicts; algorithm=DSATUR())
31+
colors = GraphsColoring.color(conflicts; algorithm=DSATUR())
3232
3333
for (i, color) in enumerate(colors)
3434
println("Color $i has $(length(color)) elements")

0 commit comments

Comments
 (0)