I have a Graph
object x
such that
GraphLayout /. AbsoluteOptions[x]
evaluates to Automatic
.
I want generate an object y
from x
such that
GraphLayout /. AbsoluteOptions[y]
evaluates to the string "RadialEmbedding"
.
In principle, I imagine that y
could be generated from x
in a way that leaves x
unchanged. Alternatively, y
could be an "in-place mutation" of x
. I'm interested in both approaches. (If "in-place mutation" is the only convenient way to produce the desired y
, then I'd like to know how to "clone" x
, so that I can mutate the clone and leave x
unaffected.)
PS: I spent a huge amount of time poring over the Mathematica documentation in search for the answer to this question, obviously without any success. I'd be curious to know what keywords I could have used in my search to find the answer.