balabanJ: The Balaban J index

Description Usage Arguments Details Value Author(s) References Examples

View source: R/balabanJ.R

Description

This method calculates the Balaban J index.

Usage

1

Arguments

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.

Details

This method calculates the Balaban J index.

Value

It returns the Balaban J index.

Author(s)

Laurin Mueller

References

A. T. Balaban. Highly discriminating distance-based topological index. Chem.Phys.Lett., 89:383-397, 1991

Examples

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)

balabanJ(g)

Example output

Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package:BiocGenericsThe following objects are masked frompackage:parallel:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked frompackage:stats:

    IQR, mad, sd, var, xtabs

The following objects are masked frompackage:base:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames,
    dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
    grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
    rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which.max, which.min

Loading required package: RBGL
Loading required package: combinat

Attaching package:combinatThe following object is masked frompackage:utils:

    combn


Attaching package:QuACNThe following object is masked frompackage:graph:

    adjacencyMatrix

[1] 3.221132

QuACN documentation built on May 2, 2019, 5:46 p.m.