Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print information about static nature of graph in display #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simsurace
Copy link

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.

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.
@KristofferC
Copy link

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

@simsurace
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants