minor
gini use weight before, now use edgesAttr instead, much clear, much better