/** * 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'. * * @param boolean $directed Directed (TRUE) or undirected (FALSE) 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) * @param array $attributes Attributes of the graph * @param string $name Name of the Graph * @param boolean $strict Whether to collapse multiple edges between * same nodes * @param boolean $returnError Set to TRUE to return PEAR_Error instances * on failures instead of FALSE * * @access public */ public function __construct($directed = false, $attributes = array(), $name = 'G', $strict = true, $returnError = false) { $attributes['overlap'] = 'prism'; parent::__construct($directed, $attributes, $name, $strict, $returnError); $this->fillUp(); }