extracted node creation from create graph method to their own composed methods