diff --git a/.gitignore b/.gitignore index 1face5b..c35353a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.jl.*.cov *.jl.mem .DS_Store +Manifest.toml diff --git a/src/StaticGraphs.jl b/src/StaticGraphs.jl index eda5cb8..d01d0cf 100644 --- a/src/StaticGraphs.jl +++ b/src/StaticGraphs.jl @@ -61,6 +61,11 @@ function show(io::IO, g::AbstractStaticGraph) print(io, "{$(nv(g)), $(ne(g))} $dir simple static {$(vectype(g)), $(indtype(g))} graph") end +function show(io::IO, ::MIME"text/plain", g::AbstractStaticGraph) + dir = is_directed(g) ? "directed" : "undirected" + print(io, "{$(nv(g)), $(ne(g))} $dir simple static {$(vectype(g)), $(indtype(g))} graph") +end + @inline function _fvrange(g::AbstractStaticGraph, s::Integer) @inbounds r_start = g.f_ind[s] @inbounds r_end = g.f_ind[s + 1] - 1