Defined in File ReachableNodes.hpp
public NetworKit::Algorithm
(Class Algorithm)
Public Functions
Determines or estimates the number of reachable nodes from each node in the graph.
G – The graph.
exact – Whether or not to compute the number of reachable nodes exactly. Only used for directed graphs, on undirected graphs the number of reachable nodes from every node can be computed in linear time.
Runs the algorithm.
Returns the number of reachable nodes from the given node u. Only available if exact is true.
u – A node.
The number of nodes reachable from u.
Public Members