node.removal.degree {netmodels} | R Documentation |
This function removes nodes with a degree less or equal than the value specified by the user. The node removal can be performed recursively. The function returns a network object with the remaining nodes.
node.removal.degree(graph, n, recursive = "FALSE")
graph |
Igraph network object |
n |
The degree value to be applied to the network |
recursive |
Logical flag to defined if the degree should be calculated after each node removal |
Please note the nodes are removed starting with the last node of the network, therefore in the case of recursive node removal the ongoing degree values depends on how does the removed nodes affect the network. It is advisable to sort the network's nodes based on the degree distribution (descending) to produce standarized results. This function is intended to undirected networks.
grpah |
The resulting network |
Domingo Vargas
data(test.net,package="netmodels") vl <- node.removal.degree(test.net,2)