add flow graph max selection and threshold line