NLS ground states on graphs