lambdaSets: Find all the lambda-sets in an undirected graph

Description Usage Arguments Details Value Author(s) References Examples

View source: R/interfaces.R

Description

Find all the lambda-sets in an undirected graph

Usage

1

Arguments

g

an instance of the graph class

Details

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.

Value

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.

Author(s)

Li Long <li.long@isb-sib.ch>

References

(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

Examples

1
2
3
4
5
con <- file(system.file("XML/snalambdaex.gxl",package="RBGL"))
coex <- fromGXL(con)
close(con)

lambdaSets(coex)

Example output

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"

RBGL documentation built on Nov. 8, 2020, 5 p.m.