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;
    }
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;
    }
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 ; }
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
Adds an assignment instruction .