Graham joined the Green Party in 2005 after 34 years abroad, including a stint at the United Nations, and became an MP in 2008.
The climate change and foreign affairs spokesman said today that his career had focused on the two existential threats faced by humanity - climate change and nuclear weapons.
He cited several highlights, including a role in the NZ delegation which negotiated the South Pacific nuclear-free zone in the 1980s. He also referred to the cross-party group on climate change he formed at Parliament, which produced a plan earlier this year for New Zealand to reach zero net carbon emissions by 2050.
This sort of cross-party work was an example of the "best kind of politics that Parliament can display", he said, and he hoped the Vivid work would continue after his departure.
Graham spoke about the importance of tolerance in politics, saying he had most admired other MPs who had showed respect and courtesy "across the traditional lines of division".
Remaining open to the views of others was "arguably the most critical thing we can display" as global events became more tumultuous, he said.
The Green MP became emotional when speaking about his six grandchildren, saying they "had a way of lighting up our lives and pushing us to be more aspirational".
"I've done my best here for them, as I know we all aspire to do for future generations."
Six of the other 13 Green MPs attended Graham's farewell speech, including leader James Shaw, who gave him a long hug afterwards.