Skip to content

Commit 5bcae79

Browse files
fix
1 parent 3f7ebbd commit 5bcae79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/graph.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ dataset Cora:
3434
metadata => Dict{String, Any} with 3 entries
3535
graphs => 1-element Vector{Graph}
3636
37-
julia> d[1] # a Graph
37+
julia> d[1]
3838
Graph:
3939
num_nodes => 2708
4040
num_edges => 10556
4141
edge_index => ("10556-element Vector{Int64}", "10556-element Vector{Int64}")
42-
node_data => (features = "1433×2708 Matrix{Float32}", targets = "2708-element Vector{Int64}", train_mask = "2708-element BitVector", val_mask = "2708-element BitVector", test_mask = "2708-element BitVector")
42+
node_data => (features = "1433×2708 Matrix{Float32}", targets = "2708-element Vector{Int64}", train_mask = "2708-element BitVector with 140 trues", val_mask = "2708-element BitVector with 500 trues", test_mask = "2708-element BitVector with 1000 trues")
4343
edge_data => nothing
4444
```
4545
@@ -63,7 +63,7 @@ t = [e.dst for e in Graphs.edges(g)]
6363
s, t = [s; t], [t; s] # adding reverse edges
6464
mlg = MLDatasets.Graph(num_nodes=10, edge_index=(s, t))
6565
66-
# From Graphs.jl to MLDatasets.Graphs
66+
# From MLDatasets.Graphs to Graphs.jl
6767
s, t = mlg.edge_index
6868
g = Graphs.DiGraph(mlg.num_nodes)
6969
for (i, j) in zip(s, t)

0 commit comments

Comments
 (0)