We study relations between the ground-state energy of a quantum graph Hamiltonian with attractive <i></i> coupling at the vertices and the graph geometry. We derive a necessary and sufficient condition under which the energy increases with the increase of graph edge lengths. We show that this is always the case if the graph has no branchings while both energy increase and decrease are possible for graphs with a more complicated topology.