graph¶
7 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("graph.bipartite").
graph.bipartite¶
Two rows of nodes, and every line from one row to the other.
Parameters
| Name | Type | Default |
|---|---|---|
left |
int |
4 |
right |
int |
5 |
span |
float |
200.0 |
height |
float |
220.0 |
center |
Point |
(0.0, 0.0) |
merge |
bool |
False |
show_nodes |
bool |
False |
graph.chord¶
Nodes on a circle and whichever chords you name between them.
{
"geomotif": "1.3.1",
"motif": "graph.chord",
"params": {
"merge": false,
"show_nodes": true,
"order": 16,
"chords": [
[
0,
7
],
[
0,
9
],
[
1,
5
],
[
2,
11
],
[
3,
8
],
[
3,
14
],
[
4,
10
],
[
5,
13
],
[
6,
12
],
[
7,
15
],
[
8,
2
],
[
9,
4
],
[
10,
1
],
[
11,
6
],
[
12,
3
],
[
13,
0
]
],
"radius": 120.0,
"rotation": 1.5707963267948966,
"center": [
0.0,
0.0
]
}
}
Parameters
| Name | Type | Default |
|---|---|---|
order |
int |
16 |
chords |
tuple[tuple[int, int], ...] |
((0, 7), (0, 9), (1, 5), (2, 11), (3, 8), (3, 14), (4, 10), (5, 13), (6, 12), (7, 15), (8, 2), (9, 4), (10, 1), (11, 6), (12, 3), (13, 0)) |
radius |
float |
120.0 |
rotation |
float |
1.5707963267948966 |
center |
Point |
(0.0, 0.0) |
show_nodes |
bool |
True |
merge |
bool |
False |
graph.complete¶
Every node joined to every other: K5, K12, and the ones in between.
Parameters
| Name | Type | Default |
|---|---|---|
order |
int |
12 |
radius |
float |
120.0 |
rotation |
float |
1.5707963267948966 |
center |
Point |
(0.0, 0.0) |
merge |
bool |
False |
show_nodes |
bool |
False |
graph.cyclic¶
The circulant: join every node to the ones a fixed number of steps away.
Parameters
| Name | Type | Default |
|---|---|---|
order |
int |
16 |
steps |
tuple[int, ...] |
(1, 3, 5) |
radius |
float |
120.0 |
rotation |
float |
1.5707963267948966 |
center |
Point |
(0.0, 0.0) |
merge |
bool |
False |
show_nodes |
bool |
False |
graph.prime-chords¶
Join two numbers whenever they add up to a prime.
Parameters
| Name | Type | Default |
|---|---|---|
limit |
int |
60 |
radius |
float |
120.0 |
rotation |
float |
1.5707963267948966 |
center |
Point |
(0.0, 0.0) |
merge |
bool |
False |
show_nodes |
bool |
False |
modular.addition¶
Join each number to the one a fixed distance further round.
Parameters
| Name | Type | Default |
|---|---|---|
modulus |
int |
120 |
addend |
int |
37 |
radius |
float |
120.0 |
rotation |
float |
1.5707963267948966 |
center |
Point |
(0.0, 0.0) |
merge |
bool |
False |
show_nodes |
bool |
False |
modular.multiplication¶
The times table drawn as chords, which turns out to be a cardioid.
Parameters
| Name | Type | Default |
|---|---|---|
modulus |
int |
200 |
factor |
int |
2 |
radius |
float |
120.0 |
rotation |
float |
3.141592653589793 |
center |
Point |
(0.0, 0.0) |
merge |
bool |
False |
show_nodes |
bool |
False |