@pimms.value<EOL><INDENT>def minlabel(label):<DEDENT>
ls = np.sum(label[label != <NUM_LIT:0.5>].astype('<STR_LIT:bool>'))<EOL>return label if ls <= len(label) - ls else pimms.imm_array(<NUM_LIT:1> - label)<EOL>
path.minlabel is equivalent to path.label if path.label contains fewer or equal to half of
  the vertices vertices than its
  complement and is equivalent to 1 - path.label if not.