IGraphM icon indicating copy to clipboard operation
IGraphM copied to clipboard

Internal vs[] function does not detect non-existent list vertex

Open szhorvat opened this issue 1 year ago • 0 comments

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}

szhorvat avatar Aug 28 '22 19:08 szhorvat