IGraphM
IGraphM copied to clipboard
Internal vs[] function does not detect non-existent list vertex
The internal vs[]
function does not detect that a vertex does not exist when passed a list of exiting vertices. This is because VertexIndex
can take a list, even though this is undocumented:
In[20]:= g = Graph[{"a" <-> "b"}];
In[21]:= VertexIndex[g, {"a", "b"}]
Out[21]= {1, 2}