node.removal.degree {netmodels}R Documentation

Removes nodes with a degree less or equal than the value specified by the user

Description

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.

Usage

node.removal.degree(graph, n, recursive = "FALSE")

Arguments

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

Details

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.

Value

grpah The resulting network

Author(s)

Domingo Vargas

Examples

data(test.net,package="netmodels")
vl <- node.removal.degree(test.net,2)

[Package netmodels version 0.2 Index]