Closed chenda2000 closed 3 years ago
There will be multiple nodes with edges connecting them.
Are you sure? There are several cases in the test file with no edges (complete graph of size 1, getGraph1a, and getGraph2a)
Yeah, according to what Dr. Choi replied to me earlier. But feel free to go to today's office hours and check with Dr. Choi directly
Dr. Choi said if a graph has no edges we should return an empty list
Thanks! Good to know
For graphs of only one vertex, should we return an empty list or a list with one empty SpanningTree?
Basically, is a spanning tree with no edges still considered a spanning tree?
Edit: I also have the same question for graphs of zero vertices