This will print the number of neighbors for node: $node

puts [llength [$node neighbors]]


On 7/1/06 3:29 PM, "Nicholas Loulloudes" <[EMAIL PROTECTED]>
wrote:

> you can find the neighbors of each node by using  [$node
> neighbors]. Is it possible to count how many neighbors a node has?
> 
> The reason i want to do this is because i need to apply a TCL script
> regardless to the topology i create.
> 
> Regards,
> 
> 
> -- 
> Nicholas Loulloudes
> 
> Postgraduate at Communication Networks and Software.
> 
> BSc in Computer Science.

Reply via email to