original_string: public function createGraph($graph)
      {
          // Write the dot source to a temporary file
          $tempDot = tempnam(sys_get_temp_dir(), 'DOT_');
          $this->registerTempFile($tempDot);
          file_put_contents($tempDot, $graph);
  
          // Create component graph
  //        $dotCommand = 'ccomps -x '.CommandUtility::escapeShellArgument($tempDot).' | dot -Nfontname=sans-serif -Efontname=sans-serif | gvpack -array_1 | neato -Tsvg ';
          $dotCommand = 'dot -Tsvg -Nfontname=sans-serif -Efontname=sans-serif '.CommandUtility::escapeShellArgument($tempDot);
          $output     = $returnValue = null;
          CommandUtility::exec($dotCommand, $output, $returnValue);
  
          return $returnValue ? '' : implode('', (array)$output);
      }
code: public function createGraph($graph)
      {
          // Write the dot source to a temporary file
          $tempDot = tempnam(sys_get_temp_dir(), 'DOT_');
          $this->registerTempFile($tempDot);
          file_put_contents($tempDot, $graph);
  
          // Create component graph
  //        $dotCommand = 'ccomps -x '.CommandUtility::escapeShellArgument($tempDot).' | dot -Nfontname=sans-serif -Efontname=sans-serif | gvpack -array_1 | neato -Tsvg ';
          $dotCommand = 'dot -Tsvg -Nfontname=sans-serif -Efontname=sans-serif '.CommandUtility::escapeShellArgument($tempDot);
          $output     = $returnValue = null;
          CommandUtility::exec($dotCommand, $output, $returnValue);
  
          return $returnValue ? '' : implode('', (array)$output);
      }
code_tokens: public function createGraph ( $ graph ) { // Write the dot source to a temporary file $ tempDot = tempnam ( sys_get_temp_dir ( ) , 'DOT_' ) ; $ this -> registerTempFile ( $ tempDot ) ; file_put_contents ( $ tempDot , $ graph ) ; // Create component graph //        $dotCommand = 'ccomps -x '.CommandUtility::escapeShellArgument($tempDot).' | dot -Nfontname=sans-serif -Efontname=sans-serif | gvpack -array_1 | neato -Tsvg '; $ dotCommand = 'dot -Tsvg -Nfontname=sans-serif -Efontname=sans-serif ' . CommandUtility :: escapeShellArgument ( $ tempDot ) ; $ output = $ returnValue = null ; CommandUtility :: exec ( $ dotCommand , $ output , $ returnValue ) ; return $ returnValue ? '' : implode ( '' , ( array ) $ output ) ; }
docstring: Create an SVG component graph
  
  @param string $graph GraphViz graph
  
  @return string SVG component graph
  @see https://stackoverflow.com/questions/8002352/how-to-control-subgraphs-layout-in-dot
docstring_tokens: Create an SVG component graph