GetNodeTriads was returning 0 without looking into the OutGroupEdges. Fixed to go through and calculate if there are OutGroupEdges.