LFR benchmark 操作步驟

先奉上資源

鏈接:https://pan.baidu.com/s/1Mm_UwUAhM0ofKXcFbti0YA 
提取碼:hvp8 
複製這段內容後打開百度網盤手機App,操作更方便哦

運行操作

在解壓後的文件下找到 /benchmark/Debug 文件夾, 在該文件下運行命令行程序(按住shift然後右鍵),之後即可輸入命令。

參數解釋

benchmark [FLAG] [P] [FLAG] [P]
-N        number of nodes   節點數 
-k        average degree     平均度(大多數大規模真實社會網絡的平均值在10左右)
-maxk     maximum degree   最大度 數
-mu       mixing parameter    社團內部鏈接強度係數,值越大,鏈接越弱
-t1       minus exponent for the degree sequence    節點度的冪律分佈指數
-t2       minus exponent for the community size distribution    社團尺寸的冪律分佈指數
-minc     minimum for the community sizes    社團尺寸大小下限
-maxc     maximum for the community sizes   社團尺寸大小上限
-on       number of overlapping nodes      重疊節點佔比
-om       number of memberships of the overlapping nodes   重疊節點的社團隸屬數
-C        average clustering coefficient   平均聚類係數

代碼樣例

# 生成樣例基準網絡
benchmark -N 1000 -k 15 -maxk 50 -mu 0.1 -minc 20 -maxc 50

運行結果如下圖
在這裏插入圖片描述
得到四個文件:
分別是社團編號文件、網絡鄰接列表文件、網絡特徵統計文件和時間種子數。

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章