Description Usage Arguments Details Value Author(s) References Examples
Find all the lambda-sets in an undirected graph
1 | lambdaSets(g)
|
g |
an instance of the |
From reference (1), p. 270: A set of nodes is a lambda-set if any pair of nodes in the lambda set has larger edge connectivity than any pair of nodes consisting of one node from within the lamda set and a second node from outside the lamda set.
As stated in reference (2), a lambda set is a maximal subset of nodes who have more edge-independent paths connecting them to each other than to outsiders.
A lambda set could be characterized by the minimum edge connectivity k
among its members, and could be called lambda-k
sets.
Let N be maximum edge connectivity of graph g
,
we output all the lambda-k set for all k = 1, ..., N.
Maximum edge connectivity, N
, of the graph g
, and
A list of length N; k-th entry (k = 1, ..., N) is a list of all the lambda-k
sets in graph g
.
Li Long <li.long@isb-sib.ch>
(1) Social Network Analysis: Methods and Applications. By S. Wasserman and K. Faust, pp. 269. (2) LS sets, lambda sets and other cohesive subsets. By S. P. Borgatti, M. G. Everett, P. R. Shirey, Social Networks 12 (1990) p. 337-357
1 2 3 4 5 | con <- file(system.file("XML/snalambdaex.gxl",package="RBGL"))
coex <- fromGXL(con)
close(con)
lambdaSets(coex)
|
Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
$`max edge connectivity`
[1] 3
[[2]]
[[2]]$`lambda-0 sets`
[[2]]$`lambda-0 sets`[[1]]
[1] "A1" "A2" "A3" "A4" "A5" "A6" "A7" "A8" "A9" "A10" "A11" "A12"
[[2]]$`lambda-1 sets`
[[2]]$`lambda-1 sets`[[1]]
[1] "A1" "A2" "A3" "A4" "A5" "A6" "A7" "A8" "A9" "A10" "A11" "A12"
[[2]]$`lambda-2 sets`
[[2]]$`lambda-2 sets`[[1]]
[1] "A1" "A2" "A3" "A4" "A5" "A6" "A7" "A8"
[[2]]$`lambda-2 sets`[[2]]
[1] "A9" "A10" "A11" "A12"
[[2]]$`lambda-3 sets`
[[2]]$`lambda-3 sets`[[1]]
[1] "A1" "A2" "A3" "A4"
[[2]]$`lambda-3 sets`[[2]]
[1] "A5" "A6" "A7" "A8"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.