Skip to content

Commit daf6b69

Browse files
rename LightGraphs => Graphs (mostly automatic)
- A few manually selected occurrences of LightGraphs are retained - Some README verbiage is edited to explain and match the rename - Also replaces the LightGraphs UUID with the Graphs UUID If you want to generate the automatic rename from the previous commit you can run the command git ls-files | xargs perl -i -ple 's/LightGraphs/Graphs/g'
1 parent 9a25019 commit daf6b69

File tree

136 files changed

+439
-428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+439
-428
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Bug report
3-
about: Report a bug with LightGraphs
3+
about: Report a bug with Graphs
44
title: "[BUG]"
55
labels: bug
66
assignees: ''
@@ -29,7 +29,7 @@ If applicable, provide a minimal working example of the bug.
2929

3030
**Version information**
3131
- output from `versioninfo()` surrounded by backticks (``)
32-
- output from `] status LightGraphs` surrounded by backticks (``)
32+
- output from `] status Graphs` surrounded by backticks (``)
3333

3434

3535
**Additional context**

.zenodo.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "LightGraphs: An Optimized Graphs Package for the Julia Programming Language",
33
"license": "BSD-2-Clause",
4-
"title": "JuliaGraphs/LightGraphs.jl",
4+
"title": "JuliaGraphs/Graphs.jl",
55
"upload_type": "software",
66
"publication_date": "2017-09-16",
77
"creators": [
@@ -15,7 +15,7 @@
1515
"related_identifiers": [
1616
{
1717
"scheme": "url",
18-
"identifier": "https://github.com/JuliaGraphs/LightGraphs.jl/tree/v0.10.5",
18+
"identifier": "https://github.com/JuliaGraphs/Graphs.jl/tree/lg-v0.10.5",
1919
"relation": "isSupplementTo"
2020
},
2121
{

CONTRIBUTING.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,34 @@ end
5353
This gives users the option of reusing memory and improving performance.
5454

5555
### Minimizing use of internal struct fields
56-
Since LightGraphs supports multiple implementations of the graph datastructure using the `AbstractGraph` [type](https://juliagraphs.github.io/LightGraphs.jl/latest/types.html#AbstractGraph-Type-1), you should refrain from using the internal fields of structs such as `fadjlist`. Instead, you should use the functions provided in the api. Code that is instrumental to defining a concrete graph type can use the internal structure of that type for example graph generators in `/src/StaticGraphs/generators/staticgraphs.jl` use the `fadjlist` field in order to construct graphs efficiently.
56+
Since Graphs supports multiple implementations of the graph datastructure using the `AbstractGraph` [type](https://juliagraphs.github.io/Graphs.jl/latest/types.html#AbstractGraph-Type-1), you should refrain from using the internal fields of structs such as `fadjlist`. Instead, you should use the functions provided in the api. Code that is instrumental to defining a concrete graph type can use the internal structure of that type for example graph generators in `/src/StaticGraphs/generators/staticgraphs.jl` use the `fadjlist` field in order to construct graphs efficiently.
5757

5858
## Git usage
5959

60-
In order to make it easier for you to review Pull Requests (PRs), you can add this to your git config file, which should be located at `$HOME/.julia/dev/LightGraphs/.git/config`. Follow the instructions [here](https://gist.github.com/piscisaureus/3342247).
60+
In order to make it easier for you to review Pull Requests (PRs), you can add this to your git config file, which should be located at `$HOME/.julia/dev/Graphs/.git/config`. Follow the instructions [here](https://gist.github.com/piscisaureus/3342247).
6161

6262
Locate the section for your github remote in the `.git/config` file. It looks like this:
6363

6464
```
6565
[remote "origin"]
6666
fetch = +refs/heads/*:refs/remotes/origin/*
67-
url = git@github.com:JuliaGraphs/LightGraphs.jl.git
67+
url = git@github.com:JuliaGraphs/Graphs.jl.git
6868
```
6969

7070
Now add the line `fetch = +refs/pull/*/head:refs/remotes/origin/pr/*` to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
7171

7272
```
7373
[remote "origin"]
7474
fetch = +refs/heads/*:refs/remotes/origin/*
75-
url = git@github.com:JuliaGraphs/LightGraphs.jl.git
75+
url = git@github.com:JuliaGraphs/Graphs.jl.git
7676
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
7777
```
7878

7979
Now fetch all the pull requests:
8080

8181
```
8282
$ git fetch origin
83-
From github.com:JuliaGraphs/LightGraphs.jl
83+
From github.com:JuliaGraphs/Graphs.jl
8484
* [new ref] refs/pull/1000/head -> origin/pr/1000
8585
* [new ref] refs/pull/1002/head -> origin/pr/1002
8686
* [new ref] refs/pull/1004/head -> origin/pr/1004
@@ -96,4 +96,4 @@ Branch pr/999 set up to track remote branch pr/999 from origin.
9696
Switched to a new branch 'pr/999'
9797
```
9898

99-
Now you can test a PR by running `git fetch && git checkout pr/PRNUMBER && julia -e 'Pkg.test("LightGraphs")'`
99+
Now you can test a PR by running `git fetch && git checkout pr/PRNUMBER && julia -e 'Pkg.test("Graphs")'`

LICENSE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The LightGraphs.jl package is licensed under the Simplified "2-clause" BSD
1+
The Graphs.jl (formerly called LightGraphs.jl) package is licensed under the Simplified "2-clause" BSD
22
License:
33
> Copyright (c) 2015: Seth Bromberger and other contributors.
44
>
@@ -24,7 +24,7 @@ License:
2424
> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525
> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626
27-
LightGraphs uses code derived from and/or inspired by the following packages:
27+
Graphs uses code derived from and/or inspired by the following packages:
2828

2929
NetworkX:
3030
> Copyright (C) 2004-2012, NetworkX Developers

Project.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name = "LightGraphs"
2-
uuid = "093fc24a-ae57-5d10-9952-331d41423f4d"
3-
version = "1.3.5"
1+
name = "Graphs"
2+
uuid = "86223c79-3864-5bf0-83f7-82e725a168b6"
3+
version = "1.4.0"
44

55
[deps]
66
ArnoldiMethod = "ec485272-7323-5ecc-a04f-4719b315124d"

README.md

+26-15
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
# LightGraphs
1+
# Graphs
22

3-
[![Build Status](https://github.com/JuliaGraphs/LightGraphs.jl/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/JuliaGraphs/LightGraphs.jl/actions/workflows/ci.yml?query=branch%3Amaster)
4-
[![codecov.io](http://codecov.io/github/JuliaGraphs/LightGraphs.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaGraphs/LightGraphs.jl?branch=master)
5-
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://juliagraphs.github.io/LightGraphs.jl/latest)
3+
[![Build Status](https://github.com/JuliaGraphs/Graphs.jl/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/JuliaGraphs/Graphs.jl/actions/workflows/ci.yml?query=branch%3Amaster)
4+
[![codecov.io](http://codecov.io/github/JuliaGraphs/Graphs.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaGraphs/Graphs.jl?branch=master)
5+
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://juliagraphs.github.io/Graphs.jl/latest)
66
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.889971.svg)](https://doi.org/10.5281/zenodo.889971)
77

8-
**Project Status:** As of 8 October 2021 LightGraphs is no longer under active development. It will remain available on Github at [sbromberger/LightGraphs.jl](https://github.com/sbromberger/LightGraphs.jl). The JuliaGraphs organization will continue to maintain packages that use LightGraphs and transition development over the long term.
8+
**Project Status:** The Graphs project is a fork of the now-archived LightGraphs
9+
package, which remains available on GitHub at
10+
[sbromberger/LightGraphs.jl](https://github.com/sbromberger/LightGraphs.jl). If
11+
you don't need any new features developed since the fork, you can continue to
12+
use older versions of LightGraphs indefinitely. New versions will be released
13+
here using the name Graphs instead of LightGraphs. There was an older package
14+
also called Graphs, whose source history and versions are still available in
15+
this repository, but the current code base is unrelated to the old Graphs code
16+
and is derived purely from LightGraphs.
917

10-
LightGraphs offers both (a) a set of simple, concrete graph implementations -- `Graph`
18+
Graphs offers both (a) a set of simple, concrete graph implementations -- `Graph`
1119
(for undirected graphs) and `DiGraph` (for directed graphs), and (b) an API for
1220
the development of more sophisticated graph implementations under the `AbstractGraph`
1321
type.
@@ -33,27 +41,30 @@ Additional functionality may be found in a number of companion packages, includi
3341
Pajek NET, and more.
3442

3543
## Documentation
36-
Full documentation is available at [GitHub Pages](https://juliagraphs.github.io/LightGraphs.jl/latest).
44+
Full documentation is available at [GitHub Pages](https://juliagraphs.github.io/Graphs.jl/latest).
3745
Documentation for methods is also available via the Julia REPL help system.
3846
Additional tutorials can be found at [JuliaGraphsTutorials](https://github.com/JuliaGraphs/JuliaGraphsTutorials).
3947

4048
## Installation
4149
Installation is straightforward: enter Pkg mode by hitting `]`, and then
4250
```julia-repl
43-
(v1.0) pkg> add LightGraphs
51+
(v1.0) pkg> add Graphs
4452
```
4553

4654
## Supported Versions
47-
* LightGraphs master is generally designed to work with the latest stable version of Julia (except during Julia version increments as we transition to the new version).
48-
* Julia 0.3: LightGraphs v0.3.7 is the last version guaranteed to work with Julia 0.3.
49-
* Julia 0.4: LightGraphs versions in the 0.6 series are designed to work with Julia 0.4.
50-
* Julia 0.5: LightGraphs versions in the 0.7 series are designed to work with Julia 0.5.
51-
* Julia 0.6: LightGraphs versions in the 0.8 through 0.12 series are designed to work with Julia 0.6.
52-
* Julia 0.7 / 1.0: LightGraphs versions in the 1.x series are designed to work with Julia 0.7 and Julia 1.0.
55+
* Graphs master is generally designed to work with the latest stable version of Julia (except during Julia version increments as we transition to the new version).
56+
* The project was previously developed under the name LightGraphs and older versions of LightGraphs (≤ v1.3.5) must still be used with that name.
57+
* There was also an older package also called Graphs (git tags `v0.2.5` through `v0.10.3`), but the current code base here is a fork of LightGraphs v1.3.5.
58+
* All older LightGraphs versions are tagged using the naming scheme `lg-vX.Y.Z` rather than plain `vX.Y.Z` which is used for old Graphs versions (≤ v0.10) and newer versions derived from LightGraphs but released with the Graphs name (≥ v1.4).
59+
* Julia 0.3: LightGraphs v0.3.7 (`lg-v0.3.7`) is the last version guaranteed to work with Julia 0.3.
60+
* Julia 0.4: LightGraphs versions in the 0.6 series (`lg-v0.6.*`) are designed to work with Julia 0.4.
61+
* Julia 0.5: LightGraphs versions in the 0.7 series (`lg-v0.7.*`) are designed to work with Julia 0.5.
62+
* Julia 0.6: LightGraphs versions in the 0.8 through 0.12 (`lg-v0.{8-12}.*`) series are designed to work with Julia 0.6.
63+
* Julia 0.7 / 1.0: LightGraphs versions in the 1.x series (`lg-v1.*`) are designed to work with Julia 0.7 and Julia 1.0.
5364
* Later versions: Some functionality might not work with prerelease / unstable / nightly versions of Julia. If you run into a problem, please file an issue.
5465

5566
# Contributing and Reporting Bugs
56-
We welcome contributions and bug reports! Please see [CONTRIBUTING.md](https://github.com/JuliaGraphs/LightGraphs.jl/blob/master/CONTRIBUTING.md)
67+
We welcome contributions and bug reports! Please see [CONTRIBUTING.md](https://github.com/JuliaGraphs/Graphs.jl/blob/master/CONTRIBUTING.md)
5768
for guidance on development and bug reporting.
5869

5970
# Citing

benchmark/benchmarks.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using BenchmarkTools
2-
using LightGraphs
2+
using Graphs
33

44

55
DIGRAPHS = Dict{String,DiGraph}(

benchmark/centrality.jl

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
@benchgroup "centrality" begin
33
@benchgroup "graphs" begin
44
for (name, g) in GRAPHS
5-
@bench "$(name): degree" LightGraphs.degree_centrality($g)
6-
@bench "$(name): closeness" LightGraphs.closeness_centrality($g)
5+
@bench "$(name): degree" Graphs.degree_centrality($g)
6+
@bench "$(name): closeness" Graphs.closeness_centrality($g)
77
if nv(g) < 1000
8-
@bench "$(name): betweenness" LightGraphs.betweenness_centrality($g)
9-
@bench "$(name): katz" LightGraphs.katz_centrality($g)
8+
@bench "$(name): betweenness" Graphs.betweenness_centrality($g)
9+
@bench "$(name): katz" Graphs.katz_centrality($g)
1010
end
1111
end
1212
end #graphs
1313
@benchgroup "digraphs" begin
1414
for (name, g) in DIGRAPHS
15-
@bench "$(name): degree" LightGraphs.degree_centrality($g)
16-
@bench "$(name): closeness" LightGraphs.closeness_centrality($g)
15+
@bench "$(name): degree" Graphs.degree_centrality($g)
16+
@bench "$(name): closeness" Graphs.closeness_centrality($g)
1717
if nv(g) < 1000
18-
@bench "$(name): betweenness" LightGraphs.betweenness_centrality($g)
19-
@bench "$(name): katz" LightGraphs.katz_centrality($g)
18+
@bench "$(name): betweenness" Graphs.betweenness_centrality($g)
19+
@bench "$(name): katz" Graphs.katz_centrality($g)
2020
end
2121
if nv(g) < 500
22-
@bench "$(name): pagerank" LightGraphs.pagerank($g)
22+
@bench "$(name): pagerank" Graphs.pagerank($g)
2323
end
2424
end
2525
end # digraphs

benchmark/connectivity.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@benchgroup "connectivity" begin
22
@benchgroup "digraphs" begin
33
for (name, g) in DIGRAPHS
4-
@bench "$(name): strongly_connected_components" LightGraphs.strongly_connected_components($g)
4+
@bench "$(name): strongly_connected_components" Graphs.strongly_connected_components($g)
55
end
66
end # digraphs
77
@benchgroup "graphs" begin
88
for (name, g) in GRAPHS
9-
@bench "$(name): connected_components" LightGraphs.connected_components($g)
9+
@bench "$(name): connected_components" Graphs.connected_components($g)
1010
end
1111
end # graphs
1212
end # connectivity

benchmark/edges.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const P = Pair{Int,Int}
55
convert(::Type{Tuple}, e::Pair) = (e.first, e.second)
66

77
function fille(n)
8-
t = Array{LightGraphs.Edge,1}(n)
8+
t = Array{Graphs.Edge,1}(n)
99
for i in 1:n
10-
t[i] = LightGraphs.Edge(i, i + 1)
10+
t[i] = Graphs.Edge(i, i + 1)
1111
end
1212
return t
1313
end

benchmark/parallel/egonets.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using LightGraphs
1+
using Graphs
22
using BenchmarkTools
33
@show Threads.nthreads()
44

benchmark/traversals.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
@benchgroup "traversals" begin
22
@benchgroup "graphs" begin
33
for (name, g) in GRAPHS
4-
@bench "$(name): bfs_tree" LightGraphs.bfs_tree($g, 1)
5-
@bench "$(name): dfs_tree" LightGraphs.dfs_tree($g, 1)
4+
@bench "$(name): bfs_tree" Graphs.bfs_tree($g, 1)
5+
@bench "$(name): dfs_tree" Graphs.dfs_tree($g, 1)
66
end
77
end # graphs
88
@benchgroup "digraphs" begin
99
for (name, g) in DIGRAPHS
10-
@bench "$(name): bfs_tree" LightGraphs.bfs_tree($g, 1)
11-
@bench "$(name): dfs_tree" LightGraphs.dfs_tree($g, 1)
10+
@bench "$(name): bfs_tree" Graphs.bfs_tree($g, 1)
11+
@bench "$(name): dfs_tree" Graphs.dfs_tree($g, 1)
1212
end
1313
end # digraphs
1414
end # traversals

docs/make.jl

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
using Documenter
2-
#include("../src/LightGraphs.jl")
3-
using LightGraphs
2+
#include("../src/Graphs.jl")
3+
using Graphs
44

55
# same for contributing and license
66
cp(normpath(@__FILE__, "../../CONTRIBUTING.md"), normpath(@__FILE__, "../src/contributing.md"); force=true)
77
cp(normpath(@__FILE__, "../../LICENSE.md"), normpath(@__FILE__, "../src/license.md"); force=true)
88

99
makedocs(
10-
modules = [LightGraphs],
10+
modules = [Graphs],
1111
format = Documenter.HTML(),
12-
sitename = "LightGraphs",
12+
sitename = "Graphs",
1313
doctest = false,
1414
pages = Any[
1515
"Getting Started" => "index.md",
1616
"Choosing A Graph Type" => "graphtypes.md",
17-
"LightGraphs Types" => "types.md",
17+
"Graphs Types" => "types.md",
1818
"Accessing Properties" => "basicproperties.md",
1919
"Making and Modifying Graphs" => "generators.md",
2020
"Reading / Writing Graphs" => "persistence.md",
@@ -35,12 +35,12 @@ makedocs(
3535
"Contributing" => "contributing.md",
3636
"Developer Notes" => "developing.md",
3737
"License Information" => "license.md",
38-
"Citing LightGraphs" => "citing.md"
38+
"Citing Graphs" => "citing.md"
3939
]
4040
)
4141

4242
deploydocs(
43-
repo = "github.com/JuliaGraphs/LightGraphs.jl.git",
43+
repo = "github.com/JuliaGraphs/Graphs.jl.git",
4444
target = "build",
4545
)
4646

docs/notebooks/triangles.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Improving Triangle counting in LightGraphs\n",
7+
"# Improving Triangle counting in Graphs\n",
88
"We want to make triangle counting faster by improving the algorithm.\n",
99
"BenchmarkTools is used to make sure that we are measuring times with sufficient accuracy."
1010
]
@@ -17,7 +17,7 @@
1717
},
1818
"outputs": [],
1919
"source": [
20-
"using LightGraphs\n",
20+
"using Graphs\n",
2121
"using BenchmarkTools"
2222
]
2323
},

docs/src/centrality.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Centrality measures](https://en.wikipedia.org/wiki/Centrality) describe the
44
importance of a vertex to the rest of the graph using some set of criteria.
5-
Centrality measures implemented in *LightGraphs.jl* include the following:
5+
Centrality measures implemented in *Graphs.jl* include the following:
66

77

88
```@index
@@ -12,7 +12,7 @@ Pages = ["centrality.md"]
1212
## Full docs
1313

1414
```@autodocs
15-
Modules = [LightGraphs]
15+
Modules = [Graphs]
1616
Pages = [
1717
"centrality/betweenness.jl",
1818
"centrality/closeness.jl",

docs/src/citing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
We encourage you to cite our work if you have used our libraries, tools or datasets. Starring the repository on GitHub is also appreciated.
22

3-
The latest citation information may be found in the [CITATION.bib](https://raw.githubusercontent.com/JuliaGraphs/LightGraphs.jl/master/CITATION.bib) file
4-
within the LightGraphs repository.
3+
The latest citation information may be found in the [CITATION.bib](https://raw.githubusercontent.com/JuliaGraphs/Graphs.jl/master/CITATION.bib) file
4+
within the Graphs repository.
55

66
For previous versions, [please reference the zenodo site](https://zenodo.org/record/889971).

docs/src/coloring.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Coloring
22

3-
*LightGraphs.jl* defines a structure and basic interface for coloring algorithms.
3+
*Graphs.jl* defines a structure and basic interface for coloring algorithms.
44
Since coloring is a hard problem in the general case, users can extend the behavior
55
and define their own function taking a graph as input and returning the `Coloring` structure.
66

@@ -10,7 +10,7 @@ Pages = ["coloring.md"]
1010
```
1111

1212
```@autodocs
13-
Modules = [LightGraphs]
13+
Modules = [Graphs]
1414
Pages = [
1515
"traversals/greedy_color.jl",
1616
]

docs/src/community.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Community Structures
22

3-
*LightGraphs.jl* contains many algorithm to detect and analyze community structures
3+
*Graphs.jl* contains many algorithm to detect and analyze community structures
44
in graphs. These include:
55

66
```@index
@@ -11,7 +11,7 @@ Pages = ["community.md"]
1111
## Full Docs
1212

1313
```@autodocs
14-
Modules = [LightGraphs]
14+
Modules = [Graphs]
1515
Pages = [
1616
"community/cliques.jl",
1717
"community/clustering.jl",

0 commit comments

Comments
 (0)