nwcentrality

Node centrality measures

Examples

Each measure below is computed by its own dedicated command - for example, degree centrality:

. nwwebuse florentine, nwclear
. nwdegree flomarriage, generate(deg)
. list deg in 1/5

See

Degree centrality

Betweenness centrality

Eigenvector centrality

Closeness centrality

Katz centrality


nwcommands version 3.17.6, 9 November 2026 (check your installed version)


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

This site uses Just the Docs, a documentation theme for Jekyll.