We study the fundamental groups of the exchange graphs for the bounded derived category D(Q) of a Dynkin quiver Q and the finite-dimensional derived category D(Gamma_N Q)of the Calabi–Yau-N Ginzburg algebra associated to Q. In the case of D(Q), we prove that its space of stability conditions (in the sense of Bridgeland) is simply connected. As an application, we show that the Donaldson–Thomas type invariant associated to Q can be calculated as a quantum dilogarithm function on its exchange graph. In the case of D(Gamma_N Q), we show that the faithfulness of the Seidel–Thomas braid group action (which is known for Q of type A or N=2) implies the simply connectedness of the space of stability conditions.