Skip to content

Commit

Permalink
revisit tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Dec 17, 2024
1 parent 4e88944 commit 59ca049
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions GNNGraphs/docs/src/guides/temporalgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ TemporalSnapshotsGNNGraph:
num_edges: [32, 30, 34]
num_snapshots: 3
```

## Indexing

Snapshots in a temporal graph can be accessed using indexing:
Expand Down Expand Up @@ -85,6 +86,7 @@ GNNGraph:
num_nodes: 10
num_edges: 16
```

## Iteration and Broadcasting

Iteration and broadcasting over a temporal graph is similar to that of a vector of snapshots:
Expand Down
4 changes: 4 additions & 0 deletions GraphNeuralNetworks/docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ GraphMakie = "1ecd5474-83a3-4783-bb4f-06765db800d2"
GraphNeuralNetworks = "cffab07f-9bc2-4db1-8861-388f63bf7694"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PlutoStaticHTML = "359b1769-a58e-495b-9770-312e911026ad"
Expand All @@ -19,3 +20,6 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
TSne = "24678dba-d5e9-5843-a4c6-250288b04835"
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"

[compat]
Literate = "2.20"
6 changes: 6 additions & 0 deletions GraphNeuralNetworks/docs/make_tutorials_literate.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using Literate

ENV["DATADEPS_ALWAYS_ACCEPT"] = true

Literate.markdown("src_tutorials/introductory_tutorials/temporal_graph_classification.jl",
"src/tutorials/"; execute = true)
6 changes: 3 additions & 3 deletions GraphNeuralNetworks/docs/make_tutorials_pluto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ build_notebooks(bopt,
move_tutorials("src_tutorials/introductory_tutorials/", "src/tutorials/")

# Build temporal tutorials
bopt_temp = BuildOptions("src_tutorials/temporalconv_tutorials/";
bopt_temp = BuildOptions("src_tutorials/";
output_format = documenter_output, use_distributed = false)

build_notebooks(
BuildOptions(bopt_temp;
output_format = documenter_output),
["temporal_graph_classification_pluto.jl", "traffic_prediction.jl"],
["traffic_prediction.jl"],
OutputOptions()
)

move_tutorials("src_tutorials/temporalconv_tutorials/", "src/tutorials/")
move_tutorials("src_tutorials/", "src/tutorials/")

0 comments on commit 59ca049

Please sign in to comment.