Description Usage Arguments Value Note Author(s) References Examples
View source: R/cellularAutomata2Graph.R
A cellular automaton (pl. cellular automata, abbrev. CA) is a discrete model of computation studied in automata theory. A cellular automaton consists of a regular grid of cells, each in one of a finite number of states, such as on and off. The grid can be in any finite number of dimensions. This grid is trasformed in an adjiacency matrix and from this matrix the function create a graph. Different rules generates different social network. In the literature there are many articles concerning the classification and clustering of social network structures starting from cellular automata.
1 | cellularAutomata2Graph(cell, step, choice, imax, nGraph, rule)
|
cell |
integer: number of automata's cells |
step |
integer: number of evolution steps |
choice |
integer: 1: Wolfram's rules 0: Gilman's rules |
imax |
integer: maximum cellular automata's item. 1: Wolfram 2: Gilman |
nGraph |
integer: number of graphs calculated from cellular automata |
rule |
integer: rule numbers (support also multiple rules like for example c(110:150, 300:307)) |
a list of graphs
I find this code but I don't remember where, when and why I wrote it. Sorry!
Nicola Procopio
https://en.wikipedia.org/wiki/Cellular_automaton
1 | mygraphs <- cellularAutomata2Graph(cell = 10, step = 10, choice = 1, imax = 1, nGraph = 1, rule = c(30, 126))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.