鱼C论坛

 找回密码
 立即注册
查看: 1075|回复: 1

求问,为什么循环输出的结果不一致

[复制链接]
发表于 2020-7-31 15:36:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
import networkx,community

for i in range(5):
    G = networkx.Graph(name=str(i))
    for each_edge_weight in edge_weight:
        G.add_edge(each_edge_weight[0], each_edge_weight[1], weight=each_edge_weight[2])
    print(G.number_of_edges())
    partition = community.best_partition(G)
    q = {}
    for z in partition:
        if q.get(partition[z]) == None:
            q[partition[z]] = [z]
        else:
            q[partition[z]].append(z)
    print(q)
其中用到的edge_weight的数据在下面
edge_weight=[(3, 4, 0.049261049926456385), (3, 6, 1.7666333566501162e-09), (3, 7, 0.014285580086467959), (3, 8, 0.0008812011999358937), (3, 10, 6.168135434354558e-05), (3, 11, 0.0029533584174466516), (3, 15, 0.004363100041554693), (3, 16, 9.798652342592471e-05), (3, 17, 5.209614298913286e-07), (3, 18, 3.851381186025179e-08), (3, 20, 2.4730262384237477e-10), (3, 22, 5.130088808423994e-06), (3, 25, 0.000257423788709764), (3, 26, 1.2375479986429669e-05), (3, 27, 1.3353395022797935e-07), (3, 28, 0.028028774744479085), (3, 29, 5.663567987988969e-05), (3, 37, 0.000915178660998252), (3, 39, 0.006279673339142441), (3, 40, 1.3390405126409462e-05), (3, 41, 3.4940241114224336e-07), (3, 43, 0.004204970205345409), (3, 44, 0.00032864745175381963), (3, 49, 5.23694966792995e-05), (4, 3, 0.049115578465556774), (4, 5, 0.012544056052012772), (4, 6, 0.021320409957783358), (4, 7, 0.00026288715751634784), (4, 8, 0.0208608182224811), (4, 9, 2.8126008100642296e-10), (4, 11, 0.001125903488666556), (4, 12, 0.002290607491129853), (4, 14, 5.40617345039774e-07), (4, 15, 0.0006053203289011282), (4, 16, 0.015395367628720276), (4, 17, 8.904064903128168e-05), (4, 18, 0.00019884640074928643), (4, 19, 7.630533115318019e-11), (4, 20, 2.0820723534688462e-07), (4, 21, 1.6886450094400445e-09), (4, 23, 1.5798392580043254e-06), (4, 25, 1.916956126706695e-09), (4, 26, 0.01064959541178292), (4, 27, 0.00010487296142874858), (4, 28, 0.0004940539056083749), (4, 29, 0.020046224151549125), (4, 30, 6.67629855481164e-06), (4, 35, 0.001485929248469401), (4, 37, 0.0002722962882782232), (4, 38, 2.601747997562852e-06), (4, 39, 2.4852711309234355e-05), (4, 40, 0.011928336199004576), (4, 42, 1.0761757249205297e-07), (4, 43, 0.017135766167321473), (4, 44, 0.016164439678960436), (4, 45, 1.6789533032084271e-12), (4, 46, 6.151045721750444e-06), (4, 47, 6.0029450449908314e-05), (4, 49, 0.0011382964418536778), (4, 50, 1.946884720066719e-05), (5, 4, 0.012544056052012772), (5, 6, 0.03266720026899193), (5, 7, 7.690270815892235e-05), (5, 8, 0.014927751538073835), (5, 9, 4.130830745105982e-07), (5, 11, 0.0645310313823631), (5, 12, 0.05675448359628788), (5, 13, 0.008336251327611259), (5, 14, 4.950459866694892e-10), (5, 16, 0.005111328139573083), (5, 21, 2.711436774770156e-07), (5, 23, 0.00013923797672969006), (5, 26, 0.0004044518567635756), (5, 27, 8.595980538550915e-07), (5, 28, 0.021397070871483476), (5, 29, 0.005167500186477), (5, 33, 3.399932569566423e-09), (5, 36, 7.048764555879077e-06), (5, 38, 3.481220701410732e-10), (5, 40, 2.7510507776121242e-05), (5, 42, 1.7562776523016128e-05), (5, 43, 0.0021684744039351853), (5, 44, 2.2656989849728514e-05), (5, 45, 0.003044936918353931), (5, 47, 0.00011876798973059819), (5, 48, 0.0011529914138861353), (5, 49, 0.0007097526120643875), (6, 3, 1.7666333566501162e-09), (6, 4, 0.021320409957783358), (6, 5, 0.03266720026899193), (6, 8, 0.009516864234160947), (6, 9, 8.526868671334665e-10), (6, 11, 5.7442312714324335e-05), (6, 12, 0.0003377446157005898), (6, 13, 0.000282481523163831), (6, 16, 0.011694931753648736), (6, 17, 0.0006028572270568286), (6, 19, 5.349282101312275e-09), (6, 20, 7.800185241221235e-07), (6, 21, 3.2686062016845566e-09), (6, 26, 9.326696252264375e-06), (6, 27, 8.003754159229618e-05), (6, 28, 0.0018515239540785463), (6, 29, 0.013254924878349079), (6, 40, 0.005145106597140062), (6, 43, 0.0001761357499885348), (6, 44, 0.023558843652801455), (6, 45, 2.0649974130077293e-12), (6, 47, 9.506461862693578e-06), (6, 49, 0.0009683864627972118), (6, 50, 2.5704143469815075e-05), (7, 3, 0.014285580086467959), (7, 4, 0.00026288715751634784), (7, 5, 7.690270815892235e-05), (7, 8, 0.0715206751056183), (7, 10, 0.001501291260352833), (7, 11, 0.001660518890941004), (7, 15, 0.007393773023776417), (7, 16, 0.00037571703031188275), (7, 17, 6.507517205933706e-08), (7, 18, 0.00011717792646082974), (7, 25, 0.00028854149025684615), (7, 27, 3.221972795659558e-07), (7, 28, 0.016063457700978622), (7, 29, 1.629599260522283e-05), (7, 30, 9.972999596501994e-05), (7, 37, 0.0011046856683290835), (7, 39, 0.006422838360225559), (7, 43, 0.028231450343081773), (7, 44, 2.8065938038173328e-05), (7, 45, 0.005016486324683475), (7, 49, 4.463855090839421e-06), (8, 1, 5.4712012130720845e-08), (8, 3, 0.0008812168285275106), (8, 4, 0.020860818226734548), (8, 5, 0.014927848243903481), (8, 6, 0.009516864234160947), (8, 7, 0.07144599460446266), (8, 9, 3.8696655818380433e-07), (8, 10, 0.009480270667472677), (8, 11, 0.025963763233160245), (8, 12, 0.0026513591345207867), (8, 13, 0.0018447764963104394), (8, 14, 6.926691192349108e-07), (8, 15, 0.0006597598020194938), (8, 16, 0.0183645306865783), (8, 17, 0.0005222114451117783), (8, 18, 0.0004990178039705801), (8, 20, 3.3603418466537516e-08), (8, 22, 1.1243161712001366e-05), (8, 23, 3.0081887462825225e-05), (8, 24, 2.417843893986291e-07), (8, 25, 0.0003851780910077898), (8, 26, 2.4775187662982416e-05), (8, 27, 0.0016134916859661167), (8, 28, 0.0027593230421113493), (8, 29, 0.011315520770260405), (8, 30, 6.798302169188038e-05), (8, 31, 3.1989231306894613e-06), (8, 32, 3.1886118925194194e-09), (8, 35, 0.0018841465996390307), (8, 37, 0.0006350247399982932), (8, 39, 0.0012302299403476361), (8, 40, 0.004483408742328588), (8, 41, 4.3617437595030724e-07), (8, 42, 7.658314363505609e-08), (8, 43, 0.0007982871001394195), (8, 44, 0.019615778918556644), (8, 45, 4.074287550215733e-12), (8, 46, 9.704477429564142e-06), (8, 47, 1.3222521111809178e-07), (8, 49, 3.82058892092723e-05), (8, 50, 2.4162823625250074e-06), (9, 1, 0.015952075177018056), (9, 3, 5.538295190439904e-08), (9, 4, 2.8854728630410127e-10), (9, 5, 6.070749786482385e-07), (9, 6, 8.526868671334665e-10), (9, 7, 1.554108967937904e-07), (9, 8, 3.870081717043921e-07), (9, 12, 5.24864319733966e-08), (9, 13, 2.51955795129585e-08), (9, 15, 7.097539712457528e-08), (9, 20, 0.03836735129427027), (10, 3, 6.168135434354558e-05), (10, 7, 0.001501291260352833), (10, 8, 0.009480270667472677), (10, 11, 0.013890428031698161), (10, 15, 0.0005535358179543194), (10, 22, 3.0876983657857327e-06), (10, 25, 0.0001781626228592531), (10, 26, 9.76477685752405e-06), (10, 27, 2.7802537042638295e-05), (10, 28, 0.0036055242786754912), (10, 37, 0.00024992964672338033), (10, 39, 0.0008329275668313138), (11, 3, 0.0029533584174466516), (11, 4, 0.001125903488666556), (11, 5, 0.0645310313823631), (11, 6, 5.7442312714324335e-05), (11, 7, 0.001660518890941004), (11, 8, 0.025963763233160245), (11, 10, 0.013890428031698161), (11, 12, 5.6507390449066294e-05), (11, 13, 0.0010840226829702702), (11, 15, 0.009180740822884993), (11, 16, 0.00010328747605415596), (11, 17, 7.0102558737648275e-06), (11, 22, 4.8657243224163105e-06), (11, 23, 3.401945062344382e-07), (11, 25, 5.8546720269159885e-05), (11, 26, 0.030270870534544546), (11, 27, 0.0024974650959874107), (11, 28, 0.0001396001731738327), (11, 29, 0.045522517112133704), (11, 32, 4.419880048883742e-09), (11, 34, 7.277579279565275e-09), (11, 35, 3.0768536748090207e-06), (11, 37, 4.429976539513265e-10), (11, 38, 1.38558715139299e-07), (11, 39, 3.8174808793083794e-05), (11, 40, 0.0036151146062786067), (11, 41, 4.518176650535049e-08), (11, 42, 2.176679979200703e-05), (11, 43, 5.496784607487482e-05), (11, 44, 0.0006833714047818375), (11, 45, 1.323493299336588e-13), (11, 49, 0.00010495144376304347), (12, 4, 0.002290607633744416), (12, 5, 0.05675448359628788), (12, 6, 0.0003377469842821015), (12, 8, 0.0027099238598083386), (12, 11, 5.6507390449066294e-05), (12, 13, 0.0021580744941587233), (12, 14, 1.009572794239359e-06), (12, 16, 0.0006273095285371324), (12, 17, 1.0508206814958076e-07), (12, 18, 0.00030104962958243817), (12, 19, 3.274320180539471e-09), (12, 20, 5.64740912368113e-07), (12, 26, 5.5157894313114744e-06), (12, 27, 1.9213239654764768e-08), (12, 28, 8.635415215155692e-07), (12, 29, 0.05658124990188966), (12, 30, 1.4115731291229503e-09), (12, 37, 0.0010052353069589458), (12, 44, 0.011582977075593432), (12, 45, 0.0037862713190245814), (12, 47, 0.00010299807989134384), (12, 49, 0.0003236767585226929), (12, 50, 0.0004781276864837642), (13, 4, 0.00015938753332318093), (13, 5, 0.008336251327611259), (13, 6, 0.000282481523163831), (13, 8, 0.0018447749217738178), (13, 11, 0.0010840226829702702), (13, 12, 0.0021580744941587233), (13, 14, 1.036581868341277e-05), (13, 17, 0.0015822892045417815), (13, 28, 6.857274706132051e-07), (13, 29, 0.0007986910092071973), (13, 30, 0.0008890273725732424), (13, 37, 0.007123977344978271), (13, 38, 4.9872885927987e-05), (13, 44, 0.00033965594495231064), (13, 50, 3.6518802855213925e-06), (14, 4, 5.40617345039774e-07), (14, 5, 4.950459866694892e-10), (14, 8, 6.926691192349108e-07), (14, 12, 1.009572794239359e-06), (14, 13, 1.036581868341277e-05), (15, 3, 0.004363100041554693), (15, 4, 0.0006053203289011282), (15, 7, 0.007393773023776417), (15, 8, 0.0006597512923565572), (15, 10, 0.0005535358179543194), (15, 11, 0.009180740822884993), (15, 16, 0.03689294505525225), (15, 22, 4.560342388245147e-07), (15, 25, 8.61661372648741e-05), (15, 26, 0.00020510003816979707), (15, 28, 0.007759951692169122), (15, 29, 0.0004088035310140477), (15, 37, 0.0019443493723153504), (15, 39, 0.0034714066469693837), (15, 40, 0.0003076735999638039), (15, 41, 7.993507752792414e-09), (15, 43, 0.0011984874429067417), (15, 44, 1.196833411651871e-05), (16, 3, 9.798652342592471e-05), (16, 4, 0.015395367628720276), (16, 5, 0.005111328139573083), (16, 6, 0.011694931753648736), (16, 7, 0.00037571703031188275), (16, 8, 0.0183645306865783), (16, 11, 0.00010328747605415596), (16, 12, 0.0006273095285371324), (16, 15, 0.03689294505525225), (16, 17, 0.00012158646992871752), (16, 18, 0.0006535343056093375), (16, 23, 0.00017438410712480648), (16, 25, 0.0005249584986757155), (16, 26, 0.02630693729538864), (16, 27, 0.0005499341629815081), (16, 28, 0.0032740185827019454), (16, 29, 0.0036610023267641925), (16, 30, 9.415280931877285e-05), (16, 39, 0.012920346997844048), (16, 40, 0.001626969324598501), (16, 42, 1.721188141138538e-09), (16, 43, 0.010014293816071546), (16, 44, 0.0008311625394093834), (16, 45, 3.5895067308855127e-12), (16, 49, 3.787326461508564e-05), (16, 50, 1.88341585411714e-08), (17, 1, 0.038171829053073286), (17, 3, 5.209614298913286e-07), (17, 4, 8.904064903128168e-05), (17, 6, 0.0006028572270568286), (17, 7, 3.006349156999797e-05), (17, 8, 0.0005222114451117783), (17, 11, 7.0102558737648275e-06), (17, 12, 5.8591040639113765e-06), (17, 13, 0.0015844884596621003), (17, 16, 0.00012158646992871752), (17, 18, 0.022521785275309295), (17, 20, 4.466329691455636e-05), (17, 29, 0.0005840022675222105), (17, 39, 4.84695371809087e-08), (17, 49, 0.003973089305415316), (17, 50, 6.466427845946581e-07), (18, 1, 0.046216281255347956), (18, 3, 3.851381186025179e-08), (18, 4, 0.00019884640074928643), (18, 7, 0.00014723672423915354), (18, 8, 0.0004990178039705801), (18, 12, 0.0003068147561206505), (18, 13, 2.2206356096537695e-06), (18, 16, 0.0006535343056093375), (18, 17, 0.022521785275309295), (18, 20, 3.0379151017034937e-06), (18, 25, 0.00033887692636395923), (18, 28, 7.851910766339057e-07), (18, 29, 1.83923940122138e-09), (18, 40, 2.8798864476097607e-05), (18, 43, 1.3109584884341769e-05), (18, 44, 2.6796646598956546e-05), (19, 4, 7.630533115318019e-11), (19, 6, 5.349282101312275e-09), (19, 12, 3.274320180539471e-09), (19, 20, 1.381573390619179e-05), (19, 21, 0.0009281795010313206), (20, 1, 0.0204757214576607), (20, 3, 4.4417397244877514e-08), (20, 4, 2.0820723534688462e-07), (20, 5, 5.544462225048953e-08), (20, 6, 7.800185241221235e-07), (20, 7, 3.1952159094173965e-08), (20, 8, 3.3603418466537516e-08), (20, 9, 0.03836735129427027), (20, 12, 5.987029309652718e-07), (20, 13, 2.3756598194627554e-09), (20, 15, 8.59553924725368e-09), (20, 17, 4.466329691455636e-05), (20, 18, 3.0379151017034937e-06), (20, 19, 1.381573390619179e-05), (20, 21, 0.02802776813983777), (20, 28, 6.538304829105085e-09), (20, 29, 4.0815451553848863e-07), (20, 40, 2.2922276665958013e-08), (20, 43, 3.231918248795325e-08), (20, 49, 1.495333117351509e-10), (20, 50, 3.433573523732174e-06), (21, 1, 0.06509472527915042), (21, 3, 4.4170624149189916e-08), (21, 4, 1.6886450094400445e-09), (21, 5, 3.26588607766386e-07), (21, 6, 3.2686062016845566e-09), (21, 7, 3.195245312624051e-08), (21, 12, 3.3962212966314024e-08), (21, 13, 2.3758280452719496e-09), (21, 15, 8.595836348291724e-09), (21, 19, 0.0009281795010313206), (21, 20, 0.02802776813983777), (21, 50, 7.89565466307183e-05), (22, 3, 5.130088808423994e-06), (22, 8, 1.1243161712001366e-05), (22, 10, 3.0876983657857327e-06), (22, 11, 4.8657243224163105e-06), (22, 15, 4.560342388245147e-07), (22, 23, 0.010734278334077033), (22, 25, 3.1407915104836367e-06), (22, 26, 5.584711719413144e-05), (22, 28, 3.313800487042623e-06), (22, 39, 2.4656777037406592e-06), (22, 43, 1.4391016299416845e-07), (23, 4, 1.5798392580043254e-06), (23, 5, 0.00013923797672969006), (23, 8, 3.0081887462825225e-05), (23, 11, 3.401945062344382e-07), (23, 16, 0.00017438410712480648), (23, 22, 0.010734278334077033), (23, 25, 0.0033242114729338385), (23, 26, 0.0004253041100270251), (23, 27, 5.799040791364849e-07), (23, 28, 1.74181634715375e-08), (23, 29, 2.264661885498054e-06), (23, 40, 1.0780071349723207e-06), (23, 43, 3.2551135283781485e-12), (23, 44, 1.4789876291423583e-07), (23, 45, 3.3116864564949966e-15), (24, 8, 2.417843893986291e-07), (24, 28, 4.557458115641225e-07), (25, 3, 0.000257423788709764), (25, 4, 1.916956126706695e-09), (25, 7, 0.00028854149025684615), (25, 8, 0.0003851780910077898), (25, 10, 0.0001781626228592531), (25, 11, 5.8546720269159885e-05), (25, 15, 8.61661372648741e-05), (25, 16, 0.0005249584986757155), (25, 18, 0.00033887692636395923), (25, 22, 3.1407915104836367e-06), (25, 23, 0.0033242114729338385), (25, 26, 0.0006424352693058694), (25, 27, 0.012879469116772393), (25, 28, 5.133307712432285e-05), (25, 29, 6.300796130836823e-06), (25, 39, 7.116612170457872e-06), (25, 41, 2.199167749881982e-07), (25, 43, 1.1502646434345508e-05), (26, 3, 1.2375479986429669e-05), (26, 4, 0.01064959541178292), (26, 5, 0.0004044518567635756), (26, 6, 9.326696252264375e-06), (26, 8, 2.4775187662982416e-05), (26, 10, 9.76477685752405e-06), (26, 11, 0.030270870534544546), (26, 12, 5.5157894313114744e-06), (26, 15, 0.00020510003816979707), (26, 16, 0.02630693729538864), (26, 22, 5.584711719413144e-05), (26, 23, 0.0004253041100270251), (26, 25, 0.0006428636436792148), (26, 27, 3.988800884708477e-07), (26, 28, 0.030322504364095716), (26, 29, 2.5537755884697224e-05), (26, 40, 7.684227365238336e-06), (26, 43, 3.077614169460642e-06), (26, 44, 0.00041506476792600483), (26, 47, 5.104205891301737e-06), (27, 3, 1.3353395022797935e-07), (27, 4, 0.00010487296142874858), (27, 5, 8.595980538550915e-07), (27, 6, 8.003754159229618e-05), (27, 7, 3.221972795659558e-07), (27, 8, 0.0016134916859661167), (27, 10, 2.7802537042638295e-05), (27, 11, 0.0024974650959874107), (27, 12, 1.9213239654764768e-08), (27, 16, 0.0005499341629815081), (27, 23, 5.799040791364849e-07), (27, 25, 0.012883596851669976), (27, 26, 3.988800884708477e-07), (27, 28, 0.0034559024823571614), (27, 29, 3.1071561300421335e-06), (27, 35, 6.745170079703924e-05), (27, 42, 4.1258677867892e-08), (28, 3, 0.028028774744479085), (28, 4, 0.0004940570608224815), (28, 5, 0.021397070871483476), (28, 6, 0.0018515239540785463), (28, 7, 0.016063457700978622), (28, 8, 0.0027593230421113493), (28, 10, 0.0036055242786754912), (28, 11, 0.0001396001731738327), (28, 12, 8.635415215155692e-07), (28, 13, 6.857274706132051e-07), (28, 15, 0.007759951692169122), (28, 16, 0.0032740185827019454), (28, 18, 7.851910766339057e-07), (28, 20, 6.538304829105085e-09), (28, 22, 3.313800487042623e-06), (28, 23, 1.74181634715375e-08), (28, 24, 4.557458115641225e-07), (28, 25, 5.133307712432285e-05), (28, 26, 0.030322504364095716), (28, 27, 0.0034559024823571614), (28, 29, 0.04173168272083984), (28, 30, 1.0704075977403282e-08), (28, 31, 5.614676367455878e-06), (28, 34, 9.89566315933675e-09), (28, 35, 0.003510448930551204), (28, 37, 1.4851005631515666e-10), (28, 41, 2.2572753209679804e-07), (28, 43, 0.0001121932155662863), (28, 44, 0.01886726291718905), (28, 47, 0.0001873407854301475), (29, 3, 5.663567987988969e-05), (29, 4, 0.020046224151549125), (29, 5, 0.005167500186477), (29, 6, 0.013254924878349079), (29, 7, 1.629599260522283e-05), (29, 8, 0.011315520770260405), (29, 11, 0.045522517112133704), (29, 12, 0.05658124990188966), (29, 13, 0.0007986910092071973), (29, 15, 0.0004088035310140477), (29, 16, 0.0036610023267641925), (29, 17, 0.0005840022675222105), (29, 18, 1.83923940122138e-09), (29, 20, 4.0815451553848863e-07), (29, 23, 2.264661885498054e-06), (29, 25, 6.300796130836823e-06), (29, 26, 2.5537755884697224e-05), (29, 27, 3.1071561300421335e-06), (29, 28, 0.04173168272083984), (29, 30, 3.137852265026602e-09), (29, 36, 1.2365046736166652e-05), (29, 38, 1.0457922745264921e-10), (29, 42, 1.5439858164907899e-07), (29, 43, 0.008497765668339353), (29, 44, 0.00453319389710587), (29, 45, 0.0033651849210602053), (29, 47, 3.841181989018768e-05), (29, 50, 0.00042320548833874136), (30, 4, 6.680762123893934e-06), (30, 7, 9.972999596501994e-05), (30, 8, 6.798302169188038e-05), (30, 12, 1.4115731291229503e-09), (30, 13, 0.0008890273725732424), (30, 16, 9.415280931877285e-05), (30, 28, 1.0704075977403282e-08), (30, 29, 3.137852265026602e-09), (31, 8, 3.1989231306894613e-06), (31, 28, 5.614676367455878e-06), (31, 36, 0.04702045461579217), (31, 38, 0.0612963192381764), (32, 8, 3.1886118925194194e-09), (32, 11, 4.419880048883742e-09), (32, 33, 0.05584171092539851), (32, 35, 2.0846879021198052e-07), (33, 5, 3.399932569566423e-09), (33, 32, 0.05584171092539851), (33, 34, 0.08276251424478019), (34, 11, 7.277579279565275e-09), (34, 28, 9.89566315933675e-09), (34, 33, 0.08276251424478019), (35, 4, 0.001485929248469401), (35, 8, 0.0018841465996390307), (35, 11, 3.0768536748090207e-06), (35, 27, 6.745170079703924e-05), (35, 28, 0.003510448930551204), (35, 32, 2.0846879021198052e-07), (35, 37, 0.0659903074822654), (36, 5, 7.048764555879077e-06), (36, 29, 1.2365046736166652e-05), (36, 31, 0.04702045461579217), (37, 3, 0.000915178660998252), (37, 4, 0.0004380591422143937), (37, 7, 0.0011046856683290835), (37, 8, 0.0007319039416938863), (37, 10, 0.00024992964672338033), (37, 11, 4.429976539513265e-10), (37, 12, 0.0010052353069589458), (37, 13, 0.007123977344978271), (37, 15, 0.0019443493723153504), (37, 28, 1.4851005631515666e-10), (37, 35, 0.0659903074822654), (37, 38, 6.428994212549966e-06), (38, 4, 2.601747997562852e-06), (38, 5, 3.481220701410732e-10), (38, 11, 1.38558715139299e-07), (38, 13, 4.9872885927987e-05), (38, 29, 1.0457922745264921e-10), (38, 31, 0.0612963192381764), (38, 37, 6.428994212549966e-06), (39, 3, 0.006279673339142441), (39, 4, 2.4852711309234355e-05), (39, 7, 0.006422838360225559), (39, 8, 0.0012302299403476361), (39, 10, 0.0008329275668313138), (39, 11, 3.8174808793083794e-05), (39, 15, 0.0034714066469693837), (39, 16, 0.012920346997844048), (39, 17, 4.84695371809087e-08), (39, 22, 2.4656777037406592e-06), (39, 25, 7.116612170457872e-06), (39, 40, 0.039484843636519454), (39, 41, 1.697627274880267e-07), (40, 3, 1.3390405126409462e-05), (40, 4, 0.011928336199004576), (40, 5, 2.7510507776121242e-05), (40, 6, 0.005145106597140062), (40, 8, 0.004483408742328588), (40, 11, 0.0036151146062786067), (40, 15, 0.0003076735999638039), (40, 16, 0.001626969324598501), (40, 18, 2.8798864476097607e-05), (40, 20, 2.2922276665958013e-08), (40, 23, 1.0780071349723207e-06), (40, 26, 7.684227365238336e-06), (40, 39, 0.039484843636519454), (40, 42, 0.0001015696536655131), (40, 43, 0.024933173625306962), (41, 3, 3.4940241114224336e-07), (41, 8, 4.3617437595030724e-07), (41, 11, 4.518176650535049e-08), (41, 15, 7.993507752792414e-09), (41, 25, 2.199167749881982e-07), (41, 28, 2.2572753209679804e-07), (41, 39, 1.697627274880267e-07), (41, 42, 0.0031824619943429874), (41, 43, 9.80299034035072e-09), (42, 4, 1.0761757249205297e-07), (42, 5, 1.7562776523016128e-05), (42, 8, 7.658314363505609e-08), (42, 11, 2.176679979200703e-05), (42, 16, 1.721188141138538e-09), (42, 27, 4.1258677867892e-08), (42, 29, 1.5439858164907899e-07), (42, 40, 0.0001015696536655131), (42, 41, 0.0031824619943429874), (42, 43, 3.309832930840302e-05), (42, 44, 9.970776912748124e-09), (43, 3, 0.004204970205345409), (43, 4, 0.017135766167321473), (43, 5, 0.0021684744039351853), (43, 6, 0.0001761357499885348), (43, 7, 0.028231450343081773), (43, 8, 0.0007982871001394195), (43, 11, 5.496784607487482e-05), (43, 15, 0.0011984874429067417), (43, 16, 0.010014293816071546), (43, 18, 1.3109584884341769e-05), (43, 20, 3.231918248795325e-08), (43, 22, 1.4391016299416845e-07), (43, 23, 3.2551135283781485e-12), (43, 25, 1.1502646434345508e-05), (43, 26, 3.077614169460642e-06), (43, 28, 0.0001121932155662863), (43, 29, 0.008497765668339353), (43, 40, 0.024933173625306962), (43, 41, 9.80299034035072e-09), (43, 42, 3.309832930840302e-05), (43, 44, 0.03463506010487469), (44, 3, 0.00032864745175381963), (44, 4, 0.016164439678960436), (44, 5, 2.2656989849728514e-05), (44, 6, 0.023558843652801455), (44, 7, 2.8065938038173328e-05), (44, 8, 0.019615778918556644), (44, 11, 0.0006833714047818375), (44, 12, 0.011582977075593432), (44, 13, 0.00033965594495231064), (44, 15, 1.196833411651871e-05), (44, 16, 0.0008311625394093834), (44, 18, 2.6796646598956546e-05), (44, 23, 1.4789876291423583e-07), (44, 26, 0.00041506476792600483), (44, 28, 0.01886726291718905), (44, 29, 0.00453319389710587), (44, 42, 9.970776912748124e-09), (44, 43, 0.03463506010487469), (44, 45, 0.005949763463671307), (44, 47, 0.00023866111026603403), (44, 48, 0.0023082600890863953), (44, 49, 0.004656729284765473), (45, 4, 1.6789533032084271e-12), (45, 5, 0.003044936918353931), (45, 6, 2.0649974130077293e-12), (45, 7, 0.005016486324683475), (45, 8, 4.074287550215733e-12), (45, 11, 1.323493299336588e-13), (45, 12, 0.0037862713190245814), (45, 16, 3.5895067308855127e-12), (45, 23, 3.3116864564949966e-15), (45, 29, 0.0033651849210602053), (45, 44, 0.005949763463671307), (45, 47, 0.00021152281492092296), (46, 4, 6.151045721750444e-06), (46, 8, 9.704477429564142e-06), (47, 4, 6.0029450449908314e-05), (47, 5, 0.00011876798973059819), (47, 6, 9.506461862693578e-06), (47, 8, 1.3222521111809178e-07), (47, 12, 0.00010299807989134384), (47, 26, 5.104205891301737e-06), (47, 28, 0.0001873407854301475), (47, 29, 3.841181989018768e-05), (47, 44, 0.00023866111026603403), (47, 45, 0.00021152281492092296), (47, 48, 2.069734962544915e-05), (48, 5, 0.0011529914138861353), (48, 44, 0.0023082600890863953), (48, 47, 2.069734962544915e-05), (49, 3, 5.23694966792995e-05), (49, 4, 0.0011383608788596406), (49, 5, 0.0007097526120643875), (49, 6, 0.0009683864627972118), (49, 7, 4.463855090839421e-06), (49, 8, 3.82058892092723e-05), (49, 11, 0.00010495144376304347), (49, 12, 0.0003236767585226929), (49, 16, 3.787326461508564e-05), (49, 17, 0.003973089305415316), (49, 20, 1.495333117351509e-10), (49, 44, 0.004656729284765473), (49, 50, 0.0007041340704548503), (50, 4, 1.946884720066719e-05), (50, 6, 2.5704143469815075e-05), (50, 8, 2.4162823625250074e-06), (50, 12, 0.0004781276864837642), (50, 13, 3.6518802855213925e-06), (50, 16, 1.88341585411714e-08), (50, 17, 6.466427845946581e-07), (50, 20, 3.433573523732174e-06), (50, 21, 7.89565466307183e-05), (50, 29, 0.00042320548833874136), (50, 49, 0.0007041340704548503)]
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2020-7-31 15:37:40 | 显示全部楼层
我现在 有点晕,不知道是因为louvain算法的随机性,还是因为外套循环的关系,求大神指点
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-19 17:23

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表