I use the following code to plot a binary tree
TreePlot[{11 -> 23, 11 -> 24, 23 -> 40, 23 -> 39, 24 -> 30, 24 -> 50,
40 -> 55, 40 -> 45}, VertexLabeling -> All,
PlotStyle -> {FontSize -> 13},
VertexRenderingFunction -> ({EdgeForm[White],
RGBColor[113/255, 190/255, 236/255], Disk[#1, 0.2], White,
Text[#2, #1]} &), AspectRatio -> Automatic]
The question is what should I do if I want to change the back color of vertex "11" and "23" to red? Thank you!
TreeGraph
withVertexShapeFunction
and thenSetProperty[{g, 11}, VertexShapeFunction -> ({EdgeForm[White], Red, Disk[#1, 0.2], White, Text[#2, #1]} &)]
$\endgroup$