def side(sankey, n=1):
 prior = len(sankey.diagrams)
 for i in range(0, (2 * n), 2):
  sankey.add(flows=[1, (-1)], orientations=[(-1), (-1)], patchlabel=str((prior + i)), prior=((prior + i) - 1), connect=(1, 0), alpha=0.5)
  sankey.add(flows=[1, (-1)], orientations=[1, 1], patchlabel=str(((prior + i) + 1)), prior=(prior + i), connect=(1, 0), alpha=0.5)

def side ( sankey , n = 1 ) : prior = len ( sankey . diagrams ) for i in range ( 0 , ( 2 * n ) , 2 ) : sankey . add ( flows = [ 1 , ( - 1 ) ] , orientations = [ ( - 1 ) , ( - 1 ) ] , patchlabel = str ( ( prior + i ) ) , prior = ( ( prior + i ) - 1 ) , connect = ( 1 , 0 ) , alpha = 0.5 ) sankey . add ( flows = [ 1 , ( - 1 ) ] , orientations = [ 1 , 1 ] , patchlabel = str ( ( ( prior + i ) + 1 ) ) , prior = ( prior + i ) , connect = ( 1 , 0 ) , alpha = 0.5 )
generate a side chain .