Edges of CFG was changed to be generated by a Factory Method.