[Глава 5] Поиск в ширину
This commit is contained in:
18
Chapter5_BreadthFirstSearch/TreeNode.cs
Normal file
18
Chapter5_BreadthFirstSearch/TreeNode.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace GrokAlgorithms.Chapter5_BreadthFirstSearch;
|
||||
|
||||
|
||||
public class TreeNode<T>
|
||||
{
|
||||
public T Value { get; init; }
|
||||
public string Comment { get; init; }
|
||||
public List<TreeNode<T>> Children { get; init; }
|
||||
public bool Selected { get; set; }
|
||||
|
||||
public TreeNode(T value)
|
||||
{
|
||||
Value = value;
|
||||
Comment = "";
|
||||
Children = new List<TreeNode<T>>();
|
||||
Selected = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user