Tagged Questions
0
votes
2answers
163 views
Algorithm for searching the neighbors neighbor of a directed graph
Is there an algorithm to search a directed graph (tree) for its neighbors neighbor?
My current brute-force solution works as follows:
for each node n:
for each child c of n
for each parent ...