Hi Nick, you can keep track of attributes using igraph attributes in C as well. See here: http://igraph.sourceforge.net/doc/html/ch12s02.html
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. Best, Gabor On Mon, Oct 15, 2012 at 10:33 PM, Nicholas Dahm <[email protected]> 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: [email protected] > > PhD Candidate > Griffith University > Brisbane, QLD, Australia > email: [email protected] > > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help -- Gabor Csardi <[email protected]> MTA KFKI RMKI _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
