Prime ID number

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.