primeID: Prime ID number

Description Usage Arguments Value Author(s) References Examples

View source: R/primeID.R

Description

This method calculates the prime ID number.

Usage

1
primeID(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 works like the connectivityID method, but it assigns distinct prime numbers to each different pair of vertex degrees associated with an edge.

Author(s)

Michael Schutte

References

M. Randic. Molecular ID numbers: By Design. Journal of Chemical Information and Computer Sciences, 26(3):134-136, 1986

Examples

1
2
3
4
set.seed(987)
g <- randomEGraph(LETTERS[1:10], 0.3)

primeID(g)

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