|
From: | Tamas Nepusz |
Subject: | Re: [igraph] Tracking vertex IDs |
Date: | Thu, 6 Nov 2008 12:25:22 +0000 |
Hi Natalia,
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.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 knowthe computer they actually correspond to. Which would be the simplest way to do this?
-- Tamas
[Prev in Thread] | Current Thread | [Next in Thread] |