Bug introduced in 10.3.0 and fixed in 10.4.
Consider the following (very simple) graph, with two vertices and one edge:
g = Graph[{1, 2}, {1 <-> 2}];
I can use EdgeDelete
to remove the edge from this graph:
EdgeDelete[g, {1 <-> 2}] (* returns Graph[{1, 2}, {}] *)
But something bizarrre happens if I use EdgeDelete
to not remove any edges from the graph:
EdgeDelete[g, {}] (* returns StandardForm *)
For some reason, Mathematica returns the symbol StandardForm
! To be more precise, it returns some object that appears to be the symbol StandardForm
. I say this because attempting to interact with it in any way hangs the kernel:
EdgeDelete[g, {}] // FullForm (* evaluating any of these three lines *)
Print[EdgeDelete[g, {}]] (* causes the kernel to hang *)
Evaluate[EdgeDelete[g, {}]]
What's going on here? I'm using Mathematica 10.3 on Windows 10.
EdgeDelete[g, {}]
followed by evaluatingFullForm[Hold @@ %]
$\endgroup$In[391] := EdgeDelete[g, {}]
, evaluatingFullForm[Hold @@ %]
producesHold[391]
. For some reason, despite the Mathematica notebook displayingOut[391] := StandardForm
,Out[391]
remains undefined. $\endgroup$