View source: R/structural.properties.R
graph.neighborhood | R Documentation |
graph.neighborhood()
was renamed to make_ego_graph()
to create a more
consistent API.
graph.neighborhood(
graph,
order = 1,
nodes = V(graph),
mode = c("all", "out", "in"),
mindist = 0
)
graph |
The input graph. |
order |
Integer giving the order of the neighborhood. |
nodes |
The vertices for which the calculation is performed. |
mode |
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 |
mindist |
The minimum distance to include the vertex in the result. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.