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

41 lines
1.1 KiB
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.

namespace FLCompanionByDvurechensky.Data
{
/// <summary>
/// Информация о вершине
/// </summary>
public class GraphVertexInfo
{
/// <summary>
/// Вершина
/// </summary>
public GraphVertex Vertex { get; set; }
/// <summary>
/// Не посещенная вершина
/// </summary>
public bool IsUnvisited { get; set; }
/// <summary>
/// Сумма весов ребер
/// </summary>
public int EdgesWeightSum { get; set; }
/// <summary>
/// Предыдущая вершина
/// </summary>
public GraphVertex PreviousVertex { get; set; }
/// <summary>
/// Конструктор
/// </summary>
/// <param name="vertex">Вершина</param>
public GraphVertexInfo(GraphVertex vertex)
{
Vertex = vertex;
IsUnvisited = true;
EdgesWeightSum = int.MaxValue;
PreviousVertex = null;
}
}
}