Message Boards Message Boards

How to extract coordinates from LayeredGraphPlot graph?

Posted 5 years ago

I am aware that for a Graph[] object, I can get the coordinate by AbsoluteOptions[g, VertexCoordinates], but for LayredGraphPlot, I don't know how to get the coordinate or the rules.

Thank you!

POSTED BY: Wenzhen Zhu

Do not use LayeredGraphPlot. Use Graph and GraphEmbedding.

Look at the 2nd argument of GraphEmbedding and also at GraphLayout -> "LayeredDigraphEmbedding".

POSTED BY: Szabolcs Horvát
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract