我試圖將六張圖合併成一張圖,使用igraph中的graph.union
函數。如何避免圖中的聯合名稱衝突igraph?
每個圖都是定向,命名和二部分。每個圖形具有以下頂點和邊屬性:
name (v/c), type (v/c), label (v/c), id (v/c), edgeType (e/c), timestamp (e/c)
然而,當我使用`graph.union」合併六個圖形,它會創建下列頂點和邊屬性:
attr: type_1 (v/c), type_2 (v/c), type_3 (v/c), type_4 (v/c), type_5 (v/c), type_6 (v/c), label_1 (v/c), label_2 (v/c), | label_3 (v/c), label_4 (v/c), label_5 (v/c), label_6 (v/c), id_1 (v/c), id_2 (v/c), id_3 (v/c), id_4 (v/c), id_5 (v/c), | id_6 (v/c), name (v/c), edgeType_1 (e/c), edgeType_2 (e/c), edgeType_3 (e/c), edgeType_4 (e/c), edgeType_5 (e/c), | edgeType_6 (e/c), timestamp_1 (e/c), timestamp_2 (e/c), timestamp_3 (e/c), timestamp_4 (e/c), timestamp_5 (e/c), | timestamp_6 (e/c)
如何確保最終圖形對象不會生成所有這些附加屬性?
感謝,
添
最近的回覆,但我又遇到了這個問題,我可以確認你的解決方案的作品。謝謝。 – timothyjgraham