R igraph manual pages

Use this if you are using igraph from R

handle_vertex_type_arg {igraph}R Documentation

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)

Arguments

types

the vertex types

graph

the graph

required

whether the graph has to be bipartite

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.

Value

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

Author(s)

Tamas Nepusz ntamas@gmail.com


[Package igraph version 1.3.1 Index]