Lines Matching defs:prepare
27 """Subclass of ValueError raised by TopologicalSorter.prepare if cycles
72 Raises ValueError if called after "prepare".
75 raise ValueError("Nodes cannot be added after a call to prepare()")
86 def prepare(self):
95 raise ValueError("cannot prepare() more than once")
116 Raises ValueError if called without calling "prepare" previously.
119 raise ValueError("prepare() must be called first")
142 Raises ValueError if called without calling "prepare" previously.
145 raise ValueError("prepare() must be called first")
159 graph by using "add" or if called without calling "prepare" previously or if
164 raise ValueError("prepare() must be called first")
241 Using this method does not require to call "prepare" or "done". If any
244 self.prepare()