Aggregation module now receives both adjancy list and adjancy matrix.
Added Donald B. Johnson
(http://dutta.csc.ncsu.edu/csc791_spring07/wrap/circuits_johnson.pdf)
algorithm to detect and eliminate possible cycles in the graph