You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@riberr The DFS visit function takes K (the generic type for the hash, as opposed to the contained vertex type).
So you would need to do the following to start at Paris and descend until London:
f := func(name string) bool {
return name == "London"
}
graph.DFS(g, "Paris", f)
Activity
GeorgeMac commentedon Nov 12, 2024
@riberr The
DFSvisit function takesK(the generic type for the hash, as opposed to the contained vertex type).So you would need to do the following to start at Paris and descend until London: