edge_index zero for all edges?

前端 未结 1 1553
死守一世寂寞
死守一世寂寞 2021-01-22 15:42

Defining my boost::graph like the following, I get edge indices zero for all edges. Why? What am I doing wrong?

#include 
#include &         


        
相关标签:
1条回答
  • 2021-01-22 16:19

    An adjacency_list doesn't have an edge index associated with it, only a vertex index. Which is quite logical once you think about how the graph is stored.

    To have an edge index, you need to manually add it to the graph description, and then manually handle it.

    0 讨论(0)
提交回复
热议问题