It isn't necessary to hide them. Since traits accept both a prereq for abilitybonusoption AND unitstat, you can simply have mutually exclusive trait "branches" inside a tree.
trait 1: give 1 unitstat_x
trait 2:1 - require 1, require 1 unitstat_x, subtract unitstat_x on pick
trait 2:2 - require 1, require 1 unitstat_x, subtract unitstat_x on pick
now you can only pick either 2:1 or 2:2
Here's what it looks like when you are fulfilling the prereq abilitybonusoption but failing the prereq unitstat: http://i.imgur.com/1WtaRCa.png