Skip to content

Commit 2304e31

Browse files
qckzrcclauss
authored andcommitted
Fixing lgtm issue in basic graphs (#1141)
* Added print function into matrix_multiplication_addition.py and removed blank space in data_structures/binary tree directory * Removed .vs/ folder per #893 * Rename matrix_multiplication_addition.py to matrix_operation.py * Fixing lgtm issue in basic_graphs per ##1024 * Fixed lgtm issue per @cclauss recommendation in #1024
1 parent 47a9ea2 commit 2304e31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: graphs/basic_graphs.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ def dijk(G, s):
128128
from collections import deque
129129

130130

131-
def topo(G, ind=None, Q=[1]):
131+
def topo(G, ind=None, Q=None):
132+
if Q is None:
133+
Q = [1]
132134
if ind is None:
133135
ind = [0] * (len(G) + 1) # SInce oth Index is ignored
134136
for u in G:

0 commit comments

Comments
 (0)