Hi,
I am wondering how I can assign a Vector3 (eg. float val[3] or float
x,y,z) to a property in a graph that is read in from a graphml xml file.
I can easily set 3 properties, x,y,z but then I have to create a graph
that is read like this:
typedef property x_coord_t;
typedef property y_coord_t;
typedef property coord_t;
typedef adjacency_list > graph_t;
graph_t g;
dynamic_properties dp;
dp.property("x",get(vertex_x_t(),g));
dp.property("y",get(vertex_y_t(),g));
dp.property("z",get(vertex_z_t(),g));
dp.property("weight",get(edge_weight_t(),g));
std::ifstream ifile(path.string().c_str());
read_graphml(ifile, g, dp);
I would much rather be able to set a property of type Vector3 and not
have to convert from the above code to a new graph whose vertices have
Vector3 properties attached.
thanks.