first_v: Select vertices from a sequence

Description Usage Arguments Value

View source: R/misc-utilities.R

Description

Given a vertex sequence (class igraph.vs), selects the first, last, or a random vertex from the sequence

Usage

1
2
3
4
5
first_v(g, s)

last_v(g, s)

random_v(g, s)

Arguments

g

igraph object

s

an object of class igraph.vs

Value

the index of a vertex from the sequence


robertness/lucy documentation built on May 27, 2019, 10:32 a.m.