nwshared

Calculate number of shared neighbors between nodes and saves information in network

Syntax

nwshared 
[netname]
[,
name(newnetname)
undirected
replace]
   
name(newnetname) Save as new network; default _shared
undirected Treat all ties as undirected for calculation
replace if a network named newnetname already exists, drop it and use this name anyway (alias: nwreplace, kept for backward compatibility - most sibling generators in this package instead spell this replace)

Description

This command calculates for each connected pair of nodes (i,j) the number of nodes k that both i and j have as shared neighbors.

Supported network types

Binary: yes (only) - shared-tie/exposure counting is a structural property, tie values are ignored (via nwsym’s own binarizing generate() path). Directed: requires undirected to symmetrize first, else an explicit error. Weighted: not applicable. Signed: not applicable. Two-mode: not checked.

See also


Back to top

nwcommands is free to install and use, including for commercial research. See the GitHub repository for source, license, and issue tracking.

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