diff --git a/.github/workflows/multidocs.yml b/.github/workflows/multidocs.yml index 46418813d..b8de48864 100644 --- a/.github/workflows/multidocs.yml +++ b/.github/workflows/multidocs.yml @@ -21,10 +21,8 @@ jobs: run: git config --global init.defaultBranch master - name: Build GNNGraphs docs - run: - julia --project=GNNGraphs/docs/ -e ' + run: julia --project=GNNGraphs/docs/ -e' using Pkg; - pkg"dev ./GNNGraphs"; Pkg.instantiate(); include("GNNGraphs/docs/make.jl")' env: @@ -34,7 +32,6 @@ jobs: - name: Build GNNlib docs run: julia --project=GNNlib/docs/ -e ' using Pkg; - pkg"dev ./GNNlib ./GNNGraphs"; Pkg.instantiate(); include("GNNlib/docs/make.jl")' env: @@ -44,7 +41,6 @@ jobs: - name: Build GNNLux docs run: julia --project=GNNLux/docs/ -e ' using Pkg; - pkg"dev ./GNNLux ./GNNlib ./GNNGraphs"; Pkg.instantiate(); include("GNNLux/docs/make.jl")' env: @@ -54,7 +50,6 @@ jobs: - name: Build GraphNeuralNetworks docs run: julia --project=GraphNeuralNetworks/docs/ -e ' using Pkg; - pkg"dev ./GraphNeuralNetworks ./GNNlib ./GNNGraphs"; Pkg.instantiate(); include("GraphNeuralNetworks/docs/make.jl")' env: @@ -66,15 +61,8 @@ jobs: - name: Install dependencies for multidocs run: julia --project=docs/ -e ' using Pkg; - pkg"dev ./GraphNeuralNetworks ./GNNlib ./GNNGraphs ./GNNLux"; Pkg.instantiate();' - - name: Check if objects.inv exists for GraphNeuralNetworks - run: | - if [ -f GraphNeuralNetworks/docs/build/objects.inv ]; then - echo "GraphNeuralNetworks: objects.inv exists." - else - echo "GraphNeuralNetworks: objects.inv does not exist!" && exit 1 - fi + - name: Config git env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token diff --git a/GNNGraphs/docs/make.jl b/GNNGraphs/docs/make.jl index 1e95d1654..21246d124 100644 --- a/GNNGraphs/docs/make.jl +++ b/GNNGraphs/docs/make.jl @@ -2,8 +2,7 @@ using Documenter using DocumenterInterLinks using GNNGraphs using MLUtils # this is needed by setdocmeta! -import Graphs -using Graphs: induced_subgraph +using Graphs DocMeta.setdocmeta!(GNNGraphs, :DocTestSetup, :(using GNNGraphs, MLUtils); recursive = true) diff --git a/GNNGraphs/docs/src/api/heterograph.md b/GNNGraphs/docs/src/api/heterograph.md index 18a5562e2..b9192127c 100644 --- a/GNNGraphs/docs/src/api/heterograph.md +++ b/GNNGraphs/docs/src/api/heterograph.md @@ -23,6 +23,9 @@ Pages = ["gnnheterograph/query.jl"] Private = false ``` +```@docs +Graphs.has_edge(g::GNNHeteroGraph, edge_t::EType, i::Integer, j::Integer) +``` ## Transform ```@autodocs diff --git a/GNNGraphs/src/gnnheterograph/query.jl b/GNNGraphs/src/gnnheterograph/query.jl index 831e654eb..9c8db78d7 100644 --- a/GNNGraphs/src/gnnheterograph/query.jl +++ b/GNNGraphs/src/gnnheterograph/query.jl @@ -12,7 +12,7 @@ edge_index(g::GNNHeteroGraph{<:COO_T}) = only(g.graph)[2][1:2] get_edge_weight(g::GNNHeteroGraph{<:COO_T}, edge_t::EType) = g.graph[edge_t][3] """ - has_edge(g::GNNHeteroGraph, edge_t, i, j) + Graphs.has_edge(g::GNNHeteroGraph, edge_t::EType, i::Integer, j::Integer) Return `true` if there is an edge of type `edge_t` from node `i` to node `j` in `g`. diff --git a/GNNGraphs/src/sampling.jl b/GNNGraphs/src/sampling.jl index 6e38730f0..ad571552b 100644 --- a/GNNGraphs/src/sampling.jl +++ b/GNNGraphs/src/sampling.jl @@ -119,7 +119,7 @@ end """ - induced_subgraph(graph, nodes) + Graphs.induced_subgraph(graph::GNNGraph, nodes::Vector{Int}) Generates a subgraph from the original graph using the provided `nodes`. The function includes the nodes' neighbors and creates edges between nodes that are connected in the original graph.