Class DirectedGraph
Create a Graphviz directed graph definition
-
Chippyash\Math\Matrix\Formatter\DirectedGraph
implements
Chippyash\Matrix\Interfaces\FormatterInterface
Methods summary
public
Fhaculty\Graph\Graph|string
|
#
format( Chippyash\Matrix\Matrix $mA, array $options = array() )
Format the matrix contents for outputting
Format the matrix contents for outputting
Parameters
- $mA
- Matrix to format
- $options
Options for formatter
- attribs => Collection of VertexDescription
- optional: edgeFunc => function($weight){return $newWeight;}
- optional: output:string script|object default = script
If output is script, return the graphviz dot file contents
If output is object then return Fhaculty\Graph\Graph for your own
processing via Graphp\GraphViz\GraphViz
Returns
Fhaculty\Graph\Graph|string
|