edgelist, a data frame from {base} R or tibble from {tibble}
igraph, from the {igraph} package
network, from the {network} package
tbl_graph, from the {tidygraph} package
census: A motif census object.
range: An integer indicating the maximum number of options to consider. The minimum of this and the number of nodes in the network is used.
References
On the elbow method
Thorndike, Robert L. 1953. "Who Belongs in the Family?". Psychometrika, 18(4): 267–76. tools:::Rd_expr_doi("10.1007/BF02289263") .
On the silhouette method
Rousseeuw, Peter J. 1987. “Silhouettes: A Graphical Aid to the Interpretation and Validation of Cluster Analysis.” Journal of Computational and Applied Mathematics, 20: 53–65. tools:::Rd_expr_doi("10.1016/0377-0427(87)90125-7") .