programming-examples/php/Algo/BaseGraph.php

32 lines
520 B
PHP
Raw Normal View History

2019-11-15 12:59:38 +01:00
<?php
namespace Graphp\Algorithms;
use Graphp\Algorithms\Base;
use Fhaculty\Graph\Graph;
/**
* Abstract base class for algorithms that operate on a given Graph instance
*
* @deprecated
*/
abstract class BaseGraph extends Base
{
/**
* Graph to operate on
*
* @var Graph
*/
protected $graph;
/**
* instantiate new algorithm
*
* @param Graph $graph Graph to operate on
*/
public function __construct(Graph $graph)
{
$this->graph = $graph;
}
}