[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [igraph] how to iterate a vertex seq to find neighbors

**From**: |
Simone Gabbriellini |

**Subject**: |
[igraph] how to iterate a vertex seq to find neighbors |

**Date**: |
Mon, 22 Dec 2008 18:00:02 +0100 |

hi all,
hi Tamas,
I am wondering how to use the neighbors function... I do:
g = igraph.Graph.Read_Pajek(filename)
for node in g.vs:
vicinato = igraph.GraphBase.neighbors(node, type="IN")
and I have this error:
Traceback (most recent call last):
File "<pyshell#64>", line 1, in <module>
igraph.Graph.neighbors(g.vs, type="IN")
TypeError: descriptor 'neighbors' requires a 'igraph.Graph' object but
received a 'VertexSeq'
this is part of my .net file:
*Vertices 37
1 "Lukather"
2 "Gae"
3 "milordz"
4 "Ouba"
5 "Sualtan"
6 "Brenn Tantor"
thank you,
simone

**[igraph] how to iterate a vertex seq to find neighbors**,
*Simone Gabbriellini* **<=**
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Tamas Nepusz*, `2008/12/22`
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Simone Gabbriellini*, `2008/12/22`
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Simone Gabbriellini*, `2008/12/23`
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Tamas Nepusz*, `2008/12/23`
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Simone Gabbriellini*, `2008/12/23`
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Tamas Nepusz*, `2008/12/23`
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Simone Gabbriellini*, `2008/12/23`
**Re: [igraph] how to iterate a vertex seq to find neighbors**, *Tamas Nepusz*, `2008/12/23`