mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 10:18:39 +00:00
58 lines
967 B
PHP
58 lines
967 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
declare(strict_types = 1);
|
|
|
|
namespace phpOMS\Math\Optimization\Graph;
|
|
|
|
/**
|
|
* Graph class
|
|
*
|
|
* @category Framework
|
|
* @package phpOMS\Asset
|
|
* @license OMS License 1.0
|
|
* @link http://orange-management.com
|
|
* @since 1.0.0
|
|
*/
|
|
interface VerticeInterface
|
|
{
|
|
/**
|
|
* Get vertice id.
|
|
*
|
|
* @return mixed
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getId();
|
|
|
|
/**
|
|
* Get edges.
|
|
*
|
|
* @return array
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getEdges() : array;
|
|
|
|
/**
|
|
* Add edge.
|
|
*
|
|
* @param EdgeInterface $edge Edge to add to vertice
|
|
*
|
|
* @return bool
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function addEdge(EdgeInterface $edge) : bool;
|
|
}
|