Description Usage Arguments Details Value Author(s) References Examples
This method calculates the BALABAN-like information index X(G).
1 | balabanlike2(g, dist = NULL)
|
g |
a graph as a graphNEL object. |
dist |
the distance matrix of the graph. If the parameter is empty the distance matrix will be calculated within the function. |
This method calculates the BALABAN-like information index U(G).
It return the BALABAN-like information index X(G).
Laurin Mueller
A. T. Balaban and T. S. Balaban, New Vertex Invariants and Topological Indices of Chemical Graphs Based on Information on Distances., J. Math. Chem., 1991, 8:383-397
1 2 3 4 5 6 7 8 9 | library(graph)
library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)
#calculate Distance Matrix
mat.dist <- distanceMatrix(g)
balabanlike2(g,mat.dist)
|
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, cbind, colMeans, colSums, colnames, 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] 1.322111
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.