Skip to content

Commit 2e52a2c

Browse files
committed
Fix GNNGraphs
1 parent 7bd58c6 commit 2e52a2c

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

GNNGraphs/docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using DocumenterInterLinks
33
using GNNGraphs
44
using MLUtils # this is needed by setdocmeta!
55
import Graphs
6-
using Graphs: induced_subgraph
6+
using Graphs: induced_subgraph, has_edge
77

88

99
DocMeta.setdocmeta!(GNNGraphs, :DocTestSetup, :(using GNNGraphs, MLUtils); recursive = true)

GNNGraphs/docs/src/api/heterograph.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ Modules = [GNNGraphs]
2222
Pages = ["gnnheterograph/query.jl"]
2323
Private = false
2424
```
25-
25+
```@docs
26+
Graphs.has_edge(g::GNNHeteroGraph, edge_t::EType, i::Integer, j::Integer)
27+
```
2628
## Transform
2729

2830
```@autodocs

GNNGraphs/src/gnnheterograph/query.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edge_index(g::GNNHeteroGraph{<:COO_T}) = only(g.graph)[2][1:2]
1212
get_edge_weight(g::GNNHeteroGraph{<:COO_T}, edge_t::EType) = g.graph[edge_t][3]
1313

1414
"""
15-
has_edge(g::GNNHeteroGraph, edge_t, i, j)
15+
Graphs.has_edge(g::GNNHeteroGraph, edge_t::EType, i::Integer, j::Integer)
1616
1717
Return `true` if there is an edge of type `edge_t` from node `i` to node `j` in `g`.
1818

GNNGraphs/src/sampling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ end
119119

120120

121121
"""
122-
induced_subgraph(graph, nodes)
122+
Graphs.induced_subgraph(graph::GNNGraph, nodes::Vector{Int})
123123
124124
Generates a subgraph from the original graph using the provided `nodes`.
125125
The function includes the nodes' neighbors and creates edges between nodes that are connected in the original graph.

0 commit comments

Comments
 (0)