connect some nodes together