extract_node_degree
extract_node_degree
Calculate network node degrees.
extract_node_degree(targets: list[number], *weights: list[number], {
"param": value,
...
}) -> (degree: number)
Calculates the degree centrality of each node in the network, i.e. the number of each node’s incoming and/or outgoing connections.
extract_node_degree(targets: list[number], *weights: list[number], {
"param": value,
...
}) -> (degree: number)
Column containing the number of incoming, outgoing or all connections for each row/node in the dataset.
Which node connections to count. Whether to
in
: count only a node’s incoming linksout
: count only a node’s outgoing linksall
/both
count both incoming and outgoing links.
Values must be one of the following:
all
out
in
both
Whether the links are directed or not.
Whether loops will be counted. Loops are links of nodes to themselves.
Was this page helpful?
extract_node_degree(targets: list[number], *weights: list[number], {
"param": value,
...
}) -> (degree: number)