commented out the logging. added final node to output array
fixed tests. now have test for larger graphs.