public bool ValidateWithSequence(Sequence seq)
 {
     SwitchToSubgraph(graph.Clone("clonedGraph"));
     bool valid = seq.Apply(this);
     ReturnFromSubgraph();
     return valid;
 }
        public bool ApplyGraphRewriteSequence(Sequence sequence)
        {
            PerformanceInfo.Start();

            bool res = sequence.Apply(this);

            PerformanceInfo.Stop();
            return res;
        }