Use the breadthFirst
function to explore a different structure.
For example, you could use the course dependencies form the topoSort
example (a directed graph),
the file system hierarchy on your computer (a tree),
or a list of bus or subway routes downloaded from your city government's web site (an undirected graph).
ex5.14
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||