You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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;
}
}