OSCR

Block oscr:b:38DYT7387BS44-Y

A block of code linked to a paper, with an identifier OSCR gives it for good: it is never reused nor deleted. What a block identifier is · this block in JSON

Identifier
oscr:b:38DYT7387BS44-Y
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1038/s42003-022-04281-0 · its page here
Code
github.com/networkx/networkx, networkx/algorithms/centrality/closeness.py, lines 14 to 161 (closeness_centrality)
Commit read
e59d71890e745effb3724dc4b5620b23f92e0ee3
SWHID
swh:1:cnt:fe498fa8e5e73632f13eaa69c6009ae01747b0cf;origin=https://github.com/networkx/networkx;anchor=swh:1:rev:e59d71890e745effb3724dc4b5620b23f92e0ee3;path=/networkx/algorithms/centrality/closeness.py;lines=14-161 (the Software Heritage identifier of the file as its authors published it, before any email address is hidden for display; it opens in Software Heritage's archive once the repository is archived there)
In the paper
paragraph 63 (Methods › Graph theory analysis of structural connectivity)
Linked by
the registry's matching program (lexical-v1), which can be wrong
Identifier given
2026-11-14

Open these lines beside the paper

Cite this block

Copy this text: the identifier and its page first, then the code, the paper and the SWHID.

Code block oscr:b:38DYT7387BS44-Y (https://openscicode.org/b/oscr:b:38DYT7387BS44-Y)
networkx/algorithms/centrality/closeness.py, lines 14 to 161, in github.com/networkx/networkx (https://github.com/networkx/networkx), commit e59d71890e745effb3724dc4b5620b23f92e0ee3.
Paper: https://doi.org/10.1038/s42003-022-04281-0
SWHID: swh:1:cnt:fe498fa8e5e73632f13eaa69c6009ae01747b0cf;origin=https://github.com/networkx/networkx;anchor=swh:1:rev:e59d71890e745effb3724dc4b5620b23f92e0ee3;path=/networkx/algorithms/centrality/closeness.py;lines=14-161