Class: Image_GraphViz
Source Location: /Image_GraphViz-1.3.0/Image/GraphViz.php
Interface to AT&T's GraphViz tools.
Author(s):
Version:
- Release: @package_version@
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
Image_GraphViz (Constructor) [line 178]
Image_GraphViz Image_GraphViz(
[boolean
$directed = true], [array
$attributes = array()], [string
$name = 'G'], [boolean
$strict = true], [boolean
$returnError = false])
|
|
Constructor. Setting the name of the Graph is useful for including multiple image maps on one page. If not set, the graph will be named 'G'.
Parameters:
addAttributes [line 558]
void addAttributes(
array
$attributes)
|
|
Adds attributes to the graph.
Parameters:
addCluster [line 398]
void addCluster(
string
$id, array
$title, [array
$attributes = array()], [string
$group = 'default'])
|
|
Adds a cluster to the graph. A cluster is a subgraph with a rectangle around it.
Parameters:
addEdge [line 481]
integer addEdge(
array
$edge, [array
$attributes = array()], [array
$ports = array()])
|
|
Adds an edge to the graph. Examples: $g->addEdge(array ('node1' => 'node2'));
$attr = array(
'label' => '+1',
'style' => 'dashed',
);
$g->addEdge(array ('node3' => 'node4'), $attr);
// With port specification
$g->addEdge(array ('node5' => 'node6'), $attr, array ('node6' => 'portA'));
$g->addEdge(array ('node7' => 'node8'), null , array ('node7' => 'portC',
'node8' => 'portD'));
Parameters:
addNode [line 433]
void addNode(
string
$name, [array
$attributes = array()], [string
$group = 'default'])
|
|
Adds a note to the graph.
Parameters:
addSubgraph [line 416]
void addSubgraph(
string
$id, array
$title, [array
$attributes = array()], [string
$group = 'default'])
|
|
Adds a subgraph to the graph.
Parameters:
fetch [line 294]
string fetch(
[string
$format = 'svg'], [string
$command = null])
|
|
Returns image (data) of the graph in a given format.
Parameters:
image [line 201]
boolean image(
[string
$format = 'svg'], [string
$command = null])
|
|
Outputs image of the graph in a given format This methods send HTTP headers
Parameters:
load [line 677]
Loads a graph from a file in Image_GraphViz format
Parameters:
parse [line 820]
Parses the graph into GraphViz markup.
removeEdge [line 528]
void removeEdge(
array
$edge, [integer
$id = null])
|
|
Removes an edge from the graph.
Parameters:
removeNode [line 449]
void removeNode(
string
$name, [string
$group = 'default'])
|
|
Removes a node from the graph. This method doesn't remove edges associated with the node.
Parameters:
renderDotFile [line 341]
boolean renderDotFile(
string
$dotfile, string
$outputfile, [string
$format = 'svg'], [string
$command = null])
|
|
Renders a given dot file into a given format.
Parameters:
save [line 726]
string save(
[string
$file = ''])
|
|
Save graph to file in Image_GraphViz format This saves the serialized version of the instance, not the rendered graph.
Parameters:
saveParsedGraph [line 999]
string saveParsedGraph(
[string
$file = ''])
|
|
Saves GraphViz markup to file (in DOT language)
Parameters:
setAttributes [line 573]
void setAttributes(
array
$attributes)
|
|
Sets attributes of the graph.
Parameters:
setDirected [line 662]
void setDirected(
boolean
$directed)
|
|
Sets directed/undirected flag for the graph. Note: You MUST pass a boolean, and not just an expression that evaluates to TRUE or FALSE (i.e. NULL, empty string, 0 will not work)
Parameters:
_escape [line 621]
string _escape(
string
$input, [boolean
$html = false])
|
|
Returns a safe "ID" in DOT syntax
Parameters:
_escapeArray [line 590]
array _escapeArray(
array
$input)
|
|
Escapes an (attribute) array Detects if an attribute is <html>, contains double-quotes, etc...
Parameters:
_getGroups [line 778]
Returns a list of cluster/subgraph IDs
_getSubgraphs [line 756]
array _getSubgraphs(
string
$parent)
|
|
Returns a list of sub-groups for a given parent group
Parameters:
_getTopGraphs [line 791]
Returns a list of top groups
_nodes [line 906]
string _nodes(
array
$nodes, string
$indent)
|
|
Output nodes
Parameters:
_subgraph [line 933]
string _subgraph(
$group,
&$indent)
|
|
Generates output for a group
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:40:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|