- Fix single output when dealing with iterables
Previously, returning one output with an iterable was resulting in taking the first element. See #4 and #6.
- Possible to use kwargs in functions
Args and kwargs can be used in functions, see #3.
@graph.register(
inputs=['a', 'b'],
args=['c'],
kwargs=['d'],
outputs=['e']
)
def f_my_function(a, b, *args, **kwargs):
return a + b + args[0] + kwargs['d']
- Can create a Node without using the decorator, #2
graph.add_node(f_my_function, inputs=['a', 'b'], outputs=['c'])
- Dag pretty print, #1
Use graph.dag