graph selection and data manipulation