I have the following code, an attempt to color the even branches of a tree... but it’s not working correctly:
CompleteKaryTree[3,EdgeStyle->{_<->_?EvenQ ->Green},EdgeLabels->"Name"]
It’s coloring the 2<->5 edge whilst I thought it would only color the edges which ended in an even number?! What am I doing wrong?