Use this if you are using igraph from R
This function takes the
graph arguments from a
public igraph function call and validates the vertex type vector.
handle_vertex_type_arg(types, graph, required = T)
the vertex types
whether the graph has to be bipartite
When the provided vertex types are NULL and the graph has a
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.
A logical vector representing the resolved vertex type for each vertex in the graph
Tamas Nepusz firstname.lastname@example.org