KeptPaths function

Paths present in reduced tree