| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
GraphViz API Wrapper classes around GraphViz utilities (dot and neato) for directed and undirected graph generation. These wrappers are enhanced enough just to support relationship_graph_api.php. They don't support subgraphs yet.
| Author: | Juliano Ravasi Ferraz |
| Copyright: | Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net |
| File Size: | 478 lines (12 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Graph:: (11 methods):
Graph()
set_attributes()
set_default_node_attr()
set_default_edge_attr()
add_node()
add_edge()
is_edge_present()
generate()
output()
_build_attribute_list()
_print_graph_defaults()
| Graph( $p_name = 'G', $p_attributes = array() X-Ref |
| Constructor for Graph objects. param: string $p_name param: array $p_attributes param: string $p_tool param: string $p_com_module return: null |
| set_attributes( $p_attributes ) X-Ref |
| Sets graph attributes. param: array $p_attributes return: null |
| set_default_node_attr( $p_attributes ) X-Ref |
| Sets default attributes for all nodes of the graph. param: array $p_attributes return: null |
| set_default_edge_attr( $p_attributes ) X-Ref |
| Sets default attributes for all edges of the graph. param: array $p_attributes return: null |
| add_node( $p_name, $p_attributes = array() X-Ref |
| Adds a node to the graph. param: string $p_name param: array $p_attributes return: null |
| add_edge( $p_src, $p_dst, $p_attributes = array() X-Ref |
| Adds an edge to the graph. param: string $p_src param: string $p_dst param: array $p_attributes return: null |
| is_edge_present( $p_src, $p_dst ) X-Ref |
| Check if an edge is already present. param: string $p_src param: string $p_dst return: bool |
| generate() X-Ref |
| Generates an undirected graph representation (suitable for neato). return: null |
| output( $p_format = 'dot', $p_headers = false ) X-Ref |
| Outputs a graph image or map in the specified format. param: string $p_format param: bool $p_headers return: null |
| _build_attribute_list( $p_attributes ) X-Ref |
| PROTECTED function to build a node or edge attribute list. param: array $p_attributes return: string |
| _print_graph_defaults() X-Ref |
| PROTECTED function to print graph attributes and defaults. return: null |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |