/** * Constructs an Edge that connects * the specified vertices and with the specified weight. * * @param object AbstractGraph $graph * The graph with which this edge is associated. * @param integer $v0 The number of the vertex in this graph * from which this edge emanates. * @param integer $v1 The number of the vertex in this * upon which this edge is incident. * @param mixed $weight The weight associated with this edge. */ public function __construct(AbstractGraph $graph, $v0, $v1, $weight) { parent::__construct(); $this->graph = $graph; $this->v0 = $v0; $this->v1 = $v1; $this->weight = $weight; }
/** * Constructs a Box with the given value. * * @param mixed $value A value. */ public function __construct($value) { parent::__construct(); $this->value = $value; }
/** * Constructs a Term with the specified coefficient and exponent. * * @param float $coefficient The desired coefficient. * @param integer $exponent The desired exponent. */ public function __construct($coefficient, $exponent) { parent::__construct(); $this->coefficient = $coefficient; $this->exponent = $exponent; }
/** * Constructs an Associationwith the specified key and value. * * @param object IComparable $key The desired key. * @param mixed value The desired value. */ public function __construct(IComparable $key, $value = NULL) { parent::__construct(); $this->key = $key; $this->value = $value; }
/** * Constructs an AbstractContainer. */ public function __construct() { parent::__construct(); $count = 0; }
/** * Constructs a Vertex with * the specified number and weight. * * @param object AbstractGraph $graph * The graph with which this vertex is associated. * @param integer $number The specified number. * @param mixed $weight The specified weight. */ public function __construct(AbstractGraph $graph, $number, $weight = NULL) { parent::__construct(); $this->graph = $graph; $this->number = $number; $this->weight = $weight; }
/** * Constructor. */ public function __construct() { parent::__construct(); }