Skip to content

Commit

Permalink
Update dispatch decorator for hits to use "weight" edge weight (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Nov 1, 2023
1 parent f5e3764 commit 314adcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/algorithms/link_analysis/hits_alg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__all__ = ["hits"]


@nx._dispatch
@nx._dispatch(preserve_edge_attrs={"G": {"weight": 1}})
def hits(G, max_iter=100, tol=1.0e-8, nstart=None, normalized=True):
"""Returns HITS hubs and authorities values for nodes.
Expand Down

0 comments on commit 314adcb

Please sign in to comment.