32 lines
533 B
PHP
32 lines
533 B
PHP
|
<?php
|
||
|
|
||
|
namespace Graphp\Algorithms;
|
||
|
|
||
|
use Graphp\Algorithms\Base;
|
||
|
use Fhaculty\Graph\Vertex;
|
||
|
|
||
|
/**
|
||
|
* Abstract base class for algorithms that operate on a given Vertex instance
|
||
|
*
|
||
|
* @deprecated
|
||
|
*/
|
||
|
abstract class BaseVertex extends Base
|
||
|
{
|
||
|
/**
|
||
|
* Vertex to operate on
|
||
|
*
|
||
|
* @var Vertex
|
||
|
*/
|
||
|
protected $vertex;
|
||
|
|
||
|
/**
|
||
|
* instantiate new algorithm
|
||
|
*
|
||
|
* @param Vertex $vertex Vertex to operate on
|
||
|
*/
|
||
|
public function __construct(Vertex $vertex)
|
||
|
{
|
||
|
$this->vertex = $vertex;
|
||
|
}
|
||
|
}
|