Skip to content

Commit

Permalink
Migrate from LightGraphs to Graphs.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschoelly authored Oct 20, 2021
1 parent 3c41e90 commit dd8d28d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name = "GraphDatasets"
uuid = "bf13de61-383b-4610-8d2c-e75fac0df62b"
authors = ["Simon Schoelly <[email protected]> and contributors"]
version = "0.1.1"
version = "0.2.0"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe"
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
SimpleValueGraphs = "b43c691f-cac2-5415-8122-396fe16a49fc"

[compat]
julia = "1.5"
SimpleValueGraphs = "0.3.1"
DataDeps = "0.7.7"
CSV = "0.8.3"
LightGraphs = "1.3.5"
DataDeps = "0.7.7"
Graphs = "1.4.1"
SimpleValueGraphs = "0.4"
julia = "1.5"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ julia> g = qm9[1234]
edge value types: (Bool, Bool, Bool, Bool)
graph value types:= Float64, α = Float64, ϵ_HOMO = Float64, ϵ_LUMO = Float64, Δϵ = Float64, electronig_spatial_energy = Float64, ZPVE = Float64, U_0 = Float64, U = Float64, H = Float64, G = Float64, c_v = Float64, UATOM_0 = Float64, UTAM = Float64, HATOM = Float64, GATOM = Float64, A = Float64, B = Float64, C = Float64)

# ValGraphCollectionView inherits from LightGraphs.AbstractGraph and SimpleValueGraphs.AbstractValGraph
# ValGraphCollectionView inherits from Graphs.AbstractGraph and SimpleValueGraphs.AbstractValGraph
# and can therefore be used like other graph types
julia> using LightGraphs: diameter
julia> using Graphs: diameter

julia> diameter(g)
7
Expand All @@ -67,7 +67,7 @@ julia> ValGraph(g)

- [GraphMLDatasets.jl](https://github.com/yuehhua/GraphMLDatasets.jl)
- [SNAPDatasets.jl](https://github.com/JuliaGraphs/SNAPDatasets.jl)
- [LightGraphsExtras.j](https://github.com/JuliaGraphs/LightGraphsExtras.jl)
- [GraphsExtras.j](https://github.com/JuliaGraphs/GraphsExtras.jl)
- [MatrixMarket.jl](https://github.com/JuliaSparse/MatrixMarket.jl)
- [MatrixDepot.jl](https://github.com/JuliaMatrices/MatrixDepot.jl)

Expand Down
4 changes: 2 additions & 2 deletions src/GraphDatasets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module GraphDatasets

import Base: getindex, length, eltype, iterate, show, firstindex, lastindex

import LightGraphs: loadgraphs, SimpleGraph
import Graphs: loadgraphs, SimpleGraph

import SimpleValueGraphs:
nv, has_edge, is_directed,
Expand Down Expand Up @@ -32,7 +32,7 @@ export
lastindex,


# reexport from LightGraphs & SimpleValueGraphs
# reexport from Graphs.jl & SimpleValueGraphs
nv,
has_edge,

Expand Down

2 comments on commit dd8d28d

@simonschoelly
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/47115

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" dd8d28d8444ebd41f752eb07f1fceae9aec31861
git push origin v0.2.0

Please sign in to comment.