C# Класс Graph.Edge

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Capacity uint
From uint
To uint
Weight int

Открытые методы

Метод Описание
Edge ( uint from, uint to, int weight, uint capacity )

Initialises a new instance of the Edge class with the specified endpoints, weight and capacity.

Описание методов

Edge() публичный Метод

Initialises a new instance of the Edge class with the specified endpoints, weight and capacity.
public Edge ( uint from, uint to, int weight, uint capacity )
from uint The ID of the first endpoint of the new edge.
to uint The ID of the second endpoint of the new edge.
weight int The weight of the new edge.
capacity uint The capacity of the new edge.

Описание свойств

Capacity публичное свойство

The capacity of the edge.
public uint Capacity
Результат uint

From публичное свойство

The ID of the first endpoint of the edge.
public uint From
Результат uint

To публичное свойство

The ID of the second endpoint of the edge.
public uint To
Результат uint

Weight публичное свойство

The weight of the edge.
public int Weight
Результат int