phpOMS/Math/Optimization/Graph/VerticeInterface.php

56 lines
932 B
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace phpOMS\Math\Optimization\Graph;
/**
* Graph class
*
* @package Framework
* @license OMS License 1.0
* @link http://website.orange-management.de
* @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;
}