public NFA_GRAPH(string regExp_str) { regExp = regExp_str; NFA_GRAPH nfaGraph = null; nfaGraph = Get_NFAFromRE(0, this.regExp.Length, null); startNode = nfaGraph.startNode; endNode = nfaGraph.endNode; NODE.ClearCount(); }
public DFA_GRAPH(E_CLOSURE_GRAPH eClosureGraph) { if (eClosureGraph != null) { DFASets = new List <NODES_SET>(); DFANodes = new List <NODE>(); Get_DFAGraphFromEClosureGraph(eClosureGraph); Perform_DFAMinimization(); } NODE.ClearCount(); NODES_SET.ClearCount(); }