提交 78821dc6 authored 作者: Frederic's avatar Frederic

pep8

上级 45c446f1
...@@ -495,14 +495,14 @@ def stack_search(start, expand, mode='bfs', build_inv=False): ...@@ -495,14 +495,14 @@ def stack_search(start, expand, mode='bfs', build_inv=False):
:param start: search from these nodes :param start: search from these nodes
:type expand: callable :type expand: callable
:param expand: :param expand:
when we get to a node, add expand(node) to the list of nodes to visit. This function when we get to a node, add expand(node) to the list of nodes to visit.
should return a list, or None This function should return a list, or None
:rtype: list of `Variable` or `Apply` instances (depends on `expend`) :rtype: list of `Variable` or `Apply` instances (depends on `expend`)
:return: the list of nodes in order of traversal. :return: the list of nodes in order of traversal.
:note: :note:
a node will appear at most once in the return value, even if it appears multiple times a node will appear at most once in the return value, even if it
in the start parameter. appears multiple times in the start parameter.
:postcondition: every element of start is transferred to the returned list. :postcondition: every element of start is transferred to the returned list.
:postcondition: start is empty. :postcondition: start is empty.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论