Commented and cleaned up GraphHelper