Exemple #1
0
 /**
  * Renders the state machine.
  *
  * @param  \Finite\StateMachine\StateMachineInterface $stateMachine
  * @param  string                                     $target
  * @throws Exception
  */
 public function render(StateMachineInterface $stateMachine)
 {
     $this->graph = new Digraph('state_machine');
     $this->addNodes($stateMachine);
     $this->addEdges($stateMachine);
     $this->graph->end();
     return $this->graph->render();
 }