Learn R Programming

igraph (version 1.3.5)

handle_vertex_type_arg: Common handler for vertex type arguments in igraph functions

Description

This function takes the types and graph arguments from a public igraph function call and validates the vertex type vector.

Usage

handle_vertex_type_arg(types, graph, required = T)

Value

A logical vector representing the resolved vertex type for each vertex in the graph

Arguments

types

the vertex types

graph

the graph

required

whether the graph has to be bipartite

Author

Tamas Nepusz ntamas@gmail.com

Details

When the provided vertex types are NULL and the graph has a types vertex attribute, then the value of this vertex attribute will be used as vertex types. Non-logical vertex type vectors are coerced into logical vectors after printing a warning.