adding source/sink flow graph