Content#
Generation functions#
|
Generate a graph where all nodes are connected. |
|
Generate a circular graph. |
|
Create a graph using a 2D distance rule to create the connection between neurons. |
|
Generate a random graph as defined by Erdos and Renyi but with a reciprocity that can be chosen. |
|
Generate a random graph with constant in- or out-degree. |
|
Generate a random graph from a given list of degrees. |
|
Generate a random graph with constant in- or out-degree. |
|
Generate a (potentially small-world) graph using the Newman-Watts algorithm. |
|
Generate a Price graph model (Barabasi-Albert if undirected). |
|
Generate a free-scale graph of given reciprocity and otherwise devoid of correlations. |
|
Generate a (potentially small-world) graph using the Watts-Strogatz algorithm. |
Connectors#
|
Function to connect nodes with a given graph model. |
|
Function to connect groups with a given graph model. |
Function to connect excitatory and inhibitory population with a given graph model. |
Rewiring functions#
|
Generate a new rewired graph from g. |
|
Build a (generally irregular) lattice by rewiring the edges of a graph. |
, whereas for the
exponential distance-rule,
.
).
), ‘mm’, ‘cm’,
‘dm’, ‘m’.
. It is also the
probability for each possible edge in the graph to exist.
the number of nodes in the graph.
previous nodes, chosen with probability:
is the (in-)degree of the vertex.
for directed graphs and
for undirected graphs.
is non-zero, each targeted node reciprocates
the connection with probability
.
, and reciprocity is zero, the tail of resulting
in-degree distribution of the directed case is given by

, the in-degree distribution is not
scale-free.
, such that

, such that

.
Parameter nodes is required unless from_graph or population is
provided.