ブースト (C++) グラフ ライブラリのクローンであるQuickGraph .NET ライブラリを使用していますが、このライブラリはまったく初めてなので、いくつか質問があります。次を使用してブーストで簡単に実行できることがわかりました:
adjacency_list<boost::vecS, boost::vecS, boost::undirectedS> Graph;
2- 頂点に値を割り当てるにはどうすればよいですか?
AdjacencyGraph graph = new AdjacencyGraph(new VertexAndEdgeProvider(), false);//I'm not sure about the proper value of this boolean
IVertex u = graph.AddVertex();// here I'm adding vertex to 'graph' but with no value
IVertex v = graph.AddVertex();// here also I'm doing the same thing but without assigning any value to vertex v
graph.AddEdge(u, v);