Search API Reference¶ nuro.search.frontiers ¶ Frontier ¶ Source code in nuro/search/frontiers.py 18 19 20 21 22 23 24 25 26class Frontier(): def __init__(self): self.frontier = [] def add(self, node): self.frontier.append(node) def empty(self): return len(self.frontier) == 0 QueueFrontier ¶ Bases: Frontier Source code in nuro/search/frontiers.py 39 40 41 42 43 44 45 46class QueueFrontier(Frontier): def remove(self): if self.empty(): raise RuntimeError("empty frontier") else: node = self.frontier[0] self.frontier = self.frontier[1:] return node StackFrontier ¶ Bases: Frontier Source code in nuro/search/frontiers.py 29 30 31 32 33 34 35 36class StackFrontier(Frontier): def remove(self): if self.empty(): raise RuntimeError("empty frontier") else: node = self.frontier[-1] self.frontier = self.frontier[:-1] return node Copy page as MarkdownCopy to clipboard for pasting into any AI tool View as MarkdownOpen this page as clean Markdown in a new tab Open in ChatGPTChat about this page with ChatGPT Open in ClaudeChat about this page with Claude llms.txtFull documentation index for LLMs Use with AI