Description Usage Arguments Details Value Examples
View source: R/graph.generate.R
Generate one adjacency matrix according to graphical model.
1 | graph.generate(p, graph = "hub", m = 1, neighb = 2)
|
p |
an integer giving the dimension. |
graph |
character. Specify the network structure. Possible network structure are |
m |
integer. The number of blocks. |
neighb |
interger. The neighborhood within which the vertices of the latticewill be connected if graph is "Watt-Strogatz" or "small-world". The number of off-diagonal bands used if graph is "banded". |
Generate a "small-world"
network according to the Watts-Strogatz network model, "scale-free"
network according to the Barabasi-Albert model, "random"
network according to the Erdos-Renyi model.
A p*p
matrix.
1 2 3 | ##------ not run ------
adj <- graph.generate(20, graph = "scale-free", m = 2)
adj
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.