private bool check_XY(gProAnalyzer.GraphVariables.clsRepository rp, int currentN, int i, int x, int y) { int maxNode = rp.repository[i].graph.Network[currentN].nNode; if (!(x < maxNode && y < maxNode)) { return(false); } if (rp.repository[i].graph.Network[currentN].Node[x].nPost > 1 || rp.repository[i].graph.Network[currentN].Node[x].nPre > 1 || rp.repository[i].graph.Network[currentN].Node[y].nPost > 1 || rp.repository[i].graph.Network[currentN].Node[y].nPre > 1 || rp.repository[i].graph.Network[currentN].Node[x].nPost == 0 || rp.repository[i].graph.Network[currentN].Node[x].nPre == 0 || rp.repository[i].graph.Network[currentN].Node[y].nPost == 0 || rp.repository[i].graph.Network[currentN].Node[y].nPre == 0) { return(false); } return(true); }
//Initialize all global parameter public frmProcessQuery() { InitializeComponent(); System.Windows.Forms.ToolTip toolTip1 = new System.Windows.Forms.ToolTip(); //toolTip1.SetToolTip(this.startBtn, "Run Query"); //toolTip1.SetToolTip(this.clearBtn, "Clear Editor"); //Initialized All rp = new gProAnalyzer.GraphVariables.clsRepository(); loopNode = new gProAnalyzer.Functionalities.LoopIdentification(); loadGraph = new gProAnalyzer.Preprocessing.clsLoadGraph(); indexing = new gProAnalyzer.Functionalities.IndexingPM(); }