I am making a directed graph, but Mathematica keeps trying to evaluate my labels. I know that I can just use " ", but I have a lot of input. Is there a way to turn evaluation off?
LayeredGraphPlot[{"C1.4.4" -> "T1.5.7", "1.23" -> "L1.5.4",
"P1.4.3" -> "C1.4.4", "P1.4.3" -> "C1.1.4", "P1.1.9" -> "P1.5.2",
"P1.1.9" -> "L1.5.3", "P1.5.2" -> "T1.5.7", "L1.5.3" -> "T1.5.7",
"L1.5.4" -> "T1.5.7", "P1.5.5" -> "T1.5.7", "L1.4.6" -> "L1.4.7"},
VertexLabeling -> True]
Map
to wrapToString
around the expressions at each side of each rule, but if you take the quote marks off, Mathematica interprets "C1.4.4" as C1 * 0.4 * 0.4, i.e.0.16 C1
. There should be some version ofHoldForm
that works but it seems almost impossible to define a function that performs the transformation without releasingHold
somewhere along the line. $\endgroup$