Learn R Programming

QuACN (version 1.8.0)

zagreb1: Zagreb group index 1

Description

This method calculates the Zagreb group index 1.

Usage

zagreb1(g, deg = NULL)

Arguments

g
a graph as a graphNEL object.

deg
the degree of each node of g.

Value

References

M. V. Diudea, I. Gutman, and L. Jantschi, Molecular Topology. Nova Publishing, 2001, New York, NY, USA

Examples

Run this code

library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)

zagreb1(g)

Run the code above in your browser using DataLab