networkSimplify {netboxr} | R Documentation |
This function removes duplicated edges and loops to create an igraph graph object from tab delimited sif formatted network file.
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
data(netbox2010) sifNetwork <- netbox2010$network graphReduced <- networkSimplify(sifNetwork, directed = FALSE)