dynamically set --links when data is sparse