Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default value p=2 for minkowski distance metric. #5700

Merged
merged 1 commit into from Jun 7, 2022

Conversation

rossbar
Copy link
Contributor

@rossbar rossbar commented Jun 7, 2022

Closes #5047

Gives the p parameter in the geometric_edges generator a default value of 2, corresponding to Euclidean distance. This converts p to an optional parameter with a default value that matches the defaults for the other geometric generators.

@MridulS MridulS merged commit ad99a58 into networkx:main Jun 7, 2022
MridulS pushed a commit to MridulS/networkx that referenced this pull request Feb 4, 2023
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Add default distance metric to geometric_edges
3 participants