BGL: using short integer as vertex_descriptor

4 Dec
2013
4 Dec
'13
2:12 a.m.
Hi, I am using the graph library in a memory constrained environment. By default vertex_descriptor for an adjacency_list (of vectors, i.e. vecS, vecS) seems to be std::size_t. I was wondering if there's a way to use say uint16_t for the vertex_descriptor? Thanks, -Adam

21 Dec
21 Dec
10:41 p.m.
On Tue, 3 Dec 2013, Adam Celick wrote:
Hi, I am using the graph library in a memory constrained environment. By default vertex_descriptor for an adjacency_list (of vectors, i.e. vecS, vecS) seems to be std::size_t. I was wondering if there's a way to use say uint16_t for the vertex_descriptor?
I don't know for adjacency_list, but compressed_sparse_row_graph allows the vertex index size to be customized. -- Jeremiah Willcock
4116
Age (days ago)
4133
Last active (days ago)
1 comments
2 participants
participants (2)
-
Adam Celick
-
Jeremiah Willcock