Learn R Programming

QuACN (version 1.8.0)

primeID: Prime ID number

Description

This method calculates the prime ID number.

Usage

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

distinct prime numbers to each different pair of vertex degrees associated with an edge.

References

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

Examples

Run this code
set.seed(987)
g <- randomEGraph(LETTERS[1:10], 0.3)

primeID(g)

Run the code above in your browser using DataLab