private static bool WindowOccuredInPath(LinkedAvidNode node, AvidModelWindow window) { return node.GetBranch().Any(lan => lan.Window.Equals(window)); }
private AvidPathInfo TracePath(LinkedAvidNode leaf, AvidModelWindow start, AvidModelWindow destination) { var pathInfo = new AvidPathInfo(leaf.NodeDistance, start, destination); pathInfo.PathNodes.AddRange(leaf.GetBranch()); pathInfo.PathNodes.Reverse(); return pathInfo; }