Depending on the underlying graph, you also need to handle cycles intelligently. In social networks, mutual relationships are common, and you don't want your agent getting stuck in loops. Maintain a ...