Filter out nodes which are too far away