programming-examples/php/Algo/BaseDual.php
2019-11-15 12:59:38 +01:00

35 lines
679 B
PHP

<?php
namespace Graphp\Algorithms;
use Graphp\Algorithms\Base;
use Fhaculty\Graph\Set\DualAggregate;
use Fhaculty\Graph\Graph;
use Fhaculty\Graph\Walk;
/**
* Abstract base class for algorithms that operate on a given Set instance
*
* @see Set
* @deprecated
*/
abstract class BaseDual extends Base
{
/**
* Set to operate on
*
* @var DualAggregate
*/
protected $set;
/**
* instantiate new algorithm
*
* @param Graph|Walk|Set $graphOrWalk either the Graph or Walk to operate on (or the common base class Set)
*/
public function __construct(DualAggregate $graphOrWalk)
{
$this->set = $graphOrWalk;
}
}