Skip to content

Commit b137560

Browse files
some doctests fix
1 parent 553af1d commit b137560

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

GNNGraphs/src/gnngraph.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,19 +291,19 @@ function Base.show(io::IO, ::MIME"text/plain", g::GNNGraph)
291291
if !isempty(g.ndata)
292292
print(io, "\n ndata:")
293293
for k in keys(g.ndata)
294-
print(io, "\n\t$k = $(shortsummary(g.ndata[k]))")
294+
print(io, "\n $k = $(shortsummary(g.ndata[k]))")
295295
end
296296
end
297297
if !isempty(g.edata)
298298
print(io, "\n edata:")
299299
for k in keys(g.edata)
300-
print(io, "\n\t$k = $(shortsummary(g.edata[k]))")
300+
print(io, "\n $k = $(shortsummary(g.edata[k]))")
301301
end
302302
end
303303
if !isempty(g.gdata)
304304
print(io, "\n gdata:")
305305
for k in keys(g.gdata)
306-
print(io, "\n\t$k = $(shortsummary(g.gdata[k]))")
306+
print(io, "\n $k = $(shortsummary(g.gdata[k]))")
307307
end
308308
end
309309
end

GNNGraphs/src/gnnheterograph/generate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Additional keyword arguments will be passed to the [`GNNHeteroGraph`](@ref) cons
1919
julia> g = rand_heterograph((:user => 10, :movie => 20),
2020
(:user, :rate, :movie) => 30)
2121
GNNHeteroGraph:
22-
num_nodes: (:user => 10, :movie => 20)
23-
num_edges: ((:user, :rate, :movie) => 30,)
22+
num_nodes: Dict(:movie => 20, :user => 10)
23+
num_edges: Dict((:user, :rate, :movie) => 30)
2424
```
2525
"""
2626
function rand_heterograph end

GNNGraphs/src/gnnheterograph/query.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Return `true` if there is an edge of type `edge_t` from node `i` to node `j` in
2121
```jldoctest
2222
julia> g = rand_bipartite_heterograph((2, 2), (4, 0), bidirected=false)
2323
GNNHeteroGraph:
24-
num_nodes: (:A => 2, :B => 2)
25-
num_edges: ((:A, :to, :B) => 4, (:B, :to, :A) => 0)
24+
num_nodes: Dict(:A => 2, :B => 2)
25+
num_edges: Dict((:A, :to, :B) => 4, (:B, :to, :A) => 0)
2626
2727
julia> has_edge(g, (:A,:to,:B), 1, 1)
2828
true

0 commit comments

Comments
 (0)