Example #1
0
 /**
  * @inheritDoc
  */
 public static function create($components)
 {
     $neighbors = new self();
     for ($i = 2; $i < count($components); $i += 2) {
         $neighbors->setNeighbor($components[$i], explode(',', $components[$i + 1]));
     }
     // expand
     $neighbors->expand();
     return $neighbors;
 }