public void CreateFromFibTreeAndNormalize(FibTree tree) { Root = new FibTreeNode(null); Labels.Clear(); copyNodeAndChildrens(Root, tree.Root); normalize(); TreeChanged?.Invoke(); }
public Lookup(FibTree tree, string ip) { this.tree = tree; this.ip = ip; NextHop = null; SolutionNode = null; _lookup(tree.Root, IpConverter.IpToBinary(ip)); }
public void CreateFromNormalizedFibTreeAndCompress(FibTree tree) { Root = new FibTreeNode(null); Labels.Clear(); Dictionary <FibTreeNode, CompressData> compressData = new Dictionary <FibTreeNode, CompressData>(); calculateCompressData(tree.Root, compressData); addChildrenWithStride(Root, tree.Root, compressData); TreeChanged?.Invoke(); }
public void CreateFromFibTree(FibTree tree) { entries.Clear(); addTreeNodeAndChildren(tree.Root); CollectionChanged?.Invoke(); }