Fixed massive recursion bug for calculating the number of edges.
CFG Edges function now works for benchmark cases.