I uploaded my network using read.graph.
I then calculated the diameter and as I would like to identify the nodes involved in this path I therefore used get.diameter(G18)
It gave me numbers which correspond to my nodes of interest: 37 128 121 88 ...
I would like therefore to have the name of my nodes.
I tried the following things:
V(G18)$name I've got the following answer: NULL
V(G18) = vertex sequence:37
If I upload the same file in Gephi, I can see the name of my node.
I know that I'm doing something
wrong, but I don't know where.
Thanks in advance,