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