private Node(string name, SubjectType type, LinkTree tree) { Name = name; Type = type; Depth = 0; Parent = null; Children = new List <Node>(); Tree = tree; }
private Node(string name, SubjectType type, Node parent) { Name = name; Type = type; Depth = parent.Depth + 1; Parent = parent; Tree = parent.Tree; Children = new List <Node>(); }
internal static Node CreateRoot(string name, SubjectType type, LinkTree tree) { var r = new Node(name, type, tree); return(r); }