Skip to content

Commit 1a4c62b

Browse files
authored
Fix typos and julia repl text (#320)
1 parent 5587f7b commit 1a4c62b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/heterograph.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Heterogeneous Graphs
22

3-
Heterogeneus graphs (also called heterographs), are graphs where each node has a type,
3+
Heterogeneous graphs (also called heterographs), are graphs where each node has a type,
44
that we denote with symbols such as `:user` and `:movie`,
55
and edges also represent different relations identified
66
by a triplet of symbols, `(source_node_type, edge_type, target_node_type)`, as in `(:user, :rate, :movie)`.
77

8-
Different node/edge types can store different group of features
8+
Different node/edge types can store different groups of features
99
and this makes heterographs a very flexible modeling tools
1010
and data containers. In GraphNeuralNetworks.jl heterographs are implemented in
1111
the type [`GNNHeteroGraph`](@ref).
@@ -73,7 +73,7 @@ julia> g.etypes
7373

7474
## Data Features
7575

76-
Node, edge, and graph features can be added at constuction time or later using:
76+
Node, edge, and graph features can be added at construction time or later using:
7777
```julia-repl
7878
# equivalent to g.ndata[:user][:x] = ...
7979
julia> g[:user].x = rand(Float32, 64, 3);
@@ -97,7 +97,6 @@ GNNHeteroGraph:
9797
## Batching
9898
Similarly to graphs, also heterographs can be batched together.
9999
```julia-repl
100-
```julia
101100
julia> gs = [rand_bipartite_heterograph((5, 10), 20) for _ in 1:32];
102101
103102
julia> Flux.batch(gs)
@@ -108,6 +107,7 @@ GNNHeteroGraph:
108107
```
109108
Batching is automatically performed by the [`DataLoader`](@ref) iterator
110109
when the `collate` option is set to `true`.
110+
111111
```julia-repl
112112
using Flux: DataLoader
113113
@@ -127,4 +127,4 @@ end
127127

128128
## Graph convolutions on heterographs
129129

130-
See [`HeteroGraphConv`](@ref) for how to perform convolutions on heterogenous graphs.
130+
See [`HeteroGraphConv`](@ref) for how to perform convolutions on heterogeneous graphs.

0 commit comments

Comments
 (0)