Replies: 2 comments 2 replies
-
|
Thanks for raising @Aka2210 - I generally agree with your observations. Having looked at the code a bit here are my big takeaways:
I'm generally in favor of moving |
Beta Was this translation helpful? Give feedback.
-
|
I agree with deprecating metric_closure. Just to confirm, would the process be the usual one — keep the function but emit a DeprecationWarning, add a .. deprecated:: directive in the docstring, and then plan for full removal in the next major release? If so, I’d be happy to prepare a PR and add a small gallery example to illustrate the “metric closure” terminology at networkx/examples/algorithms/plot_metric_closure.py. Please let me know if that matches your expectations. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While looking at the approximation/steinertree code I noticed that the
function
metric_closurelives there.That feels a little odd —

metric_closureis really a general graphtransformation (complete graph with shortest-path distances) and not
specific to Steiner tree. I did a quick GitHub search and saw almost no
repos importing it directly, so external usage looks very low.
Do folks think it would make sense to:
algorithms/metric_closure.py),I don’t have a strong opinion either way — happy to help with a PR if
moving/removing seems useful, but also fine if the consensus is to keep
it where it is.
Beta Was this translation helpful? Give feedback.
All reactions