Description Usage Arguments Details Value Author(s) Examples
View source: R/networkSimplify.R
This function removes duplicated edges and loops to create an igraph graph object from tab delimited sif formatted network file.
1 | networkSimplify(sifNetwork, directed = FALSE)
|
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 |
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.
a igraph graph object
Eric Minwei Liu, emliu.research@gmail.com
1 2 3 4 | data(netbox2010)
sifNetwork <- netbox2010$network
graphReduced <- networkSimplify(sifNetwork, directed = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.