node.trim {netmodels}R Documentation

Deletes the isolates nodes of the network

Description

This function deletes all the single nodes with 0 edges off the network.

Usage

node.trim(graph)

Arguments

graph Igraph network object

Value

Returns a new graph object with the selected nodes removed.

Author(s)

Domingo Vargas

Examples


data(test.net,package="netmodels")
new.net <- node.trim(test.net)

[Package netmodels version 0.2 Index]