Skip to content

Commit 16a9362

Browse files
fix docs
1 parent f8a2695 commit 16a9362

File tree

5 files changed

+25
-29
lines changed

5 files changed

+25
-29
lines changed

docs/make.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using Flux, NNlib, GraphNeuralNetworks, Graphs, SparseArrays
22
using Documenter
33

4-
DocMeta.setdocmeta!(GraphNeuralNetworks, :DocTestSetup, :(using GraphNeuralNetworks); recursive=true)
4+
DocMeta.setdocmeta!(GraphNeuralNetworks, :DocTestSetup,
5+
:(using GraphNeuralNetworks, Graphs, SparseArrays, NNlib, Flux);
6+
recursive=true)
57

68
makedocs(;
79
modules=[GraphNeuralNetworks, NNlib, Flux, Graphs, SparseArrays],

docs/src/api/gnngraph.md

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ CurrentModule = GraphNeuralNetworks
44

55
# GNNGraph
66

7-
Documentation page for the graph type `GNNGraph` provided GraphNeuralNetworks.jl and its related methods.
7+
Documentation page for the graph type `GNNGraph` provided by GraphNeuralNetworks.jl and related methods.
8+
9+
```@contents
10+
Pages = ["gnngraph.md"]
11+
Depth = 5
12+
```
813

914
Besides the methods documented here, one can rely on the large set of functionalities
1015
given by [Graphs.jl](https://github.com/JuliaGraphs/Graphs.jl)
@@ -17,21 +22,19 @@ Order = [:type, :function]
1722
Pages = ["gnngraph.md"]
1823
```
1924

20-
## Docs
21-
22-
### GNNGraph
25+
## GNNGraph type
2326

2427
```@autodocs
25-
Modules = [GraphNeuralNetworks]
26-
Pages = ["GNNGraphs/gnngraph.jl"]
28+
Modules = [GraphNeuralNetworks.GNNGraphs]
29+
Pages = ["gnngraph.jl"]
2730
Private = false
2831
```
2932

30-
### Query
33+
## Query
3134

3235
```@autodocs
33-
Modules = [GraphNeuralNetworks]
34-
Pages = ["GNNGraphs/query.jl"]
36+
Modules = [GraphNeuralNetworks.GNNGraphs]
37+
Pages = ["query.jl"]
3538
Private = false
3639
```
3740

@@ -42,29 +45,18 @@ Graphs.outneighbors
4245
Graphs.inneighbors
4346
```
4447

45-
### Transform
48+
## Transform
4649

4750
```@autodocs
48-
Modules = [GraphNeuralNetworks]
49-
Pages = ["GNNGraphs/transform.jl"]
51+
Modules = [GraphNeuralNetworks.GNNGraphs]
52+
Pages = ["transform.jl"]
5053
Private = false
5154
```
5255

53-
```@docs
54-
Flux.batch
55-
SparseArrays.blockdiag
56-
```
57-
58-
### Generate
56+
## Generate
5957

6058
```@autodocs
61-
Modules = [GraphNeuralNetworks]
62-
Pages = ["GNNGraphs/generate.jl"]
59+
Modules = [GraphNeuralNetworks.GNNGraphs]
60+
Pages = ["generate.jl"]
6361
Private = false
6462
```
65-
66-
### Related methods
67-
68-
```@docs
69-
SparseArrays.sparse
70-
```

docs/src/gnngraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ target = [2,3,1,3,1,2,4,3]
3636
g = GNNGraph(source, target)
3737
```
3838

39-
See also the related methods [`adjacency_matrix`](@ref), [`edge_index`](@ref), and [`adjacency_list`](@ref).
39+
See also the related methods [`Graphs.adjacency_matrix`](@ref), [`edge_index`](@ref), and [`adjacency_list`](@ref).
4040

4141
## Basic Queries
4242

src/GraphNeuralNetworks.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ using NNlib: scatter, gather
1212
using ChainRulesCore
1313
using Reexport
1414

15+
using SparseArrays, Graphs # not needed but if removed Documenter will complain
16+
1517
include("GNNGraphs/GNNGraphs.jl")
1618
@reexport using .GNNGraphs
1719
using .GNNGraphs: COO_T, ADJMAT_T, SPARSE_T,

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Softmax over each node's neighborhood of the edge features `e`.
121121
122122
```math
123123
\mathbf{e}'_{j\to i} = \frac{e^{\mathbf{e}_{j\to i}}}
124-
{\sum_{j'\in N(i)} e^{\mathbf{e}_{j\to i}}}.
124+
{\sum_{j'\in N(i)} e^{\mathbf{e}_{j'\to i}}}.
125125
```
126126
"""
127127
function softmax_edge_neighbors(g::GNNGraph, e)

0 commit comments

Comments
 (0)