Skip to content

Added Graph DFS#12

Open
cutenti wants to merge 2 commits intomainfrom
11_Deep_First_Search
Open

Added Graph DFS#12
cutenti wants to merge 2 commits intomainfrom
11_Deep_First_Search

Conversation

@cutenti
Copy link
Owner

@cutenti cutenti commented Dec 20, 2025

No description provided.

neighbors = []
for neighbor in self.conection_list[vertex]:
if neighbor not in visited:
neighbors.append(neighbor)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

почему просто не добавлять в этом ифе в стак? Зачем здесь лишняя переменная?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants