paths = g.allPaths(l, o) AttributeError: 'int' object has no attribute 'allPaths'
时间: 2023-11-02 09:32:28 浏览: 71
iOS 报clang: error: no input files错误的解决方法
This error occurs because you are trying to call the method `allPaths` on an integer object (`l` in this case) which does not have this method.
Most likely, `g` is an object of a custom class that has a method `allPaths` which takes two parameters (the start and end nodes) and returns all possible paths between them.
Make sure that you are passing the correct parameters to the `allPaths` method, and that `g` is indeed an object of the expected class.
阅读全文