graph.neighborhood()
was renamed to make_ego_graph()
to create a more
consistent API.
The input graph.
Integer giving the order of the neighborhood.
The vertices for which the calculation is performed.
Character constant, it specifies how to use the direction of
the edges if a directed graph is analyzed. For ‘out’ only the
outgoing edges are followed, so all vertices reachable from the source
vertex in at most order
steps are counted. For ‘"in"’ all
vertices from which the source vertex is reachable in at most order
steps are counted. ‘"all"’ ignores the direction of the edges. This
argument is ignored for undirected graphs.
The minimum distance to include the vertex in the result.