I want to find the maximum number of nodes which can be reached from each node in a graph using igraph in R.
For example, I have the following graph:
IGRAPH fb9255f DN-- 4 3 -- + attr: name (v/c), X (e/l) + edges from fb9255f (vertex names): 1 1->2 2->3 2->4
For node 1, for example, I would like to obtain the list of all the possible nodes reachable (not only using one hop) from it.
In this case, for node 1 it will be: [2,3,4]
I have read the igraph documentation, but I do not see any function that can help.
Any help will be appreciated. Thanks
Carlos