Switching mechanism for branched biochemical fluxes: graph-theoretical analysis.