narumiKatayama: Narumi-Katayama index

Description Usage Arguments Value Author(s) References Examples

View source: R/narumiKatayama.R

Description

This method calculates the Narumi-Katayama index.

Usage

1
narumiKatayama(g, deg = NULL)

Arguments

g

a graph as a graphNEL object.

deg

the degree of each node of g. Will be automatically calculated if not supplied.

Value

This method returns the Narumi-Katayama index of a graph as an integer value.

Author(s)

Lavanya Sivakumar, Michael Schutte

References

H. Narumi and M. Katayama: Simple topological index. A newly devised index characterizing the topological nature of structural isomers of saturated hydrocarbons. Mem. Fac. Engin. Hokkaido Univ., 16:209, 1984

Examples

1
2
3
4
5
6
7
8
library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:9), 0.5)

# optional: pre-calculate degree of nodes in g
vec.degree <- graph::degree(g)

narumiKatayama(g, vec.degree)

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