This function prints summary statistics for an OCG object to the screen.

# S3 method for OCG
print(x, ...)

Arguments

x

An object of class OCG.

...

Further arguments passed to or from other methods.

Value

Prints summary data to the screen.

References

Kalinka, A.T. and Tomancak, P. (2011). linkcomm: an R package for the generation, visualization, and analysis of link communities in networks of arbitrary size and type. Bioinformatics 27, 2011-2012.

Author

Alex T. Kalinka alex.t.kalinka@gmail.com

Examples

## Generate graph and extract OCG communities. g <- swiss[,3:4] oc <- getOCG.clusters(g)
#> Calculating Initial class System....Done #> Nb. of classes 21 #> Nb. of edges not within the classes 11 #> Number of initial classes 21 #> Running.... #> Remaining classes: 20 of 21 Remaining classes: 10 of 21 Remaining classes: None #> Reading OCG data... #> Extracting cluster sizes... 5% Extracting cluster sizes... 11% Extracting cluster sizes... 17% Extracting cluster sizes... 23% Extracting cluster sizes... 29% Extracting cluster sizes... 35% Extracting cluster sizes... 41% Extracting cluster sizes... 47% Extracting cluster sizes... 52% Extracting cluster sizes... 58% Extracting cluster sizes... 64% Extracting cluster sizes... 70% Extracting cluster sizes... 76% Extracting cluster sizes... 82% Extracting cluster sizes... 88% Extracting cluster sizes... 94% Extracting cluster sizes... 100%
## Print summary statistics to the screen. print(oc)
#> *** Summary *** #> Number of nodes = 30 #> Number of edges = 47 #> Number of communities = 17 #> Number of nodes in largest cluster = 4 #> Modularity = 2110 #> Q = 0.5776