Description Usage Arguments Value Author(s) References Examples
View source: R/symmetryIndex.R
This method calculates the symmetry index.
1 | symmetryIndex(g, dist=NULL, deg=NULL)
|
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. |
This method returns the symmetry index for a graph as a double-precision floating point value.
Michael Schutte
A. Mowshowitz and M. Dehmer: A Symmetry Index for Graphs. Symmetry: Culture and Science, 21(4):321-327, 2010.
1 2 3 4 5 | library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:9), 0.5)
symmetryIndex(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.