次のグラフをgraphmlに出力するにはどうすればよいですか?
typedef struct Vertex{ std::string name; std::string cmdb_id;
Vertex& operator= (const Vertex& rhs)
{
if (this == &rhs)
return *this;
name = rhs.name;
cmdb_id = rhs.cmdb_id;
}
bool operator< (const Vertex& rhs) const
{
return cmdb_id < rhs.cmdb_id;
};
bool operator== (const Vertex& rhs) const
{
return ((cmdb_id == rhs.cmdb_id) && (name == rhs.name));
};
}vertex_container;
typedef struct Edge {std::string name;} edge_container;
boost::directed_graph<vertex_container, edge_container> Graph g;