Node Operations
Node Operations#
This module provides basic operations for constructing node graphs.
It supports the following operations:
feedforward connection: “>>”, “>>=”
feedback connection: “<<”, “<<=”
merge two nodes: “&”, “&=”
select subsets of one node: “[:]”
concatenate a sequence of nodes: “[node1, node2, …]”, “(node1, node2, …)”
wrap a set of nodes: “{node1, node2, …}”
However, all operations should satisfy the following assumptions:
Feedback connection of (node1, node2) should have a feedforward path from node2 to node1.
Feedforward or feedback connections cannot generate a cycle.
Cannot concatenate multiple receiver nodes, e.g., a >> [b, c] is forbidden, but a >> {b, c} is allowed.
|
Connect two sequences of |
|
Create a feedback connection from |
|
Merge different |
|
|
|