public BasicBlockEdge(CFG cfg, int fromName, int toName) { From = cfg.CreateNode(fromName); To = cfg.CreateNode(toName); From.OutEdges.Add(To); To.InEdges.Add(From); cfg.AddEdge(this); }