Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/157.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ boost-BGL:如果图没有顶点,则最小顶点排序断言为false_C++_Boost - Fatal编程技术网

C++ boost-BGL:如果图没有顶点,则最小顶点排序断言为false

C++ boost-BGL:如果图没有顶点,则最小顶点排序断言为false,c++,boost,C++,Boost,例如,下面的代码断言bucketsort为false typedef boost::adjacency_list< boost::vecS, // outedgelist boost::vecS, // vertexlist > Graph; typedef Graph::vertex_descriptor VertexDesc; Graph graph; boost::vector_property_map<VertexDesc

例如,下面的代码断言bucketsort为false

typedef boost::adjacency_list<
        boost::vecS, // outedgelist
        boost::vecS, // vertexlist
        > Graph;
typedef Graph::vertex_descriptor VertexDesc;
Graph graph;
boost::vector_property_map<VertexDesc> order;
boost::smallest_last_vertex_ordering(graph, order);
typedef boost::邻接列表<
boost::vecS,//outedgelist
boost::vecS,//顶点列表
>图形;
typedef图形::顶点描述符VertexDesc;
图形;
boost::向量属性映射顺序;
boost::最小顶点排序(图,顺序);
这是预期的吗