protected function EasyRdf_Serialiser_GraphViz::serialiseRow in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/GraphViz.php \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 vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Serialiser/ GraphViz.php - Internal function to serialise an EasyRdf_Graph into a DOT formatted string
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Serialiser/ GraphViz.php, line 235
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";
}