subnet: Subnetwork from a network

Description Usage Arguments Details Value Examples

View source: R/subnet.R

Description

subnet generates a subnetwork from a network,which consists of specified nodes

Usage

1
subnet(net, nodes, impl = "auto", neighbors = F, delete = T)

Arguments

net

The original net, which should be a graph object

nodes

Gene symbol, which should match the nodes in original net

impl

Character scalar, to choose between two implementation of the subgraph calculation. Details are implemented in subraph function of igraph package

neighbors

Logical scalar, whether to get the neighbors of input nodes

delete

Logical scalar, whether to remove the nodes which do not have any neighbors in the output network

Details

subnet(net,nodes,impl="auto",neighbors=F,delete=T)

Value

A new igraph graph object

Examples

1
2
3

NetworkSim documentation built on May 2, 2019, 5:52 a.m.