There is at least one problem that I see that is an invalid definition of the edge property. To determine graph properties, use the property<> . There are several predefined properties, such as index, weight, color, etc. The property type edge_weight_t used to determine the cost of an edge. Therefore, the definition of the type of graph should be as follows:
typedef adjacency_list< setS,
To access the property type, use property_map<> : property_map<Graph, edge_weight_t>::type .
Change My mistake is related to related properties, but itβs still difficult to specify the correct type for the randomize_property<Property> template parameter, which should be a property type. If you define a graph, as in my example, the use will be randomize_property<edge_weight_t>(g, gen);
source share