Skip to content

Commit edece65

Browse files
jarbusyuehhua
authored andcommitted
Changed LightGraphs to Graphs
Conflicts: Project.toml Conflicts: test/runtests.jl
1 parent aca4235 commit edece65

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ GeometricFlux handles graph data (the topology plus node/vertex/graph features)
3434
thanks to the type `FeaturedGraph`.
3535

3636
A `FeaturedGraph` can be constructed out of
37-
adjacency matrices, adjacency lists, LightGraphs' types...
37+
adjacency matrices, adjacency lists, Graphs' types...
3838

3939
```julia
4040
fg = FeaturedGraph(adj_list)

docs/src/basics/passgraph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A static graph is used to reduce redundant computation during passing through la
1010
GCNConv(adj_mat, feat=>h1, relu)
1111
```
1212

13-
`Simple(Di)Graph`, `SimpleWeighted(Di)Graph` or `Meta(Di)Graph` provided by the packages LightGraphs, SimpleWeightedGraphs and MetaGraphs, respectively, are valid arguments for passing as a static graph to this layer. An adjacency list is also accepted in the type of `Vector{Vector}` is also accepted.
13+
`Simple(Di)Graph`, `SimpleWeighted(Di)Graph` or `Meta(Di)Graph` provided by the packages Graphs, SimpleWeightedGraphs and MetaGraphs, respectively, are valid arguments for passing as a static graph to this layer. An adjacency list is also accepted in the type of `Vector{Vector}` is also accepted.
1414

1515
## Variable graph
1616

@@ -20,7 +20,7 @@ Variable graphs are supported through `FeaturedGraph`, which contains both the g
2020
FeaturedGraph(adj_mat, features)
2121
```
2222

23-
`Simple(Di)Graph`, `SimpleWeighted(Di)Graph` or `Meta(Di)Graph` provided by the packages LightGraphs, SimpleWeightedGraphs and MetaGraphs, respectively, are acceptable for constructing a `FeaturedGraph`. An adjacency list is also accepted, too.
23+
`Simple(Di)Graph`, `SimpleWeighted(Di)Graph` or `Meta(Di)Graph` provided by the packages Graphs, SimpleWeightedGraphs and MetaGraphs, respectively, are acceptable for constructing a `FeaturedGraph`. An adjacency list is also accepted, too.
2424

2525
## Cached graph in layers
2626

examples/gae.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ using Flux: @epochs
66
using JLD2
77
using Statistics: mean
88
using SparseArrays
9-
using LightGraphs.SimpleGraphs
10-
using LightGraphs: adjacency_matrix
9+
using Graphs.SimpleGraphs
10+
using Graphs: adjacency_matrix
1111
using CUDA
1212

1313
@load "data/cora_features.jld2" features

examples/gat.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ using Flux.Data: DataLoader
66
using JLD2
77
using Statistics: mean
88
using SparseArrays
9-
using LightGraphs.SimpleGraphs
10-
using LightGraphs: adjacency_matrix
9+
using Graphs.SimpleGraphs
10+
using Graphs: adjacency_matrix
1111
using CUDA
1212

1313
@load "data/cora_features.jld2" features

examples/gcn.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ using Flux: @epochs
55
using JLD2
66
using Statistics
77
using SparseArrays
8-
using LightGraphs.SimpleGraphs
9-
using LightGraphs: adjacency_matrix
8+
using Graphs.SimpleGraphs
9+
using Graphs: adjacency_matrix
1010
using CUDA
1111
using Random
1212

examples/gde.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using GeometricFlux, Flux, JLD2, SparseArrays, DiffEqFlux, DifferentialEquations
22
using Flux: onehotbatch, onecold, logitcrossentropy, throttle
33
using Flux: @epochs
44
using Statistics: mean
5-
using LightGraphs: adjacency_matrix
5+
using Graphs: adjacency_matrix
66

77
# Load the dataset
88
@load "data/cora_features.jld2" features

examples/gde_gpu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using GeometricFlux, Flux, JLD2, SparseArrays, DiffEqFlux, DifferentialEquations
22
using Flux: onehotbatch, onecold, logitcrossentropy, throttle
33
using Flux: @epochs
44
using Statistics: mean
5-
using LightGraphs: adjacency_matrix
5+
using Graphs: adjacency_matrix
66
using CUDA
77

88
# Load the dataset

examples/vgae.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ using Flux: @epochs
77
using JLD2
88
using Statistics
99
using SparseArrays
10-
using LightGraphs.SimpleGraphs
11-
using LightGraphs: adjacency_matrix
10+
using Graphs.SimpleGraphs
11+
using Graphs: adjacency_matrix
1212

1313
@load "data/cora_features.jld2" features
1414
@load "data/cora_graph.jld2" g

paper/paper.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ \section{Static and Variable Graph Support}
139139
processed for efficiency in prior during constructing GNN layer and variable graphs are
140140
processed during network training time. In this framework, graph network block is designed as
141141
fundamental layers. Each layer accepts input of node features, edge features, global features
142-
and graph. Graph structures from LightGraphs.jl, SimpleWeightedGraphs.jl and MetaGraphs.jl
142+
and graph. Graph structures from Graphs.jl, SimpleWeightedGraphs.jl and MetaGraphs.jl
143143
are accepted. FeaturedGraph is designed as generic data structure for containing different
144144
kinds of features and graph structure.
145145

@@ -157,16 +157,16 @@ \section{Compatible with Flux Layers}
157157
\section{Integration with JuliaGraphs}
158158

159159
JuliaGraphs already forms a whole ecosystem for graph operations, graph visualization and
160-
solving problems in graph theory. LightGraphs.jl and SimpleWeightedGraphs.jl provides the
160+
solving problems in graph theory. Graphs.jl and SimpleWeightedGraphs.jl provides the
161161
graph construction and representation in unweighted and weighted graphs.
162162
MetaGraphs.jl provides user the chance to assign properties on nodes, edges or global graph.
163163
Integration with JuliaGraphs ecosystem provides more ways to assign graph to model and
164164
reduce the effort of transformation between data types. Graph representation constructed
165-
from LightGraphs.jl, SimpleWeightedGraphs.jl and MetaGraphs.jl are accepted in construction
165+
from Graphs.jl, SimpleWeightedGraphs.jl and MetaGraphs.jl are accepted in construction
166166
of geometric deep learning model in GeometricFlux. Under construction of graph convolutional
167167
layer, a static graph is accepted as one of arguments of neural network layer during
168168
configuring model. In the context of using variable graph, FeaturedGraph also accepts graph
169-
representation constructed from LightGraphs.jl, SimpleWeightedGraphs.jl and MetaGraphs.jl
169+
representation constructed from Graphs.jl, SimpleWeightedGraphs.jl and MetaGraphs.jl
170170
and can be fed as sample directly to model. This feature accepts graph representations
171171
from JuliaGraphs ecosystem to geometric deep learning model.
172172

perf/perf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flux, GeometricFlux, LightGraphs, BenchmarkTools, CUDA
1+
using Flux, GeometricFlux, Graphs, BenchmarkTools, CUDA
22
using DataFrames, Statistics, JLD2, SparseArrays
33

44
BenchmarkTools.ratio(::Missing, x) = Inf

0 commit comments

Comments
 (0)