Skip to content

Commit

Permalink
Shorten MetaGraph representation
Browse files Browse the repository at this point in the history
  • Loading branch information
huguesmp committed Aug 12, 2023
1 parent 5c98f33 commit 407a3a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/metagraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ end
## Base extensions

function Base.show(
io::IO, meta_graph::MetaGraph{<:Any,<:Any,Label,VertexData,EdgeData}
) where {Label,VertexData,EdgeData}
io::IO, meta_graph::MetaGraph{<:Any,BaseGraph,Label,VertexData,EdgeData}
) where {BaseGraph,Label,VertexData,EdgeData}
print(
io,
"Meta graph based on a $(meta_graph.graph) with vertex labels of type $Label, vertex metadata of type $VertexData, edge metadata of type $EdgeData, graph metadata given by $(repr(meta_graph.graph_data)), and default weight $(meta_graph.default_weight)",
"Meta graph based on a $(BaseGraph) with vertex labels of type $Label, vertex metadata of type $VertexData, edge metadata of type $EdgeData, graph metadata given by $(repr(meta_graph.graph_data)), and default weight $(meta_graph.default_weight)",
)
return nothing
end
Expand Down

0 comments on commit 407a3a2

Please sign in to comment.