You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GNNGraphs/docs/src/guides/temporalgraph.md
+38-11Lines changed: 38 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ CurrentModule = GNNGraphs
4
4
5
5
# Temporal Graphs
6
6
7
-
Temporal Graphs are graphs with timevarying topologies and features. In GNNGraphs.jl, temporal graphs with fixed number of nodes over time are supported by the [`TemporalSnapshotsGNNGraph`](@ref) type.
7
+
Temporal Graphs are graphs with time-varying topologies and features. In GNNGraphs.jl, temporal graphs with are represented by the [`TemporalSnapshotsGNNGraph`](@ref) type.
8
8
9
9
## Creating a TemporalSnapshotsGNNGraph
10
10
@@ -13,7 +13,7 @@ A temporal graph can be created by passing a list of snapshots to the constructo
13
13
```jldoctest temporal
14
14
julia> using GNNGraphs
15
15
16
-
julia> snapshots = [rand_graph(10,20) for i in 1:5];
16
+
julia> snapshots = [rand_graph(10,20) for i in 1:5];
17
17
18
18
julia> tg = TemporalSnapshotsGNNGraph(snapshots)
19
19
TemporalSnapshotsGNNGraph:
@@ -56,24 +56,53 @@ TemporalSnapshotsGNNGraph:
56
56
num_edges: [32, 30, 34]
57
57
num_snapshots:3
58
58
```
59
+
## Indexing
60
+
61
+
Snapshots in a temporal graph can be accessed using indexing:
0 commit comments