public bool Execute() { scc.Execute(); var gp = scc.Group; var len = gp.Length >> 1; for (int i = 0; i < len; i++) { if (gp[i << 1] == gp[(i << 1) | 1]) { return(false); } Answer[i] = gp[i << 1] < gp[(i << 1) | 1];//DAG } return(true); }
public bool Execute() { scc.Execute(); var gp = scc.Group; var len = gp.Length >> 1; for (int i = 0; i < len; i++) { if (gp[i << 1] == gp[(i << 1) | 1]) { return(false); } Answer[i] = gp[i << 1] < gp[(i << 1) | 1];//DAG } return(true); }