Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 538 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 538 Bytes

Graph Launch Sequence

Run

To run the solution with the example: python solution.py

For more examples look at tests.py. Run tests using unittest: python -m unittest

Assumptions

  1. A dependency node can only have other dependency nodes connected to it, but not a state node.
  2. In the launch sequence the last dependecy should be launched first.
  3. If a dependency has already been launched in a current state, it does not need to be launched once again, in this same state.
  4. 's' and 'd' nodes are the only legal node types.