0

I am using ego function to find the immediate neighbors of node i.

nbr <- ego(graph1, 1, i)
print(nbr)

The print statement outputs:

[[1]]
+ 4/1000 vertices:
[1] 119 95 237 276

How can I access an integer from the list: 119 95 237 276?

Sonu Mishra
  • 1,659
  • 4
  • 26
  • 45
  • can u write little more details about what are u looking for. Is it something like you want to see the output in integer, `as.integer()` type of function? – bim Apr 09 '16 at 05:59
  • That kind of answered my question.The function as.integer() is what i was looking for. Thanks! – Sonu Mishra Apr 09 '16 at 06:11
  • so your problem solved, best of luck. – bim Apr 09 '16 at 06:22

0 Answers0