コード例 #1
0
 /**
  * Create a new node inside a graph
  * @param SimpleGraph $oGraph
  * @param string $sId The unique identifier of this node inside the graph
  * @param number $x Horizontal position
  * @param number $y Vertical position
  */
 public function __construct(SimpleGraph $oGraph, $sId, $x = 0, $y = 0)
 {
     parent::__construct($oGraph, $sId);
     $this->x = $x;
     $this->y = $y;
     $this->bFiltered = false;
 }
コード例 #2
0
 public function __construct($oGraph, $sId, $iMinUp, $fThreshold)
 {
     parent::__construct($oGraph, $sId);
     $this->SetProperty('min_up', $iMinUp);
     $this->SetProperty('threshold', $fThreshold);
 }
コード例 #3
0
 public function __construct($data, array $connectedNodes = null)
 {
     parent::__construct($data, $connectedNodes);
     $this->reset();
 }
コード例 #4
0
ファイル: Node.php プロジェクト: novaway/open-graph
 public function __construct(array $values = [])
 {
     parent::__construct($values['namespace'], $values['tag'], $values);
 }