modified stream graph