original_string: public function set($name, $value)
      {
          if (in_array($name, array('graph', 'node', 'edge'))) {
              throw new \InvalidArgumentException(sprintf('Use method attr for setting %s', $name));
          }
  
          $this->instructions[] = new Assign($name, $value);
  
          return $this;
      }
code: public function set($name, $value)
      {
          if (in_array($name, array('graph', 'node', 'edge'))) {
              throw new \InvalidArgumentException(sprintf('Use method attr for setting %s', $name));
          }
  
          $this->instructions[] = new Assign($name, $value);
  
          return $this;
      }
code_tokens: public function set ( $ name , $ value ) { if ( in_array ( $ name , array ( 'graph' , 'node' , 'edge' ) ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Use method attr for setting %s' , $ name ) ) ; } $ this -> instructions [ ] = new Assign ( $ name , $ value ) ; return $ this ; }
docstring: Adds an assignment instruction.
  
  @param string $name  Name of the value to assign
  @param string $value Value to assign
  
  @throws \InvalidArgumentException
  @return Graph Fluid-interface
docstring_tokens: Adds an assignment instruction .