protected function EasyRdf_Serialiser_GraphViz::serialiseRow

Internal function to create dot syntax line for either a node or an edge

@ignore

1 call to EasyRdf_Serialiser_GraphViz::serialiseRow()
EasyRdf_Serialiser_GraphViz::serialiseDot in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php
Internal function to serialise an EasyRdf_Graph into a DOT formatted string

File

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

Class

EasyRdf_Serialiser_GraphViz
Class to serialise an EasyRdf_Graph to GraphViz

Code

protected function serialiseRow($node1, $node2 = null, $attributes = array()) {
  $result = '  ' . $this
    ->escape($node1);
  if ($node2) {
    $result .= ' -> ' . $this
      ->escape($node2);
  }
  if (count($attributes)) {
    $result .= ' ' . $this
      ->escapeAttributes($attributes);
  }
  return $result . ";\n";
}