The effect of distant connections on node anonymity in complex networks