This sounds easy (in which case I will delete my question) and maybe I am getting a bit tired, but I can't find an easy way to create a list from an automatically-generated graph where vertices labels and coordinates are associated, e.g.
From this image...
...here is my code so far:
image = Import["https://i.stack.imgur.com/5ZNrE.png"]; mask = FillingTransform[Thinning[Binarize[ColorReplace[image, White -> Black, .055], 0]], CornerNeighbors -> True]; skel = Thinning[mask]; morphograph = MorphologicalGraph[skel, VertexSize -> 2, VertexLabels -> "Index"]; newtreegraph = TreeGraph[DeleteCases[EdgeList[morphograph], x_ [UndirectedEdge] x_], VertexCoordinates -> GraphEmbedding[morphograph], VertexSize -> 5, VertexLabels -> "Index"]
that generates this nice
From that, I can obtain the
EdgeList and vertices coordinates via
GraphEmbedding but cannot easily connect the two... There must be an easy way I can't find ... Thanks