Why does the select polydata class not support the SetEdgeSearchModeToGreedy method?

To solve the problem of Can’t follow edge Follow Edge, I want to use the SetEdgeSearchModeToGreedy() method that has been introduced in the site, but I get the error of not supporting this method while I installed the latest version of VTK with a pip.