Hi Dragan,
You can get the "vertex index" by the XVertexIndex attribute, which can be used to pick the corresponding Segment by the Selector Operator. If you don't want to use the Corner Input, you should wire an empty Segment to it to get the vertex index correctly.
Hope that helps.
Best regards,