StaticGraphs.jl icon indicating copy to clipboard operation
StaticGraphs.jl copied to clipboard

Print information about static nature of graph in display

Open simsurace opened this issue 1 year ago • 2 comments

The show function is only overloaded for inline printing, but when displaying the graph, the information about its static nature is missing, potentially confusing users:

julia> g
{58089, 120148} directed simple Int32 graph

julia> (g, nothing)
({58089, 120148} directed simple static {Int32, Int32} graph, nothing)

This PR fixes that.

simsurace avatar May 02 '24 10:05 simsurace

I wonder if the 2 arg show method should perhaps be removed?

KristofferC avatar May 02 '24 10:05 KristofferC

I'm never quite sure about this. Wouldn't it then print the "ugly" style when inline?

simsurace avatar May 02 '24 11:05 simsurace