[Top][All Lists]

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

[igraph] Edge enumeration after delete.edges

From: Матвеева Юлия
Subject: [igraph] Edge enumeration after delete.edges
Date: Thu, 30 Jun 2011 15:47:20 +0400

Good afternoon, dear igraph-community.

I know that if I one uses the function delete.edges ( in R : g <- 
delete.edges(g, edge = E(g, P = c(1,2))) )
the ids of the edges change.

I would greatly appreciate if someone could clarify for me how the 
new enumeration is formed.

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).

Thank you very much in advance.

Sincerely yours,
Yulia Matveeva,
Department of Statistical Modelling,
Faculty of Mathematics and Mechanics,
St Petersburg State University.

reply via email to

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