Preliminary vertex flow calculation for the general case