Learn R Programming

XGR (version 1.1.7)

xSimplifyNet: Function to simplify networks from an igraph object

Description

xSimplifyNet is supposed to simplify networks from an igraph object by keeping root-tip shortest paths only.

Usage

xSimplifyNet(g, verbose = TRUE)

Arguments

g

an "igraph" object

verbose

logical to indicate whether the messages will be displayed in the screen. By default, it sets to true for display

Value

an object of class "igraph"

See Also

xSimplifyNet

Examples

Run this code
# NOT RUN {
# Load the library
library(XGR)
# }
# NOT RUN {
RData.location <- "http://galahad.well.ox.ac.uk/bigdata"
# }
# NOT RUN {
g <- xRDataLoader(RData.customised='ig.DO',
RData.location=RData.location)
ig <- xSimplifyNet(g)
# }

Run the code above in your browser using DataLab