Skip to contents

Neighborhood of vertices

Usage

neighborhood_size(
  graph,
  vids = integer(0),
  order = 1L,
  mode = 1L,
  mindist = 0L
)

neighborhood(graph, vids = integer(0), order = 1L, mode = 1L, mindist = 0L)

Arguments

graph

igraph_ptr object.

vids

Vertices of interest.

order

integer

mode

Edge type to count; {1: OUT, 2: IN, 3: ALL}.

mindist

The minimum distance to include a vertex in the counting.