Bug introduced in version 8 or earlier and fixed in 10.0
I have created a notebook with two cells. This is the content of the first:
g = Graph[{1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3, 1 \[UndirectedEdge] 3, 1 \[UndirectedEdge] 4, 4 \[UndirectedEdge] 5, 4 \[UndirectedEdge] 6}]
And this is the content of the second:
g
listDegree = VertexDegree[g]
vl = VertexList[g]
nodeMaxDegree = Pick[vl, listDegree, Max[VertexDegree[g]]][[1]]
aM = AdjacencyMatrix[g];
vLM = aM[[VertexIndex[g, nodeMaxDegree]]];
nN = Pick[vl, vLM, 0]
If I evaluate the second cell (after processing the first) for a second time:
- the first time no problem, the results are correct;
- the second time the vertex list of
g
is inexplicably wrong but the graph remain correct!!
I don't understand the cause because the graph g
is never touched.
Thanks in advance
FullForm[vl]
givesList[1, System`Private`InternSequence[], System`Private`InternSequence[], System`Private`InternSequence[], 5, 6]
. $\endgroup$Typeset`MakeBoxes[_, StandardForm]
not having a rule forSystem'Private'InternSequence[]
like it does forSequence[]
$\endgroup$Spelunk
but the way howMakeBoxes
definitions are returned and converted to boxformat: just try for exampleAttributes[LabeledSlider] = {}; FullDefinition@LabeledSlider
and be prepared for LOTS of errors... $\endgroup$