Reviewed-on: Rubydragon/MetagraphOptimization.jl#6 Co-authored-by: Anton Reinhard <anton.reinhard@proton.me> Co-committed-by: Anton Reinhard <anton.reinhard@proton.me>
18 lines
357 B
Julia
18 lines
357 B
Julia
"""
|
|
show(io::IO, n::Node)
|
|
|
|
Print a short string representation of the node to io.
|
|
"""
|
|
function show(io::IO, n::Node)
|
|
return print(io, "Node(", n.task, ")")
|
|
end
|
|
|
|
"""
|
|
show(io::IO, e::Edge)
|
|
|
|
Print a short string representation of the edge to io.
|
|
"""
|
|
function show(io::IO, e::Edge)
|
|
return print(io, "Edge(", e.edge[1], ", ", e.edge[2], ")")
|
|
end
|