Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * Constructs a Box with the given value.
  *
  * @param mixed $value A value.
  */
 public function __construct($value)
 {
     parent::__construct();
     $this->value = $value;
 }
Exemplo n.º 3
0
 /**
  * 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;
 }
Exemplo n.º 4
0
 /**
  * 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;
 }
Exemplo n.º 5
0
 /**
  * Constructs an AbstractContainer.
  */
 public function __construct()
 {
     parent::__construct();
     $count = 0;
 }
Exemplo n.º 6
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;
 }
Exemplo n.º 7
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }