checkVertex: Type checking for igraph vertex arguments.

Description Usage Arguments

View source: R/misc-utilities.R

Description

igraph fnctions that use igraph vertices as arguments can typicall take the vertex object itself (igraph.vs), the vertex id (numeric), or the vertex name (character). This flexibility can lead to unsafe code. The convention in this package is to use the vertex name.

Usage

1

Arguments

v

Assumed to represent a vertex.

This function, returns an error if v is not of the class 'character'.


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