igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Edge enumeration after delete.edges


From: Tamas Nepusz
Subject: Re: [igraph] Edge enumeration after delete.edges
Date: Thu, 30 Jun 2011 16:31:19 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

> Suppose that I had edges with ids from 0 to N 
> and I have deleted the edge with id = k.
> Can I be sure that the new enumeration is this:
> For all edges with old ids < k the new id is equal to the old one.
> For all edges with old ids > k the new id is equal to (old_id - 1).
Yes, the _current_ implementation works this way. It is not promised or
guaranteed by the basic interface of igraph, but this is how it works now
and as far as I know, we have no plans to change it in the near future. (I
think we also rely on this behaviour in the attribute handlers for R and
Python).

-- 
Tamas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]