Given the in and out adjacent places with their weight returns a function:
The state transition function:
Indicates a strategy to use when dealing with exceptions.
The unique identifier of this transition.
Flag indicating whether this transition is managed or manually triggered from outside.
A human readable label of this transition.
The maximum duration this transition may spend doing computation / io.