Some types of objects have special input/output formatting in Mathematica. This includes Graphics
, raster images, and, as of Mathematica 8, graphs (Graph[]
). Unfortunately large graphs may take a very long time to visualize, much longer than most other operations I'm doing on them during interactive work.
How can I prevent auto-layout of Graph[]
objects in StandardForm and TraditionalForm, and have them displayed as e.g. -Graph-
, preferably preserving the interpretability of the output (perhaps using Interpretation
?). I think this will involve changing Format
and/or MakeBoxes
in some way, but I was unsuccessful in getting this to work.
I would like to do this in a reversible way, and preferably define a function that will return the original interactive graph display when applied to a Graph
object (not the same as GraphPlot
, which is not interactive).
On a related note, is there a way to retrieve Format/MakeBoxes definitions associated with certain symbols? FormatValues
is one relevant function, but it is empty for Graph
.
Sample session:
In[1]:= Graph[{1->2, 2->3, 3->1}]
Out[1]= -Graph-
In[2]:= interactiveGraphPlot[%] (* note that % works *)
Out[2]= (the usual interactive graph plot should be shown here)
$PrePrint
version and tell me if it works. – Helotry