Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


QuACN (version 1.8.0)

symmetryIndex: Symmetry Index

Description

This method calculates the symmetry index.

Usage

symmetryIndex(g, dist=NULL, deg=NULL)

Arguments

g
a graph as a graphNEL object.
dist
the distance matrix of the graph. Will be automatically calculated if not supplied.
deg
the degree of each node of g. Will be automatically calculated if not supplied.

Value

double-precision floating point value.

References

A. Mowshowitz and M. Dehmer: A Symmetry Index for Graphs. Symmetry: Culture and Science, 21(4):321-327, 2010.

Examples

Run this code
library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:9), 0.5)

symmetryIndex(g)

Run the code above in your browser using DataLab