You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
adjacency_listのグラフをコピーする際に注意することがあります。 VertexListにlistSなど指定しているとvertex_descriptorはコピー先で使用できないということです。vecSの場合vertex_descriptorは整数インデックスなので問題ないと思いますが他はポインタのようなものなので使用できません。当たり前の話ですが少し嵌ってしまいました。 そこでコピー元に対応するコピー先のvertex_descriptorをどうやって取得したらいいのかということですが、 copy_graph関数をorig_to_copyパラメータと共に使用します。 これで全ての頂点に対してコピー元とコピー先のvertex_descriptorペアが取得できます。 #include <map> #include <iostream> #include <boost/graph/ad
DeepCopyするときは、Cloneメソッドをオーバーライドすること。 1 List<string> list = new List<string>(); 2 List<string> cloneList = List<string>(list); //=> コピー(複製)作成
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く