finalize dependency graph and filtering algorithms