[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/core/ -> graphviz_api.php (summary)

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

Defines 2 classes

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()

Digraph:: (2 methods):
  Digraph()
  generate()


Class: Graph  - X-Ref

Base class for graph creation and manipulation. By default,
undirected graphs are generated. For directed graphs, use Digraph
class.

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

Class: Digraph  - X-Ref

Directed graph creation and manipulation.

Digraph( $p_name = 'G', $p_attributes = array()   X-Ref
Constructor for Digraph objects.

param: string $p_name
param: array $p_attributes
param: string $p_tool
param: string $p_com_module
return: null

generate()   X-Ref
Generates a directed graph representation (suitable for dot).




Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7