How to get adjacent vertices from edges? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get adjacent vertices from edges?

I have a problem that determines whether the graph has cycles or not and the edges are given. I am trying to get the adjacency list from the edges but I can't. List<keyValuePair<string, string>>edges https://code.sololearn.com/cn0py0CP8B14/?ref=app

8th Jan 2021, 5:33 PM
Esraa Hesham
Esraa Hesham - avatar
3 Answers
+ 1
Please post the code you have so far. We can then review the code and advise on what you can do to solve the issue.
9th Jan 2021, 5:52 AM
Elizabeth Kelly
Elizabeth Kelly - avatar
0
Elizabeth Kelly Thank you for the advice. I have posted the code.
11th Jan 2021, 9:51 PM
Esraa Hesham
Esraa Hesham - avatar
0
David Carroll BroFar Morpheus could either of you assist Esraa Hesham with this question?
12th Jan 2021, 4:06 AM
Elizabeth Kelly
Elizabeth Kelly - avatar