implements label and graph flow that computes graph uncertainty