public bool IDExists(int arg) { NodeEntity r = Root(); if (r.GetNodeID() == arg) { return(true); } return(IDExists(r, arg)); }
private int TailID(NodeEntity arg) { int ret = arg.GetNodeID(); int count = arg.GetChildren().Count; if (count > 0) { ret = TailID(arg.GetChildren()[count - 1]); } return(ret); }