Small code enhancements. No impact on performance.
Simplifying Graph data structure and enhancing argument names.