[Top][All Lists]

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

Re: [igraph] Vertex ID's during deletion

From: Gábor Csárdi
Subject: Re: [igraph] Vertex ID's during deletion
Date: Mon, 15 Oct 2012 22:50:48 -0400

Hi Nick,

you can keep track of attributes using igraph attributes in C as well. See here:

The igraph implementation of attributes in C is very simple, so maybe
you only want to use one for vertices, one for edges, numeric ID
attributes for both of them. Then you can use these IDs to access the
rest of the attributes on your own.


On Mon, Oct 15, 2012 at 10:33 PM, Nicholas Dahm <address@hidden> wrote:
> Hi All,
> As the C interface isn't stable or expansive, I'm keeping track of attributes 
> in my own array. Previously on graph change I would just delete all 
> attributes and re-calculate them, but now I want to simply update them 
> instead. However this requires keeping track of vertex id's during deletions.
> On deletion, do vertex id's simply decrease to fill any gaps, so if I delete 
> vertices 4 and 6, old vertex 5 becomes new vertex 4, old vertex 7 becomes new 
> vertex 5, old vertex 8 becomes new vertex 6, etc.?
> cheers
> Nick
> --
> Nicholas Dahm
> Student Researcher (Pattern Recognition)
> National ICT Australia
> Brisbane, QLD, Australia
> email: address@hidden
> PhD Candidate
> Griffith University
> Brisbane, QLD, Australia
> email: address@hidden
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     MTA KFKI RMKI

reply via email to

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