FLGameCompanion/FLCompanionByDvurechensky/Models/GraphEdge.cs
Dvurechensky bd64154316 2.0.2
2025-05-12 06:41:29 +03:00

34 lines
836 B
C#
Raw 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.

/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 06:38:00
* Version: 1.0.27
*/
/// <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;
}
}