# NOT RUN {
## undirected network:
data(tradenet)
## Plotting clustered network
ergmclust.plot(adjmat = tradenet, K = 2, directed = FALSE,
thresh = 1e-06)
## directed network:
data(armsnet)
## Plotting clustered network
ergmclust.plot(adjmat = armsnet, K = 2, directed = TRUE,
thresh = 1e-06)
# }
Run the code above in your browser using DataLab