Description Usage Arguments Value Author(s) References Examples
View source: R/connectivityID.R
This method calculates the Randi\'c connectivity ID number.
1 | connectivityID(g, deg=NULL)
|
g |
a graph as a graphNEL object. |
deg |
the degree of each node of g. Will be automatically calculated if not supplied. |
The resulting floating point value is a weighted path sum which stresses local features and takes the vertex degree into account.
Michael Schutte
M. Randic. On Molecular Identification Numbers. Journal of Chemical Information and Computer Sciences, 24(3):164-175, 1984
1 2 3 4 | set.seed(987)
g <- randomEGraph(LETTERS[1:10], 0.3)
connectivityID(g)
|
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
Loading required package: RBGL
Loading required package: combinat
Attaching package: 'combinat'
The following object is masked from 'package:utils':
combn
Attaching package: 'QuACN'
The following object is masked from 'package:graph':
adjacencyMatrix
[1] 21.09213
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.