To run the solution with the example: python solution.py
For more examples look at tests.py. Run tests using unittest: python -m unittest
- A dependency node can only have other dependency nodes connected to it, but not a state node.
- In the launch sequence the last dependecy should be launched first.
- If a dependency has already been launched in a current state, it does not need to be launched once again, in this same state.
- 's' and 'd' nodes are the only legal node types.