Edge types. Edges may have "type" as well as an existence annotation. Edge type is indicated
with square brackets:
|
A -[inhibits] B
B ~[excites] A
|
Every two nodes (A, B) in the graph for which A inhibits B
and B does not excite A.
|
Macros. Macros can be used to template repeated complex structure in a motif:
|
# Nodes that are connected in only one direction:
unidirectional(n, m) {
n -> m
m ~> n
}
# All triangles for which edges exist in only one direction:
unidirectionalTriangle(x, y, z) {
unidirectional(x, y)
unidirectional(y, z)
unidirectional(z, x)
}
unidirectionalTriangle(A, B, C)
unidirectionalTriangle(C, D, E)
|
Graphs with unidirectional triangles between A, B, C and C, D, E.
|