#18289: Revert the changes that #17821 made to graph/
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.7
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers: Nathann Cohen
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/faster_output_for_large_graphs|
e9e7759f34e46e610f9f477e433919893973cf37
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ncohen):
> So whats the preferred behavior:
> * Show graphs as picture (if the graph is small)
> * Do not participate in rich output, graphs cannot be shown as picture
(unless you plot them)
> * Keep the inconsistent behavior bug-for-bug where `show(graph)` does
something different than the displayhook, and leave graphs as the only
object in Sage that does not work.
Without addressing the actual implementation, it seems rather clear to me
that whoever types `show(a_graph)` wants a picture of it.
The problem with graphs is that it is potentially very slow to plot them
(apparently because of matplotlib), but in general there is not "one good
drawing" of a graph. Moreover, at the moment the default plotting
algorithm will give you a different drawing every time you call it.
Having a different behaviour depending on the size of the graph does not
look good to me either, for it is not like for matrices where you see the
whole matrix or just a one-line description: indeed, for graphs it would
open a new windows (with a picture) in some cases or print a line of text.
All in all, having `show(a_graph)` display the TikZ/LaTeX code of the
graph is definitely not what we would expect from the command.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/18289#comment:42>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.