Description
What is the feature or improvement you would like to see?
In a notebook environment, when evaluating a graph, it now displays something like <igraph.Graph at 0x11fd18400>
. Instead, it should plot the graph. It should show a graphical representation. This should happen for small graphs only (it's useless and counterproductive for large graphs which are slow to lay out or don't render nicely at on-screen sizes).
This would be a major improvement to user experience, and is in the spirit of making igraph accessible to everyone, and making full use of interactive notebook features.
Both Mathematica and SageMath do this by default in their respective notebook environments. Use them as a model for how to implement this.
You can try SageMath at cocalc.com. SageMath does not display the result when it is assigned to a variable, but it does otherwise. First evaluate g=Graph([(0,1),(1,2),(2,0)])
, then g
. You can try Mathematica at https://www.wolframcloud.com/ (free account needed). Evaluate RandomGraph[{10,20}]
.
Use cases for the feature
Usability.
References
See Mathematica and SageMath.