mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
73 lines
1.2 KiB
PHP
73 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @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 EdgeInterface
|
|
{
|
|
/**
|
|
* Get edge id.
|
|
*
|
|
* @return mixed
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getId();
|
|
|
|
/**
|
|
* Get edge weight.
|
|
*
|
|
* @return mixed
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getWeight();
|
|
|
|
/**
|
|
* Set weight.
|
|
*
|
|
* @param mixed $weight Weight of edge
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function setWeight($weight);
|
|
|
|
/**
|
|
* Get vertices.
|
|
*
|
|
* @return array
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getVertices() : array;
|
|
|
|
/**
|
|
* Set vertices.
|
|
*
|
|
* @param VerticeInterface $a Vertice a
|
|
* @param VerticeInterface $b Vertice b
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function setVertices(VerticeInterface $a, VerticeInterface $b);
|
|
}
|