public static StateMachineGraph GetGraph <TInstance>(this AutomatonymousStateMachine <TInstance> machine)
            where TInstance : class
        {
            var inspector = new GraphStateMachineVisitor <TInstance>();

            machine.Accept(inspector);

            return(inspector.Graph);
        }