Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DAG.sequential #2

Closed
lchu-ibm opened this issue Sep 23, 2021 · 1 comment
Closed

Add DAG.sequential #2

lchu-ibm opened this issue Sep 23, 2021 · 1 comment
Assignees

Comments

@lchu-ibm
Copy link
Contributor

Sequential workflow is common, and it is helpful to add a convenient api to make it simple.

For example, for a DAG of a -> b -> c -> d -> e

Currently we have:
dag.add_edge(a, b, 0)
dag.add_edge(b, c, 0)
dag.add_edge(c, d, 0)
dag.add_edge(d, e, 0)

new api would be:
dag.sequential([a,b,c,d,e])

To do so, items to be done:

  1. make default value 0 to add_edge's in_arg_mapping parameter
  2. create sequential api which under the hood invoke multiple add_edge
@lchu-ibm lchu-ibm self-assigned this Sep 23, 2021
@lchu-ibm
Copy link
Contributor Author

6b8fd04

@lchu-ibm lchu-ibm closed this as completed Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant