public function EasyRdf_Serialiser_GraphViz::setAttribute

Set an attribute on the GraphViz graph

Example: $serialiser->setAttribute('rotate', 90);

See the GraphViz tool documentation for information about the available attributes.

Parameters

string $name The name of the attribute:

string $value The value for the attribute:

Return value

object EasyRdf_Serialiser_GraphViz

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php, line 163

Class

EasyRdf_Serialiser_GraphViz
Class to serialise an EasyRdf_Graph to GraphViz

Code

public function setAttribute($name, $value) {
  $this->attributes[$name] = $value;
  return $this;
}