When the polygon is area-incomplete and contains only one site, we should advance to the next node, but currently, the nodes iterator is getting reset, which leads to repeating the already visited nodes on the next steps.
A possible solution is to add continue after these lines:
https://github.com/LostFan123/pode/blob/30c9f9725ccf760d98c8f37924e5d31ddf452972/pode/pode.py#L333-L334
But this should be checked more carefully.
When the polygon is area-incomplete and contains only one site, we should advance to the next node, but currently, the nodes iterator is getting reset, which leads to repeating the already visited nodes on the next steps.
A possible solution is to add
continueafter these lines:https://github.com/LostFan123/pode/blob/30c9f9725ccf760d98c8f37924e5d31ddf452972/pode/pode.py#L333-L334
But this should be checked more carefully.