graph and filtering