Fix linting
This commit is contained in:
parent
419432d156
commit
84d6dee34d
1 changed files with 3 additions and 1 deletions
|
|
@ -316,7 +316,9 @@ class NetworkXStorage(BaseGraphStorage):
|
|||
if depth < max_depth:
|
||||
# Add neighbor nodes to queue with incremented depth
|
||||
neighbors = list(graph.neighbors(current))
|
||||
queue.extend([(n, depth + 1) for n in neighbors if n not in visited])
|
||||
queue.extend(
|
||||
[(n, depth + 1) for n in neighbors if n not in visited]
|
||||
)
|
||||
|
||||
# Check if graph is truncated - if we still have nodes in the queue
|
||||
# and we've reached max_nodes, then the graph is truncated
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue