21 Apr
2011
21 Apr
'11
8:09 p.m.
Hi i would like to know the code that change the label of vertices form index (0,1,3,... n-1) to different names (PDC,HOD,KNF,...n-1)?
22 Apr
22 Apr
10:09 p.m.
Hi, On 04/21/2011 10:09 PM, Emad Fadhal wrote:
i would like to know the code that change the label of vertices form index (0,1,3,... n-1) to different names (PDC,HOD,KNF,...n-1)?
In graph-tool, the vertices are uniquely identified by indexes from 0 to N-1, and this cannot be changed. However, you are free to create property maps to attach arbitrary information to them (such as labels). See http://projects.skewed.de/graph-tool/doc/quickstart.html#property-maps for more information. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
5352
Age (days ago)
5353
Last active (days ago)
1 comments
2 participants
participants (2)
-
Emad Fadhal -
Tiago de Paula Peixoto