| randomSubGraph | R Documentation |
The function is intended to be a test tool. It subset the given graph repeatedly.
randomSubGraph(graph, per = 0.25, N = 10)
graph |
A graph object |
per |
numeric, the percentage of the nodes to be sampled, value between (0,1) |
N |
Repeat times |
The function is called for its side effect, NULL is returned
Jitao David Zhang mailto:jitao_david.zhang@roche.com
tnodes <- c("Hamburg","Dortmund","Bremen", "Paris")
tedges <- list("Hamburg"=c("Dortmund", "Bremen"),
"Dortmund"=c("Hamburg"), "Bremen"=c("Hamburg"), "Paris"=c())
tgraph <- new("graphNEL", nodes = tnodes, edgeL = tedges)
randomSubGraph(tgraph, 0.5, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.