Let be a graph with a perfect matching . It is proved that is -extendable if and only if for any pair of vertices and with an -alternating path of length three which starts with an edge that belongs to , there exists an -alternating path connecting and , of which the starting and the ending edges do not belong to . With this theorem, we develop a polynomial algorithm that determines whether the input graph is -extendable, the time complexity of the algorithm is .