Changed data gen to use Xnode to compute Xedge.