* @author Dennis Eichhorn * @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 * @author OMS Development Team * @author Dennis Eichhorn * @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 * @author Dennis Eichhorn */ public function getId(); /** * Get edges. * * @return array * * @since 1.0.0 * @author Dennis Eichhorn */ public function getEdges() : array; /** * Add edge. * * @param EdgeInterface $edge Edge to add to vertice * * @return bool * * @since 1.0.0 * @author Dennis Eichhorn */ public function addEdge(EdgeInterface $edge) : bool; }