[graph-tool] Finding the ground state