networkSimplify {netboxr} | R Documentation

## Simplify sif network into igraph network graph object

### Description

This function removes duplicated edges and loops to create an igraph graph object from tab delimited sif formatted network file.

### Usage

    networkSimplify(sifNetwork, directed = FALSE)

### Arguments

`sifNetwork` | A file with sif network format (There are three columns in the file separated by tab, nodeA interactionType nodeB )
`directed` | Logical, treat network as directed or undirected graph

### Details

For undirected graph, `networkSimplify` removes duplicated edges and loops to create an igraph graph object from tab delimited sif formatted network file.

For directed graph, `networkSimplify` selects the first edge and removes the rest duplicated edges and loops to create an igraph graph object from tab delimited sif formatted network file.

### Value

a igraph graph object

### Author(s)

Eric Minwei Liu, emliu.research@gmail.com

### Examples

    data(netbox2010)

    sifNetwork <- netbox2010$network
    graphReduced <- networkSimplify(sifNetwork, directed = FALSE)

[Package netboxr version 1.7.1 Index]