Still working on debugging

Fixed copy/paste error in the graph reduction function