public function save(string $file): bool
    {
        $stat = file_put_contents($file, $this->definition->toFbp());

        if ($stat === false) {
            return false;
        }

        return true;
    }
public function save(string $file): bool
    {
        $stat = file_put_contents($file, $this->definition->toFbp());

        if ($stat === false) {
            return false;
        }

        return true;
    }
public function save ( string $ file ) : bool { $ stat = file_put_contents ( $ file , $ this -> definition -> toFbp ( ) ) ; if ( $ stat === false ) { return false ; } return true ; }
Save the graph json into the file.

@param string $file
@return bool
Save the graph json into the file .