[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Tracking vertex IDs
From: |
Natalia Olano |
Subject: |
Re: [igraph] Tracking vertex IDs |
Date: |
Fri, 7 Nov 2008 13:07:08 +0100 |
Thanks! I will do that.
Natalia
2008/11/6 Tamas Nepusz <address@hidden>:
> 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.
>
> --
> Tamas
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Natalia Olano Agüero