Ask your own question, for FREE!
Computer Science 9 Online
OpenStudy (anonymous):

how do i keep track of the vertex that has been visited

OpenStudy (dan815):

call the stackpointer

OpenStudy (anonymous):

in an adjacency list

OpenStudy (dan815):

@ganeshie8

OpenStudy (anonymous):

so when one vertex has been visited

OpenStudy (anonymous):

i want to mark it as visited, then the same one has been visited

OpenStudy (anonymous):

mark it as 2

OpenStudy (anonymous):

then increment the number of times that the vertex has been visited

OpenStudy (anonymous):

i tried using an array ...but it doesn't work

OpenStudy (anonymous):

cause the number of times doens't get incremented accordingly to the number of times it has been visited

OpenStudy (e.mccormick):

How were you incrementing it?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!