Bug introduced in 10.0 or earlier and fixed in 12.0
We are planning to analyze the geometry of artery branch patterns. We convert the binarized image into graph object using MorphologicalGraph[]. To avoid the complexity of the code for later analysis, we want to save the graph objects to a separate file. We tried
Export["graphList.m", obtainBranchGraphList] and tried to use the object later. When we import the data using
g2 = Import["graphList.m"] resulting g2 seem to contain all the information of the graph. However, the content of g2 is something like
Graph[{3, 5, 4, 13, 17, 26, 21, 42}, {3 \[UndirectedEdge] 5, 4 \[UndirectedEdge] 5, 17 \[UndirectedEdge] 26, 21 \[UndirectedEdge] 26, 21 \[UndirectedEdge] 5, 42 \[UndirectedEdge] 26, 21 \[UndirectedEdge] 13}, {VertexLabels -> {"Name", 8 -> None, 12 -> None, 22 -> None, 14 -> None, 2 -> None, 29 -> None, 41 -> None, 38 -> None, 37 -> None, 20 -> None, 32 -> None, 18 -> None, 25 -> None, 7 -> None, 9 -> None, 19 -> None, 30 -> None, 16 -> None, 23 -> None, 39 -> None, 34 -> None, 40 -> None, 11 -> None, 44 -> None, 6 -> None, 36 -> None, 33 -> None, 1 -> None, 15 -> None, 35 -> None, 28 -> None, 24 -> None, 10 -> None, 27 -> None, 43 -> None, 31 -> None}, VertexCoordinates -> {{2096.5, 1813.5}, {2093.5, 1795.5}, {2144.5, 1810.5}, {2243.5, 1600.5}, {1892.5, 1581.5}, {1926.5, 1559.5}, {1942.5, 1571.5}, {1713.5, 1298.5}}}] and we could not reconstruct the graph from g2. Is there any way to convert this text to graph object?
Thank you very much in advance.
Takashi.
VertexLabels -> ...,part or change it toVertexLabels -> "Name"it works fine. $\endgroup$DumpSave["graphList.mx", obtainBranchGraphList]andGet["graphList.mx"]$\endgroup$