[Top][All Lists]

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

Re: [igraph] Tracking vertex IDs

From: Tamas Nepusz
Subject: Re: [igraph] Tracking vertex IDs
Date: Thu, 6 Nov 2008 12:25:22 +0000

Hi Natalia,

I need to use igraph to recreate a computer network topology and
calculate the shortest paths. Stations can switch on and off and so
need to be excluded from the shortest path calculation. The vertex IDs
are shifted when a vertex is deleted, but I would still need to know
the computer they actually correspond to. Which would be the simplest way to do this?
Use vertex attributes; e.g., you can set up a "name" attribute for each vertex which contains the original IP address of that computer. Attributes are preserved upon deletion or insertion, all you have to remember is to re-create the name attributes when re-adding an already deleted vertex to the network.


reply via email to

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