Message Boards Message Boards

How does one map a vertex list to another list for vertex labels?

Posted 10 years ago

Hi - I have 2 lists of the same length. Both are Strings: I would like to map one to another without using 2 for loops

  1. VertexList[g] = {a,b,c,d}
  2. nodeLabels= {a - description, d - description, c, a}

As you can see the lists are not in the same sequence but can be matched using a pattern since nodeLabels always begins with the same element in VertexLis[g]

I tried to follow the example from here and tried some adaptations from here without much success. Thanks in advance for any leads or examples..

`

POSTED BY: Itay Livni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract