FLGameCompanion/FLCompanionByDvurechensky/Models/GraphEdge.cs
Dvurechensky d057fe2c33 1.0
Main
2024-10-05 07:50:50 +03:00

26 lines
660 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/// <summary>
/// Ребро графа
/// </summary>
public class GraphEdge
{
/// <summary>
/// Связанная вершина
/// </summary>
public GraphVertex ConnectedVertex { get; }
/// <summary>
/// Вес ребра
/// </summary>
public int EdgeWeight { get; }
/// <summary>
/// Конструктор
/// </summary>
/// <param name="connectedVertex">Связанная вершина</param>
/// <param name="weight">Вес ребра</param>
public GraphEdge(GraphVertex connectedVertex, int weight)
{
ConnectedVertex = connectedVertex;
EdgeWeight = weight;
}
}