v_sim.NodeNeighboursIter

Fields

Name

Type

Access

Description

index

int

r/w

current neighbour index.

nei

v_sim.NodeNeighbours

r/w

parent v_sim.NodeNeighbours object.

neiId

int

r/w

node id of the current neighbour.

nnei

int

r/w

number of neighbours.

nodeId

int

r/w

node id of the current node.

Methods

next ()

Details

class v_sim.NodeNeighboursIter

Iterator structure used to span over the neighbours of nodeId.

New in version 3.8.

next()
Returns:

True if the iterator is valid.

Return type:

bool

Look to the next neighbour, see v_sim.NodeNeighbours.iter().

New in version 3.8.