index
int64 0
731k
| package
stringlengths 2
98
⌀ | name
stringlengths 1
76
| docstring
stringlengths 0
281k
⌀ | code
stringlengths 4
8.19k
| signature
stringlengths 2
42.8k
⌀ | embed_func_code
listlengths 768
768
|
---|---|---|---|---|---|---|
30,002 | zeroconf._core | send | Sends an outgoing packet threadsafe. | def send(
self,
out: DNSOutgoing,
addr: Optional[str] = None,
port: int = _MDNS_PORT,
v6_flow_scope: Union[Tuple[()], Tuple[int, int]] = (),
transport: Optional[_WrappedTransport] = None,
) -> None:
"""Sends an outgoing packet threadsafe."""
assert self.loop is not None
self.loop.call_soon_threadsafe(self.async_send, out, addr, port, v6_flow_scope, transport)
| (self, out: zeroconf._protocol.outgoing.DNSOutgoing, addr: Optional[str] = None, port: int = 5353, v6_flow_scope: Union[Tuple[()], Tuple[int, int]] = (), transport: Optional[zeroconf._transport._WrappedTransport] = None) -> NoneType | [
-0.02984267845749855,
0.021321401000022888,
-0.09926924109458923,
-0.03841857984662056,
-0.0408584326505661,
-0.001972138648852706,
-0.01259983703494072,
0.015904564410448074,
-0.019700901582837105,
-0.06802455335855484,
0.005994936916977167,
-0.013573957607150078,
-0.043626025319099426,
-0.041331835091114044,
0.00332065811380744,
0.05724550411105156,
0.013437398709356785,
0.013828868046402931,
0.03104439750313759,
-0.006668627727776766,
0.0165509432554245,
0.08506710827350616,
-0.02126677706837654,
-0.04348036274313927,
-0.015422055497765541,
0.015403847210109234,
0.014884923584759235,
-0.0334114171564579,
-0.025163259357213974,
0.011698548682034016,
0.025782326236367226,
-0.03244640305638313,
0.015431159175932407,
0.02368842251598835,
0.025909781455993652,
-0.028604544699192047,
-0.029405690729618073,
-0.015822628512978554,
-0.02126677706837654,
0.003250102512538433,
-0.048797059804201126,
-0.012963994406163692,
-0.001080522546544671,
-0.017707141116261482,
-0.010087152943015099,
0.009313318878412247,
0.03166346251964569,
0.11434534192085266,
0.02519967406988144,
-0.010624284856021404,
-0.03779951110482216,
0.0007726959302090108,
0.018098609521985054,
-0.019791940227150917,
-0.04002087190747261,
0.028640959411859512,
0.005953969433903694,
-0.0047158352099359035,
-0.04952537268400192,
0.030334290117025375,
-0.0256548710167408,
0.00317954714410007,
0.0018651674035936594,
0.0023556414525955915,
-0.011653028428554535,
0.01988298073410988,
-0.02694762870669365,
0.014411519281566143,
0.018326207995414734,
0.02361559122800827,
0.002380677266046405,
0.03903764486312866,
-0.0353778675198555,
0.014784780330955982,
0.023870501667261124,
0.062234457582235336,
-0.011571093462407589,
-0.03197299689054489,
0.007064648903906345,
-0.0036256397143006325,
0.06216162443161011,
-0.00765185197815299,
0.037180446088314056,
-0.04471849650144577,
-0.005676299799233675,
0.05666285380721092,
-0.03166346251964569,
-0.0016068434342741966,
-0.051819562911987305,
-0.05520622432231903,
0.00789765827357769,
-0.007351422682404518,
-0.01609574630856514,
0.002858633641153574,
-0.011561989784240723,
-0.009322423487901688,
-0.013810659758746624,
-0.014930442906916142,
-0.06474713981151581,
-0.0214124396443367,
0.029278235509991646,
0.022359248250722885,
-0.0011118173133581877,
0.03395765274763107,
0.013756036758422852,
-0.04752250760793686,
-0.02332426607608795,
0.018826924264431,
-0.06259861588478088,
0.028877662494778633,
0.039292555302381516,
0.030479952692985535,
-0.004979848861694336,
-0.05739116668701172,
0.034503888338804245,
-0.005412285681813955,
-0.04617512598633766,
-0.021904053166508675,
-0.018663054332137108,
0.05841080844402313,
-0.011170520447194576,
0.05211088806390762,
0.020065058022737503,
-0.006345438305288553,
-0.01760699786245823,
-0.007287695072591305,
-0.020483840256929398,
-0.016978826373815536,
0.04042144492268562,
-0.05400450527667999,
0.03255565091967583,
0.0487242266535759,
0.08674222975969315,
0.0557524599134922,
0.023888709023594856,
0.08200819045305252,
-0.03415793925523758,
0.0066049001179635525,
-0.0075744688510894775,
-0.03326575458049774,
-0.008302782662212849,
-0.05975819006562233,
-0.04326187074184418,
-0.026893004775047302,
0.13597628474235535,
0.024853724986314774,
-0.05309411138296127,
0.018007570877671242,
-0.018735885620117188,
-0.07275860011577606,
0.017971156165003777,
-0.01754327118396759,
-0.028731999918818474,
0.04198731854557991,
-0.04515548795461655,
0.05990385264158249,
-0.006864362396299839,
-0.06747832149267197,
-0.04337111487984657,
-0.05779173970222473,
-0.04948895797133446,
-0.055533964186906815,
-0.00971389189362526,
0.08040589839220047,
0.025381753221154213,
-0.0415867455303669,
0.0030179524328559637,
-0.011334391310811043,
0.013437398709356785,
0.04457283392548561,
-0.0121537446975708,
0.04238789156079292,
0.029351066797971725,
0.006832498591393232,
-0.00004708438063971698,
-0.012963994406163692,
-0.004037592560052872,
-0.012772811576724052,
0.004957089200615883,
-0.026019027456641197,
-0.05018085613846779,
0.012618045322597027,
0.03135393187403679,
-0.03293801471590996,
-0.024325696751475334,
0.06132406368851662,
0.01305503398180008,
0.019846564158797264,
-0.00040171085856854916,
-0.03787234425544739,
0.012080913409590721,
-0.015485783107578754,
0.0095682293176651,
-0.034139733761548996,
-0.0227051991969347,
-0.02103007584810257,
-0.023032939061522484,
-0.0011778207262977958,
0.04981669783592224,
-0.01732477732002735,
0.023178603500127792,
0.0043880934827029705,
-0.023215018212795258,
0.03168167173862457,
-0.013801556080579758,
-0.019373159855604172,
0.008289126679301262,
-0.009240487590432167,
0.03783592954277992,
0.0010571937309578061,
0.002401161240413785,
-0.05892062559723854,
-0.02605544403195381,
0.003987520933151245,
-0.025072218850255013,
-0.025108635425567627,
0.010460413992404938,
0.02581874281167984,
0.008412030525505543,
0.03271951898932457,
0.01944599114358425,
-0.051819562911987305,
-0.010096256621181965,
0.012053601443767548,
0.016077538952231407,
-0.026073651388287544,
0.0008620282751508057,
-0.010988442227244377,
0.02605544403195381,
-0.0629991888999939,
0.013610373251140118,
0.02907794900238514,
0.032373569905757904,
0.046721361577510834,
0.02672913484275341,
0.0029178091790527105,
-0.020447423681616783,
-0.029751639813184738,
0.005020816810429096,
-0.018626637756824493,
-0.02938748151063919,
-0.030407121405005455,
-0.0008347164839506149,
0.012435967102646828,
0.04045785963535309,
0.05997668206691742,
-0.023815877735614777,
0.011325287632644176,
0.04511906951665878,
0.04337111487984657,
-0.06776964664459229,
-0.01309144962579012,
-0.09060230106115341,
-0.041113343089818954,
-0.024799101054668427,
0.004843289963901043,
-0.03619721904397011,
0.005344006232917309,
0.024780893698334694,
0.05127332732081413,
-0.02057487890124321,
0.005011712666600943,
-0.012654460966587067,
0.0029792606364935637,
0.014438831247389317,
0.0008148016058839858,
-0.050982002168893814,
-0.05939403176307678,
-0.03220969811081886,
0.009722995571792126,
0.008917298167943954,
0.057281918823719025,
0.010287439450621605,
0.003307002130895853,
-0.0015317359939217567,
-0.009914178401231766,
-0.010378479026257992,
0.022978316992521286,
-0.02308756299316883,
-0.027056876569986343,
0.06857079267501831,
-0.023633798584342003,
-0.03925614058971405,
0.0311354361474514,
-0.04599304869771004,
0.03051636926829815,
0.01891796477138996,
0.04231506213545799,
0.03972954675555229,
-0.0388919822871685,
-0.010915610939264297,
-0.009477189742028713,
0.06849796324968338,
-0.014429726637899876,
-0.038382165133953094,
0.005334902089089155,
-0.043698858469724655,
0.07822095602750778,
0.06179746985435486,
0.05589812248945236,
0.010296543128788471,
0.02050204761326313,
-0.013737828470766544,
0.044390756636857986,
0.058738548308610916,
0.02967880852520466,
0.010524141602218151,
0.018663054332137108,
0.0021303193643689156,
-0.02004685066640377,
-0.02627393789589405,
-0.05953969433903694,
-0.025072218850255013,
-0.06081424281001091,
0.08601392060518265,
0.019791940227150917,
-0.045373979955911636,
-0.0019220669055357575,
-0.005175583530217409,
-0.01648721471428871,
-0.03779951110482216,
0.03226432204246521,
0.030953356996178627,
-0.028112931177020073,
0.025035804137587547,
0.002749386476352811,
0.01457539014518261,
0.013264424167573452,
0.01089740265160799,
0.006805186625570059,
0.001901583163999021,
-0.01416571345180273,
0.012408655136823654,
0.043844521045684814,
-0.015103417448699474,
-0.038746319711208344,
0.06420090794563293,
0.05498772859573364,
0.05662643536925316,
0.020065058022737503,
-0.021904053166508675,
0.09103928506374359,
0.02026534453034401,
0.033101886510849,
0.03911047801375389,
-0.007487981580197811,
-0.08521277457475662,
-0.0048933615908026695,
-0.02747565694153309,
0.10283797979354858,
-0.0066595240496098995,
0.007533500902354717,
0.03029787540435791,
0.013655893504619598,
0.041113343089818954,
0.044463589787483215,
0.055388301610946655,
0.00034225083072669804,
0.007533500902354717,
-0.01412019319832325,
-0.003311553969979286,
0.01853559911251068,
0.026164691895246506,
0.009062960743904114,
0.011980770155787468,
-0.0003473717952147126,
0.016587357968091965,
0.0059221056289970875,
0.07807528972625732,
0.02718433178961277,
-0.03392123803496361,
0.021521687507629395,
0.000957619515247643,
-0.008894538506865501,
-0.03317471593618393,
0.004752250853925943,
0.011598405428230762,
0.06081424281001091,
-0.019955812022089958,
-0.05651719123125076,
-0.03636109083890915,
-0.031171852722764015,
0.038454994559288025,
-0.008261815644800663,
0.0668228343129158,
-0.04267921671271324,
0.016132161021232605,
-0.005266622640192509,
0.020101474598050117,
0.01988298073410988,
-0.003452664939686656,
0.006746011320501566,
0.02780339866876602,
0.016951514407992363,
-0.07625450938940048,
-0.03918331116437912,
-0.07858511060476303,
-0.007082856725901365,
-0.040057286620140076,
-0.03616080433130264,
-0.004358505830168724,
0.021139321848750114,
-0.026911213994026184,
0.05043576657772064,
0.013373671099543571,
0.026528848335146904,
0.046357207000255585,
-0.028422465547919273,
0.05240221321582794,
0.016978826373815536,
-0.031481385231018066,
0.05163748562335968,
-0.03454030677676201,
0.027766982093453407,
-0.03954746574163437,
0.019555239006876945,
0.029551353305578232,
-0.012882059440016747,
0.03348425030708313,
0.03104439750313759,
-0.05862930044531822,
-0.04588380083441734,
0.033520665019750595,
0.05353110283613205,
0.046502869576215744,
-0.04974386841058731,
-0.031190060079097748,
-0.0785122811794281,
0.019154665991663933,
-0.030261458829045296,
0.02210433967411518,
0.02255953475832939,
-0.003905585501343012,
0.06187029927968979,
0.1095384731888771,
0.03302905336022377,
-0.00316133932210505,
-0.07749263942241669,
0.00457700015977025,
0.007219415623694658,
-0.013273527845740318,
-0.0033661776687949896,
-0.07046440988779068,
-0.042023733258247375,
-0.02157631143927574,
0.00013008661335334182,
0.00006191382999531925,
-0.00785669032484293,
0.011944354511797428,
0.005694507621228695,
0.06926269084215164,
0.011917042545974255,
-0.003985244780778885,
0.0035482561215758324,
-0.01851739175617695,
-0.049088384956121445,
0.0007431081612594426,
-0.02893228642642498,
-0.03200941160321236,
-0.04959820210933685,
0.02254132740199566,
-0.016041122376918793,
-0.004037592560052872,
0.04937971010804176,
-0.03783592954277992,
0.06081424281001091,
0.033447835594415665,
-0.0029269130900502205,
0.02376125380396843,
-0.06347259134054184,
0.041878070682287216,
-0.0005795219913125038,
0.010451310314238071,
-0.029569560661911964,
-0.023743046447634697,
0.0004850687109865248,
0.0000528810232935939,
0.0157224852591753,
-0.06296277046203613,
-0.0009928971994668245,
0.010779052041471004,
0.032227907329797745,
0.02984267845749855,
0.013309943489730358,
0.0008455273928120732,
0.054405078291893005,
0.045519642531871796,
0.022195378318428993,
-0.012017185799777508,
0.06219804286956787,
-0.00155677180737257,
-0.039292555302381516,
-0.002033590106293559,
-0.029405690729618073,
0.04413584619760513,
0.06511130183935165,
-0.03570560738444328,
-0.03142676129937172,
-0.016377968713641167,
-0.03231894597411156,
-0.05458715558052063,
0.013009513728320599,
-0.039583880454301834,
0.004665763583034277,
0.025308921933174133,
-0.05345826968550682,
-0.025563832372426987,
0.05597095564007759,
-0.008849019184708595,
0.010715324431657791,
0.030115796253085136,
0.02687479741871357,
0.009021993726491928,
-0.00020313140703365207,
0.07756547629833221,
0.03051636926829815,
-0.045738138258457184,
-0.06645867973566055,
-0.06722340732812881,
0.009008337743580341,
0.010505933314561844,
0.03590589389204979,
0.007852138951420784,
0.0013360015582293272,
-0.01609574630856514,
0.01070621982216835,
0.06704133003950119,
0.06613093614578247,
0.006067768670618534,
-0.0372350700199604,
-0.03195479139685631,
0.001259756158106029,
0.01707896962761879,
-0.040130116045475006,
0.08186252415180206,
0.0013519334606826305,
0.005116407759487629,
0.01685137301683426,
-0.061688221991062164,
-0.005712715443223715,
-0.055533964186906815,
-0.024708062410354614,
-0.01671481318771839,
-0.08579542487859726,
-0.07388748228549957,
-0.01891796477138996,
0.011944354511797428,
0.023342473432421684,
0.028713790699839592,
-0.020665917545557022,
-0.05338543653488159,
-0.016204992309212685,
0.039292555302381516,
0.02833142690360546,
0.007055544760078192,
0.06026800721883774,
0.015076106414198875,
0.07268577069044113,
0.021048283204436302,
-0.038600657135248184,
-0.0016990207368507981,
0.03164525702595711,
0.040967680513858795,
0.0007732649683021009,
-0.006905329879373312,
-0.062452949583530426,
-0.027384618297219276,
-0.07945909351110458,
0.030407121405005455,
0.008557693101465702,
-0.050071608275175095,
0.030570993199944496,
-0.033356793224811554,
-0.019628070294857025,
0.05939403176307678,
0.0121537446975708,
-0.007000921294093132,
-0.01397453062236309,
-0.013482918031513691,
-0.019318535923957825,
-0.04235147684812546,
-0.0033980414737015963,
-0.0008569072815589607,
0.03173629567027092,
-0.04464566707611084,
0.02618289925158024,
-0.046430036425590515,
-0.04774100333452225,
-0.0030020205304026604,
-0.006441029720008373,
0.01222657598555088,
0.0016626049764454365,
0.01798936352133751,
0.01951882243156433,
0.0363064669072628,
0.011926146224141121,
-0.06110556796193123,
0.01868126168847084,
0.0700274184346199,
-0.013309943489730358,
0.014320479705929756,
0.04759534075856209,
0.03264668956398964,
-0.013309943489730358,
0.08827169239521027,
0.0012916198465973139,
-0.06864362210035324,
-0.01753416657447815,
-0.001730884425342083,
-0.05688134580850601,
-0.06412807106971741,
0.06660434603691101,
0.014174817129969597,
0.03188195824623108,
-0.04471849650144577,
-0.010515037924051285,
-0.044609252363443375,
0.024962972849607468,
-0.053567517548799515,
-0.0041946349665522575,
0.01859932579100132,
-0.004185531288385391,
-0.03432181105017662,
-0.04850573092699051,
0.059867434203624725,
-0.014475246891379356,
0.007192103657871485,
0.008430237881839275,
-0.06117840111255646,
-0.0027812502812594175,
-0.04814157634973526,
0.042715635150671005,
-0.020556671544909477,
0.04318903759121895,
-0.03841857984662056,
-0.057427581399679184,
-0.0434439480304718,
0.025072218850255013,
-0.06365466862916946,
-0.03424898162484169,
0.016150370240211487,
0.035268619656562805,
0.03228253126144409,
-0.05724550411105156,
0.042715635150671005,
0.03044353798031807,
-0.0031249234452843666,
-0.01105216983705759,
-0.01959165558218956,
-0.033138301223516464,
0.022723406553268433,
0.03312009200453758,
0.017297465354204178,
-0.0027516623958945274,
0.05724550411105156,
0.027293577790260315,
0.0370347835123539,
-0.004133183509111404,
0.033520665019750595,
-0.00440630130469799,
0.02210433967411518,
-0.03357528895139694,
0.015758899971842766,
-0.0986865907907486,
-0.006158807780593634,
0.047121934592723846,
-0.013391879387199879,
-0.0473768450319767,
-0.061251234263181686,
-0.0531669445335865,
-0.058884210884571075,
0.030643824487924576,
-0.011634821072220802,
-0.007492533419281244,
-0.0019163769902661443,
-0.016587357968091965,
0.04570172354578972,
-0.006013144738972187,
-0.06358183920383453,
-0.044973406940698624,
0.007733787409961224,
-0.02490834891796112,
0.026929421350359917,
0.027129707857966423,
-0.04249713942408562,
0.02709329128265381,
0.028185762465000153,
-0.05039934813976288,
0.01450255885720253,
-0.023251434788107872,
0.01707896962761879,
-0.019773732870817184,
-0.026474224403500557,
0.015431159175932407,
0.024890141561627388,
-0.011489158496260643,
0.03627005219459534,
-0.03841857984662056,
-0.04388093575835228,
0.026765551418066025,
0.012927578762173653,
-0.0077292355708777905,
0.03240998461842537,
-0.008380166254937649,
0.0292236115783453,
0.01997401937842369,
-0.007274039089679718,
0.02833142690360546,
0.009049304760992527,
0.004014832433313131,
0.025527415797114372,
-0.05866571515798569,
0.05101841688156128,
0.11186907440423965,
-0.06004951521754265,
-0.022504912689328194,
0.010542349889874458,
0.032537441700696945,
-0.01640527881681919,
0.014985066838562489,
-0.029423898085951805,
-0.0356874018907547,
-0.008767083287239075,
-0.07814812660217285,
-0.0025673077907413244,
-0.010187296196818352,
-0.023852292448282242,
0.010924714617431164,
0.03501370921730995,
0.03190016746520996,
0.009814035147428513,
0.035869479179382324,
0.050763506442308426,
0.015576821751892567,
-0.0577189065515995,
-0.01082457136362791,
0.007961385883390903,
0.0063317823223769665,
-0.08608675003051758,
0.04795949533581734,
-0.007483429275453091,
0.013610373251140118,
0.07079215347766876,
-0.07301350682973862,
0.06339976191520691,
0.009631956927478313,
-0.02742103300988674,
0.0006543448544107378,
0.025017596781253815,
-0.010988442227244377,
0.05050859600305557,
0.04373527318239212,
-0.03683449700474739,
0.0025172363966703415,
0.08288216590881348,
-0.0030498162377625704,
-0.023215018212795258,
0.02079337276518345,
0.001334863598458469,
-0.038928400725126266,
-0.013437398709356785,
-0.01328263245522976,
0.007346870377659798,
0.017561478540301323,
-0.0428248792886734,
0.001579531584866345,
0.023943332955241203,
-0.007738339249044657
]
|
30,003 | zeroconf._core | start | Start Zeroconf. | def start(self) -> None:
"""Start Zeroconf."""
self.loop = get_running_loop()
if self.loop:
self.engine.setup(self.loop, None)
return
self._start_thread()
| (self) -> NoneType | [
0.03180299326777458,
-0.019187919795513153,
0.019376205280423164,
-0.010124580934643745,
0.024802228435873985,
0.04268927127122879,
-0.01845189929008484,
0.06795365363359451,
-0.07490307092666626,
0.024271607398986816,
-0.006735456641763449,
0.03120390698313713,
0.021995073184370995,
-0.00274510495364666,
0.04590722918510437,
-0.009482701309025288,
-0.006842436268925667,
-0.00861402414739132,
-0.04262080416083336,
-0.017544709146022797,
-0.010098905302584171,
-0.03029671683907509,
0.0411829948425293,
0.012127244845032692,
-0.00846853107213974,
-0.008721004240214825,
-0.03413087874650955,
0.020711315795779228,
-0.007334544323384762,
-0.05299358069896698,
-0.007184772286564112,
0.004088772926479578,
-0.02445989102125168,
0.0023492793552577496,
0.025589600205421448,
-0.04221000149846077,
0.014386661350727081,
-0.012880383990705013,
-0.025914818048477173,
0.021156352013349533,
0.07011036574840546,
-0.055047594010829926,
0.04991255700588226,
0.034558799117803574,
-0.05189810320734978,
0.004185054916888475,
0.0521719716489315,
0.02018069475889206,
0.008588348515331745,
0.003016834147274494,
-0.044743288308382034,
0.019496023654937744,
-0.009148923680186272,
0.01722804829478264,
-0.07682015001773834,
0.04405861720442772,
0.0026167291216552258,
0.0621681772172451,
-0.037896569818258286,
-0.0211392343044281,
-0.03356602415442467,
0.027301277965307236,
0.00375927472487092,
0.0546710230410099,
0.02339865081012249,
-0.03659569472074509,
-0.007480036932975054,
0.03281288594007492,
0.07408146560192108,
-0.025640949606895447,
0.01009034737944603,
0.05292511358857155,
0.007509991060942411,
0.0022080657072365284,
0.05918985605239868,
0.008849379606544971,
-0.07627241313457489,
0.04114875942468643,
-0.049981024116277695,
-0.007484315894544125,
-0.061894308775663376,
0.08763796091079712,
-0.010929069481790066,
0.015696095302700996,
0.07291752099990845,
0.04648919776082039,
0.013171369209885597,
0.047173872590065,
0.030450768768787384,
-0.01893116906285286,
-0.03508941829204559,
0.05740971118211746,
-0.02274821326136589,
0.02882467210292816,
0.018229380249977112,
0.008511323481798172,
-0.04310007393360138,
-0.04138839617371559,
-0.04871438071131706,
0.013667755760252476,
-0.0299372635781765,
0.04066948965191841,
0.05566379800438881,
-0.025675183162093163,
-0.003904767567291856,
-0.03440474718809128,
-0.001851822598837316,
0.025195913389325142,
0.013667755760252476,
0.01655193604528904,
-0.02620580419898033,
-0.008237455040216446,
0.05378095060586929,
-0.043545112013816833,
-0.06993920356035233,
-0.025914818048477173,
0.007625529542565346,
0.017279399558901787,
0.0223887600004673,
0.028927374631166458,
-0.061243873089551926,
0.012974525801837444,
-0.028208468109369278,
-0.0009884946048259735,
-0.012238504365086555,
0.010757901705801487,
0.03803350403904915,
0.02774631604552269,
0.06740591675043106,
-0.08174978196620941,
0.08517314493656158,
0.014138467609882355,
0.00892640557140112,
-0.004886843264102936,
-0.007146259304136038,
0.01693706214427948,
0.0423811711370945,
-0.017578942701220512,
-0.026924708858132362,
0.01852036640048027,
-0.029971497133374214,
-0.03536328673362732,
0.012221387587487698,
0.02255992777645588,
-0.03666416183114052,
0.04025868698954582,
-0.06364022195339203,
-0.012700657360255718,
0.02149868756532669,
0.05761511251330376,
0.03680109605193138,
-0.006217673886567354,
0.0279859509319067,
-0.009183157235383987,
-0.035637155175209045,
-0.020317628979682922,
-0.005229179281741381,
0.0037442976608872414,
0.024631058797240257,
0.015251059085130692,
-0.08181825280189514,
0.04310007393360138,
0.006542892660945654,
-0.039026279002428055,
-0.05340438336133957,
-0.02536708116531372,
-0.08852803707122803,
0.01542222686111927,
0.040977593511343,
0.060285329818725586,
0.010338541120290756,
-0.028088651597499847,
-0.0280373003333807,
-0.00703927967697382,
0.053027812391519547,
0.0019406159408390522,
-0.0027344070840626955,
0.013171369209885597,
-0.015447902493178844,
0.02762649767100811,
0.0205401461571455,
0.024785110726952553,
-0.07223284989595413,
-0.04429825022816658,
0.03428492695093155,
0.046523433178663254,
0.021875256672501564,
0.03178587928414345,
0.032299380749464035,
-0.005631423555314541,
0.009439908899366856,
-0.009970529936254025,
-0.001645351410843432,
-0.009576843120157719,
0.04234693571925163,
0.06494110077619553,
0.06870678812265396,
-0.037656936794519424,
0.007445803377777338,
-0.019564490765333176,
-0.0062904199585318565,
0.07682015001773834,
0.02279956266283989,
-0.01763029210269451,
0.010064671747386456,
-0.0002877760271076113,
-0.0015126962680369616,
0.04655766487121582,
-0.007334544323384762,
-0.020386096090078354,
0.03394259139895439,
-0.0686725601553917,
-0.030091315507888794,
0.020574379712343216,
0.02649679034948349,
-0.033548906445503235,
0.00340838055126369,
0.021584270521998405,
-0.02702740952372551,
0.013351095840334892,
-0.015619070269167423,
0.03508941829204559,
-0.016757337376475334,
-0.05282241106033325,
-0.031049855053424835,
0.023056315258145332,
0.014326752163469791,
-0.020694198086857796,
-0.07962730526924133,
-0.038786645978689194,
0.023775219917297363,
-0.00914036575704813,
-0.05261700972914696,
-0.004604416433721781,
0.018605949357151985,
-0.019752774387598038,
0.07798409461975098,
0.09201985597610474,
-0.04553065821528435,
-0.03156336024403572,
0.010210164822638035,
0.02565806731581688,
0.035157885402441025,
-0.06655007600784302,
-0.046831537038087845,
0.04939905181527138,
-0.006196277681738138,
-0.02083113230764866,
-0.01976989209651947,
0.06322941929101944,
0.001832566224038601,
-0.05994299426674843,
-0.006508659105747938,
-0.012349762953817844,
-0.03496960178017616,
-0.053575549274683,
0.03334350511431694,
0.034798432141542435,
0.030399417504668236,
0.02625715546309948,
-0.021584270521998405,
0.034918248653411865,
-0.029457993805408478,
0.0584709532558918,
0.02244011126458645,
0.06490686535835266,
-0.00415082136169076,
-0.023604052141308784,
-0.034678615629673004,
-0.024271607398986816,
0.04669459909200668,
0.02666795812547207,
0.022132009267807007,
-0.0026124499272555113,
-0.0014998586848378181,
-0.005079407244920731,
-0.02286802977323532,
-0.03512364998459816,
-0.03851277753710747,
0.039094746112823486,
0.04991255700588226,
-0.055766500532627106,
0.019615840166807175,
0.04666036739945412,
-0.04535949230194092,
-0.017835693433880806,
-0.004210730083286762,
0.05566379800438881,
-0.014523595571517944,
-0.06179160997271538,
0.00751854944974184,
0.07045270502567291,
0.040327154099941254,
-0.04761890694499016,
0.007886560633778572,
-0.002242299495264888,
-0.043134309351444244,
0.039026279002428055,
0.012452464550733566,
0.007860885001718998,
-0.01371910609304905,
-0.019427556544542313,
-0.0547737255692482,
0.04012175276875496,
-0.004574461840093136,
0.0046472083777189255,
0.004754188004881144,
0.0571700744330883,
0.027061643078923225,
-0.027540914714336395,
-0.03639029338955879,
-0.026188688352704048,
0.025332847610116005,
0.007373056840151548,
-0.05189810320734978,
0.06675548106431961,
0.03190569579601288,
0.016877153888344765,
0.02690759301185608,
0.02250857837498188,
-0.029851680621504784,
0.029132775962352753,
0.003964676521718502,
0.03704073280096054,
0.02481934428215027,
0.06620774418115616,
0.07490307092666626,
0.002398489974439144,
-0.03127237409353256,
-0.006825319491326809,
-0.022046424448490143,
0.029868796467781067,
0.007950748316943645,
-0.01857171580195427,
-0.000018838498363038525,
-0.0324876643717289,
-0.0007905816892161965,
-0.023740986362099648,
-0.053575549274683,
-0.04648919776082039,
0.021344635635614395,
0.02267974615097046,
-0.06295555084943771,
-0.012255621142685413,
0.05354131758213043,
0.01792127825319767,
-0.018554599955677986,
-0.05234314128756523,
0.05604036897420883,
-0.04891978204250336,
-0.003254329552873969,
0.024802228435873985,
-0.020386096090078354,
0.037656936794519424,
0.03793080523610115,
-0.06131234019994736,
-0.022183358669281006,
-0.008502764627337456,
-0.012486698105931282,
-0.02368963696062565,
-0.06583116948604584,
0.020933832973241806,
-0.04518832266330719,
0.0011468249140307307,
-0.057135842740535736,
-0.04922788590192795,
-0.009996204636991024,
-0.0009269810980185866,
0.02279956266283989,
0.017647409811615944,
-0.012623632326722145,
-0.0036715513560920954,
-0.0235869362950325,
0.011545274406671524,
-0.0324876643717289,
-0.039505548775196075,
-0.013556497171521187,
0.014010092243552208,
0.01098041981458664,
0.014438011683523655,
-0.0019181502284482121,
0.0011618020944297314,
-0.01160518266260624,
-0.03775963559746742,
-0.04405861720442772,
-0.023056315258145332,
-0.04286044090986252,
-0.013624964281916618,
0.02202930860221386,
-0.05895022302865982,
0.05402058735489845,
0.02244011126458645,
-0.048132412135601044,
-0.0013265511952340603,
0.028619270771741867,
0.01095474511384964,
0.058915987610816956,
0.03779387101531029,
-0.00047873519361019135,
0.02661660686135292,
0.035329051315784454,
-0.009089015424251556,
0.008712445385754108,
0.05648540332913399,
0.03995058685541153,
0.007424407172948122,
0.07928496599197388,
-0.04381898045539856,
0.04751620814204216,
0.04556489363312721,
0.009756569750607014,
-0.02911565825343132,
-0.10400161147117615,
0.03447321429848671,
-0.07202745229005814,
-0.02666795812547207,
0.012546606361865997,
-0.034678615629673004,
0.03550022095441818,
0.052890878170728683,
0.007557062432169914,
0.022132009267807007,
0.05761511251330376,
0.021995073184370995,
0.03775963559746742,
0.06771402060985565,
0.03199128061532974,
-0.012640749104321003,
0.019153686240315437,
-0.01110023818910122,
-0.06740591675043106,
0.07627241313457489,
-0.04025868698954582,
-0.0019192199688404799,
0.003656574059277773,
-0.01616680808365345,
0.01173355896025896,
0.000020927949663018808,
0.00477986317127943,
-0.043305475264787674,
0.012050219811499119,
-0.027061643078923225,
0.01729651540517807,
-0.029560694471001625,
-0.017784344032406807,
0.047310806810855865,
0.005721286870539188,
-0.06309248507022858,
-0.009936296381056309,
0.012803358025848866,
-0.05141883343458176,
0.019923942163586617,
0.03101562149822712,
-0.014369544573128223,
0.02714722789824009,
-0.030399417504668236,
-0.07709401845932007,
0.05141883343458176,
-0.008900729939341545,
-0.05080262944102287,
-0.040874890983104706,
-0.024545475840568542,
-0.027712082490324974,
-0.024494124576449394,
0.00852844025939703,
0.04549642652273178,
0.08558394759893417,
0.021995073184370995,
-0.06593386828899384,
-0.029081424698233604,
-0.006269024219363928,
-0.0323849655687809,
0.03895781189203262,
-0.019923942163586617,
0.028773322701454163,
0.0016303741140291095,
-0.032898467034101486,
-0.015456460416316986,
-0.0008141172584146261,
-0.03257324919104576,
-0.03447321429848671,
0.01638076640665531,
-0.002691615140065551,
0.026685073971748352,
-0.0448802225291729,
-0.05590343475341797,
0.04991255700588226,
-0.07408146560192108,
0.00757845863699913,
-0.08181825280189514,
-0.007407290395349264,
-0.005160712171345949,
0.0032414919696748257,
-0.028739089146256447,
0.06066190078854561,
0.006808202713727951,
0.012555165216326714,
-0.026342738419771194,
-0.019564490765333176,
0.011151588521897793,
-0.047481972724199295,
0.043373942375183105,
-0.027181461453437805,
0.011331314221024513,
-0.01638076640665531,
0.03775963559746742,
-0.05696467310190201,
-0.007313148118555546,
-0.025555366650223732,
0.022371644154191017,
0.017099672928452492,
-0.009782245382666588,
-0.01911945268511772,
-0.03960825130343437,
0.0696653351187706,
0.01994105987250805,
0.0012955269776284695,
0.0030018568504601717,
-0.02572653442621231,
-0.05881328880786896,
-0.01205877773463726,
-0.0005498768296092749,
0.032539017498493195,
0.03500383347272873,
0.01857171580195427,
0.0065942429937422276,
0.022782446816563606,
-0.024271607398986816,
0.03372007608413696,
0.04138839617371559,
0.05720430985093117,
-0.03312098607420921,
0.0058496627025306225,
-0.009029106236994267,
0.01125428918749094,
-0.035038068890571594,
0.00851560290902853,
-0.024562591686844826,
-0.028003066778182983,
-0.004745629616081715,
0.011553832329809666,
-0.020677082240581512,
0.044743288308382034,
-0.03322368860244751,
0.006705502048134804,
-0.05946372449398041,
0.02006087638437748,
-0.0016464211512356997,
-0.0019224294228479266,
-0.007223285268992186,
0.019615840166807175,
-0.011322756297886372,
0.03392547741532326,
0.04535949230194092,
-0.015892939642071724,
0.018006863072514534,
0.04751620814204216,
0.0025418431032449007,
0.021567154675722122,
0.039094746112823486,
-0.03864971175789833,
-0.04131992906332016,
-0.03680109605193138,
0.01650058478116989,
0.03132372349500656,
0.020163577049970627,
-0.011237172409892082,
0.010424125008285046,
0.011459690518677235,
-0.008618303574621677,
-0.01732219010591507,
-0.002819990972056985,
0.046352263540029526,
0.04830357804894447,
-0.03995058685541153,
0.04121722653508186,
-0.00751854944974184,
0.04902248457074165,
-0.009730895049870014,
-0.028602154925465584,
-0.03421645984053612,
-0.02887602336704731,
0.01032998226583004,
0.005105082411319017,
-0.0006509728846140206,
-0.007822372950613499,
0.01834919862449169,
-0.016894271597266197,
-0.03252189978957176,
-0.06504379957914352,
-0.013333979062736034,
-0.04553065821528435,
0.020043760538101196,
0.010124580934643745,
-0.039984818547964096,
0.017715876922011375,
0.018195146694779396,
-0.029338177293539047,
0.1145455539226532,
0.020968066528439522,
-0.05388365313410759,
0.014985748566687107,
0.04399014636874199,
-0.055218763649463654,
0.009499818086624146,
0.013274069875478745,
-0.041593797504901886,
0.06702934950590134,
-0.025230146944522858,
0.008365830406546593,
-0.02244011126458645,
-0.006940857972949743,
-0.0048140971921384335,
0.057546645402908325,
-0.023176131770014763,
-0.004685720894485712,
0.01532808504998684,
0.05179540440440178,
0.038136206567287445,
0.039984818547964096,
0.019393322989344597,
0.021652737632393837,
-0.020711315795779228,
-0.04713963717222214,
-0.02149868756532669,
0.00500238174572587,
0.02685624174773693,
-0.06942569464445114,
0.009422792121767998,
0.05936102569103241,
0.07017883658409119,
-0.02137886919081211,
-0.04279197379946709,
-0.01453215442597866,
0.005571514833718538,
-0.021207701414823532,
-0.014446570537984371,
0.021755438297986984,
0.04751620814204216,
0.03089580498635769,
0.02469952590763569,
-0.025401314720511436,
0.07579313963651657,
-0.018777117133140564,
0.025281498208642006,
0.0273868627846241,
-0.018896935507655144,
0.028893141075968742,
-0.01401865016669035,
0.03841007500886917,
-0.009636752307415009,
-0.04655766487121582,
-0.038547009229660034,
0.07497153431177139,
-0.0242373738437891,
0.020095109939575195,
-0.05990876257419586,
-0.06528343260288239,
-0.03817043825984001,
-0.03844430670142174,
-0.01047547534108162,
0.013205602765083313,
-0.031648945063352585,
-0.024545475840568542,
0.036356061697006226,
-0.021053651347756386,
0.029680512845516205,
-0.00784376822412014,
-0.025589600205421448,
0.06685817986726761,
0.03580832481384277,
0.02495627850294113,
-0.027232810854911804,
0.008408622816205025,
0.014908723533153534,
0.013094344176352024,
-0.031888578087091446,
-0.00784376822412014,
0.011759234592318535,
-0.009131806902587414,
-0.02047167904675007,
0.04583876207470894,
0.011237172409892082,
-0.013556497171521187,
0.01575600355863571,
-0.03697226569056511,
-0.010158814489841461,
-0.06394832581281662,
0.033189453184604645,
-0.05655387043952942,
-0.06459876149892807,
0.08921270817518234,
0.01515691727399826,
-0.004869726486504078,
-0.021224819123744965,
-0.08147591352462769,
-0.019513139501214027,
-0.06648161262273788,
-0.020523030310869217,
-0.009876387193799019,
0.04173073172569275,
-0.01828073151409626,
-0.031049855053424835,
0.007403011433780193,
-0.0032757255248725414,
0.0685698539018631,
-0.04553065821528435,
0.025675183162093163,
-0.019632957875728607,
-0.012580839917063713,
0.041114527732133865,
0.017613176256418228,
0.035637155175209045,
0.02274821326136589,
-0.02356981858611107,
-0.0035966653376817703,
-0.04179919883608818,
0.0460783950984478,
-0.006791085936129093,
0.06103847175836563,
-0.04891978204250336,
0.010107464157044888,
0.023723870515823364,
-0.01595284789800644,
0.07531387358903885,
-0.038855113089084625,
-0.07483460009098053,
-0.04049832373857498,
-0.024442775174975395,
0.008678211830556393,
-0.026770658791065216,
-0.10427547991275787,
0.001324411598034203,
0.026993175968527794,
-0.026274271309375763,
-0.03875241056084633,
0.01899963617324829,
-0.04371627792716026,
-0.048851314932107925,
-0.06192854419350624,
-0.02202930860221386,
-0.0934576690196991,
-0.026685073971748352,
0.06018263101577759,
0.05689620599150658,
-0.0053917886689305305,
-0.0025974728632718325,
0.0038555567152798176,
0.014215493574738503,
0.08558394759893417,
-0.017519034445285797,
-0.010235839523375034,
0.00642735417932272,
0.06470146030187607,
-0.03710919991135597,
-0.019068103283643723,
-0.042312704026699066,
0.02459682524204254,
-0.034798432141542435,
-0.059874527156353,
0.02315901592373848,
-0.055047594010829926,
0.003740018466487527,
0.004296313971281052,
0.023381534963846207,
0.011143029667437077,
0.03202551230788231,
0.012760566547513008
]
|
30,004 | zeroconf._core | unregister_all_services | Unregister all registered services.
While it is not expected during normal operation,
this function may raise EventLoopBlocked if the underlying
call to `async_unregister_all_services` cannot be completed.
| def unregister_all_services(self) -> None:
"""Unregister all registered services.
While it is not expected during normal operation,
this function may raise EventLoopBlocked if the underlying
call to `async_unregister_all_services` cannot be completed.
"""
assert self.loop is not None
run_coro_with_timeout(
self.async_unregister_all_services(), self.loop, _UNREGISTER_TIME * _REGISTER_BROADCASTS
)
| (self) -> NoneType | [
-0.01640373095870018,
-0.013501049019396305,
-0.01674416847527027,
-0.009173904545605183,
-0.05461340397596359,
-0.00027212631539441645,
-0.07095441967248917,
-0.04927390441298485,
-0.011368833482265472,
0.034097541123628616,
-0.0028511672280728817,
-0.0007631855551153421,
0.0091156717389822,
-0.02798757702112198,
0.028937218710780144,
0.010016040876507759,
-0.037985701113939285,
-0.016296222805976868,
0.010123547166585922,
-0.11954744905233383,
-0.029636012390255928,
0.07661643624305725,
0.02782631665468216,
-0.07185030728578568,
-0.007547866087406874,
0.0075299483723938465,
-0.026984181255102158,
0.01296351570636034,
-0.022307639941573143,
0.033022474497556686,
-0.007637455128133297,
0.007283578626811504,
0.006835634354501963,
-0.014809047803282738,
0.008855864405632019,
-0.04930973798036575,
0.04009999707341194,
0.05676353722810745,
-0.04669374227523804,
0.03388252854347229,
0.041390080004930496,
-0.03992082178592682,
-0.02263016067445278,
0.008143632672727108,
0.03121277689933777,
0.006607182323932648,
0.01325915940105915,
0.05242743343114853,
0.006987935397773981,
0.04042251780629158,
-0.03262828290462494,
-0.000777183857280761,
-0.07446630299091339,
0.018204467371106148,
0.036910634487867355,
0.07568471133708954,
-0.01582140289247036,
0.03870240971446037,
0.0654715821146965,
-0.035817649215459824,
-0.0038411247078329325,
0.00007888024265412241,
-0.00550523865967989,
0.005966621916741133,
0.05507926270365715,
-0.007377646863460541,
0.025156566873192787,
0.003014666959643364,
-0.02352604828774929,
0.015848278999328613,
-0.05231992527842522,
0.010016040876507759,
-0.0012844810262322426,
-0.0006859151180833578,
0.032019078731536865,
0.008730439469218254,
0.03751983866095543,
-0.017111482098698616,
-0.03884575143456459,
-0.004387617111206055,
0.020605450496077538,
0.008506467565894127,
0.007901742123067379,
0.06568659096956253,
0.03459923714399338,
0.0008824507822282612,
0.027521714568138123,
-0.010177300311625004,
-0.04024333879351616,
-0.03827238455414772,
0.023741062730550766,
-0.03081858716905117,
0.029779355973005295,
-0.027718810364603996,
0.0006478398572653532,
-0.015866197645664215,
-0.06514906138181686,
0.018034247681498528,
-0.05626183748245239,
-0.06056210771203041,
0.03909660130739212,
-0.05002645030617714,
-0.01218409277498722,
0.005200636573135853,
0.053789183497428894,
0.006737086456269026,
-0.028507191687822342,
-0.033094145357608795,
-0.024457773193717003,
0.036408934742212296,
0.02732461877167225,
0.05665602907538414,
0.0480196587741375,
0.0014950149925425649,
-0.06801590323448181,
-0.006611661985516548,
-0.005688895937055349,
0.009469548240303993,
-0.014370061457157135,
0.001217289362102747,
-0.05697854980826378,
0.02958226017653942,
0.045690346509218216,
-0.048664696514606476,
0.007874866016209126,
0.062497228384017944,
-0.011422586627304554,
0.056190166622400284,
0.030030203983187675,
-0.02228972129523754,
-0.0004734214162454009,
0.02773672714829445,
0.015472005121409893,
-0.006248826626688242,
0.061744678765535355,
-0.023830650374293327,
0.023669391870498657,
-0.043611884117126465,
0.01920786313712597,
-0.0052678282372653484,
-0.039132438600063324,
0.004466007463634014,
-0.013411460444331169,
0.04092421755194664,
0.06815924495458603,
0.05042064189910889,
0.02675125002861023,
0.021895531564950943,
-0.053860854357481,
-0.05317997932434082,
-0.022433064877986908,
0.016108086332678795,
-0.012479735538363457,
0.022970598191022873,
-0.11582054942846298,
0.028095083311200142,
0.030711079016327858,
0.02375897951424122,
-0.029851026833057404,
-0.02832801453769207,
-0.030245216563344002,
0.044436100870370865,
-0.06701251119375229,
-0.06095629557967186,
-0.05787443742156029,
-0.039132438600063324,
0.016099127009510994,
0.03526219725608826,
0.04561867564916611,
0.03596099093556404,
-0.05117318779230118,
0.014423815533518791,
-0.03347041830420494,
-0.003467090893536806,
0.01566910184919834,
0.01936912350356579,
-0.005330540239810944,
-0.01110006682574749,
-0.0464070588350296,
0.05339499190449715,
-0.0173892080783844,
-0.03526219725608826,
-0.04192761331796646,
-0.0969710424542427,
-0.0032655159011483192,
-0.014352143742144108,
-0.042214296758174896,
0.03171447664499283,
-0.016117045655846596,
-0.044686950743198395,
-0.00014894157357048243,
0.012031790800392628,
0.034240882843732834,
0.0314457081258297,
0.06027542054653168,
0.031589049845933914,
-0.0009905174374580383,
0.020157504826784134,
-0.00492739025503397,
-0.081203393638134,
-0.02053377963602543,
0.03873824700713158,
0.013205406256020069,
-0.023543966934084892,
-0.01623351126909256,
-0.02162676304578781,
0.019351204857230186,
-0.04920223355293274,
0.024242760613560677,
-0.0653999075293541,
0.04217845946550369,
0.0009602811769582331,
-0.022648077458143234,
0.010132506489753723,
0.027611304074525833,
0.05027730017900467,
0.05077899619936943,
-0.007422441616654396,
-0.0015700457151979208,
0.0005176559207029641,
-0.012103462591767311,
-0.03481425344944,
0.014092336408793926,
-0.029116397723555565,
-0.040386684238910675,
0.07668811082839966,
-0.04131840541958809,
-0.027145441621541977,
0.008309371769428253,
0.0011556970421224833,
0.06425316631793976,
0.008757316507399082,
-0.033918362110853195,
-0.0060517312958836555,
0.011709270998835564,
-0.02393815852701664,
0.017595263198018074,
-0.04590535908937454,
0.05558096244931221,
0.022074708715081215,
-0.02798757702112198,
-0.03182198107242584,
-0.0323057621717453,
-0.018419479951262474,
0.05045647546648979,
0.032682035118341446,
-0.0026406331453472376,
0.013375625014305115,
0.03848739713430405,
0.016771044582128525,
-0.024314431473612785,
-0.022074708715081215,
0.018598658964037895,
-0.02974351868033409,
-0.021071312949061394,
-0.13803860545158386,
0.009639766998589039,
0.057516083121299744,
0.03662394732236862,
0.06242555379867554,
0.01247077714651823,
0.015274910256266594,
-0.04920223355293274,
0.08256514370441437,
0.003623871598392725,
0.011001518927514553,
0.06056210771203041,
0.027808399870991707,
-0.025299908593297005,
-0.01110006682574749,
0.08421357721090317,
-0.0811317190527916,
-0.007928619161248207,
-0.03271787241101265,
0.04490196332335472,
0.05970205366611481,
0.034921757876873016,
-0.014477568678557873,
-0.020318765193223953,
0.003131132572889328,
0.06529240310192108,
-0.0038008096162229776,
0.051639050245285034,
0.013402501121163368,
0.05102984607219696,
0.004577993415296078,
0.04981143772602081,
-0.04074503853917122,
0.002237483160570264,
-0.022719748318195343,
0.05601098760962486,
-0.051316529512405396,
-0.014764253050088882,
0.002313633682206273,
-0.0381290428340435,
-0.029385164380073547,
-0.04124673455953598,
-0.007498592138290405,
0.005635142792016268,
-0.049417246133089066,
-0.015373457223176956,
0.03716148063540459,
-0.013510008342564106,
0.022916844114661217,
0.01954830065369606,
-0.04160509258508682,
0.04938140884041786,
0.019404958933591843,
0.014056500978767872,
0.043683554977178574,
-0.032682035118341446,
-0.03427672013640404,
-0.010652122087776661,
-0.06496988236904144,
0.03379293903708458,
0.03762734308838844,
0.008224261924624443,
0.0005607706261798739,
-0.005093129817396402,
-0.010051876306533813,
-0.0016204394632950425,
0.02137591503560543,
0.007973412983119488,
-0.0030997763387858868,
0.017666934058070183,
0.05400419607758522,
-0.013447295874357224,
0.04192761331796646,
-0.022235969081521034,
-0.036408934742212296,
-0.004136768169701099,
-0.0885855183005333,
0.004887075163424015,
-0.01043710857629776,
-0.00569337559863925,
-0.032108668237924576,
0.041210900992155075,
0.01911827363073826,
-0.016672497615218163,
-0.013868363574147224,
-0.04325352609157562,
0.05705022066831589,
-0.02974351868033409,
0.040709201246500015,
-0.04870053380727768,
0.05167488753795624,
-0.003711220808327198,
0.026124127209186554,
-0.0015039738500490785,
0.004407774657011032,
0.045941196382045746,
0.020730875432491302,
0.013760857284069061,
0.05920035392045975,
0.027521714568138123,
-0.020569615066051483,
0.028937218710780144,
0.10743502527475357,
0.03089025802910328,
-0.020354600623250008,
-0.03827238455414772,
0.003561159363016486,
-0.01238118764013052,
-0.013357707299292088,
0.0053260610438883305,
-0.0786949023604393,
-0.008372084237635136,
-0.004548877011984587,
0.03538762032985687,
-0.04662207141518593,
0.011682393960654736,
0.0019821547903120518,
-0.022128460928797722,
-0.020444190129637718,
0.010024999268352985,
0.030621491372585297,
0.07260285317897797,
0.008273536339402199,
-0.012578283436596394,
0.04490196332335472,
-0.0036910632625222206,
-0.00521855428814888,
0.0654715821146965,
-0.02732461877167225,
0.062497228384017944,
-0.006284662522375584,
-0.008358645252883434,
0.011897407472133636,
-0.008573658764362335,
0.01399378851056099,
0.01631414145231247,
-0.022665996104478836,
-0.05013395473361015,
-0.008161550387740135,
0.01247077714651823,
-0.001936240354552865,
-0.020354600623250008,
0.012927680276334286,
-0.010329601354897022,
-0.03133820369839668,
-0.0043271444737911224,
0.0042420350946486,
0.013778774999082088,
-0.034921757876873016,
0.033506255596876144,
0.0070372093468904495,
0.005182718858122826,
-0.04859302565455437,
0.02675125002861023,
0.06016791611909866,
-0.02782631665468216,
-0.013357707299292088,
0.008067482151091099,
-0.05705022066831589,
-0.01392211765050888,
-0.011897407472133636,
-0.003628351027145982,
0.058698657900094986,
0.08485861867666245,
0.06307059526443481,
-0.0076329754665493965,
-0.017192112281918526,
-0.022504735738039017,
-0.008000290021300316,
0.0070237708278000355,
0.01590203307569027,
-0.010168341919779778,
0.004123329650610685,
-0.018204467371106148,
-0.04031500965356827,
0.008999206125736237,
0.03660602867603302,
-0.07389293611049652,
-0.0836402103304863,
0.03203699737787247,
0.005760567262768745,
-0.005025938153266907,
-0.004275631159543991,
-0.0027212633285671473,
-0.0035410018172115088,
-0.05647685006260872,
-0.020032081753015518,
0.0050393762066960335,
-0.03047814778983593,
0.039705805480480194,
-0.000687034975271672,
-0.007624016609042883,
0.010248972102999687,
0.05923619121313095,
-0.038057371973991394,
-0.0720653235912323,
-0.0447227843105793,
-0.019315369427204132,
-0.03123069554567337,
0.052463266998529434,
-0.009478507563471794,
0.037914030253887177,
0.01043710857629776,
-0.04422108829021454,
-0.037304822355508804,
-0.026231633499264717,
-0.03252077475190163,
-0.01641268841922283,
0.030836503952741623,
0.00927245244383812,
-0.01499718427658081,
0.049488916993141174,
-0.03390044346451759,
0.015767648816108704,
0.02270183153450489,
0.020157504826784134,
-0.009026083163917065,
0.08141840249300003,
-0.020999642089009285,
-0.03701813891530037,
-0.003704501548781991,
-0.03323748707771301,
0.022056790068745613,
-0.019691644236445427,
-0.01929745264351368,
0.006123402155935764,
-0.008752836845815182,
0.026231633499264717,
0.00920078158378601,
0.004013583529740572,
-0.018957015126943588,
0.04572618007659912,
-0.04769713804125786,
0.020444190129637718,
-0.05368167906999588,
-0.039705805480480194,
-0.044937800616025925,
-0.00986373983323574,
0.00464070588350296,
0.05042064189910889,
-0.07353457808494568,
-0.05185406282544136,
0.02087421715259552,
0.04404190927743912,
0.025228237733244896,
0.021716352552175522,
-0.022648077458143234,
-0.02442193776369095,
0.01830301433801651,
0.029188068583607674,
-0.05317997932434082,
0.02178802341222763,
-0.019817067310214043,
0.0009350843029096723,
-0.010687957517802715,
-0.03427672013640404,
-0.031248614192008972,
-0.013850445859134197,
-0.03363167867064476,
0.014943431131541729,
-0.060024574398994446,
-0.043289363384246826,
-0.029851026833057404,
0.039813313633203506,
0.018670329824090004,
-0.04479445889592171,
0.009702479466795921,
-0.019189946353435516,
0.1035647839307785,
-0.0008874901686795056,
-0.05228409171104431,
-0.014172966592013836,
0.009505383670330048,
-0.02286309003829956,
-0.019082438200712204,
-0.0012240085052326322,
0.019082438200712204,
-0.0331299789249897,
-0.04705209657549858,
-0.01881367154419422,
-0.06722752004861832,
0.0001874368026619777,
-0.11137694120407104,
-0.041139230132102966,
0.01804320700466633,
0.00005732290810556151,
0.051818229258060455,
0.032592445611953735,
-0.0022979555651545525,
-0.07962662726640701,
-0.002040387596935034,
-0.0314994640648365,
0.0008824507822282612,
0.03578181192278862,
0.015463046729564667,
-0.017756523564457893,
0.004752691835165024,
0.012363269925117493,
0.027450043708086014,
-0.03845156356692314,
-0.05224825441837311,
-0.03837989270687103,
0.001814175513572991,
-0.026894591748714447,
0.025299908593297005,
-0.015713894739747047,
0.055795975029468536,
0.023669391870498657,
0.02460111677646637,
-0.0025308867916464806,
0.0447227843105793,
-0.02286309003829956,
-0.01897493191063404,
0.017908824607729912,
0.05995289981365204,
-0.010840258561074734,
-0.06135048717260361,
0.01059836894273758,
-0.0803433358669281,
-0.03447381407022476,
0.07640142738819122,
0.0047213356010615826,
-0.05683520808815956,
-0.03304039314389229,
-0.027897987514734268,
-0.003988946322351694,
0.00940683577209711,
-0.06475486606359482,
-0.04647872969508171,
0.046012867242097855,
0.04135424271225929,
0.033918362110853195,
0.01589307375252247,
-0.0037022619508206844,
0.02583744376897812,
0.002544325077906251,
0.04167676344513893,
0.02865053527057171,
-0.04314602166414261,
-0.0497039295732975,
0.02633914165198803,
-0.00986373983323574,
0.019422875717282295,
-0.0488438755273819,
0.03621184080839157,
0.041139230132102966,
0.031678639352321625,
0.07073940336704254,
-0.04712376743555069,
0.0034043786581605673,
0.040960051119327545,
-0.018759919330477715,
-0.010661080479621887,
0.0020683840848505497,
0.016134964302182198,
-0.058770328760147095,
-0.002678708638995886,
0.08428525179624557,
0.017783399671316147,
0.018088001757860184,
0.0003594755253288895,
-0.02542533352971077,
0.035083018243312836,
-0.023812733590602875,
-0.022003037855029106,
0.0037358577828854322,
-0.017765481024980545,
-0.00936204195022583,
-0.018258221447467804,
-0.020157504826784134,
0.015866197645664215,
-0.03289704769849777,
0.05171072110533714,
-0.033183734863996506,
0.05368167906999588,
-0.029707683250308037,
-0.02773672714829445,
-0.03248494118452072,
0.007843509316444397,
-0.0013270358322188258,
-0.03708980977535248,
-0.035495128482580185,
0.006387689616531134,
0.009124631062150002,
-0.03223409131169319,
0.04959642142057419,
-0.003039303934201598,
0.00031412113457918167,
-0.009603931568562984,
-0.026213716715574265,
0.031678639352321625,
-0.05576014146208763,
-0.03837989270687103,
0.025640347972512245,
0.004801965784281492,
0.004289069212973118,
0.0414259135723114,
-0.01665457896888256,
0.04529615491628647,
-0.03372126817703247,
-0.019924575462937355,
-0.009827903471887112,
-0.02915223315358162,
0.010114588774740696,
-0.0023897842038422823,
-0.014110254123806953,
0.01756838522851467,
-0.015919949859380722,
0.06987935304641724,
-0.0009781989501789212,
-0.014970307238399982,
0.013554803095757961,
0.018921177834272385,
-0.0000949082532315515,
0.009442671202123165,
0.06281974911689758,
-0.0055321152321994305,
0.04905888810753822,
-0.01143154501914978,
-0.0405658595263958,
0.09130901843309402,
-0.0331120640039444,
-0.010051876306533813,
0.014719458296895027,
0.03827238455414772,
0.009142548777163029,
0.026787085458636284,
-0.032771624624729156,
-0.0012688030255958438,
0.0007111119921319187,
-0.018688246607780457,
-0.005160321481525898,
-0.015794524922966957,
-0.0023024349939078093,
-0.02046210877597332,
-0.027629220858216286,
0.008273536339402199,
0.04500947147607803,
0.020497944205999374,
0.015319704078137875,
0.08808381855487823,
0.0016954701859503984,
-0.091094009578228,
0.04207095503807068,
0.01729961857199669,
0.01688751019537449,
-0.042859338223934174,
-0.047589629888534546,
0.032592445611953735,
0.022504735738039017,
0.0836402103304863,
0.03287913277745247,
0.016358936205506325,
0.0178192351013422,
0.03680312633514404,
0.04500947147607803,
-0.03269995376467705,
0.020354600623250008,
0.042285967618227005,
-0.02119673788547516,
-0.0397774763405323,
0.006907305214554071,
-0.05257077515125275,
0.0770464688539505,
0.03596099093556404,
0.012632036581635475,
0.04009999707341194,
0.030746914446353912,
-0.013948993757367134,
-0.0038008096162229776,
0.040064163506031036,
0.011610723100602627,
0.06568659096956253,
0.025729935616254807,
0.08263681083917618,
0.00882450770586729,
-0.02286309003829956,
-0.01863449439406395,
0.09732939302921295,
-0.010007081553339958,
-0.0579819455742836,
0.020067917183041573,
0.03737649321556091,
-0.07991331070661545,
-0.00840791966766119,
0.01888534240424633,
-0.10456818342208862,
0.045941196382045746,
0.05009812116622925,
-0.02062336727976799,
-0.027718810364603996,
-0.0011982517316937447,
0.020659202709794044,
0.014405897818505764,
0.011771983467042446,
-0.01631414145231247,
0.006441442761570215,
-0.06919847428798676,
0.0015566074289381504,
0.021268408745527267,
0.00907087791711092,
-0.01536449883133173,
-0.01715627685189247,
-0.06063377857208252,
-0.00935308262705803,
0.015221156179904938,
0.012954557314515114,
-0.040637530386447906,
-0.03777068480849266,
0.05343082919716835,
-0.0022430825047194958,
0.021823858842253685,
-0.0310515183955431
]
|
30,005 | zeroconf._core | unregister_service | Unregister a service.
While it is not expected during normal operation,
this function may raise EventLoopBlocked if the underlying
call to `async_unregister_service` cannot be completed.
| def unregister_service(self, info: ServiceInfo) -> None:
"""Unregister a service.
While it is not expected during normal operation,
this function may raise EventLoopBlocked if the underlying
call to `async_unregister_service` cannot be completed.
"""
assert self.loop is not None
run_coro_with_timeout(
self.async_unregister_service(info), self.loop, _UNREGISTER_TIME * _REGISTER_BROADCASTS
)
| (self, info: zeroconf._services.info.ServiceInfo) -> NoneType | [
0.06249644234776497,
0.011302152648568153,
0.0034436245914548635,
-0.019890300929546356,
-0.015363863669335842,
-0.025745857506990433,
-0.007700521033257246,
0.003229850437492132,
-0.03550511598587036,
0.037456970661878586,
0.023868361487984657,
0.019667232409119606,
0.01596800796687603,
-0.08417129516601562,
0.02024349384009838,
0.050710972398519516,
-0.012222311459481716,
-0.017362188547849655,
-0.020373616367578506,
-0.09919125586748123,
-0.0059252651408314705,
0.07569468021392822,
0.035783953964710236,
-0.046138063073158264,
0.023756826296448708,
0.04059852287173271,
-0.013272593729197979,
0.03966906666755676,
-0.049521274864673615,
-0.03037453442811966,
-0.013244709931313992,
0.014192752540111542,
0.051119934767484665,
0.007737698964774609,
0.014787602238357067,
-0.035300638526678085,
-0.025875980034470558,
0.05509799346327782,
-0.13993848860263824,
0.021712029352784157,
0.03944600000977516,
-0.036936476826667786,
-0.014731835573911667,
0.021396014839410782,
0.03955753520131111,
-0.0008800761424936354,
0.0020738427992910147,
-0.020187726244330406,
-0.035709597170352936,
0.032586634159088135,
-0.032995592802762985,
-0.003115992294624448,
-0.08588148653507233,
0.0023956659715622663,
-0.01345848385244608,
0.05859273672103882,
-0.014527355320751667,
0.02821820229291916,
0.05691972374916077,
-0.004691415466368198,
0.011311447247862816,
0.008792628534138203,
-0.02150755003094673,
0.002867363626137376,
0.054242897778749466,
-0.002837156178429723,
0.031062331050634384,
0.011794762685894966,
-0.051900673657655716,
-0.023701060563325882,
-0.0059717376716434956,
0.045691926032304764,
0.011264974251389503,
0.010670124553143978,
0.047253407537937164,
0.0010049714474007487,
0.05714279040694237,
-0.06851930171251297,
0.03888832777738571,
-0.018998026847839355,
0.04030109569430351,
-0.012138660065829754,
0.06338872015476227,
-0.00895063579082489,
0.008667152374982834,
0.018914375454187393,
0.09465552866458893,
-0.04360995069146156,
-0.07595492899417877,
0.005353651009500027,
0.010279754176735878,
-0.01883072406053543,
0.0029370724223554134,
-0.027009913697838783,
0.013467778451740742,
-0.011106966994702816,
0.004944691900163889,
-0.007640106603503227,
-0.015280213207006454,
-0.06996924430131912,
0.05911323055624962,
-0.06022857502102852,
-0.020559508353471756,
0.0067664203234016895,
0.053127553313970566,
0.004510172177106142,
0.017390072345733643,
-0.011488042771816254,
-0.049409739673137665,
-0.012082893401384354,
0.07383577525615692,
0.07420755177736282,
-0.004856393672525883,
0.029463671147823334,
-0.03621150180697441,
0.017064763233065605,
-0.027939368039369583,
-0.024035662412643433,
-0.017808325588703156,
0.024388855323195457,
-0.08409693837165833,
-0.025336897000670433,
-0.011190618388354778,
-0.04104465991258621,
0.008374374359846115,
0.015140795148909092,
0.017027584835886955,
0.035895489156246185,
0.024556156247854233,
-0.030616192147135735,
-0.006060035899281502,
0.033404551446437836,
0.03498462215065956,
-0.007468157447874546,
0.023570936173200607,
-0.012789278291165829,
0.012036420404911041,
-0.015401042066514492,
-0.029909808188676834,
-0.0008295371080748737,
-0.032214853912591934,
-0.003478479105979204,
-0.019369807094335556,
-0.011859824880957603,
0.09130949527025223,
-0.005376887507736683,
-0.018895786255598068,
0.016088837757706642,
-0.0006337710074149072,
-0.026545187458395958,
-0.050227656960487366,
-0.002567614894360304,
0.04368430748581886,
0.04420480132102966,
-0.07502547651529312,
0.008248898200690746,
0.03386927768588066,
-0.005460538435727358,
0.013969684019684792,
-0.050339192152023315,
0.01462959498167038,
0.050971221178770065,
-0.02721439301967621,
-0.09510166198015213,
-0.023794004693627357,
-0.018300935626029968,
0.011627460829913616,
0.010586473159492016,
0.07037820667028427,
0.02977968379855156,
-0.03182448074221611,
0.017185591161251068,
-0.0008039771346375346,
-0.023254921659827232,
0.02068963088095188,
0.015047849155962467,
0.051863495260477066,
-0.013532840646803379,
-0.004842451773583889,
0.051937852054834366,
0.0015335979405790567,
-0.02959379367530346,
-0.04063570126891136,
-0.08342772722244263,
-0.024611923843622208,
-0.024909349158406258,
-0.018877197057008743,
0.024556156247854233,
0.019890300929546356,
-0.04182539880275726,
0.01860765554010868,
0.0013523546513170004,
0.03241933137178421,
0.018319524824619293,
0.07933813333511353,
0.021135767921805382,
0.0036736642941832542,
0.03249368816614151,
-0.008588149212300777,
-0.05810942128300667,
0.024853581562638283,
0.04305227845907211,
-0.02102423459291458,
0.05799788609147072,
-0.03182448074221611,
0.015986597165465355,
0.054131362587213516,
-0.005070168059319258,
0.026879791170358658,
-0.032475098967552185,
0.00187749566975981,
-0.009159762412309647,
0.012045715004205704,
0.03751273825764656,
0.049595627933740616,
0.03290264680981636,
0.01526162400841713,
0.01146015990525484,
0.010261164978146553,
0.024165786802768707,
-0.015382452867925167,
-0.035151924937963486,
0.04007802903652191,
-0.01693463884294033,
-0.0071986159309744835,
0.03018864430487156,
-0.04260614141821861,
-0.015428924933075905,
0.03472437709569931,
-0.017538784071803093,
0.04413044452667236,
-0.002418902236968279,
0.004117478150874376,
-0.017622435465455055,
-0.025745857506990433,
0.015475397929549217,
0.019741589203476906,
-0.07446780055761337,
0.020708220079541206,
0.0030137524008750916,
0.006213395390659571,
-0.0011943475110456347,
-0.008699683472514153,
0.007863175123929977,
0.033032771199941635,
0.0059252651408314705,
0.006585177034139633,
0.03768003731966019,
0.007960767485201359,
-0.008969224989414215,
-0.03145270049571991,
-0.037977464497089386,
0.02013195864856243,
0.007960767485201359,
0.011887707747519016,
-0.10714738070964813,
-0.01004739012569189,
-0.005836966913193464,
0.026099050417542458,
0.08617891371250153,
-0.03531922772526741,
0.0023886950220912695,
-0.017808325588703156,
0.05933630093932152,
0.001491772592999041,
-0.06104649603366852,
0.029091889038681984,
0.06680910289287567,
-0.009945150464773178,
-0.006482936907559633,
0.11510349810123444,
-0.07476522773504257,
0.025374075397849083,
-0.024686280637979507,
0.029798272997140884,
0.028181025758385658,
0.03007710911333561,
-0.026136226952075958,
0.01812434010207653,
0.004958633333444595,
0.037233900278806686,
-0.049261026084423065,
0.06078624725341797,
0.007802760694175959,
0.009489718824625015,
0.018431060016155243,
0.09324275702238083,
0.03505897894501686,
0.052532702684402466,
0.015140795148909092,
0.022976085543632507,
-0.05736586079001427,
-0.03918575122952461,
0.02803231216967106,
-0.048628997057676315,
-0.049112312495708466,
-0.024518979713320732,
0.037865929305553436,
0.01983453333377838,
-0.03929728642106056,
0.007867822423577309,
0.03427824005484581,
-0.050562262535095215,
0.011292858049273491,
-0.010354110039770603,
-0.03918575122952461,
0.06268233060836792,
0.03944600000977516,
-0.03903704136610031,
0.024853581562638283,
-0.022567126899957657,
-0.045134253799915314,
0.0026814728043973446,
-0.06521044671535492,
-0.036304447799921036,
0.011413686908781528,
-0.05558130890130997,
-0.007240441627800465,
0.004407932516187429,
0.02068963088095188,
0.010930371470749378,
-0.011088377796113491,
0.011395097710192204,
-0.009485071524977684,
0.010744480416178703,
0.026582365855574608,
-0.0012152602430433035,
0.06208748370409012,
0.02002042531967163,
-0.004679797682911158,
-0.004763448145240545,
-0.017548078671097755,
-0.0012872928055003285,
-0.06086060404777527,
0.00036161544267088175,
-0.03784734010696411,
0.03940882161259651,
-0.010205397382378578,
-0.025671500712633133,
-0.009880089201033115,
-0.06294257938861847,
0.006264515221118927,
-0.026619544252753258,
0.049484096467494965,
-0.01548469252884388,
0.01968582160770893,
-0.00780740799382329,
-0.021786386147141457,
0.03453848510980606,
0.0018077867571264505,
0.028162436559796333,
0.028273969888687134,
-0.01505714375525713,
0.03137834370136261,
0.00354586448520422,
-0.00963843148201704,
0.014090512879192829,
0.10893192887306213,
0.04479965195059776,
-0.02948226034641266,
-0.06993206590414047,
0.04067287594079971,
-0.004201129078865051,
-0.030021343380212784,
-0.02061527408659458,
-0.09160692244768143,
-0.028682930395007133,
0.01682310551404953,
0.03546793758869171,
-0.024500390514731407,
-0.024351676926016808,
-0.00040954037103801966,
0.016098132357001305,
0.012891517952084541,
0.006041446700692177,
0.06710653007030487,
0.04182539880275726,
-0.0018821429694071412,
-0.02213957905769348,
0.003729431424289942,
-0.016098132357001305,
0.028980355709791183,
0.050153300166130066,
-0.025950336828827858,
0.049075134098529816,
-0.025411253795027733,
-0.06316564977169037,
0.013820971362292767,
-0.016795221716165543,
0.014861959032714367,
0.019518520683050156,
-0.005604603793472052,
-0.028162436559796333,
-0.01983453333377838,
0.020968466997146606,
-0.023552346974611282,
-0.051975030452013016,
-0.04000367224216461,
-0.024202965199947357,
0.035189103335142136,
0.0051305824890732765,
0.02292031981050968,
-0.01905379258096218,
-0.03609996661543846,
0.052607059478759766,
0.03918575122952461,
0.01786409318447113,
-0.04216000437736511,
0.00003047953396162484,
-0.005190996918827295,
-0.028236791491508484,
-0.04089594632387161,
0.020187726244330406,
-0.03431541845202446,
-0.01423922460526228,
0.025931747630238533,
-0.02758617512881756,
0.02080116607248783,
0.02885023131966591,
0.01581929624080658,
-0.001466212677769363,
0.027790654450654984,
-0.049818698316812515,
-0.012556914240121841,
-0.015717055648565292,
0.044613759964704514,
-0.02948226034641266,
-0.02784642204642296,
-0.02076398767530918,
-0.024128608405590057,
0.012687037698924541,
0.025987515226006508,
0.0012756746727973223,
-0.06067471206188202,
0.04476247355341911,
0.046286776661872864,
-0.017278537154197693,
0.00025589013239368796,
0.005153818521648645,
-0.05985679477453232,
-0.05937347933650017,
-0.008193131536245346,
0.01726924255490303,
0.003629515180364251,
-0.006645591463893652,
-0.013309772126376629,
0.00034535001032054424,
-0.02959379367530346,
0.05874145030975342,
-0.08283288031816483,
0.009796437807381153,
-0.031694360077381134,
-0.009099348448216915,
-0.012501147575676441,
0.047625187784433365,
-0.06078624725341797,
0.0036086025647819042,
0.012250195257365704,
-0.035783953964710236,
-0.03833065554499626,
-0.08818653225898743,
-0.023794004693627357,
0.013532840646803379,
0.011683228425681591,
0.048443108797073364,
0.026061872020363808,
0.11963923275470734,
-0.023868361487984657,
-0.013040230609476566,
-0.019109560176730156,
0.018468238413333893,
-0.000051047318265773356,
0.07651259750127792,
0.045431677252054214,
-0.031620003283023834,
0.022046633064746857,
-0.013997566886246204,
0.050748150795698166,
0.008583501912653446,
-0.01563340425491333,
0.04234589263796806,
0.044613759964704514,
0.005242116749286652,
0.004008267540484667,
-0.012779983691871166,
0.02102423459291458,
0.01509432215243578,
-0.02851562760770321,
0.03323725238442421,
-0.032103318721055984,
-0.027307339012622833,
-0.03435259684920311,
-0.009536190889775753,
-0.03208472952246666,
0.08945059031248093,
-0.06851930171251297,
-0.054763391613960266,
0.03970624506473541,
0.054763391613960266,
0.016692981123924255,
-0.0003261800156906247,
-0.020001836121082306,
-0.01431358139961958,
-0.017297126352787018,
0.023552346974611282,
-0.06580529361963272,
-0.007918942719697952,
0.026377884671092033,
0.006394639145582914,
0.023161977529525757,
-0.02024349384009838,
-0.0026164110749959946,
0.003998972941190004,
-0.008811217732727528,
0.05792353302240372,
-0.04149079695343971,
-0.06171569973230362,
-0.06223619356751442,
0.031582824885845184,
-0.009155115112662315,
-0.02862716279923916,
-0.01800351031124592,
0.023385046049952507,
0.08721990138292313,
-0.0021923480089753866,
-0.07866892963647842,
0.017984921112656593,
0.02992839738726616,
-0.02091269940137863,
-0.018217286095023155,
0.00527464784681797,
0.002762800082564354,
-0.032363563776016235,
-0.08744297176599503,
0.016544269397854805,
-0.09361454099416733,
-0.02046656236052513,
-0.06710653007030487,
-0.048591818660497665,
-0.02158190682530403,
-0.0020517681259661913,
0.04316381365060806,
0.02128448151051998,
-0.027140038087964058,
-0.08573277294635773,
-0.005311825778335333,
-0.030802084133028984,
0.021935097873210907,
0.018477533012628555,
0.01983453333377838,
-0.037345435470342636,
-0.007389153819531202,
0.034780144691467285,
0.014360054396092892,
-0.03617432340979576,
0.03955753520131111,
-0.046918805688619614,
-0.046732913702726364,
-0.001361649134196341,
0.025727268308401108,
-0.05543259531259537,
0.07242300361394882,
0.04182539880275726,
0.05565566569566727,
0.013607196509838104,
0.050302013754844666,
-0.01436934806406498,
-0.048963602632284164,
0.011432276107370853,
0.012687037698924541,
0.0035481881350278854,
-0.06803598254919052,
0.043907374143600464,
-0.045580390840768814,
-0.05889016389846802,
0.05903887376189232,
0.04056134447455406,
-0.05744021758437157,
-0.014527355320751667,
0.009187646210193634,
-0.028422683477401733,
0.026136226952075958,
-0.03959471359848976,
0.008904162794351578,
-0.0065712351351976395,
-0.01064224075525999,
0.00672924192622304,
-0.01857047714293003,
-0.03602560982108116,
0.018505414947867393,
-0.014257813803851604,
0.004047769121825695,
0.02054091915488243,
-0.046509843319654465,
-0.04082158952951431,
0.04301510006189346,
0.022511359304189682,
0.004449757747352123,
-0.002751181833446026,
0.055804379284381866,
0.03825629875063896,
0.00286503997631371,
0.05796071141958237,
-0.022883141413331032,
0.008880926296114922,
0.05606462433934212,
-0.050934042781591415,
-0.06138109788298607,
-0.04189975559711456,
-0.0036086025647819042,
-0.051937852054834366,
0.0043544890359044075,
0.03096938505768776,
0.049186669290065765,
0.04160233214497566,
0.019025908783078194,
-0.0012884546304121614,
0.002032017335295677,
-0.01051211729645729,
-0.020001836121082306,
-0.003050930565223098,
0.018365997821092606,
0.006046094000339508,
0.0027906836476176977,
-0.01427640300244093,
0.02117294631898403,
-0.012519736774265766,
0.01949993148446083,
-0.050450727343559265,
0.008281429298222065,
-0.07703309506177902,
0.002044797409325838,
-0.02992839738726616,
0.032995592802762985,
-0.04193693399429321,
-0.03777298331260681,
-0.036378804594278336,
0.009935855865478516,
-0.025485610589385033,
-0.008439436554908752,
0.033627621829509735,
-0.03996649384498596,
-0.0021714353933930397,
0.028013722971081734,
-0.037940286099910736,
0.013542135246098042,
-0.0026605601888149977,
-0.051900673657655716,
-0.0015277889324352145,
0.016813810914754868,
0.001668368699029088,
0.036750584840774536,
-0.011051200330257416,
0.010967548936605453,
0.02896176651120186,
-0.06022857502102852,
0.03167577087879181,
0.001551025197841227,
-0.024035662412643433,
0.03810758516192436,
-0.035189103335142136,
-0.001538245240226388,
-0.06350024789571762,
0.053536511957645416,
0.0054791271686553955,
-0.016962522640824318,
-0.00015902364975772798,
0.0006506173522211611,
-0.03539358451962471,
-0.003701547859236598,
0.052272453904151917,
0.026247762143611908,
0.0011780820786952972,
-0.020708220079541206,
-0.027121448889374733,
0.03649033606052399,
-0.023459402844309807,
-0.04264331981539726,
0.03747555986046791,
0.047662366181612015,
0.028422683477401733,
-0.014601712115108967,
0.0008562589064240456,
0.021228713914752007,
0.03301418200135231,
0.023961307480931282,
0.024742048233747482,
-0.05784917622804642,
-0.041713863611221313,
-0.03379492461681366,
-0.03412952646613121,
0.036824941635131836,
0.0010415685828775167,
-0.024091430008411407,
0.006259868387132883,
0.03712236508727074,
-0.00546983303502202,
-0.07896635681390762,
0.044427867978811264,
0.013820971362292767,
0.015586932189762592,
-0.054205719381570816,
-0.0005637715221382678,
-0.0033065301831811666,
0.015837885439395905,
0.05959654599428177,
0.028794463723897934,
-0.00748209934681654,
0.03569100797176361,
0.050004590302705765,
0.03955753520131111,
-0.024537567049264908,
0.03360903263092041,
0.045171432197093964,
-0.03673199564218521,
0.02821820229291916,
-0.06822187453508377,
-0.03308853879570961,
0.03989213705062866,
0.025039473548531532,
-0.005358298309147358,
0.00491216080263257,
0.04327534884214401,
-0.016841694712638855,
-0.01931403949856758,
0.03561665117740631,
0.024630513042211533,
0.021488960832357407,
0.006873307283967733,
0.07956120371818542,
-0.03479873389005661,
-0.050302013754844666,
-0.055804379284381866,
0.11510349810123444,
-0.026768255978822708,
-0.03509615734219551,
-0.006129744928330183,
0.045989349484443665,
-0.02091269940137863,
0.008234956301748753,
-0.016758043318986893,
-0.011255679652094841,
0.04189975559711456,
0.033739157021045685,
0.021916508674621582,
-0.008351137861609459,
-0.015837885439395905,
-0.0024351677857339382,
0.021749207749962807,
-0.0024607277009636164,
0.02855280600488186,
0.0007795789861120284,
-0.07502547651529312,
0.04018956050276756,
-0.01998324692249298,
-0.024611923843622208,
0.00037613813765347004,
0.0006552645936608315,
-0.04071005433797836,
0.001434843521565199,
0.004301045089960098,
0.05509799346327782,
-0.013021641410887241,
-0.06978335976600647,
-0.01689746230840683,
-0.022120989859104156,
-0.02691696770489216,
-0.050264835357666016
]
|
30,006 | zeroconf._core | update_service | Registers service information to the network with a default TTL.
Zeroconf will then respond to requests for information for that
service.
While it is not expected during normal operation,
this function may raise EventLoopBlocked if the underlying
call to `async_update_service` cannot be completed.
| def update_service(self, info: ServiceInfo) -> None:
"""Registers service information to the network with a default TTL.
Zeroconf will then respond to requests for information for that
service.
While it is not expected during normal operation,
this function may raise EventLoopBlocked if the underlying
call to `async_update_service` cannot be completed.
"""
assert self.loop is not None
run_coro_with_timeout(
await_awaitable(self.async_update_service(info)), self.loop, _REGISTER_TIME * _REGISTER_BROADCASTS
)
| (self, info: zeroconf._services.info.ServiceInfo) -> NoneType | [
0.04431315138936043,
0.004741325043141842,
-0.023961927741765976,
-0.02839324250817299,
0.020861830562353134,
-0.015901673585176468,
-0.03328045457601547,
0.019384725019335747,
-0.03424695506691933,
0.019129423424601555,
0.009149845689535141,
-0.022211283445358276,
0.049090947955846786,
-0.06192899867892265,
0.023469557985663414,
0.04281781241297722,
0.002534785307943821,
-0.024399587884545326,
-0.048215627670288086,
-0.09985959529876709,
0.01570107974112034,
0.0010274770902469754,
0.05985010787844658,
-0.011278882622718811,
0.04792385548353195,
0.016184329986572266,
-0.00373835233040154,
0.023068370297551155,
-0.009318526834249496,
-0.027590863406658173,
-0.01881941221654415,
0.015801377594470978,
0.03306162357330322,
0.03541405126452446,
0.033572226762771606,
-0.046027325093746185,
-0.00710286945104599,
0.014752814546227455,
-0.10533035546541214,
0.03368164226412773,
0.07556942850351334,
-0.027189675718545914,
-0.016886411234736443,
0.005885625723749399,
0.024819012731313705,
0.028502658009529114,
0.016448751091957092,
0.06714445352554321,
-0.013959554955363274,
-0.0015261139487847686,
-0.05963128060102463,
-0.03431989997625351,
-0.0490180067718029,
0.0141145596280694,
-0.009920310229063034,
0.05047687515616417,
0.010440032929182053,
0.05700531601905823,
0.018855884671211243,
0.00023293468984775245,
0.026514947414398193,
-0.02210186794400215,
-0.02051534876227379,
-0.0023934573400765657,
0.028776194900274277,
-0.00780495023354888,
-0.022120105102658272,
0.002527946839109063,
0.006268578581511974,
-0.022995425388216972,
0.06969747692346573,
0.030253300443291664,
0.0003832381044048816,
-0.007362730801105499,
0.05025804415345192,
0.044933173805475235,
0.017415251582860947,
-0.05113336443901062,
-0.005457082763314247,
0.002013923367485404,
0.02403487078845501,
-0.019348252564668655,
0.08702155202627182,
-0.010257674381136894,
0.04037420451641083,
0.06160075217485428,
0.06944217532873154,
-0.03960829973220825,
-0.08592739701271057,
0.005023980978876352,
0.006181958131492138,
0.008064811117947102,
-0.02033299021422863,
-0.034009888768196106,
0.04041067883372307,
-0.023888982832431793,
0.014178385026752949,
-0.0840308666229248,
-0.004768678918480873,
0.013603955507278442,
-0.0050513348542153835,
-0.02642376907169819,
0.03056330978870392,
-0.030016234144568443,
0.06243960186839104,
-0.07578825950622559,
0.002331911353394389,
0.006510203704237938,
-0.0333898700773716,
-0.024089578539133072,
0.07232344150543213,
0.0111603494733572,
0.01244597788900137,
0.003585627069696784,
-0.020497113466262817,
0.011142113246023655,
0.01453398447483778,
0.002890384756028652,
0.004832504317164421,
0.020715942606329918,
-0.08607328683137894,
-0.025749042630195618,
0.0030134767293930054,
-0.03483050316572189,
-0.01408720575273037,
-0.0002484636497683823,
-0.01964002661406994,
0.08104018867015839,
0.0455167181789875,
-0.037310581654310226,
0.010339736007153988,
0.0011380319483578205,
0.052373405545949936,
0.03235042467713356,
0.03716469183564186,
-0.011980963870882988,
0.015947263687849045,
-0.017178185284137726,
-0.06856685131788254,
0.016220802441239357,
0.002143853809684515,
-0.018618818372488022,
-0.022648945450782776,
-0.03473932296037674,
0.07564236968755722,
-0.01190801989287138,
-0.06907745450735092,
0.029651517048478127,
-0.026296118274331093,
-0.014096323400735855,
-0.018053507432341576,
0.012309209443628788,
0.00693874666467309,
0.05131572484970093,
-0.05813593789935112,
-0.035523466765880585,
0.034228719770908356,
-0.03909769654273987,
0.021354198455810547,
-0.05963128060102463,
-0.06269490718841553,
0.017834676429629326,
0.0073855253867805,
-0.07994603365659714,
-0.028010288253426552,
-0.0024755187332630157,
-0.07210461050271988,
0.011315354146063328,
0.02992505393922329,
0.05572880432009697,
0.019348252564668655,
-0.01519047562032938,
-0.04176013171672821,
-0.027226146310567856,
0.08242610841989517,
-0.01925707422196865,
0.045589663088321686,
-0.06010541319847107,
0.06648796796798706,
0.04610026627779007,
-0.0023911779280751944,
0.0012081260792911053,
-0.023706624284386635,
-0.03229571878910065,
-0.021372433751821518,
0.0020162027794867754,
-0.011980963870882988,
0.0582088828086853,
0.016704052686691284,
0.015983736142516136,
0.06889510154724121,
0.00857541523873806,
0.03437460586428642,
-0.013129822909832,
0.050367459654808044,
0.005785328336060047,
-0.007832304574549198,
-0.015919910743832588,
0.012491567991673946,
0.0014383539091795683,
0.0036699678748846054,
0.008643800392746925,
0.023779569193720818,
0.046866174787282944,
0.04985685646533966,
0.0011232153046876192,
0.05029451474547386,
0.0029177383985370398,
-0.009391470812261105,
-0.017916737124323845,
-0.004584040492773056,
0.0016947956755757332,
-0.014169267378747463,
0.006770065054297447,
0.007946277968585491,
0.02839324250817299,
0.03249631077051163,
0.010786514729261398,
-0.009354999288916588,
0.010339736007153988,
-0.0029086205177009106,
0.004321900196373463,
0.013704252429306507,
-0.047522664070129395,
-0.0016104548703879118,
-0.014871347695589066,
-0.03103744238615036,
-0.009528239257633686,
-0.011880666017532349,
-0.028320299461483955,
0.0372011661529541,
0.024107813835144043,
-0.03483050316572189,
0.0014748255489394069,
0.006172840483486652,
-0.040738921612501144,
0.044896699488162994,
-0.042489565908908844,
0.026405533775687218,
-0.018728233873844147,
0.021098896861076355,
0.0472673624753952,
0.000767046061810106,
-0.0256031546741724,
-0.021773623302578926,
-0.037018805742263794,
-0.036398787051439285,
0.02095300890505314,
-0.01725112833082676,
0.014616046100854874,
-0.012327444739639759,
-0.038112957030534744,
-0.027007317170500755,
0.04135894402861595,
-0.023779569193720818,
-0.08330143243074417,
-0.0026077288202941418,
0.023724861443042755,
0.03504933416843414,
0.061272505670785904,
-0.05047687515616417,
0.058464184403419495,
-0.05525467172265053,
0.0420154333114624,
-0.025749042630195618,
-0.018709998577833176,
0.022028924897313118,
0.012755988165736198,
-0.013230119831860065,
0.02337837964296341,
0.08826158940792084,
0.000024148273951141164,
0.03490344434976578,
-0.023980163037776947,
0.010230320505797863,
-0.016239037737250328,
0.046647343784570694,
-0.02686142921447754,
-0.04150483012199402,
-0.02930503524839878,
0.03193100169301033,
-0.0336998775601387,
0.026059051975607872,
0.022977190092206,
-0.04314605891704559,
-0.003125171409919858,
0.03204041346907616,
0.12414976954460144,
-0.00747670466080308,
-0.023031897842884064,
-0.012555393390357494,
0.005853712558746338,
-0.0033895913511514664,
-0.0032687787897884846,
-0.06969747692346573,
-0.018928827717900276,
-0.06528440117835999,
0.06911393254995346,
0.026952609419822693,
-0.04657439887523651,
-0.006145486608147621,
0.015090178698301315,
-0.09657714515924454,
-0.011360944248735905,
0.0385141484439373,
-0.04281781241297722,
0.012783341109752655,
0.053686387836933136,
-0.03453872725367546,
0.012874521315097809,
-0.003077302360907197,
-0.05923008918762207,
-0.023068370297551155,
-0.02248482219874859,
-0.01736966148018837,
0.004910006653517485,
-0.04135894402861595,
-0.006095338147133589,
0.0380764864385128,
0.03698233515024185,
-0.04409432038664818,
0.02646023966372013,
-0.016248155385255814,
-0.010649745352566242,
-0.03829531744122505,
0.0175702553242445,
0.05379580333828926,
0.042927227914333344,
0.004827945493161678,
0.0032117918599396944,
-0.008880866691470146,
-0.013603955507278442,
0.014196621254086494,
-0.033116329461336136,
-0.033371634781360626,
-0.03036271594464779,
0.0005254208808764815,
-0.021700680255889893,
-0.03866003453731537,
0.013950437307357788,
-0.0059038614854216576,
0.05153455585241318,
-0.07812244445085526,
0.021955981850624084,
0.006191076245158911,
-0.006578588392585516,
0.03524992614984512,
-0.01858234591782093,
0.04982038214802742,
-0.003125171409919858,
-0.03537757694721222,
0.008073929697275162,
0.008342908695340157,
0.06597735732793808,
0.04982038214802742,
-0.038112957030534744,
0.03402812406420708,
0.025894928723573685,
0.03634408116340637,
-0.07239638268947601,
-0.09971371293067932,
0.04478728398680687,
0.015464013442397118,
-0.0011289140675216913,
-0.029414450749754906,
-0.02622317336499691,
0.015263419598340988,
0.058646541088819504,
0.04938272386789322,
-0.06331492215394974,
-0.0236336812376976,
-0.04146835580468178,
0.02664259821176529,
0.025493739172816277,
0.011935373768210411,
0.010075315833091736,
-0.0347028523683548,
0.017214655876159668,
-0.026843193918466568,
0.003362237708643079,
0.0004709982022177428,
0.022594237700104713,
0.007080074865370989,
-0.03162099048495293,
0.07305287569761276,
-0.027682043612003326,
-0.03101920709013939,
0.00837482139468193,
0.014315154403448105,
-0.012518921867012978,
0.034629907459020615,
0.03647173196077347,
-0.03380929306149483,
0.04103069752454758,
0.006824772339314222,
0.01289275661110878,
0.021992454305291176,
-0.054744068533182144,
-0.02511078678071499,
0.012938346713781357,
0.04394843429327011,
-0.033316925168037415,
0.05051334574818611,
0.012272736988961697,
0.015436659567058086,
0.0017061930848285556,
0.032058652490377426,
-0.04482375830411911,
0.014369862154126167,
0.0564582385122776,
-0.020898301154375076,
-0.0137863140553236,
-0.02580374851822853,
0.029213856905698776,
-0.06532087177038193,
0.012218030169606209,
-0.04759560897946358,
-0.014825758524239063,
-0.02775498665869236,
0.029687989503145218,
0.011433887295424938,
0.02182833105325699,
-0.03083684854209423,
0.0949723869562149,
0.027408504858613014,
0.022831303998827934,
0.007590678986161947,
-0.03709175065159798,
-0.012938346713781357,
0.00220312038436532,
0.021354198455810547,
0.02407134138047695,
-0.0182267464697361,
-0.019822385162115097,
0.06163722276687622,
0.0031297304667532444,
0.017579374834895134,
-0.049747440963983536,
-0.03233218938112259,
-0.04343783110380173,
-0.04059303551912308,
-0.029633281752467155,
-0.0005983643350191414,
-0.0005741448258049786,
-0.04052009433507919,
-0.001566004939377308,
-0.003640334587544203,
-0.06933275610208511,
0.04150483012199402,
-0.05204515904188156,
-0.0010679378174245358,
-0.042526036500930786,
-0.005142514128237963,
0.039024751633405685,
0.006551234517246485,
-0.05773475021123886,
0.02186480164527893,
0.015783142298460007,
0.0004536171618383378,
-0.06532087177038193,
-0.08694860339164734,
-0.05230046063661575,
0.004335577134042978,
0.059959523379802704,
0.031146857887506485,
-0.0011978683760389686,
0.08527090400457382,
-0.012920110486447811,
-0.037018805742263794,
-0.03782118484377861,
0.011479477398097515,
-0.04303664341568947,
0.034611672163009644,
0.0076180328615009785,
-0.03284279257059097,
-0.002808323362842202,
-0.03236865997314453,
0.026824958622455597,
-0.027864402160048485,
-0.03539581596851349,
0.08082135766744614,
0.0673997551202774,
-0.011224174872040749,
0.018892357125878334,
0.014798404648900032,
-0.025730805471539497,
0.015783142298460007,
-0.01629374548792839,
0.02773675136268139,
-0.04544377699494362,
-0.048215627670288086,
-0.06842096894979477,
-0.0022783433087170124,
-0.03738352283835411,
0.017141712829470634,
-0.01964002661406994,
-0.03917063772678375,
0.040775395929813385,
0.03364517167210579,
0.016147859394550323,
-0.022776596248149872,
0.0025233877822756767,
-0.0031137738842517138,
0.016804350540041924,
-0.017734378576278687,
-0.03080037608742714,
-0.08133196085691452,
0.028064996004104614,
0.037930600345134735,
0.07498587667942047,
0.01420573890209198,
-0.008753214962780476,
-0.01244597788900137,
-0.028247354552149773,
0.08381203562021255,
0.0018988094525411725,
-0.04132246971130371,
-0.042307209223508835,
-0.04223426431417465,
-0.05310283973813057,
-0.019785914570093155,
0.0025644185952842236,
0.05612999200820923,
0.10496564209461212,
-0.007654504384845495,
-0.017862029373645782,
0.021791858598589897,
-0.05182632803916931,
0.014278682880103588,
-0.0029587692115455866,
0.008725861087441444,
-0.023287199437618256,
-0.014679871499538422,
-0.05966775119304657,
0.03284279257059097,
-0.05926656350493431,
0.02357897348701954,
-0.08585445582866669,
-0.12597335875034332,
-0.06203841418027878,
0.021955981850624084,
0.05044040456414223,
0.01788938418030739,
-0.06488320976495743,
-0.06236666068434715,
-0.02407134138047695,
0.0015614459989592433,
-0.02863030880689621,
0.020260047167539597,
-0.02405310608446598,
-0.05510878562927246,
-0.004973832052201033,
0.047777965664863586,
0.054707594215869904,
-0.05357697233557701,
-0.00287214876152575,
-0.0014189782086759806,
-0.08133196085691452,
-0.002216797322034836,
0.0320768877863884,
-0.040775395929813385,
0.007572443224489689,
0.028010288253426552,
0.07287051528692245,
0.012218030169606209,
0.03477579355239868,
-0.02317778393626213,
-0.0037451907992362976,
-0.014078088104724884,
0.03979065641760826,
0.015409305691719055,
-0.00336451712064445,
0.03825884684920311,
-0.011060052551329136,
-0.05529114231467247,
0.004764119628816843,
0.032259244471788406,
-0.009683244861662388,
0.028046760708093643,
-0.008434087969362736,
-0.02976093254983425,
-0.006264019757509232,
-0.023214256390929222,
0.0012366196606308222,
0.016029326245188713,
-0.02160950005054474,
-0.009382352232933044,
0.04672028496861458,
-0.00022467155940830708,
0.04000948742032051,
-0.06189252808690071,
0.0009568130481056869,
0.012318327091634274,
-0.030016234144568443,
-0.06057954579591751,
0.042088378220796585,
0.01768878847360611,
-0.045954380184412,
0.07936248183250427,
0.047777965664863586,
-0.0036699678748846054,
0.044677868485450745,
0.03351752087473869,
-0.02361544594168663,
-0.0048188273794949055,
0.0085343848913908,
-0.04748619347810745,
0.011734778992831707,
-0.03634408116340637,
-0.034174010157585144,
-0.01178948674350977,
-0.01713259518146515,
0.025621389970183372,
0.03129274398088455,
0.016786113381385803,
0.019184129312634468,
-0.021463613957166672,
0.019548848271369934,
0.0446413978934288,
-0.03216806799173355,
0.009956782683730125,
0.013257473707199097,
-0.030727433040738106,
-0.008853512816131115,
-0.044021379202604294,
0.003182158572599292,
0.017479076981544495,
-0.007358171511441469,
-0.05842771381139755,
-0.04748619347810745,
-0.0154275419190526,
0.01828145422041416,
-0.042963698506355286,
0.025420796126127243,
0.005516349337995052,
-0.02184656634926796,
-0.046866174787282944,
0.04372960329055786,
-0.006879480089992285,
-0.019147658720612526,
0.05525467172265053,
-0.012610101141035557,
0.0641537755727768,
-0.007121105212718248,
0.012637455016374588,
0.05044040456414223,
-0.014388097450137138,
-0.06969747692346573,
0.01629374548792839,
0.03555993735790253,
-0.05335814133286476,
-0.005548262037336826,
-0.014606928452849388,
0.07341759651899338,
0.057151202112436295,
-0.020278282463550568,
0.015801377594470978,
-0.038587089627981186,
-0.0368911549448967,
-0.0027353798504918814,
-0.051242779940366745,
0.022193048149347305,
-0.04850739985704422,
0.005302077624946833,
-0.008949250914156437,
-0.01387749332934618,
0.005689589772373438,
-0.005338549613952637,
0.0005339689087122679,
0.03402812406420708,
0.06685268133878708,
0.03920711204409599,
-0.016457868739962578,
0.024326644837856293,
0.01684993878006935,
-0.016366688534617424,
-0.013485422357916832,
-0.01679523102939129,
0.05882890149950981,
0.04544377699494362,
0.05879243090748787,
-0.04478728398680687,
0.031821586191654205,
0.024855485185980797,
0.012090378440916538,
0.008502472192049026,
0.026332588866353035,
-0.057844165712594986,
-0.007855098694562912,
-0.010631509125232697,
-0.03101920709013939,
0.0075496481731534,
-0.008279082365334034,
-0.009993254207074642,
-0.0020150630734860897,
-0.015126650221645832,
-0.037274107336997986,
-0.05944892019033432,
0.02839324250817299,
-0.0005661666509695351,
0.0256031546741724,
0.0027832488995045424,
-0.02713496796786785,
-0.01965826191008091,
0.0332622192800045,
0.06750917434692383,
-0.028903845697641373,
0.02210186794400215,
0.02253952994942665,
0.029997998848557472,
0.04613674059510231,
0.028922082856297493,
0.029979761689901352,
0.0242901723831892,
-0.06429965794086456,
0.045990850776433945,
-0.030508602038025856,
-0.022193048149347305,
0.03344457596540451,
0.05634882301092148,
-0.03829531744122505,
0.016786113381385803,
0.023907219991087914,
-0.07217755168676376,
0.02253952994942665,
-0.0025393441319465637,
-0.007153017912060022,
-0.030709197744727135,
0.009564711712300777,
0.046027325093746185,
-0.015144886448979378,
-0.027864402160048485,
-0.015582546591758728,
0.05375932902097702,
-0.007736566010862589,
-0.011844194494187832,
-0.008051134645938873,
-0.013202766887843609,
-0.06054307147860527,
0.014716343022882938,
-0.03306162357330322,
0.01396867260336876,
0.047340307384729385,
0.04825209826231003,
0.011807722970843315,
-0.030435658991336823,
0.002017342485487461,
-0.023524265736341476,
0.0003715557686518878,
0.06856685131788254,
0.00878512766212225,
0.06189252808690071,
-0.04223426431417465,
0.058683015406131744,
-0.0062959324568510056,
-0.03481226786971092,
-0.007358171511441469,
0.010932400822639465,
0.031548045575618744,
0.029013261198997498,
0.03667232394218445,
-0.017296718433499336,
0.05157102644443512,
-0.012819813564419746,
-0.01581961289048195,
0.0022897408343851566,
-0.010202966630458832,
-0.003952623810619116
]
|
30,007 | zeroconf._services.types | ZeroconfServiceTypes |
Return all of the advertised services on any local networks
| class ZeroconfServiceTypes(ServiceListener):
"""
Return all of the advertised services on any local networks
"""
def __init__(self) -> None:
"""Keep track of found services in a set."""
self.found_services: Set[str] = set()
def add_service(self, zc: Zeroconf, type_: str, name: str) -> None:
"""Service added."""
self.found_services.add(name)
def update_service(self, zc: Zeroconf, type_: str, name: str) -> None:
"""Service updated."""
def remove_service(self, zc: Zeroconf, type_: str, name: str) -> None:
"""Service removed."""
@classmethod
def find(
cls,
zc: Optional[Zeroconf] = None,
timeout: Union[int, float] = 5,
interfaces: InterfacesType = InterfaceChoice.All,
ip_version: Optional[IPVersion] = None,
) -> Tuple[str, ...]:
"""
Return all of the advertised services on any local networks.
:param zc: Zeroconf() instance. Pass in if already have an
instance running or if non-default interfaces are needed
:param timeout: seconds to wait for any responses
:param interfaces: interfaces to listen on.
:param ip_version: IP protocol version to use.
:return: tuple of service type strings
"""
local_zc = zc or Zeroconf(interfaces=interfaces, ip_version=ip_version)
listener = cls()
browser = ServiceBrowser(local_zc, _SERVICE_TYPE_ENUMERATION_NAME, listener=listener)
# wait for responses
time.sleep(timeout)
browser.cancel()
# close down anything we opened
if zc is None:
local_zc.close()
return tuple(sorted(listener.found_services))
| () -> None | [
0.02602539025247097,
-0.06066794693470001,
-0.03746342286467552,
-0.051818929612636566,
0.013843498192727566,
0.019919954240322113,
-0.012210873886942863,
-0.01728263683617115,
-0.010935687460005283,
0.009641180746257305,
-0.03050786256790161,
0.010143526829779148,
-0.0022738405968993902,
-0.05645596981048584,
-0.020615510642528534,
0.05212806537747383,
-0.004250620491802692,
-0.01538917887955904,
-0.003617857815697789,
-0.10433341562747955,
-0.012442725710570812,
0.01510902401059866,
0.08872204273939133,
-0.0035912913735955954,
0.020287053659558296,
-0.02822798490524292,
-0.00684929545968771,
-0.042312994599342346,
-0.018741372972726822,
-0.04996411129832268,
-0.05154843628406525,
-0.01439414732158184,
-0.0731106773018837,
-0.016905877739191055,
0.011834113858640194,
0.020093843340873718,
0.056765105575323105,
0.08184376358985901,
-0.023571623489260674,
0.038873858749866486,
0.027088046073913574,
-0.050234608352184296,
0.0019200246315449476,
-0.011698867194354534,
-0.01228815782815218,
0.05266905203461647,
-0.02100192941725254,
0.07125585526227951,
0.026315204799175262,
-0.01976538635790348,
-0.01672232709825039,
-0.0016024356009438634,
-0.028401874005794525,
0.0032241924200206995,
-0.005105575080960989,
0.014674301259219646,
0.03269113600254059,
0.09961909055709839,
-0.001624171738512814,
0.007395113818347454,
-0.01637454889714718,
-0.010481643490493298,
0.028343910351395607,
0.03738614171743393,
0.02237372100353241,
0.0010910328710451722,
-0.014442449435591698,
-0.009114682674407959,
0.008621997199952602,
0.005757658742368221,
0.03589842468500137,
0.0016857574228197336,
0.01912779174745083,
0.008211426436901093,
0.09722328186035156,
0.03000551648437977,
0.023165881633758545,
-0.01212392933666706,
-0.020692793652415276,
0.011235162615776062,
0.02967705950140953,
0.00011049198656110093,
-0.008916642516851425,
0.01777532324194908,
0.07801821082830429,
0.02471156232059002,
0.06634832173585892,
-0.0224510058760643,
0.007506209425628185,
0.039685338735580444,
-0.058967698365449905,
0.03141595050692558,
-0.01824868656694889,
0.008762074634432793,
-0.0067720115184783936,
-0.01811343990266323,
-0.04428373649716377,
-0.056571897119283676,
-0.04254484921693802,
0.013012695126235485,
-0.022141868248581886,
0.06066794693470001,
-0.014384486712515354,
-0.007535190787166357,
0.02051890455186367,
-0.04177200794219971,
-0.053673744201660156,
0.03663261979818344,
-0.0005747998366132379,
0.046022627502679825,
0.004091222304850817,
-0.022489646449685097,
0.04528842866420746,
-0.019639799371361732,
0.005719016771763563,
0.004851986654102802,
0.01885729841887951,
-0.008916642516851425,
-0.044167812913656235,
-0.011447694152593613,
-0.031493235379457474,
0.019243719056248665,
-0.005685205105692148,
0.00202991277910769,
-0.025040019303560257,
0.005047611892223358,
-0.0022714254446327686,
0.02272149920463562,
0.05301683023571968,
-0.013708251528441906,
0.05827214568853378,
-0.017601434141397476,
0.01763041503727436,
0.04262213036417961,
0.08060722053050995,
0.0055258069187402725,
-0.03313551843166351,
0.016094395890831947,
-0.06070658937096596,
0.028556441888213158,
-0.02946452982723713,
0.022489646449685097,
-0.03692243620753288,
0.050080038607120514,
-0.02540711872279644,
-0.005062102805823088,
-0.007047335617244244,
-0.056069549173116684,
-0.03359922394156456,
0.022547610104084015,
-0.05046645924448967,
-0.02513662353157997,
-0.07365166395902634,
0.012780843302607536,
-0.045211147516965866,
-0.01618134044110775,
-0.01976538635790348,
-0.033483296632766724,
-0.016422852873802185,
-0.0758156105875969,
-0.07952524721622467,
0.030894283205270767,
-0.02059618942439556,
-0.06043609604239464,
-0.03340601176023483,
0.0255423653870821,
-0.07450178265571594,
0.017862267792224884,
0.009757106192409992,
0.05688103288412094,
-0.03251724690198898,
0.017379241064190865,
-0.03972398117184639,
-0.010790780186653137,
0.009375516325235367,
-0.011399391107261181,
0.015997789800167084,
-0.022682856768369675,
0.010056582279503345,
-0.019398286938667297,
0.03713496774435043,
-0.016838254407048225,
-0.0862489566206932,
-0.029638418927788734,
0.010394698940217495,
-0.0004766853526234627,
0.01538917887955904,
0.03000551648437977,
0.016017111018300056,
0.0048882137052714825,
-0.019717082381248474,
0.0012413744116201997,
0.08748549968004227,
-0.016152357682585716,
0.017330938950181007,
0.014442449435591698,
-0.0017594187520444393,
0.02932928130030632,
-0.05722881108522415,
-0.01802649535238743,
-0.04300855100154877,
0.05688103288412094,
0.027146007865667343,
-0.03238200023770332,
0.0016398701118305326,
0.00320970150642097,
0.040651388466358185,
-0.03531879186630249,
-0.04729781299829483,
-0.05761522799730301,
-0.011109576560556889,
0.010906705632805824,
-0.03228539600968361,
-0.008617167361080647,
0.040999166667461395,
-0.01052994653582573,
0.0396466962993145,
0.03176372870802879,
0.014075350016355515,
-0.029638418927788734,
-0.02492409385740757,
0.006192381493747234,
-0.020325694233179092,
-0.001964704366400838,
-0.01091636624187231,
0.01623930223286152,
-0.02024841122329235,
0.015988130122423172,
0.00967016164213419,
-0.024479709565639496,
0.07991166412830353,
0.004564587026834488,
-0.0024948243517428637,
-0.036729227751493454,
0.01968810148537159,
-0.0449020117521286,
0.0466795414686203,
0.01091636624187231,
0.02685619331896305,
-0.006448384840041399,
0.015621030703186989,
0.03688379377126694,
0.007771873380988836,
0.0038690308574587107,
0.008795886300504208,
-0.028904220089316368,
-0.031841013580560684,
-0.020673472434282303,
-0.0016326247714459896,
0.05460115522146225,
0.0063034771010279655,
-0.05062102526426315,
-0.01091636624187231,
-0.04366546496748924,
0.0028353570960462093,
-0.12342256307601929,
-0.09637316316366196,
0.044863369315862656,
0.020828040316700935,
0.0058349426835775375,
-0.022045264020562172,
0.0400717593729496,
-0.01632624678313732,
0.05205078050494194,
-0.05170300230383873,
0.009235438890755177,
0.05324868485331535,
-0.01630692556500435,
-0.009699143469333649,
0.04660225659608841,
0.1075020581483841,
-0.020267732441425323,
0.0063372887670993805,
-0.005796300712972879,
-0.0034801955334842205,
0.0031927956733852625,
0.011119237169623375,
-0.03815897926688194,
-0.06070658937096596,
-0.01824868656694889,
0.00507659325376153,
0.02231575734913349,
-0.011283465661108494,
0.036593977361917496,
0.007390283513814211,
0.01164090447127819,
0.0022665951400995255,
0.05460115522146225,
-0.01956251449882984,
-0.010471983812749386,
0.05433065816760063,
0.01886695995926857,
0.05916091054677963,
-0.0753132700920105,
-0.01831630989909172,
0.015659673139452934,
-0.052012138068675995,
0.020480262115597725,
0.042853984981775284,
-0.039144352078437805,
-0.039839908480644226,
0.0018161742482334375,
-0.025233229622244835,
-0.022972671315073967,
-0.03296162933111191,
-0.01995859481394291,
0.017601434141397476,
-0.013688930310308933,
0.021233782172203064,
0.021291743963956833,
-0.032111506909132004,
-0.03520286828279495,
-0.008781395852565765,
-0.034120891243219376,
0.014307202771306038,
0.06677338480949402,
-0.02672094665467739,
-0.018065137788653374,
0.025445761159062386,
0.04080595821142197,
-0.026276564225554466,
0.08872204273939133,
-0.045404355973005295,
0.008081009611487389,
0.018905600532889366,
0.03477780520915985,
0.0015879449201747775,
0.03775323927402496,
0.009723294526338577,
-0.038526080548763275,
-0.03999447450041771,
-0.038178302347660065,
-0.020016558468341827,
-0.006829974241554737,
-0.000815104809589684,
0.018094118684530258,
0.04111509397625923,
-0.008646148256957531,
-0.030739715322852135,
-0.023223845288157463,
0.04926855489611626,
-0.0026131656486541033,
-0.0881037712097168,
-0.0019031187985092402,
0.0013138281647115946,
0.02133038640022278,
0.021156497299671173,
0.03247860446572304,
0.038448795676231384,
-0.018152082338929176,
0.025658290833234787,
0.007617305498570204,
0.03895113989710808,
0.09405463933944702,
0.07125585526227951,
-0.028131380677223206,
0.03230471536517143,
0.009708804078400135,
0.07747722417116165,
-0.05301683023571968,
-0.01968810148537159,
0.011476675979793072,
-0.021716807037591934,
-0.04780016094446182,
-0.067778080701828,
-0.05081423744559288,
0.08168920129537582,
-0.04289262741804123,
0.058619920164346695,
-0.09212253987789154,
-0.006583631504327059,
-0.02086668275296688,
-0.029773665592074394,
-0.07044437527656555,
0.02216118946671486,
-0.033348049968481064,
0.05877448990941048,
0.012819484807550907,
-0.019089151173830032,
0.044167812913656235,
-0.009902013465762138,
0.017456525936722755,
0.008660639636218548,
0.016364889219403267,
0.0396466962993145,
-0.03182169049978256,
-0.03696107864379883,
0.03251724690198898,
0.027300577610731125,
0.006081285420805216,
0.0404968224465847,
-0.0018693070160225034,
-0.07287882268428802,
0.045481640845537186,
0.01325420755892992,
-0.0255423653870821,
-0.014065690338611603,
0.006013662088662386,
-0.013795196078717709,
0.0006834804662503302,
0.03091360442340374,
-0.019726743921637535,
0.011215842328965664,
0.02704940363764763,
-0.034256137907505035,
0.007259866688400507,
0.04154015704989433,
-0.014316863380372524,
-0.011167539283633232,
0.05062102526426315,
-0.0003664952819235623,
-0.007361302152276039,
-0.03856472298502922,
-0.02975434437394142,
-0.05514214187860489,
0.019388625398278236,
-0.05927683785557747,
0.06372066587209702,
0.022818103432655334,
0.02801545336842537,
0.011370410211384296,
-0.046099912375211716,
0.0371929295361042,
0.047954726964235306,
0.06024288758635521,
0.06086115911602974,
-0.001955043990164995,
0.008892491459846497,
-0.017301958054304123,
-0.010269112884998322,
0.039839908480644226,
0.03972398117184639,
-0.03802373260259628,
-0.14204801619052887,
0.01418161578476429,
0.012481368146836758,
-0.011476675979793072,
-0.09397735446691513,
-0.0174951683729887,
-0.0025914295110851526,
-0.04791608825325966,
0.016413191333413124,
-0.007448246702551842,
0.04633176326751709,
0.003497101366519928,
-0.029232677072286606,
-0.026952799409627914,
-0.04150151461362839,
0.00860750675201416,
-0.07334252446889877,
-0.06762351095676422,
-0.0576925128698349,
0.02747446484863758,
0.026894835755228996,
0.03332873061299324,
-0.029309960082173347,
-0.0349903367459774,
0.06743030250072479,
-0.020828040316700935,
-0.01462599914520979,
0.026894835755228996,
-0.03238200023770332,
-0.007061826530843973,
-0.03489373251795769,
-0.04613855481147766,
0.005405050702393055,
0.06715980172157288,
-0.019601156935095787,
-0.015118684619665146,
0.014838529750704765,
0.009829560294747353,
-0.018702730536460876,
0.01846121810376644,
-0.01446177065372467,
-0.0004147977742832154,
0.038873858749866486,
0.009476951323449612,
-0.0449020117521286,
-0.05722881108522415,
-0.029483849182724953,
0.06348881125450134,
0.012713219970464706,
-0.008506071753799915,
-0.017195692285895348,
-0.016152357682585716,
-0.05943140387535095,
0.04343361407518387,
-0.03526083007454872,
-0.016838254407048225,
-0.044863369315862656,
-0.0444769486784935,
-0.007230885326862335,
0.0036420091055333614,
-0.017243994399905205,
0.08794920146465302,
-0.01328318938612938,
0.007926441729068756,
0.04861164093017578,
0.012027324177324772,
-0.03359922394156456,
-0.010858403518795967,
-0.01504140067845583,
-0.0255423653870821,
-0.0036444240249693394,
-0.008114821277558804,
-0.05355782061815262,
-0.027107367292046547,
0.032324038445949554,
0.01962047815322876,
0.05081423744559288,
0.03945348784327507,
-0.003726538270711899,
0.033502619713544846,
-0.011177199892699718,
0.011322107166051865,
-0.03454595431685448,
0.010510625317692757,
-0.020190447568893433,
-0.02946452982723713,
-0.027358539402484894,
-0.025638969615101814,
0.0061344183050096035,
0.024808166548609734,
0.07036709040403366,
-0.0008519354742020369,
0.011592601425945759,
-0.04702731966972351,
-0.03406292945146561,
0.039279598742723465,
0.01802649535238743,
0.06341153383255005,
0.03980126604437828,
-0.01742754504084587,
-0.014200937002897263,
0.022354399785399437,
-0.03186033293604851,
0.019736403599381447,
-0.06217498704791069,
-0.05672646313905716,
-0.02801545336842537,
0.0426994152367115,
0.07021252065896988,
-0.02844051644206047,
-0.01775600202381611,
-0.04420645534992218,
-0.007641456555575132,
0.014094671234488487,
-0.029638418927788734,
0.00734681123867631,
-0.031087493523955345,
0.01187275629490614,
0.004211978521198034,
0.045133862644433975,
-0.014220258221030235,
0.017099088057875633,
0.015166986733675003,
-0.005004139617085457,
-0.05062102526426315,
0.017997514456510544,
0.05255312845110893,
-0.014577696099877357,
-0.016577420756220818,
-0.015881864354014397,
0.0765884518623352,
0.02134970761835575,
0.0032386831007897854,
0.06024288758635521,
-0.04204250127077103,
0.01219155266880989,
0.0014853021129965782,
0.04965497553348541,
-0.03311619907617569,
-0.009114682674407959,
0.005554788280278444,
-0.08215290307998657,
0.050157323479652405,
0.016857575625181198,
-0.03298095241189003,
0.02073143608868122,
0.010278773494064808,
-0.024904772639274597,
-0.02849847823381424,
-0.03926027566194534,
-0.06851227581501007,
0.02836323156952858,
0.0475296676158905,
0.03551200404763222,
0.00664159469306469,
-0.0660778284072876,
0.018702730536460876,
-0.028884898871183395,
0.030759036540985107,
0.005554788280278444,
0.0031034359708428383,
-0.07052166014909744,
0.018142420798540115,
0.032459285110235214,
0.01321556605398655,
-0.00013207716983743012,
0.052630409598350525,
-0.0426994152367115,
0.0017775322776287794,
0.0440518856048584,
-0.07569968700408936,
0.02030637301504612,
0.0032314376439899206,
-0.06719844788312912,
0.014258899725973606,
-0.00719707366079092,
-0.00585426390171051,
0.0067720115184783936,
0.018702730536460876,
0.027938170358538628,
0.02561965025961399,
0.021021250635385513,
0.004480057395994663,
-0.0008785018580965698,
0.03228539600968361,
0.005207010079175234,
0.011302786879241467,
0.010471983812749386,
0.03750206530094147,
0.030662430450320244,
0.016026772558689117,
-0.0730333924293518,
-0.01782362535595894,
-0.03835219144821167,
-0.016364889219403267,
0.011795472353696823,
0.04702731966972351,
0.061247579753398895,
0.023165881633758545,
-0.0021494615357369184,
0.02409329079091549,
-0.04026496782898903,
-0.04254484921693802,
0.027146007865667343,
0.001493755029514432,
0.0036057820543646812,
-0.010307755321264267,
0.005907396320253611,
-0.007940932177007198,
0.04648633301258087,
-0.010926026850938797,
0.00033932510996237397,
0.02608335390686989,
-0.005549957975745201,
-0.02988959103822708,
0.058426711708307266,
0.012172231450676918,
-0.012384762987494469,
0.02167816460132599,
-0.050427816808223724,
0.053325966000556946,
-0.023088598623871803,
0.005888075567781925,
-0.009288571774959564,
0.012404083274304867,
0.007989234291017056,
-0.0015879449201747775,
-0.061440788209438324,
0.025155944749712944,
0.024112612009048462,
0.014365165494382381,
-0.04211978614330292,
-0.04776151850819588,
0.06518906354904175,
-0.0009775219950824976,
-0.01194037962704897,
0.019234057515859604,
0.11430305242538452,
0.02057686820626259,
0.02051890455186367,
0.028807613998651505,
-0.018973223865032196,
-0.019919954240322113,
-0.03131934627890587,
0.038236264139413834,
0.03792712837457657,
-0.009988958016037941,
0.06588461995124817,
0.02498205564916134,
-0.0020468186121433973,
-0.009476951323449612,
0.026064032688736916,
-0.007834666408598423,
0.03257520869374275,
-0.02693347819149494,
0.003229022491723299,
-0.07168091833591461,
-0.08609438687562943,
0.010240131057798862,
0.04950040951371193,
0.038178302347660065,
-0.0019139868672937155,
-0.020132483914494514,
-0.018683409318327904,
-0.0969141498208046,
-0.006327628158032894,
0.013060998171567917,
0.07840462774038315,
-0.015727296471595764,
-0.025658290833234787,
0.007235715631395578,
-0.013495719991624355,
0.03837151080369949,
-0.031203418970108032,
-0.03242064267396927,
0.08423957228660583,
0.019398286938667297,
0.010742477141320705,
0.008129311725497246,
0.04598398506641388,
-0.014200937002897263,
0.008322522044181824,
0.056146834045648575,
0.011447694152593613,
-0.011901737190783024,
0.033831074833869934,
0.08601710200309753,
0.009027738124132156,
-0.016828592866659164,
0.04868892580270767,
-0.0038593702483922243,
0.0010765420738607645,
-0.01081010140478611,
0.00888766162097454,
-0.0018210045527666807,
0.0008193312678486109,
0.056146834045648575,
-0.013882140628993511,
-0.05278497934341431,
-0.03802373260259628,
0.05784708261489868,
-0.001572246546857059,
-0.04459287226200104,
0.014423128217458725,
-0.047606948763132095,
-0.07399944216012955,
0.004970327951014042,
-0.008795886300504208,
-0.0065401592291891575,
0.040303610265254974,
0.07284017652273178,
-0.05970189720392227,
-0.062329553067684174,
0.0220259428024292,
0.01619100011885166,
0.0079844044521451,
0.03491305187344551,
-0.006685066968202591,
-0.025735575705766678,
-0.010897045023739338,
0.010414020158350468,
-0.007076316978782415,
-0.0023100674152374268,
-0.0179588720202446,
0.022257795557379723,
-0.01734060049057007,
0.003052718471735716,
0.006438724230974913,
-0.0017570037161931396,
-0.00020604037854354829,
-0.0315125547349453,
0.030333973467350006,
-0.010143526829779148,
-0.04606126993894577,
-0.007192243356257677
]
|
30,008 | zeroconf._services.types | __init__ | Keep track of found services in a set. | def __init__(self) -> None:
"""Keep track of found services in a set."""
self.found_services: Set[str] = set()
| (self) -> NoneType | [
-0.0002598700230009854,
-0.012690696865320206,
-0.047508761286735535,
0.008695477619767189,
-0.028418483212590218,
-0.006363426335155964,
-0.007836775854229927,
-0.009436671622097492,
0.07339633256196976,
-0.011181190609931946,
-0.034926533699035645,
0.03628237545490265,
-0.015339110977947712,
-0.012998021207749844,
-0.03102170303463936,
0.009599372744560242,
-0.024766743183135986,
0.031726740300655365,
-0.03599312901496887,
-0.06464662402868271,
-0.010087477043271065,
0.05654771998524666,
0.05445067957043648,
0.044037800282239914,
0.01811407133936882,
0.028617339208722115,
-0.011515632271766663,
-0.01925298012793064,
0.017978485673666,
-0.023989392444491386,
-0.02304934151470661,
0.0038257387932389975,
-0.057523924857378006,
-0.03248601406812668,
0.0255260169506073,
-0.016676876693964005,
0.049425020813941956,
0.07896433025598526,
-0.026791470125317574,
0.045447878539562225,
0.015067942440509796,
-0.005803010892122984,
0.007199529558420181,
-0.004426829516887665,
-0.004390673711895943,
0.03977141156792641,
0.041506893932819366,
0.05810241773724556,
0.024314796552062035,
-0.01434482540935278,
-0.022886641323566437,
0.029015053063631058,
-0.05658387392759323,
-0.021711576730012894,
-0.005256153643131256,
0.05238979682326317,
0.03839749097824097,
0.07614418119192123,
0.015104098245501518,
0.049750421196222305,
-0.019795317202806473,
0.004646024201065302,
0.04295312613248825,
-0.011000411584973335,
0.009472827427089214,
0.00478160846978426,
-0.027713444083929062,
0.002456336747854948,
0.023266276344656944,
0.05191977322101593,
0.019144512712955475,
0.0034438427537679672,
-0.02558024972677231,
0.04244694486260414,
0.07534874975681305,
0.01637859083712101,
-0.010738281533122063,
-0.008564412593841553,
0.015212565660476685,
-0.048738058656454086,
0.04609868302941322,
0.016306279227137566,
-0.03496268764138222,
0.008781347423791885,
0.018141187727451324,
0.03637276589870453,
0.042338475584983826,
-0.014679267071187496,
-0.01477869600057602,
0.02923198789358139,
-0.053366005420684814,
0.08670168370008469,
-0.022470848634839058,
0.066599041223526,
0.013350540772080421,
0.00860508717596531,
-0.030298585072159767,
-0.05658387392759323,
-0.057343147695064545,
0.0088762566447258,
-0.020644979551434517,
0.013052254915237427,
-0.010828671045601368,
0.0001115746345021762,
-0.008912412449717522,
-0.033136818557977676,
-0.0224166139960289,
-0.039229076355695724,
0.02095230296254158,
0.0364089198410511,
-0.012419527396559715,
0.013983267359435558,
0.018873343244194984,
0.047038733959198,
-0.010232100263237953,
-0.021024614572525024,
-0.010232100263237953,
-0.04667717590928078,
-0.0014744799118489027,
-0.0015558305894955993,
-0.013151682913303375,
0.02923198789358139,
-0.03893982991576195,
0.06985306739807129,
0.019289135932922363,
-0.044399358332157135,
-0.0032449858263134956,
0.010882904753088951,
0.05484839528799057,
-0.05839166417717934,
0.057849328964948654,
-0.006187166552990675,
0.009007320739328861,
-0.01052134670317173,
0.029376612976193428,
-0.03781899809837341,
-0.007552049122750759,
0.015149292536079884,
-0.06898532062768936,
0.05531841889023781,
-0.011660255491733551,
0.0526067316532135,
-0.005332984961569309,
0.005224517546594143,
0.0024902326986193657,
0.008781347423791885,
-0.045086320489645004,
0.01120830699801445,
-0.04472476243972778,
0.022470848634839058,
-0.023212043568491936,
-0.09711456298828125,
-0.024875210598111153,
0.022796250879764557,
-0.08192910999059677,
-0.014787734486162663,
-0.014010383747518063,
-0.03293796256184578,
0.019777238368988037,
-0.04425473511219025,
-0.011181190609931946,
-0.046641021966934204,
-0.02373630180954933,
-0.006336309015750885,
-0.0368608683347702,
0.049388863146305084,
-0.010774437338113785,
-0.006345348432660103,
-0.01898181065917015,
0.02525484748184681,
-0.013486124575138092,
-0.006901244167238474,
-0.0847492665052414,
0.02603219822049141,
-0.010611736215651035,
0.006941919215023518,
0.044037800282239914,
0.03078668937087059,
-0.004607608541846275,
0.030298585072159767,
0.005938595160841942,
-0.010376723483204842,
-0.05806626379489899,
-0.02749650925397873,
0.04674948751926422,
-0.052172861993312836,
0.02274201810359955,
0.04136227071285248,
0.03317297250032425,
0.04754491522908211,
-0.01237433310598135,
-0.004777089226990938,
0.02313973195850849,
-0.007339633535593748,
0.007176932413130999,
0.0015569604001939297,
-0.029358534142374992,
-0.03185328468680382,
-0.10015165060758591,
0.010647892020642757,
-0.057668548077344894,
0.020807679742574692,
0.019289135932922363,
-0.024911366403102875,
0.04031375050544739,
0.04190460592508316,
-0.00459630973637104,
-0.004659582395106554,
-0.00776446470990777,
-0.009463788941502571,
0.0011807138798758388,
-0.06291114538908005,
-0.008523737080395222,
-0.0003313342749606818,
0.04570097103714943,
-0.047364138066768646,
0.0401691272854805,
-0.0117596834897995,
-0.0008536165696568787,
-0.0003273797337897122,
0.05072662979364395,
-0.02480289898812771,
0.013124566525220871,
-0.008822022937238216,
-0.03508923202753067,
-0.010141710750758648,
-0.017101706936955452,
-0.020879991352558136,
-0.024640198796987534,
-0.06005483493208885,
0.03738512843847275,
-0.023356666788458824,
-0.003950024489313364,
-0.0317448191344738,
0.015492773614823818,
-0.07332402467727661,
0.023519366979599,
0.027803832665085793,
-0.012401449494063854,
-0.049063462764024734,
-0.011868150904774666,
0.02259739302098751,
0.004921712446957827,
0.012184514664113522,
-0.031907521188259125,
0.023953236639499664,
-0.0110456058755517,
0.021115005016326904,
0.012302021495997906,
0.013775371015071869,
0.023248199373483658,
-0.03799977898597717,
-0.04241078719496727,
-0.05383603274822235,
0.047002580016851425,
-0.09798230230808258,
-0.04609868302941322,
0.024640198796987534,
0.020572667941451073,
0.001673337072134018,
-0.02529100328683853,
0.03622814267873764,
0.04523094370961189,
0.0772288516163826,
-0.06558667868375778,
0.011036567389965057,
0.04635177552700043,
0.013558436185121536,
-0.07607186585664749,
0.017996564507484436,
0.10680432617664337,
-0.015248721465468407,
0.023356666788458824,
0.011334852315485477,
-0.04588174819946289,
0.0013513241428881884,
-0.022163523361086845,
-0.025363314896821976,
-0.10369492322206497,
0.02489328943192959,
0.0379636213183403,
0.00846046395599842,
0.04168767109513283,
0.02068113535642624,
0.027749599888920784,
0.0012473760871216655,
0.03150980547070503,
0.02301318570971489,
-0.06435737758874893,
-0.047870319336652756,
0.005852724891155958,
0.00962649006396532,
0.02887042984366417,
-0.03807209059596062,
0.025815263390541077,
0.012853397987782955,
-0.005527322646230459,
-0.00039912646752782166,
0.02538139373064041,
-0.022163523361086845,
-0.02021110989153385,
-0.017372876405715942,
-0.027876144275069237,
-0.007922646589577198,
-0.06269420683383942,
-0.029358534142374992,
0.019343368709087372,
-0.010159788653254509,
0.057704705744981766,
-0.020193031057715416,
-0.0036856350488960743,
0.07505950331687927,
-0.035613492131233215,
0.0007762204622849822,
0.02089807018637657,
0.011850073002278805,
-0.06612901389598846,
-0.044435515999794006,
-0.00848306156694889,
0.08077212423086166,
-0.02726149559020996,
-0.001145687885582447,
-0.016215890645980835,
-0.03275718167424202,
0.015411422587931156,
0.012311059981584549,
0.0063905431888997555,
0.005075374618172646,
0.01063885260373354,
-0.0009451360092498362,
-0.038722895085811615,
-0.03865058347582817,
0.0028924664948135614,
0.027116872370243073,
-0.007176932413130999,
-0.021928511559963226,
0.02465827576816082,
-0.05549919977784157,
0.028942741453647614,
-0.04295312613248825,
0.03693317994475365,
-0.013811526820063591,
-0.06941919773817062,
0.018041759729385376,
0.03326336294412613,
-0.02035573311150074,
-0.020644979551434517,
-0.011886228807270527,
0.02594180777668953,
-0.02791230008006096,
0.016984201967716217,
0.02731573022902012,
0.04382086545228958,
0.04834034666419029,
0.10167019814252853,
-0.004966907203197479,
-0.03185328468680382,
0.071913942694664,
0.04085608944296837,
-0.016595525667071342,
0.04497785121202469,
-0.018077915534377098,
-0.012744930572807789,
-0.029286222532391548,
-0.04982273280620575,
-0.011877190321683884,
0.0012247787090018392,
-0.033642999827861786,
0.018448513001203537,
-0.08872640877962112,
0.009436671622097492,
-0.009644567966461182,
-0.036065440624952316,
-0.044399358332157135,
0.04400164633989334,
0.028852352872490883,
0.0319436751306057,
0.0548122376203537,
-0.042519256472587585,
0.014896201901137829,
0.0011615060502663255,
0.03738512843847275,
0.020156875252723694,
0.02149464190006256,
-0.007176932413130999,
-0.008727113716304302,
0.02626721002161503,
0.013323423452675343,
0.08366458863019943,
0.06124797463417053,
-0.0028065962251275778,
-0.050618160516023636,
-0.04100071266293526,
-0.008636724203824997,
0.018511785194277763,
-0.05730699002742767,
-0.0032336870208382607,
-0.029123520478606224,
-0.01778866909444332,
-0.001436064369045198,
0.05831935256719589,
-0.052498266100883484,
0.03810824453830719,
0.024405185133218765,
-0.030678221955895424,
-0.0014948175521567464,
0.04179614037275314,
-0.0386144258081913,
-0.0401691272854805,
-0.01109080109745264,
-0.012799164280295372,
-0.05709005519747734,
-0.006399582140147686,
-0.10803361982107162,
-0.07737347483634949,
-0.0572708360850811,
0.013052254915237427,
0.015565085224807262,
0.08612319082021713,
0.026972249150276184,
-0.0020009991712868214,
-0.005694543477147818,
-0.0026145183946937323,
0.05275135487318039,
0.008677399717271328,
0.031039780005812645,
0.010900982655584812,
-0.025598328560590744,
0.043061595410108566,
-0.036155831068754196,
-0.011850073002278805,
0.05126896873116493,
-0.031817130744457245,
-0.09313742071390152,
0.029882794246077538,
-0.026556456461548805,
-0.02480289898812771,
-0.09046188741922379,
-0.023248199373483658,
0.04186845198273659,
-0.038035932928323746,
-0.03608351945877075,
0.016586486250162125,
0.021386174485087395,
0.05163052678108215,
-0.026592612266540527,
-0.051847461611032486,
0.019144512712955475,
0.04259156808257103,
-0.06627363711595535,
-0.013386696577072144,
-0.034745752811431885,
-0.011226384900510311,
-0.03252216801047325,
0.05654771998524666,
0.0014564020093530416,
-0.04758107289671898,
0.03807209059596062,
-0.03574003651738167,
0.019271057099103928,
-0.011859112419188023,
0.038035932928323746,
-0.008532775565981865,
0.02026534266769886,
-0.04298928380012512,
0.0011247852817177773,
0.012979943305253983,
-0.007317035924643278,
-0.010720203630626202,
0.012790124863386154,
0.03590273857116699,
-0.05600538104772568,
0.004261868540197611,
-0.03009972907602787,
-0.03490845486521721,
0.009508983232080936,
0.015031786635518074,
-0.034384194761514664,
-0.04920808598399162,
-0.01862025260925293,
0.024495575577020645,
0.04223001003265381,
0.009088671766221523,
0.006065140478312969,
-0.012012774124741554,
-0.04711104556918144,
0.018041759729385376,
-0.057198524475097656,
-0.015619318932294846,
0.005925036501139402,
-0.029611624777317047,
-0.0118229566141963,
-0.03434803709387779,
-0.0020269863307476044,
0.046387929469347,
0.03619198501110077,
0.023682069033384323,
0.057343147695064545,
0.011145034804940224,
-0.009472827427089214,
0.011669293977320194,
-0.02388092502951622,
-0.026592612266540527,
0.007244724314659834,
0.04067530855536461,
-0.06551436334848404,
-0.028798118233680725,
-0.026502223685383797,
-0.031726740300655365,
-0.011126956902444363,
0.06251343339681625,
-0.05709005519747734,
0.030985547229647636,
-0.022814329713582993,
0.02791230008006096,
-0.014281553216278553,
-0.06421275436878204,
-0.028834274038672447,
-0.04617099463939667,
0.02451365254819393,
-0.04360393062233925,
0.025833340361714363,
0.05238979682326317,
-0.007646957878023386,
-0.010955216363072395,
-0.04125380143523216,
-0.0106569305062294,
-0.050798941403627396,
0.02791230008006096,
0.011931424029171467,
0.04194076359272003,
-0.06023561209440231,
-0.05499301850795746,
0.012979943305253983,
0.06186262518167496,
0.06453815847635269,
0.023230120539665222,
-0.07390251755714417,
0.022723939269781113,
0.035161543637514114,
0.0439293347299099,
0.061103351414203644,
0.02295895293354988,
-0.02232622541487217,
-0.010837710462510586,
0.0301901176571846,
-0.05445067957043648,
0.018285810947418213,
-0.040241438895463943,
-0.009301086887717247,
0.016550330445170403,
-0.02050035633146763,
-0.00996997021138668,
-0.032684870064258575,
0.033462222665548325,
-0.051305122673511505,
0.0021512717939913273,
-0.010873866267502308,
0.04454398155212402,
0.06041639298200607,
0.008338438346982002,
0.00860508717596531,
-0.01729152537882328,
0.05246210843324661,
0.0023343106731772423,
-0.03745744004845619,
0.0014857786009088159,
-0.036662012338638306,
0.024911366403102875,
0.009734957478940487,
0.04902730509638786,
-0.04765338450670242,
-0.04808725416660309,
0.06005483493208885,
-0.06645441800355911,
0.06489971280097961,
-0.002926362445577979,
0.0024179210886359215,
-0.0035929856821894646,
-0.007457139901816845,
-0.021747732535004616,
0.011470437049865723,
-0.006273036357015371,
-0.019614538177847862,
-0.011750645004212856,
0.02561640553176403,
-0.014615993946790695,
0.011361969634890556,
-0.06056101620197296,
0.011298696510493755,
0.008370074443519115,
-0.01820445992052555,
0.01751749962568283,
0.01815926656126976,
-0.060777951031923294,
-0.0006524997297674417,
0.05253442004323006,
-0.04519478604197502,
-0.013919994235038757,
0.01232913788408041,
-0.0030122327152639627,
0.071913942694664,
-0.015330071561038494,
0.00795880239456892,
0.04776185005903244,
-0.023573601618409157,
-0.028237704187631607,
0.03192559629678726,
-0.019596459344029427,
0.024495575577020645,
-0.020572667941451073,
0.010503268800675869,
0.0417238287627697,
0.005477608181536198,
-0.013883838430047035,
-0.012970903888344765,
0.03490845486521721,
0.016595525667071342,
-0.008731633424758911,
-0.03188944235444069,
0.011714489199221134,
0.023483211174607277,
0.03487229719758034,
0.05484839528799057,
-0.03653546795248985,
-0.029304299503564835,
-0.006358906626701355,
-0.07198625802993774,
0.01721017435193062,
-0.054233744740486145,
0.03179905191063881,
-0.01001516543328762,
-0.0019004407804459333,
-0.029069287702441216,
-0.007434542756527662,
0.02447749674320221,
0.04118148982524872,
0.007190490607172251,
0.005129608325660229,
0.02465827576816082,
-0.016179734840989113,
0.012934748083353043,
0.025652561336755753,
0.04935270920395851,
-0.04978657886385918,
0.009454749524593353,
-0.02666492387652397,
-0.04360393062233925,
0.04411011189222336,
0.010955216363072395,
-0.019017966464161873,
0.021982744336128235,
-0.007240205071866512,
0.010449035093188286,
0.009151944890618324,
-0.010494229383766651,
-0.008966646157205105,
0.015845293179154396,
0.016297239810228348,
-0.02109692618250847,
-0.05332984775304794,
0.04295312613248825,
0.042663879692554474,
-0.022886641323566437,
-0.011181190609931946,
0.02214544638991356,
0.06891301274299622,
-0.027568820863962173,
-0.0328475721180439,
0.09704224765300751,
0.03521578013896942,
0.03087707981467247,
0.04324237257242203,
-0.01880103163421154,
-0.0010795905254781246,
0.011949501931667328,
-0.028056925162672997,
0.02149464190006256,
0.034926533699035645,
-0.026231054216623306,
0.016414746642112732,
0.018493706360459328,
0.004607608541846275,
-0.05860859900712967,
0.010485190898180008,
0.07289015501737595,
-0.048738058656454086,
-0.02277817390859127,
0.04693026840686798,
-0.0572708360850811,
-0.0426277220249176,
-0.02187427692115307,
0.004989504348486662,
0.06435737758874893,
0.00834747776389122,
0.08981107920408249,
-0.04844881221652031,
-0.13225802779197693,
0.03756590932607651,
0.029430845752358437,
0.07039540261030197,
0.05054584890604019,
-0.000402233621571213,
-0.0002724398218560964,
-0.04468860477209091,
0.008975684642791748,
-0.045267097651958466,
0.03673432394862175,
0.0634896382689476,
0.02722533978521824,
0.045447878539562225,
0.050256602466106415,
0.013251111842691898,
-0.05535457655787468,
0.019469914957880974,
-0.006851529702544212,
0.040096815675497055,
-0.009689762257039547,
-0.00004738390998682007,
0.04223001003265381,
0.053366005420684814,
-0.0239713154733181,
0.01751749962568283,
0.022488925606012344,
0.023953236639499664,
0.02941276878118515,
0.010467112995684147,
-0.007692153099924326,
-0.00919261947274208,
-0.0034912973642349243,
-0.030172040686011314,
0.015664514154195786,
-0.07889202237129211,
0.04472476243972778,
0.013395735062658787,
-0.06786449253559113,
0.011850073002278805,
0.008338438346982002,
0.01601703278720379,
0.04157920554280281,
0.025959886610507965,
-0.046966422349214554,
0.0485934354364872,
0.03962678834795952,
-0.09270355105400085,
-0.036246221512556076,
0.04345930740237236,
0.013142644427716732,
-0.03521578013896942,
0.006969036068767309,
-0.044941697269678116,
0.0027342846151441336,
-0.006892205215990543,
0.027821911498904228,
-0.018999889492988586,
0.0063498676754534245,
-0.009897658601403236,
0.04277234897017479,
0.010837710462510586,
-0.012961865402758121,
-0.05640309676527977,
-0.06204340606927872,
0.013522280380129814,
-0.03416725993156433,
0.051124345511198044,
0.0244232639670372,
0.049895044416189194,
0.006959997117519379
]
|
30,009 | zeroconf._services.types | add_service | Service added. | def add_service(self, zc: Zeroconf, type_: str, name: str) -> None:
"""Service added."""
self.found_services.add(name)
| (self, zc: zeroconf._core.Zeroconf, type_: str, name: str) -> NoneType | [
-0.021498894318938255,
0.00442121597006917,
0.02801153063774109,
-0.011352135799825191,
0.026302412152290344,
0.015723876655101776,
-0.003026936436071992,
0.053792212158441544,
-0.028677185997366905,
-0.0035081878304481506,
0.0002515887899789959,
-0.013906816020607948,
0.0004101318772882223,
-0.04245806857943535,
0.00819476693868637,
0.03914777562022209,
-0.020905200392007828,
-0.004646100103855133,
-0.05623894929885864,
-0.11283770948648453,
-0.017379023134708405,
0.00027913704980164766,
0.0879385769367218,
-0.021588847041130066,
0.04742350056767464,
0.023837685585021973,
0.01587679795920849,
-0.0067690033465623856,
-0.02390964888036251,
-0.051093608140945435,
-0.0030224386136978865,
-0.03990338742733002,
-0.08534791320562363,
-0.018854260444641113,
0.03171761706471443,
0.018710335716605186,
0.04188236594200134,
0.04116273671388626,
-0.009517083875834942,
0.05361230671405792,
0.07340208441019058,
0.013834853656589985,
-0.05508754402399063,
0.018854260444641113,
0.0022600824013352394,
0.054583802819252014,
-0.02187669835984707,
0.08261332660913467,
0.005878463387489319,
-0.0009270836017094553,
-0.054331932216882706,
-0.027111994102597237,
-0.008541087619960308,
-0.005590612068772316,
0.011819894425570965,
-0.02416151948273182,
0.039795443415641785,
0.05300062149763107,
-0.006116840057075024,
0.04997818171977997,
0.0018316787900403142,
-0.016452500596642494,
0.015040230937302113,
0.00567157007753849,
0.017172129824757576,
0.04105479270219803,
-0.015040230937302113,
-0.034973934292793274,
0.04709966853260994,
0.017001217231154442,
0.051885198801755905,
-0.001828305539675057,
0.013627960346639156,
-0.021570857614278793,
0.06581000238656998,
0.0647665411233902,
0.04594826325774193,
-0.012647466734051704,
-0.009580051526427269,
0.008900902234017849,
0.022452400997281075,
-0.007457147818058729,
-0.022542355582118034,
0.04299778863787651,
0.03187953308224678,
0.07743199914693832,
0.01041661947965622,
-0.04454499110579491,
-0.05674268677830696,
0.02669820934534073,
-0.012305643409490585,
0.009517083875834942,
-0.02408955618739128,
0.004207576625049114,
0.01960987038910389,
-0.03929170221090317,
-0.005649081896990538,
-0.07843948155641556,
-0.00662957550957799,
0.059585221111774445,
-0.01510319858789444,
0.019411971792578697,
0.020995154976844788,
-0.04134264215826988,
0.036988891661167145,
-0.10744050145149231,
-0.029198916628956795,
0.019717814400792122,
-0.024449370801448822,
0.037600576877593994,
0.029558731243014336,
-0.0238196961581707,
0.04558844864368439,
-0.05649081990122795,
-0.012935318052768707,
-0.014158685691654682,
0.07325815409421921,
-0.014914295636117458,
-0.033480703830718994,
0.050733793526887894,
-0.021750764921307564,
-0.012251671403646469,
0.015903783962130547,
0.004897969774901867,
-0.007074845489114523,
-0.01899818517267704,
-0.02608652412891388,
0.049006685614585876,
0.03709683567285538,
-0.025690728798508644,
0.04573237523436546,
-0.012764406390488148,
0.021067118272185326,
-0.041630495339632034,
0.04404124990105629,
0.02572670951485634,
0.00020619036513380706,
0.010002832859754562,
-0.058541759848594666,
0.07491330057382584,
-0.019987674430012703,
0.032455235719680786,
-0.04267395660281181,
0.003119138767942786,
0.00520830973982811,
0.008932385593652725,
-0.046883780509233475,
0.024989090859889984,
-0.03056620992720127,
0.05893755331635475,
-0.04587630182504654,
-0.00971498154103756,
-0.044976767152547836,
0.03312088921666145,
-0.06246373429894447,
-0.019735805690288544,
0.002017207909375429,
-0.021390950307250023,
0.0002515887899789959,
-0.0451926551759243,
-0.0467398539185524,
0.01300728041678667,
-0.009053822606801987,
-0.04990622028708458,
-0.029270879924297333,
-0.006890440825372934,
-0.04414919391274452,
0.0430697500705719,
-0.0207612756639719,
0.042350124567747116,
0.020293517038226128,
-0.00908080954104662,
-0.03171761706471443,
0.008608552627265453,
0.04623611643910408,
-0.028929056599736214,
0.02853326126933098,
-0.01899818517267704,
0.029522748664021492,
-0.004486432299017906,
0.0393996462225914,
0.04555246978998184,
-0.03770852088928223,
0.022128568962216377,
0.007893422618508339,
-0.06570205837488174,
0.014149690978229046,
0.04220619797706604,
0.04569639638066292,
0.030944015830755234,
0.055015578866004944,
0.029396815225481987,
0.05569922924041748,
-0.05145341902971268,
0.01256650872528553,
0.022722262889146805,
-0.0009546318906359375,
0.0035261784214526415,
-0.05490763485431671,
-0.0011351011926308274,
-0.03369659185409546,
0.037348706275224686,
0.004713565111160278,
0.01978977769613266,
0.08513202518224716,
-0.005163332913070917,
0.05094968155026436,
-0.028299381956458092,
-0.038572072982788086,
-0.05145341902971268,
0.004560644272714853,
-0.00003533135895850137,
-0.02730989269912243,
0.0064271800220012665,
0.006751012522727251,
-0.021912680938839912,
-0.029972517862915993,
-0.004218820482492447,
0.039795443415641785,
-0.010740451514720917,
-0.05454782396554947,
0.07351002842187881,
0.0166414026170969,
-0.0291629359126091,
-0.008068831637501717,
-0.030152423307299614,
-0.005963919218629599,
0.007380687166005373,
-0.03204144909977913,
-0.022974131628870964,
0.026230450719594955,
0.020383469760417938,
-0.03213140368461609,
-0.018350521102547646,
0.0061258357018232346,
-0.07077544182538986,
0.04843098297715187,
0.013241159729659557,
0.024215491488575935,
-0.037348706275224686,
0.026644235476851463,
0.06782496720552444,
-0.0011379121569916606,
-0.01002082321792841,
-0.04047909006476402,
-0.012773402035236359,
-0.03885992616415024,
0.017666874453425407,
-0.005059886258095503,
0.04789125919342041,
0.023261982947587967,
-0.03864403814077377,
-0.03810431808233261,
-0.037960391491651535,
-0.0415225513279438,
-0.08599557727575302,
-0.02408955618739128,
0.034812018275260925,
0.021948661655187607,
0.005113858263939619,
-0.05508754402399063,
0.07865536957979202,
0.02730989269912243,
0.007461645640432835,
-0.06339924782514572,
-0.012269661761820316,
0.062283825129270554,
-0.005743532907217741,
0.014950277283787727,
0.032275326550006866,
0.12629476189613342,
0.000597628764808178,
0.029666675254702568,
-0.01653345860540867,
0.008568073622882366,
-0.033750563859939575,
0.01826956309378147,
-0.005963919218629599,
-0.06375906616449356,
0.017918743193149567,
0.032185375690460205,
-0.010191734880208969,
0.0011289168614894152,
0.05156136676669121,
-0.05998101457953453,
0.012089754454791546,
0.04587630182504654,
0.06052073836326599,
-0.05361230671405792,
-0.021750764921307564,
-0.028263399377465248,
0.04220619797706604,
0.0028425315394997597,
-0.022308476269245148,
-0.022128568962216377,
0.02180473692715168,
-0.04789125919342041,
0.02356782555580139,
0.011334145441651344,
-0.020167581737041473,
-0.034110378473997116,
0.02225450426340103,
-0.011361131444573402,
-0.018602389842271805,
-0.05965718254446983,
-0.03439823165535927,
0.016047710552811623,
0.004673086106777191,
-0.04324965924024582,
-0.002601905958727002,
-0.036988891661167145,
-0.0002854619233403355,
-0.0922563448548317,
0.0033710086718201637,
-0.008478120900690556,
0.08203762024641037,
-0.014842333272099495,
0.0027840619441121817,
0.013439057394862175,
0.027345873415470123,
-0.044976767152547836,
0.001984599744901061,
-0.06174410507082939,
-0.04799920320510864,
0.062283825129270554,
0.048466961830854416,
0.011505057103931904,
0.018080659210681915,
-0.0032922993414103985,
-0.013888825662434101,
-0.022218521684408188,
-0.017918743193149567,
-0.0037533112335950136,
0.037528615444898605,
-0.010911363177001476,
-0.03878796473145485,
0.0013515518512576818,
-0.09333578497171402,
-0.05882960930466652,
0.02092319168150425,
-0.00043402580195106566,
0.051345475018024445,
-0.11010312288999557,
-0.028947046026587486,
0.02925288863480091,
-0.002165631391108036,
0.018854260444641113,
-0.007430161815136671,
0.015040230937302113,
0.04699172452092171,
-0.032958973199129105,
-0.0170911718159914,
0.01951991580426693,
0.06249971315264702,
0.07275442034006119,
0.009957856498658657,
0.010362646542489529,
0.03626926615834236,
0.04709966853260994,
-0.04612817242741585,
-0.012179708108305931,
0.010290684178471565,
0.011586015112698078,
0.0011289168614894152,
-0.06091653183102608,
-0.028317371383309364,
0.035603608936071396,
0.0034587134141474962,
0.04335760325193405,
-0.08498809486627579,
0.021390950307250023,
-0.02914494462311268,
0.016650399193167686,
-0.01426663063466549,
0.01737002655863762,
0.0007095084874890745,
0.07505723088979721,
-0.009903883561491966,
-0.043645452708005905,
0.03286902233958244,
-0.03186153993010521,
0.040407128632068634,
-0.013331113383173943,
-0.0013729158090427518,
0.05605904012918472,
-0.003969199489802122,
-0.014815347269177437,
0.00545118423178792,
0.023693760856986046,
-0.02574470080435276,
0.05156136676669121,
0.018422484397888184,
-0.018620381131768227,
0.030188405886292458,
0.013582983054220676,
-0.0628955066204071,
-0.04616415128111839,
-0.059225406497716904,
-0.03925572335720062,
0.053468380123376846,
0.06026886776089668,
-0.022650299593806267,
0.0467398539185524,
0.010092786513268948,
-0.035333748906850815,
-0.008586064912378788,
-0.04623611643910408,
0.010695475153625011,
-0.010884377174079418,
0.04620013386011124,
-0.006670054513961077,
-0.006004398223012686,
-0.04979827627539635,
-0.04537256062030792,
-0.07750396430492401,
0.02049141563475132,
-0.005896454211324453,
0.00755159929394722,
-0.043393585830926895,
0.029450787231326103,
0.03358864784240723,
-0.020887210965156555,
0.005698556080460548,
0.07156702876091003,
0.04512069374322891,
0.040946848690509796,
0.01235061977058649,
0.008765972219407558,
-0.0013178192311897874,
-0.041630495339632034,
-0.005181323271244764,
0.07556096464395523,
-0.014950277283787727,
-0.07915911078453064,
0.007821459323167801,
-0.006535124033689499,
0.010254702530801296,
-0.1087358295917511,
-0.02426946349442005,
0.01732505112886429,
-0.03198747709393501,
-0.0332828052341938,
-0.05843381583690643,
0.015624928288161755,
-0.012656462378799915,
0.009130283258855343,
-0.01055154949426651,
-0.05062584951519966,
0.0770002231001854,
-0.08103014528751373,
0.0020992904901504517,
-0.047495465725660324,
0.012251671403646469,
0.04555246978998184,
0.01829654909670353,
-0.03277906775474548,
-0.00652163103222847,
-0.006085356697440147,
-0.002415252383798361,
-0.013367095030844212,
-0.05703053995966911,
-0.017172129824757576,
-0.005716546904295683,
0.027885595336556435,
-0.009912879206240177,
0.009247222915291786,
0.025762692093849182,
0.003989438991993666,
0.021858708932995796,
0.012593494728207588,
-0.017558930441737175,
-0.03382252901792526,
0.023495862260460854,
-0.001995844068005681,
0.0013774135150015354,
0.04008329287171364,
0.0015685646794736385,
-0.013816862367093563,
-0.019034167751669884,
0.004983425606042147,
0.098373182117939,
0.05242491886019707,
-0.03554963693022728,
0.003364262171089649,
-0.000027741529265767895,
0.00888740923255682,
0.03738468885421753,
0.006296747364103794,
0.013681932352483273,
-0.0390758141875267,
-0.02327997423708439,
-0.024017592892050743,
-0.019465943798422813,
0.017918743193149567,
0.05969316512346268,
0.012404591776430607,
0.004344755783677101,
0.018512437120079994,
0.03853609412908554,
0.008626543916761875,
-0.032275326550006866,
0.001365044852718711,
-0.06994786858558655,
-0.009130283258855343,
-0.020689312368631363,
-0.03749263286590576,
-0.04263797402381897,
0.016722362488508224,
-0.010956340469419956,
0.044868823140859604,
0.003665606491267681,
0.00637320801615715,
0.005239793099462986,
-0.015930769965052605,
0.03635921701788902,
-0.006975896656513214,
0.013735904358327389,
-0.03171761706471443,
-0.06429878622293472,
-0.04555246978998184,
-0.013340109027922153,
-0.008298213593661785,
0.032958973199129105,
0.04465293511748314,
0.03335477039217949,
0.0067195286974310875,
-0.050733793526887894,
-0.0632193461060524,
0.03490196913480759,
0.05181323364377022,
0.04490480199456215,
0.037168800830841064,
-0.021247023716568947,
-0.04702770709991455,
0.03864403814077377,
-0.005833486560732126,
-0.00790241826325655,
-0.039975348860025406,
-0.04324965924024582,
-0.0598730705678463,
0.019124120473861694,
-0.0004604496352840215,
0.02216454967856407,
-0.049438461661338806,
-0.04778331518173218,
0.0061078448779881,
0.022452400997281075,
-0.06595393270254135,
-0.020527396351099014,
-0.024035584181547165,
0.014419551007449627,
-0.019070148468017578,
-0.025438858196139336,
0.03632323816418648,
0.032976966351270676,
0.03004447929561138,
-0.011900852434337139,
-0.07491330057382584,
0.008437640964984894,
0.04001133143901825,
-0.004571888130158186,
0.025672737509012222,
0.00787992961704731,
0.07484134286642075,
0.011460079811513424,
-0.012494545429944992,
-0.0038747484795749187,
-0.057750169187784195,
0.00577951455488801,
0.012620480731129646,
0.01996968500316143,
-0.05303660407662392,
-0.0154180359095335,
0.004241309128701687,
-0.0805983617901802,
0.05533941462635994,
0.03702487424015999,
0.00835668295621872,
0.00372182740829885,
-0.009517083875834942,
-0.06429878622293472,
-0.0137449000030756,
-0.020347489044070244,
-0.019196083769202232,
-0.012359615415334702,
-0.019375991076231003,
0.006490147206932306,
0.014608453959226608,
-0.03333678096532822,
0.020887210965156555,
-0.020635340362787247,
0.014320602640509605,
0.008203762583434582,
-0.013609969057142735,
-0.07959088683128357,
-0.0014032750623300672,
0.040838904678821564,
-0.006584598682820797,
0.01798171177506447,
0.06113241985440254,
-0.014212657697498798,
0.009247222915291786,
0.03319285437464714,
-0.04159451276063919,
0.008437640964984894,
0.0336066409945488,
-0.05882960930466652,
0.019322019070386887,
-0.012449569068849087,
-0.013070248067378998,
0.01138811744749546,
0.002318552229553461,
-0.012107745744287968,
0.025546804070472717,
-0.0067555103451013565,
-0.02085122838616371,
0.02232646755874157,
-0.0017372275469824672,
0.0867152065038681,
0.011451085098087788,
0.004106378648430109,
0.03828422352671623,
0.03957955539226532,
0.02363978885114193,
-0.04288984462618828,
-0.014662425965070724,
-0.041990309953689575,
-0.03369659185409546,
0.0430697500705719,
-0.0084016602486372,
-0.005689560901373625,
0.03720477968454361,
-0.04080292209982872,
-0.036467161029577255,
0.0029482271056622267,
-0.016038713976740837,
-0.0034047411754727364,
0.01172994077205658,
0.01777481846511364,
-0.028353353962302208,
0.030926024541258812,
0.007205278147011995,
0.04879079759120941,
-0.014320602640509605,
0.012071764096617699,
0.08203762024641037,
0.013367095030844212,
-0.08649931848049164,
0.02153487503528595,
0.015723876655101776,
-0.01239559706300497,
-0.034002434462308884,
-0.04368143528699875,
0.04256601259112358,
0.06926421821117401,
0.010056804865598679,
-0.023963620886206627,
0.007493129465728998,
-0.03763655945658684,
-0.010884377174079418,
-0.03896787017583847,
-0.002117281313985586,
0.01662341319024563,
-0.005334244575351477,
-0.058613721281290054,
-0.04598424583673477,
0.06890440732240677,
-0.04450900852680206,
-0.03319285437464714,
0.04576835781335831,
0.03081808052957058,
0.019807767122983932,
-0.005725542549043894,
0.015651915222406387,
0.0332828052341938,
-0.04123469814658165,
-0.04310573264956474,
0.03536972776055336,
0.051093608140945435,
-0.005810998380184174,
0.006319235544651747,
-0.005275774747133255,
0.06606187671422958,
-0.007088338490575552,
0.03538772091269493,
0.026158487424254417,
-0.00989488884806633,
-0.03921974077820778,
0.014005765318870544,
-0.04655994847416878,
-0.07484134286642075,
0.027993539348244667,
-0.006670054513961077,
0.023585816845297813,
-0.0019002683693543077,
0.02853326126933098,
0.017765821889042854,
-0.10117973387241364,
-0.01960987038910389,
0.05541137605905533,
0.0343802385032177,
0.017136147245764732,
0.005869468208402395,
-0.007196282502263784,
0.003665606491267681,
0.01978977769613266,
-0.016020724549889565,
-0.026122506707906723,
0.05307258293032646,
0.0013133215252310038,
0.02714797668159008,
0.03353467583656311,
0.034812018275260925,
0.02441338822245598,
-0.03448818624019623,
0.019825758412480354,
-0.010947344824671745,
0.03742067143321037,
0.008374674245715141,
0.04414919391274452,
0.0019160102820023894,
-0.0008067707531154156,
0.061672143638134,
-0.03763655945658684,
0.02327997423708439,
-0.04245806857943535,
-0.021211043000221252,
-0.03742067143321037,
-0.01220669411122799,
0.029054991900920868,
-0.026464330032467842,
-0.03117789514362812,
-0.03893188759684563,
0.08311706781387329,
0.0406230166554451,
-0.040227219462394714,
-0.0038387670647352934,
-0.008689511567354202,
-0.04440106451511383,
-0.01890823245048523,
-0.013313123025000095,
0.012071764096617699,
0.04202628880739212,
0.01522913295775652,
0.0011249813251197338,
-0.011801903136074543,
0.04091086611151695,
0.005986407399177551,
-0.03621529042720795,
0.07548900693655014,
-0.01138811744749546,
-0.013484034687280655,
-0.03290500119328499,
0.051957160234451294,
-0.05177725479006767,
-0.016200631856918335,
0.004758541937917471,
0.03002648986876011,
0.01587679795920849,
-0.009759957902133465,
0.016407525166869164,
-0.06267961859703064,
0.028929056599736214,
-0.06217588111758232,
0.08995353430509567,
-0.019915712997317314,
-0.021336978301405907,
-0.00670153833925724
]
|
30,010 | zeroconf._services.types | remove_service | Service removed. | def remove_service(self, zc: Zeroconf, type_: str, name: str) -> None:
"""Service removed."""
| (self, zc: zeroconf._core.Zeroconf, type_: str, name: str) -> NoneType | [
0.008397518657147884,
0.030181357637047768,
0.042502451688051224,
-0.04441985860466957,
0.01168196089565754,
-0.0363241508603096,
-0.018996501341462135,
0.07769036293029785,
-0.0015667675761505961,
0.009986478835344315,
-0.010217277333140373,
-0.001977322855964303,
-0.020523322746157646,
-0.062280118465423584,
-0.004318597260862589,
0.0559597872197628,
-0.013137768022716045,
-0.02171282470226288,
-0.015312600880861282,
-0.14238499104976654,
-0.012125804089009762,
0.010625612922012806,
0.05610181763768196,
-0.014007700607180595,
0.023967549204826355,
-0.007163634058088064,
0.04236042499542236,
0.005228476598858833,
-0.03948431834578514,
-0.07932370901107788,
-0.0195468682795763,
0.00004646486559067853,
-0.07115698605775833,
-0.003308853367343545,
0.017682725563645363,
0.018570411950349808,
0.03303971141576767,
0.058764878660440445,
-0.05127280205488205,
0.04509450122714043,
0.03128208965063095,
0.007904852740466595,
-0.03243608400225639,
-0.0002288568066433072,
0.025778429582715034,
0.050314098596572876,
-0.001885225297883153,
0.055498190224170685,
-0.016262425109744072,
0.028725551441311836,
-0.03250709921121597,
-0.018641427159309387,
-0.03295094147324562,
0.001553452224470675,
0.016377825289964676,
-0.04026548191905022,
0.03767343610525131,
0.04779306799173355,
0.001242761849425733,
0.025405602529644966,
-0.020984919741749763,
0.021109197288751602,
-0.024074072018265724,
-0.01821533776819706,
0.05134381726384163,
0.015232709236443043,
0.0051308306865394115,
0.0008360901847481728,
0.00532168336212635,
-0.026790393516421318,
0.0030492048244923353,
0.004152155946940184,
0.010430322028696537,
0.003766012145206332,
0.06529825925827026,
-0.0038303693290799856,
0.08024690300226212,
-0.0033931834623217583,
-0.0024145087227225304,
-0.03682125732302666,
0.028974102810025215,
0.018659180030226707,
0.0030780546367168427,
0.04981699585914612,
0.04690537974238396,
0.04246694594621658,
0.08131212741136551,
-0.05098874121904373,
-0.06920407712459564,
0.021091442555189133,
-0.00498880073428154,
-0.008721524849534035,
-0.0689910352230072,
-0.01090967282652855,
0.0368567630648613,
-0.001698810956440866,
-0.02146427147090435,
-0.05450398102402687,
-0.003601789940148592,
-0.015188324265182018,
0.0601496696472168,
0.01628017984330654,
-0.01152217760682106,
0.0009703528485260904,
0.03802851215004921,
-0.034193702042102814,
-0.021126950159668922,
-0.0032800035551190376,
-0.0343179777264595,
0.01993745006620884,
0.021801592782139778,
0.01564992219209671,
0.025654153898358345,
-0.06341636180877686,
0.017878016456961632,
-0.002913832664489746,
0.008251050487160683,
-0.031033538281917572,
-0.028476998209953308,
0.03643067553639412,
-0.017744863405823708,
-0.02629328891634941,
-0.0366792269051075,
-0.03948431834578514,
0.017629463225603104,
0.02663061022758484,
-0.012853708118200302,
0.037211839109659195,
0.053687307983636856,
0.0014524778816848993,
0.004411804489791393,
-0.02135774865746498,
0.0011584315216168761,
-0.048822786659002304,
0.02304435521364212,
0.029311424121260643,
0.04498797655105591,
0.004285308998078108,
-0.017416419461369514,
0.04939090460538864,
-0.003956864587962627,
0.07350048422813416,
-0.03763793036341667,
0.019245054572820663,
0.029293671250343323,
-0.0005830993759445846,
-0.028494752943515778,
-0.0006452375091612339,
-0.05017206817865372,
0.0630967915058136,
-0.08770347386598587,
0.0027007877361029387,
-0.030749477446079254,
-0.00039085967000573874,
-0.04793509840965271,
0.011353516951203346,
-0.014114223420619965,
-0.02304435521364212,
-0.032081007957458496,
-0.05848081782460213,
-0.024074072018265724,
0.044100288301706314,
-0.00398349529132247,
-0.07797442376613617,
-0.030412156134843826,
-0.04509450122714043,
0.02977302111685276,
0.045662619173526764,
-0.013066752813756466,
0.028920842334628105,
-0.028565768152475357,
0.01558778341859579,
-0.01999071054160595,
0.006821874529123306,
0.02813967689871788,
0.0263287965208292,
0.03799300268292427,
-0.01417636126279831,
-0.009995355270802975,
-0.038667645305395126,
0.040727078914642334,
0.02474871277809143,
-0.03446000814437866,
-0.008916815742850304,
0.027216482907533646,
-0.0500655472278595,
-0.00988883338868618,
0.03841909393668175,
0.016360070556402206,
-0.011309131979942322,
0.011708591133356094,
0.012693923898041248,
0.03421145677566528,
-0.00617386307567358,
0.07030481100082397,
0.025547631084918976,
0.021055934950709343,
-0.0060318331234157085,
-0.028530260547995567,
-0.04750900715589523,
-0.045272037386894226,
0.07137003540992737,
-0.004291966557502747,
0.008530671708285809,
0.022334204986691475,
-0.0036395166534930468,
0.053651802241802216,
-0.012187942862510681,
-0.025689661502838135,
-0.027642572298645973,
0.013670380227267742,
0.005783280823379755,
0.013066752813756466,
-0.0015845212619751692,
0.04825466498732567,
-0.05404238402843475,
-0.0497104711830616,
0.017780371010303497,
0.028903089463710785,
0.020647600293159485,
-0.052231501787900925,
0.06547579169273376,
0.05915546044707298,
-0.03254260495305061,
-0.01595173589885235,
0.020878398790955544,
-0.047118425369262695,
0.023878781124949455,
0.00017046363791450858,
-0.06270620971918106,
0.05329672619700432,
-0.004358543083071709,
0.012622908689081669,
-0.011371270753443241,
0.028796566650271416,
-0.08180923014879227,
0.005694512277841568,
-0.012081420049071312,
0.02453566901385784,
-0.025707416236400604,
-0.014291760511696339,
0.03142412006855011,
0.010021986439824104,
0.032223038375377655,
-0.006457922980189323,
0.023594720289111137,
-0.020239263772964478,
0.043993767350912094,
-0.01401657797396183,
0.01995520293712616,
0.016013873741030693,
-0.06284824013710022,
-0.007305664010345936,
-0.015268215909600258,
0.005135269369930029,
-0.09359771758317947,
-0.02975526824593544,
0.0062138088978827,
0.018730195239186287,
0.019245054572820663,
-0.04459739476442337,
-0.008619440719485283,
0.010696628130972385,
0.021144704893231392,
0.005259545519948006,
-0.02126898057758808,
0.05780617892742157,
0.0328444205224514,
0.002281355671584606,
0.03422921150922775,
0.11149348318576813,
-0.022263189777731895,
0.025583138689398766,
-0.02339942939579487,
-0.006417977157980204,
-0.004300843458622694,
0.00833538081496954,
-0.04282202199101448,
0.006125040352344513,
0.005991887301206589,
0.01596948876976967,
-0.04001693055033684,
0.03131759911775589,
0.06810334324836731,
-0.032471589744091034,
0.0398038849234581,
0.05620834231376648,
0.0024145087227225304,
0.001145116169936955,
0.044064782559871674,
0.01250750944018364,
-0.000711814034730196,
-0.027358513325452805,
-0.025157049298286438,
-0.009267452172935009,
0.008947884663939476,
-0.05599529668688774,
0.002427823841571808,
0.0021193528082221746,
0.0029937243089079857,
-0.019085271283984184,
0.021144704893231392,
-0.027394020929932594,
-0.01161094568669796,
-0.042218394577503204,
-0.013608241453766823,
0.05450398102402687,
0.008934569545090199,
-0.00573001941666007,
0.023932041600346565,
-0.00329109956510365,
-0.016715146601200104,
-0.11113841086626053,
-0.010918550193309784,
-0.0020849548745900393,
0.06696710735559464,
0.011326885782182217,
0.0062848241068422794,
0.005010993219912052,
0.05769965425133705,
-0.026861408725380898,
-0.023594720289111137,
-0.04413579776883125,
0.00986220221966505,
0.025228064507246017,
0.008872431702911854,
-0.05485905706882477,
0.03763793036341667,
0.00013585771375801414,
-0.0003997365420218557,
-0.029471207410097122,
-0.009356221184134483,
-0.025636401027441025,
-0.01677728444337845,
0.017762616276741028,
-0.03639516606926918,
0.04683436453342438,
-0.06579536199569702,
-0.052267011255025864,
0.0033798683434724808,
-0.02652408741414547,
0.04981699585914612,
-0.060469239950180054,
0.00532168336212635,
-0.032205283641815186,
0.018889978528022766,
0.011335763148963451,
-0.026896916329860687,
0.0623866431415081,
0.04662132263183594,
0.0298972986638546,
0.038738660514354706,
0.026151258498430252,
0.08415272831916809,
0.06146344915032387,
0.008410834707319736,
0.014487051405012608,
0.08883971720933914,
0.05922647565603256,
-0.0530126690864563,
0.0010191756300628185,
-0.007469885982573032,
0.011149348691105843,
-0.027021192014217377,
-0.049000322818756104,
-0.06476564705371857,
-0.006156109273433685,
-0.04150824248790741,
0.03991040587425232,
-0.05766414850950241,
-0.0009653596207499504,
-0.026151258498430252,
-0.028601275756955147,
-0.03263137489557266,
0.005832103546708822,
0.030447663739323616,
0.06171200051903725,
-0.01670626923441887,
-0.025547631084918976,
0.033696599304676056,
-0.05287063866853714,
0.03140636533498764,
0.013333058916032314,
0.0008743716753087938,
0.01970665156841278,
0.027766849845647812,
-0.06803233176469803,
0.006897327955812216,
0.005676758475601673,
-0.017451927065849304,
0.05688298121094704,
-0.01059010624885559,
-0.03517016023397446,
0.01148667000234127,
0.025902707129716873,
-0.025796184316277504,
-0.08195126056671143,
-0.04992351680994034,
-0.044100288301706314,
0.0434611551463604,
0.02292007766664028,
0.02307986281812191,
0.0005398246576078236,
0.015854090452194214,
-0.0069505893625319,
0.016360070556402206,
-0.033732105046510696,
0.001895211753435433,
-0.011477792635560036,
0.012764939107000828,
0.011850621551275253,
0.01832185871899128,
-0.027092207223176956,
-0.04196983948349953,
-0.013679256662726402,
0.024287115782499313,
-0.00027518297429196537,
0.011025072075426579,
0.011939390562474728,
0.01573869027197361,
0.035915814340114594,
0.003932453226298094,
0.034016165882349014,
0.012090296484529972,
0.03527668118476868,
0.04765103757381439,
0.0027562680188566446,
-0.03250709921121597,
0.00576108880341053,
-0.006675406359136105,
-0.017869139090180397,
0.043887246400117874,
-0.03671473264694214,
-0.06966567784547806,
0.007003850303590298,
0.027074454352259636,
0.0005930858897045255,
-0.05411339923739433,
-0.0124276177957654,
0.014265130273997784,
-0.03799300268292427,
-0.005929748993366957,
-0.026932423934340477,
-0.004726933315396309,
0.00355518632568419,
0.03199223801493645,
0.0026386496610939503,
-0.04924887418746948,
0.07126351445913315,
-0.06625695526599884,
0.006355838850140572,
-0.03147738054394722,
-0.011744098737835884,
-0.012400987558066845,
0.013022367842495441,
-0.058764878660440445,
-0.030234619975090027,
0.011823990382254124,
-0.03176144137978554,
-0.027216482907533646,
-0.050385113805532455,
0.009267452172935009,
-0.012409863993525505,
-0.009205314330756664,
0.027109960094094276,
0.06767725944519043,
0.0704113319516182,
-0.014380529522895813,
0.011255871504545212,
0.021144704893231392,
-0.013501719571650028,
-0.05429093539714813,
0.03813503310084343,
0.03792198747396469,
-0.010341553948819637,
0.06909755617380142,
-0.005863172467797995,
0.008388642221689224,
-0.0010108535643666983,
0.008126774802803993,
0.0768381878733635,
0.021002674475312233,
-0.038561124354600906,
0.004440654069185257,
-0.02171282470226288,
0.001867471495643258,
-0.001732099219225347,
-0.01596948876976967,
0.04651479795575142,
-0.07484976947307587,
-0.04630175232887268,
-0.040443018078804016,
-0.017629463225603104,
-0.014726727269589901,
0.09714846312999725,
-0.04502348601818085,
-0.023505952209234238,
0.01249863300472498,
0.040514033287763596,
-0.006307016126811504,
-0.03682125732302666,
0.02137550339102745,
-0.0597945973277092,
-0.04019446671009064,
0.008126774802803993,
-0.04839669540524483,
-0.001966226613149047,
0.027021192014217377,
-0.006187178194522858,
0.0022358617279678583,
-0.017869139090180397,
0.025689661502838135,
0.03859663009643555,
0.005499220918864012,
0.0067863669246435165,
-0.019458098337054253,
-0.00817559752613306,
-0.027660327032208443,
0.007762822788208723,
-0.027251990512013435,
-0.012400987558066845,
-0.0116908373311162,
-0.02290232479572296,
0.07761935144662857,
0.020114988088607788,
-0.012605155818164349,
-0.03671473264694214,
-0.030820492655038834,
0.07016278058290482,
0.04928438365459442,
0.04196983948349953,
0.03966185450553894,
-0.009986478835344315,
-0.06636348366737366,
0.030270125716924667,
-0.038951706141233444,
-0.07449468970298767,
-0.04839669540524483,
-0.02496175840497017,
-0.03619987517595291,
0.010456953197717667,
-0.0015933981630951166,
0.02815743163228035,
0.004815701860934496,
-0.08479186147451401,
0.01812656782567501,
0.029275916516780853,
-0.019085271283984184,
-0.03628864511847496,
0.0300748348236084,
-0.023807765915989876,
-0.025494370609521866,
0.012116927653551102,
0.010900796391069889,
0.016129272058606148,
0.0495329350233078,
-0.03628864511847496,
-0.04342564940452576,
0.03428247198462486,
0.023914286866784096,
-0.055391669273376465,
0.017079098150134087,
0.06948813796043396,
0.0669315978884697,
0.03298644721508026,
0.05489456281065941,
0.011708591133356094,
-0.07492078095674515,
0.012516386806964874,
0.013892301358282566,
-0.0019628978334367275,
-0.07154757529497147,
0.04924887418746948,
0.02315087616443634,
-0.080317921936512,
0.060220684856176376,
0.07811645418405533,
-0.00747432466596365,
-0.005787719041109085,
0.01731877401471138,
-0.01832185871899128,
-0.02794438600540161,
0.0038680960424244404,
-0.02822844684123993,
-0.05603080242872238,
-0.016395578160881996,
0.03174368664622307,
-0.03532994166016579,
-0.052018459886312485,
0.006409100256860256,
-0.025139296427369118,
0.023434937000274658,
0.04108215495944023,
-0.024677699431777,
-0.08301648497581482,
0.011832867749035358,
0.06448158621788025,
0.0022280942648649216,
-0.018641427159309387,
0.12321095168590546,
0.030234619975090027,
-0.030199112370610237,
0.08990494161844254,
-0.011584315448999405,
0.03454877808690071,
0.053829338401556015,
-0.0707664042711258,
-0.0348505899310112,
-0.004966608714312315,
-0.019422590732574463,
-0.004762440919876099,
0.0016832764958962798,
-0.010412568226456642,
0.043887246400117874,
0.028725551441311836,
-0.035809293389320374,
0.05244454741477966,
-0.014549190178513527,
0.028832074254751205,
-0.019174039363861084,
-0.015072925016283989,
0.012294464744627476,
0.01746080256998539,
-0.0035529672168195248,
-0.03193897753953934,
0.039058227092027664,
-0.055640220642089844,
-0.0030447663739323616,
-0.00539269857108593,
0.022227682173252106,
-0.015383616089820862,
-0.010492459870874882,
-0.042218394577503204,
-0.0028539136983454227,
-0.05304817482829094,
-0.023967549204826355,
-0.019245054572820663,
-0.008788101375102997,
-0.004465065430849791,
-0.015019663609564304,
0.0983557179570198,
-0.01744304969906807,
0.029133887961506844,
0.017718233168125153,
-0.06245765835046768,
0.05176990479230881,
0.047047410160303116,
-0.062102582305669785,
0.00796699058264494,
0.0069550275802612305,
-0.0150374174118042,
-0.009542635641992092,
-0.029062872752547264,
0.00291827111504972,
0.01723000407218933,
-0.014522559009492397,
-0.008894623257219791,
0.008796977810561657,
-0.0390937365591526,
-0.016022751107811928,
-0.03930677846074104,
-0.011113841086626053,
-0.0002887756854761392,
0.04530754312872887,
-0.04434884339570999,
-0.06423303484916687,
0.07825848460197449,
-0.013936685398221016,
-0.042289409786462784,
-0.00394354946911335,
0.04775756224989891,
0.003204550128430128,
0.00030985823832452297,
-0.025867199525237083,
-0.003153508063405752,
-0.02794438600540161,
-0.02973751351237297,
0.023825518786907196,
0.053651802241802216,
-0.006710913497954607,
0.03273789584636688,
0.04562711343169212,
0.03192122280597687,
-0.037105318158864975,
0.07413961738348007,
0.0319034717977047,
-0.015783075243234634,
-0.019280562177300453,
-0.01823309063911438,
-0.07161858677864075,
-0.09359771758317947,
0.02655959501862526,
-0.017096851021051407,
0.004542738199234009,
-0.009276329539716244,
0.0012926942436024547,
0.013652626425027847,
-0.07591499388217926,
-0.012170189060270786,
0.07172510772943497,
0.008974515832960606,
-0.00573001941666007,
-0.005548043642193079,
0.001912965439260006,
0.00907216127961874,
0.04129520058631897,
0.01499303337186575,
-0.05766414850950241,
0.052302516996860504,
0.016919314861297607,
0.048538725823163986,
-0.009178683161735535,
0.041827812790870667,
0.01480661891400814,
-0.010971811600029469,
0.05500108748674393,
-0.06920407712459564,
0.004589341580867767,
0.014087592251598835,
0.0429285429418087,
-0.011007319204509258,
-0.007119249552488327,
0.06522724032402039,
-0.010572352446615696,
0.015747567638754845,
-0.029311424121260643,
-0.023630227893590927,
-0.008006936870515347,
-0.030802737921476364,
0.06426853686571121,
-0.03181470185518265,
-0.03820604830980301,
-0.04477493092417717,
0.0660439133644104,
0.03259586542844772,
-0.029204901307821274,
0.010350430384278297,
-0.006417977157980204,
-0.020079480484128,
-0.009879956021904945,
-0.04459739476442337,
0.03273789584636688,
0.023701243102550507,
0.01995520293712616,
0.017886893823742867,
0.012951353564858437,
-0.004682548809796572,
0.027251990512013435,
0.01656423881649971,
0.013821286149322987,
0.007918167859315872,
-0.053616296499967575,
-0.0464082770049572,
0.04086910933256149,
-0.04793509840965271,
-0.060540251433849335,
-0.029169395565986633,
0.02141101099550724,
-0.027429528534412384,
-0.007261279504746199,
0.03169042617082596,
0.003916918765753508,
-0.012578524649143219,
-0.058764878660440445,
0.09061508625745773,
-0.033838629722595215,
-0.031069044023752213,
-0.03612885996699333
]
|
30,011 | zeroconf._services.types | update_service | Service updated. | def update_service(self, zc: Zeroconf, type_: str, name: str) -> None:
"""Service updated."""
| (self, zc: zeroconf._core.Zeroconf, type_: str, name: str) -> NoneType | [
0.01869416981935501,
-0.013913599774241447,
0.010783039964735508,
-0.014805497601628304,
0.01470738835632801,
-0.0401710607111454,
-0.022493652999401093,
0.0484478697180748,
-0.010631417855620384,
-0.0026801517233252525,
-0.030413702130317688,
-0.05294303223490715,
0.001719132298603654,
-0.012950350530445576,
-0.001283217454329133,
0.025383401662111282,
-0.031305599957704544,
-0.012727376073598862,
-0.023332037031650543,
-0.10353145748376846,
0.0035988062154501677,
-0.028665583580732346,
0.07634641975164413,
-0.0027091384399682283,
0.05280032753944397,
-0.005440574139356613,
0.059221990406513214,
0.006965719163417816,
-0.032036956399679184,
-0.08469457924365997,
-0.0014972728677093983,
-0.013182244263589382,
-0.05604683607816696,
0.016517940908670425,
0.027238547801971436,
-0.014537927694618702,
0.029628831893205643,
0.030056944116950035,
-0.046521369367837906,
0.0414910688996315,
0.045058656483888626,
-0.005547602195292711,
-0.038101859390735626,
-0.00008229147351812571,
0.03383858874440193,
0.08569350838661194,
-0.033285610377788544,
0.08762000501155853,
0.007505316752940416,
0.0087985685095191,
-0.04181215167045593,
-0.04734191671013832,
-0.028772611171007156,
0.0013188932789489627,
0.030306674540042877,
-0.007549911737442017,
0.04027808830142021,
0.06921123713254929,
-0.001260919962078333,
0.018908224999904633,
-0.0184087622910738,
-0.03209047019481659,
-0.01917579397559166,
-0.023153657093644142,
0.019550392404198647,
-0.007451802957803011,
-0.0006025881739333272,
0.017213620245456696,
-0.0014047384029254317,
-0.01249548327177763,
0.039207812398672104,
0.015108742751181126,
-0.012861160561442375,
-0.024759072810411453,
0.03888672962784767,
0.056367918848991394,
0.0242239348590374,
-0.0012642645742744207,
-0.020620668306946754,
-0.0022620749659836292,
0.03742401674389839,
-0.01183547917753458,
0.004704758990556002,
0.02484826184809208,
0.02520502172410488,
0.039029430598020554,
0.06971070170402527,
-0.053335465490818024,
-0.08383835852146149,
0.03671049699187279,
0.004303405061364174,
0.00453752838075161,
-0.05697440728545189,
-0.01844443939626217,
0.04127701371908188,
-0.022386625409126282,
-0.014537927694618702,
-0.12372401356697083,
-0.01106844749301672,
0.042061883956193924,
0.015831179916858673,
0.0014850092120468616,
0.031038030982017517,
-0.01825714111328125,
0.0544414184987545,
-0.07969995588064194,
-0.025882864370942116,
0.005806252360343933,
-0.030235322192311287,
-0.013824409805238247,
0.028968827798962593,
-0.03863699734210968,
-0.024206096306443214,
-0.057794954627752304,
0.015206851065158844,
-0.002807247219607234,
0.048091109842061996,
-0.018212545663118362,
-0.00011420468217693269,
0.03713860735297203,
-0.03587211295962334,
0.004185228608548641,
-0.00013099743227940053,
-0.020246071740984917,
-0.0016366317868232727,
0.006363688036799431,
-0.02930774912238121,
0.06846204400062561,
0.05847279727458954,
-0.007367072626948357,
-0.002588732400909066,
-0.031448304653167725,
0.0008723872015252709,
-0.0093827610835433,
0.07042422145605087,
0.01439522486180067,
0.0066446359269320965,
-0.011443044058978558,
-0.045022983103990555,
0.05886523053050041,
0.008669243194162846,
0.046342991292476654,
-0.026828274130821228,
-0.01848011463880539,
0.009347084909677505,
-0.0022944060619920492,
-0.032982368022203445,
0.021851487457752228,
-0.06318201124668121,
0.05262194946408272,
-0.055047910660505295,
0.00957005936652422,
-0.023581767454743385,
0.0067159878090023994,
-0.06985341012477875,
-0.017061997205018997,
-0.02085256204009056,
-0.07274315506219864,
0.008646945469081402,
-0.056689001619815826,
-0.05857982486486435,
0.00303691066801548,
0.005627872887998819,
-0.059543073177337646,
-0.02283257432281971,
-0.00813856441527605,
-0.05533331632614136,
0.009578978642821312,
-0.009891142137348652,
0.03341047838330269,
0.011264664120972157,
-0.0029410317074507475,
-0.048126786947250366,
0.0017626122571527958,
0.07356370240449905,
0.021137969568371773,
0.036639146506786346,
-0.04181215167045593,
0.05115923658013344,
-0.008423971012234688,
0.020246071740984917,
0.026150433346629143,
-0.04231161251664162,
0.03537265211343765,
-0.0017458891961723566,
-0.03374939784407616,
-0.016018478199839592,
0.05272897705435753,
0.023938527330756187,
-0.011550071649253368,
0.05055274814367294,
-0.0021617363672703505,
0.037816449999809265,
-0.03603265807032585,
0.027309900149703026,
0.004709218628704548,
-0.0006973522831685841,
-0.034266699105501175,
0.00331116933375597,
0.02161959372460842,
-0.020763373002409935,
0.026721246540546417,
0.02001417800784111,
0.05868685245513916,
0.06567932665348053,
-0.003056978341192007,
0.09297139197587967,
-0.028076931834220886,
-0.007402748800814152,
-0.05090950429439545,
0.0044327303767204285,
0.010399524122476578,
-0.02004985511302948,
-0.013182244263589382,
0.017686326056718826,
-0.03992132842540741,
-0.004457257222384214,
0.009347084909677505,
0.010943581350147724,
0.009721682406961918,
-0.05968577787280083,
0.08048482239246368,
0.02286824956536293,
-0.059150636196136475,
-0.005248816218227148,
0.0028919773176312447,
-0.020317424088716507,
0.023296361789107323,
-0.03749536722898483,
-0.05547602102160454,
0.02411690726876259,
0.000003649463224064675,
0.00965924933552742,
0.00319745228625834,
0.047912731766700745,
-0.08997461199760437,
0.010283577255904675,
-0.007268963847309351,
-0.007322478108108044,
-0.019514715299010277,
0.004390364978462458,
0.04002835601568222,
0.02568664588034153,
0.00931140873581171,
-0.062040384858846664,
-0.05376357585191727,
-0.023153657093644142,
0.007197612430900335,
-0.013039540499448776,
0.020799048244953156,
0.021940676495432854,
-0.05843712016940117,
-0.03326777368783951,
0.019889311864972115,
-0.02095958963036537,
-0.07281450927257538,
-0.0029833968728780746,
0.04241864010691643,
0.028772611171007156,
0.003500697435811162,
-0.06635716557502747,
0.0358542762696743,
-0.018533628433942795,
0.01921147108078003,
-0.019443364813923836,
-0.011228988878428936,
0.06953232735395432,
0.005235437769442797,
0.016339560970664024,
0.0295574814081192,
0.13378462195396423,
0.021673107519745827,
-0.0092043811455369,
0.008749513886868954,
-0.0034940082114189863,
-0.017481189221143723,
0.047805704176425934,
-0.03366021066904068,
-0.018533628433942795,
-0.046164609491825104,
0.036282386630773544,
-0.036460768431425095,
0.012343860231339931,
0.07577560842037201,
-0.044951628893613815,
-0.0024883938021957874,
0.026774760335683823,
0.05162302404642105,
-0.05183707922697067,
0.013182244263589382,
0.03332128748297691,
0.04102728143334389,
0.004918814171105623,
-0.038066182285547256,
-0.03763807192444801,
0.028344500809907913,
-0.07798751443624496,
0.017142267897725105,
0.020549315959215164,
-0.024134743958711624,
-0.028344500809907913,
0.02019255794584751,
-0.05715278908610344,
-0.015813341364264488,
0.013654950074851513,
-0.0331607460975647,
0.04438081756234169,
0.007054908666759729,
-0.01451117079705,
0.021922839805483818,
0.014743064530193806,
-0.02081688679754734,
-0.12529374659061432,
-0.01080979686230421,
-0.033642370253801346,
0.02474123425781727,
-0.016812266781926155,
-0.00567246787250042,
0.03348182886838913,
0.06418094038963318,
-0.0597214512526989,
-0.01287899911403656,
-0.01694605126976967,
0.012745214626193047,
-0.00324204727075994,
0.027416927739977837,
0.02495528943836689,
0.056439269334077835,
0.013182244263589382,
-0.02871909737586975,
-0.032143983989953995,
-0.017650650814175606,
0.019996341317892075,
-0.011826559901237488,
-0.0036879959516227245,
-0.03560454398393631,
0.006524229887872934,
-0.09040272235870361,
-0.039207812398672104,
0.008990325964987278,
0.012120885774493217,
0.07549019902944565,
-0.08219726383686066,
-0.0315374918282032,
-0.02056715451180935,
0.021459052339196205,
0.03984997794032097,
-0.01924714632332325,
0.06842637062072754,
0.039493218064308167,
-0.04830516502261162,
-0.006729366257786751,
0.0444878451526165,
0.09311409294605255,
0.07106638699769974,
0.00016416487051174045,
0.03870834782719612,
0.0008723872015252709,
0.04031376540660858,
-0.08027076721191406,
-0.030360188335180283,
-0.00039633692358620465,
0.03606833145022392,
-0.003471710719168186,
-0.05865117534995079,
-0.026150433346629143,
-0.011880073696374893,
-0.004035836085677147,
0.04948246851563454,
-0.059257663786411285,
0.0008969143382273614,
-0.021566079929471016,
0.005614494439214468,
-0.016339560970664024,
0.014457657001912594,
0.00995357520878315,
0.002938802121207118,
-0.007219909690320492,
-0.019300660118460655,
0.027969904243946075,
0.0017748759128153324,
-0.0029521805699914694,
-0.0023144737351685762,
0.004055903758853674,
0.04427378997206688,
0.0053067896515131,
-0.03703157976269722,
-0.012094128876924515,
0.013726301491260529,
-0.022083381190896034,
0.04134836420416832,
0.035729411989450455,
-0.03449859097599983,
0.031198572367429733,
0.008299105800688267,
-0.00013385429338086396,
-0.03216182067990303,
-0.062111735343933105,
-0.033053718507289886,
-0.005181923974305391,
0.023474739864468575,
-0.013967113569378853,
0.06575068086385727,
0.024063393473625183,
-0.01914011873304844,
-0.023831499740481377,
-0.014716307632625103,
0.0093827610835433,
-0.01588469371199608,
0.055012233555316925,
-0.013012783601880074,
0.028148282319307327,
-0.06710636615753174,
-0.0157687459141016,
-0.03212614730000496,
0.024616369977593422,
-0.002417042152956128,
-0.031894251704216,
-0.005864225793629885,
0.06093443185091019,
0.038066182285547256,
0.0250623170286417,
0.03720996156334877,
0.07156585156917572,
0.03473048657178879,
0.010114116594195366,
0.017614973708987236,
-0.029985591769218445,
-0.0044527980498969555,
0.01587577350437641,
0.01072060689330101,
0.06129119172692299,
-0.05155166983604431,
-0.04741326719522476,
0.016839023679494858,
0.010158712044358253,
0.036318063735961914,
-0.06789123266935349,
-0.01917579397559166,
0.004887598101049662,
-0.014172250404953957,
-0.02074553444981575,
-0.036567796021699905,
0.0011695005232468247,
-0.014850092120468616,
0.014163331128656864,
-0.013717382214963436,
-0.08012806624174118,
0.04270404949784279,
-0.06521554291248322,
-0.021673107519745827,
-0.026257460936903954,
-0.01796281337738037,
0.01910444349050522,
-0.005048139486461878,
-0.05458412319421768,
-0.016482263803482056,
0.008464106358587742,
0.014457657001912594,
-0.02433096244931221,
-0.073028564453125,
-0.034266699105501175,
-0.004682461731135845,
0.034123994410037994,
0.03241155296564102,
0.01138061098754406,
0.05472682788968086,
-0.016348479315638542,
0.011719532310962677,
0.0106135793030262,
0.008722756989300251,
-0.0750620886683464,
0.0358542762696743,
0.04195485636591911,
-0.01117547508329153,
0.03481967747211456,
-0.01924714632332325,
0.01324467733502388,
-0.04323918744921684,
-0.005360303446650505,
0.05401330813765526,
0.06032794341444969,
-0.019675256684422493,
0.006934502627700567,
-0.005382601171731949,
-0.046521369367837906,
0.016839023679494858,
-0.009534383192658424,
0.03011045791208744,
-0.07177990674972534,
-0.03376723825931549,
-0.022636357694864273,
0.001816126168705523,
-0.040955930948257446,
0.02049580216407776,
-0.012227913364768028,
-0.040563493967056274,
0.031055867671966553,
0.02916504628956318,
0.0037303611170500517,
-0.034748323261737823,
0.011228988878428936,
-0.033571019768714905,
-0.02527637407183647,
0.0004891499993391335,
-0.03588995337486267,
-0.04409540817141533,
0.01044411864131689,
0.04116998612880707,
0.04987490549683571,
-0.012593591585755348,
-0.000870714895427227,
0.03956456854939461,
-0.02012120559811592,
0.028041254729032516,
-0.013226838782429695,
-0.0059355772100389,
-0.0034538728650659323,
-0.028950991109013557,
-0.04552244395017624,
-0.010310334153473377,
-0.03542616590857506,
0.03442724049091339,
0.06482310593128204,
0.019229307770729065,
-0.00007351185922743753,
-0.008468566462397575,
-0.05965010076761246,
0.05319276452064514,
0.025847187265753746,
0.030931003391742706,
0.04174080118536949,
-0.005173005163669586,
-0.03581859916448593,
0.04591488093137741,
-0.024009879678487778,
-0.04595055431127548,
-0.05126626417040825,
-0.10602876543998718,
-0.03494454175233841,
-0.0034873189870268106,
0.006047064438462257,
0.008584512397646904,
-0.031198572367429733,
-0.06553662568330765,
-0.0027091384399682283,
0.033535342663526535,
-0.07045989483594894,
-0.027470441535115242,
-0.02279689908027649,
-0.04159809648990631,
-0.031145058572292328,
0.015813341364264488,
0.0683550164103508,
-0.040813226252794266,
0.032358039170503616,
-0.03508724644780159,
-0.07920049130916595,
0.007041530217975378,
0.02579367347061634,
-0.034302376210689545,
0.0030101537704467773,
0.05090950429439545,
0.08348160237073898,
0.034373726695775986,
0.05255059525370598,
0.01467171311378479,
-0.026293136179447174,
-0.006274498533457518,
0.03408832103013992,
0.03633590042591095,
-0.027452602982521057,
0.04455919563770294,
0.024170421063899994,
-0.030716948211193085,
0.03332128748297691,
0.0743485689163208,
0.0032665743492543697,
0.026203947141766548,
0.00403360603377223,
-0.023831499740481377,
-0.0277023334056139,
-0.004441649187356234,
-0.022386625409126282,
-0.017989572137594223,
-0.01366386841982603,
0.017400918528437614,
0.03091316483914852,
-0.012120885774493217,
0.02115580625832081,
-0.06407391279935837,
0.010738445445895195,
0.002849612385034561,
-0.03720996156334877,
-0.08419511467218399,
0.019300660118460655,
0.037959154695272446,
-0.0547981783747673,
0.043702974915504456,
0.07245774567127228,
-0.007897751405835152,
0.014386305585503578,
0.04430946335196495,
-0.016660643741488457,
0.004713677801191807,
0.009168705902993679,
-0.03696022927761078,
0.007514236029237509,
0.000005988080829411047,
-0.003612184664234519,
0.040456466376781464,
-0.008968028239905834,
0.00403360603377223,
0.03173371031880379,
0.010818716138601303,
0.0006037030834704638,
0.028451528400182724,
0.0010468646651133895,
0.03251858055591583,
-0.021905001252889633,
-0.019603906199336052,
0.062076061964035034,
0.007514236029237509,
0.001859606127254665,
-0.05151599645614624,
0.021815810352563858,
-0.01562604308128357,
-0.022565005347132683,
-0.0057482789270579815,
-0.027024492621421814,
0.006894367281347513,
0.039350513368844986,
-0.02151256613433361,
-0.0022944060619920492,
0.007826399989426136,
-0.02370663359761238,
-0.050695449113845825,
0.0045442176051437855,
-0.010488714091479778,
-0.00208481028676033,
0.08811946958303452,
0.017757678404450417,
0.08911839127540588,
-0.01326251495629549,
-0.00691666454076767,
0.07384910434484482,
0.025561779737472534,
-0.0773453488945961,
-0.011121961288154125,
0.00833924114704132,
-0.05454844608902931,
-0.017249295487999916,
-0.0335175059735775,
0.06282525509595871,
0.03389210253953934,
0.009605735540390015,
-0.0022821426391601562,
-0.024973127990961075,
-0.015590366907417774,
-0.018961738795042038,
-0.05315708741545677,
-0.0018640656489878893,
0.008214375004172325,
-0.0002501493436284363,
-0.042097557336091995,
-0.02081688679754734,
0.05394195765256882,
-0.0006783994613215327,
0.011514395475387573,
0.008745054714381695,
0.051908429712057114,
0.02850504219532013,
0.008941271342337132,
-0.0016723077278584242,
-0.0017525784205645323,
-0.08348160237073898,
-0.007081665564328432,
0.015429825522005558,
0.07110206037759781,
0.007362613454461098,
0.038066182285547256,
0.0118711544200778,
0.03358885645866394,
-0.025740159675478935,
0.041883502155542374,
0.030752623453736305,
0.003110492369160056,
-0.026150433346629143,
0.005445033777505159,
-0.04256134480237961,
-0.09746655076742172,
0.009650330059230328,
-0.04266837239265442,
-0.024027716368436813,
0.009391680359840393,
-0.029254235327243805,
-0.003308939514681697,
-0.06357444822788239,
-0.029361262917518616,
0.0584014430642128,
0.019264984875917435,
0.001177304657176137,
-0.007951265200972557,
0.004981247242540121,
0.03763807192444801,
0.050731126219034195,
-0.03449859097599983,
-0.042061883956193924,
0.03596130385994911,
0.022493652999401093,
0.04534406587481499,
0.021637432277202606,
0.021173644810914993,
0.010479794815182686,
0.02304662950336933,
0.05030301585793495,
-0.0587582029402256,
-0.0005423851544037461,
0.05558304861187935,
0.07513344287872314,
-0.034338049590587616,
0.014109817333519459,
0.03553319349884987,
-0.03974295035004616,
0.026810437440872192,
-0.0362110361456871,
-0.034409403800964355,
0.013164405710995197,
-0.029575318098068237,
0.057830628007650375,
-0.018640656024217606,
-0.04313215985894203,
-0.03169803321361542,
0.031448304653167725,
0.05882955342531204,
-0.020692020654678345,
-0.005614494439214468,
-0.02231527306139469,
-0.047841377556324005,
0.010506551712751389,
-0.017606055364012718,
0.028701258823275566,
0.010952500626444817,
0.02627529762685299,
0.005092734470963478,
-0.0013969343854114413,
0.015447663143277168,
-0.0024883938021957874,
0.0015251445583999157,
0.055012233555316925,
0.005458412226289511,
-0.006555445957928896,
-0.023617444559931755,
0.04006403312087059,
0.005815171170979738,
-0.0518014021217823,
-0.033089395612478256,
0.038066182285547256,
0.019675256684422493,
0.023617444559931755,
0.05722413957118988,
-0.010051684454083443,
0.029058018699288368,
-0.024866100400686264,
0.06353877484798431,
-0.0038396185263991356,
-0.04088457673788071,
-0.028290987014770508
]
|
30,027 | zeroconf._utils.net | add_multicast_member | null | def add_multicast_member(
listen_socket: socket.socket,
interface: Union[str, Tuple[Tuple[str, int, int], int]],
) -> bool:
# This is based on assumptions in normalize_interface_choice
is_v6 = isinstance(interface, tuple)
err_einval = {errno.EINVAL}
if sys.platform == 'win32':
# No WSAEINVAL definition in typeshed
err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member
log.debug('Adding %r (socket %d) to multicast group', interface, listen_socket.fileno())
try:
if is_v6:
try:
mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6)
except OSError:
log.info(
'Unable to translate IPv6 address when adding %s to multicast group, '
'this can happen if IPv6 is disabled on the system',
interface,
)
return False
iface_bin = struct.pack('@I', cast(int, interface[1]))
_value = mdns_addr6_bytes + iface_bin
listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value)
else:
_value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface))
listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value)
except OSError as e:
_errno = get_errno(e)
if _errno == errno.EADDRINUSE:
log.info(
'Address in use when adding %s to multicast group, '
'it is expected to happen on some systems',
interface,
)
return False
if _errno == errno.EADDRNOTAVAIL:
log.info(
'Address not available when adding %s to multicast '
'group, it is expected to happen on some systems',
interface,
)
return False
if _errno in err_einval:
log.info('Interface of %s does not support multicast, ' 'it is expected in WSL', interface)
return False
if _errno == errno.ENOPROTOOPT:
log.info(
'Failed to set socket option on %s, this can happen if '
'the network adapter is in a disconnected state',
interface,
)
return False
if is_v6 and _errno == errno.ENODEV:
log.info(
'Address in use when adding %s to multicast group, '
'it is expected to happen when the device does not have ipv6',
interface,
)
return False
raise
return True
| (listen_socket: socket.socket, interface: Union[str, Tuple[Tuple[str, int, int], int]]) -> bool | [
0.004284590017050505,
0.07129108160734177,
-0.006501888856291771,
0.005789353046566248,
0.007247238885611296,
-0.05156508833169937,
-0.002932178322225809,
0.02480749599635601,
0.009052016772329807,
0.002449341583997011,
0.0064550116658210754,
0.033882949501276016,
0.03990200161933899,
-0.00836292002350092,
0.021207313984632492,
0.07129108160734177,
-0.019650986418128014,
-0.038814447820186615,
0.024263717234134674,
-0.017063356935977936,
-0.030095260590314865,
-0.01723211444914341,
0.017991527915000916,
-0.03086404874920845,
0.02902645617723465,
0.06236562877893448,
0.00014795664174016565,
0.030845297500491142,
0.07897896319627762,
0.007594131398946047,
-0.0580529123544693,
-0.06502826511859894,
-0.0016207845183089375,
-0.030414026230573654,
0.015488277189433575,
-0.01875094138085842,
-0.010603656992316246,
0.002454029396176338,
-0.08295416086912155,
0.04357718676328659,
0.0461273156106472,
-0.043539684265851974,
0.01762588508427143,
0.01441009808331728,
0.014916373416781425,
-0.008189473301172256,
-0.014475726522505283,
0.08910447359085083,
-0.023738691583275795,
-0.0184696763753891,
-0.035120513290166855,
0.007537878584116697,
-0.0026181002613157034,
0.022913649678230286,
-0.09495476633310318,
0.011663085781037807,
0.02347617782652378,
0.019425975158810616,
0.0028923326171934605,
0.0003700380912050605,
-0.025595035403966904,
-0.029964003711938858,
0.047852400690317154,
0.013135034590959549,
-0.018685312941670418,
-0.02244487591087818,
-0.07875395566225052,
-0.026682589203119278,
-0.024638736620545387,
0.03187660127878189,
-0.021769842132925987,
0.054302725940942764,
-0.010331768542528152,
0.0053674569353461266,
-0.010444274172186852,
0.09547979384660721,
-0.005658096633851528,
-0.006239375565201044,
0.023944951593875885,
0.023851197212934494,
0.07747888565063477,
0.019838495180010796,
0.03536427393555641,
-0.014447600580751896,
0.05321517214179039,
0.015160135924816132,
0.013856945559382439,
0.01210373267531395,
-0.032551635056734085,
-0.09037953615188599,
-0.00912233255803585,
0.026307569816708565,
0.0498025007545948,
0.045677293092012405,
-0.040539536625146866,
-0.00014356189058162272,
-0.0239824540913105,
-0.025576284155249596,
-0.0406145378947258,
-0.0030024945735931396,
-0.040164515376091,
0.0182446651160717,
-0.014288216829299927,
-0.04481475055217743,
0.04683985188603401,
-0.01000362727791071,
-0.004861181601881981,
0.007355056703090668,
-0.10238014161586761,
0.01703523099422455,
0.019932251423597336,
-0.04050203412771225,
-0.0009404768934473395,
-0.003129063406959176,
0.02081354521214962,
0.04653983563184738,
-0.00039054694934748113,
-0.04912746697664261,
-0.0010248561156913638,
0.01978224329650402,
0.005925297271460295,
0.019032204523682594,
0.023963702842593193,
-0.006295628380030394,
0.028576433658599854,
-0.04252713546156883,
0.0053674569353461266,
-0.005189322866499424,
0.11325568705797195,
-0.049464982002973557,
0.03392045199871063,
-0.020663537085056305,
-0.02377619408071041,
0.04027702286839485,
-0.025876298546791077,
-0.01015363447368145,
0.007350368890911341,
0.006445636041462421,
-0.020363522693514824,
-0.02595130354166031,
-0.03189535066485405,
-0.0010682176798582077,
0.014269466511905193,
0.04387720301747322,
-0.017663385719060898,
0.0008771924767643213,
-0.013735064305365086,
0.027413876727223396,
-0.013735064305365086,
-0.08295416086912155,
0.03971449285745621,
-0.07950399070978165,
-0.05175259709358215,
0.020026005804538727,
-0.027338871732354164,
0.018300918862223625,
-0.03412671387195587,
0.0008016027277335525,
0.03260788694024086,
-0.030189014971256256,
-0.06285315752029419,
0.007945711724460125,
-0.03564554080367088,
0.07005351781845093,
0.0035392402205616236,
0.00016494968440383673,
0.04458973929286003,
0.002197375986725092,
0.009314529597759247,
0.06247813627123833,
-0.0005604773759841919,
0.043839700520038605,
0.04736487567424774,
-0.028970204293727875,
-0.020232265815138817,
0.03560803830623627,
-0.018600933253765106,
-0.009183273650705814,
-0.006009676493704319,
0.025820046663284302,
-0.003295477945357561,
-0.013847569935023785,
0.040352024137973785,
-0.059027962386608124,
-0.023007404059171677,
0.07511626929044724,
0.00014217021816875786,
0.033470429480075836,
0.04320216923952103,
-0.053065162152051926,
0.020944802090525627,
-0.055015262216329575,
-0.006586268078535795,
-0.01998850330710411,
-0.033789195120334625,
0.016444575041532516,
-0.03127656877040863,
0.04080204665660858,
-0.04541477933526039,
0.005536215379834175,
-0.0340704619884491,
0.01610705815255642,
-0.04758988693356514,
0.023213665932416916,
-0.01723211444914341,
-0.06551578640937805,
-0.040877051651477814,
0.05066504329442978,
-0.0022313620429486036,
-0.0028009219095110893,
-0.017897773534059525,
-0.002287614857777953,
0.04470224305987358,
0.0844542384147644,
0.020457277074456215,
-0.02780764549970627,
-0.02585754729807377,
0.05227762460708618,
-0.007312866859138012,
0.040952056646347046,
0.03313291445374489,
-0.0559903122484684,
0.03249537944793701,
0.015966426581144333,
0.018844695761799812,
-0.035120513290166855,
-0.0039376975037157536,
0.008470737375319004,
0.03885195031762123,
0.03446422889828682,
0.12428123503923416,
-0.0406145378947258,
0.0182446651160717,
-0.019425975158810616,
-0.06577830016613007,
0.006609706673771143,
0.01896657794713974,
-0.014513228088617325,
0.07309117168188095,
0.015394522808492184,
-0.024732491001486778,
-0.01703523099422455,
0.01414758525788784,
0.04365219175815582,
0.05119007080793381,
0.03474549576640129,
-0.012628759257495403,
0.0057424758560955524,
0.03217661380767822,
0.07545378804206848,
-0.03930197283625603,
0.05752788856625557,
-0.0693034753203392,
0.012572506442666054,
-0.029551483690738678,
-0.01322878897190094,
-0.13568180799484253,
0.025801295414566994,
0.01618206314742565,
0.004361937753856182,
0.027245117351412773,
0.025913801044225693,
0.011316193267703056,
0.001447338261641562,
-0.036751843988895416,
-0.008161347359418869,
-0.017916524782776833,
0.052952658385038376,
-0.020251017063856125,
0.02471373975276947,
0.11820593476295471,
0.015047630295157433,
0.02510751038789749,
0.0018844696460291743,
0.024376222863793373,
-0.0037759707774966955,
0.01753213070333004,
0.015282017178833485,
-0.012094357050955296,
-0.05145258083939552,
0.040877051651477814,
0.04601480811834335,
-0.017710264772176743,
0.013781941495835781,
-0.06161559373140335,
0.035739295184612274,
0.07669135183095932,
0.05565279349684715,
-0.014991377480328083,
-0.012910023331642151,
0.006056554149836302,
-0.04668984189629555,
-0.00294858543202281,
0.0015692193992435932,
-0.04965249076485634,
0.03793315589427948,
0.01579766720533371,
0.051115065813064575,
0.027151362970471382,
-0.026626337319612503,
-0.04987750202417374,
0.010688036680221558,
-0.02942022681236267,
0.006389383226633072,
0.011822468601167202,
0.0031853162217885256,
-0.017513379454612732,
-0.0057424758560955524,
0.005503401160240173,
0.03725811839103699,
-0.0406145378947258,
-0.046727344393730164,
0.01000362727791071,
-0.05546528473496437,
0.07564129680395126,
0.04627732187509537,
0.0315578356385231,
0.02932647243142128,
-0.012122483924031258,
0.025820046663284302,
-0.0036165877245366573,
0.025557532906532288,
0.007987900637090206,
-0.004390064161270857,
0.03558928519487381,
0.03097655437886715,
0.02840767614543438,
-0.005676847416907549,
0.026626337319612503,
0.016557080671191216,
-0.06367819756269455,
-0.02932647243142128,
-0.01276939082890749,
0.010378645732998848,
-0.01895720139145851,
0.033282920718193054,
0.0026931038592010736,
0.011578706093132496,
0.009647359140217304,
-0.02040102332830429,
-0.02278239279985428,
0.016472700983285904,
0.0019524417584761977,
0.012028728611767292,
0.07421622425317764,
0.005058066453784704,
-0.01918221265077591,
0.06881595402956009,
-0.0777789056301117,
0.020851045846939087,
0.027038857340812683,
0.038514431565999985,
-0.018319670110940933,
-0.001264516613446176,
0.008592618629336357,
0.002911083633080125,
-0.01066928543150425,
-0.014738239347934723,
0.0615030862390995,
0.04398970678448677,
0.001163144363090396,
0.043727196753025055,
0.038083162158727646,
-0.022632386535406113,
-0.050402529537677765,
0.009019202552735806,
-0.03692060336470604,
0.02223861590027809,
0.07129108160734177,
-0.05786540359258652,
0.01987599767744541,
-0.0001144100388046354,
-0.00045851912000216544,
-0.008123844861984253,
-0.009267652407288551,
0.03285164758563042,
0.045789796859025955,
0.033357925713062286,
-0.06214061751961708,
-0.05066504329442978,
-0.05216511711478233,
-0.016257066279649734,
0.021394824609160423,
0.03230787068605423,
0.06416571885347366,
0.019913500174880028,
0.04110206291079521,
0.0032040670048445463,
-0.02634507231414318,
0.017044605687260628,
-0.031745344400405884,
0.03468924015760422,
0.020944802090525627,
-0.017400873824954033,
-0.04357718676328659,
-0.002561847446486354,
-0.021001053974032402,
0.003548615612089634,
-0.027545131742954254,
0.004204898606985807,
0.008067592047154903,
0.011728713288903236,
-0.07346618920564651,
0.03165159001946449,
0.010369270108640194,
0.04755238816142082,
0.03990200161933899,
-0.04458973929286003,
0.01553515437990427,
-0.05786540359258652,
-0.01081929262727499,
0.021376073360443115,
-0.06787841022014618,
0.025876298546791077,
-0.002428246894851327,
0.026795094832777977,
0.004706486128270626,
0.02900770679116249,
-0.005559653975069523,
0.014156960882246494,
-0.00321578630246222,
-0.026832597330212593,
-0.005456523969769478,
0.032551635056734085,
-0.018197787925601006,
-0.027507631108164787,
-0.016116434708237648,
-0.017963401973247528,
-0.030789045616984367,
-0.02418871410191059,
0.01978224329650402,
0.019969752058386803,
0.043014660477638245,
0.023907450959086418,
0.021694839000701904,
-0.021919850260019302,
-0.03836442530155182,
-0.05021502077579498,
-0.03596430644392967,
-0.01580704376101494,
0.02296990342438221,
-0.034314222633838654,
-0.04646483063697815,
-0.00464085815474391,
-0.04436472803354263,
-0.01833842135965824,
-0.0040619224309921265,
0.005269014276564121,
-0.027188865467905998,
-0.01126931607723236,
0.05895295739173889,
-0.03806440904736519,
-0.018844695761799812,
0.03806440904736519,
0.04653983563184738,
-0.07920397818088531,
-0.049164969474077225,
0.031239068135619164,
0.010022378526628017,
-0.0422271192073822,
-0.013650685548782349,
0.0195009782910347,
-0.03332042321562767,
0.04511476308107376,
-0.021488578990101814,
0.085354283452034,
0.08002901822328568,
-0.009816117584705353,
-0.024732491001486778,
0.0005660440656356514,
0.03866444155573845,
-0.04848993569612503,
-0.006722212303429842,
-0.052052613347768784,
0.027151362970471382,
0.014550730586051941,
-0.0012504534097388387,
-0.0037525321822613478,
-0.018825944513082504,
-0.004249432124197483,
0.042002107948064804,
0.03341417759656906,
0.015844544395804405,
-0.018225915729999542,
-0.020869797095656395,
-0.023401174694299698,
0.00720504904165864,
-0.031239068135619164,
-0.06926597654819489,
0.02480749599635601,
-0.002086042193695903,
0.013322543352842331,
-0.010106757283210754,
-0.005779977422207594,
0.09502977132797241,
-0.026082558557391167,
-0.030826548114418983,
-0.02070103958249092,
0.06727837771177292,
-0.028220167383551598,
-0.020794793963432312,
0.015619534067809582,
-0.05344018340110779,
-0.027095109224319458,
0.022594884037971497,
-0.010256764478981495,
-0.029513981193304062,
-0.0017180549912154675,
0.0017274304991587996,
-0.004472099710255861,
0.011466200463473797,
0.04308966174721718,
-0.010678661055862904,
0.036039307713508606,
0.058615442365407944,
0.01426009088754654,
0.03107030875980854,
-0.034182965755462646,
-0.0317828468978405,
-0.040164515376091,
0.031220316886901855,
0.015103883109986782,
-0.039827000349760056,
0.003590805223211646,
-0.031332824379205704,
-0.00041193474316969514,
0.02542627602815628,
0.010313017293810844,
-0.004338499158620834,
-0.024132462218403816,
-0.042902152985334396,
0.052052613347768784,
-0.03320791572332382,
-0.021863598376512527,
0.0038509746082127094,
-0.024995004758238792,
0.04338967800140381,
0.03596430644392967,
-0.04297715798020363,
-0.03536427393555641,
-0.033357925713062286,
-0.003672840539366007,
-0.06532827764749527,
-0.06832843273878098,
-0.04646483063697815,
0.015338269993662834,
0.018891572952270508,
-0.006942535750567913,
0.04878994822502136,
-0.030732791870832443,
-0.05100255832076073,
0.058090414851903915,
-0.018066531047225,
0.05734037980437279,
0.05145258083939552,
0.004336155019700527,
-0.006206561345607042,
-0.025876298546791077,
-0.029663989320397377,
0.05715286731719971,
-0.06727837771177292,
-0.007012852001935244,
0.03168908879160881,
0.005329954903572798,
-0.041064560413360596,
-0.016678962856531143,
-0.0459023043513298,
-0.029495229944586754,
-0.017250865697860718,
0.029495229944586754,
-0.04410221427679062,
-0.023907450959086418,
-0.051527585834264755,
-0.04518976807594299,
-0.06589080393314362,
0.0067737773060798645,
-0.026832597330212593,
0.03558928519487381,
0.049164969474077225,
-0.02820141613483429,
-0.04826492443680763,
0.03558928519487381,
0.06446573883295059,
0.021038556471467018,
0.03684559836983681,
0.029776494950056076,
-0.047852400690317154,
-0.0059487358666956425,
-0.09847994148731232,
0.02461998537182808,
-0.009253589436411858,
0.029701489955186844,
0.021788593381643295,
0.006276877596974373,
0.013847569935023785,
0.003171253018081188,
0.024995004758238792,
0.018300918862223625,
-0.005911234300583601,
-0.0026251317467540503,
-0.01395069994032383,
0.002798578003421426,
0.011213063262403011,
-0.06142808496952057,
-0.008409797213971615,
0.011869345791637897,
-0.07421622425317764,
0.004758051130920649,
-0.05940297991037369,
-0.024751242250204086,
-0.09765490144491196,
0.05752788856625557,
-0.03322666883468628,
-0.01896657794713974,
0.0036892476491630077,
-0.04462724179029465,
-0.0754912868142128,
0.05044003203511238,
0.01219748705625534,
-0.014888247475028038,
0.027020106092095375,
0.017082108184695244,
0.009872370399534702,
-0.03892695531249046,
0.016866471618413925,
-0.009937998838722706,
-0.0173258688300848,
-0.023907450959086418,
0.0040712980553507805,
0.06889095902442932,
0.018197787925601006,
0.01867593824863434,
0.06247813627123833,
-0.03821441903710365,
0.032551635056734085,
-0.06739088147878647,
0.010706786997616291,
0.012731889262795448,
-0.011231813579797745,
-0.02983274683356285,
-0.018488427624106407,
-0.06397821009159088,
0.054790250957012177,
-0.07350368797779083,
0.023869948461651802,
0.05032752454280853,
0.06435322761535645,
-0.023419925943017006,
0.02173234149813652,
-0.03817691653966904,
0.0192759670317173,
0.005789353046566248,
-0.015844544395804405,
0.006876907777041197,
0.08550429344177246,
-0.03812066465616226,
0.007294116076081991,
0.0028923326171934605,
-0.044664740562438965,
-0.04113956540822983,
-0.027432626113295555,
0.004694766830652952,
-0.02531377039849758,
-0.031745344400405884,
0.005184635054320097,
0.008873882703483105,
0.0016993040917441249,
-0.01532889436930418,
0.02377619408071041,
-0.007247238885611296,
0.02092605084180832,
0.007650384213775396,
-0.005498713348060846,
0.06390320509672165,
0.006300316192209721,
-0.016275817528367043,
0.011672460474073887,
-0.035326771438121796,
-0.06409071385860443,
-0.0020379929337650537,
0.05662784352898598,
-0.005522152408957481,
-0.02388869971036911,
0.008184785954654217,
-0.020232265815138817,
0.011981851421296597,
0.04417721927165985,
-0.04185210168361664,
0.023157412186264992,
-0.0369393527507782,
0.05014001578092575,
-0.010022378526628017,
-0.010781791061162949,
0.019744740799069405,
-0.02184484712779522,
-0.015638284385204315,
-0.01661333441734314,
0.007444123737514019,
-0.04698985815048218,
-0.0007980869268067181,
0.004083017352968454,
0.03577679768204689,
-0.030170263722538948,
-0.04443972930312157,
-0.022182364016771317,
-0.020682288333773613,
-0.08407922089099884,
0.03024526871740818,
0.05666534602642059,
-0.02769513987004757,
0.00018853486108127981,
0.015000753104686737,
-0.007092543411999941,
-0.004373657051473856,
0.016463326290249825,
-0.023569932207465172,
0.020176012068986893,
0.017560256645083427,
-0.0372956208884716,
-0.007294116076081991,
0.041477080434560776,
0.013050654903054237,
-0.0025430964305996895,
-0.02563253603875637,
-0.05092755705118179,
-0.09037953615188599,
0.009042641147971153,
-0.046577338129282,
-0.01086617074906826,
0.04181459918618202,
0.02859518490731716,
0.05719036981463432,
0.0026673213578760624,
0.1011800765991211,
0.022482378408312798,
-0.0090332655236125,
-0.028351422399282455,
0.0012024041498079896,
-0.09307967126369476,
0.006928472779691219,
0.007678510621190071,
-0.028332673013210297,
0.061053063720464706,
-0.030826548114418983,
-0.04211461544036865,
-0.024282468482851982,
-0.004129895009100437,
0.014456975273787975,
-0.013913198374211788,
0.005761226639151573,
0.010641159489750862,
-0.004284590017050505,
0.005212761461734772,
0.0015715633053332567,
0.05674034729599953,
0.024319970980286598,
-0.04646483063697815,
0.022707389667630196,
0.05749038606882095,
-0.021469827741384506,
-0.020269768312573433,
0.025463778525590897,
0.021207313984632492,
-0.04185210168361664,
-0.06825342774391174,
0.039114464074373245,
-0.04984000325202942,
0.0076128821820020676
]
|
30,028 | zeroconf._utils.net | autodetect_ip_version | Auto detect the IP version when it is not provided. | def autodetect_ip_version(interfaces: InterfacesType) -> IPVersion:
"""Auto detect the IP version when it is not provided."""
if isinstance(interfaces, list):
has_v6 = any(
isinstance(i, int) or (isinstance(i, str) and ipaddress.ip_address(i).version == 6)
for i in interfaces
)
has_v4 = any(isinstance(i, str) and ipaddress.ip_address(i).version == 4 for i in interfaces)
if has_v4 and has_v6:
return IPVersion.All
if has_v6:
return IPVersion.V6Only
return IPVersion.V4Only
| (interfaces: Union[Sequence[Union[str, int, Tuple[Tuple[str, int, int], int]]], zeroconf._utils.net.InterfaceChoice]) -> zeroconf._utils.net.IPVersion | [
0.04926363751292229,
-0.04841235280036926,
-0.050670113414525986,
-0.04685782641172409,
-0.033792413771152496,
-0.027611326426267624,
0.04089881479740143,
-0.08135347813367844,
0.022022439166903496,
0.04704288765788078,
0.02609381265938282,
-0.007097146939486265,
-0.08475862443447113,
-0.03353332728147507,
0.05281683802604675,
-0.004221738316118717,
-0.0028337696567177773,
0.06281021237373352,
0.04571044072508812,
-0.03412552550435066,
0.00027846122975461185,
0.011732962913811207,
-0.005977518856525421,
0.025520119816064835,
0.07358085364103317,
0.002748178318142891,
0.07358085364103317,
-0.039381302893161774,
0.02837008237838745,
0.023725014179944992,
-0.06429071724414825,
0.014027738012373447,
0.011288813315331936,
0.0356060266494751,
0.019986750558018684,
0.03853001445531845,
0.005311293993145227,
0.04596952721476555,
-0.04178711399435997,
0.03421805799007416,
-0.027851907536387444,
0.0018506250344216824,
0.001081458991393447,
-0.06047842651605606,
-0.029036307707428932,
-0.01872832514345646,
-0.05870182812213898,
-0.04297151416540146,
0.0406397245824337,
0.006329137831926346,
0.035457976162433624,
-0.0474870391190052,
0.03331125155091286,
0.0019581925589591265,
-0.05496356263756752,
0.034495651721954346,
0.037327107042074203,
0.07206334173679352,
-0.020134801045060158,
0.0006141762132756412,
-0.0322934091091156,
-0.06936142593622208,
0.004043615888804197,
0.025723688304424286,
0.028203526511788368,
0.025520119816064835,
0.007911422289907932,
-0.033163201063871384,
-0.03815988823771477,
0.058109626173973083,
0.005847975146025419,
-0.02496493235230446,
-0.042823463678359985,
-0.024058125913143158,
0.04981882497668266,
0.10000777989625931,
-0.03623523935675621,
-0.011677443981170654,
0.024631818756461143,
-0.01732185110449791,
0.04841235280036926,
-0.014925290830433369,
0.04045466333627701,
-0.05166945233941078,
0.06869520246982574,
-0.0480792373418808,
-0.010927940718829632,
-0.0015325489221140742,
0.045562390238046646,
-0.029647013172507286,
-0.039825450628995895,
0.00922073982656002,
-0.018811604008078575,
0.04371176287531853,
-0.02285522036254406,
0.032219383865594864,
0.04141698777675629,
-0.0820937305688858,
0.005107725039124489,
-0.057110290974378586,
0.027426263317465782,
0.03277457132935524,
-0.10896480083465576,
-0.08438850194215775,
0.002528416458517313,
-0.006144075188785791,
-0.02052343264222145,
0.04793119058012962,
-0.016294753178954124,
-0.0466727651655674,
0.007425633259117603,
-0.06547511368989944,
0.011140762828290462,
0.006491067353636026,
0.04819027706980705,
-0.0177567470818758,
-0.004658948630094528,
-0.015128860250115395,
0.039825450628995895,
0.010863169096410275,
-0.01419429387897253,
0.030831413343548775,
-0.06147776544094086,
0.03793781250715256,
0.003583272686228156,
-0.004647382069379091,
-0.01774749346077442,
0.015859857201576233,
0.028943775221705437,
-0.039381302893161774,
0.06081153824925423,
-0.02516850084066391,
-0.054149288684129715,
0.007383993826806545,
-0.014916038140654564,
-0.04782015085220337,
-0.05370514094829559,
0.042379312217235565,
0.015119606629014015,
-0.07720807939767838,
-0.06025635078549385,
-0.0037405758630484343,
0.03144212067127228,
-0.003779901657253504,
-0.007485778536647558,
0.06269917637109756,
0.05725833773612976,
-0.009234619326889515,
0.005584260914474726,
-0.03853001445531845,
0.05514862760901451,
0.0034861150197684765,
-0.038455989211797714,
-0.054149288684129715,
-0.050411026924848557,
-0.049966875463724136,
-0.0014215114060789347,
-0.09149490296840668,
-0.011344331316649914,
-0.06643743813037872,
0.006486441008746624,
-0.0024821509141474962,
-0.014906784519553185,
-0.035883620381355286,
0.0645868182182312,
-0.025927256792783737,
-0.07491330057382584,
-0.00663449103012681,
0.03072037547826767,
0.04208321496844292,
-0.02885124459862709,
0.05559277534484863,
-0.02402111329138279,
-0.02587173879146576,
0.016109691932797432,
0.05348306521773338,
-0.005047579761594534,
-0.03853001445531845,
0.0306833628565073,
0.06192191317677498,
0.03482876345515251,
-0.0161467045545578,
-0.029369419440627098,
0.005343679804354906,
0.03690146282315254,
0.07698599994182587,
0.0011369778076186776,
0.04297151416540146,
-0.03303365781903267,
-0.015628527849912643,
0.03580959513783455,
-0.015813590958714485,
0.06003427878022194,
-0.016202222555875778,
-0.026686012744903564,
-0.013861182145774364,
0.010641094297170639,
0.025668170303106308,
-0.0456734262406826,
-0.009799059480428696,
-0.005163243971765041,
0.037715740501880646,
-0.02355845645070076,
0.04300852492451668,
-0.037271589040756226,
0.01501782238483429,
-0.01827492192387581,
-0.04482213780283928,
0.03864105045795441,
-0.05074413865804672,
0.002940180478617549,
-0.004240244626998901,
-0.032459963113069534,
0.0027666843961924314,
-0.03897416219115257,
-0.015249150805175304,
0.06355046480894089,
0.020615963265299797,
0.012621263042092323,
0.008114990778267384,
0.048634424805641174,
-0.003948771394789219,
-0.012204872444272041,
0.00646330788731575,
0.018358200788497925,
0.0009825662709772587,
-0.0313866026699543,
-0.021189656108617783,
-0.024539288133382797,
0.01753467321395874,
0.07757820188999176,
-0.025760700926184654,
0.019302019849419594,
-0.011714456602931023,
0.04911559075117111,
0.03394046425819397,
-0.008327812887728214,
-0.02981356903910637,
0.03253398835659027,
-0.018524756655097008,
0.007837397046387196,
0.005093845538794994,
-0.00589424092322588,
0.011844000779092312,
0.052742812782526016,
-0.06884325295686722,
-0.09541822969913483,
-0.00507533922791481,
-0.0166001059114933,
-0.03493979945778847,
-0.024058125913143158,
-0.03225639462471008,
0.0009062279714271426,
0.003907131962478161,
0.022059449926018715,
0.026056800037622452,
-0.03488428145647049,
-0.030627844855189323,
0.08845987915992737,
0.016896206885576248,
-0.011686697602272034,
-0.0009692648891359568,
-0.035939138382673264,
0.000615911150816828,
-0.04822728782892227,
-0.008600779809057713,
0.000633839110378176,
0.0664004236459732,
-0.026926593855023384,
0.008170509710907936,
0.06591926515102386,
0.012954375706613064,
-0.030997969210147858,
-0.03051680698990822,
0.04878247529268265,
-0.025316551327705383,
0.01444412861019373,
0.004968928173184395,
0.010761384852230549,
-0.02859215810894966,
0.04915260151028633,
0.04130595177412033,
-0.048634424805641174,
0.023410407826304436,
0.01280632521957159,
0.028758713975548744,
0.008813601918518543,
-0.01350030954927206,
-0.01943156309425831,
-0.016674131155014038,
0.05781352519989014,
-0.008781216107308865,
0.017728988081216812,
0.016035666689276695,
-0.018182391300797462,
0.049744803458452225,
0.050411026924848557,
0.031238550320267677,
0.07110101729631424,
-0.03479175269603729,
-0.0488935150206089,
-0.0024335719645023346,
0.05004090070724487,
-0.012278897687792778,
0.01913546398282051,
-0.046968862414360046,
-0.016054172068834305,
-0.055777840316295624,
-0.009715781547129154,
-0.0011092183412984014,
-0.042120225727558136,
-0.031331080943346024,
-0.017497660592198372,
-0.0633653998374939,
0.048116251826286316,
-0.03181224316358566,
0.015767324715852737,
0.012991388328373432,
-0.015415706671774387,
-0.014573672786355019,
0.00491340970620513,
0.10474538058042526,
-0.029165850952267647,
0.01803434081375599,
-0.04756106436252594,
-0.014786493964493275,
0.025760700926184654,
-0.031978800892829895,
-0.031960293650627136,
0.04389682784676552,
-0.016507575288414955,
-0.021319201216101646,
0.03945532813668251,
-0.003661924274638295,
0.03368137776851654,
0.0020345309749245644,
0.03255249559879303,
0.017497660592198372,
0.008614659309387207,
0.04730197787284851,
0.06480889022350311,
-0.06891727447509766,
0.01027096901088953,
0.03394046425819397,
-0.016794422641396523,
0.035402458161115646,
0.010307981632649899,
0.07013869285583496,
-0.052113600075244904,
0.010594828054308891,
-0.052742812782526016,
-0.001034615095704794,
0.022337043657898903,
0.015535997226834297,
0.011335078626871109,
-0.06269917637109756,
-0.001070470898412168,
-0.0008634322439320385,
0.10407915711402893,
-0.002018338069319725,
-0.03804885223507881,
0.024354225024580956,
-0.01804359443485737,
-0.02285522036254406,
0.007957687601447105,
0.0198201946914196,
0.03482876345515251,
-0.02796294540166855,
0.0332002118229866,
-0.04941168799996376,
-0.0332927443087101,
0.026389913633465767,
-0.022744182497262955,
-0.09704677760601044,
0.04918961599469185,
-0.012871097773313522,
0.01987571269273758,
0.025446094572544098,
-0.012029062956571579,
0.0017858531791716814,
-0.0742470771074295,
-0.010696613229811192,
0.00936878938227892,
-0.0025631156750023365,
0.036124199628829956,
-0.008795095607638359,
-0.004691334441304207,
-0.015869110822677612,
0.010474537499248981,
0.04160205274820328,
-0.03993649035692215,
0.038937151432037354,
-0.04252736270427704,
-0.00019373731629457325,
-0.0028638422954827547,
0.05222463980317116,
-0.03373689576983452,
0.0023688001092523336,
0.013083918951451778,
-0.03377390652894974,
-0.01643355004489422,
0.02613082528114319,
0.044229939579963684,
0.0480792373418808,
0.009058809839189053,
0.00982681941241026,
0.10022985190153122,
-0.019339032471179962,
-0.026278875768184662,
-0.0686211809515953,
-0.008526754565536976,
0.037327107042074203,
-0.026167837902903557,
-0.04337865114212036,
0.012010556645691395,
0.13020998239517212,
0.011510888114571571,
0.04711691290140152,
-0.001910770428366959,
-0.02886975184082985,
0.0034861150197684765,
-0.011020472273230553,
0.008938519284129143,
0.04774612560868263,
-0.02104160748422146,
0.01235292199999094,
-0.003312618937343359,
-0.011603418737649918,
0.014388609677553177,
-0.025742195546627045,
0.05751742795109749,
-0.008827481418848038,
0.03025772050023079,
-0.042564377188682556,
-0.016988737508654594,
-0.004073688294738531,
0.05500057712197304,
-0.020023763179779053,
-0.005352932959794998,
-0.03688295930624008,
0.01844147965312004,
-0.00014964038564357907,
-0.027407757937908173,
0.04319358989596367,
-0.019949737936258316,
-0.0019466262310743332,
-0.03717905655503273,
0.011187028139829636,
-0.08764560520648956,
-0.06214398890733719,
-0.06773287802934647,
-0.06081153824925423,
-0.03664237633347511,
0.01617446355521679,
0.03530992567539215,
0.014934544451534748,
-0.04252736270427704,
0.04596952721476555,
0.005940506234765053,
-0.03073888272047043,
0.009401175193488598,
0.01003038790076971,
0.011955037713050842,
0.007309969048947096,
-0.020875051617622375,
0.00519562978297472,
-0.004587236791849136,
-0.06103361397981644,
0.01596164144575596,
0.011677443981170654,
0.06814001500606537,
-0.003793781390413642,
0.0507071278989315,
0.011742215603590012,
-0.04371176287531853,
0.02054193802177906,
0.05474149063229561,
0.001097652013413608,
0.014397863298654556,
-0.01872832514345646,
-0.0026834062300622463,
0.04430396482348442,
-0.00026313576381653547,
-0.02559414505958557,
-0.0006332607590593398,
-0.06851013749837875,
-0.04600653797388077,
0.015647035092115402,
-0.08505472540855408,
-0.0017384309321641922,
-0.02218899503350258,
0.011834747157990932,
-0.03164568915963173,
-0.005820215679705143,
0.03708652779459953,
-0.04385981336236,
0.0005404403782449663,
-0.009415054693818092,
0.059701163321733475,
-0.018635794520378113,
0.027870412915945053,
-0.011575659736990929,
-0.0014909098390489817,
-0.002674153307452798,
0.033829424530267715,
-0.033607352524995804,
0.026667507365345955,
0.009068062528967857,
0.014962303452193737,
0.03114601969718933,
-0.03286710008978844,
-0.03331125155091286,
0.06440175324678421,
0.04415591433644295,
0.03340378403663635,
0.007467272225767374,
-0.001339389942586422,
-0.020727001130580902,
0.0023121247068047523,
-0.0161467045545578,
-0.03525440767407417,
-0.005514862481504679,
0.025908751413226128,
-0.006606731563806534,
0.02744477055966854,
0.03114601969718933,
0.0201162938028574,
-0.03808586299419403,
0.016896206885576248,
-0.002648707013577223,
-0.001016687136143446,
0.04411889985203743,
-0.008933892473578453,
0.04252736270427704,
-0.0019766988698393106,
-0.012103088200092316,
-0.019894219934940338,
-0.004073688294738531,
-0.03617972135543823,
-0.03669789433479309,
0.005440837703645229,
-0.010465284809470177,
-0.06999064236879349,
-0.009984122589230537,
-0.002472897758707404,
-0.0233363825827837,
-0.012704540975391865,
0.0692133754491806,
0.0006078146980144083,
-0.027555806562304497,
-0.053890202194452286,
0.0374196395277977,
0.025575637817382812,
-0.03295963257551193,
0.015249150805175304,
0.005089218728244305,
0.0022438829764723778,
0.04045466333627701,
0.008952398784458637,
-0.005431584548205137,
-0.015378694050014019,
-0.0050429534167051315,
0.053409039974212646,
0.015554503537714481,
-0.055962901562452316,
0.005311293993145227,
-0.014462634921073914,
-0.0100581469014287,
-0.0011317728785797954,
-0.006851939484477043,
0.01844147965312004,
-0.06710366159677505,
0.04226827621459961,
-0.05418630316853523,
-0.01935753785073757,
0.0046658883802592754,
-0.0051030986942350864,
0.008637792430818081,
0.01844147965312004,
0.0024705843534320593,
-0.023484431207180023,
-0.017229318618774414,
0.04067673906683922,
-0.04230529069900513,
0.0531129390001297,
0.011381343938410282,
0.02539057657122612,
-0.0027851907070726156,
-0.026186345145106316,
0.024298707023262978,
-0.05285385251045227,
-0.01892264187335968,
0.012158606201410294,
0.056444063782691956,
-0.03134958818554878,
0.019764674827456474,
0.018848616629838943,
-0.0040482422336936,
-0.011001965962350368,
-0.04967077821493149,
-0.0067085158079862595,
0.02098608762025833,
-0.013009894639253616,
-0.06410565227270126,
0.07713405042886734,
0.005815589334815741,
-0.08416642993688583,
0.035457976162433624,
0.04893052577972412,
-0.04415591433644295,
0.042564377188682556,
0.05973817780613899,
-0.003222400788217783,
-0.028481120243668556,
0.01489753182977438,
0.027574313804507256,
-0.006046917289495468,
0.03536544367671013,
-0.059664152562618256,
-0.03297813981771469,
-0.015073341317474842,
0.06114465370774269,
0.04252736270427704,
-0.028166513890028,
0.02007928118109703,
0.009669516235589981,
-0.07572757452726364,
-0.011501634493470192,
0.009762046858668327,
0.05611095204949379,
0.09356760233640671,
0.005116978194564581,
0.058738838881254196,
0.029221368953585625,
-0.04274943843483925,
-0.024761363863945007,
0.025520119816064835,
-0.01754392497241497,
-0.00021542432659771293,
0.02794443815946579,
-0.015619275160133839,
0.026408419013023376,
0.049781814217567444,
0.023854557424783707,
0.06691860407590866,
-0.005339053459465504,
-0.029684025794267654,
-0.014925290830433369,
0.040306612849235535,
0.009322524070739746,
-0.03434760123491287,
-0.031071994453668594,
0.034551169723272324,
0.0003883421013597399,
-0.05055907741189003,
-0.004545597825199366,
-0.0006292125326581299,
0.01822865754365921,
0.002040314022451639,
-0.026167837902903557,
-0.06266216188669205,
0.023650988936424255,
-0.014592178165912628,
0.02305878885090351,
-0.0029910728335380554,
0.016276247799396515,
0.008179762400686741,
-0.054149288684129715,
-0.014555166475474834,
-0.03671640157699585,
0.020190319046378136,
-0.01166819129139185,
0.03201581537723541,
-0.009378042072057724,
0.001411101664416492,
-0.0021594481077045202,
-0.02973954565823078,
-0.010076653212308884,
-0.036808934062719345,
0.004587236791849136,
0.06899130344390869,
-0.055555764585733414,
0.011353584937751293,
-0.032626520842313766,
-0.06373552978038788,
-0.06003427878022194,
0.005019820295274258,
0.03630926460027695,
0.0021744845435023308,
0.03986246511340141,
-0.016553841531276703,
-0.009044930338859558,
0.05055907741189003,
0.04056570306420326,
0.013343006372451782,
-0.0559258908033371,
-0.012852591462433338,
0.04371176287531853,
-0.02724120020866394,
-0.025446094572544098,
0.038233913481235504,
-0.015785831958055496,
-0.060848552733659744,
0.031109007075428963,
-0.04804222658276558,
0.03340378403663635,
-0.048634424805641174,
-0.02035687491297722,
-0.012315909378230572,
-0.032219383865594864,
0.006662250030785799,
-0.015378694050014019,
0.013157944194972515,
-0.03666088357567787,
0.02263314463198185,
0.08283397555351257,
0.032626520842313766,
-0.0033519447315484285,
0.008230654522776604,
0.02167082019150257,
0.012223378755152225,
0.01523064449429512,
-0.0314791314303875,
-0.024187669157981873,
-0.055111613124608994,
0.020949074998497963,
0.03714204579591751,
-0.021559782326221466,
0.013759396970272064,
0.09926752746105194,
0.07265554368495941,
0.02052343264222145,
0.005542621947824955,
-0.03897416219115257,
-0.01612819731235504,
-0.021615300327539444,
0.03201581537723541,
0.006731648463755846,
-0.05888688936829567,
-0.0434526763856411,
0.016220727935433388,
-0.013009894639253616,
0.025279538705945015,
0.04941168799996376,
-0.004575670696794987,
-0.018802350386977196,
0.009595490992069244,
0.05500057712197304,
-0.02818501926958561,
0.029721038416028023,
-0.012787818908691406,
0.004769986029714346,
0.016054172068834305,
-0.055999916046857834,
0.07206334173679352,
-0.01778450608253479,
0.005228015594184399,
0.011335078626871109,
0.01268603466451168,
-0.004365161992609501,
-0.02056044526398182,
0.0038839993067085743,
-0.009322524070739746,
-0.027759375050663948,
-0.021763350814580917,
-0.031053489074110985,
-0.054408375173807144,
-0.014721722342073917
]
|
30,030 | zeroconf._utils.net | create_sockets | null | def create_sockets(
interfaces: InterfacesType = InterfaceChoice.All,
unicast: bool = False,
ip_version: IPVersion = IPVersion.V4Only,
apple_p2p: bool = False,
) -> Tuple[Optional[socket.socket], List[socket.socket]]:
if unicast:
listen_socket = None
else:
listen_socket = new_socket(ip_version=ip_version, apple_p2p=apple_p2p, bind_addr=('',))
normalized_interfaces = normalize_interface_choice(interfaces, ip_version)
# If we are using InterfaceChoice.Default we can use
# a single socket to listen and respond.
if not unicast and interfaces is InterfaceChoice.Default:
for i in normalized_interfaces:
add_multicast_member(cast(socket.socket, listen_socket), i)
return listen_socket, [cast(socket.socket, listen_socket)]
respond_sockets = []
for i in normalized_interfaces:
if not unicast:
if add_multicast_member(cast(socket.socket, listen_socket), i):
respond_socket = new_respond_socket(i, apple_p2p=apple_p2p)
else:
respond_socket = None
else:
respond_socket = new_socket(
port=0,
ip_version=ip_version,
apple_p2p=apple_p2p,
bind_addr=i[0] if isinstance(i, tuple) else (i,),
)
if respond_socket is not None:
respond_sockets.append(respond_socket)
return listen_socket, respond_sockets
| (interfaces: Union[Sequence[Union[str, int, Tuple[Tuple[str, int, int], int]]], zeroconf._utils.net.InterfaceChoice] = <InterfaceChoice.All: 2>, unicast: bool = False, ip_version: zeroconf._utils.net.IPVersion = <IPVersion.V4Only: 1>, apple_p2p: bool = False) -> Tuple[Optional[socket.socket], List[socket.socket]] | [
-0.012658667750656605,
-0.016180749982595444,
-0.06464725732803345,
-0.08301510661840439,
-0.04105309024453163,
0.01847199723124504,
-0.037000805139541626,
0.011210069060325623,
-0.03147151321172714,
0.037701431661844254,
0.0025634511839598417,
0.019882723689079285,
-0.04336327686905861,
-0.015290762297809124,
0.021246111020445824,
0.052187416702508926,
0.009325944818556309,
-0.0574137344956398,
0.0013231480261310935,
-0.04124245047569275,
-0.0195040050894022,
0.03226682171225548,
0.027513902634382248,
0.01655000075697899,
0.03637591749429703,
0.021378662437200546,
-0.029502175748348236,
0.006210984196513891,
0.052906982600688934,
-0.0276653915643692,
-0.010897626169025898,
0.002781214425340295,
0.0356752872467041,
0.02363203838467598,
0.02859325148165226,
0.03681144490838051,
-0.01666361652314663,
0.037512075155973434,
-0.010481036268174648,
0.015432781539857388,
0.014003118500113487,
-0.0491955429315567,
0.0041777389124035835,
-0.006272525992244482,
-0.002920866943895817,
0.007337672170251608,
-0.017563072964549065,
0.028858354315161705,
0.0186708252876997,
-0.019882723689079285,
-0.010982838459312916,
0.007631178945302963,
0.02829027734696865,
0.02206035703420639,
-0.05226316303014755,
0.03542912006378174,
0.01961762085556984,
0.06866167485713959,
-0.020640160888433456,
-0.05071041360497475,
-0.03431190177798271,
-0.004899671301245689,
0.012620796449482441,
0.007924686186015606,
-0.010926030576229095,
-0.0006840603891760111,
-0.019352518022060394,
-0.026623914018273354,
-0.030733011662960052,
0.0358835831284523,
0.02459777146577835,
0.04726407676935196,
-0.022969281300902367,
0.0023208346683532,
0.042908813804388046,
0.09422517567873001,
0.05305847153067589,
0.019769109785556793,
0.009027703665196896,
-0.03720909729599953,
0.01666361652314663,
0.011513044126331806,
-0.03601613640785217,
0.01624702662229538,
0.06756339222192764,
0.01687191240489483,
-0.021340791136026382,
0.04893043637275696,
-0.056921400129795074,
-0.05021808296442032,
-0.04332540184259415,
0.01666361652314663,
0.04359050467610359,
0.06059496849775314,
-0.03130108863115311,
-0.02238226681947708,
-0.0356752872467041,
-0.05472483113408089,
0.022742049768567085,
-0.030221741646528244,
-0.02404862828552723,
0.033402975648641586,
-0.09051373600959778,
-0.05623970553278923,
0.00859217718243599,
-0.0023480551317334175,
-0.013870567083358765,
-0.00395524175837636,
-0.04715045914053917,
0.0016107374103739858,
0.01973123662173748,
-0.034330837428569794,
0.03219107910990715,
-0.004137500189244747,
-0.018756037577986717,
0.04423432797193527,
-0.016815103590488434,
-0.020488673821091652,
0.013340361416339874,
-0.01718435436487198,
-0.06832082569599152,
-0.008899886161088943,
-0.014997255057096481,
0.005496153142303228,
-0.00487600127235055,
0.05309634283185005,
0.006741190329194069,
-0.03737952187657356,
0.04567345976829529,
-0.009586313739418983,
0.002584754256531596,
-0.030335357412695885,
-0.001292377128265798,
0.05843627452850342,
-0.003907902166247368,
-0.018860183656215668,
-0.04999085143208504,
0.026245195418596268,
0.004128032363951206,
-0.05820904299616814,
-0.00370434089563787,
0.02935068868100643,
-0.008772068656980991,
0.08596911281347275,
-0.09361922740936279,
0.010585184209048748,
0.05733799189329147,
-0.02298821695148945,
-0.03870503604412079,
-0.01418300997465849,
0.012308353558182716,
0.0010373338591307402,
-0.05521716549992561,
-0.03510721027851105,
-0.0487789511680603,
0.015489589422941208,
-0.04059863090515137,
-0.09210435301065445,
0.031395766884088516,
-0.0455598421394825,
-0.07347140461206436,
0.0076075089164078236,
-0.0032096398063004017,
0.013368764892220497,
0.010395824909210205,
-0.014088330790400505,
-0.005979019217193127,
0.018424658104777336,
0.06551831215620041,
0.03398999199271202,
-0.006182580720633268,
0.05642906576395035,
0.057981811463832855,
-0.07672838121652603,
-0.01481736358255148,
-0.034558068960905075,
-0.016057666391134262,
-0.0508619025349617,
-0.018178490921854973,
0.01361493207514286,
0.037417393177747726,
-0.0771828442811966,
-0.02963472716510296,
-0.026320939883589745,
0.010159125551581383,
0.059761788696050644,
0.0017610413488000631,
0.05605034530162811,
0.040371399372816086,
-0.05563375726342201,
-0.0021042549051344395,
-0.0044381082989275455,
0.057035014033317566,
0.015650544315576553,
-0.0239728856831789,
0.029786214232444763,
0.011115389876067638,
0.044347941875457764,
-0.061163049191236496,
0.005160040222108364,
-0.033497657626867294,
0.09680046141147614,
-0.029521111398935318,
-0.035182952880859375,
-0.010196996852755547,
0.002239173511043191,
-0.046582382172346115,
-0.018112214282155037,
-0.022874601185321808,
-0.025885414332151413,
0.025241592898964882,
-0.0011870459420606494,
0.006584968883544207,
-0.01940932683646679,
0.026434555649757385,
0.010765074752271175,
0.05074828863143921,
0.00928807258605957,
-0.012592392042279243,
-0.03135789558291435,
0.009529505856335163,
-0.02955898456275463,
-0.051429979503154755,
0.006878475658595562,
-0.003758781822398305,
0.0077874003909528255,
-0.03482317179441452,
0.0020202267915010452,
-0.008895152248442173,
0.042151376605033875,
0.07930366694927216,
-0.026112644001841545,
0.06298089772462845,
-0.03785292059183121,
-0.0356752872467041,
0.009079777635633945,
-0.00021554411796387285,
-0.028006237000226974,
0.054914191365242004,
0.013330893591046333,
-0.016748828813433647,
-0.0027362415567040443,
0.057565219700336456,
0.0007183817797340453,
0.06809359788894653,
0.011276344768702984,
-0.019674429669976234,
-0.04101521894335747,
0.013936842791736126,
0.03684931620955467,
-0.01814061962068081,
0.0276653915643692,
-0.028536444529891014,
-0.00688321003690362,
0.034463390707969666,
-0.007872612215578556,
-0.06161750853061676,
-0.022817794233560562,
0.007039431482553482,
0.008156650699675083,
0.007295066490769386,
0.09240733087062836,
-0.06578341126441956,
0.03628123924136162,
-0.037512075155973434,
-0.05480057746171951,
-0.03289170563220978,
0.05983753129839897,
-0.02829027734696865,
0.057565219700336456,
0.10248124599456787,
0.06048135459423065,
0.04313604533672333,
0.014968851581215858,
0.023045023903250694,
-0.010679863393306732,
0.023026088252663612,
-0.0050274888053536415,
-0.005268922075629234,
-0.053740162402391434,
0.009856150485575199,
0.06536682695150375,
-0.012904834933578968,
0.018651889637112617,
0.038231637328863144,
0.011342620477080345,
0.017657753080129623,
0.007891547866165638,
0.01868029311299324,
-0.019276775419712067,
0.06684382259845734,
0.003794286632910371,
0.022628434002399445,
-0.03537231311202049,
-0.03516401723027229,
0.05404314026236534,
0.03575103357434273,
0.05870137736201286,
0.03843993321061134,
-0.07968238741159439,
-0.05021808296442032,
-0.0015740490052849054,
0.04128032177686691,
0.06086007133126259,
-0.005496153142303228,
-0.037000805139541626,
0.0056145028211176395,
-0.041318196803331375,
0.015215017832815647,
-0.008781536482274532,
-0.061693254858255386,
-0.01910635083913803,
0.02478712983429432,
-0.02406756393611431,
0.039538219571113586,
0.04101521894335747,
0.010301144793629646,
-0.0008355478057637811,
-0.012412500567734241,
0.02796836569905281,
0.02510904148221016,
0.01563160866498947,
-0.0025539833586663008,
0.007858410477638245,
0.014088330790400505,
0.07498627156019211,
-0.017582008615136147,
-0.025487760081887245,
0.02204141952097416,
0.027835814282298088,
-0.04313604533672333,
0.006390875671058893,
-0.009884554892778397,
-0.007238258607685566,
0.02279885672032833,
0.016199685633182526,
0.02079164981842041,
0.04787002503871918,
0.029596855863928795,
-0.03658421337604523,
0.018405722454190254,
-0.0632459968328476,
0.007763730362057686,
-0.0050274888053536415,
-0.007692720741033554,
-0.002984775695949793,
-0.026434555649757385,
0.03376276046037674,
-0.05093764513731003,
0.000987035222351551,
-0.0006473720422945917,
0.07646327465772629,
-0.0018178491154685616,
0.07604669034481049,
0.0211135596036911,
0.0046416693367064,
-0.02711624838411808,
0.034879978746175766,
0.06548044085502625,
0.019447198137640953,
-0.05764096602797508,
0.09399794787168503,
0.025033297017216682,
-0.03777717798948288,
-0.006300929933786392,
-0.0055245570838451385,
0.07513776421546936,
-0.02796836569905281,
-0.03342191129922867,
-0.0533614456653595,
-0.0013953412417322397,
-0.01857614517211914,
-0.03291064128279686,
-0.019674429669976234,
-0.002011942444369197,
-0.03684931620955467,
0.006073698867112398,
0.016938187181949615,
-0.005870137829333544,
-0.00817085336893797,
-0.06449577212333679,
-0.02247694693505764,
0.04196201637387276,
-0.0007710473146289587,
0.05071041360497475,
0.0014699014136567712,
-0.006045294925570488,
-0.008970895782113075,
-0.025298399850726128,
0.061163049191236496,
-0.04063650220632553,
0.006949485745280981,
-0.02069696970283985,
-0.032778091728687286,
-0.013917907141149044,
-0.018718164414167404,
-0.002819086192175746,
0.06585916131734848,
-0.010339017026126385,
-0.03007025457918644,
-0.011399428360164165,
0.0202803798019886,
-0.03253192454576492,
0.0175252016633749,
-0.02681327424943447,
0.026339875534176826,
0.05362654849886894,
0.004767119884490967,
-0.018651889637112617,
-0.029729407280683517,
0.0016237557865679264,
0.02796836569905281,
-0.06642723828554153,
-0.014779492281377316,
0.01066092774271965,
0.06279153376817703,
-0.03461487591266632,
0.06790424138307571,
0.04665812849998474,
0.021397598087787628,
-0.011465704068541527,
-0.05930732563138008,
0.05764096602797508,
0.05283123999834061,
0.008454891853034496,
0.03736058622598648,
-0.04559771344065666,
-0.01255452074110508,
0.003529183566570282,
-0.012270481325685978,
0.06161750853061676,
-0.010215933434665203,
0.018926460295915604,
-0.05889073759317398,
0.042908813804388046,
-0.03923524171113968,
0.018074342980980873,
-0.035523802042007446,
-0.0027433426585048437,
0.003027381608262658,
0.06945698708295822,
-0.032645538449287415,
-0.005756522063165903,
0.08150023221969604,
-0.06055709719657898,
-0.013700144365429878,
-0.0647987425327301,
-0.049952976405620575,
-0.07119908928871155,
-0.0209052637219429,
0.011513044126331806,
-0.06513959169387817,
0.040977347642183304,
0.002887729089707136,
0.06131453439593315,
-0.005576630588620901,
-0.06180686876177788,
0.02660497836768627,
-0.03904588520526886,
-0.0371333546936512,
0.06279153376817703,
-0.04631727933883667,
0.029502175748348236,
0.02035612240433693,
-0.049233414232730865,
0.03427403047680855,
0.01878444105386734,
-0.07002506405115128,
0.016834039241075516,
-0.005552961025387049,
0.040674373507499695,
0.011607724241912365,
0.016625745221972466,
-0.023499486967921257,
-0.01563160866498947,
-0.013293021358549595,
0.014855235815048218,
-0.031925976276397705,
-0.008374414406716824,
-0.05078615993261337,
-0.010623055510222912,
0.033194683492183685,
-0.015546397306025028,
0.011153261177241802,
-0.05563375726342201,
-0.037720367312431335,
0.010395824909210205,
-0.03289170563220978,
-0.033592335879802704,
0.04749130830168724,
-0.007782666478306055,
0.000831405573990196,
0.013368764892220497,
-0.05339931696653366,
0.054914191365242004,
-0.013652804307639599,
-0.02058335393667221,
-0.022098228335380554,
0.0035717894788831472,
-0.07263822108507156,
-0.02266630530357361,
-0.0627157911658287,
-0.03957609087228775,
-0.009690460748970509,
0.023821396753191948,
-0.017118079587817192,
-0.003697240026667714,
-0.01192963495850563,
0.005046424921602011,
-0.013898971490561962,
-0.0018213995499536395,
0.014959382824599743,
0.012213673442602158,
0.013690675608813763,
0.013245681300759315,
-0.015309697948396206,
0.029729407280683517,
0.0065376292914152145,
-0.02702157013118267,
-0.03205852583050728,
0.03221001476049423,
0.011939102783799171,
0.01054731197655201,
0.03660314902663231,
0.004272418562322855,
-0.04146968200802803,
0.028119852766394615,
0.0008491580374538898,
0.06267791986465454,
-0.01804593950510025,
-0.004651137161999941,
0.07847048342227936,
-0.022420138120651245,
0.006968421395868063,
0.020545482635498047,
-0.05320995673537254,
0.005032222718000412,
-0.004634568467736244,
-0.030524715781211853,
-0.04465091973543167,
0.013406637124717236,
0.10073913633823395,
-0.07616030424833298,
-0.049763619899749756,
-0.05517929419875145,
-0.03999267891049385,
0.013936842791736126,
-0.011030178517103195,
0.021283982321619987,
-0.05877711996436119,
-0.04177265614271164,
0.016275430098176003,
0.028725802898406982,
0.06733615696430206,
-0.00859691109508276,
-0.03594039008021355,
0.005496153142303228,
-0.0030392163898795843,
-0.02660497836768627,
0.052906982600688934,
-0.03533444181084633,
-0.011967506259679794,
0.00929280649870634,
0.02753284014761448,
-0.03590251877903938,
0.06468512862920761,
0.011503576301038265,
-0.017544137313961983,
-0.010821882635354996,
-0.009515304118394852,
0.012781751342117786,
0.0071341111324727535,
0.053967393934726715,
-0.023575229570269585,
-0.007612243294715881,
0.010784011334180832,
-0.029521111398935318,
-0.015082466416060925,
0.01186335925012827,
0.02003421261906624,
-0.002606057096272707,
0.019579749554395676,
-0.05942094326019287,
-0.06975995749235153,
0.05453547462821007,
0.04654451087117195,
-0.006035827100276947,
-0.016218623146414757,
-0.04146968200802803,
0.015773627907037735,
-0.03190704062581062,
0.04582494497299194,
-0.0027883152943104506,
0.03029748424887657,
-0.017487330362200737,
-0.020829521119594574,
0.036243367940187454,
0.018292106688022614,
-0.07214588671922684,
-0.01060411985963583,
-0.05684565752744675,
0.04234073683619499,
-0.004677174147218466,
-0.04075011610984802,
0.05226316303014755,
-0.028725802898406982,
-0.05415675416588783,
0.0006781429401598871,
-0.01550852507352829,
-0.0014142771251499653,
-0.029369624331593513,
0.04726407676935196,
-0.03113066591322422,
-0.023802461102604866,
0.023366935551166534,
0.022723114117980003,
-0.061882611364126205,
0.09634599834680557,
0.006409811787307262,
-0.008080907166004181,
-0.018614016473293304,
-0.0042842538096010685,
-0.0027528104837983847,
-0.01371908001601696,
-0.030335357412695885,
0.006689116358757019,
0.004499650094658136,
0.0039789117872715,
-0.01249771285802126,
0.048362359404563904,
0.07877346128225327,
0.009690460748970509,
0.07695560902357101,
-0.009359082207083702,
0.007304534316062927,
0.0026746997609734535,
0.023404806852340698,
-0.002565818140283227,
0.020962072536349297,
0.024294795468449593,
0.049422770738601685,
-0.03179342299699783,
0.09460389614105225,
-0.09248307347297668,
0.053778037428855896,
0.017799772322177887,
0.05480057746171951,
-0.03253192454576492,
0.011579319834709167,
-0.01223260909318924,
0.013094194233417511,
-0.005605034530162811,
-0.04707471653819084,
-0.017582008615136147,
-0.016843508929014206,
0.016531065106391907,
-0.0221550352871418,
-0.04749130830168724,
0.01060411985963583,
-0.02067803405225277,
0.011607724241912365,
0.04908192530274391,
0.04400709643959999,
0.06335961818695068,
-0.042264990508556366,
0.026017965748906136,
0.024143308401107788,
-0.04328753054141998,
-0.0005219214945100248,
0.02016676403582096,
0.08589337021112442,
0.04075011610984802,
0.00880520697683096,
0.06131453439593315,
-0.012800686992704868,
0.026870081201195717,
-0.03938673064112663,
-0.002466404577717185,
-0.06608638912439346,
-0.01308472640812397,
0.01730743795633316,
-0.004296088591217995,
-0.027191992849111557,
-0.04143181070685387,
-0.02099994383752346,
-0.06411705166101456,
0.05817117169499397,
0.0008000429370440543,
0.017279034480452538,
-0.02005314826965332,
0.012573456391692162,
0.046468768268823624,
0.017364246770739555,
0.00791048351675272,
-0.056921400129795074,
-0.04453730210661888,
-0.040901605039834976,
-0.07025229185819626,
-0.03101705014705658,
-0.0011237289290875196,
0.08043982088565826,
0.010888158343732357,
-0.03664102032780647,
0.011844422668218613,
-0.0320395901799202,
0.013349829241633415,
-0.02910452149808407,
-0.042264990508556366,
0.036659955978393555,
-0.009056107141077518,
-0.029085585847496986,
-0.016105007380247116,
0.04999085143208504,
0.0057233842089772224,
0.009141319431364536,
-0.004835762549191713,
0.01751573383808136,
0.04578707367181778,
0.03122534602880478,
0.029805149883031845,
0.0015302597312256694,
0.012649199925363064,
0.001525525702163577,
-0.07642540335655212,
-0.011427832767367363,
-0.07646327465772629,
0.053778037428855896,
-0.009690460748970509,
-0.02808198146522045,
0.08097002655267715,
0.024105437099933624,
-0.0186708252876997,
-0.012706007808446884,
0.012431437149643898,
-0.01931464672088623,
-0.024010756984353065,
0.03177448734641075,
-0.015603205189108849,
-0.03628123924136162,
-0.02266630530357361,
0.029464304447174072,
-0.015205550007522106,
0.015432781539857388,
0.01665414869785309,
-0.037625689059495926,
-0.06423066556453705,
0.03849674016237259,
0.008459625765681267,
-0.004828661680221558,
0.04287094250321388,
0.028422828763723373,
-0.032134268432855606,
-0.02510904148221016,
-0.024105437099933624,
0.009998169727623463,
-0.01993953250348568,
-0.019485069438815117,
0.037417393177747726,
-0.019863788038492203,
-0.005240518134087324,
-0.012421968393027782,
0.04533261060714722,
0.02026144228875637,
-0.008862013928592205,
-0.04590069130063057,
-0.0071530467830598354,
-0.029843023046851158,
-0.003027381608262658
]
|
30,031 | zeroconf._utils.net | get_all_addresses | null | def get_all_addresses() -> List[str]:
return list({addr.ip for iface in ifaddr.get_adapters() for addr in iface.ips if addr.is_IPv4})
| () -> List[str] | [
0.026686426252126694,
-0.011527936905622482,
-0.043791189789772034,
-0.08286640793085098,
-0.02447815239429474,
0.001517018536105752,
0.006985068786889315,
-0.11767478287220001,
0.0719747468829155,
-0.03327381983399391,
-0.013230928219854832,
-0.05247456952929497,
-0.0025427897926419973,
0.001368474680930376,
0.024852436035871506,
0.0182556863874197,
-0.04177005589008331,
0.03825179114937782,
0.041395772248506546,
-0.02526414766907692,
-0.021614881232380867,
-0.004577957093715668,
-0.020885027945041656,
-0.025638431310653687,
0.01878903992474079,
0.04225662723183632,
0.01755390502512455,
-0.060746241360902786,
0.029811695218086243,
0.016449768096208572,
-0.01730126328766346,
-0.0337042436003685,
0.0007567547727376223,
-0.0008760577184148133,
-0.003890210995450616,
0.0000760263719712384,
0.06856876611709595,
0.017376119270920753,
0.04124606028199196,
0.0532231368124485,
0.00821552611887455,
-0.04577489197254181,
-0.02677999623119831,
-0.021820738911628723,
0.015158488415181637,
-0.01143436599522829,
0.011668293736875057,
0.021034741774201393,
0.025189291685819626,
0.007158175110816956,
-0.012126791290938854,
-0.009693946689367294,
0.0016433392884209752,
0.016805337741971016,
0.006933604832738638,
-0.029081841930747032,
0.014915204606950283,
0.04918087273836136,
0.04236891120672226,
0.010741941630840302,
-0.033236388117074966,
-0.06366565078496933,
0.015570200979709625,
-0.07126361131668091,
0.0651627853512764,
0.027154279872775078,
-0.066285640001297,
-0.05801396816968918,
-0.041844915598630905,
0.008828416466712952,
0.030878402292728424,
-0.03836407512426376,
-0.03297439217567444,
-0.013221570290625095,
0.017881402745842934,
0.047870881855487823,
0.017591333016753197,
0.062243375927209854,
-0.01617841236293316,
-0.07403331249952316,
0.024440724402666092,
0.03456509858369827,
0.009984017349779606,
0.04483918473124504,
0.04401576146483421,
-0.048993732780218124,
-0.022662876173853874,
0.04214433953166008,
0.0014012245228514075,
0.02762213535606861,
0.032394252717494965,
-0.02470272220671177,
-0.009076379239559174,
0.04102148860692978,
-0.06269251555204391,
0.029437411576509476,
-0.008257633075118065,
-0.02917541190981865,
0.025750717148184776,
0.010348943062126637,
-0.010592227801680565,
0.01836797036230564,
-0.07575501501560211,
0.00019211278413422406,
0.026574140414595604,
0.018686112016439438,
-0.018180828541517258,
0.024796294048428535,
0.032338108867406845,
0.014185351319611073,
-0.025077005848288536,
0.028482986614108086,
0.03858864679932594,
-0.056479405611753464,
0.029699409380555153,
0.0007479825289919972,
0.014568991959095001,
-0.005314827896654606,
-0.02509571984410286,
-0.030373120680451393,
0.008917308412492275,
0.050678007304668427,
-0.038700930774211884,
0.004278530366718769,
0.017937544733285904,
0.02241959236562252,
-0.025732003152370453,
0.00028056654264219105,
-0.01887325383722782,
-0.05494484305381775,
0.06759563088417053,
0.04177005589008331,
-0.053185708820819855,
0.014082423411309719,
0.0037007296923547983,
-0.04768373817205429,
-0.01008694525808096,
-0.03978635370731354,
0.006821319926530123,
-0.03246910870075226,
-0.01878903992474079,
0.020080318674445152,
0.04906858876347542,
0.001121096545830369,
0.0017228744691237807,
0.0023474604822695255,
0.03125268593430519,
0.010657727718353271,
-0.021034741774201393,
-0.06362822651863098,
0.03718508407473564,
0.027528563514351845,
-0.07987213879823685,
0.029325125738978386,
-0.06632306426763535,
0.025694573298096657,
-0.040834348648786545,
-0.029418695718050003,
0.004907794762402773,
-0.0657242089509964,
-0.0916994959115982,
0.030766118317842484,
-0.07175017893314362,
-0.013998209498822689,
0.01526141632348299,
-0.04042263701558113,
-0.04461461305618286,
-0.024852436035871506,
0.024796294048428535,
0.00584350386634469,
-0.04031035304069519,
-0.06269251555204391,
-0.02197045087814331,
-0.023561157286167145,
0.014718705788254738,
0.02447815239429474,
-0.04895630478858948,
0.01859254203736782,
0.013399355113506317,
-0.000002270739514642628,
0.031121687963604927,
0.011172367259860039,
0.05745254456996918,
0.014082423411309719,
0.062131088227033615,
-0.002112363465130329,
-0.008271669037640095,
-0.0037007296923547983,
-0.026929710060358047,
-0.02900698408484459,
0.05367228016257286,
-0.01626262627542019,
-0.01786268875002861,
-0.015186560340225697,
-0.05094000697135925,
-0.007214317563921213,
-0.010348943062126637,
0.03752193972468376,
-0.09978402405977249,
-0.04251862317323685,
-0.009104450233280659,
-0.02756599150598049,
-0.043454334139823914,
0.004935865756124258,
-0.015214631333947182,
0.044914040714502335,
-0.049330588430166245,
-0.03609966114163399,
0.04401576146483421,
0.0160099845379591,
0.03226325288414955,
-0.0009357091621495783,
-0.07373388111591339,
-0.03963664174079895,
-0.029605837538838387,
0.04678545892238617,
0.022157592698931694,
0.06770791858434677,
0.032843392342329025,
0.01938789337873459,
-0.019256895408034325,
-0.09072636067867279,
-0.03359195962548256,
0.0016047412063926458,
0.024777578189969063,
0.037821363657712936,
-0.036866940557956696,
-0.009502126835286617,
0.0030621082987636328,
-0.05696597322821617,
0.09813717752695084,
-0.015383059158921242,
-0.0010485791135579348,
-0.00039709158590994775,
0.05483255907893181,
0.0419197715818882,
0.003539319848641753,
-0.03581894561648369,
0.025582289323210716,
-0.007953528314828873,
-0.02475886419415474,
-0.0038761752657592297,
-0.0020258103031665087,
-0.04233148321509361,
0.01336192712187767,
-0.020941171795129776,
-0.07006590068340302,
0.02337401546537876,
0.022288592532277107,
-0.040385209023952484,
-0.018498970195651054,
0.008543024770915508,
0.04701003059744835,
-0.050565723329782486,
0.0034363919403403997,
-0.05606769397854805,
-0.008585131727159023,
0.013043785467743874,
0.023954154923558235,
0.023280443623661995,
0.005024758167564869,
-0.023617299273610115,
-0.01081679854542017,
-0.008262312039732933,
-0.007611994165927172,
0.05015401169657707,
-0.01039572898298502,
0.00624585896730423,
-0.03789622336626053,
0.04891887679696083,
0.1098896861076355,
0.007780421990901232,
-0.024946006014943123,
0.03581894561648369,
0.003836407558992505,
0.034621238708496094,
0.0055393981747329235,
0.05909939110279083,
-0.04686031490564346,
-0.06149480864405632,
0.011668293736875057,
0.0827166885137558,
-0.02241959236562252,
-0.0007216656813398004,
-0.005717182997614145,
-0.07223674654960632,
-0.008491560816764832,
0.006690320558845997,
-0.03918750211596489,
0.0183960422873497,
0.026143714785575867,
-0.01478420477360487,
-0.00299660861492157,
-0.04532575234770775,
0.056591689586639404,
0.025114433839917183,
0.034359242767095566,
-0.009628447704017162,
0.01447542104870081,
-0.039561785757541656,
-0.03733479604125023,
0.013567782938480377,
-0.03499552235007286,
0.05393427610397339,
-0.00607743114233017,
0.05393427610397339,
0.005216578487306833,
-0.0029287696816027164,
0.05108972266316414,
-0.025020863860845566,
-0.00905766524374485,
-0.038551218807697296,
0.0074576023034751415,
-0.05393427610397339,
0.058163683861494064,
-0.004730009939521551,
0.00696167629212141,
0.03303053230047226,
0.006919569335877895,
-0.02387929894030094,
-0.03499552235007286,
0.11947134882211685,
-0.006171002052724361,
0.009090414270758629,
-0.004491404164582491,
0.014634491875767708,
0.01946275122463703,
0.03291824832558632,
-0.017029907554388046,
-0.028370702639222145,
0.015308202244341373,
-0.05314828082919121,
-0.04113377630710602,
0.037316080182790756,
0.03858864679932594,
0.013156071305274963,
0.0458497479557991,
0.03944949805736542,
-0.01595384068787098,
-0.030616404488682747,
0.025451289489865303,
0.026368284597992897,
0.011275295168161392,
0.021483883261680603,
-0.05370970815420151,
0.034284383058547974,
-0.06793248653411865,
0.027603421360254288,
-0.04914344474673271,
0.03926235809922218,
0.013782995752990246,
-0.01890132576227188,
-0.03074740432202816,
0.02073531597852707,
0.017235763370990753,
0.0012772430200129747,
-0.043791189789772034,
0.04712231457233429,
0.036923084408044815,
0.08421382308006287,
-0.000716402311809361,
-0.02711685188114643,
-0.026461856439709663,
-0.03415338322520256,
0.020304888486862183,
0.007480994798243046,
0.0328621044754982,
-0.018920039758086205,
0.0951429083943367,
-0.016393624246120453,
-0.06141994893550873,
0.037428367882966995,
-0.025282861664891243,
-0.08728295564651489,
0.023561157286167145,
-0.06980390101671219,
0.05524427071213722,
0.009946588426828384,
-0.027023281902074814,
0.08279154449701309,
-0.06138252094388008,
-0.014597062952816486,
0.09701433032751083,
-0.005305470898747444,
0.01302507147192955,
-0.03069126047194004,
0.021034741774201393,
0.012173576280474663,
-0.0297368373721838,
0.05311085283756256,
-0.011331438086926937,
-0.0022176308557391167,
-0.060746241360902786,
0.027921561151742935,
-0.03140240162611008,
-0.01598191261291504,
-0.035238806158304214,
0.000031342602596851066,
-0.0021392651833593845,
-0.013212213292717934,
-0.001773168914951384,
-0.003111233003437519,
0.02661156840622425,
0.0030948580242693424,
-0.01031151507049799,
-0.01461577694863081,
0.05094000697135925,
-0.026424426585435867,
0.0010760655859485269,
-0.040385209023952484,
0.01648719608783722,
0.03387267142534256,
0.02649928443133831,
-0.027547277510166168,
-0.006409607827663422,
0.03832664713263512,
0.028482986614108086,
0.06022224202752113,
0.04555032402276993,
-0.01319349929690361,
0.004561582114547491,
-0.0356692336499691,
-0.03581894561648369,
-0.004992008674889803,
0.017563261091709137,
0.02202659472823143,
0.005572148133069277,
0.013212213292717934,
0.01397013757377863,
-0.0730976015329361,
0.016983121633529663,
-0.008510274812579155,
0.009787517599761486,
-0.07219932228326797,
0.0027813955675810575,
0.0012713948963209987,
0.04607431963086128,
-0.03213225305080414,
0.03638037294149399,
-0.030279548838734627,
0.008023706264793873,
-0.014690633863210678,
-0.010470585897564888,
-0.008561738766729832,
0.036417800933122635,
0.04210691154003143,
-0.04562518000602722,
0.019537607207894325,
0.00599321722984314,
-0.014278922230005264,
-0.04397832974791527,
-0.10711998492479324,
0.02773441933095455,
-0.01881711184978485,
-0.015008775517344475,
0.05801396816968918,
0.029923979192972183,
-0.0032328751403838396,
-0.05007915571331978,
0.02923155389726162,
0.041508059948682785,
0.017450975254178047,
0.0395992137491703,
-0.022064022719860077,
-0.003331124782562256,
0.023336587473750114,
-0.0051651145331561565,
0.0025615037884563208,
0.004470350686460733,
0.0004149285377934575,
0.0031135722529143095,
0.002080783247947693,
-0.0017322315834462643,
-0.03484581038355827,
0.008051777258515358,
0.037933651357889175,
0.0424811951816082,
0.020304888486862183,
0.019612465053796768,
-0.0441654734313488,
-0.003901907242834568,
-0.045026324689388275,
-0.013857852667570114,
-0.010077588260173798,
-0.02337401546537876,
-0.004482047166675329,
0.020361032336950302,
-0.014016923494637012,
-0.0702156201004982,
0.029194125905632973,
-0.012211005203425884,
0.05588055029511452,
-0.07100161164999008,
-0.024347152560949326,
0.05561855435371399,
-0.01623455435037613,
0.02447815239429474,
0.009740732610225677,
0.0464111752808094,
0.005478577222675085,
0.04352919012308121,
-0.02644314058125019,
-0.018377328291535378,
0.011780578643083572,
0.01909782364964485,
-0.015317559242248535,
0.006615464109927416,
0.002772038336843252,
-0.012342004105448723,
0.010339586064219475,
0.017179621383547783,
0.02548871748149395,
-0.015860270708799362,
0.024796294048428535,
-0.004575618077069521,
-0.04996687173843384,
-0.00853834580630064,
-0.028164846822619438,
-0.00919802114367485,
0.016805337741971016,
-0.06317908316850662,
0.0622808039188385,
0.00797692034393549,
0.02810870297253132,
0.013174785301089287,
0.05333542451262474,
0.009600375778973103,
0.0064563932828605175,
-0.04012320935726166,
-0.007939492352306843,
0.06531249731779099,
0.027603421360254288,
0.012164219282567501,
-0.006840033922344446,
-0.017376119270920753,
0.049892012029886246,
0.004451636224985123,
-0.052175141870975494,
-0.02135288342833519,
0.012538502924144268,
0.031121687963604927,
0.003635230241343379,
-0.05876253545284271,
-0.030260834842920303,
-0.021614881232380867,
-0.029137983918190002,
-0.03862607479095459,
0.04465204104781151,
0.0043884762562811375,
0.005445827264338732,
0.01240750402212143,
-0.013577139936387539,
0.021951736882328987,
-0.009567626751959324,
0.03802721947431564,
-0.033853959292173386,
0.03080354630947113,
-0.01383913867175579,
-0.04940544441342354,
-0.0201177466660738,
0.0019462751224637032,
0.0020679172594100237,
-0.05745254456996918,
0.032450392842292786,
-0.04453975707292557,
0.05108972266316414,
-0.011153653264045715,
0.012061291374266148,
-0.00942259095609188,
-0.01648719608783722,
-0.03649265691637993,
-0.0697290450334549,
0.024665294215083122,
-0.020754029974341393,
-0.02129674144089222,
0.004126477520912886,
-0.045138612389564514,
-0.05142657458782196,
0.010798083618283272,
-0.022494448348879814,
0.0201177466660738,
-0.03739093989133835,
-0.009488090872764587,
-0.021933022886514664,
0.0504160113632679,
0.03784007951617241,
-0.020024176687002182,
-0.02056688815355301,
0.0019252216443419456,
-0.03858864679932594,
0.008262312039732933,
0.009123164229094982,
0.020323602482676506,
0.041620343923568726,
-0.0328621044754982,
-0.03215096890926361,
-0.02101602777838707,
0.029381267726421356,
-0.05494484305381775,
-0.04629889130592346,
0.019687321037054062,
0.04439004510641098,
0.05288628116250038,
-0.053410280495882034,
0.04693517088890076,
-0.008954736404120922,
-0.020828885957598686,
-0.012753715738654137,
-0.03392881527543068,
-0.017591333016753197,
-0.05213771387934685,
0.004154548514634371,
0.048432305455207825,
-0.08937893807888031,
-0.02146516926586628,
-0.05168857425451279,
-0.008112598210573196,
0.0741455927491188,
-0.026761282235383987,
0.038700930774211884,
0.04667317494750023,
-0.015485987067222595,
0.03626808896660805,
0.014849704690277576,
0.02180202305316925,
-0.005085579585283995,
-0.05457055941224098,
0.045026324689388275,
0.04869430512189865,
0.09199892729520798,
0.049892012029886246,
0.005202542990446091,
0.034621238708496094,
0.0014386528637260199,
0.029268983751535416,
-0.03900035843253136,
0.009221414104104042,
-0.013642639853060246,
-0.056142549961805344,
0.004231744911521673,
-0.03918750211596489,
0.04057234898209572,
0.04453975707292557,
0.000303520675515756,
0.07100161164999008,
0.03246910870075226,
-0.024122582748532295,
-0.0037428366485983133,
-0.01294085755944252,
-0.04158291593194008,
0.01724511943757534,
-0.004449297208338976,
-0.015448558144271374,
0.04476432874798775,
-0.039823781698942184,
0.04042263701558113,
-0.04008578136563301,
0.029250269755721092,
0.011593436822295189,
-0.032394252717494965,
0.0017497761873528361,
0.04465204104781151,
-0.026181142777204514,
0.02073531597852707,
0.011406295001506805,
-0.004206012934446335,
-0.03007369302213192,
0.034808382391929626,
-0.02822098881006241,
0.011546650901436806,
0.046373747289180756,
0.013062500394880772,
-0.020435888320207596,
0.023785727098584175,
-0.031327541917562485,
0.044240329414606094,
-0.01288471557199955,
0.0022223093546926975,
-0.0036094982642680407,
-0.04667317494750023,
0.06175680458545685,
-0.11243481189012527,
0.04225662723183632,
-0.02168973907828331,
0.006058717146515846,
-0.036193229258060455,
0.03974892571568489,
0.0419197715818882,
0.0297368373721838,
0.01940660923719406,
-0.03162696957588196,
-0.049779728055000305,
0.06093338131904602,
0.04674803093075752,
0.08114469796419144,
0.052848853170871735,
-0.007654101122170687,
-0.06392765045166016,
-0.024347152560949326,
0.012931500561535358,
0.023486299440264702,
-0.009937231428921223,
-0.012688216753304005,
0.011088153347373009,
-0.0036422479897737503,
0.004430582746863365,
0.006891497876495123,
0.014503492042422295,
-0.055319126695394516,
0.03153339773416519,
0.033966243267059326,
0.02633085660636425,
-0.03319896012544632,
-0.029306411743164062,
0.04483918473124504,
0.013315141201019287,
0.046486031264066696,
-0.03974892571568489,
0.020941171795129776,
0.03606223315000534,
0.023841869086027145,
0.01126593817025423,
0.0036796764470636845,
-0.02756599150598049,
-0.0037989793345332146,
0.0803961306810379,
-0.06767048686742783,
0.0362306609749794,
-0.04981715604662895,
0.06669735163450241,
0.01707669161260128,
0.04068463668227196,
-0.035856377333402634,
0.032281965017318726,
-0.023823155090212822,
0.006156966555863619,
0.000501481641549617,
-0.02386058308184147,
-0.08129440993070602,
-0.019275609403848648,
-0.0010158292716369033,
-0.04409061744809151,
0.0713384672999382,
0.07388359308242798,
-0.0031182507518678904,
-0.058725107461214066,
0.025900429114699364,
0.04293033853173256,
-0.038888074457645416,
0.05052829533815384,
-0.03372295945882797,
0.0781504288315773,
0.025863001123070717,
-0.07466959208250046,
0.039224930107593536,
-0.004638778045773506,
-0.02850170060992241,
-0.028913414105772972,
-0.014587705954909325,
0.015691842883825302,
-0.03254396468400955,
0.018461542204022408,
-0.045812319964170456,
0.01940660923719406,
-0.011247224174439907,
-0.02923155389726162,
0.00959101878106594,
0.02023003250360489
]
|
30,032 | zeroconf._utils.net | get_all_addresses_v6 | null | def get_all_addresses_v6() -> List[Tuple[Tuple[str, int, int], int]]:
# IPv6 multicast uses positive indexes for interfaces
# TODO: What about multi-address interfaces?
return list(
{(addr.ip, iface.index) for iface in ifaddr.get_adapters() for addr in iface.ips if addr.is_IPv6}
)
| () -> List[Tuple[Tuple[str, int, int], int]] | [
0.03637215122580528,
-0.011789336800575256,
-0.05258713662624359,
-0.08449644595384598,
-0.03427089378237724,
-0.036539506167173386,
0.014216006733477116,
-0.05121109262108803,
0.05284746736288071,
-0.006987134460359812,
0.0028125192038714886,
-0.054855745285749435,
-0.021124111488461494,
-0.024322479963302612,
0.014764564111828804,
0.05608302727341652,
-0.012960832566022873,
-0.0061317565850913525,
0.06192190945148468,
0.006010888144373894,
-0.032429974526166916,
-0.014615802094340324,
-0.0540003702044487,
-0.03194649890065193,
0.0020826589316129684,
0.056492120027542114,
0.02910143882036209,
-0.025605546310544014,
0.07118230313062668,
-0.012124049477279186,
-0.0565665028989315,
-0.047231726348400116,
0.014671588316559792,
-0.008121440187096596,
-0.03908704221248627,
-0.019208809360861778,
0.03784116730093956,
0.0005828423309139907,
0.02287205681204796,
0.07404596358537674,
0.033917587250471115,
-0.06422771513462067,
-0.012058966793119907,
-0.015080682002007961,
0.031965095549821854,
0.006991783156991005,
-0.022314202040433884,
0.021514609456062317,
0.016484616324305534,
0.02266751043498516,
-0.019841045141220093,
-0.015294525772333145,
0.03148161992430687,
0.022927843034267426,
-0.0724467784166336,
-0.0391986146569252,
-0.01207756157964468,
0.015759404748678207,
-0.012049669399857521,
0.008363177068531513,
-0.05667807161808014,
-0.02581009455025196,
0.08100055158138275,
0.003356427885591984,
0.04585568606853485,
-0.012328596785664558,
-0.07534762471914291,
-0.029436152428388596,
-0.05976486951112747,
0.014197411015629768,
0.005917912349104881,
0.03581429272890091,
-0.004493057727813721,
-0.019562117755413055,
0.003554001683369279,
0.04946314916014671,
0.02618199773132801,
0.02789275348186493,
0.006145703140646219,
-0.031128311529755592,
0.03568412736058235,
0.009920522570610046,
0.02378321997821331,
0.028134489431977272,
0.0902237594127655,
-0.001518992823548615,
0.012412275187671185,
0.03551677241921425,
-0.040574658662080765,
0.021254276856780052,
0.032801877707242966,
-0.0030682028736919165,
0.009265042841434479,
0.011473218910396099,
-0.02887829579412937,
0.022853462025523186,
-0.04369864612817764,
-0.03343411162495613,
0.018827607855200768,
-0.04128127545118332,
0.014336874708533287,
0.021347252652049065,
-0.05916982516646385,
-0.0007554287440143526,
0.05225242301821709,
0.00829809345304966,
-0.025252237915992737,
-0.0034145377576351166,
0.019506331533193588,
0.015415394678711891,
-0.026349354535341263,
0.041467227041721344,
0.01848359778523445,
-0.024564217776060104,
0.02385760098695755,
-0.017693303525447845,
0.02887829579412937,
-0.008121440187096596,
-0.014513528905808926,
-0.003753899596631527,
0.018288347870111465,
0.0584632083773613,
0.0011802121298387647,
0.02504769153892994,
-0.01943195052444935,
-0.012533143162727356,
-0.0015608319081366062,
0.010478377342224121,
0.021031135693192482,
-0.06727731972932816,
0.08040551096200943,
-0.023058008402585983,
-0.007061515003442764,
0.02356007881462574,
-0.020677827298641205,
-0.059058256447315216,
0.037060171365737915,
-0.04511187970638275,
0.00422342773526907,
-0.05887230485677719,
-0.03494032099843025,
0.01330484263598919,
0.026200592517852783,
0.009358018636703491,
-0.028915487229824066,
-0.011770742014050484,
0.00028531960560940206,
0.0345684178173542,
-0.017972230911254883,
-0.11000901460647583,
0.023132389411330223,
-0.011826527304947376,
-0.05716154724359512,
0.0293989609926939,
-0.04596725478768349,
0.005262432619929314,
-0.027502253651618958,
-0.04306640848517418,
0.023132389411330223,
-0.0388639010488987,
-0.0783972293138504,
-0.0007246304885484278,
-0.0902237594127655,
0.02729770727455616,
-0.006726802326738834,
-0.0477152019739151,
-0.0009413803927600384,
-0.041095323860645294,
-0.011473218910396099,
0.017405077815055847,
-0.03791555017232895,
-0.008539831265807152,
-0.011054827831685543,
-0.027260517701506615,
-0.015917465090751648,
0.011910205706954002,
-0.008832705207169056,
0.0026660822331905365,
0.04935157671570778,
0.028320441022515297,
0.006526904180645943,
-0.0027730045840144157,
0.037729598581790924,
-0.041987888514995575,
0.006392089184373617,
0.04778958112001419,
0.01668916456401348,
0.021514609456062317,
-0.02445264719426632,
-0.042211033403873444,
0.046971395611763,
-0.04883091151714325,
-0.006526904180645943,
0.04046308621764183,
-0.04317798092961311,
0.04526064172387123,
-0.03343411162495613,
0.08100055158138275,
-0.10435608774423599,
-0.039458949118852615,
-0.02872953563928604,
-0.020677827298641205,
-0.02594025991857052,
0.0006816291715949774,
-0.016624080017209053,
-0.010301723144948483,
-0.009697380475699902,
-0.03748786076903343,
0.00916276965290308,
-0.010682924650609493,
0.0342337042093277,
0.046190399676561356,
-0.0028613314498215914,
-0.0013876644661650062,
-0.038417618721723557,
0.03170476108789444,
0.025828689336776733,
0.06605003774166107,
0.028208870440721512,
0.031909309327602386,
-0.00044134468771517277,
-0.11952973902225494,
-0.016568295657634735,
-0.0008129575289785862,
0.015201549977064133,
0.012058966793119907,
-0.02947334200143814,
-0.029808055609464645,
-0.014243898913264275,
-0.04172755777835846,
0.08709976822137833,
-0.03912423551082611,
0.02848779782652855,
0.007210276555269957,
0.02078939788043499,
0.11305862665176392,
0.019878234714269638,
-0.026089021936058998,
0.03678124397993088,
0.0349775105714798,
-0.03343411162495613,
-0.02798572927713394,
0.02460140734910965,
0.035702724009752274,
0.024099338799715042,
0.005750556010752916,
-0.053591273725032806,
-0.008939627557992935,
0.008107493631541729,
-0.013267653062939644,
-0.06303761899471283,
0.011147803626954556,
0.019413355737924576,
-0.0036376798525452614,
0.009688083082437515,
-0.054781366139650345,
-0.05783097445964813,
0.04496311768889427,
0.004769660532474518,
0.014169517904520035,
0.017014579847455025,
-0.010478377342224121,
-0.017312102019786835,
-0.00788899976760149,
0.012412275187671185,
0.054558224976062775,
-0.006643123924732208,
0.03516346216201782,
-0.06571532785892487,
0.020845184102654457,
0.13254636526107788,
0.04105813056230545,
-0.02222122624516487,
0.03730190917849541,
0.012877154164016247,
-0.0017374861054122448,
-0.013825507834553719,
0.06471118330955505,
-0.039756469428539276,
-0.07612861692905426,
0.053888797760009766,
0.05504169687628746,
-0.03343411162495613,
0.016875116154551506,
0.010236640460789204,
-0.031667571514844894,
0.005532062612473965,
0.022983627393841743,
-0.022648915648460388,
-0.02251874841749668,
0.025400999933481216,
-0.062256623059511185,
-0.0025475381407886744,
-0.040500275790691376,
0.04667387157678604,
0.06411614269018173,
-0.00714519340544939,
0.0532565638422966,
0.04421931132674217,
0.010831685736775398,
-0.014913325197994709,
-0.0013760424917563796,
-0.03957051783800125,
0.04258293658494949,
-0.009218554943799973,
0.05712435767054558,
0.037655215710401535,
0.03356428071856499,
0.04262012615799904,
-0.008019166067242622,
-0.004260617773979902,
-0.09632297605276108,
0.023653054609894753,
-0.07263273000717163,
0.012375084683299065,
-0.05214085057377815,
-0.00001414612870576093,
-0.0020814966410398483,
0.031221287325024605,
-0.02999400720000267,
-0.023671649396419525,
0.08576091378927231,
0.019506331533193588,
0.0036376798525452614,
0.010403996333479881,
0.02093815989792347,
0.010775900445878506,
-0.00266375788487494,
-0.02893408201634884,
-0.03971927985548973,
-0.02677704207599163,
-0.03508908301591873,
-0.02168196626007557,
0.06976906955242157,
0.016270771622657776,
0.039905231446027756,
0.0345684178173542,
0.03852918744087219,
-0.014271792024374008,
-0.05005819350481033,
0.009130227379500866,
0.059281397610902786,
-0.0007426445372402668,
0.035330820828676224,
0.008628157898783684,
0.02475016936659813,
-0.08159559965133667,
0.028394822031259537,
-0.10896768420934677,
0.03534941375255585,
0.04630196839570999,
-0.03164897486567497,
-0.032560139894485474,
0.008349230512976646,
0.04942595586180687,
0.011324457824230194,
-0.003084473544731736,
-0.036911409348249435,
0.06746327131986618,
0.07356248795986176,
-0.011631278321146965,
0.024508431553840637,
0.013323438353836536,
-0.04540940001606941,
0.008967519737780094,
-0.019208809360861778,
-0.008242308162152767,
0.03494032099843025,
0.05043009668588638,
-0.0018258130876347423,
-0.04786396399140358,
0.026758447289466858,
-0.000125444756122306,
-0.031890712678432465,
0.00867464579641819,
-0.065492182970047,
0.020026996731758118,
0.04823586717247963,
-0.09929820150136948,
0.003860821947455406,
-0.03681843355298042,
-0.0227418914437294,
0.007479906547814608,
0.024099338799715042,
0.05768221244215965,
-0.03479155898094177,
-0.007470608688890934,
-0.005680824164301157,
0.00012094122939743102,
0.0688021257519722,
-0.021403038874268532,
0.006354898680001497,
-0.023374127224087715,
-0.011566194705665112,
-0.007121949456632137,
0.0023580999113619328,
-0.015740809962153435,
-0.0031239883974194527,
-0.04555816203355789,
-0.030179958790540695,
0.009265042841434479,
0.0055460091680288315,
-0.008200469426810741,
-0.009102335199713707,
0.023076603189110756,
-0.01263541728258133,
0.07032692432403564,
-0.0049509634263813496,
-0.012440167367458344,
-0.06820707768201828,
-0.03308080509305,
0.04120689257979393,
0.006178244482725859,
-0.0035098381340503693,
-0.01870673894882202,
0.04180193692445755,
0.048644959926605225,
0.03494032099843025,
0.03871513903141022,
0.0021953920368105173,
0.027167541906237602,
-0.045892875641584396,
-0.03096095472574234,
-0.022184036672115326,
0.019469141960144043,
0.01271909475326538,
-0.030700623989105225,
0.0067686415277421474,
-0.05117390304803848,
-0.04950033873319626,
0.019320379942655563,
-0.011928800493478775,
0.02521504834294319,
-0.008897787891328335,
-0.01331414096057415,
0.01218913309276104,
0.03702298179268837,
-0.02917581982910633,
-0.0011011826572939754,
-0.009116281755268574,
0.03702298179268837,
-0.015285228379070759,
0.024768764153122902,
0.019320379942655563,
0.05080199986696243,
0.014420553110539913,
-0.06712856143712997,
0.0006595473969355226,
0.03334113582968712,
-0.00837712362408638,
-0.013407116755843163,
-0.11781898885965347,
0.010933958925306797,
0.006512957625091076,
0.01133375521749258,
-0.003877092618495226,
-0.035107679665088654,
0.019506331533193588,
-0.053293753415346146,
-0.0015980222960934043,
0.019394760951399803,
0.028692344203591347,
0.012654012069106102,
0.009976307861506939,
-0.03229980915784836,
0.011315160430967808,
0.06404176354408264,
-0.06355828791856766,
-0.04135565459728241,
-0.016094118356704712,
0.05262432619929314,
-0.027799777686595917,
0.0032006932888180017,
-0.04061184823513031,
-0.013230462558567524,
0.03523784503340721,
-0.0059458049945533276,
-0.007851810194551945,
-0.03155599907040596,
-0.011631278321146965,
0.03834323585033417,
-0.03559115156531334,
-0.00171540433075279,
-0.030421694740653038,
-0.03438246622681618,
0.01122218370437622,
0.0273720882833004,
-0.0484590083360672,
-0.14519107341766357,
0.005336813163012266,
0.01592676155269146,
0.01779557578265667,
-0.04429369047284126,
-0.03761802613735199,
0.11283548176288605,
-0.0360560305416584,
0.056045837700366974,
0.05098795145750046,
0.07720714062452316,
0.010422592051327229,
-0.00378644117154181,
0.002019900130107999,
0.03058905154466629,
-0.01974806934595108,
0.0013132838066667318,
-0.01787925511598587,
0.04983505234122276,
-0.008107493631541729,
-0.00013198211672715843,
0.0056947702541947365,
0.01249595358967781,
0.018957775086164474,
-0.005387950222939253,
0.024117933586239815,
0.046562302857637405,
-0.02207246422767639,
0.0038073607720434666,
-0.05295903980731964,
0.006215434987097979,
0.037729598581790924,
-0.009116281755268574,
0.036316365003585815,
0.021068325266242027,
0.0012296055210754275,
0.013016617856919765,
0.04328955337405205,
0.025512570515275,
0.025084882974624634,
-0.02631216309964657,
-0.04403335973620415,
0.020305924117565155,
0.036316365003585815,
-0.01222632359713316,
-0.0005996942054480314,
-0.0029171169735491276,
0.020324518904089928,
0.028841106221079826,
0.006303762085735798,
0.000593011558521539,
0.02430388517677784,
0.010227343067526817,
0.03155599907040596,
-0.08397577702999115,
-0.010450484231114388,
-0.03640934079885483,
-0.009920522570610046,
-0.054111938923597336,
0.04128127545118332,
-0.006489713676273823,
-0.017219126224517822,
-0.04369864612817764,
0.010571353137493134,
0.009269691072404385,
0.036892812699079514,
0.01510857418179512,
0.02333693578839302,
-0.010022795759141445,
-0.0022976654581725597,
-0.015257335267961025,
0.010032093152403831,
-0.01058065053075552,
-0.02512207254767418,
-0.040425896644592285,
0.013323438353836536,
-0.02962210401892662,
0.04511187970638275,
-0.016503211110830307,
0.003635355504229665,
-0.06605003774166107,
0.028208870440721512,
-0.06415332853794098,
-0.03363865986466408,
-0.017758386209607124,
-0.026219187304377556,
-0.030644837766885757,
-0.0334898978471756,
-0.04968629032373428,
-0.029268795624375343,
0.056640882045030594,
-0.019915426149964333,
0.03761802613735199,
-0.0007554287440143526,
0.06660789251327515,
0.0015213171718642116,
0.056492120027542114,
0.03784116730093956,
0.010357508435845375,
-0.012681905180215836,
-0.04466559365391731,
-0.009265042841434479,
-0.002796248532831669,
-0.021291468292474747,
0.006833724211901426,
0.04135565459728241,
-0.03486594185233116,
-0.011212886311113834,
-0.020510470494627953,
0.01129656471312046,
-0.04659949243068695,
-0.02093815989792347,
0.020212948322296143,
0.022630320861935616,
0.07824847102165222,
-0.05459541454911232,
0.03759942948818207,
-0.01848359778523445,
-0.020529065281152725,
-0.04388459771871567,
-0.025624142959713936,
0.010227343067526817,
-0.061661578714847565,
0.030272934585809708,
0.011482516303658485,
-0.054930128157138824,
-0.04429369047284126,
-0.03627917543053627,
-0.016419533640146255,
0.09215765446424484,
-0.05243837460875511,
0.04247136414051056,
-0.007433418650180101,
-0.004246671684086323,
-0.003904985263943672,
-0.0012726068962365389,
0.010645734146237373,
-0.021291468292474747,
-0.0484590083360672,
0.0439961701631546,
0.035777103155851364,
0.10227342694997787,
0.04258293658494949,
0.0027474360540509224,
0.08040551096200943,
-0.0021047405898571014,
0.02872953563928604,
-0.06366986036300659,
-0.01249595358967781,
-0.025903070345520973,
-0.04433088004589081,
0.02826465666294098,
-0.030347315594553947,
0.048049915581941605,
0.05526484176516533,
-0.01615920104086399,
0.07345091551542282,
0.013779019936919212,
-0.00833528395742178,
0.002752084983512759,
0.009781058877706528,
-0.02333693578839302,
0.031667571514844894,
0.01548047736287117,
0.008851299993693829,
0.042285412549972534,
-0.07631456851959229,
0.00938591081649065,
-0.05504169687628746,
0.023150984197854996,
0.012272811494767666,
-0.07125668227672577,
-0.023318341001868248,
0.04470278322696686,
-0.024043552577495575,
-0.025308024138212204,
0.019469141960144043,
0.04332674294710159,
-0.002859007101505995,
0.033917587250471115,
-0.011910205706954002,
0.02184932306408882,
0.003249505767598748,
0.02863655984401703,
0.0069174026139080524,
0.02581009455025196,
-0.032801877707242966,
0.01166846789419651,
-0.02123568207025528,
-0.009000061079859734,
-0.034140728414058685,
-0.019041452556848526,
0.048868101090192795,
-0.04611601680517197,
0.019032154232263565,
-0.010218044742941856,
-0.03088657557964325,
0.003928229212760925,
0.053144991397857666,
0.02011997252702713,
0.03908704221248627,
-0.004297808278352022,
0.0018409217009320855,
-0.03110971674323082,
0.020826589316129684,
0.012040372006595135,
0.03231840208172798,
0.037711001932621,
0.008474747650325298,
-0.019338974729180336,
-0.020529065281152725,
-0.013025915250182152,
0.022779081016778946,
0.0002700657641980797,
-0.029268795624375343,
-0.004390784073621035,
-0.020900968462228775,
0.02601464092731476,
0.0011552248615771532,
0.0015573453856632113,
-0.08204188197851181,
0.03942175582051277,
0.006777938921004534,
0.018260454759001732,
-0.012533143162727356,
-0.015313121490180492,
0.021886512637138367,
0.01713544689118862,
0.014336874708533287,
-0.00874902680516243,
-0.013100296258926392,
0.06482275575399399,
0.023597268387675285,
-0.002705597085878253,
0.010329616256058216,
0.018743930384516716,
-0.05429789051413536,
0.02967788837850094,
-0.009227852337062359,
0.0032913447357714176,
-0.030403099954128265,
0.04090937227010727,
0.013453604653477669,
0.024768764153122902,
-0.019208809360861778,
0.02910143882036209,
-0.016995983198285103,
0.001564318547025323,
0.00031728006433695555,
-0.047306109219789505,
-0.08010798692703247,
-0.007405526004731655,
0.011845122091472149,
-0.033843208104372025,
0.03237418830394745,
0.0587979219853878,
0.007740238681435585,
-0.04537221044301987,
-0.0009274340118281543,
0.029268795624375343,
-0.038027118891477585,
0.034587014466524124,
-0.02078939788043499,
0.06828145682811737,
0.038027118891477585,
-0.05106233432888985,
0.041318465024232864,
0.011965990997850895,
0.007452013902366161,
-0.05481855571269989,
-0.01440195832401514,
-0.0006095728604122996,
-0.035405199974775314,
0.05165737867355347,
-0.05083918944001198,
-0.0031913958955556154,
-0.030403099954128265,
-0.012505250982940197,
-0.0012691202573478222,
-0.009632296860218048
]
|
30,034 | pawl.linkedin | Linkedin | The Linkedin class provides convenient access to Linkedin's API. | class Linkedin:
"""The Linkedin class provides convenient access to Linkedin's API."""
def __init__(
self,
access_token=None,
client_id=None,
client_secret=None,
redirect_uri="http://localhost:8000",
token_manager=None,
):
assert access_token or (
client_id and client_secret
), "Either client_id and client_secret or an access token is required."
self._core = self._authorized_core = None
# TODO - Abstract these values for security
self._client_id = client_id
self._client_secret = client_secret
self._redirect_uri = redirect_uri
# TODO END
self._services = None
self._token_manager = token_manager
self._map_services()
self._prepare_core()
self.auth = service.Auth(self, None)
self.current_user = service.Me(linkedin=self, _data=None)
self.current_user_id = self._set_linkedin_user_id()
self.reactions = service.Reactions(linkedin=self, _data=None)
def _prepare_core(self, requestor_class=None, requestor_kwargs=None):
requestor_class = requestor_class or Requestor
requestor_kwargs = requestor_kwargs or {}
requestor = requestor_class()
self._prepare_core_authenticator(requestor)
def _prepare_core_authenticator(self, requestor):
authenticator = Authenticator(
requestor, self._client_id, self._client_secret, self._redirect_uri
)
self._prepare_core_authorizer(authenticator)
def _prepare_core_authorizer(self, authenticator: Authenticator):
if self._token_manager is not None:
self._token_manager.linkedin = self
authorizer = Authorizer(
authenticator,
post_access_callback=self._token_manager.post_access_callback,
pre_access_callback=self._token_manager.pre_access_callback,
)
else:
# TODO - Add error handling
authorizer = Authorizer(authenticator)
self._core = self._authorized_core = session(authorizer)
def _map_services(self):
service_mappings = {
"Me": service.Me,
"Reactions": service.Reactions,
}
self._services = service_mappings
@staticmethod
def _parse_service_request(data: Optional[Union[Dict[str, Any], List[Any], bool]]):
# TODO - Restructure data for ease of use with python/utf-8
return data
def _service_request(
self,
data: Optional[Union[Dict[str, Union[str, Any]], bytes, IO, str]] = None,
json=None,
method: str = "",
params: Optional[Union[str, Dict[str, str]]] = None,
path: str = "",
) -> Any:
"""Run a request through mapped services.
:param data: Dictionary, bytes, or file-like object to send in the body of the
request (default: None).
:param json: JSON-serializable object to send in the body of the request with a
Content-Type header of application/json (default: None). If ``json`` is
provided, ``data`` should not be.
:param method: The HTTP method (e.g., GET, POST, PUT, DELETE).
:param params: The query parameters to add to the request (default: None).
:param path: The path to fetch.
"""
return self._parse_service_request(
data=self._core.request(
data=data,
json=json,
method=method,
params=params,
path=path,
)
)
def get(
self,
path: str,
params: Optional[Union[str, Dict[str, Union[str, int]]]] = None,
):
"""Return parsed objects returned from a GET request to ``path``.
:param path: The path to fetch.
:param params: The query parameters to add to the request (default: None).
"""
return self._service_request(method="GET", params=params, path=path)
def post(
self,
path: str,
data: Optional[Union[Dict[str, Union[str, Any]], bytes, IO, str]] = None,
params: Optional[Union[str, Dict[str, Union[str, int]]]] = None,
json=None,
):
return self._service_request(
data=data,
json=json,
method="POST",
params=params,
path=path,
)
def _set_linkedin_user_id(self):
if self._authorized_core._authorizer.access_token is None:
return self.current_user.basic_profile()["id"]
return None
| (access_token=None, client_id=None, client_secret=None, redirect_uri='http://localhost:8000', token_manager=None) | [
-0.030775228515267372,
-0.03459750488400459,
-0.07120466232299805,
0.03388821706175804,
0.009752713143825531,
-0.005836851429194212,
-0.03489303961396217,
0.022697223350405693,
0.028627661988139153,
-0.014126657508313656,
0.011388016864657402,
-0.010393043048679829,
-0.0024948229547590017,
0.018372535705566406,
-0.020047243684530258,
0.017919380217790604,
0.02119983732700348,
0.018214916810393333,
-0.01221552025526762,
-0.10221631824970245,
-0.006073280703276396,
0.01253075897693634,
0.033967025578022,
0.000191021419595927,
0.003989746328443289,
0.036823879927396774,
0.008738037198781967,
-0.0019764022435992956,
0.0364692360162735,
0.022007638588547707,
0.014225170016288757,
0.016875149682164192,
-0.013427220284938812,
-0.006216123234480619,
0.022303175181150436,
-0.04456694424152374,
0.008388319052755833,
0.09772416204214096,
-0.11742661148309708,
0.023445917293429375,
-0.05926497280597687,
-0.003753317054361105,
0.061589863151311874,
-0.010619621723890305,
-0.004859116859734058,
0.01753518171608448,
-0.022776033729314804,
0.09465057402849197,
0.015476275235414505,
-0.022697223350405693,
-0.013969037681818008,
-0.038577400147914886,
-0.029258141294121742,
-0.006595395505428314,
-0.017623843625187874,
-0.011328909546136856,
-0.015574787743389606,
0.04555206745862961,
-0.014924607239663601,
0.005186670459806919,
0.004324688110500574,
-0.0017104190774261951,
0.03637072443962097,
0.023780858144164085,
0.0006741932593286037,
0.023918775841593742,
-0.045906711369752884,
0.005959991365671158,
-0.000558749190531671,
0.04559147357940674,
0.022362282499670982,
-0.004834488965570927,
-0.011466826312243938,
0.02031322754919529,
0.0461825467646122,
-0.01854000613093376,
0.02157418429851532,
-0.059067949652671814,
-0.01909167505800724,
0.03940490260720253,
0.0684463158249855,
-0.044685158878564835,
-0.014126657508313656,
0.0004777844587806612,
0.052763164043426514,
-0.00596984289586544,
0.04933493956923485,
-0.04563087597489357,
-0.03977924957871437,
-0.015249697491526604,
-0.04314836859703064,
0.04645838215947151,
-0.004713811445981264,
-0.03536590188741684,
-0.01530880481004715,
-0.01616586185991764,
-0.054694004356861115,
0.006028950214385986,
-0.027977481484413147,
0.028233613818883896,
-0.0320952944457531,
0.016333332285284996,
-0.05378769338130951,
0.034301966428756714,
0.030046237632632256,
-0.026342177763581276,
-0.004287745803594589,
-0.017771610990166664,
0.0011950768530368805,
0.013762162066996098,
-0.06088057532906532,
-0.0330607146024704,
0.0021734265610575676,
0.052763164043426514,
-0.009880779311060905,
0.022697223350405693,
0.017288900911808014,
0.011427422054111958,
-0.013377964496612549,
0.008038599975407124,
-0.049610771238803864,
0.009260152466595173,
-0.0030341774690896273,
-0.0043813325464725494,
0.021081622689962387,
-0.01484579686075449,
-0.0069303372874855995,
0.012077602557837963,
0.01638258807361126,
-0.09402009844779968,
0.01642199233174324,
0.012314031831920147,
0.015486126765608788,
0.01720024086534977,
0.03918817639350891,
0.009132086299359798,
-0.06111700460314751,
0.029671892523765564,
-0.06868274509906769,
0.06623964011669159,
-0.01156533882021904,
0.007782468106597662,
-0.01887494884431362,
-0.006299858912825584,
-0.06501808762550354,
-0.02762283757328987,
0.014599516056478024,
-0.02602693811058998,
0.04046883434057236,
-0.03233172371983528,
0.05189625546336174,
-0.05370888113975525,
0.03241053223609924,
0.06568796932697296,
-0.06765821576118469,
-0.006994370371103287,
-0.03095255047082901,
-0.054733410477638245,
-0.013121833093464375,
0.01839223876595497,
-0.029612785205245018,
-0.006472255103290081,
0.021771209314465523,
-0.055994365364313126,
-0.018106553703546524,
-0.02683473937213421,
0.03607518970966339,
-0.07270204275846481,
0.010885604657232761,
0.015358060598373413,
0.0017621379811316729,
0.03195737674832344,
-0.03642983362078667,
-0.0044059609062969685,
-0.011279653757810593,
0.023150380700826645,
0.03207559138536453,
-0.041572172194719315,
-0.039050258696079254,
-0.01076739002019167,
0.011102331802248955,
-0.01820506528019905,
-0.04685242846608162,
-0.028529150411486626,
-0.011102331802248955,
0.014284277334809303,
0.03343506157398224,
-0.015062524005770683,
0.003430689452216029,
0.06998310983181,
-0.0661214292049408,
-0.005231000948697329,
0.03392762318253517,
0.015584639273583889,
-0.055363889783620834,
0.02935665287077427,
-0.007555889897048473,
-0.00037096021696925163,
0.013811418786644936,
-0.03002653643488884,
-0.01619541458785534,
0.056664250791072845,
0.013446923345327377,
-0.018618816509842873,
-0.007230799645185471,
0.019958583638072014,
-0.018214916810393333,
0.007654402405023575,
-0.023110976442694664,
-0.007216022815555334,
-0.04082347825169563,
-0.020175309851765633,
-0.01702291890978813,
0.027484919875860214,
0.01957438513636589,
0.012520907446742058,
0.07057417929172516,
-0.009225673042237759,
0.02527824603021145,
-0.010934860445559025,
0.05891032889485359,
-0.007846501655876637,
0.0010257589165121317,
-0.04775874316692352,
0.0007468460244126618,
0.011703256517648697,
0.03633132204413414,
0.023367106914520264,
0.012964213266968727,
-0.04090229049324989,
0.05713710933923721,
-0.015407317318022251,
-0.025199435651302338,
0.029494570568203926,
-0.05079292133450508,
-0.10954563319683075,
0.03784840926527977,
-0.019229592755436897,
-0.004671943839639425,
0.027406109496951103,
0.02943546324968338,
0.004832026083022356,
0.03221350908279419,
-0.01349617913365364,
-0.06623964011669159,
0.005221149418503046,
-0.030893443152308464,
-0.014638921245932579,
-0.0007690113270655274,
-0.03132689744234085,
-0.024608362466096878,
-0.006437776144593954,
0.001897592330351472,
0.005718636326491833,
-0.011979090049862862,
-0.04444872960448265,
-0.0030120122246444225,
0.0112895043566823,
-0.00904342532157898,
0.01890450157225132,
-0.0013902542414143682,
0.01501326821744442,
-0.032568152993917465,
0.036055486649274826,
-0.0010097506456077099,
-0.01979111321270466,
0.03404583781957626,
-0.00973301101475954,
0.04496099427342415,
-0.023780858144164085,
0.08779412508010864,
0.031051063910126686,
0.00562505004927516,
0.011762363836169243,
-0.011210694909095764,
-0.022303175181150436,
0.0038838456384837627,
0.03451869636774063,
-0.07412062585353851,
-0.014678326435387135,
-0.02119983732700348,
-0.034341372549533844,
0.00679242005571723,
0.007605146151036024,
0.004300060216337442,
-0.040094487369060516,
0.03962162882089615,
0.05993485823273659,
-0.01783071830868721,
-0.029868915677070618,
0.04176919534802437,
0.001993641722947359,
0.02008664980530739,
-0.013210494071245193,
-0.02119983732700348,
-0.015269399620592594,
-0.09204985201358795,
-0.0000762700365157798,
0.04673421382904053,
-0.03776960074901581,
-0.011072778142988682,
0.020667871460318565,
0.05426055192947388,
-0.054102931171655655,
0.03755287081003189,
-0.05461519584059715,
0.05642782151699066,
-0.013358262367546558,
0.0015823531430214643,
0.04622195288538933,
-0.006073280703276396,
-0.010905306786298752,
-0.00558071956038475,
-0.019554683938622475,
-0.04511861503124237,
-0.02090430073440075,
-0.002795285312458873,
0.02535705454647541,
0.007595295086503029,
0.06860393285751343,
-0.01857941225171089,
0.05008362978696823,
0.033710893243551254,
0.006112685427069664,
0.07459348440170288,
-0.025160031393170357,
-0.002541616326197982,
0.068958580493927,
-0.03828186169266701,
0.023780858144164085,
-0.035464413464069366,
-0.02594812773168087,
-0.028745876625180244,
-0.0075263362377882,
-0.026519499719142914,
-0.0325484499335289,
0.005959991365671158,
-0.03148451820015907,
0.01686529815196991,
-0.0269529540091753,
-0.013111981563270092,
-0.05563972145318985,
-0.029514271765947342,
0.030775228515267372,
-0.0437394417822361,
-0.009353739209473133,
0.09291676431894302,
0.014609367586672306,
-0.000877990503795445,
-0.06190510094165802,
-0.012057900428771973,
0.030834335833787918,
0.07553920149803162,
0.035720545798540115,
0.018037594854831696,
-0.047285884618759155,
-0.01434338465332985,
-0.03930639103055,
0.00438379542902112,
-0.019554683938622475,
0.035050660371780396,
-0.01404784806072712,
0.0066003212705254555,
0.045355044305324554,
-0.05311780795454979,
-0.013368112966418266,
0.008649376221001148,
-0.03774989768862724,
0.08479934930801392,
-0.05110815912485123,
0.0016685513546690345,
-0.0456702820956707,
-0.06564857065677643,
0.002132790395990014,
0.01819521375000477,
0.03751346841454506,
0.018362684175372124,
0.017742058262228966,
-0.05059589445590973,
0.045355044305324554,
0.016392439603805542,
0.040390025824308395,
0.04366063326597214,
0.04145395755767822,
0.027997182682156563,
-0.021416565403342247,
0.016816042363643646,
0.005068455822765827,
0.036094892770051956,
0.012540610507130623,
-0.017466222867369652,
-0.042833130806684494,
-0.01471773162484169,
0.008161740377545357,
-0.04263610392808914,
-0.026401285082101822,
-0.003913399297744036,
-0.006925411522388458,
-0.01456996239721775,
-0.04377884790301323,
0.0768001526594162,
0.0225790087133646,
0.09693606197834015,
0.03367149084806442,
0.02850944735109806,
-0.00003574917354853824,
0.050320062786340714,
0.046064332127571106,
0.01223522238433361,
0.09165580570697784,
-0.06300844252109528,
-0.029494570568203926,
0.009299556724727154,
-0.012146561406552792,
-0.0077627659775316715,
-0.03828186169266701,
-0.004423200152814388,
0.07967671006917953,
0.019958583638072014,
0.051699232310056686,
0.027228787541389465,
-0.009191193617880344,
0.014323682524263859,
0.02980980835855007,
-0.039010852575302124,
0.03532649576663971,
-0.006821973714977503,
0.010639323852956295,
-0.036981500685214996,
-0.012117007747292519,
0.05812223255634308,
0.02043144218623638,
-0.021810613572597504,
-0.06411177664995193,
0.033967025578022,
0.02813510037958622,
-0.040429431945085526,
0.0029923098627477884,
0.01957438513636589,
-0.026854440569877625,
0.017101727426052094,
0.02397788316011429,
0.010668877512216568,
-0.05422114580869675,
0.04121752828359604,
-0.012264776043593884,
-0.012117007747292519,
0.040094487369060516,
0.0724262148141861,
-0.02383996546268463,
-0.020007839426398277,
-0.013072576373815536,
0.01679633930325508,
0.018342982977628708,
-0.07341133058071136,
-0.03243023529648781,
0.04488218575716019,
0.034085240215063095,
-0.0042335642501711845,
0.02527824603021145,
0.02573140151798725,
-0.048507437109947205,
-0.005506834946572781,
0.05824044719338417,
0.007826798595488071,
0.04756171628832817,
0.042833130806684494,
0.009998993948101997,
-0.0685645341873169,
-0.0049305385909974575,
0.016727380454540253,
-0.0019271459896117449,
0.004915761761367321,
-0.007112585008144379,
0.005984619725495577,
0.042202651500701904,
0.02821391075849533,
-0.04429111257195473,
-0.059816643595695496,
-0.027406109496951103,
0.027031762525439262,
-0.0019997989293187857,
0.013318857178092003,
-0.009097606875002384,
0.003598160110414028,
-0.062338557094335556,
0.028824687004089355,
0.021692398935556412,
0.04823160171508789,
-0.02805629000067711,
-0.011466826312243938,
0.0418086014688015,
-0.014215318486094475,
0.005186670459806919,
-0.03329714387655258,
0.0052605546079576015,
-0.027957778424024582,
-0.04697064310312271,
0.040390025824308395,
-0.005846702493727207,
0.00617179274559021,
-0.04090229049324989,
0.03241053223609924,
-0.01905227079987526,
0.07218978554010391,
0.03644953668117523,
-0.10560514032840729,
0.021515076979994774,
-0.026893846690654755,
0.027071168646216393,
-0.03579935431480408,
-0.00980689562857151,
0.03457780182361603,
-0.03828186169266701,
-0.015555085614323616,
0.0047409022226929665,
0.0110629266127944,
0.08803055435419083,
-0.028332125395536423,
-0.0418086014688015,
0.049689583480358124,
0.01520044170320034,
0.03229231759905815,
0.010373340919613838,
-0.012225370854139328,
0.04105990752577782,
-0.01623482070863247,
-0.009787192568182945,
0.007550964597612619,
0.021672695875167847,
0.013082427904009819,
-0.010905306786298752,
-0.0587921142578125,
-0.04054764658212662,
0.006339263636618853,
-0.003472557058557868,
-0.05504864826798439,
-0.07865218818187714,
0.08034659922122955,
0.03166183829307556,
0.0330607146024704,
0.04559147357940674,
-0.04121752828359604,
0.022854844108223915,
-0.0549304336309433,
-0.03457780182361603,
-0.02624366618692875,
0.02787896804511547,
-0.01842179149389267,
-0.04630076140165329,
0.04834981635212898,
-0.003356805071234703,
0.06679131090641022,
0.022559307515621185,
-0.013535584323108196,
-0.01713128201663494,
-0.029218735173344612,
-0.03359267860651016,
0.02943546324968338,
0.02732730098068714,
-0.015811217948794365,
0.02557378262281418,
-0.09898511320352554,
-0.01255046110600233,
0.011388016864657402,
-0.022086448967456818,
0.016244670376181602,
-0.01660916581749916,
-0.04204503074288368,
0.03422315791249275,
0.022933652624487877,
0.015584639273583889,
-0.03132689744234085,
0.0315830297768116,
-0.005526537541300058,
0.06387534737586975,
-0.028864091262221336,
0.004450291395187378,
0.03465661033987999,
0.002290409989655018,
0.05958021432161331,
0.0015355597715824842,
-0.010412745177745819,
-0.08196219801902771,
0.0061520906165242195,
-0.009949738159775734,
-0.04330598935484886,
0.0072899069637060165,
0.03323803469538689,
0.014806392602622509,
-0.061629269272089005,
-0.000038404388760682195,
-0.040390025824308395,
-0.034085240215063095,
0.004790158476680517,
0.08472054451704025,
-0.024076394736766815,
-0.04689183458685875,
0.010363489389419556,
-0.017466222867369652,
-0.03570084273815155,
0.023741453886032104,
-0.035050660371780396,
-0.029455164447426796,
0.001824939507059753,
0.004822175018489361,
-0.05887092649936676,
-0.03428226709365845,
-0.024923600256443024,
-0.04105990752577782,
-0.007669179234653711,
0.014757135882973671,
0.024076394736766815,
-0.003588309045881033,
-0.015545234084129333,
-0.01920003816485405,
-0.012589866295456886,
0.060959383845329285,
0.04582790285348892,
-0.03461720794439316,
0.06627904623746872,
-0.05130518227815628,
-0.03377000242471695,
0.030893443152308464,
-0.07187454402446747,
-0.03562203049659729,
0.04125693440437317,
-0.04610373452305794,
-0.013732608407735825,
0.019554683938622475,
0.03359267860651016,
0.01173281017690897,
-0.027642538771033287,
-0.022953355684876442,
0.07932206988334656,
0.029593082144856453,
0.0710076317191124,
-0.014560111798346043,
-0.021810613572597504,
0.014698028564453125,
-0.018510453402996063,
-0.05189625546336174,
-0.03503095731139183,
0.0036794329062104225,
-0.04314836859703064,
0.04381825029850006,
-0.022815437987446785,
-0.021712101995944977,
0.0854298323392868,
0.03771049156785011,
-0.05958021432161331,
0.08251386880874634,
0.05449698120355606,
0.008053377270698547,
-0.04645838215947151,
-0.041611578315496445,
0.015663448721170425,
0.024371933192014694,
0.03574024513363838,
-0.010826497338712215,
0.00115875038318336,
0.002578558400273323,
0.06462404131889343,
-0.03150422126054764,
-0.04827100783586502,
-0.019850220531225204,
-0.017692800611257553,
0.01875673420727253,
0.07392359524965286,
0.05694008618593216,
0.020845193415880203,
0.01879613846540451,
0.04429111257195473,
0.012905105948448181,
0.01530880481004715,
-0.041532766073942184,
0.040094487369060516,
-0.05028065666556358,
0.02783956378698349,
0.019416766241192818,
-0.04519742354750633,
0.012274627573788166,
-0.027741052210330963,
0.04866505414247513,
-0.008028749376535416,
-0.017702652141451836,
0.06198391318321228,
-0.04362122714519501,
-0.04149336367845535,
-0.003773019416257739,
-0.007053477689623833,
-0.04133574292063713,
0.032193806022405624,
-0.02043144218623638,
-0.013377964496612549,
-0.002544078975915909,
-0.08377481997013092,
-0.0840112492442131,
0.0012683452805504203,
0.03292279690504074,
0.059186164289712906,
-0.028903495520353317,
0.03024326264858246,
-0.015269399620592594,
-0.02043144218623638,
0.03918817639350891,
-0.005324587691575289,
-0.010718133300542831,
0.07691837102174759,
-0.013890228234231472,
-0.006221048999577761,
0.028529150411486626,
0.10450179874897003,
-0.02573140151798725,
0.05260554701089859,
0.007920385338366032,
-0.010058101266622543,
0.03225291147828102,
0.002957830438390374,
-0.003073582425713539,
0.015358060598373413,
-0.020805789157748222,
0.052329711616039276,
-0.008161740377545357,
0.04519742354750633,
-0.0384000763297081,
0.015348209999501705,
-0.0437394417822361,
0.017840569838881493,
0.006033875979483128,
-0.00827010441571474,
0.03619340434670448,
-0.060998789966106415,
0.017249496653676033,
-0.00750663410872221,
-0.09685724973678589,
0.04239967465400696,
-0.009979291819036007,
0.00945225078612566,
0.0023679884616285563,
-0.020510252565145493,
-0.05323602259159088,
-0.007107659243047237,
0.031898267567157745,
-0.0052063725888729095,
-0.012432246468961239,
0.06245677173137665,
-0.050398871302604675,
0.03237112611532211,
0.03611459210515022,
0.03574024513363838,
-0.026519499719142914,
-0.05051708593964577,
-0.06426939368247986,
-0.04448813572525978,
0.023189784958958626,
-0.03457780182361603,
0.010255126282572746,
0.020254120230674744,
-0.0186877753585577,
0.022106150165200233,
-0.03966103494167328,
0.0320361852645874,
-0.06013188138604164,
0.08479934930801392,
0.01723964512348175,
-0.017170686274766922,
0.016550058498978615
]
|
30,035 | pawl.linkedin | __init__ | null | def __init__(
self,
access_token=None,
client_id=None,
client_secret=None,
redirect_uri="http://localhost:8000",
token_manager=None,
):
assert access_token or (
client_id and client_secret
), "Either client_id and client_secret or an access token is required."
self._core = self._authorized_core = None
# TODO - Abstract these values for security
self._client_id = client_id
self._client_secret = client_secret
self._redirect_uri = redirect_uri
# TODO END
self._services = None
self._token_manager = token_manager
self._map_services()
self._prepare_core()
self.auth = service.Auth(self, None)
self.current_user = service.Me(linkedin=self, _data=None)
self.current_user_id = self._set_linkedin_user_id()
self.reactions = service.Reactions(linkedin=self, _data=None)
| (self, access_token=None, client_id=None, client_secret=None, redirect_uri='http://localhost:8000', token_manager=None) | [
-0.05250927433371544,
-0.024316510185599327,
-0.04020116478204727,
0.04287857934832573,
0.025295564904808998,
-0.015714818611741066,
-0.01316727977246046,
0.07149093598127365,
-0.007692568935453892,
0.029791221022605896,
0.007437814958393574,
0.05730464309453964,
0.0035490714944899082,
0.03260849788784981,
-0.0097955372184515,
0.034886300563812256,
0.012248167768120766,
-0.008257023990154266,
0.0019506156677380204,
-0.08463823795318604,
-0.020290398970246315,
-0.020839868113398552,
-0.01932133547961712,
0.009106202982366085,
0.0012718962971121073,
0.024636201560497284,
-0.03132973611354828,
0.0324086919426918,
0.04799363762140274,
0.007013224996626377,
0.034386780112981796,
0.023157630115747452,
0.001730827963910997,
0.02677413634955883,
0.009445874951779842,
-0.053788039833307266,
0.017383206635713577,
0.02771322801709175,
-0.14106373488903046,
0.015375147573649883,
0.0028872108086943626,
-0.01986081339418888,
0.03826303780078888,
0.01915149949491024,
0.0016146901762112975,
0.03043060377240181,
0.019521141424775124,
0.06865368038415909,
0.029211780056357384,
-0.035305894911289215,
-0.07308939099311829,
0.0014198783319443464,
-0.0507509745657444,
0.007577680051326752,
-0.03542577847838402,
0.04559595510363579,
0.016174376010894775,
0.06853379309177399,
-0.06397819519042969,
0.02761332504451275,
-0.06146062910556793,
-0.00484531931579113,
0.06761468201875687,
-0.009266048669815063,
0.046395182609558105,
0.04563591629266739,
-0.06529692560434341,
0.010639721527695656,
0.013586875051259995,
0.05163012444972992,
0.05155020207166672,
0.03087017871439457,
-0.008896405808627605,
0.016633931547403336,
0.04971197620034218,
-0.02767326682806015,
-0.010729635134339333,
-0.0346665121614933,
-0.044117383658885956,
0.03742384910583496,
0.0600220188498497,
-0.020420273765921593,
-0.016883689910173416,
0.011808592826128006,
0.047234371304512024,
-0.009126183576881886,
-0.02493591234087944,
-0.05942259728908539,
-0.028432533144950867,
0.044117383658885956,
-0.0414000079035759,
0.04331815242767334,
-0.017782822251319885,
-0.05254923552274704,
-0.026874039322137833,
-0.008676618337631226,
-0.04995174705982208,
0.006258953828364611,
-0.01012022327631712,
0.06289923936128616,
-0.032928191125392914,
-0.007887381128966808,
-0.08823476731777191,
0.020370321348309517,
0.015465060248970985,
-0.028232727199792862,
0.004638019483536482,
-0.055586304515600204,
0.02393687702715397,
-0.02313764952123165,
-0.0299111045897007,
-0.027813132852315903,
0.05310869589447975,
0.06229981780052185,
-0.0552666112780571,
0.019471190869808197,
0.04072066396474838,
0.008371912874281406,
0.02587500400841236,
-0.00468797143548727,
-0.028332630172371864,
-0.01775285042822361,
0.01247794646769762,
0.04799363762140274,
0.026454444974660873,
-0.019601065665483475,
0.007662597578018904,
-0.018432194367051125,
-0.0030095926485955715,
-0.07268977910280228,
0.06669557094573975,
-0.011179200373589993,
0.03844286501407623,
-0.015075436793267727,
-0.01934131607413292,
-0.007083157543092966,
-0.012078331783413887,
0.002271555596962571,
-0.051430318504571915,
0.0013024917570874095,
-0.04191950336098671,
0.029351646080613136,
-0.03200908005237579,
0.026973942294716835,
-0.04787375405430794,
-0.03544575721025467,
-0.04060078039765358,
-0.01450598705559969,
0.06409808248281479,
-0.0006225236575119197,
0.04531622305512428,
-0.06313900649547577,
0.06785444915294647,
0.029811201617121696,
-0.08128148317337036,
-0.019021624699234962,
-0.016014529392123222,
-0.05222954601049423,
0.012108303606510162,
0.049991708248853683,
-0.012238177470862865,
-0.0253155454993248,
0.020859848707914352,
-0.0026998918037861586,
-0.024116702377796173,
-0.030730314552783966,
0.034326840192079544,
-0.09023283421993256,
-0.013447009958326817,
-0.010459895245730877,
0.018532097339630127,
-0.03412703424692154,
-0.054187655448913574,
-0.04467684030532837,
-0.03095010109245777,
-0.0012875061947852373,
0.02773320861160755,
-0.028272688388824463,
-0.029211780056357384,
-0.002909689210355282,
0.029711298644542694,
-0.005080092698335648,
-0.07276970148086548,
-0.019511152058839798,
-0.023637166246771812,
0.00794732291251421,
0.041759658604860306,
0.03546573966741562,
0.015205311588943005,
0.059862170368433,
-0.06257954984903336,
0.0005575863760896027,
0.015964578837156296,
0.011119258590042591,
-0.02081988751888275,
0.02855241857469082,
0.030170854181051254,
-0.012128284201025963,
0.007642616983503103,
0.01907157711684704,
-0.04831332713365555,
0.04335811361670494,
0.0025600269436836243,
-0.027093827724456787,
0.03932201489806175,
0.03836294263601303,
-0.01704353652894497,
0.026594309136271477,
-0.02853243798017502,
-0.020839868113398552,
-0.04523630067706108,
-0.0071730706840753555,
0.00782244373112917,
0.0253355260938406,
-0.005659532733261585,
0.0196310356259346,
0.013227222487330437,
0.007342906668782234,
0.03134971484541893,
0.027473460882902145,
0.04187954217195511,
0.0009209853014908731,
-0.002919679507613182,
-0.06377838551998138,
0.007218027487397194,
0.04759402200579643,
0.006603620946407318,
-0.010160185396671295,
-0.017742859199643135,
-0.01773286983370781,
0.002919679507613182,
0.000663733808323741,
-0.0230777058750391,
0.0027623316273093224,
-0.022917861118912697,
-0.12491932511329651,
0.06637588143348694,
-0.010919451713562012,
-0.07692568749189377,
0.014685813337564468,
0.055066805332899094,
0.005150024779140949,
0.015435089357197285,
-0.016134414821863174,
-0.014416073448956013,
0.018492136150598526,
-0.06174035742878914,
-0.025495370849967003,
0.002672418486326933,
0.008316965773701668,
-0.035705506801605225,
0.003251858754083514,
-0.020560137927532196,
-0.016554009169340134,
-0.0033417718950659037,
-0.022038709372282028,
-0.00317942863330245,
0.01105931680649519,
-0.02727365307509899,
0.0345066674053669,
0.026854058727622032,
0.02441641315817833,
-0.02165907621383667,
0.05386796221137047,
0.009405913762748241,
-0.012238177470862865,
0.04735425487160683,
-0.02403677999973297,
0.05390792340040207,
-0.020620081573724747,
0.17614983022212982,
0.04026110842823982,
0.017722878605127335,
0.025055795907974243,
-0.039941415190696716,
-0.047713909298181534,
-0.006903331261128187,
-0.014386102557182312,
-0.05450734496116638,
-0.03310801833868027,
-0.015734799206256866,
-0.03682442754507065,
0.030150873586535454,
0.07169074565172195,
0.008047225885093212,
-0.024256568402051926,
0.02079990692436695,
0.031050005927681923,
-0.022957822307944298,
-0.024076741188764572,
0.03278832510113716,
0.0195710938423872,
0.020040640607476234,
-0.004648009780794382,
-0.008956347592175007,
-0.011678718030452728,
-0.024696143344044685,
0.035725489258766174,
-0.0012406765017658472,
0.02819276601076126,
0.015225292183458805,
-0.012348071672022343,
0.014705793932080269,
-0.00021635349548887461,
0.034426745027303696,
-0.02577510103583336,
0.05206970125436783,
0.04927240312099457,
0.022718053311109543,
0.05342838913202286,
0.03420695662498474,
-0.017033545300364494,
-0.0010389962699264288,
0.036264967173337936,
-0.011988419108092785,
-0.0056695230305194855,
0.015834704041481018,
-0.01978089101612568,
0.03316795825958252,
0.029791221022605896,
-0.007647612132132053,
0.018332291394472122,
0.06629595905542374,
0.012398023158311844,
0.025954926386475563,
0.00002382464117545169,
-0.016763806343078613,
0.04018118605017662,
-0.04183958098292351,
0.02255820855498314,
-0.06821410357952118,
0.02015053480863571,
-0.01800260879099369,
-0.020390301942825317,
-0.010629731230437756,
-0.027093827724456787,
-0.019031615927815437,
-0.025555312633514404,
-0.004473178647458553,
-0.04695463925600052,
0.0035590617917478085,
-0.013586875051259995,
-0.03784344345331192,
0.05258919671177864,
-0.04847317561507225,
0.008961343206465244,
0.004031105898320675,
-0.06190020218491554,
-0.01246795617043972,
-0.08060213923454285,
-0.03358755260705948,
0.03552568331360817,
0.062020089477300644,
0.026454444974660873,
0.03416699543595314,
-0.009166145697236061,
0.00003299547097412869,
-0.009955382905900478,
-0.006014190148562193,
0.00241516693495214,
0.031189870089292526,
-7.951303473419102e-7,
0.006613611243665218,
0.049072593450546265,
-0.06777452677488327,
0.00017623600433580577,
-0.006189021281898022,
-0.03590531647205353,
0.025954926386475563,
-0.03264846280217171,
-0.0026899015065282583,
-0.06313900649547577,
-0.03640483319759369,
0.02259816974401474,
0.030990062281489372,
0.016943631693720818,
-0.03288822993636131,
0.021019695326685905,
-0.01685371994972229,
0.023317474871873856,
-0.03646477311849594,
0.04847317561507225,
0.04016120359301567,
0.03328784182667732,
-0.01428619958460331,
-0.006953283213078976,
-0.001923142233863473,
0.02439643256366253,
0.02495589293539524,
0.053708117455244064,
-0.009955382905900478,
-0.046834755688905716,
-0.0460355281829834,
-0.03238871321082115,
-0.0010502354707568884,
-0.006413804367184639,
-0.00948084145784378,
0.010829538106918335,
-0.007193051278591156,
-0.03093012049794197,
0.07017221301794052,
0.017283303663134575,
0.06229981780052185,
-0.0021741497330367565,
0.025295564904808998,
0.009615710936486721,
0.023357436060905457,
0.05906294286251068,
0.040840547531843185,
0.05634557083249092,
-0.01729329489171505,
-0.024556279182434082,
-0.014216266572475433,
-0.004305840469896793,
-0.022458305582404137,
-0.07025213539600372,
-0.04335811361670494,
0.04655502736568451,
0.02811284177005291,
0.016114432364702225,
0.03974160924553871,
0.027913035824894905,
0.026194695383310318,
-0.041320085525512695,
-0.04747413843870163,
0.01919146068394184,
-0.009800532832741737,
0.03356757387518883,
-0.01473576482385397,
-0.05674518272280693,
0.036244988441467285,
0.0462353341281414,
-0.020040640607476234,
-0.04659498855471611,
0.033867284655570984,
0.04943224787712097,
-0.03732394427061081,
0.003281829645857215,
0.0066935340873897076,
-0.03646477311849594,
0.018012600019574165,
-0.00484032416716218,
0.04116023704409599,
-0.039381954818964005,
0.034806378185749054,
-0.023197591304779053,
-0.03794334456324577,
0.010280068963766098,
0.049991708248853683,
-0.02127944305539131,
-0.04207935184240341,
0.03602520003914833,
0.0008185842307284474,
-0.020640062168240547,
-0.0462752990424633,
-0.034386780112981796,
-0.027533402666449547,
0.043637845665216446,
0.006054151803255081,
0.031609464436769485,
0.0036364870611578226,
-0.061940163373947144,
-0.04211931303143501,
-0.018092522397637367,
0.02163909561932087,
0.05167008563876152,
0.0508708581328392,
0.023737069219350815,
-0.04112027585506439,
-0.010669693350791931,
-0.010160185396671295,
0.00019044103100895882,
0.01127910427749157,
0.00478787487372756,
0.0042983475141227245,
0.019121527671813965,
0.023777030408382416,
-0.05618572235107422,
-0.025255601853132248,
-0.0030095926485955715,
-0.005030140746384859,
0.05214962363243103,
-0.006608616095036268,
0.005090082995593548,
-0.03522597253322601,
-0.00821706186980009,
-0.001980586675927043,
-0.048633020371198654,
0.06665560603141785,
-0.023337455466389656,
-0.026174714788794518,
0.04375772923231125,
-0.03041062317788601,
-0.00247760652564466,
-0.034886300563812256,
0.03170936927199364,
-0.022378381341695786,
-0.03005097061395645,
0.04895270988345146,
0.025555312633514404,
-0.014356131665408611,
-0.013966508209705353,
-0.018352271988987923,
-0.013576884754002094,
0.0459955669939518,
0.010479875840246677,
-0.10877492278814316,
-0.021019695326685905,
-0.01664392091333866,
0.0043982514180243015,
0.006868365220725536,
-0.017283303663134575,
0.007847419008612633,
-0.019281374290585518,
-0.029651356860995293,
-0.012278139591217041,
0.002139183459803462,
0.052309468388557434,
-0.042199235409498215,
-0.02007061056792736,
0.015065446496009827,
-0.0019218934467062354,
0.018072541803121567,
-0.006393823307007551,
-0.03876255452632904,
-0.004405743908137083,
0.015295224264264107,
0.016194356605410576,
0.0029571433551609516,
0.0016608955338597298,
-0.009226087480783463,
-0.027952997013926506,
-0.0736088901758194,
-0.021798942238092422,
-0.010669693350791931,
-0.01769290864467621,
-0.05394788458943367,
-0.05206970125436783,
0.058823175728321075,
0.03642481192946434,
0.03518601134419441,
0.016713853925466537,
-0.031609464436769485,
0.008711584843695164,
-0.04004132002592087,
-0.055146727710962296,
-0.02359720505774021,
0.013846623711287975,
-0.03182925283908844,
-0.0126777533441782,
0.09990349411964417,
-0.032548557966947556,
0.02677413634955883,
0.010290059261023998,
-0.016943631693720818,
0.014236247166991234,
-0.0013674290385097265,
-0.04739421606063843,
0.04843321442604065,
0.0345466285943985,
-0.008581710048019886,
0.01291752140969038,
-0.08599692583084106,
-0.006538683548569679,
0.024576259776949883,
-0.02081988751888275,
0.010050291195511818,
-0.02071998454630375,
-0.05446738377213478,
0.05770425498485565,
0.021359367296099663,
-0.018641991540789604,
-0.023217571899294853,
0.08879422396421432,
-0.013976498506963253,
0.04887278750538826,
0.006184026133269072,
0.021559173241257668,
0.04895270988345146,
0.016454104334115982,
0.04687471687793732,
0.021499231457710266,
-0.01773286983370781,
-0.05246931314468384,
-0.006288924720138311,
0.002016801852732897,
-0.02355724386870861,
0.010195150971412659,
0.041679736226797104,
-0.01723335310816765,
-0.03316795825958252,
-0.025155698880553246,
-0.0462353341281414,
-0.0006812169449403882,
-0.010330021381378174,
0.010919451713562012,
-0.0033842308912426233,
-0.053788039833307266,
0.005889310967177153,
0.00944088026881218,
-0.02441641315817833,
0.040780603885650635,
-0.025675198063254356,
-0.03360753506422043,
-0.006288924720138311,
-0.01155883353203535,
-0.06645580381155014,
-0.0036914339289069176,
-0.040840547531843185,
0.0033992163371294737,
-0.02028040960431099,
0.02673417516052723,
0.0020155529491603374,
-0.014246237464249134,
-0.025255601853132248,
0.011678718030452728,
-0.04559595510363579,
0.08000271767377853,
0.017862744629383087,
0.013387068174779415,
0.06857375800609589,
-0.07181063294410706,
-0.03904228284955025,
0.05262915790081024,
-0.06557665020227432,
-0.04291854053735733,
0.07245001196861267,
-0.07932337373495102,
-0.008841458708047867,
0.057424526661634445,
0.03270840272307396,
0.015395128168165684,
-0.05730464309453964,
-0.037543732672929764,
0.08359923958778381,
0.06277935206890106,
0.06741487979888916,
-0.0031994092278182507,
0.05039132013916969,
0.04883282631635666,
-0.009031275287270546,
-0.023297494277358055,
0.00010583526454865932,
-0.005499687045812607,
-0.02579508163034916,
0.05218958482146263,
-0.05662529915571213,
0.012557868845760822,
0.05718475952744484,
0.030730314552783966,
-0.02393687702715397,
0.0786040648818016,
0.04227915778756142,
0.030070951208472252,
-0.07252993434667587,
-0.017113467678427696,
-0.0063238912262022495,
0.013077367097139359,
0.01409638300538063,
-0.0016334220999851823,
-0.005984219256788492,
-0.0015834703808650374,
0.07237008959054947,
-0.010639721527695656,
-0.03738388791680336,
-0.018661972135305405,
-0.0001624992728466168,
0.022478286176919937,
0.021918825805187225,
0.06501719355583191,
0.015015495009720325,
0.0368044450879097,
0.014486006461083889,
0.04467684030532837,
0.03136969730257988,
-0.04651506617665291,
0.027033884078264236,
-0.014895610511302948,
0.04287857934832573,
0.03362751379609108,
-0.02805289998650551,
0.04755406081676483,
0.0060691372491419315,
-0.003728897776454687,
-0.013247203081846237,
-0.012168245390057564,
0.0009671906591393054,
0.002031787298619747,
-0.03142963722348213,
-0.01452596765011549,
-0.01633422076702118,
-0.0010951920412480831,
0.007442810107022524,
-0.03630492836236954,
-0.02679411694407463,
0.012418003752827644,
-0.049991708248853683,
-0.12587839365005493,
-0.013976498506963253,
0.023257533088326454,
0.02405676059424877,
-0.007178065832704306,
-0.02401679940521717,
-0.0003128228127025068,
-0.03001100942492485,
0.03586535528302193,
0.02030039019882679,
-0.010589770041406155,
0.020939771085977554,
-0.05674518272280693,
0.01723335310816765,
0.019201451912522316,
0.0739685446023941,
0.0027198726311326027,
0.024336490780115128,
-0.03550570085644722,
0.0028772205114364624,
0.014605890028178692,
-0.00806221179664135,
-0.042678773403167725,
-0.023357436060905457,
-0.0599021352827549,
0.011219162493944168,
-0.0002841005625668913,
0.07324924319982529,
-0.03456660732626915,
-0.006403813604265451,
-0.020979734137654305,
0.03786342218518257,
-0.04547606781125069,
-0.02817278541624546,
-0.025595273822546005,
-0.04751409962773323,
0.02955145202577114,
-0.002081739017739892,
-0.06789441406726837,
0.048712942749261856,
-0.002909689210355282,
0.038482826203107834,
0.03954180330038071,
-0.0000878058053785935,
-0.05454730615019798,
0.005239937920123339,
0.008182096295058727,
-0.03132973611354828,
0.034406762570142746,
0.004021115601062775,
-0.10230117291212082,
0.020210476592183113,
0.04295850172638893,
0.0017208376666530967,
-0.01639416255056858,
-0.015774762257933617,
-0.022777996957302094,
-0.02807288058102131,
0.03130975365638733,
-0.06541680544614792,
-0.0026149738114327192,
-0.014645852148532867,
-0.025175679475069046,
0.024116702377796173,
-0.03554566204547882,
0.04295850172638893,
-0.08447839319705963,
0.06741487979888916,
0.07580676674842834,
0.014486006461083889,
0.011119258590042591
]
|
30,036 | pawl.linkedin | _map_services | null | def _map_services(self):
service_mappings = {
"Me": service.Me,
"Reactions": service.Reactions,
}
self._services = service_mappings
| (self) | [
0.009435941465198994,
-0.036228906363248825,
-0.00575829716399312,
-0.022485647350549698,
-0.04186856746673584,
0.017174508422613144,
0.006228269077837467,
0.03887534886598587,
0.03193984180688858,
0.052892375737428665,
-0.015039102174341679,
0.03706846758723259,
0.014363802969455719,
0.02126280777156353,
0.003908067941665649,
0.009166734293103218,
-0.042635124176740646,
0.036794696003198624,
-0.018817128613591194,
-0.10622278600931168,
0.016845984384417534,
0.017220137640833855,
0.0712532252073288,
-0.08001386374235153,
0.013049706816673279,
0.04818353056907654,
-0.03880234435200691,
-0.007533239666372538,
0.08359112590551376,
-0.050264183431863785,
-0.04040846228599548,
-0.03763425722718239,
-0.0102024981752038,
0.007254906930029392,
0.013551617972552776,
-0.006803186144679785,
0.03715972229838371,
0.051870301365852356,
-0.019638439640402794,
0.0356266126036644,
0.03451327979564667,
-0.002406895160675049,
-0.009125668555498123,
0.018999643623828888,
0.00851424876600504,
0.04679642990231514,
-0.018260464072227478,
0.08943155407905579,
0.07877277582883835,
0.0032327682711184025,
-0.0583677776157856,
-0.06760295480489731,
-0.023489471524953842,
0.039714910089969635,
0.04048146679997444,
-0.0022825580090284348,
-0.013341727666556835,
0.08183900266885757,
-0.05373193696141243,
0.05709018558263779,
-0.010494519025087357,
-0.04613938182592392,
0.006032067351043224,
-0.019382920116186142,
0.04544582962989807,
0.010184246115386486,
0.00631040008738637,
-0.04336518049240112,
-0.005625974852591753,
0.028435584157705307,
0.017603415995836258,
-0.036101147532463074,
-0.0022129747085273266,
0.015586642548441887,
0.01393489632755518,
0.024365536868572235,
0.06701891124248505,
-0.05336691066622734,
0.0003467754286248237,
-0.010257251560688019,
0.033272188156843185,
-0.049972161650657654,
-0.07431944459676743,
-0.0024958704598248005,
0.02458455227315426,
0.03898485749959946,
0.01110593881458044,
-0.023872749879956245,
-0.039167370647192,
-0.03252388536930084,
-0.046978943049907684,
0.020003465935587883,
-0.009066351689398289,
0.004633558448404074,
-0.02434728480875492,
0.00006330932956188917,
-0.021481825038790703,
-0.002680665347725153,
-0.04413173347711563,
0.02996869757771492,
-0.020861279219388962,
0.007930206134915352,
-0.012474789284169674,
-0.006835125852376223,
0.0300051998347044,
-0.07333387434482574,
-0.03960540145635605,
-0.025971652939915657,
-0.030844761058688164,
0.009536324068903923,
-0.03161131590604782,
0.02168259024620056,
0.04781850427389145,
0.045591842383146286,
-0.03347295522689819,
0.013113586232066154,
0.0712532252073288,
-0.009093728847801685,
-0.004809227306395769,
0.045007798820734024,
-0.06486525386571884,
0.013734132051467896,
0.02093428373336792,
-0.018242212012410164,
0.014710578136146069,
-0.031009022146463394,
0.012858067639172077,
0.03301667049527168,
0.01422691810876131,
-0.012064134702086449,
0.000674158800393343,
-0.0013677095994353294,
0.03927687928080559,
-0.012328778393566608,
0.02845383621752262,
0.011251949705183506,
-0.044934794306755066,
0.03526158630847931,
-0.015194239094853401,
0.0712532252073288,
-0.020642263814806938,
0.03956890106201172,
-0.05844078212976456,
0.02688422054052353,
0.02721274457871914,
-0.034586284309625626,
0.027084985747933388,
0.055849093943834305,
-0.031465306878089905,
-0.017457405105233192,
-0.00233503058552742,
-0.02327045612037182,
-0.008030588738620281,
0.060521434992551804,
-0.09724313020706177,
0.016490083187818527,
0.02007647231221199,
0.003196265548467636,
-0.020313739776611328,
0.009855722077190876,
-0.013551617972552776,
-0.02536935918033123,
-0.03535284101963043,
-0.04778200387954712,
-0.034458525478839874,
-0.027687279507517815,
-0.009956104680895805,
-0.029950445517897606,
0.04938812181353569,
0.012757685035467148,
-0.03042498044669628,
-0.01769467256963253,
0.019583685323596,
0.013150088489055634,
0.05840428173542023,
-0.032286617904901505,
0.007884577848017216,
-0.05435248464345932,
0.03927687928080559,
0.04978964850306511,
0.031593065708875656,
0.0348053015768528,
-0.06285760551691055,
-0.006794060580432415,
-0.02750476635992527,
-0.006273897364735603,
0.0219198577105999,
0.036265406757593155,
-0.02586214616894722,
0.02352597378194332,
0.043328676372766495,
0.01941942423582077,
0.01022074930369854,
0.0023430155124515295,
-0.015267244540154934,
0.03336344659328461,
-0.0017258921870961785,
-0.03843731805682182,
-0.057820238173007965,
-0.007022202480584383,
-0.044934794306755066,
0.008756079711019993,
-0.025770889595150948,
0.053184397518634796,
0.021445322781801224,
0.030936017632484436,
0.021171551197767258,
-0.002669258276000619,
0.017019372433423996,
-0.08994258940219879,
-0.03920387476682663,
-0.01912740245461464,
-0.01641707867383957,
-0.010421513579785824,
0.0000092771697381977,
-0.00597275048494339,
0.04248911514878273,
-0.005826739594340324,
0.003853313624858856,
0.01863461546599865,
0.0004528613353613764,
0.019401172176003456,
-0.02056925743818283,
-0.003965103067457676,
-0.024602804332971573,
0.02237614057958126,
-0.029621921479701996,
-0.005265511106699705,
0.010156869888305664,
-0.010932551696896553,
0.04183206707239151,
-0.010932551696896553,
-0.04533632472157478,
-0.005046494770795107,
0.06789498031139374,
-0.0755605399608612,
0.04544582962989807,
-0.01876237615942955,
0.04964363947510719,
0.036520928144454956,
0.045591842383146286,
0.03486005589365959,
-0.0250773373991251,
-0.011416211724281311,
-0.0032167984172701836,
-0.008756079711019993,
-0.048256538808345795,
-0.049278613179922104,
0.03318093344569206,
0.06311312317848206,
0.04719796031713486,
-0.02089778147637844,
-0.0014658105792477727,
0.03365546837449074,
-0.04814703017473221,
-0.11680856347084045,
-0.05665215104818344,
0.05070221796631813,
-0.046905938535928726,
0.005361330695450306,
-0.032980166375637054,
0.06402569264173508,
-0.007022202480584383,
-0.037415243685245514,
0.0087013253942132,
0.038656335324048996,
0.05654264613986015,
0.027559520676732063,
0.010156869888305664,
0.007460234221071005,
0.13549792766571045,
-0.02622717246413231,
-0.039349883794784546,
0.028380829840898514,
0.003819092409685254,
-0.003440377302467823,
-0.007930206134915352,
-0.029329899698495865,
-0.022102370858192444,
0.004946112632751465,
-0.005895182024687529,
-0.02241264283657074,
0.0019528931006789207,
0.0026418811175972223,
0.036101147532463074,
-0.023671984672546387,
0.0632956400513649,
0.05427948012948036,
0.007505862507969141,
-0.025424113497138023,
0.038108792155981064,
0.009591078385710716,
-0.016800357028841972,
-0.006073132622987032,
-0.0742829442024231,
-0.022065866738557816,
-0.08154697716236115,
0.014783583581447601,
0.03476879745721817,
-0.0712532252073288,
-0.0325968898832798,
0.022321386262774467,
0.0487675741314888,
0.040736984461545944,
-0.02044149860739708,
-0.002112592337653041,
0.035407595336437225,
-0.007880015298724174,
0.06391618400812149,
0.015705276280641556,
-0.00435978826135397,
-0.014190414920449257,
-0.05241784080862999,
0.0162984449416399,
-0.015878664329648018,
0.006935508456081152,
-0.050264183431863785,
0.0017589726485311985,
0.02257690578699112,
0.039386387914419174,
-0.038400813937187195,
0.06891705095767975,
-0.02856334298849106,
0.012246647849678993,
0.061434004455804825,
0.06508427113294601,
0.0014726548688486218,
-0.0023886437993496656,
0.016070302575826645,
-0.05347641929984093,
-0.01925516128540039,
-0.020039968192577362,
0.010083864443004131,
0.004676905460655689,
-0.030680498108267784,
-0.03371022269129753,
-0.0023475782945752144,
-0.029329899698495865,
-0.032980166375637054,
0.007428294513374567,
0.016070302575826645,
-0.01013861782848835,
-0.09059964120388031,
-0.019693193957209587,
0.011142442002892494,
0.017877185717225075,
-0.012036757543683052,
-0.006114198360592127,
-0.06369716674089432,
-0.039970431476831436,
0.012858067639172077,
0.00694919703528285,
0.06716492027044296,
0.05103074014186859,
0.04705194756388664,
-0.013779760338366032,
0.017466530203819275,
-0.010019984096288681,
0.012566045857965946,
0.009965230710804462,
0.04745347797870636,
-0.03883884847164154,
-0.007597119547426701,
-0.036429669708013535,
-0.037415243685245514,
0.010686158202588558,
0.009554575197398663,
-0.027559520676732063,
0.05920733883976936,
-0.06088646501302719,
0.04285414144396782,
0.007355289068073034,
-0.04613938182592392,
0.018160080537199974,
-0.010083864443004131,
0.02889186702668667,
0.06121498718857765,
0.028435584157705307,
-0.02684771828353405,
0.02553362213075161,
0.0019426267826929688,
0.009864848107099533,
0.028253071010112762,
0.054863519966602325,
0.040700484067201614,
-0.009572826325893402,
0.07242131233215332,
-0.004777287598699331,
0.04716145619750023,
-0.007099770475178957,
-0.014719704166054726,
-0.0038396252784878016,
-0.04708845168352127,
0.012547794729471207,
0.01978445053100586,
-0.0454823337495327,
-0.02484007179737091,
-0.00858269166201353,
0.011489217169582844,
-0.02553362213075161,
0.02996869757771492,
-0.05300188437104225,
0.08344511687755585,
-0.004403135273605585,
-0.0006781512638553977,
0.01013861782848835,
-0.019966963678598404,
0.033308692276477814,
0.015185113064944744,
0.08169298619031906,
-0.03336344659328461,
-0.011215447448194027,
-0.028107060119509697,
-0.05803925544023514,
-0.029713178053498268,
-0.03584562614560127,
0.023288706317543983,
0.02303318865597248,
0.035936884582042694,
0.011854244396090508,
0.0022711509373039007,
-0.02819831669330597,
0.010503645054996014,
-0.0323413722217083,
0.01317746564745903,
0.021116798743605614,
-0.014254295267164707,
0.0029612795915454626,
0.005603160709142685,
0.03206760063767433,
0.008934030309319496,
0.018242212012410164,
-0.04150354117155075,
-0.1350598931312561,
0.0638066753745079,
-0.009020723402500153,
0.005575783550739288,
-0.06471924483776093,
-0.031994596123695374,
-0.034750547260046005,
-0.0058723678812384605,
-0.026336681097745895,
0.008099031634628773,
-0.034586284309625626,
0.06420820951461792,
-0.0033901860006153584,
-0.04716145619750023,
0.01941942423582077,
0.0706326812505722,
-0.056177619844675064,
-0.06293061375617981,
-0.0649382621049881,
0.009070915170013905,
0.0018650585552677512,
0.0635511577129364,
-0.03082650899887085,
0.00331946206279099,
-0.02615416795015335,
-0.019638439640402794,
0.007816135883331299,
-0.029366401955485344,
-0.09877624362707138,
-0.0638066753745079,
0.01585128717124462,
-0.011826867237687111,
0.012264898978173733,
0.029092632234096527,
-0.02688422054052353,
0.010357634164392948,
0.01863461546599865,
0.0008007774595171213,
-0.01010211557149887,
0.07472097873687744,
-0.02898312546312809,
-0.05500953271985054,
0.03858332708477974,
0.04179556295275688,
-0.0010055346647277474,
-0.034622788429260254,
0.01814183034002781,
0.04646790772676468,
0.00835455022752285,
-0.008778893388807774,
0.0300051998347044,
-0.004649528302252293,
-0.01843385212123394,
0.01252041757106781,
-0.020368492230772972,
-0.005831302609294653,
-0.05829477310180664,
0.009682334959506989,
0.004476140718907118,
0.018579861149191856,
0.030735252425074577,
0.002730856416746974,
0.018981391564011574,
0.02056925743818283,
0.02077002264559269,
0.029895691201090813,
0.005201631225645542,
0.012666428461670876,
-0.04467927664518356,
-0.07077869027853012,
0.017995819449424744,
-0.0029818122275173664,
-0.008349986746907234,
-0.052198827266693115,
-0.05953586474061012,
-0.030443232506513596,
0.017877185717225075,
0.018999643623828888,
-0.008924904279410839,
-0.016608716920018196,
-0.004578804597258568,
0.0006279600784182549,
-0.030643995851278305,
-0.05311139300465584,
-0.007013076450675726,
-0.07891878485679626,
-0.031994596123695374,
-0.017959317192435265,
-0.04540932923555374,
0.010932551696896553,
0.06997562944889069,
-0.0026578509714454412,
-0.02277766913175583,
-0.032651644200086594,
0.007911955006420612,
0.014482436701655388,
0.007254906930029392,
-0.011817741207778454,
-0.02014947682619095,
-0.03549885377287865,
-0.01356987003237009,
-0.01161697693169117,
-0.02922039106488228,
0.059791382402181625,
-0.10512770712375641,
-0.01422691810876131,
0.02786979265511036,
0.013350853696465492,
0.02927514538168907,
-0.02943940833210945,
-0.04745347797870636,
0.017384398728609085,
-0.01991220936179161,
-0.05135926604270935,
-0.04847555235028267,
-0.009654957801103592,
-0.017265764996409416,
0.00839561503380537,
-0.0210985466837883,
-0.04818353056907654,
-0.008573565632104874,
-0.00814922247081995,
-0.019401172176003456,
-0.03657568246126175,
-0.03535284101963043,
-0.027267498895525932,
0.02898312546312809,
-0.013004078529775143,
0.02750476635992527,
-0.019346417859196663,
0.05738220736384392,
-0.016672596335411072,
-0.00171106297057122,
-0.03312617912888527,
-0.02401876077055931,
-0.03526158630847931,
0.031009022146463394,
0.03387448191642761,
-0.031191537156701088,
0.017877185717225075,
0.002463930519297719,
-0.006041192915290594,
0.035407595336437225,
0.05270986258983612,
-0.02336171269416809,
0.05427948012948036,
-0.021116798743605614,
-0.02566138096153736,
0.009819219820201397,
-0.05033719167113304,
0.03476879745721817,
0.028143562376499176,
-0.011379709467291832,
-0.028216568753123283,
0.04803752154111862,
0.06479225307703018,
-0.0005409810692071915,
-0.04091950133442879,
-0.007168212905526161,
-0.00008334302401635796,
-0.005785674322396517,
-0.06749344617128372,
-0.001411056611686945,
-0.0027513892855495214,
-0.003155200043693185,
0.012118888087570667,
0.03440377116203308,
-0.000747734506148845,
0.051833800971508026,
0.0501546747982502,
-0.06387968361377716,
0.03305317461490631,
-0.0025346544571220875,
0.005822176579385996,
0.014518938958644867,
-0.01252041757106781,
0.021481825038790703,
-0.04675992950797081,
-0.01262080017477274,
0.05825826898217201,
-0.020131224766373634,
0.03141055256128311,
-0.03690420463681221,
0.0258986484259367,
-0.01679123006761074,
0.03515207767486572,
-0.05300188437104225,
-0.025916900485754013,
-0.027395257726311684,
-0.018744124099612236,
0.0036844888236373663,
0.0020373056177049875,
-0.01912740245461464,
0.015823910012841225,
-0.047928012907505035,
0.027815038338303566,
-0.009344684891402721,
-0.034622788429260254,
0.002409176668152213,
-0.024110017344355583,
-0.02832607552409172,
0.05347641929984093,
0.05311139300465584,
0.037378739565610886,
-0.003757494268938899,
-0.0025369359645992517,
0.016800357028841972,
0.01994871161878109,
-0.03416650369763374,
0.07092469930648804,
-0.0028312387876212597,
0.001455544144846499,
0.006287585943937302,
-0.00016340651200152934,
-0.010065612383186817,
0.03756125271320343,
0.022595155984163284,
0.006721055135130882,
0.02401876077055931,
-0.025770889595150948,
0.06227356567978859,
0.053877949714660645,
-0.010229875333607197,
-0.007341600488871336,
-0.021974610164761543,
0.0024570864625275135,
-0.005899745039641857,
-0.01773117482662201,
0.0487675741314888,
0.02750476635992527,
-0.05037369206547737,
-0.017229262739419937,
-0.00445332657545805,
0.03861983120441437,
0.012310527265071869,
0.012073259800672531,
0.0830070823431015,
0.060740452259778976,
0.013907519169151783,
-0.003506538225337863,
-0.02606291137635708,
0.04913260042667389,
-0.005000866483896971,
0.06070394814014435,
0.028015803545713425,
0.039349883794784546,
0.012483915314078331,
-0.060776956379413605,
0.0025529058184474707,
0.010330257005989552,
0.05172429233789444,
-0.003978791646659374,
0.0035544480197131634,
-0.01077741477638483,
-0.013642875477671623,
0.013670251704752445,
0.018999643623828888,
0.024110017344355583,
-0.005908870603889227,
0.01621631346642971,
0.0269754771143198,
-0.02943940833210945,
0.05234483629465103,
-0.05347641929984093,
-0.15170511603355408,
0.01675472781062126,
0.035444099456071854,
0.019857455044984818,
-0.030205965042114258,
-0.008874713443219662,
-0.06059444323182106,
0.022503899410367012,
-0.01524899248033762,
-0.004503517411649227,
0.0028198317158967257,
0.05311139300465584,
-0.003410718869417906,
0.06088646501302719,
-0.012036757543683052,
0.06643486768007278,
0.0072959722019732,
0.01110593881458044,
-0.03924037516117096,
0.014108284376561642,
0.03137404844164848,
0.03555360436439514,
0.014509813860058784,
0.02856334298849106,
-0.05245434492826462,
0.04968014359474182,
0.004676905460655689,
0.022138873115181923,
-0.04179556295275688,
0.0010836732108145952,
-0.0037141472566872835,
0.02270466461777687,
0.030881263315677643,
-0.02188335359096527,
-0.048877082765102386,
-0.09016160666942596,
0.04606637731194496,
-0.0202772356569767,
-0.0668364018201828,
0.05362243205308914,
-0.0269754771143198,
-0.02392750419676304,
0.024566300213336945,
-0.025478867813944817,
-0.03206760063767433,
0.047270964831113815,
0.06599684059619904,
-0.05573958531022072,
-0.005142314359545708,
0.05475401505827904,
0.003971947357058525,
-0.0029658423736691475,
0.03181208297610283,
-0.030552739277482033,
0.03246913105249405,
-0.08497823029756546,
-0.02540586143732071,
-0.062164057046175,
-0.008190288208425045,
-0.0060959467664361,
-0.012483915314078331,
-0.012511292472481728,
-0.01580565795302391,
0.02343471720814705,
-0.015860412269830704,
0.0063423397950828075,
-0.03975141420960426,
0.1177576333284378,
0.002851771656423807,
0.024456793442368507,
0.0007123725372366607
]
|
30,037 | pawl.linkedin | _parse_service_request | null | @staticmethod
def _parse_service_request(data: Optional[Union[Dict[str, Any], List[Any], bool]]):
# TODO - Restructure data for ease of use with python/utf-8
return data
| (data: Union[Dict[str, Any], List[Any], bool, NoneType]) | [
0.0018806572770699859,
-0.017424549907445908,
-0.021510915830731392,
-0.027065545320510864,
-0.06332983821630478,
-0.008062170818448067,
0.017451085150241852,
0.0034539527259767056,
0.03375232592225075,
-0.062409959733486176,
0.05091152712702751,
0.03191257640719414,
-0.02657022699713707,
-0.047550447285175323,
0.005439643748104572,
0.01901664026081562,
-0.04836418107151985,
0.06120704859495163,
0.02152860537171364,
-0.017583759501576424,
0.0048956791870296,
0.006363940890878439,
-0.012745571322739124,
0.07302390038967133,
0.02218313328921795,
0.04266803339123726,
0.008769767358899117,
-0.04825804382562637,
0.0006578430766239762,
-0.005965918302536011,
0.02991361729800701,
-0.0372903048992157,
-0.013258579187095165,
0.05204368010163307,
0.020414141938090324,
0.03534441813826561,
0.007588966283947229,
0.06945054233074188,
-0.07981681823730469,
-0.00853979866951704,
-0.1052195131778717,
-0.08236416429281235,
-0.017424549907445908,
-0.01963578723371029,
-0.006257801316678524,
0.010127467103302479,
-0.04712589085102081,
0.08901556581258774,
-0.014523406513035297,
0.010843907482922077,
0.05087614804506302,
-0.004913369193673134,
-0.04227885603904724,
-0.011463054455816746,
-0.035556696355342865,
-0.017398014664649963,
-0.0036463302094489336,
0.07988758385181427,
0.021493226289749146,
0.05168988183140755,
-0.005505980923771858,
0.041748158633708954,
0.0025031205732375383,
-0.007270548027008772,
-0.0038718765135854483,
-0.014762219972908497,
0.008553065359592438,
-0.02940061129629612,
-0.03905929625034332,
-0.014717995189130306,
-0.04479082301259041,
0.04128822311758995,
-0.07797706872224808,
0.06428509205579758,
0.06403743475675583,
-0.02855149656534195,
0.013506237417459488,
-0.03983765095472336,
-0.034283023327589035,
-0.030656592920422554,
0.04875335842370987,
0.005868623964488506,
-0.02331528626382351,
0.032107166945934296,
0.012957850471138954,
0.010304365307092667,
0.033964604139328,
0.05147760361433029,
-0.023191455751657486,
0.04457854479551315,
-0.02874608524143696,
-0.03010820597410202,
-0.055050961673259735,
0.05398957058787346,
0.030550453811883926,
0.013161283917725086,
-0.016310086473822594,
-0.037750244140625,
-0.08844949305057526,
-0.0030161277391016483,
-0.004336236510425806,
0.044153984636068344,
-0.042491134256124496,
-0.026623297482728958,
0.00213494966737926,
-0.04089904576539993,
-0.006138394586741924,
-0.012453688308596611,
0.018432874232530594,
-0.0018806572770699859,
-0.0273662731051445,
-0.10790838301181793,
-0.033964604139328,
0.04132360219955444,
0.019122779369354248,
0.012940160930156708,
0.01694692298769951,
-0.021157117560505867,
-0.06202078238129616,
0.023191455751657486,
-0.021121738478541374,
0.03361080586910248,
0.028799153864383698,
-0.008022368885576725,
0.012683656997978687,
0.010596249252557755,
0.010021327063441277,
-0.004395939875394106,
0.029524439945816994,
0.018096765503287315,
0.0023041092790663242,
0.03332776948809624,
-0.0042654769495129585,
-0.021493226289749146,
-0.0023859250359237194,
-0.026057220995426178,
-0.029807478189468384,
0.02289072796702385,
-0.048434942960739136,
0.026216428726911545,
0.017061907798051834,
0.023899052292108536,
-0.015142552554607391,
-0.03101039119064808,
-0.05667843297123909,
-0.03813942149281502,
0.037962522357702255,
-0.030214346945285797,
-0.04737354815006256,
-0.010684698820114136,
-0.03359311819076538,
-0.02336835488677025,
-0.04617063328623772,
0.012550982646644115,
-0.0037369909696280956,
-0.014355352148413658,
0.012223719619214535,
-0.12184801697731018,
0.0019259876571595669,
-0.039094675332307816,
-0.026411017403006554,
-0.02821538783609867,
-0.030178966000676155,
-0.05827052518725395,
0.022996867075562477,
0.0012128636008128524,
0.04167740046977997,
-0.01236523874104023,
0.026127979159355164,
0.005483868531882763,
0.020944839343428612,
0.06361287087202072,
-0.010268986225128174,
0.028569186106324196,
0.049956273287534714,
0.029188333079218864,
0.004316335078328848,
-0.01712382212281227,
-0.014001554809510708,
-0.02119249850511551,
0.011445363983511925,
0.035185206681489944,
-0.028622254729270935,
0.017398014664649963,
0.06470964848995209,
-0.026870954781770706,
0.0011045130668208003,
-0.010631629265844822,
0.006107437424361706,
0.03644119203090668,
-0.03789176046848297,
-0.04677209258079529,
0.0034871213138103485,
-0.017583759501576424,
-0.00852210819721222,
-0.011984906159341335,
0.030975012108683586,
0.009455250576138496,
-0.01825597509741783,
-0.07068883627653122,
-0.0062666465528309345,
-0.0438709482550621,
-0.0008911286131478846,
0.04712589085102081,
-0.10642243176698685,
0.006726583931595087,
0.026959404349327087,
0.051088426262140274,
-0.024606648832559586,
-0.03594587370753288,
-0.008159465156495571,
-0.0519021600484848,
-0.010481264442205429,
0.01212642528116703,
0.039943791925907135,
-0.010507799685001373,
0.024146711453795433,
-0.015416746027767658,
-0.02680019661784172,
-0.037821002304553986,
0.06881370395421982,
0.016734642907977104,
0.06269299983978271,
0.008982045575976372,
0.06718623638153076,
0.00604110024869442,
-0.052786655724048615,
0.007195366080850363,
-0.041925057768821716,
-0.01765451766550541,
0.021263258531689644,
-0.03375232592225075,
0.03955461084842682,
0.008933398872613907,
0.023810602724552155,
-0.047550447285175323,
0.08193960785865784,
-0.07465136796236038,
0.060994770377874374,
-0.019087400287389755,
0.05911964178085327,
-0.03426533192396164,
-0.03842245787382126,
0.013630066998302937,
-0.04769196733832359,
-0.011180015280842781,
0.03757334500551224,
0.03874087706208229,
0.009331420995295048,
0.000823133101221174,
-0.014558786526322365,
0.028569186106324196,
-0.011409983970224857,
0.00563865527510643,
0.011259620077908039,
-0.005563472863286734,
0.018291354179382324,
0.00522736506536603,
0.07012275606393814,
-0.019105089828372,
0.014921429567039013,
0.021917784586548805,
0.05186678096652031,
0.045993734151124954,
-0.05441412702202797,
-0.05282203480601311,
0.04033296927809715,
-0.022165441885590553,
-0.020821010693907738,
-0.0041527035646140575,
0.06644325703382492,
-0.016310086473822594,
0.054520267993211746,
-0.016876162961125374,
0.016690418124198914,
0.003823229344561696,
0.06863680481910706,
-0.03283245116472244,
0.018096765503287315,
0.02557959221303463,
0.00880514644086361,
-0.026163360103964806,
0.0045684161596000195,
0.024801237508654594,
0.028480736538767815,
-0.03976689279079437,
0.03435378149151802,
0.0387054979801178,
-0.00019914955191779882,
-0.029719028621912003,
0.0015091694658622146,
0.004130591172724962,
0.036228910088539124,
-0.0071467189118266106,
-0.048541080206632614,
0.032160233706235886,
0.012789796106517315,
-0.04305721074342728,
0.07132566720247269,
-0.06516958773136139,
0.027578551322221756,
0.019511958584189415,
0.056183118373155594,
-0.04832880198955536,
0.006173774600028992,
-0.006417010445147753,
0.016743488609790802,
-0.003350024577230215,
-0.024553578346967697,
-0.014063469134271145,
-0.03047969564795494,
0.02529655396938324,
-0.05904887989163399,
-0.06145470589399338,
-0.04433088377118111,
0.03403536602854729,
0.011613418348133564,
0.04033296927809715,
-0.008844949305057526,
0.07139643281698227,
0.0017712010303512216,
-0.06909674406051636,
0.028197698295116425,
-0.04242037609219551,
-0.0006523149786517024,
-0.06867218762636185,
0.019193539395928383,
-0.03141725808382034,
0.03511444851756096,
0.0571029931306839,
-0.026446398347616196,
-0.013603531755506992,
0.0047099352814257145,
0.024978136643767357,
-0.012515602633357048,
-0.014275748282670975,
-0.0273662731051445,
-0.04464930295944214,
-0.016929233446717262,
-0.0016794346738606691,
-0.019423509016633034,
-0.018751291558146477,
0.021316327154636383,
0.008663627319037914,
0.0257211122661829,
-0.032301753759384155,
0.021917784586548805,
0.009446405805647373,
0.09609153121709824,
0.003126689465716481,
-0.013117059133946896,
0.0016208369052037597,
0.0859021469950676,
0.04252651706337929,
0.06598331779241562,
-0.03217792510986328,
-0.022731520235538483,
0.00853979866951704,
0.06824763119220734,
0.041500501334667206,
0.1321081668138504,
-0.00628875894472003,
0.02365139313042164,
0.04217271879315376,
0.005620965268462896,
-0.046559810638427734,
0.009092607535421848,
0.033009350299835205,
0.0471966490149498,
0.011498433537781239,
0.009517164900898933,
-0.0021570620592683554,
-0.021298637613654137,
-0.07613731920719147,
0.0006987509550526738,
0.06191464513540268,
0.021970853209495544,
0.00036070807254873216,
-0.0788261890411377,
0.01229447964578867,
-0.01915816031396389,
0.02529655396938324,
-0.006673513911664486,
0.011648798361420631,
0.03718416765332222,
-0.007022889796644449,
-0.049248676747083664,
0.013055144809186459,
-0.007447447162121534,
0.014824135228991508,
-0.004285377915948629,
-0.008946666494011879,
-0.003599894233047962,
0.02260768972337246,
-0.008637093007564545,
-0.023527564480900764,
-0.0001681922294665128,
-0.016920387744903564,
-0.03845784068107605,
0.025508834049105644,
0.04259727522730827,
-0.02651715837419033,
-0.005444066133350134,
0.02430592104792595,
-0.013585842214524746,
-0.00018505292246118188,
-0.013532772660255432,
-0.009357956238090992,
-0.052079059183597565,
0.0656295195221901,
0.09234126657247543,
-0.038528598845005035,
0.017813727259635925,
-0.04974399507045746,
-0.06421433389186859,
0.06761079281568527,
0.010905822739005089,
0.10217685252428055,
0.008022368885576725,
0.014859514310956001,
0.05356501042842865,
-0.012161805294454098,
-0.015124863013625145,
0.06396666914224625,
0.02566804178059101,
0.028763774782419205,
0.020732561126351357,
-0.0320894755423069,
0.042774174362421036,
0.015009879134595394,
0.014965654350817204,
-0.0043539260514080524,
-0.04489696025848389,
-0.11498434096574783,
0.05911964178085327,
0.07097186893224716,
-0.04525075852870941,
-0.04903639853000641,
0.012223719619214535,
0.005934960674494505,
-0.04776272550225258,
0.023509874939918518,
-0.012232564389705658,
0.006156084593385458,
0.04100518301129341,
-0.047408927232027054,
-0.05827052518725395,
0.042208097875118256,
0.015381366945803165,
-0.07337769865989685,
-0.012029130943119526,
-0.02317376621067524,
0.01694692298769951,
0.0035379796754568815,
0.029276780784130096,
0.004922214429825544,
0.025084275752305984,
0.044861581176519394,
-0.015407901257276535,
-0.009313731454312801,
0.031311120837926865,
-0.03536210581660271,
-0.004163759760558605,
0.00657179718837142,
0.031134221702814102,
0.07129029184579849,
-0.010622783564031124,
-0.00036678899778053164,
-0.05798748508095741,
-0.003078042296692729,
-0.007124606519937515,
-0.051654502749443054,
0.04203119874000549,
0.010773148387670517,
0.03714878484606743,
0.04355252906680107,
0.07054731249809265,
0.016982302069664,
-0.009402181021869183,
-0.04606449604034424,
0.02303224802017212,
-0.0078100902028381824,
-0.01779603771865368,
0.0035866268444806337,
-0.02161705493927002,
-0.05087614804506302,
0.053777292370796204,
-0.01045473013073206,
-0.0172299612313509,
0.00016957425395958126,
-0.005926115904003382,
0.02945367991924286,
0.014231523498892784,
-0.03389384597539902,
0.08887404948472977,
-0.015567110851407051,
0.01543443650007248,
0.01864515244960785,
0.05855356156826019,
0.02388136275112629,
0.015275226905941963,
-0.018485942855477333,
0.003900622483342886,
-0.05544014275074005,
0.01515139825642109,
-0.0344422310590744,
-0.012064510956406593,
0.028427666053175926,
-0.03460144251585007,
0.016195101663470268,
-0.04977937415242195,
0.02798541821539402,
0.038811635226011276,
-0.0028746083844453096,
0.03281475976109505,
0.015469816513359547,
0.008062170818448067,
0.012179494835436344,
-0.04985013231635094,
-0.01864515244960785,
-0.014947963878512383,
0.04609987512230873,
0.024412060156464577,
-0.009605614468455315,
0.010056707076728344,
-0.0015965133206918836,
-0.06460350751876831,
-0.03283245116472244,
-0.016354311257600784,
-0.04001455008983612,
0.017866797745227814,
-0.0021482170559465885,
-0.020254934206604958,
0.008765344507992268,
0.0195827167481184,
-0.011365760117769241,
0.0013488547410815954,
-0.018096765503287315,
-0.055050961673259735,
0.0283215269446373,
0.048859499394893646,
0.0301966555416584,
-0.03276169300079346,
-0.02869301475584507,
-0.015982823446393013,
0.0623038224875927,
-0.0075226291082799435,
0.06375439465045929,
-0.010896977037191391,
0.020308002829551697,
-0.11689484864473343,
0.006363940890878439,
0.041889678686857224,
0.07387301325798035,
-0.016831938177347183,
-0.062126923352479935,
-0.0016263650031760335,
0.0021636956371366978,
-0.020537972450256348,
-0.01737147942185402,
-0.016195101663470268,
-0.038811635226011276,
-0.10642243176698685,
0.0429510734975338,
-0.07213940471410751,
0.002245511393994093,
-0.03785638138651848,
0.026782505214214325,
-0.03198333457112312,
0.030037447810173035,
0.01554942037910223,
-0.04776272550225258,
-0.031965646892786026,
0.012250254862010479,
0.037679482251405716,
0.03171798586845398,
0.009817893616855145,
-0.0017700954340398312,
0.013037455268204212,
0.010879287496209145,
-0.018114455044269562,
-0.022430790588259697,
0.02430592104792595,
-0.03276169300079346,
0.021245567128062248,
-0.01963578723371029,
0.018149835988879204,
-0.004196928348392248,
-0.03010820597410202,
0.0072130560874938965,
-0.01286055613309145,
-0.0066558243706822395,
0.03930695354938507,
0.022625379264354706,
-0.045463040471076965,
0.014779910445213318,
0.03407074511051178,
0.028091559186577797,
-0.015841303393244743,
-0.01864515244960785,
-0.04146512225270271,
0.03594587370753288,
0.009658684022724628,
-0.018609773367643356,
0.046595193445682526,
0.007491671945899725,
-0.04479082301259041,
0.07726947218179703,
-0.03134649991989136,
-0.05243285745382309,
0.02600415050983429,
-0.02628718875348568,
0.0195827167481184,
0.014452646486461163,
0.038245558738708496,
-0.016619659960269928,
-0.025119654834270477,
-0.002315165475010872,
0.01938812807202339,
-0.05168988183140755,
0.03166491910815239,
0.006417010445147753,
-0.031505707651376724,
0.03076273389160633,
-0.03610508143901825,
-0.07557124644517899,
-0.0035888380371034145,
-0.007434179540723562,
-0.04648905247449875,
-0.093473419547081,
0.041075944900512695,
-0.010437039658427238,
0.05041620880365372,
0.003783426946029067,
-0.013037455268204212,
0.042915694415569305,
-0.016973458230495453,
-0.008491151034832,
-0.027950039133429527,
-0.015301762148737907,
0.020467212423682213,
0.0035379796754568815,
-0.00939333625137806,
0.00809312891215086,
0.006549684796482325,
0.03930695354938507,
-0.020732561126351357,
-0.026251809671521187,
0.054732546210289,
0.03944847360253334,
-0.03778562322258949,
0.03948385268449783,
-0.008813992142677307,
0.010392814874649048,
0.014196143485605717,
0.02492506615817547,
0.015345986932516098,
-0.0018596505979076028,
0.00575806200504303,
-0.03449530154466629,
-0.0769156813621521,
0.022519240155816078,
0.04977937415242195,
-0.009977102279663086,
-0.03559207543730736,
-0.013240888714790344,
-0.019175849854946136,
-0.027348583564162254,
0.10224761068820953,
-0.028463046997785568,
0.019458888098597527,
0.04252651706337929,
0.012453688308596611,
0.04004992917180061,
0.03891777619719505,
-0.021493226289749146,
0.015080638229846954,
-0.05282203480601311,
0.028852224349975586,
0.004221252165734768,
0.04450778290629387,
-0.011312689632177353,
-0.009375645779073238,
-0.003436262719333172,
-0.02651715837419033,
-0.03835169970989227,
0.037396445870399475,
-0.027720071375370026,
0.008451349101960659,
-0.0273662731051445,
-0.005988030694425106,
-0.09354418516159058,
-0.020644111558794975,
-0.008871483616530895,
0.028339216485619545,
-0.01567324995994568,
-0.04450778290629387,
-0.039377715438604355,
0.05678457394242287,
0.08009985834360123,
0.01761029288172722,
-0.020502591505646706,
-0.01755722425878048,
-0.008606135845184326,
-0.025031205266714096,
-0.0029387343674898148,
-0.030285105109214783,
-0.00894224364310503,
0.04040372744202614,
-0.0035379796754568815,
-0.012161805294454098,
0.017919866368174553,
-0.01703537255525589,
-0.0571029931306839,
0.003750258358195424,
0.032354824244976044,
-0.05834128335118294,
0.03520289808511734,
0.054484885185956955,
0.000976814073510468,
-0.0027353004552423954,
0.026322567835450172,
-0.01836211420595646,
0.042491134256124496,
-0.020732561126351357,
-0.02821538783609867,
-0.04893025755882263,
-0.03799790143966675,
0.006832723040133715,
0.05041620880365372,
0.009260661900043488,
0.017309565097093582,
-0.02628718875348568,
-0.028056178241968155,
-0.03274400159716606,
-0.06545262038707733,
-0.01661081425845623,
-0.0037723707500845194,
-0.019087400287389755,
0.015337142162024975,
0.013019764795899391,
0.03658270835876465,
0.01309936959296465,
0.05031007155776024,
-0.024907376617193222,
-0.046842850744724274,
0.0707949697971344,
-0.03408843278884888,
-0.009349111467599869,
-0.017424549907445908,
-0.014735685661435127,
0.0018673898885026574,
-0.024659717455506325,
-0.0023748688399791718,
0.002662329701706767,
0.04380018636584282,
-0.02014879323542118,
0.0349198579788208,
-0.00575806200504303,
-0.0023195878602564335,
-0.027737760916352272,
0.06286989897489548,
0.006974242627620697,
-0.022660760208964348,
-0.013948485255241394,
-0.013285113498568535,
-0.004033296834677458,
0.023580634966492653
]
|
30,038 | pawl.linkedin | _prepare_core | null | def _prepare_core(self, requestor_class=None, requestor_kwargs=None):
requestor_class = requestor_class or Requestor
requestor_kwargs = requestor_kwargs or {}
requestor = requestor_class()
self._prepare_core_authenticator(requestor)
| (self, requestor_class=None, requestor_kwargs=None) | [
-0.0269878301769495,
-0.010954405181109905,
-0.028332797810435295,
0.020758509635925293,
-0.021413294598460197,
-0.05323239043354988,
-0.006083322688937187,
0.06031116470694542,
-0.020493054762482643,
0.0023603292647749186,
0.05231215059757233,
0.026279954239726067,
-0.01140567660331726,
0.013812460005283356,
-0.01682978868484497,
-0.027076315134763718,
-0.01412215642631054,
0.038119204342365265,
-0.01515742763876915,
-0.11474695056676865,
0.022368930280208588,
-0.0028580555226653814,
-0.02307680808007717,
0.04417155683040619,
0.00682659400627017,
0.05932013690471649,
-0.01598033495247364,
-0.013635491020977497,
0.03406660631299019,
0.023112202063202858,
0.05910777300596237,
0.045905858278274536,
-0.010308466851711273,
0.06346122175455093,
0.05100257694721222,
-0.022050384432077408,
0.025908317416906357,
0.08381269872188568,
-0.045268770307302475,
-0.0033226001542061567,
-0.05932013690471649,
-0.025642864406108856,
-0.009795255027711391,
-0.0284566767513752,
-0.023660806939005852,
0.030916551128029823,
0.014723853208124638,
0.05047166720032692,
0.024209411814808846,
0.01872336119413376,
-0.010742041282355785,
-0.031235096976161003,
0.03794223442673683,
0.014414156787097454,
0.0003453668032307178,
0.03475678712129593,
0.011865797452628613,
0.04434852674603462,
-0.03472139313817024,
0.006977017968893051,
-0.04958682134747505,
0.05245372653007507,
-0.018024330958724022,
0.007153987418860197,
-0.018811846151947975,
-0.06664667278528214,
-0.08140591531991959,
0.030190976336598396,
0.011750767007470131,
0.06530170142650604,
-0.027111709117889404,
-0.028863705694675446,
-0.04778173193335533,
0.002601449843496084,
0.054046448320150375,
0.028863705694675446,
-0.05294923856854439,
-0.025625167414546013,
-0.009184710681438446,
0.041410837322473526,
0.030297158285975456,
-0.007184957154095173,
-0.05333857238292694,
0.027589527890086174,
0.062364012002944946,
-0.04863118752837181,
-0.05408184230327606,
-0.042401865124702454,
0.03765908628702164,
-0.02111244760453701,
-0.05549759790301323,
0.013290400616824627,
0.0013803611509501934,
0.019820570945739746,
-0.001797345350496471,
0.04555191844701767,
-0.05712571740150452,
-0.0014102248242124915,
-0.037163570523262024,
0.003928720485419035,
0.03162442892789841,
0.029766250401735306,
-0.013210764154791832,
0.009167013689875603,
0.022209657356142998,
-0.004441931378096342,
0.016095366328954697,
-0.04070295765995979,
0.019077299162745476,
0.013502763584256172,
-0.01560869999229908,
-0.02528892457485199,
-0.060452740639448166,
0.06317806988954544,
-0.06802703440189362,
-0.039818111807107925,
0.06738994270563126,
-0.017882756888866425,
0.04434852674603462,
0.005127687938511372,
-0.03185448795557022,
0.02396165393292904,
0.025165045633912086,
0.047109249979257584,
0.02597910538315773,
0.026810862123966217,
0.005432960111647844,
0.0015849820338189602,
0.0010435663862153888,
-0.047003068029880524,
0.04887894541025162,
-0.01603342592716217,
-0.062470193952322006,
-0.08260931074619293,
0.011449919082224369,
-0.00030693126609548926,
-0.014688459224998951,
0.02259899117052555,
-0.022050384432077408,
0.03730514645576477,
0.02265208028256893,
0.010644708760082722,
0.003375690896064043,
-0.01360009703785181,
-0.030668795108795166,
0.007335381116718054,
0.020670024678111076,
0.0004067530680913478,
0.014272580854594707,
-0.022616688162088394,
0.04778173193335533,
0.012095857411623001,
0.04236647114157677,
0.03872090205550194,
-0.040879927575588226,
0.0018338452791795135,
-0.01946663297712803,
-0.047958701848983765,
0.021926507353782654,
0.04318052902817726,
0.0040592350997030735,
-0.05227675661444664,
0.02497038058936596,
-0.06632812321186066,
0.008215803653001785,
-0.02656310424208641,
0.010697798803448677,
-0.012060463428497314,
0.012927613221108913,
-0.009697922505438328,
0.008423742838203907,
0.0041388715617358685,
-0.034208182245492935,
-0.03089885413646698,
0.031358975917100906,
0.017458029091358185,
-0.01845790632069111,
-0.05921395495533943,
-0.021572567522525787,
-0.0034486909862607718,
0.05475432798266411,
0.0037583874072879553,
0.000742718402761966,
0.04979918524622917,
0.077654168009758,
0.03417278826236725,
0.038968659937381744,
-0.006906230002641678,
0.004145507700741291,
0.030438734218478203,
-0.01174191851168871,
0.0194135420024395,
-0.028031950816512108,
0.03084576316177845,
0.012157796882092953,
0.02031608484685421,
0.02111244760453701,
-0.014980458654463291,
-0.002966449363157153,
0.043357498943805695,
-0.04629519209265709,
0.028279706835746765,
0.03491605818271637,
-0.02222735434770584,
0.01071549579501152,
0.030863460153341293,
0.06261176615953445,
0.027430254966020584,
-0.038119204342365265,
-0.05227675661444664,
0.017051000148057938,
-0.04686149209737778,
0.006667321547865868,
0.004725082777440548,
-0.010573920793831348,
-0.0025196014903485775,
0.12147178500890732,
-0.016582030802965164,
0.04771094769239426,
0.017794271931052208,
0.046436768025159836,
0.05871844291687012,
-0.016422759741544724,
-0.033624183386564255,
-0.005309081636369228,
0.008379500359296799,
-0.03413739427924156,
-0.012095857411623001,
-0.05712571740150452,
-0.041092291474342346,
0.02973085641860962,
-0.01005186140537262,
-0.042083319276571274,
0.02720019407570362,
-0.007596410810947418,
-0.03557084500789642,
0.07075235992670059,
-0.010520829819142818,
-0.05178124085068703,
-0.034048911184072495,
0.053409360349178314,
-0.010025315918028355,
-0.0060479287058115005,
-0.015529063530266285,
-0.04863118752837181,
-0.021501779556274414,
-0.03263315558433533,
-0.018192453309893608,
0.015520215034484863,
-0.016413910314440727,
-0.007600835058838129,
0.039924293756484985,
-0.03153594583272934,
-0.05163966491818428,
-0.02930613048374653,
0.018440209329128265,
0.06091286242008209,
0.03995968773961067,
0.03312866762280464,
-0.0002743025543168187,
-0.012609068304300308,
0.025005774572491646,
-0.025147348642349243,
-0.015290155075490475,
-0.019979843869805336,
0.01893572323024273,
0.038862477988004684,
-0.020776204764842987,
-0.017006758600473404,
-0.011839251965284348,
0.041092291474342346,
0.02704092115163803,
0.008078652434051037,
0.057798199355602264,
-0.03247388079762459,
-0.040773745626211166,
-0.012998401187360287,
-0.0007394002168439329,
-0.026793165132403374,
0.018369421362876892,
0.05075481906533241,
-0.01749342307448387,
0.0204753577709198,
0.026474619284272194,
-0.02318299002945423,
-0.02735946699976921,
0.005322354380041361,
0.030881157144904137,
-0.01821015030145645,
-0.03355339542031288,
-0.023466140031814575,
0.029022978618741035,
0.012856826186180115,
0.014095611870288849,
0.009989921934902668,
-0.04604743421077728,
-0.09400613605976105,
0.002235344611108303,
0.04781712591648102,
-0.058329109102487564,
0.000765945587772876,
-0.00007859929610276595,
-0.006008110474795103,
-0.0013460733462125063,
0.08041489124298096,
-0.008476833812892437,
0.03220842778682709,
0.030598007142543793,
-0.03374806046485901,
0.03275703266263008,
0.0064947763457894325,
0.01184810046106577,
-0.0017531029880046844,
-0.017183726653456688,
-0.006499200593680143,
0.027642617002129555,
0.05429420620203018,
0.006034655962139368,
-0.026810862123966217,
0.06059431657195091,
-0.0004186432051938027,
0.04562270641326904,
-0.028279706835746765,
0.04123386740684509,
0.037057388573884964,
-0.004986112471669912,
-0.0004808589874301106,
-0.0007067715050652623,
-0.04841882362961769,
0.02847437374293804,
-0.08395427465438843,
0.04059677571058273,
-0.023678503930568695,
-0.007999015972018242,
0.007760107517242432,
0.02491728961467743,
-0.00595059571787715,
-0.058329109102487564,
-0.046224404126405716,
-0.029288433492183685,
-0.027925768867135048,
-0.01515742763876915,
-0.025642864406108856,
0.044419314712285995,
-0.03967653587460518,
-0.04194174334406853,
0.0016458153259009123,
0.0017884968547150493,
0.013139977119863033,
-0.09853655099868774,
-0.04916209354996681,
-0.04070295765995979,
0.033518001437187195,
0.025005774572491646,
0.0313766710460186,
-0.012954158708453178,
-0.02259899117052555,
-0.021572567522525787,
-0.02651001326739788,
-0.00872016604989767,
0.08791839331388474,
0.014538034796714783,
0.007693743798881769,
-0.0007664986187592149,
-0.02364310994744301,
-0.03068649210035801,
-0.0012686492409557104,
-0.007808774244040251,
0.0058222925290465355,
-0.03020867332816124,
0.008609560318291187,
-0.04091532155871391,
-0.0012830280466005206,
-0.008127318695187569,
0.013511612080037594,
0.031128915026783943,
-0.012653310783207417,
0.004968415480107069,
-0.05694874748587608,
0.0457288883626461,
0.047003068029880524,
0.03601326793432236,
0.014493792317807674,
-0.029553886502981186,
-0.0014411944430321455,
-0.024881895631551743,
0.027589527890086174,
0.04576428234577179,
0.02757183089852333,
0.027270982041954994,
0.008237924426794052,
-0.03365957736968994,
-0.007304411381483078,
-0.021094750612974167,
0.024988077580928802,
0.04374683275818825,
-0.03656187653541565,
0.035110726952552795,
-0.03734054043889046,
0.013883247971534729,
0.03121739998459816,
-0.04371143877506256,
0.07786653190851212,
0.03199606388807297,
0.05645323172211647,
0.025642864406108856,
0.02159026451408863,
0.014555731788277626,
0.04257883504033089,
0.033199455589056015,
-0.07807889580726624,
0.014741549268364906,
0.04286198318004608,
0.0018371634650975466,
-0.0035703573375940323,
0.000319374434184283,
0.004214083310216665,
0.05195821076631546,
0.02957158349454403,
0.02613837830722332,
0.014334520325064659,
0.01925426907837391,
-0.02137790247797966,
0.004397689364850521,
0.05942631885409355,
0.04650755599141121,
0.009485558606684208,
-0.0595678947865963,
0.03153594583272934,
-0.017926998436450958,
-0.01690942421555519,
0.08820153772830963,
-0.06123140826821327,
0.02904067561030388,
0.02079390175640583,
0.04342828691005707,
0.014555731788277626,
0.05054245516657829,
0.013476219028234482,
0.010547375306487083,
-0.028368191793560982,
-0.033783454447984695,
-0.004742779303342104,
-0.004306992515921593,
0.021360205486416817,
-0.015529063530266285,
-0.028067344799637794,
0.06731915473937988,
0.01877645216882229,
0.00930858962237835,
-0.0064416853711009026,
-0.04045519977807999,
-0.029022978618741035,
0.0021534962579607964,
-0.05921395495533943,
-0.004189750179648399,
0.07751259207725525,
0.00930858962237835,
-0.034048911184072495,
-0.013263855129480362,
0.03105812706053257,
-0.034845270216464996,
-0.007078775204718113,
0.007768956013023853,
0.016927121207118034,
0.12699322402477264,
-0.01773233152925968,
0.017051000148057938,
-0.03374806046485901,
-0.012927613221108913,
0.00885731726884842,
-0.01840481534600258,
-0.0007631804910488427,
0.010919011197984219,
-0.00838834885507822,
0.044737860560417175,
0.01759960502386093,
-0.02387317083775997,
-0.03765908628702164,
-0.012494038790464401,
0.009680225513875484,
0.01301609817892313,
0.05567456781864166,
-0.011432222090661526,
-0.02544819749891758,
-0.060771286487579346,
0.015918396413326263,
-0.020298387855291367,
0.03180139884352684,
-0.011051737703382969,
-0.013900944963097572,
0.04834803566336632,
-0.009388226084411144,
0.08487451821565628,
0.014414156787097454,
0.011131374165415764,
0.0021601326297968626,
-0.0034995696041733027,
0.04332210496068001,
0.006777927279472351,
0.017829665914177895,
0.019077299162745476,
0.028810616582632065,
-0.03861472010612488,
0.03160673379898071,
0.01765269599854946,
-0.0952095314860344,
0.004437507130205631,
-0.008503379300236702,
0.08487451821565628,
-0.01845790632069111,
-0.015042397193610668,
-0.02560747042298317,
-0.033093273639678955,
-0.010697798803448677,
-0.005640899296849966,
-0.04112768545746803,
-0.017245667055249214,
-0.00805653166025877,
0.05624087154865265,
0.03765908628702164,
0.11602112650871277,
0.03818999230861664,
-0.02132481150329113,
0.042614229023456573,
-0.025890620425343513,
-0.009326286613941193,
0.015148579142987728,
0.059072379022836685,
0.0027076315600425005,
-0.021944204345345497,
-0.04530416056513786,
-0.040030475705862045,
0.023890865966677666,
0.04926827549934387,
0.01957281306385994,
-0.0630011036992073,
0.005924050230532885,
0.05921395495533943,
-0.034951452165842056,
0.037482116371393204,
0.006220473907887936,
-0.01757306046783924,
0.01098095066845417,
-0.03390733525156975,
-0.044950224459171295,
-0.017051000148057938,
0.03406660631299019,
-0.06197467818856239,
-0.029483098536729813,
-0.06678824871778488,
-0.02031608484685421,
0.020723115652799606,
0.08600711822509766,
-0.01526360958814621,
-0.05701953545212746,
-0.004525992088019848,
0.014529186300933361,
-0.00036665843799710274,
0.04979918524622917,
0.023306867107748985,
0.004663143306970596,
-0.0991736426949501,
0.02587292343378067,
-0.010211133398115635,
-0.010379254817962646,
-0.011538404040038586,
0.038862477988004684,
-0.06618654727935791,
0.01277718972414732,
-0.00526483915746212,
-0.012299371883273125,
-0.0808396115899086,
0.05882462486624718,
-0.009388226084411144,
0.02475801669061184,
-0.04583507031202316,
0.06151455640792847,
0.01389209646731615,
-0.059921834617853165,
0.06140837445855141,
-0.009060832671821117,
-0.01957281306385994,
-0.0952095314860344,
0.007507926318794489,
-0.06615115702152252,
0.04753397777676582,
-0.014723853208124638,
-0.004076932091265917,
-0.013449673540890217,
-0.06133759021759033,
-0.007941501215100288,
-0.0026456923224031925,
-0.016334274783730507,
-0.016440454870462418,
-0.014847731217741966,
-0.07184956967830658,
-0.014688459224998951,
-0.014440701343119144,
0.01505124568939209,
-0.055851537734270096,
0.03581860288977623,
0.004999385215342045,
-0.004267174284905195,
0.07107090204954147,
-0.03519921004772186,
-0.09188250452280045,
0.06027577072381973,
-0.04587046429514885,
-0.03220842778682709,
0.011803857982158661,
0.05266609042882919,
0.05988644063472748,
0.04647216200828552,
-0.0303148552775383,
-0.026863953098654747,
-0.041870955377817154,
0.004154356196522713,
0.05086100101470947,
0.0009832861833274364,
-0.044737860560417175,
-0.021236326545476913,
-0.026067590340971947,
0.04180016741156578,
-0.08466215431690216,
-0.008211379870772362,
0.03573011979460716,
-0.006600957829505205,
0.00468084029853344,
-0.028492070734500885,
0.05999262258410454,
-0.04647216200828552,
0.015617548488080502,
-0.03911023214459419,
0.02143099159002304,
-0.04321592301130295,
-0.015936093404889107,
0.009485558606684208,
-0.02084699273109436,
-0.018741058185696602,
0.01582106202840805,
-0.03433205932378769,
-0.0006050140946172178,
-0.03063340112566948,
-0.030668795108795166,
-0.01592724397778511,
-0.02581983245909214,
-0.016635121777653694,
0.017696937546133995,
0.020298387855291367,
-0.015679487958550453,
0.026173772290349007,
-0.006317806895822287,
-0.004778173286467791,
-0.07439792901277542,
-0.01999754086136818,
-0.0367034487426281,
0.0335003025829792,
0.024262502789497375,
-0.02544819749891758,
-0.007733562029898167,
0.029819341376423836,
0.1241617202758789,
-0.003975174855440855,
0.01946663297712803,
0.030067099258303642,
-0.04456089064478874,
-0.04162319749593735,
0.025536682456731796,
0.0018747694557532668,
-0.003167751943692565,
-0.007450411096215248,
0.03210224583745003,
0.011927736923098564,
-0.04247265309095383,
-0.03620793670415878,
0.014316823333501816,
-0.07786653190851212,
-0.0007781122694723308,
0.020670024678111076,
-0.04845421761274338,
-0.010043012909591198,
-0.03518151491880417,
-0.011326040141284466,
-0.011034040711820126,
-0.032827820628881454,
-0.022687474265694618,
0.030651098117232323,
0.01815705932676792,
-0.0696551501750946,
0.019325057044625282,
-0.006220473907887936,
0.0042118714191019535,
-0.010591617785394192,
-0.03794223442673683,
-0.020351478829979897,
-0.031872186809778214,
-0.05624087154865265,
0.04268501698970795,
0.06470000743865967,
0.05156887695193291,
-0.023926259949803352,
-0.03553545102477074,
0.006432837340980768,
-0.03385424241423607,
0.0034265697468072176,
-0.018192453309893608,
0.006158534437417984,
0.018599482253193855,
-0.02629765123128891,
0.008016712963581085,
-0.03413739427924156,
0.044631678611040115,
-0.043994590640068054,
0.03488066419959068,
0.04105689749121666,
0.001474376185797155,
0.05567456781864166,
0.018493300303816795,
-0.03953495994210243,
-0.009237801656126976,
0.008706893771886826,
0.024209411814808846,
0.004676416050642729,
0.052028998732566833,
-0.039074838161468506,
-0.017024455592036247,
-0.04764015972614288,
0.0324384868144989,
0.026633892208337784,
-0.013617794029414654,
-0.019342754036188126,
-0.0728406012058258,
-0.022209657356142998,
0.017458029091358185,
-0.07156641781330109,
-0.0073442296124994755,
-0.005994837731122971,
-0.0046321735717356205,
0.029129160568118095,
-0.042932771146297455,
-0.05914316698908806,
-0.0269878301769495,
0.032350003719329834,
0.021838022395968437,
-0.007574289571493864,
0.04456089064478874,
-0.04286198318004608,
0.029660068452358246,
0.01598033495247364,
-0.008631682023406029,
-0.009627134539186954,
0.06466460973024368,
-0.04618901014328003,
-0.021342508494853973,
-0.015511366538703442,
-0.015325549058616161,
-0.010352709330618382,
0.022368930280208588,
-0.023997047916054726,
-0.011679979041218758,
-0.07117708772420883,
0.004076932091265917,
-0.048489611595869064,
0.12430329620838165,
0.019112693145871162,
0.04802948981523514,
0.011343737132847309
]
|
30,039 | pawl.linkedin | _prepare_core_authenticator | null | def _prepare_core_authenticator(self, requestor):
authenticator = Authenticator(
requestor, self._client_id, self._client_secret, self._redirect_uri
)
self._prepare_core_authorizer(authenticator)
| (self, requestor) | [
-0.046204399317502975,
0.003396604908630252,
-0.03873274847865105,
0.044829897582530975,
-0.011022444814443588,
-0.033234741538763046,
0.018696745857596397,
0.07619673013687134,
-0.03496168181300163,
0.014405833557248116,
0.06238122656941414,
0.03596612438559532,
-0.026820402592420578,
0.008639094419777393,
-0.01428248081356287,
-0.037675440311431885,
-0.01971881091594696,
0.044019293040037155,
-0.045640502125024796,
-0.08719273656606674,
0.019489727914333344,
-0.0634385347366333,
-0.055579204112291336,
0.001763282809406519,
0.003453875659033656,
0.06830215454101562,
-0.052548252046108246,
-0.014053397811949253,
0.015568873845040798,
0.018450040370225906,
0.035226009786129,
0.02072325348854065,
0.011295583099126816,
0.049235351383686066,
0.054733358323574066,
-0.008480498567223549,
0.023454636335372925,
0.06315658241510391,
-0.01064357627183199,
0.00008191390224965289,
-0.014828757382929325,
-0.012855114415287971,
0.019665945321321487,
-0.02828301303088665,
-0.023454636335372925,
0.030115682631731033,
-0.004616915713995695,
0.06953568011522293,
0.03434491902589798,
0.0010782347526401281,
-0.028899775817990303,
-0.05029265955090523,
0.04253906011581421,
0.022238729521632195,
-0.004491359926760197,
0.020053625106811523,
0.023771828040480614,
0.011885914020240307,
-0.05575542151927948,
0.026326991617679596,
-0.03728776052594185,
0.008313091471791267,
-0.028512096032500267,
0.01612395979464054,
0.015516008250415325,
-0.06925373524427414,
-0.028177281841635704,
0.020353196188807487,
0.005079488269984722,
0.03510265424847603,
-0.002436215989291668,
-0.02052941359579563,
-0.031578291207551956,
-0.03025665692985058,
0.03647715598344803,
0.014397023245692253,
-0.03940237686038017,
-0.007661084178835154,
0.0037424329202622175,
0.03912042826414108,
0.007819680497050285,
-0.012670084834098816,
-0.03788690268993378,
0.03429205343127251,
0.047332193702459335,
-0.022890737280249596,
-0.05219581723213196,
-0.05328836664557457,
0.024388592690229416,
0.0016740724677219987,
-0.00589009141549468,
-0.023454636335372925,
0.005863659083843231,
-0.01359522994607687,
-0.031543049961328506,
0.04370209947228432,
-0.014247237704694271,
-0.00803995318710804,
0.0003868539060931653,
-0.0071148076094686985,
0.020053625106811523,
0.02775435894727707,
-0.011903535574674606,
0.01357760839164257,
0.002533135935664177,
0.01295203436166048,
0.03288230672478676,
-0.07013482600450516,
0.0200360044836998,
0.013322091661393642,
-0.017119593918323517,
-0.05459238216280937,
-0.05166716128587723,
0.062240250408649445,
-0.06100672483444214,
-0.024370970204472542,
0.0884615108370781,
-0.026045043021440506,
0.08239960670471191,
0.013066575862467289,
-0.012079753912985325,
0.020776119083166122,
0.03430967405438423,
0.02225635200738907,
0.01806236058473587,
0.020828984677791595,
-0.001329345628619194,
0.01325160451233387,
-0.05554395914077759,
-0.02031795307993889,
0.0440545380115509,
-0.01460848469287157,
-0.04377258941531181,
-0.07972109317779541,
-0.007744787726551294,
-0.015507197007536888,
0.03756970912218094,
0.01367452833801508,
-0.03022141195833683,
0.028582584112882614,
-0.0010672211647033691,
0.008520147763192654,
-0.01373620517551899,
0.014573240652680397,
-0.03547271341085434,
0.031860239803791046,
-0.01082860492169857,
0.009832972660660744,
0.04141126573085785,
-0.05360556021332741,
0.025340169668197632,
0.03075006790459156,
0.01906680315732956,
0.03943762183189392,
-0.009136911481618881,
0.004108085762709379,
-0.0316840223968029,
-0.04334966465830803,
0.034521136432886124,
0.03929664567112923,
0.028018685057759285,
-0.04574623331427574,
0.032018836587667465,
-0.07172078639268875,
0.02549876645207405,
0.003088223049417138,
-0.007872546091675758,
-0.006515665911138058,
-0.00596938980743289,
-0.040142495185136795,
-0.019013937562704086,
-0.01915491372346878,
-0.03647715598344803,
-0.04828377440571785,
0.06269841641187668,
0.013471877202391624,
0.007449622265994549,
-0.027049485594034195,
-0.04134077951312065,
-0.022150620818138123,
0.025956932455301285,
0.015101895667612553,
0.005577304400503635,
0.014634917490184307,
0.0483190156519413,
0.006797614973038435,
0.07661965489387512,
-0.017639435827732086,
0.03441540524363518,
0.042644791305065155,
-0.024018533527851105,
0.04053017497062683,
-0.042362842708826065,
0.034203942865133286,
0.016617370769381523,
-0.005647791549563408,
0.024705784395337105,
-0.014097452163696289,
0.015912499278783798,
0.008269036188721657,
-0.03742873668670654,
0.014009342528879642,
-0.004947324749082327,
-0.0015242870431393385,
0.04303247109055519,
0.040988340973854065,
0.03651240095496178,
-0.01052903477102518,
-0.05166716128587723,
-0.03466210886836052,
0.02218586578965187,
-0.044019293040037155,
0.008352740667760372,
0.012070943601429462,
-0.06290987879037857,
0.018326686695218086,
0.10784550756216049,
-0.017833277583122253,
0.0648835226893425,
0.05209008604288101,
0.03156067058444023,
0.08409129828214645,
0.02052941359579563,
-0.08528958261013031,
0.03816885128617287,
-0.003861380275338888,
-0.027789602056145668,
-0.016626182943582535,
-0.049834493547677994,
-0.03538460284471512,
0.016194447875022888,
-0.010766929015517235,
-0.07344772666692734,
0.00022330143838189542,
0.011339637450873852,
-0.03251224756240845,
0.0525130070745945,
-0.013366146944463253,
-0.07908670604228973,
-0.0033877938985824585,
0.0650244951248169,
0.006568531505763531,
0.032988037914037704,
-0.04246857389807701,
-0.06231073662638664,
0.004381223581731319,
-0.03603661060333252,
-0.02634461410343647,
-0.004850404337048531,
-0.017991872504353523,
-0.015454331412911415,
0.028758801519870758,
-0.012414569035172462,
-0.07676062732934952,
-0.001264365273527801,
0.01830906607210636,
0.036265693604946136,
0.04109407216310501,
0.04800182208418846,
0.006621397100389004,
-0.0006828453042544425,
0.06509498506784439,
-0.019789298996329308,
-0.036265693604946136,
-0.03455637767910957,
-0.004462724551558495,
0.03087341971695423,
-0.002321674022823572,
0.023207930848002434,
-0.0076522729359567165,
0.08211765438318253,
-0.0029120049439370632,
-0.011136987246572971,
0.047085490077733994,
-0.029305078089237213,
-0.025956932455301285,
0.02509346418082714,
0.03605423495173454,
-0.036864835768938065,
0.04740268364548683,
0.03578990697860718,
-0.010758117772638798,
-0.00848490372300148,
0.049305837601423264,
-0.04641586169600487,
0.0005837226053699851,
-0.008550985716283321,
0.013524742797017097,
-0.03700581192970276,
-0.01887296326458454,
-0.016828833147883415,
0.021762941032648087,
0.03510265424847603,
0.0031036422587931156,
-0.0059209298342466354,
-0.035648930817842484,
-0.014009342528879642,
-0.030820554122328758,
0.019859785214066505,
-0.011145797558128834,
0.001887736958451569,
0.03608947619795799,
-0.00856860727071762,
-0.004213816486299038,
0.07408210635185242,
-0.015727469697594643,
0.03647715598344803,
0.04683878272771835,
-0.029023129492998123,
0.008282252587378025,
0.005224868189543486,
0.008951881900429726,
-0.01701386272907257,
-0.036547645926475525,
0.015207625925540924,
0.049305837601423264,
0.04803706705570221,
-0.02525206096470356,
-0.00011991094652330503,
0.043208688497543335,
-0.007194106001406908,
0.07344772666692734,
-0.018150469288229942,
-0.0017919183010235429,
0.032265543937683105,
-0.05293593183159828,
0.02831825613975525,
0.01028232928365469,
-0.06932421773672104,
0.04631013050675392,
-0.08775664120912552,
0.011022444814443588,
-0.06558839231729507,
-0.0016112946905195713,
0.023419391363859177,
0.021727697923779488,
-0.01947210542857647,
-0.04853047803044319,
-0.05441616475582123,
-0.036582887172698975,
-0.03619520738720894,
-0.022150620818138123,
-0.0035089438315480947,
0.04796658083796501,
-0.058116745203733444,
-0.02674991451203823,
-0.0004892807337455451,
0.011189852841198444,
0.010731684975326061,
-0.13611090183258057,
-0.03497930243611336,
0.007022293284535408,
0.004057422745972872,
0.0008001405512914062,
0.03563131019473076,
0.01874961145222187,
-0.04472416639328003,
-0.02828301303088665,
-0.03637142479419708,
0.01906680315732956,
0.06431962549686432,
0.00021490354265552014,
0.07915719598531723,
0.013304470106959343,
-0.041516996920108795,
-0.034485891461372375,
-0.002211537677794695,
-0.0075553529895842075,
-0.010070866905152798,
-0.022608788684010506,
-0.0031653183978050947,
-0.04490038380026817,
0.029604649171233177,
0.023014090955257416,
0.025639740750193596,
0.04010725021362305,
0.010617143474519253,
0.0009212904842570424,
-0.019401617348194122,
0.020106490701436996,
0.055050548166036606,
0.06523595750331879,
0.031049637123942375,
0.0034781056456267834,
-0.0399310328066349,
-0.0525130070745945,
0.022397326305508614,
0.018696745857596397,
0.035860393196344376,
0.018767232075333595,
-0.016864076256752014,
-0.05716516822576523,
-0.0002913106291089207,
-0.017278188839554787,
0.02622126042842865,
0.0399310328066349,
-0.055896397680044174,
-0.0015716456109657884,
-0.032388895750045776,
0.0019317914266139269,
0.057834796607494354,
0.0043658046051859856,
0.08479617536067963,
0.020141733810305595,
0.03208932653069496,
0.020141733810305595,
-0.005423113703727722,
0.02072325348854065,
0.028371121734380722,
0.0061456081457436085,
-0.09565120935440063,
-0.0034604838583618402,
0.08176521956920624,
0.015269302763044834,
0.010863848961889744,
-0.020106490701436996,
-0.04112931713461876,
0.024300482124090195,
0.011392503045499325,
0.008603851310908794,
0.02734905667603016,
0.03943762183189392,
-0.03575466200709343,
0.033146634697914124,
0.046239640563726425,
0.02100520394742489,
0.012687706388533115,
-0.024864381179213524,
-0.0006564126233570278,
-0.059209298342466354,
0.00683726416900754,
0.06403767317533493,
0.001062265015207231,
0.0030353576876223087,
-0.00008088137838058174,
0.05240727588534355,
-0.01809760369360447,
0.07372967153787613,
0.006850480567663908,
-0.02456481009721756,
-0.0034869166556745768,
-0.020547036081552505,
-0.019119668751955032,
-0.0400015190243721,
0.07506892830133438,
0.025551632046699524,
-0.02622126042842865,
0.08091937750577927,
0.039860546588897705,
-0.0038966238498687744,
-0.0070927804335951805,
-0.04359636828303337,
-0.03459162265062332,
0.00437241280451417,
-0.06576461344957352,
0.036265693604946136,
0.0798620656132698,
0.03947286680340767,
-0.03672386333346367,
-0.01096958015114069,
0.03459162265062332,
-0.02831825613975525,
0.00917215459048748,
-0.027084728702902794,
0.024934867396950722,
0.0881795585155487,
-0.002801868598908186,
0.0414465069770813,
-0.025992177426815033,
0.023102199658751488,
0.012414569035172462,
-0.03512027859687805,
0.027736736461520195,
0.01790376380085945,
0.008132467977702618,
0.020458927378058434,
0.03661813214421272,
-0.0033062929287552834,
-0.032864686101675034,
0.019895028322935104,
-0.026838023215532303,
0.01919015683233738,
0.009727241471409798,
-0.01668785884976387,
-0.03184261918067932,
-0.0511385053396225,
-0.04197516292333603,
-0.04239808768033981,
0.0509975329041481,
-0.006004633381962776,
0.0010562075767666101,
0.051490943878889084,
-0.02824776992201805,
0.08218814432621002,
0.04634537175297737,
-0.002923018531873822,
0.028371121734380722,
0.012996088713407516,
0.026978999376296997,
0.02497011236846447,
0.02396566793322563,
0.0071985116228461266,
0.016775967553257942,
-0.02694375440478325,
0.01963070221245289,
0.020494170486927032,
-0.11693836748600006,
-0.03374577686190605,
0.0004956135526299477,
0.07422308623790741,
-0.00048239718307740986,
-0.04616915434598923,
-0.017560139298439026,
-0.0496230311691761,
-0.02134001813828945,
-0.010599521920084953,
-0.022291595116257668,
-0.03619520738720894,
-0.024793893098831177,
0.04141126573085785,
0.028300635516643524,
0.06615228950977325,
-0.01822095736861229,
-0.02468816190958023,
0.030485739931464195,
-0.025146329775452614,
-0.020511792972683907,
0.00041493866592645645,
0.03422156348824501,
-0.004801944363862276,
-0.01290797907859087,
-0.01639709807932377,
-0.014291292056441307,
0.0172870010137558,
0.012899168767035007,
0.02521681785583496,
-0.06463681906461716,
-0.03053860552608967,
0.023683719336986542,
-0.014106262475252151,
0.03237127512693405,
-0.012467433698475361,
-0.02775435894727707,
-0.0008893509511835873,
0.003592647612094879,
-0.004039801191538572,
-0.03749922290444374,
-0.025234438478946686,
-0.03427442908287048,
-0.02259116619825363,
-0.03138445317745209,
0.02678515948355198,
0.02921696938574314,
0.058398693799972534,
-0.05720040947198868,
-0.08106034994125366,
0.017190080136060715,
-0.035014547407627106,
-0.01270532887428999,
0.04585196077823639,
0.06146489083766937,
0.00492970272898674,
-0.11172230541706085,
0.01400053221732378,
0.023296039551496506,
0.01720770262181759,
0.0034340512938797474,
0.007075158879160881,
-0.04451270401477814,
0.03859177604317665,
-0.02625650353729725,
-0.05265398323535919,
-0.06347377598285675,
0.051702406257390976,
-0.04447745904326439,
0.005766739137470722,
-0.062240250408649445,
0.022009646520018578,
0.024018533527851105,
-0.040424443781375885,
0.03138445317745209,
-0.021798184141516685,
0.013665717095136642,
-0.09522828459739685,
0.047332193702459335,
-0.04010725021362305,
0.05987892672419548,
0.014564430341124535,
0.008145684376358986,
-0.016996240243315697,
-0.10699965804815292,
-0.052900686860084534,
-0.015595306642353535,
-0.03059147112071514,
-0.033921994268894196,
-0.004277695436030626,
-0.06942994892597198,
-0.018961071968078613,
-0.01975405402481556,
0.03672386333346367,
-0.017886141315102577,
0.026538453996181488,
-0.0079386280849576,
0.030274277552962303,
0.03690008074045181,
-0.04222187027335167,
-0.06065428629517555,
0.020987581461668015,
-0.027965819463133812,
-0.0033899967093020678,
0.012053321115672588,
0.07253138720989227,
0.03753446415066719,
-0.00874923076480627,
0.0027644222136586905,
-0.019648322835564613,
-0.034239187836647034,
0.016379477456212044,
0.03471497446298599,
0.04176370054483414,
-0.00492089195176959,
-0.023454636335372925,
-0.029146481305360794,
0.0385565310716629,
-0.0881795585155487,
-0.02266165427863598,
0.061923056840896606,
-0.018432417884469032,
0.01729581132531166,
-0.01664380356669426,
0.04359636828303337,
-0.025040598586201668,
-0.010916714556515217,
-0.02553400956094265,
0.026732293888926506,
0.01125152874737978,
-0.010097299702465534,
0.0013106224359944463,
0.009885838255286217,
0.0066302078776061535,
0.004299722611904144,
-0.011551099829375744,
0.016132771968841553,
-0.013225171715021133,
-0.026556074619293213,
0.0019626296125352383,
-0.051420457661151886,
-0.01956021413207054,
0.012555543333292007,
0.007612624205648899,
-0.011022444814443588,
0.036582887172698975,
0.016141582280397415,
-0.011929968371987343,
-0.06565888226032257,
-0.04518233239650726,
-0.020635144785046577,
0.05409897118806839,
0.004638942889869213,
-0.025622118264436722,
0.023666096851229668,
0.016476396471261978,
0.09480536729097366,
0.01644996367394924,
0.020176978781819344,
0.017965439707040787,
-0.05085655674338341,
-0.024652918800711632,
0.02606266364455223,
0.014035775326192379,
0.015974175184965134,
-0.01212380826473236,
0.009647944010794163,
0.02803630754351616,
0.013745015487074852,
-0.03615996241569519,
0.026238882914185524,
-0.04856572300195694,
0.021445749327540398,
0.004890053533017635,
-0.05515627935528755,
0.015930119901895523,
-0.01762181520462036,
-0.02222110889852047,
-0.009198587387800217,
-0.05297117680311203,
0.02860020473599434,
0.04909437522292137,
-0.00004966460619471036,
-0.07929816842079163,
0.0074804602190852165,
-0.02965751476585865,
0.006031066179275513,
-0.022802628576755524,
-0.042609550058841705,
0.03866226226091385,
-0.02253830060362816,
-0.028582584112882614,
0.03325236588716507,
0.07831134647130966,
0.07817037403583527,
-0.0009647943661548197,
-0.016053473576903343,
0.015004975721240044,
-0.02225635200738907,
-0.019983138889074326,
-0.0005743610090576112,
-0.02831825613975525,
-0.008247009478509426,
-0.025622118264436722,
-0.005740306340157986,
-0.019613079726696014,
0.027771979570388794,
-0.05409897118806839,
0.04183419048786163,
0.04853047803044319,
-0.01753370650112629,
0.05741187185049057,
0.02287311665713787,
-0.06653997302055359,
-0.030327143147587776,
-0.0067799934186041355,
0.012044510804116726,
0.013198738917708397,
0.061641108244657516,
-0.03859177604317665,
-0.037675440311431885,
-0.016494018957018852,
-0.005299760960042477,
0.006282176822423935,
-0.031014394015073776,
-0.04905913397669792,
-0.04796658083796501,
0.004991379100829363,
-0.011260339990258217,
-0.027683870866894722,
-0.003500133054330945,
0.029728000983595848,
-0.005942957010120153,
0.033798642456531525,
-0.027648627758026123,
-0.06400243192911148,
-0.037111543118953705,
0.03975481539964676,
0.01331328134983778,
0.0186615027487278,
0.01809760369360447,
-0.09635608643293381,
0.008048764429986477,
0.055614449083805084,
-0.016705481335520744,
-0.004260073881596327,
0.03644191473722458,
-0.02900550700724125,
-0.07020530849695206,
-0.010440925136208534,
0.0066742622293531895,
0.01523405872285366,
-0.011110554449260235,
0.0042688846588134766,
-0.010026812553405762,
-0.04606342315673828,
0.02237970568239689,
-0.050081197172403336,
0.0745050311088562,
0.014864000491797924,
0.0454290397465229,
0.0033833885099738836
]
|
30,040 | pawl.linkedin | _prepare_core_authorizer | null | def _prepare_core_authorizer(self, authenticator: Authenticator):
if self._token_manager is not None:
self._token_manager.linkedin = self
authorizer = Authorizer(
authenticator,
post_access_callback=self._token_manager.post_access_callback,
pre_access_callback=self._token_manager.pre_access_callback,
)
else:
# TODO - Add error handling
authorizer = Authorizer(authenticator)
self._core = self._authorized_core = session(authorizer)
| (self, authenticator: pawl.core.auth.Authenticator) | [
-0.09400267899036407,
-0.011273483745753765,
-0.03825606778264046,
0.08183847367763519,
0.0198478102684021,
-0.005164389498531818,
0.019379954785108566,
0.05024033039808273,
-0.005272355396300554,
0.009438056498765945,
0.05607051029801369,
0.015592137351632118,
-0.05286750942468643,
-0.009806941263377666,
-0.04106319323182106,
-0.03127424418926239,
0.021053433418273926,
0.05999328941106796,
-0.029060935601592064,
-0.07219348102807999,
-0.002798127243295312,
-0.04106319323182106,
-0.05491887032985687,
-0.018219318240880966,
-0.013126906007528305,
0.03391942009329796,
-0.02193515934050083,
-0.0014114347286522388,
0.020675551146268845,
0.04009149596095085,
0.029186896979808807,
0.03167012333869934,
0.008092976175248623,
0.056682322174310684,
0.045597776770591736,
-0.0376802496612072,
-0.011777326464653015,
0.06049713119864464,
-0.04365438595414162,
0.009824935346841812,
-0.0004942833329550922,
-0.03422532603144646,
0.056286443024873734,
-0.017670487985014915,
-0.047577161341905594,
0.03131023421883583,
-0.00785005185753107,
0.06881053745746613,
0.06823471933603287,
-0.020711541175842285,
-0.06657923758029938,
-0.05139197036623955,
0.028161216527223587,
0.04181895777583122,
-0.011570391245186329,
0.00622155936434865,
0.04239477589726448,
0.018336281180381775,
-0.026415761560201645,
0.024148467928171158,
-0.01848023571074009,
-0.027693362906575203,
-0.013018939644098282,
0.00909616332501173,
0.010373764671385288,
-0.06319628655910492,
-0.03201201558113098,
0.04401427134871483,
0.010454739443957806,
0.02359064295887947,
-0.028827009722590446,
-0.021287361159920692,
-0.018093356862664223,
-0.017040684819221497,
0.03526899963617325,
0.0001890816492959857,
-0.025642002001404762,
-0.0283051710575819,
0.0238785520195961,
0.05391118675470352,
0.04066731780767441,
-0.007278729695826769,
0.009258112870156765,
0.07766377925872803,
0.012587074190378189,
-0.046893373131752014,
0.004347893875092268,
-0.07201354205608368,
0.017580516636371613,
-0.016455868259072304,
-0.012326155789196491,
0.023644626140594482,
0.022403012961149216,
-0.0032659813296049833,
-0.04469805955886841,
0.044230204075574875,
-0.0272974856197834,
0.010175826027989388,
-0.00045941921416670084,
0.016032999381422997,
-0.014395509846508503,
0.027711357921361923,
-0.001191003480926156,
0.009105159901082516,
-0.0006781634874641895,
0.027477430179715157,
0.04912467673420906,
-0.06636330485343933,
0.00420168973505497,
0.023014821112155914,
-0.01730160415172577,
-0.05733012035489082,
-0.026415761560201645,
0.08097474277019501,
-0.03186805918812752,
-0.05999328941106796,
0.04530986770987511,
-0.03822007775306702,
0.05491887032985687,
-0.000582006003241986,
-0.018714163452386856,
0.006941335275769234,
0.005092411767691374,
0.03267780691385269,
-0.02756740152835846,
0.013891667127609253,
0.0463535413146019,
0.008988196961581707,
-0.03476515784859657,
-0.06132487207651138,
0.05657435581088066,
-0.005389319267123938,
-0.009752958081662655,
-0.08529339730739594,
0.011021562851965427,
-0.03879589959979057,
0.011507410556077957,
-0.021629253402352333,
-0.03555690869688988,
-0.028827009722590446,
-0.011462424881756306,
0.005033929832279682,
-0.013810692355036736,
-0.0011443305993452668,
0.0003191192226950079,
0.027837317436933517,
-0.022978832945227623,
0.02193515934050083,
0.059021592140197754,
-0.06909845024347305,
0.01749054528772831,
-0.003247987013310194,
0.0382920578122139,
0.02524612657725811,
-0.028683053329586983,
0.04588568955659866,
-0.05247163400053978,
-0.045561790466308594,
0.0026339285541325808,
0.0390838086605072,
0.021773209795355797,
-0.02758539654314518,
-0.02087348885834217,
-0.04772111773490906,
0.01144443079829216,
-0.0592375248670578,
0.027513418346643448,
-0.06708307564258575,
-0.05290349945425987,
0.014386513270437717,
0.018984079360961914,
-0.04646150767803192,
-0.020999450236558914,
-0.009447054006159306,
0.024688299745321274,
0.04887275770306587,
0.02182719297707081,
-0.0003275540948379785,
-0.04351042956113815,
0.011894290335476398,
0.026811636984348297,
0.009626997634768486,
-0.004435616545379162,
-0.010319781489670277,
0.01617695391178131,
-0.023482676595449448,
0.0687025710940361,
-0.023050811141729355,
0.07043003290891647,
0.062476515769958496,
-0.01849823072552681,
0.012937964871525764,
-0.03170610964298248,
-0.026343783363699913,
-0.00917263887822628,
-0.010373764671385288,
0.01380169577896595,
-0.014719408936798573,
0.015547150745987892,
0.018966084346175194,
-0.05243564397096634,
0.01398163940757513,
-0.007364203222095966,
-0.0159700196236372,
0.033847443759441376,
0.06121690571308136,
0.007431682199239731,
0.03771623596549034,
-0.07165364921092987,
-0.019919786602258682,
-0.0005552955553866923,
-0.03861595690250397,
-0.01498932484537363,
0.03264182060956955,
-0.025156153365969658,
0.018030377104878426,
0.1096218079328537,
0.003796815872192383,
0.07161766290664673,
0.04196291044354439,
0.020045747980475426,
0.050996094942092896,
0.008650802075862885,
-0.08155056834220886,
0.027009576559066772,
-0.008083978667855263,
-0.0006140584591776133,
-0.0370684377849102,
-0.015601133927702904,
-0.0074721695855259895,
0.019721848890185356,
0.004952955059707165,
-0.07708795368671417,
0.00960000604391098,
-0.003756328485906124,
-0.03238989785313606,
0.05513480305671692,
-0.021359337493777275,
-0.11235695332288742,
0.03897584229707718,
0.023104794323444366,
0.0035336478613317013,
0.040847260504961014,
-0.039875563234090805,
-0.0773758664727211,
0.011237495578825474,
-0.04887275770306587,
-0.032101988792419434,
-0.006275542546063662,
0.02087348885834217,
-0.05081615224480629,
0.015529156662523746,
-0.010400756262242794,
-0.04304257407784462,
-0.018714163452386856,
0.0046110618859529495,
0.04131511598825455,
0.023014821112155914,
0.0034841634333133698,
-0.00028692613705061376,
-0.0009255863260477781,
0.028773026540875435,
-0.018696168437600136,
-0.013945650309324265,
-0.04966450855135918,
-0.006477979477494955,
0.025785958394408226,
0.0251921433955431,
0.0531914085149765,
-0.03028455376625061,
0.06661522388458252,
0.006383508909493685,
0.01957789435982704,
0.03490911051630974,
-0.02191716432571411,
-0.0195419043302536,
-0.0008417999488301575,
0.03186805918812752,
-0.037572283297777176,
0.04671343043446541,
0.04912467673420906,
-0.006077604368329048,
-0.028862997889518738,
0.0370684377849102,
-0.056682322174310684,
0.011516408063471317,
0.018786141648888588,
-0.0052498625591397285,
-0.05545870214700699,
-0.030878368765115738,
-0.02823319472372532,
0.034819141030311584,
0.06395205110311508,
0.028539098799228668,
0.020423630252480507,
-0.05351530760526657,
-0.06542759388685226,
0.010049865581095219,
0.020801512524485588,
0.01129147782921791,
-0.004431117791682482,
0.039263755083084106,
0.011993259191513062,
-0.0007917530601844192,
0.06416798382997513,
-0.059057582169771194,
0.0313282273709774,
0.06535561382770538,
-0.021719226613640785,
-0.010868609882891178,
0.037572283297777176,
0.04847688227891922,
-0.030698426067829132,
0.014404507353901863,
0.017409570515155792,
0.013450805097818375,
0.04073929414153099,
-0.03408136963844299,
0.008664297871291637,
0.056286443024873734,
-0.014332530088722706,
0.010157831944525242,
-0.008529339917004108,
-0.010562705807387829,
0.04117115959525108,
-0.055674634873867035,
0.007503659464418888,
0.017553525045514107,
-0.07564840465784073,
0.023374710232019424,
-0.10048066079616547,
0.01822831481695175,
-0.0403074286878109,
-0.004687537904828787,
0.01663581095635891,
0.022672928869724274,
-0.013081920333206654,
-0.03775222599506378,
-0.029834695160388947,
-0.023968525230884552,
-0.07143771648406982,
-0.018075361847877502,
-0.01498032733798027,
0.055710624903440475,
-0.05279553309082985,
-0.03296571969985962,
-0.0009508909424766898,
-0.014593448489904404,
0.024382395669817924,
-0.13186287879943848,
-0.03771623596549034,
0.005164389498531818,
0.01916402205824852,
0.006437492091208696,
0.02288886159658432,
0.007017811294645071,
-0.04415822774171829,
-0.03271379694342613,
-0.05272355675697327,
-0.008587821386754513,
0.07672806829214096,
0.02524612657725811,
0.0390838086605072,
0.04149505868554115,
-0.030356531962752342,
-0.02294284477829933,
-0.030464498326182365,
-0.006050612777471542,
0.012083231471478939,
-0.03309167921543121,
-0.018102353438735008,
-0.02222306840121746,
0.022978832945227623,
0.043546419590711594,
0.024310417473316193,
0.025444064289331436,
-0.01760750822722912,
0.025480052456259727,
0.005024932790547609,
0.025677992030978203,
0.036834511905908585,
0.07370501011610031,
0.04005550593137741,
-0.007400191854685545,
-0.044554103165864944,
-0.02857508696615696,
0.006995318457484245,
0.027063559740781784,
0.03575484827160835,
0.016743777319788933,
-0.029330851510167122,
-0.04383432865142822,
0.00048050639452412724,
-0.04584969952702522,
-0.008880230598151684,
0.027765341103076935,
-0.05855373665690422,
-0.010076857171952724,
-0.013891667127609253,
-0.019973769783973694,
0.054990850389003754,
0.03096834197640419,
0.10184823721647263,
-0.01345980167388916,
0.02553403563797474,
0.014836372807621956,
0.018912101164460182,
0.06798280030488968,
0.016923721879720688,
0.04001951962709427,
-0.06823471933603287,
0.002422494348138571,
0.06567951291799545,
0.027135536074638367,
0.007710595149546862,
-0.037860192358493805,
0.03465719148516655,
0.003697846783325076,
-0.003544894279912114,
0.02891698107123375,
0.012020250782370567,
0.04818896949291229,
-0.05794192850589752,
0.015754086896777153,
-0.007224746514111757,
0.00940206740051508,
-0.004044238477945328,
0.009429058991372585,
-0.01513328030705452,
-0.06222459301352501,
0.0005609188228845596,
0.027063559740781784,
0.03096834197640419,
0.01769747957587242,
-0.0027576398570090532,
0.06693912297487259,
-0.0188401248306036,
0.0485488586127758,
-0.001252859248779714,
-0.014377515763044357,
0.03228193148970604,
0.009860924445092678,
-0.008128964342176914,
-0.02963675744831562,
0.03140020743012428,
0.014881358481943607,
-0.012686043046414852,
0.08774063736200333,
0.0004807875375263393,
0.006374511867761612,
-0.03665456920862198,
-0.002010872820392251,
-0.0007192131597548723,
0.013216877356171608,
-0.05963340029120445,
0.031184274703264236,
0.08349395543336868,
0.032119981944561005,
-0.02384256385266781,
0.016590826213359833,
0.008929714560508728,
-0.02686562016606331,
0.015772080048918724,
-0.0050159357488155365,
0.06603940576314926,
0.08918018639087677,
-0.002532710088416934,
0.04041539505124092,
-0.04808100312948227,
-0.02152128703892231,
0.025066182017326355,
-0.01328885555267334,
0.03296571969985962,
-0.015097291208803654,
0.00489447358995676,
0.0020232440438121557,
0.01699570007622242,
-0.021125411614775658,
-0.038867875933647156,
0.003468418261036277,
-0.003853048197925091,
0.03947968780994415,
0.027693362906575203,
-0.04117115959525108,
-0.018201323226094246,
-0.022313041612505913,
-0.012488105334341526,
-0.04073929414153099,
0.07751981914043427,
0.009698974899947643,
-0.018381267786026,
0.053623273968696594,
-0.0021986891515552998,
0.018084360286593437,
0.053371354937553406,
0.007530651055276394,
0.0032569842878729105,
0.0009340211981907487,
0.060065265744924545,
-0.0036551100201904774,
-0.01815633662045002,
-0.032461874186992645,
-0.009546022862195969,
-0.031076308339834213,
0.046281564980745316,
0.02765737473964691,
-0.10976576805114746,
-0.028035255149006844,
-0.018246309831738472,
0.06654324382543564,
0.01361275464296341,
-0.02150329388678074,
-0.05092411860823631,
-0.05848176032304764,
0.004255672916769981,
0.011300475336611271,
-0.00055023463210091,
0.00264967349357903,
-0.02254696749150753,
0.024346407502889633,
-0.0034819140564650297,
0.025318102911114693,
-0.034819141030311584,
-0.031454190611839294,
0.02591191790997982,
-0.007116780150681734,
-0.025839941576123238,
0.028791019693017006,
0.04412223771214485,
-0.030464498326182365,
-0.002753141336143017,
-0.026055874302983284,
-0.03811211138963699,
0.015160271897912025,
0.012173203751444817,
0.01625792868435383,
-0.06733500212430954,
-0.035538915544748306,
0.06827070564031601,
-0.020387642085552216,
0.02359064295887947,
0.0017780704656615853,
-0.027513418346643448,
0.018966084346175194,
-0.018300293013453484,
-0.026847627013921738,
-0.050636205822229385,
-0.008367390371859074,
-0.03471117466688156,
-0.014242557808756828,
-0.03825606778264046,
0.012038245797157288,
0.019451932981610298,
0.01595202460885048,
-0.03498109057545662,
-0.04613760858774185,
-0.010670672170817852,
-0.02456233836710453,
0.034801144152879715,
0.056286443024873734,
0.04934060946106911,
0.02193515934050083,
-0.09126753360033035,
0.009321092627942562,
0.05286750942468643,
-0.027873307466506958,
-0.029402829706668854,
0.001474415184929967,
-0.030122604221105576,
0.03059045970439911,
-0.00520487641915679,
-0.07989507913589478,
-0.056358423084020615,
0.07471270114183426,
-0.05423508584499359,
0.024706294760107994,
-0.038184091448783875,
0.02450835518538952,
0.036150723695755005,
-0.00461556063964963,
0.041243135929107666,
-0.026703670620918274,
0.015466175973415375,
-0.07007014751434326,
0.002676665084436536,
-0.04369037225842476,
0.03325362876057625,
0.023680614307522774,
0.013927656225860119,
-0.014530467800796032,
-0.11530803889036179,
-0.011273483745753765,
-0.038472000509500504,
-0.028449127450585365,
0.01760750822722912,
-0.0011561394203454256,
-0.062440525740385056,
-0.016878735274076462,
-0.008961205370724201,
-0.013306849636137486,
-0.008893726393580437,
0.022151092067360878,
-0.03026656061410904,
0.02992466650903225,
0.027315480634570122,
-0.0558185912668705,
-0.06312431395053864,
-0.013423813506960869,
-0.029834695160388947,
-0.013243868947029114,
-0.025785958394408226,
0.09515432268381119,
0.06441991031169891,
-0.0008119967533275485,
0.01882212981581688,
-0.0073507074266672134,
-0.006720903795212507,
-0.0013484543887898326,
0.03028455376625061,
0.060389164835214615,
0.018075361847877502,
-0.015880046412348747,
-0.041531048715114594,
0.022600950673222542,
-0.05992130935192108,
-0.049268633127212524,
0.08565328270196915,
-0.045633766800165176,
0.004449112340807915,
0.016572831198573112,
0.02621782198548317,
-0.034153349697589874,
-0.019379954785108566,
-0.029780711978673935,
0.0566103421151638,
0.0010701037244871259,
0.005200378131121397,
0.018066365271806717,
0.01836327277123928,
-0.03804013505578041,
-0.014341526664793491,
-0.031040318310260773,
0.01988379843533039,
-0.002595690544694662,
-0.023050811141729355,
0.011057551018893719,
-0.06233255937695503,
0.012029248289763927,
0.01857020892202854,
0.02324874885380268,
-0.02423844113945961,
0.0175265334546566,
0.023482676595449448,
0.024130474776029587,
-0.060353174805641174,
-0.02193515934050083,
0.01213721465319395,
0.04887275770306587,
0.044266194105148315,
-0.0143055384978652,
0.014638434164226055,
0.039227765053510666,
0.07428083568811417,
0.039587654173374176,
0.031202267855405807,
-0.010166829451918602,
-0.04271867498755455,
0.0198478102684021,
0.016545839607715607,
0.004208437632769346,
-0.010310783982276917,
0.015259240753948689,
-0.0012731029419228435,
0.009240117855370045,
0.021971147507429123,
-0.044554103165864944,
0.04545382410287857,
-0.057042207568883896,
0.03026656061410904,
0.025803951546549797,
-0.07478467375040054,
0.014143588952720165,
0.00562774483114481,
-0.0032682307064533234,
-0.022349029779434204,
-0.01921800523996353,
0.0013754459796473384,
0.020369647070765495,
-0.012209191918373108,
-0.07028608024120331,
-0.009105159901082516,
-0.005024932790547609,
0.01659982278943062,
-0.056646332144737244,
-0.03811211138963699,
0.04376235231757164,
-0.05423508584499359,
-0.059381481260061264,
-0.0036551100201904774,
0.03127424418926239,
0.07543247193098068,
-0.006927839480340481,
-0.0023707605432718992,
-0.022133097052574158,
-0.030878368765115738,
-0.03100433014333248,
-0.016662802547216415,
-0.0028656062204390764,
0.02218708023428917,
-0.03588080778717995,
0.0024539846926927567,
-0.02530010975897312,
0.025731975212693214,
0.005416310857981443,
0.04099121689796448,
0.04181895777583122,
-0.019271988421678543,
0.05794192850589752,
0.02251097932457924,
-0.03771623596549034,
0.008003003895282745,
-0.03267780691385269,
0.018678175285458565,
0.008340398781001568,
0.04099121689796448,
-0.01946992799639702,
0.021665243431925774,
-0.019271988421678543,
0.030014637857675552,
-0.017292605713009834,
-0.006927839480340481,
-0.027459435164928436,
-0.034477245062589645,
0.019685860723257065,
-0.03201201558113098,
-0.02522813156247139,
0.009114157408475876,
0.041531048715114594,
0.031202267855405807,
0.029096925631165504,
-0.008263922296464443,
-0.05419909581542015,
-0.010202817618846893,
0.023626631125807762,
0.04473404958844185,
0.009258112870156765,
-0.004768512677401304,
-0.07309320569038391,
0.018606197088956833,
0.07280529290437698,
-0.018354276195168495,
0.003124275477603078,
0.015214255079627037,
-0.023086799308657646,
-0.04876479133963585,
-0.005141896195709705,
-0.016302915289998055,
0.012191197834908962,
-0.007949020713567734,
-0.01701369322836399,
0.03192204236984253,
-0.058661703020334244,
0.013999633491039276,
-0.05830181762576103,
0.07179760932922363,
0.012803006917238235,
0.05790593847632408,
0.0017409570282325149
]
|
30,041 | pawl.linkedin | _service_request | Run a request through mapped services.
:param data: Dictionary, bytes, or file-like object to send in the body of the
request (default: None).
:param json: JSON-serializable object to send in the body of the request with a
Content-Type header of application/json (default: None). If ``json`` is
provided, ``data`` should not be.
:param method: The HTTP method (e.g., GET, POST, PUT, DELETE).
:param params: The query parameters to add to the request (default: None).
:param path: The path to fetch.
| def _service_request(
self,
data: Optional[Union[Dict[str, Union[str, Any]], bytes, IO, str]] = None,
json=None,
method: str = "",
params: Optional[Union[str, Dict[str, str]]] = None,
path: str = "",
) -> Any:
"""Run a request through mapped services.
:param data: Dictionary, bytes, or file-like object to send in the body of the
request (default: None).
:param json: JSON-serializable object to send in the body of the request with a
Content-Type header of application/json (default: None). If ``json`` is
provided, ``data`` should not be.
:param method: The HTTP method (e.g., GET, POST, PUT, DELETE).
:param params: The query parameters to add to the request (default: None).
:param path: The path to fetch.
"""
return self._parse_service_request(
data=self._core.request(
data=data,
json=json,
method=method,
params=params,
path=path,
)
)
| (self, data: Union[Dict[str, Union[str, Any]], bytes, IO, str, NoneType] = None, json=None, method: str = '', params: Union[str, Dict[str, str], NoneType] = None, path: str = '') -> Any | [
0.04727374017238617,
-0.019896171987056732,
-0.02699807472527027,
0.008199716918170452,
-0.030738772824406624,
-0.03339520841836929,
-0.02866060845553875,
0.023347733542323112,
0.03164232149720192,
-0.010752245783805847,
0.05193605646491051,
0.018739627674221992,
0.04065975174307823,
-0.04145487770438194,
0.004237649962306023,
0.01580309122800827,
-0.0013541956432163715,
0.009040018543601036,
-0.022606821730732918,
-0.08421086519956589,
0.04597262665629387,
0.027305282652378082,
0.045683491975069046,
0.02275139093399048,
0.03543723374605179,
0.07705474644899368,
-0.007052208296954632,
-0.029365377500653267,
0.05999572202563286,
-0.03708169609308243,
0.015044108033180237,
0.02829918824136257,
-0.05800791457295418,
0.007359415292739868,
0.03784067556262016,
0.04593648388981819,
0.0447799414396286,
0.027377566322684288,
-0.0560201033949852,
-0.014050203375518322,
-0.058405473828315735,
-0.02123342640697956,
0.01764633320271969,
-0.021450277417898178,
0.006266119424253702,
0.006302261725068092,
-0.05002053081989288,
0.09621001034975052,
0.03693712502717972,
0.03921407088637352,
-0.005236072465777397,
-0.02501026540994644,
-0.0181161779910326,
-0.03932249918580055,
-0.02782934159040451,
0.02403443120419979,
-0.026257164776325226,
0.03178689256310463,
0.0006821802817285061,
0.0026699905283749104,
0.03146161139011383,
0.014773043803870678,
0.02387179248034954,
0.0016478494508191943,
-0.024504277855157852,
-0.029275022447109222,
0.004639729391783476,
-0.021649058908224106,
-0.004897241480648518,
0.006126069463789463,
-0.006939264480024576,
0.05620081350207329,
-0.02417900040745735,
0.032057955861091614,
0.06212810054421425,
0.0006567679229192436,
0.04676775261759758,
-0.06144140288233757,
0.026130666956305504,
-0.016751818358898163,
0.06567002087831497,
-0.09165611863136292,
-0.061369121074676514,
-0.02634751982986927,
-0.016507860273122787,
0.0062028709799051285,
0.03209409862756729,
-0.012776197865605354,
-0.07705474644899368,
0.0060357144102454185,
-0.028877459466457367,
0.04402095824480057,
-0.07806672155857086,
-0.0036729308776557446,
0.024124786257743835,
-0.017989682033658028,
0.0008538548136129975,
-0.0009221857762895525,
-0.06061013787984848,
0.03281693905591965,
0.04792429506778717,
0.03095562569797039,
0.017004812136292458,
0.008118397556245327,
0.0649833232164383,
-0.03440718725323677,
0.012929800897836685,
-0.004196989815682173,
-0.011447979137301445,
0.0037790981587022543,
-0.01579405553638935,
0.014520049095153809,
-0.03344942256808281,
0.020619012415409088,
-0.00605378532782197,
0.03953935205936432,
0.01944439671933651,
-0.02107078768312931,
-0.10336612910032272,
0.0365576334297657,
-0.05981501191854477,
-0.004027574323117733,
0.028552182018756866,
-0.03641306608915329,
0.01760115474462509,
-0.018396278843283653,
-0.0005042938864789903,
0.013571321964263916,
0.010345648042857647,
-0.03722626343369484,
0.043406546115875244,
0.02585960179567337,
0.05500812828540802,
0.03841894865036011,
0.020492514595389366,
0.027232998982071877,
-0.02932923473417759,
0.0362323559820652,
-0.05338173732161522,
0.09093327820301056,
0.06306779384613037,
-0.011267269030213356,
-0.06328464299440384,
0.000590131152421236,
0.023474231362342834,
-0.041093457490205765,
0.05779106169939041,
-0.03578058257699013,
0.0004246685130055994,
0.012902694754302502,
0.0038468644488602877,
-0.02356458455324173,
0.0444546639919281,
-0.0017574048833921552,
-0.012803304009139538,
-0.02307666838169098,
0.005091504659503698,
-0.10452266782522202,
-0.0047526732087135315,
-0.041418734937906265,
-0.03686484321951866,
0.01944439671933651,
-0.006306779570877552,
-0.08551197499036789,
0.02370915375649929,
-0.006939264480024576,
-0.08153636008501053,
0.00432800455018878,
0.027865484356880188,
-0.0323290191590786,
-0.00568784773349762,
0.04904469847679138,
-0.035636015236377716,
-0.023022456094622612,
0.07712703198194504,
-0.04105731472373009,
-0.004420618526637554,
-0.015947658568620682,
-0.0035938704386353493,
-0.019860031083226204,
0.00855210144072771,
0.02981715090572834,
-0.0030675523448735476,
0.012396707199513912,
-0.01532420888543129,
-0.021143071353435516,
0.001498763682320714,
-0.02369108237326145,
0.000776488333940506,
0.04499679431319237,
-0.053598590195178986,
0.008741847239434719,
0.03834666311740875,
-0.003026892663910985,
-0.005032773595303297,
-0.006315814796835184,
0.004095340613275766,
0.0003701731620822102,
0.0024102197494357824,
0.004671353846788406,
-0.007928651757538319,
0.024630773812532425,
0.048177290707826614,
0.04727374017238617,
-0.07828357815742493,
-0.034190334379673004,
0.040587469935417175,
0.013354470022022724,
-0.017537906765937805,
-0.009414991363883018,
-0.007445252500474453,
-0.03744311258196831,
-0.009713162668049335,
-0.002398925367742777,
0.024088645353913307,
0.048177290707826614,
0.055911678820848465,
-0.03634078428149223,
-0.012487061321735382,
-0.042900554835796356,
0.04416552558541298,
0.042936697602272034,
0.014664617367088795,
-0.01113173644989729,
0.00923428125679493,
-0.029202736914157867,
0.005742060486227274,
0.027377566322684288,
-0.05421300232410431,
-0.07517536729574203,
0.03626849874854088,
-0.035473376512527466,
0.052297476679086685,
-0.01695963367819786,
-0.019715461879968643,
-0.10445038974285126,
0.02764863148331642,
-0.031859174370765686,
0.018396278843283653,
-0.0425029955804348,
0.06545316427946091,
-0.00964087899774313,
-0.022371899336576462,
-0.014059239067137241,
-0.07401882112026215,
-0.03556372970342636,
-0.007250989321619272,
0.03323256969451904,
0.036160074174404144,
-0.00003748320887098089,
0.0362323559820652,
0.00368874310515821,
-0.0625256672501564,
0.006613986566662788,
-0.029726797714829445,
-0.036828700453042984,
0.02634751982986927,
0.008764435537159443,
0.04730987921357155,
0.03545530512928963,
-0.029238879680633545,
0.06346535682678223,
-0.0016422022599726915,
0.0425029955804348,
0.018848054111003876,
-0.034190334379673004,
0.012008179910480976,
-0.006654646247625351,
0.00833073165267706,
0.006157693453133106,
0.06997091323137283,
0.012234067544341087,
0.079801544547081,
0.008972251787781715,
-0.013399647548794746,
-0.012179854325950146,
0.03149775415658951,
-0.022787531837821007,
-0.0035961291287094355,
-0.004226355347782373,
-0.008606314659118652,
-0.05583939328789711,
-0.007350379601120949,
-0.04514136165380478,
-0.03659377619624138,
-0.05735735595226288,
0.06516402959823608,
0.0649833232164383,
0.024016359820961952,
-0.014944718219339848,
0.042575277388095856,
0.03341327980160713,
-0.003128542099148035,
-0.033991552889347076,
-0.041093457490205765,
-0.019715461879968643,
-0.04843028262257576,
-0.025642750784754753,
0.06859751790761948,
-0.06469418108463287,
0.033214498311281204,
0.004183436743915081,
0.08341573923826218,
-0.047201454639434814,
-0.006979924160987139,
-0.015026037581264973,
0.023817580193281174,
-0.007147080730646849,
-0.05612852796912193,
-0.02681736648082733,
-0.020619012415409088,
-0.01442065928131342,
-0.023600727319717407,
-0.08478913456201553,
-0.053598590195178986,
0.021034644916653633,
0.009577631019055843,
0.03294343501329422,
0.033991552889347076,
0.04814114794135094,
-0.0031985670793801546,
0.06541702151298523,
0.009920979849994183,
-0.01960703544318676,
0.01826074719429016,
0.002396666444838047,
0.04239456728100777,
0.03375662863254547,
0.01366167701780796,
0.024323567748069763,
0.0451052188873291,
0.03587093576788902,
-0.018576988950371742,
-0.023618798702955246,
-0.02884131856262684,
-0.04300898313522339,
0.004580998793244362,
-0.04203314706683159,
-0.017230698838829994,
0.03809367120265961,
0.015297102741897106,
-0.013788173906505108,
0.003236968070268631,
-0.024016359820961952,
0.01475497242063284,
0.0027513098903000355,
0.07260928303003311,
-0.00006526031211251393,
0.04622562229633331,
-0.07481394708156586,
-0.024468135088682175,
-0.0065733264200389385,
0.0579717718064785,
0.04264756292104721,
0.0035690227523446083,
-0.035328805446624756,
0.011565440334379673,
-0.026763152331113815,
0.028082335367798805,
0.0008041595574468374,
0.08710222691297531,
0.02616680972278118,
-0.03686484321951866,
0.03180496022105217,
-0.036973267793655396,
-0.06263408809900284,
0.023781437426805496,
0.014357410371303558,
0.022624893113970757,
0.01893840916454792,
0.02141413651406765,
-0.04080431908369064,
-0.03997305408120155,
0.04597262665629387,
0.008994841016829014,
0.06332078576087952,
0.02143220789730549,
-0.021522562950849533,
-0.06223652884364128,
0.06570616364479065,
0.01061671320348978,
-0.008186163380742073,
0.009532453492283821,
-0.01119498535990715,
0.07611505687236786,
-0.007449770346283913,
-0.004072751849889755,
-0.017185522243380547,
0.017555978149175644,
-0.008705704472959042,
0.001214145333506167,
-0.0464063324034214,
0.008909003809094429,
0.043081264942884445,
-0.003704555332660675,
-0.033539779484272,
0.049984388053417206,
-0.017926432192325592,
-0.04691231995820999,
0.013218937441706657,
0.013643605634570122,
-0.04047904163599014,
0.03834666311740875,
0.02078165113925934,
0.018378207460045815,
-0.015342280268669128,
0.004136000294238329,
-0.07633190602064133,
-0.010517322458326817,
0.06191125139594078,
-0.009207175113260746,
-0.0006019902066327631,
-0.04514136165380478,
0.00021191072301007807,
-0.04253913834691048,
0.023926004767417908,
-0.019191402941942215,
0.0666097104549408,
0.021468348801136017,
0.0359070785343647,
0.009342707693576813,
-0.02226347289979458,
-0.0019155261106789112,
0.02764863148331642,
0.028028123080730438,
0.028913602232933044,
-0.0017743464559316635,
-0.057068221271038055,
0.02602224238216877,
0.01778186485171318,
0.0151434987783432,
0.012035286985337734,
-0.05320102721452713,
-0.08486142009496689,
0.05287574976682663,
0.05320102721452713,
-0.06176668033003807,
-0.038599658757448196,
0.05612852796912193,
-0.02965451218187809,
-0.05627309903502464,
-0.011565440334379673,
-0.00007602526602568105,
-0.027720915153622627,
0.002236286411061883,
-0.03458789736032486,
-0.005218001548200846,
0.015938622877001762,
0.07094675302505493,
-0.046044912189245224,
0.03229288011789322,
-0.005990536883473396,
0.01762826181948185,
0.007951240055263042,
-0.006826320663094521,
-0.06176668033003807,
0.016263900324702263,
0.01498989574611187,
-0.010065547190606594,
0.027106501162052155,
0.020474445074796677,
-0.0651278868317604,
0.007418145891278982,
0.011231127195060253,
0.0079196160659194,
0.015522990375757217,
-0.00006900157313793898,
0.06588687002658844,
-0.02847989834845066,
-0.06292322278022766,
-0.0038062045350670815,
-0.026943862438201904,
-0.005385158117860556,
0.022335756570100784,
0.03820209577679634,
0.0438041053712368,
0.007494947873055935,
0.009767375886440277,
-0.020221449434757233,
-0.046514756977558136,
0.07466937601566315,
-0.06248952075839043,
0.03507581353187561,
0.023148952051997185,
-0.01532420888543129,
-0.06028486043214798,
0.02782934159040451,
0.04181629791855812,
-0.008800577372312546,
-0.048502568155527115,
0.05233361944556236,
0.06841681152582169,
0.006979924160987139,
0.01946246810257435,
0.037623822689056396,
0.03503967076539993,
-0.01227924507111311,
-0.03456982597708702,
-0.002500574802979827,
0.022697176784276962,
0.005778202787041664,
-0.02123342640697956,
0.03478667885065079,
0.006284190807491541,
-0.021504491567611694,
0.009148444049060345,
0.00004824816278414801,
0.02866060845553875,
0.02620295248925686,
0.017429480329155922,
-0.035491447895765305,
-0.011294376105070114,
-0.007282613310962915,
-0.018170392140746117,
-0.004689424764364958,
-0.02831725962460041,
-0.016878314316272736,
0.01681506633758545,
-0.09288494288921356,
-0.037334688007831573,
0.014230913482606411,
0.026419803500175476,
0.020131094381213188,
0.013372540473937988,
-0.030558062717318535,
-0.018811911344528198,
-0.023185094818472862,
-0.04709303006529808,
0.0110323466360569,
-0.0001687097392277792,
0.027720915153622627,
-0.002477986039593816,
0.00012452049122657627,
0.01112270075827837,
0.04763516038656235,
0.006848909426480532,
-0.019299829378724098,
-0.10495637357234955,
0.00035323158954270184,
0.005290285684168339,
0.045394353568553925,
0.03498545661568642,
-0.008651492185890675,
0.001499893143773079,
-0.03737083077430725,
-0.012911730445921421,
0.023438088595867157,
0.0008973381482064724,
0.012423813343048096,
-0.025082549080252647,
-0.02240804210305214,
-0.03294343501329422,
0.015441670082509518,
0.05761035159230232,
-0.04008147865533829,
0.009012911468744278,
0.014962788671255112,
-0.08030752837657928,
-0.025100620463490486,
-0.009920979849994183,
-0.040442898869514465,
0.01646268181502819,
-0.07886184751987457,
0.06621214747428894,
-0.043225836008787155,
-0.0031624252442270517,
0.027919696643948555,
0.021522562950849533,
-0.0428282730281353,
-0.02188398316502571,
0.033340997993946075,
0.04384024813771248,
-0.009523417800664902,
-0.001630907878279686,
0.020131094381213188,
0.05012895539402962,
-0.008077737875282764,
-0.03093755431473255,
-0.00930656585842371,
0.007702764123678207,
0.02192012406885624,
-0.024811483919620514,
-0.06115226820111275,
-0.0006720153614878654,
-0.0162819717079401,
-0.01845049299299717,
-0.06223652884364128,
-0.0102191511541605,
0.0013203124981373549,
-0.04261142015457153,
-0.004470313899219036,
-0.05753806605935097,
0.006103480700403452,
0.006415205541998148,
-0.06852523982524872,
0.09317408502101898,
0.017077095806598663,
0.01549588330090046,
0.012622593902051449,
-0.011673866771161556,
-0.044057101011276245,
0.053960010409355164,
0.008290071971714497,
-0.018522776663303375,
0.007237435784190893,
0.035798653960227966,
-0.06603144109249115,
0.07459709048271179,
-0.008800577372312546,
0.001971998019143939,
0.018558917567133904,
-0.0031466130167245865,
0.014276091009378433,
0.00605830317363143,
0.01366167701780796,
-0.02323930710554123,
-0.024956053122878075,
0.04749058932065964,
0.060682423412799835,
-0.0638267770409584,
0.011113665997982025,
-0.04246685281395912,
-0.03093755431473255,
0.04980367794632912,
-0.009568595327436924,
0.008547583594918251,
0.010101689957082272,
-0.034172262996435165,
-0.02222733199596405,
-0.05782720446586609,
-0.002150449203327298,
0.004477090667933226,
0.020203379914164543,
0.03541916236281395,
0.04156330227851868,
0.010155902244150639,
0.026492087170481682,
0.0003026892663910985,
-0.03711783513426781,
-0.0018353360937908292,
0.025769246742129326,
-0.010273364372551441,
-0.012143712490797043,
-0.0063338857144117355,
-0.02204662188887596,
0.014483907260000706,
-0.0034651143942028284,
-0.04452694579958916,
0.08283746987581253,
0.04727374017238617,
-0.021811697632074356,
0.014899540692567825,
-0.006062821019440889,
0.013851421885192394,
0.06440504640340805,
0.00027770045562647283,
0.02220926061272621,
-0.06241723895072937,
-0.011176913976669312,
0.007074797060340643,
-0.07575363665819168,
0.03131704404950142,
0.03576251119375229,
-0.04759901762008667,
-0.05981501191854477,
-0.07094675302505493,
0.01342675369232893,
-0.03820209577679634,
0.09382463991641998,
0.048683278262615204,
0.021323781460523605,
0.0365576334297657,
0.021450277417898178,
0.0031466130167245865,
0.044743798673152924,
-0.013652641326189041,
0.04550278186798096,
-0.07101903110742569,
0.02358265593647957,
0.019516680389642715,
-0.019390184432268143,
-0.01745658740401268,
-0.014854363165795803,
0.056417666375637054,
-0.013390611857175827,
0.005434853490442038,
0.06473032385110855,
-0.04459923133254051,
-0.016390398144721985,
-0.009902908466756344,
-0.016869278624653816,
-0.06346535682678223,
0.013679747469723225,
0.002096236217767,
-0.006437794305384159,
-0.00018776899378281087,
-0.034009624272584915,
-0.10365526378154755,
0.027287211269140244,
0.07958468794822693,
0.056056246161460876,
-0.006501042749732733,
0.03849123418331146,
-0.010517322458326817,
-0.02681736648082733,
0.02553432434797287,
0.003980137873440981,
0.010481180623173714,
0.029365377500653267,
0.002055576303973794,
0.034967388957738876,
0.004960489924997091,
0.02945573255419731,
-0.0223899707198143,
0.010264328680932522,
0.04561120644211769,
-0.05038195103406906,
0.02551625296473503,
-0.011845541186630726,
0.0030652936547994614,
-0.02571503445506096,
-0.03099176660180092,
0.049839820712804794,
-0.03540109097957611,
0.009225246496498585,
-0.023907935246825218,
-0.02123342640697956,
-0.045900341123342514,
0.04409324377775192,
0.060212574899196625,
-0.03820209577679634,
-0.004788815509527922,
-0.028859388083219528,
-0.025805389508605003,
0.012586452066898346,
-0.10951026529073715,
0.016995776444673538,
-0.036485351622104645,
0.01796257495880127,
0.018884196877479553,
-0.07466937601566315,
0.012478026561439037,
0.00808677263557911,
0.01615547575056553,
-0.026636656373739243,
-0.035798653960227966,
0.05450214073061943,
-0.03997305408120155,
-0.002947831992059946,
-0.00029224198078736663,
0.00622094189748168,
-0.00790606252849102,
-0.032039884477853775,
-0.015947658568620682,
-0.025805389508605003,
0.028769033029675484,
-0.01911911927163601,
0.008791541680693626,
0.03885265067219734,
-0.026257164776325226,
-0.04712916910648346,
0.041093457490205765,
0.024612704291939735,
-0.0425029955804348,
0.024269353598356247,
-0.008416568860411644,
0.00039953854866325855,
0.0271968562155962
]
|
30,042 | pawl.linkedin | _set_linkedin_user_id | null | def _set_linkedin_user_id(self):
if self._authorized_core._authorizer.access_token is None:
return self.current_user.basic_profile()["id"]
return None
| (self) | [
-0.07630696892738342,
0.007223878521472216,
-0.000532285775989294,
0.0995374396443367,
0.013915471732616425,
0.019846655428409576,
0.08988025784492493,
0.01171028707176447,
-0.015730945393443108,
0.005370383616536856,
-0.036366526037454605,
-0.023154431954026222,
-0.028439270332455635,
0.015369752421975136,
-0.013430710881948471,
0.026747360825538635,
0.025606747716665268,
0.05296243727207184,
0.043951597064733505,
-0.017023639753460884,
-0.026405178010463715,
-0.021538564935326576,
0.0038994685746729374,
-0.0032578741665929556,
-0.0286864023655653,
0.03307776153087616,
0.019865665584802628,
-0.015540843829512596,
-0.020131809636950493,
0.016719477251172066,
0.013012486509978771,
-0.00039564992766827345,
0.024732278659939766,
0.013601803220808506,
0.01836385950446129,
-0.0438375361263752,
-0.02617705427110195,
0.1011343002319336,
-0.07809393107891083,
-0.035339973866939545,
-0.043305251747369766,
0.042240679264068604,
0.0641404390335083,
0.003044009441509843,
-0.06528104841709137,
0.005850390996783972,
0.022717196494340897,
-0.028135105967521667,
0.005261074751615524,
-0.007152590434998274,
-0.00913915690034628,
0.0057458351366221905,
-0.028420258313417435,
-0.01797415129840374,
-0.04984476417303085,
-0.013791904784739017,
-0.01956150308251381,
-0.01928585395216942,
-0.04018757864832878,
0.02598695270717144,
-0.006805654149502516,
-0.013231104239821434,
0.005517712328583002,
-0.032488442957401276,
0.05106141418218613,
0.05075725167989731,
0.009761741384863853,
0.037887342274188995,
0.009742731228470802,
0.047335416078567505,
0.006254358217120171,
0.005565238185226917,
-0.02362968772649765,
-0.004058679100126028,
0.03184209764003754,
-0.03927508741617203,
-0.0438755564391613,
-0.007794184610247612,
-0.06094672158360481,
0.062315456569194794,
0.06041443720459938,
0.01643432304263115,
-0.0048024533316493034,
0.03034028969705105,
0.02176668681204319,
0.0012641787761822343,
0.04589064046740532,
-0.047487497329711914,
-0.04619480296969414,
-0.04459794610738754,
0.01833534426987171,
-0.0010812055552378297,
0.03560611605644226,
-0.0042464048601686954,
0.0160065945237875,
-0.015350742265582085,
0.01215702760964632,
0.02058805339038372,
0.04611876234412193,
0.007532794494181871,
-0.041784435510635376,
-0.04467398673295975,
-0.017156710848212242,
0.009505103342235088,
0.00039416475920006633,
0.03324885293841362,
0.049008313566446304,
-0.014305180869996548,
0.015407772734761238,
0.011491670273244381,
-0.07847413420677185,
-0.056270211935043335,
-0.027906984090805054,
0.04623282328248024,
0.008179141208529472,
-0.0014126959722489119,
0.02971295267343521,
0.025587737560272217,
0.024542177096009254,
0.01703314483165741,
-0.05166974291205406,
0.003143812995404005,
-0.03644256666302681,
-0.012518221512436867,
0.005935937166213989,
-0.04148027300834656,
-0.048704151064157486,
0.00619732728227973,
0.02429504506289959,
-0.07862621545791626,
0.05026298761367798,
-0.020359931513667107,
-0.011320577934384346,
-0.04300108924508095,
-0.026557259261608124,
-0.012546736747026443,
-0.006140296813100576,
0.06144098937511444,
-0.016510365530848503,
0.04691718891263008,
-0.04182245582342148,
-0.008649644441902637,
-0.01628224179148674,
0.004859484266489744,
-0.03965529054403305,
0.027298657223582268,
0.012442179955542088,
0.02127242088317871,
0.025891901925206184,
-0.03830556571483612,
0.06969141960144043,
-0.023914840072393417,
0.02393385022878647,
0.054597314447164536,
-0.08691466599702835,
-0.0017002254026010633,
-0.009837782010436058,
-0.03558710590004921,
0.02851531095802784,
-0.04102402552962303,
0.030435340479016304,
-0.026690330356359482,
-0.03404727950692177,
-0.009386289864778519,
-0.018582476302981377,
-0.026861421763896942,
0.08379699289798737,
0.016339272260665894,
0.055395741015672684,
-0.016548385843634605,
0.04828592389822006,
-0.032146260142326355,
-0.0311957485973835,
0.028382238000631332,
-0.03528294339776039,
0.011947914958000183,
0.01626323163509369,
-0.01290793064981699,
-0.016225211322307587,
0.0658513531088829,
0.015711935237050056,
0.04839998483657837,
0.018477920442819595,
-0.0013319025747478008,
0.012451685033738613,
0.011567710898816586,
0.04167037457227707,
-0.016168180853128433,
0.026215074583888054,
0.04197453707456589,
-0.003600057912990451,
-0.027374697849154472,
-0.044445864856243134,
-0.00691496254876256,
-0.012841395102441311,
0.02883848361670971,
0.00912489928305149,
-0.006083266343921423,
-0.03841962665319443,
-0.07467209547758102,
0.01829732395708561,
0.011605731211602688,
-0.03404727950692177,
-0.02545466646552086,
0.011624741367995739,
0.010759777389466763,
-0.007585072424262762,
0.058133210986852646,
0.007789432071149349,
0.029275719076395035,
-0.03378113731741905,
-0.0674862340092659,
-0.003966004587709904,
0.06539510935544968,
-0.005370383616536856,
-0.008008049800992012,
-0.0741778239607811,
-0.017489390447735786,
0.03437045216560364,
0.026024973019957542,
0.04186047613620758,
-0.03497878089547157,
0.03427540138363838,
-0.055775947868824005,
0.029104625806212425,
-0.0020043887197971344,
0.04003549739718437,
-0.0421646386384964,
-0.004697897471487522,
0.016614921391010284,
0.054255131632089615,
-0.019637543708086014,
-0.05516761913895607,
-0.00008985293243313208,
-0.08151576668024063,
-0.05596604943275452,
0.014742415398359299,
-0.020816177129745483,
-0.07478615641593933,
0.0421266183257103,
-0.029332749545574188,
0.03513086214661598,
0.07360751926898956,
0.02461821772158146,
-0.021842727437615395,
0.04254484176635742,
-0.06900705397129059,
0.03224131092429161,
-0.05615615099668503,
-0.05083329230546951,
0.0012594262370839715,
-0.03153793141245842,
-0.01737532950937748,
0.024694258347153664,
0.0021659755147993565,
-0.0037830311339348555,
0.0029917312785983086,
0.005213549360632896,
-0.049540597945451736,
0.006216337438672781,
0.02157658524811268,
-0.021215390413999557,
-0.030796535313129425,
-0.017593946307897568,
-0.006686840206384659,
-0.03876181319355965,
-0.016206201165914536,
0.03575819730758667,
0.04079590365290642,
-0.019076742231845856,
0.15443892776966095,
0.02431405521929264,
-0.014685384929180145,
-0.024732278659939766,
0.027964014559984207,
-0.026024973019957542,
-0.03245042264461517,
0.05889362096786499,
-0.011101961135864258,
0.011063940823078156,
0.01500855851918459,
0.002034092089161277,
-0.020702114328742027,
0.021538564935326576,
-0.03404727950692177,
-0.001041402923874557,
0.01992269605398178,
-0.04011153802275658,
-0.04254484176635742,
-0.04003549739718437,
-0.01619669608771801,
0.01913377270102501,
-0.04687916859984398,
0.0003127773234155029,
-0.03328687325119972,
0.008131615817546844,
-0.026024973019957542,
0.02564476989209652,
0.014286170713603497,
0.04763957858085632,
-0.034522537142038345,
0.009357774630188942,
-0.01752741076052189,
-0.05805717036128044,
0.02414296194911003,
-0.03847665712237358,
0.0031533180736005306,
-0.037393078207969666,
-0.01230910886079073,
0.020454982295632362,
-0.030112167820334435,
0.017147205770015717,
-0.013307144865393639,
0.02651923894882202,
0.0002994107489939779,
-0.024580197408795357,
0.030131177976727486,
0.00222300598397851,
0.027393708005547523,
0.05798112973570824,
-0.03309677168726921,
-0.05976809188723564,
0.05349472165107727,
-0.006501490715891123,
0.08159180730581284,
0.02971295267343521,
-0.035891272127628326,
0.04836196452379227,
-0.08904381096363068,
0.06125088781118393,
-0.050871312618255615,
0.003668969962745905,
-0.03389519825577736,
-0.015331732109189034,
-0.006558521185070276,
-0.0219567883759737,
0.024561187252402306,
0.0354350246489048,
0.015141629613935947,
-0.00838825386017561,
-0.06311388313770294,
-0.07121223211288452,
-0.011444144882261753,
0.02579685114324093,
-0.019095752388238907,
0.008663902059197426,
0.036347515881061554,
0.006040493026375771,
0.014295675791800022,
-0.06007225438952446,
-0.044103678315877914,
0.030967626720666885,
-0.0001961912785191089,
-0.02564476989209652,
0.0010473435977473855,
-0.017517905682325363,
-0.03735505789518356,
0.03277359530329704,
0.01664343662559986,
0.04927445575594902,
0.00924371276050806,
-0.0691971555352211,
0.06269565969705582,
0.0189816914498806,
-0.007276156451553106,
0.06600344181060791,
-0.05554782599210739,
0.006677335128188133,
0.07106015086174011,
-0.01746087521314621,
-0.033514995127916336,
-0.02798302471637726,
-0.03051138110458851,
0.01425765547901392,
0.012518221512436867,
0.045662518590688705,
-0.04155631363391876,
0.027811933308839798,
-0.06003423407673836,
-0.04349535331130028,
-0.05075725167989731,
0.015930553898215294,
0.037012871354818344,
0.05790508911013603,
-0.051023393869400024,
-0.0020685482304543257,
-0.06664978712797165,
-0.03343895450234413,
0.008668654598295689,
-0.0008120922720991075,
-0.009395794942975044,
-0.0006314953207038343,
0.03408529981970787,
0.020816177129745483,
-0.025093473494052887,
0.013535267673432827,
-0.015208165161311626,
-0.022413033992052078,
0.013421205803751945,
-0.0013758636778220534,
0.033514995127916336,
0.02851531095802784,
0.04322921112179756,
0.026082003489136696,
-0.0023014231119304895,
0.03649959713220596,
0.00987580232322216,
0.03931310772895813,
-0.02598695270717144,
-0.0012178414035588503,
-0.06220139563083649,
-0.02313542179763317,
0.040567781776189804,
-0.02482732944190502,
0.032982707023620605,
-0.00662030465900898,
-0.010826312936842442,
0.035358984023332596,
0.023040371015667915,
0.03807744383811951,
0.03444649651646614,
0.03191813826560974,
-0.032317351549863815,
0.05433117225766182,
-0.04824790358543396,
0.01840187981724739,
0.022394023835659027,
0.01230910886079073,
0.021994808688759804,
-0.00910588912665844,
-0.014191119000315666,
-0.014970538206398487,
0.09649580717086792,
0.004655124619603157,
0.00817438866943121,
0.021899757906794548,
0.011605731211602688,
0.058285295963287354,
-0.03412332013249397,
0.0006689216825179756,
0.1180153638124466,
0.0037426345515996218,
-0.019656553864479065,
-0.03305875137448311,
0.004928396083414555,
0.020188840106129646,
-0.04246880114078522,
0.08007099479436874,
-0.007570814806967974,
0.0017738898750394583,
-0.014286170713603497,
0.04414169862866402,
-0.0037260004319250584,
-0.04923643544316292,
-0.00996134802699089,
0.017727017402648926,
-0.07915849983692169,
0.025910912081599236,
0.021310441195964813,
0.02497941255569458,
-0.02547367662191391,
0.00790349394083023,
-0.015084599144756794,
0.0346556082367897,
0.04908435419201851,
0.005798113066703081,
0.06292378157377243,
-0.015236680395901203,
-0.0523541085422039,
0.0017929001478478312,
0.008782715536653996,
-0.015825998038053513,
0.008426274172961712,
0.005332362838089466,
-0.01867752894759178,
-0.000015195169908110984,
-0.022641155868768692,
0.03070148453116417,
-0.03191813826560974,
0.033476974815130234,
-0.02378176897764206,
0.06725811213254929,
0.043305251747369766,
0.019960716366767883,
0.023477604612708092,
0.017688997089862823,
-0.03193714842200279,
0.0092769805341959,
0.014980043284595013,
0.00152794539462775,
0.018411384895443916,
0.009562133811414242,
-0.08189596980810165,
-0.012090491130948067,
-0.048171862959861755,
-0.03495977073907852,
0.06737217307090759,
-0.02988404594361782,
0.03849566727876663,
0.021196380257606506,
-0.02412395179271698,
-0.04338129237294197,
0.020378941670060158,
-0.02549268677830696,
0.08356887102127075,
-0.006363666616380215,
-0.09071670472621918,
0.0058123706839978695,
-0.04402763769030571,
0.03085356578230858,
0.031005647033452988,
0.03919904679059982,
0.029731962829828262,
-0.047335416078567505,
0.0009083314216695726,
0.03708891198039055,
0.049008313566446304,
0.04440784454345703,
-0.02381978929042816,
-0.02159559540450573,
-0.022222932428121567,
-0.028895514085888863,
-0.02583487145602703,
0.002101816004142165,
0.02258412539958954,
0.02819213643670082,
-0.03438946604728699,
0.03330588340759277,
-0.037868332117795944,
-0.01224257331341505,
-0.034503526985645294,
-0.008749447762966156,
-0.043609414249658585,
0.01816425286233425,
-0.0003199061320628971,
-0.004543439485132694,
-0.03391420841217041,
-0.046803127974271774,
0.048704151064157486,
0.0072286310605704784,
0.001068730023689568,
-0.03680375963449478,
-0.017489390447735786,
0.07022370398044586,
0.010313036851584911,
-0.023002350702881813,
-0.09892911463975906,
0.07900641858577728,
0.04163235425949097,
-0.020550033077597618,
0.05182182416319847,
-0.0004312940582167357,
0.0692351758480072,
-0.0026020221412181854,
-0.03378113731741905,
0.00859261304140091,
-0.029104625806212425,
0.006145049352198839,
0.004296306520700455,
0.027051525190472603,
0.01551232859492302,
-0.02178569696843624,
0.027621829882264137,
-0.020721126347780228,
0.0438375361263752,
-0.08311262726783752,
-0.06710603088140488,
-0.04946455731987953,
0.009291238151490688,
0.003761644707992673,
0.004384228959679604,
-0.006040493026375771,
-0.03864775225520134,
0.009044106118381023,
-0.06965339928865433,
-0.013915471732616425,
-0.03132881969213486,
0.042240679264068604,
0.04018757864832878,
0.06026235595345497,
-0.006786643993109465,
0.008492809720337391,
0.0895000547170639,
-0.022755216807127,
-0.020493002608418465,
-0.046803127974271774,
-0.08067931979894638,
0.012537231668829918,
0.025340605527162552,
0.010902353562414646,
-0.08569801598787308,
-0.013620813377201557,
-0.06261961907148361,
-0.018858125433325768,
0.028895514085888863,
0.019162287935614586,
0.058817580342292786,
-0.12196948379278183,
-0.011567710898816586,
-0.03104366734623909,
0.02277422696352005,
0.024199992418289185,
-0.04684114828705788,
0.0640643984079361,
-0.029731962829828262,
-0.02849630080163479,
-0.05353274196386337,
-0.044826067984104156,
-0.03731703758239746,
-0.045130230486392975,
0.008725685067474842,
0.02513149380683899,
0.017175721004605293,
0.020683104172348976,
-0.019523482769727707,
-0.0033267862163484097,
0.03089158609509468,
0.01230910886079073,
0.006800901610404253,
0.01559787429869175,
-0.005698309279978275,
-0.012423169799149036,
-0.034541547298431396,
-0.022850269451737404,
-0.021006278693675995,
-0.06459668278694153,
0.056118130683898926,
-0.006016730330884457,
0.017270773649215698,
0.04509221017360687,
-0.049882784485816956,
-0.032830625772476196,
-0.017793552950024605,
-0.05049110949039459,
0.059616006910800934,
0.04908435419201851,
0.02093023806810379,
0.01585451327264309,
-0.003198467195034027,
0.047677598893642426,
-0.028268177062273026,
-0.011444144882261753,
-0.00467651104554534,
-0.012527726590633392,
0.0329066663980484,
0.04619480296969414,
-0.02427603490650654,
0.058969661593437195,
-0.017061660066246986,
0.03188011795282364,
-0.06984350085258484,
-0.0009457577834837139,
0.07528042048215866,
0.014105573296546936,
-0.030169198289513588,
-0.010664725676178932,
-0.016652941703796387,
0.06436856091022491,
-0.022413033992052078,
-0.02613903395831585,
0.006178317125886679,
-0.016662446781992912,
0.01047462411224842,
-0.014666374772787094,
0.012071480974555016,
-0.03627147525548935,
-0.01816425286233425,
0.022032829001545906,
0.00898707564920187,
0.02480831928551197,
-0.04779165983200073,
-0.006401686929166317,
0.020188840106129646,
-0.006501490715891123,
0.024238014593720436,
-0.09543123841285706,
-0.010655220597982407,
-0.025264564901590347,
0.0028253919444978237,
-0.007076549343764782,
-0.014067552983760834,
-0.026937462389469147,
0.04847602918744087,
-0.021044299006462097,
-0.01990368589758873,
-0.010968889109790325,
0.03781130164861679,
-0.038723792880773544,
0.020169829949736595,
0.01502756867557764,
-0.037183962762355804,
-0.03946518898010254,
0.0015885403845459223,
0.008725685067474842,
-0.013050506822764874,
-0.04520627111196518,
-0.029047595337033272,
0.04132818803191185,
0.003533522132784128,
0.037545159459114075,
0.013725369237363338,
0.004476903937757015,
-0.011244537308812141,
-0.014827961102128029,
-0.037868332117795944,
-0.013915471732616425,
0.02142450399696827,
0.002086370252072811,
0.038191504776477814,
-0.033819157630205154,
-0.056270211935043335,
-0.041252147406339645,
0.039237067103385925,
-0.0024665743112564087,
0.05197390541434288,
-0.000127799081383273,
-0.07740956544876099,
0.06672582775354385,
-0.002697073156014085,
0.022983340546488762,
0.002549743978306651,
-0.023230472579598427,
-0.021500544622540474,
0.03020721860229969,
0.019418926909565926,
-0.0006350597250275314,
0.029655922204256058,
-0.030112167820334435,
0.01881060004234314,
0.017765037715435028,
0.02142450399696827,
-0.006306636147201061,
0.010027884505689144,
0.05030100792646408,
-0.03832457587122917,
0.0422026589512825,
-0.022489074617624283,
-0.044445864856243134,
-0.02060706354677677,
-0.03408529981970787,
-0.01959952339529991,
0.011966925114393234,
-0.03672771900892258,
0.0743299052119255,
0.008635386824607849,
0.015170144848525524,
0.018782084807753563,
-0.0522780679166317,
0.04862811043858528,
0.06600344181060791,
0.044293783605098724,
-0.0023477606009691954,
-0.032488442957401276,
-0.03545403480529785,
-0.0036404544953256845,
0.021025288850069046,
-0.03034028969705105,
0.059121742844581604,
0.020454982295632362,
0.034313421696424484,
0.046651046723127365,
0.006919715087860823,
-0.03984539210796356,
-0.017517905682325363,
0.0539509654045105,
0.021861737594008446,
-0.017603451386094093,
0.013031496666371822
]
|
30,043 | pawl.linkedin | get | Return parsed objects returned from a GET request to ``path``.
:param path: The path to fetch.
:param params: The query parameters to add to the request (default: None).
| def get(
self,
path: str,
params: Optional[Union[str, Dict[str, Union[str, int]]]] = None,
):
"""Return parsed objects returned from a GET request to ``path``.
:param path: The path to fetch.
:param params: The query parameters to add to the request (default: None).
"""
return self._service_request(method="GET", params=params, path=path)
| (self, path: str, params: Union[str, Dict[str, Union[str, int]], NoneType] = None) | [
0.022800767794251442,
0.00016269576735794544,
-0.03622136265039444,
-0.018279772251844406,
-0.00795179046690464,
-0.0001924537937156856,
0.0023005460388958454,
-0.03940741717815399,
0.004062666092067957,
0.001861128374002874,
0.054323144257068634,
0.022195596247911453,
0.007181975059211254,
-0.0031081843189895153,
0.019027339294552803,
0.01771019957959652,
-0.029172880575060844,
0.005851485300809145,
0.017033830285072327,
-0.044391192495822906,
0.013171404600143433,
-0.012655227445065975,
0.05838136002421379,
0.04820021986961365,
0.0035776381846517324,
-0.043714821338653564,
0.0553910955786705,
-0.03816147521138191,
0.029350873082876205,
0.008539163507521152,
0.060944441705942154,
0.005050521343946457,
-0.08116433024406433,
0.0028322970028966665,
-0.043572429567575455,
0.09191504120826721,
0.018938343971967697,
0.0102879349142313,
-0.014684336259961128,
0.031255386769771576,
-0.025346053764224052,
0.010092143900692463,
0.06364992260932922,
-0.031575772911310196,
0.021394632756710052,
-0.025559643283486366,
-0.007573557551950216,
0.013945668935775757,
-0.009976448491215706,
0.014906825497746468,
0.039621006697416306,
-0.013144705444574356,
-0.045957520604133606,
-0.06518065184354782,
-0.037093523889780045,
-0.017042730003595352,
0.012005557306110859,
0.06183440238237381,
0.0020424576941877604,
0.03563398867845535,
0.012308143079280853,
-0.022836366668343544,
0.05866614729166031,
0.023210149258375168,
-0.03463723510503769,
-0.020344479009509087,
0.01793268881738186,
-0.012655227445065975,
0.008419019170105457,
-0.006906087510287762,
0.03216314688324928,
0.03353368490934372,
-0.047986630350351334,
-0.005611196160316467,
0.013055709190666676,
0.009046440944075584,
-0.04442679136991501,
-0.013491789810359478,
0.021252239122986794,
0.013224801979959011,
-0.00283007207326591,
0.00036043371073901653,
-0.06518065184354782,
-0.024260303005576134,
-0.022195596247911453,
-0.018867146223783493,
-0.010172239504754543,
-0.08500895649194717,
-0.008441268466413021,
0.07482781261205673,
-0.029475467279553413,
0.03965660557150841,
-0.06350752711296082,
0.011818665079772472,
0.02278297021985054,
-0.03310650214552879,
-0.00014739957987330854,
0.0035153410863131285,
-0.007204224355518818,
0.023512735962867737,
0.043892815709114075,
-0.02849651128053665,
-0.06233277916908264,
0.04631350561976433,
0.013616384007036686,
-0.006345413159579039,
0.005179565865546465,
-0.015859082341194153,
0.06215478852391243,
0.016971532255411148,
-0.011836464516818523,
0.05507070943713188,
-0.013990167528390884,
0.023672929033637047,
0.003553164191544056,
0.026912381872534752,
0.012486135587096214,
0.008952994830906391,
-0.06785053014755249,
-0.025203660130500793,
-0.05841695889830589,
0.017300818115472794,
0.01494242437183857,
-0.008481316268444061,
0.04122293367981911,
0.021572623401880264,
-0.04852060601115227,
-0.03574078157544136,
0.005855935160070658,
-0.011338086798787117,
0.04328764230012894,
0.00949587021023035,
-0.0003932509571313858,
0.0034107707906514406,
0.013189203105866909,
0.005019372794777155,
-0.037413906306028366,
0.031397778540849686,
0.03385406732559204,
0.04645589739084244,
-0.0043140798807144165,
-0.027713347226381302,
0.005864834878593683,
-0.047345858067274094,
-0.04638470336794853,
-0.011622874066233635,
0.10586961358785629,
-0.05980529636144638,
-0.004400850739330053,
0.07062720507383347,
0.02278297021985054,
-0.003328449558466673,
0.07137477397918701,
-0.005713541526347399,
0.010092143900692463,
-0.054145149886608124,
-0.006251967046409845,
-0.013393893837928772,
-0.01652655191719532,
0.015974776819348335,
0.005539999343454838,
-0.026147017255425453,
0.010991002433001995,
-0.08799921721220016,
0.019525716081261635,
0.016134969890117645,
-0.03419225290417671,
0.003657734487205744,
-0.0002526651369407773,
-0.012913315556943417,
-0.04122293367981911,
0.03666634112596512,
-0.07838765531778336,
-0.0664265975356102,
0.06767253577709198,
-0.055569086223840714,
-0.001813292969018221,
0.04068895801901817,
0.0012225821847096086,
-0.03127318620681763,
0.02783794142305851,
-0.07411585003137589,
-0.037556301802396774,
0.030472220852971077,
0.034085460007190704,
0.04036857560276985,
-0.0019367749337106943,
-0.029528863728046417,
-0.0411161407828331,
0.06607060879468918,
0.0030570116359740496,
0.012308143079280853,
0.00846351683139801,
0.029066085815429688,
-0.02103864774107933,
-0.016179468482732773,
0.036595143377780914,
0.02005969174206257,
-0.03545599803328514,
0.07860124111175537,
0.02055807039141655,
0.021448029205203056,
0.013625283725559711,
-0.0027944736648350954,
-0.011872063390910625,
-0.029475467279553413,
0.025417249649763107,
-0.03148677572607994,
-0.022426985204219818,
0.014639837667346,
-0.02118104137480259,
0.026841185986995697,
0.002992489608004689,
-0.031878359615802765,
0.002549734665080905,
0.035491593182086945,
-0.008058585226535797,
-0.016152769327163696,
-0.01161397434771061,
-0.04695427790284157,
0.039015837013721466,
-0.02116324193775654,
0.016740143299102783,
0.0569574236869812,
-0.030436623841524124,
-0.002147027989849448,
0.006514505483210087,
0.005001573823392391,
-0.09348136931657791,
-0.06852690130472183,
0.052294034510850906,
-0.04143652692437172,
0.07710611075162888,
-0.029938245192170143,
0.003344023833051324,
-0.006082874722778797,
0.0006530079408548772,
0.03412105515599251,
0.013411693274974823,
-0.047844234853982925,
0.048164620995521545,
-0.03431684896349907,
-0.05393156036734581,
0.018760351464152336,
-0.036595143377780914,
0.005246312823146582,
-0.006220818497240543,
-0.0055755977518856525,
0.025524046272039413,
-0.022871965542435646,
0.0347796268761158,
0.04019058123230934,
0.03862425312399864,
0.007168625947088003,
-0.008472416549921036,
-0.04300285503268242,
-0.05076330527663231,
-0.046099916100502014,
0.019561314955353737,
-0.004836931359022856,
-0.03412105515599251,
0.03609676659107208,
-0.013073508627712727,
0.0647890716791153,
0.01945452019572258,
0.003065911354497075,
0.022960960865020752,
0.010554922744631767,
-0.05297040566802025,
-0.021626021713018417,
-0.0537535697221756,
-0.0276777483522892,
0.0009277830249629915,
-0.019703708589076996,
0.01480003073811531,
-0.017496608197689056,
0.02849651128053665,
-0.0031994052696973085,
-0.02705477550625801,
0.028852494433522224,
-0.09988908469676971,
-0.017994986847043037,
0.02548844739794731,
-0.06137162446975708,
-0.0348508246243,
0.0114626819267869,
0.04179250821471214,
0.04538794606924057,
-0.049588557332754135,
0.004073790740221739,
0.07383105903863907,
-0.008285525254905224,
-0.05015813186764717,
-0.0067547946237027645,
0.05033612251281738,
-0.006029477342963219,
-0.07180195301771164,
-0.028033731505274773,
0.0633295327425003,
-0.026467403396964073,
0.012325942516326904,
-0.03762749955058098,
0.044355593621730804,
-0.03310650214552879,
0.031041795387864113,
0.003869100008159876,
-0.006038377061486244,
0.004007043782621622,
0.021448029205203056,
0.06069525331258774,
0.006941685918718576,
-0.040083788335323334,
-0.017843693494796753,
0.01763010211288929,
-0.0411517396569252,
-0.025346053764224052,
-0.044853970408439636,
0.03453043848276138,
0.009371276013553143,
0.0177902951836586,
-0.011329188011586666,
0.061300426721572876,
-0.019205331802368164,
0.005321959499269724,
0.00019871132099069655,
-0.009736159816384315,
-0.0023695179261267185,
0.07454302906990051,
0.010234537534415722,
0.024278102442622185,
0.03826826810836792,
0.026698792353272438,
0.0007970702135935426,
0.008254376240074635,
-0.009602665901184082,
-0.03207414969801903,
0.026663193479180336,
-0.05176005885004997,
-0.021786214783787727,
0.05944931134581566,
0.062261585146188736,
-0.06525184959173203,
0.006696946918964386,
0.008441268466413021,
-0.002266060095280409,
0.04122293367981911,
0.08208988606929779,
0.025577442720532417,
-0.004142762627452612,
-0.1278694123029709,
-0.005041622091084719,
-0.012228046543896198,
0.015547596849501133,
0.040083788335323334,
-0.003559838980436325,
-0.01959691382944584,
0.0585237517952919,
-0.017523307353258133,
-0.0038668750785291195,
-0.009620464406907558,
0.02468748390674591,
-0.011622874066233635,
-0.0585237517952919,
0.006741445045918226,
-0.04239768162369728,
-0.032038550823926926,
0.052294034510850906,
0.0008604798349551857,
0.01620616763830185,
-0.00361768645234406,
-0.040866952389478683,
-0.010501525364816189,
-0.018920544534921646,
0.012708624824881554,
0.023779723793268204,
0.027001379057765007,
0.02639620564877987,
-0.015245010145008564,
0.03269712254405022,
0.07504140585660934,
-0.019169732928276062,
-0.020647065714001656,
0.012139051221311092,
-0.02059366926550865,
0.04866299778223038,
-0.0007865019142627716,
0.0348508246243,
0.009745059534907341,
-0.005446553695946932,
-0.019561314955353737,
0.01742541231215,
-0.0411517396569252,
0.004371927119791508,
-0.06023247539997101,
-0.018475564196705818,
0.018003886565566063,
0.10081464052200317,
-0.002707702573388815,
-0.020166488364338875,
0.023761924356222153,
0.03372947499155998,
-0.013545187190175056,
0.0021681643556803465,
0.054963912814855576,
-0.028745699673891068,
-0.04976654797792435,
0.04029737785458565,
-0.04695427790284157,
-0.023192351683974266,
-0.005682392977178097,
-0.023121153935790062,
-0.03146897628903389,
-0.03433464840054512,
-0.0181907769292593,
0.03940741717815399,
0.0169893316924572,
0.027891337871551514,
0.06496705859899521,
0.025880029425024986,
-0.007084079552441835,
-0.02828291989862919,
-0.039300620555877686,
0.005152866709977388,
-0.01392787043005228,
0.025203660130500793,
-0.012076754122972488,
0.0006758131785318255,
0.02087845653295517,
0.05962730199098587,
0.020522471517324448,
0.04841380938887596,
-0.037912286818027496,
-0.07610935717821121,
-0.052721213549375534,
0.026520799845457077,
0.018884945660829544,
-0.013892271555960178,
-0.039585407823324203,
0.03812587633728981,
-0.049125779420137405,
-0.013002311810851097,
0.052721213549375534,
-0.020949652418494225,
-0.01608157344162464,
0.05517750605940819,
-0.0537535697221756,
0.003989244345575571,
0.0001133308105636388,
0.07034242153167725,
-0.07582457363605499,
-0.004147212486714125,
-0.03415665403008461,
0.05994768813252449,
-0.004939276725053787,
0.0077115013264119625,
-0.04556594043970108,
0.021127644926309586,
0.0029457667842507362,
-0.01580568589270115,
0.024954471737146378,
0.02926187589764595,
0.004859180189669132,
0.012779821641743183,
-0.05831016227602959,
-0.008405669592320919,
0.0017176222754642367,
-0.00862370990216732,
0.044711578637361526,
-0.004494296852499247,
-0.08038116246461868,
0.002418465679511428,
-0.0019256504019722342,
-0.08408339321613312,
-0.001614164444617927,
0.03194955363869667,
0.006154071539640427,
-0.011266889981925488,
-0.024901073426008224,
-0.020789459347724915,
-0.06290235370397568,
0.039905793964862823,
-0.05026492476463318,
0.004988224245607853,
0.010296834632754326,
-0.016722343862056732,
-0.010136641561985016,
0.027606550604104996,
0.06521625071763992,
0.03303530439734459,
-0.06443308293819427,
0.04510315880179405,
0.08130672574043274,
-0.03698672726750374,
-0.005851485300809145,
-0.001251505920663476,
0.031023995950818062,
-0.060054484754800797,
-0.09462051838636398,
0.005513300653547049,
0.017354214563965797,
0.03385406732559204,
-0.028122728690505028,
0.08301544189453125,
0.009602665901184082,
-0.022889764979481697,
0.005112818907946348,
0.0075824568048119545,
0.03269712254405022,
0.031379979103803635,
0.01991729997098446,
-0.0379834808409214,
0.003993694204837084,
0.023761924356222153,
0.014061364345252514,
-0.021875210106372833,
-0.013616384007036686,
-0.03182496130466461,
0.017291918396949768,
-0.021412432193756104,
0.01454194262623787,
0.04998013749718666,
0.06567902863025665,
0.006149621680378914,
-0.03323109820485115,
-0.002587558003142476,
-0.03221654146909714,
-0.0823746770620346,
-0.0379834808409214,
0.007800497114658356,
0.026218215003609657,
0.05752699822187424,
-0.010946504771709442,
-0.05421634763479233,
0.05410955101251602,
-0.008637059479951859,
-0.0001763232721714303,
-0.028905892744660378,
-0.0411161407828331,
0.01454194262623787,
0.0013316022232174873,
0.07518380135297775,
-0.012931114993989468,
0.028905892744660378,
0.033444687724113464,
-0.017345314845442772,
-0.018297571688890457,
0.05094129592180252,
0.03038322553038597,
0.05770498886704445,
0.003286176361143589,
-0.011916561052203178,
-0.07080519944429398,
-0.032358936965465546,
-0.018849346786737442,
0.0008521364652551711,
0.025577442720532417,
-0.021145444363355637,
-0.046598292887210846,
-0.01851116307079792,
-0.013883371837437153,
0.039621006697416306,
-0.009949750266969204,
-0.06987963616847992,
0.07162395864725113,
-0.035046614706516266,
0.023477138951420784,
0.0616920106112957,
0.023779723793268204,
0.011996657587587833,
-0.010323532857000828,
0.024918872863054276,
0.0004741816665045917,
-0.008832850493490696,
0.027286166325211525,
0.07475662231445312,
0.04795103147625923,
-0.011177894659340382,
0.0006474457331933081,
-0.00033901905408129096,
-0.004921477288007736,
0.040724556893110275,
0.0025386102497577667,
-0.015058118849992752,
-0.004770184401422739,
0.03858865424990654,
-0.02132343500852585,
-0.04812902212142944,
-0.05656583979725838,
-0.00446759769693017,
-0.014719934202730656,
0.0474526546895504,
-0.060837648808956146,
0.018422165885567665,
0.03809027746319771,
0.00045971982763148844,
0.0411161407828331,
-0.048164620995521545,
0.04282486438751221,
-0.03639935329556465,
-0.017701299861073494,
-0.006710296496748924,
0.02657419815659523,
0.02879909798502922,
-0.0018010560888797045,
-0.03467283025383949,
0.06760134547948837,
0.037591900676488876,
0.038054678589105606,
0.010937605053186417,
-0.0009550380636937916,
0.02199980430305004,
-0.025221459567546844,
-0.019952896982431412,
0.051012493669986725,
0.0031727065797895193,
0.034405842423439026,
-0.007916191592812538,
0.04716786742210388,
-0.026965780183672905,
-0.05952050909399986,
0.0332132987678051,
-0.007867244072258472,
0.00478353351354599,
0.07162395864725113,
-0.029813650995492935,
0.02358393371105194,
-0.009513669647276402,
-0.02513246238231659,
-0.0013482889626175165,
0.016695644706487656,
0.045957520604133606,
-0.061300426721572876,
-0.02454509027302265,
0.011524979025125504,
-0.024616286158561707,
-0.010421428829431534,
0.07418704777956009,
-0.05200924724340439,
0.016393058001995087,
0.07304789870977402,
-0.07155276089906693,
0.04011938348412514,
-0.06400590389966965,
0.025559643283486366,
-0.050834499299526215,
0.030561218038201332,
-0.033177699893713,
0.03243013471364975,
0.1264454871416092,
0.022569378837943077,
-0.012343741953372955,
-0.03522460535168648,
0.04930377006530762,
-0.003201630199328065,
-0.005517750512808561,
-0.013224801979959011,
0.03513561189174652,
-0.045494742691516876,
-0.03134438395500183,
0.03511781245470047,
-0.04716786742210388,
-0.04079575464129448,
0.029012687504291534,
-0.026645394042134285,
-0.035669587552547455,
-0.07881483435630798,
-0.06699617207050323,
-0.009193284437060356,
0.08023876696825027,
-0.012094552628695965,
0.0007447850657626987,
0.030952800065279007,
0.05706422030925751,
0.006585702300071716,
-0.07995398342609406,
-0.03607896715402603,
0.007684802170842886,
-0.04307405278086662,
-0.02356613427400589,
0.046135514974594116,
-0.012121251784265041,
0.017994986847043037,
-0.028977088630199432,
0.06496705859899521,
-0.004774634260684252,
0.00916658528149128,
-0.027250567451119423,
0.01084860973060131,
0.012343741953372955,
0.00201019668020308,
-0.01686473749577999,
-0.04204169660806656,
0.016490954905748367,
0.005677943117916584,
0.04570833221077919,
0.01993509754538536,
0.017158424481749535,
-0.028069330379366875,
0.06293795257806778,
0.05596067011356354,
-0.0004480391216930002,
-0.007778248284012079,
0.020166488364338875,
-0.017300818115472794,
-0.009531469084322453,
0.007039581425487995,
0.03221654146909714,
-0.022195596247911453,
-0.0647890716791153,
-0.037093523889780045,
-0.05994768813252449,
0.024740880355238914,
0.04442679136991501,
-0.031201988458633423,
0.04083135351538658,
0.00956706702709198,
0.026147017255425453,
0.016170568764209747,
-0.030151836574077606,
0.03666634112596512,
0.019685909152030945,
-0.04449798911809921,
0.035046614706516266,
0.01592138037085533,
-0.003628810867667198,
0.03173596411943436,
-0.014630937948822975,
-0.03908703103661537,
0.012210248038172722,
0.026289410889148712,
-0.00979845691472292,
0.011177894659340382,
0.020130889490246773,
-0.0632939338684082,
0.020949652418494225,
-0.07618055492639542,
0.009099838323891163,
-0.030329827219247818,
0.04396400973200798,
0.031077394261956215,
-0.048947785049676895,
0.007213123608380556,
0.01203225553035736,
-0.023370342329144478,
-0.0680641233921051,
-0.07390225678682327,
0.042611271142959595,
0.01700713112950325,
-0.026698792353272438,
0.025506246834993362,
-0.004100489430129528,
-0.0324123352766037,
0.07133917510509491,
-0.012610729783773422,
-0.021127644926309586,
0.01644645631313324,
-0.04360802844166756,
-0.03145117685198784,
0.017336415126919746,
-0.02892369218170643,
-0.03593657538294792,
0.021448029205203056,
0.0019323250744491816,
-0.01407916285097599,
-0.009780657477676868,
0.0042962804436683655,
-0.02105644717812538,
0.03143337741494179
]
|
30,044 | pawl.linkedin | post | null | def post(
self,
path: str,
data: Optional[Union[Dict[str, Union[str, Any]], bytes, IO, str]] = None,
params: Optional[Union[str, Dict[str, Union[str, int]]]] = None,
json=None,
):
return self._service_request(
data=data,
json=json,
method="POST",
params=params,
path=path,
)
| (self, path: str, data: Union[Dict[str, Union[str, Any]], bytes, IO, str, NoneType] = None, params: Union[str, Dict[str, Union[str, int]], NoneType] = None, json=None) | [
0.012278851121664047,
0.0018297192873433232,
-0.04351861774921417,
-0.011606160551309586,
-0.050765737891197205,
-0.023086750879883766,
-0.03528488054871559,
0.010556762106716633,
0.0064757708460092545,
-0.02906024642288685,
0.04728568345308304,
0.04459492117166519,
0.02665649726986885,
-0.044164400547742844,
-0.014817138202488422,
-0.049438297748565674,
0.022494783625006676,
0.03049532137811184,
-0.009220349602401257,
-0.013740832917392254,
0.019104421138763428,
-0.012449266389012337,
0.03316814452409744,
0.02428862638771534,
0.015731997787952423,
0.04068434610962868,
0.014772292226552963,
-0.014305893331766129,
0.013184741139411926,
0.05051460117101669,
0.010422224178910255,
-0.0064174709841609,
-0.00990200974047184,
0.02522142417728901,
0.04211941733956337,
0.044415537267923355,
-0.05334887281060219,
0.03463909775018692,
-0.07627417892217636,
0.019588759168982506,
-0.04233467951416969,
0.011103884316980839,
-0.030782334506511688,
-0.03182276338338852,
0.05460456386208534,
-0.005637149792164564,
-0.008130590431392193,
0.05758234113454819,
0.00038175209192559123,
0.046926915645599365,
0.014305893331766129,
-0.07103615999221802,
-0.03738367557525635,
-0.023086750879883766,
-0.024557702243328094,
0.06088301166892052,
0.026225974783301353,
-0.007561045698821545,
-0.009345918893814087,
-0.028665602207183838,
0.032683808356523514,
0.0011239544255658984,
0.07713522017002106,
-0.047321561723947525,
-0.030979657545685768,
0.017140163108706474,
0.012727311812341213,
-0.016036950051784515,
0.04398501664400101,
-0.0007573378388769925,
-0.038603488355875015,
-0.01583065837621689,
0.0044980598613619804,
0.03444177284836769,
0.08445409685373306,
0.0725071057677269,
0.0335627906024456,
0.032594114542007446,
0.018063992261886597,
0.032934945076704025,
0.004740228410810232,
-0.07699171453714371,
-0.0533129945397377,
0.02409130334854126,
-0.012431328184902668,
0.029078185558319092,
-0.054568685591220856,
0.020485680550336838,
-0.0612059012055397,
-0.029347261413931847,
0.018234407529234886,
-0.021005894988775253,
-0.06500884890556335,
-0.00901405792683363,
0.036773767322301865,
-0.012825973331928253,
-0.003107832046225667,
0.018835345283150673,
-0.03435208275914192,
0.02360696531832218,
0.018548330292105675,
0.04861312732100487,
-0.027481665834784508,
0.0003747448790818453,
0.0730452612042427,
-0.019301744177937508,
0.01290669571608305,
0.04312397167086601,
-0.06511647999286652,
-0.006812116596847773,
0.014503215439617634,
0.008354821242392063,
-0.0581204928457737,
-0.003910576459020376,
-0.00860595889389515,
0.04061259329319,
0.02640536054968834,
-0.0386393666267395,
-0.06479358673095703,
0.009408703073859215,
-0.04398501664400101,
0.012431328184902668,
0.03680964559316635,
0.020270418375730515,
0.0169249027967453,
0.018494514748454094,
-0.02197456918656826,
0.009579118341207504,
-0.03709666058421135,
-0.03928514942526817,
-0.011543375439941883,
0.02497028559446335,
0.04961768165230751,
0.04531245678663254,
-0.03139224275946617,
0.0315895639359951,
-0.0025853754486888647,
0.04014619439840317,
-0.01872771419584751,
-0.0064174709841609,
0.04656814783811569,
-0.029598399996757507,
-0.025042040273547173,
0.00010153427865589038,
0.019194113090634346,
-0.019624635577201843,
-0.007529653608798981,
-0.030136551707983017,
-0.01867389865219593,
0.06371728330850601,
-0.016969749704003334,
0.015642305836081505,
0.046819284558296204,
0.04423615336418152,
0.06522411108016968,
-0.07021099328994751,
0.020683003589510918,
-0.08402357995510101,
-0.03878287225961685,
0.02739197388291359,
-0.0061708176508545876,
-0.01734645664691925,
0.026441236957907677,
-0.021454354748129845,
0.019821958616375923,
-0.014763322658836842,
-0.017848731949925423,
-0.004170683678239584,
0.023373765870928764,
-0.013534541241824627,
0.007794245146214962,
0.023032935336232185,
-0.04861312732100487,
-0.017651408910751343,
-0.016297057271003723,
-0.08768301457166672,
-0.021418478339910507,
0.0013431394472718239,
0.030818212777376175,
-0.014153416268527508,
-0.016171488910913467,
-0.009623964317142963,
0.0736192911863327,
0.013382064178586006,
0.007668676320463419,
-0.017525840550661087,
-0.0014844045508652925,
0.013974032364785671,
-0.03227122500538826,
0.05187792330980301,
0.04011031612753868,
0.029401076957583427,
0.020234541967511177,
0.012207097373902798,
0.023140566423535347,
-0.020216602832078934,
-0.014745384454727173,
-0.04075609892606735,
0.06472183018922806,
0.02276385948061943,
0.033778052777051926,
-0.018270283937454224,
0.03562571108341217,
0.024898532778024673,
-0.0024508370552212,
-0.0516267828643322,
0.040074437856674194,
0.014476307667791843,
-0.04527658224105835,
-0.059053290635347366,
0.019445251673460007,
0.0006267236894927919,
-0.017418209463357925,
0.02360696531832218,
0.004004753194749355,
-0.059196799993515015,
0.069959856569767,
-0.07293763011693954,
-0.00011309615365462378,
-0.06561875343322754,
0.0417606495320797,
0.08947686105966568,
0.004852343816310167,
0.010996254161000252,
0.021059708669781685,
-0.04674753174185753,
0.01709531806409359,
-0.006816600915044546,
-0.03456734120845795,
-0.07397805899381638,
-0.0194631889462471,
-0.03567952662706375,
0.017759039998054504,
-0.03341928496956825,
-0.024952348321676254,
-0.05503508448600769,
-0.029580460861325264,
-0.0942125990986824,
-0.003816399723291397,
-0.014449400827288628,
0.057367078959941864,
-0.047321561723947525,
0.01287978794425726,
0.008498328737914562,
-0.0646141991019249,
0.025508439168334007,
0.016126643866300583,
-0.03205596283078194,
0.042298804968595505,
-0.04746507108211517,
0.06102651730179787,
-0.017301609739661217,
-0.0471062995493412,
0.04280107840895653,
0.04240643233060837,
0.06734084337949753,
0.06734084337949753,
0.014637754298746586,
0.06134941056370735,
-0.01524766068905592,
-0.017059441655874252,
0.02931138500571251,
-0.012951541692018509,
0.07835503667593002,
0.008090228773653507,
-0.056972432881593704,
-0.0341368205845356,
-0.014431461691856384,
-0.041509512811899185,
-0.04656814783811569,
-0.0019373497925698757,
-0.00031504358048550785,
0.04933066666126251,
-0.034710850566625595,
-0.0014866468263790011,
-0.0279301255941391,
0.05607551336288452,
0.028019817546010017,
0.018494514748454094,
-0.016072828322649002,
-0.0236966572701931,
-0.06436306238174438,
0.03838822618126869,
-0.03560777008533478,
0.007031862158328295,
0.0050406972877681255,
0.012915665283799171,
0.03935690224170685,
-0.019570820033550262,
-0.007220215629786253,
0.02823507972061634,
0.03514137119054794,
-0.01204565167427063,
0.020916203036904335,
-0.060524243861436844,
-0.009552210569381714,
-0.07591541111469269,
-0.007659706752747297,
0.08890283107757568,
-0.05083749443292618,
0.015983136370778084,
-0.028665602207183838,
0.07663294672966003,
-0.05679304897785187,
-0.034710850566625595,
-0.019786082208156586,
-0.0056461188942193985,
0.012323697097599506,
-0.0787138044834137,
-0.01862008310854435,
-0.04972531273961067,
0.0051483274437487125,
-0.05320536345243454,
-0.011471621692180634,
-0.045994117856025696,
-0.05083749443292618,
0.026243913918733597,
0.03083615005016327,
0.025382868945598602,
0.03340134397149086,
0.04366212338209152,
0.01182142086327076,
-0.04290870949625969,
-0.057474710047245026,
0.04807497560977936,
-0.01426104735583067,
0.036289431154727936,
-0.020665064454078674,
0.03236091509461403,
0.03221740946173668,
0.012628650292754173,
0.02403748780488968,
-0.007430992089211941,
0.011677914299070835,
-0.014736414887011051,
-0.07376279681921005,
0.028396524488925934,
0.0011996320681646466,
-0.005363588687032461,
0.02744578756392002,
-0.03080027364194393,
0.014494246803224087,
0.05065811052918434,
-0.028952615335583687,
0.04050496220588684,
0.027571357786655426,
0.04498956725001335,
0.043375108391046524,
0.018359975889325142,
-0.013041234575212002,
-0.05184204503893852,
0.037563059478998184,
0.02192075364291668,
-0.019499067217111588,
0.015776844695210457,
-0.09880483895540237,
0.042298804968595505,
-0.008323428221046925,
-0.008919881656765938,
-0.02443213388323784,
0.027517542243003845,
0.017696255818009377,
-0.0024037486873567104,
0.021561985835433006,
-0.0006603582296520472,
-0.019337620586156845,
0.004327644594013691,
0.04043320566415787,
-0.009256226941943169,
0.02468327060341835,
0.034657035022974014,
-0.037132538855075836,
0.004554117564111948,
0.0736192911863327,
0.02685382030904293,
0.08675021678209305,
0.02053949609398842,
-0.03144605830311775,
0.012332666665315628,
0.03546426445245743,
-0.007996052503585815,
-0.07979010790586472,
0.035500138998031616,
-0.041007235646247864,
0.09801554679870605,
-0.006498193833976984,
-0.002280422020703554,
-0.029741907492280006,
0.010843777097761631,
-0.0038612456992268562,
-0.025364931672811508,
-0.03802945837378502,
-0.008516266942024231,
0.02575957588851452,
-0.03896225616335869,
0.01280803419649601,
0.006224633194506168,
-0.006282933056354523,
-0.05618314445018768,
0.054030533879995346,
-0.01670067198574543,
-0.014494246803224087,
-0.014458369463682175,
0.010242840275168419,
0.029490768909454346,
0.027015266939997673,
-0.04326747730374336,
-0.013400002382695675,
0.024719148874282837,
0.010520885698497295,
0.03889050334692001,
0.02601071447134018,
0.019391436129808426,
0.028199201449751854,
0.04445141553878784,
0.03361660614609718,
0.009812317788600922,
0.04498956725001335,
-0.01101419236510992,
-0.039930932223796844,
0.02000134252011776,
0.020485680550336838,
0.004731259308755398,
0.05284659564495087,
0.009157565422356129,
-0.03435208275914192,
-0.0027176712173968554,
-0.032791439443826675,
0.021884877234697342,
-0.0025921021588146687,
0.026782067492604256,
-0.017651408910751343,
0.00562818069010973,
-0.012521020136773586,
0.030979657545685768,
0.04990469664335251,
-0.04398501664400101,
-0.024701209738850594,
0.04595824331045151,
-0.004426306113600731,
-0.013633201830089092,
0.01081686932593584,
-0.007543107029050589,
-0.04803909733891487,
0.02468327060341835,
-0.02871941588819027,
0.011606160551309586,
-0.0414736345410347,
0.057905230671167374,
-0.023140566423535347,
0.07397805899381638,
-0.023660780861973763,
0.05069398507475853,
-0.013884340412914753,
-0.043088093400001526,
-0.05227256566286087,
-0.009884071536362171,
-0.07562839239835739,
0.015875505283474922,
0.019391436129808426,
0.07103615999221802,
-0.0341368205845356,
-0.004767136182636023,
0.03906988725066185,
0.0032020085491240025,
0.008179921656847,
-0.008484874852001667,
0.009767471812665462,
0.05664954334497452,
-0.02271004393696785,
0.012969480827450752,
0.04043320566415787,
-0.056434281170368195,
0.038998134434223175,
0.021759308874607086,
0.04724980890750885,
-0.0020046187564730644,
-0.020557433366775513,
-0.0513397678732872,
-0.043339233845472336,
0.05873040109872818,
-0.049294788390398026,
0.033006701618433,
0.042155295610427856,
-0.044917814433574677,
-0.043769754469394684,
0.024593578651547432,
0.060775380581617355,
0.019301744177937508,
-0.025705762207508087,
0.07469559460878372,
-0.06942170113325119,
-0.018117807805538177,
0.07971835881471634,
0.0011760878842324018,
0.0050227586179971695,
-0.037024907767772675,
-0.07171782106161118,
-0.026082469150424004,
-0.05862277001142502,
0.002695248229429126,
0.027948064729571342,
0.06787899881601334,
0.0037042845506221056,
-0.006574432365596294,
0.0218669380992651,
0.04473843052983284,
0.06579814106225967,
0.04251406341791153,
0.017929455265402794,
-0.07257886230945587,
-0.05664954334497452,
-0.017086349427700043,
-0.027948064729571342,
0.03349103778600693,
0.02010897360742092,
0.01881740614771843,
-0.031159041449427605,
-0.08732424676418304,
-0.06213869899511337,
-0.005713387858122587,
0.05453280732035637,
0.012260912917554379,
-0.03831647336483002,
0.014359707944095135,
0.005211112089455128,
-0.04412852227687836,
-0.03910576552152634,
0.031248733401298523,
0.05639840289950371,
-0.00017391862638760358,
0.010323562659323215,
-0.005412919446825981,
0.04488193616271019,
0.03424445167183876,
-0.039930932223796844,
-0.0013879855396226048,
-0.029006430879235268,
0.021005894988775253,
-0.03463909775018692,
0.0010348227806389332,
-0.028701478615403175,
-0.022136015817523003,
-0.012592773884534836,
-0.0335807278752327,
0.002977778436616063,
0.046245258301496506,
-0.008516266942024231,
-0.006161848548799753,
-0.021023832261562347,
-0.02680000476539135,
-0.028611786663532257,
-0.04326747730374336,
0.068811796605587,
-0.034710850566625595,
0.060775380581617355,
0.036953154951334,
-0.0781397745013237,
0.019301744177937508,
-0.04961768165230751,
-0.031302548944950104,
-0.03365248441696167,
-0.036038294434547424,
0.045599471777677536,
-0.02477296255528927,
-0.004027176182717085,
0.011417807079851627,
0.01393815502524376,
-0.01593828946352005,
0.01372289378196001,
0.03029799833893776,
-0.012628650292754173,
0.05033521726727486,
-0.04233467951416969,
0.04972531273961067,
0.011857298202812672,
-0.012332666665315628,
-0.0014653450343757868,
-0.027481665834784508,
-0.028809107840061188,
0.03517724946141243,
0.059878457337617874,
-0.06748434901237488,
-0.07046213001012802,
-0.0026234944816678762,
0.0128349419683218,
-0.02089826390147209,
-0.0040339031256735325,
-0.009597056545317173,
-0.05804874002933502,
-0.02053949609398842,
-0.007753883488476276,
0.04742919281125069,
-0.012162251397967339,
-0.031123165041208267,
0.062210455536842346,
0.0167813953012228,
-0.011023161001503468,
0.01096037682145834,
-0.024378318339586258,
-0.005067604593932629,
-0.0000376286479877308,
-0.0620669461786747,
-0.016458503901958466,
0.03402918949723244,
0.02882704697549343,
-0.02852209471166134,
0.05908916890621185,
0.018942976370453835,
-0.015875505283474922,
0.04728568345308304,
0.009722625836730003,
-0.026136282831430435,
0.03275556117296219,
0.008256159722805023,
-0.03774244338274002,
-0.05094512552022934,
-0.013247526250779629,
0.020826509222388268,
-0.01593828946352005,
0.02561606839299202,
-0.05420991778373718,
0.0024508370552212,
0.02739197388291359,
0.00214700517244637,
0.04671165719628334,
-0.039249271154403687,
-0.022799735888838768,
-0.08459760993719101,
-0.0863196924328804,
-0.01386640127748251,
-0.006861446890980005,
-0.023140566423535347,
0.032881129533052444,
0.009009573608636856,
0.020270418375730515,
0.0002766441321000457,
-0.052057307213544846,
0.06949345022439957,
0.020485680550336838,
0.0011704821372404695,
0.03015449084341526,
-0.039249271154403687,
-0.012619680725038052,
-0.014009908773005009,
0.05399465560913086,
0.003897122573107481,
-0.02448594942688942,
0.009641902521252632,
0.009130657650530338,
-0.008256159722805023,
0.006435409653931856,
0.006224633194506168,
-0.001005672849714756,
0.07849854230880737,
0.013758771121501923,
0.05216493830084801,
0.006987016182392836,
-0.039930932223796844,
-0.02739197388291359,
-0.015274567529559135,
0.011830390430986881,
0.015462921001017094,
0.009839225560426712,
-0.03632530942559242,
-0.03207390010356903,
-0.012817003764212132,
-0.04211941733956337,
0.03567952662706375,
0.031302548944950104,
-0.004177410621196032,
-0.033132269978523254,
0.019839895889163017,
0.0352669395506382,
0.06737671792507172,
-0.007543107029050589,
-0.00034475408028811216,
-0.03304257616400719,
-0.003228916320949793,
0.03989505395293236,
-0.02984953671693802,
-0.004933066666126251,
-0.006704485975205898,
0.01200080569833517,
-0.010682331398129463,
0.056290775537490845,
0.054317548871040344,
0.006264994386583567,
0.018386883661150932,
0.006749331951141357,
0.0026010714937001467,
-0.10411461442708969,
-0.010897592641413212,
0.016880057752132416,
-0.009848195128142834,
-0.008269613608717918,
-0.01386640127748251,
0.014987553469836712,
0.004309706389904022,
0.00689732376486063,
0.013220618478953838,
0.005341165699064732,
0.044272031635046005,
0.012852881103754044,
-0.017274701967835426,
0.036666139960289,
-0.0029015401378273964,
0.002488956321030855,
0.0744803324341774,
-0.06450657546520233,
-0.025364931672811508,
0.039392780512571335,
0.07634593546390533,
0.02744578756392002,
-0.002479986986145377,
0.03842410445213318,
-0.029185814782977104,
0.04516895115375519,
-0.05829987674951553,
-0.017947392538189888,
-0.02084444835782051,
0.012772157788276672,
0.040074437856674194,
-0.060667749494314194,
0.01771419309079647,
-0.03838822618126869,
-0.019445251673460007,
-0.032540298998355865,
0.04158126562833786,
-0.014817138202488422,
-0.0349799282848835,
0.03745542839169502,
0.019104421138763428,
-0.09399734437465668,
-0.030674705281853676,
-0.03878287225961685,
0.05345650389790535,
-0.021508170291781425,
0.027481665834784508,
0.03088996559381485,
-0.05173441395163536,
0.019481128081679344,
0.01221606694161892,
-0.04742919281125069,
-0.0033163661137223244,
-0.013364125974476337,
0.03054913505911827,
-0.04721393063664436,
-0.006287417374551296,
-0.024988224729895592,
0.04818260669708252,
-0.018853282555937767,
-0.030872028321027756,
-0.019104421138763428,
0.009049935266375542,
0.004289525561034679,
0.03661232441663742,
-0.00973159447312355,
0.012494112364947796,
-0.06927819550037384,
-0.03492611274123192,
-0.005045181605964899,
0.0051976582035422325,
-0.026225974783301353,
-0.005412919446825981,
0.036432940512895584,
0.02271004393696785,
0.0313204862177372
]
|
30,051 | pfzy.match | fuzzy_match | Fuzzy find the needle within list of haystacks and get matched results with matching index.
Note:
The `key` argument is optional when the provided `haystacks` argument is a list of :class:`str`.
It will be given a default key `value` if not present.
Warning:
The `key` argument is required when provided `haystacks` argument is a list of :class:`dict`.
If not present, :class:`TypeError` will be raised.
Args:
needle: String to search within the `haystacks`.
haystacks: List of haystack/longer strings to be searched.
key: If `haystacks` is a list of dictionary, provide the key that
can obtain the haystack value to search.
batch_size: Number of entry to be processed together.
scorer (Callable[[str, str], SCORE_indices]): Desired scorer to use. Currently only :func:`~pfzy.score.fzy_scorer` and :func:`~pfzy.score.substr_scorer` is supported.
Raises:
TypeError: When the argument `haystacks` is :class:`list` of :class:`dict` and the `key` argument
is missing, :class:`TypeError` will be raised.
Returns:
List of matching `haystacks` with additional key indices and score.
Examples:
>>> import asyncio
>>> asyncio.run(fuzzy_match("ab", ["acb", "acbabc"]))
[{'value': 'acbabc', 'indices': [3, 4]}, {'value': 'acb', 'indices': [0, 2]}]
| result.sort(key=lambda x: x["score"], reverse=True)
| (needle: str, haystacks: List[Union[str, Dict[str, Any]]], key: str = '', batch_size: int = 4096, scorer: Optional[Callable[[str, str], Tuple[float, Optional[List[int]]]]] = None) -> List[Dict[str, Any]] | [
0.01283706072717905,
0.03921138495206833,
-0.07342132180929184,
-0.013703979551792145,
0.01800522767007351,
-0.00387195753864944,
-0.012286901473999023,
0.014170781709253788,
0.12657009065151215,
-0.002319423481822014,
-0.009219343774020672,
0.01611301116645336,
-0.01545448787510395,
-0.04638013243675232,
0.025257334113121033,
0.03554365411400795,
0.03187592327594757,
0.057383328676223755,
0.002275660866871476,
0.01286206766963005,
0.017271682620048523,
-0.01662149280309677,
-0.03884461149573326,
0.027674702927470207,
0.029175138100981712,
-0.03372646123170853,
0.04161208122968674,
-0.023356782272458076,
-0.017305023968219757,
0.028408247977495193,
-0.03380981832742691,
-0.0022569054272025824,
0.023423468694090843,
0.031759221106767654,
-0.07555527240037918,
-0.03152582049369812,
0.02170630358159542,
0.024907231330871582,
-0.016696514561772346,
0.0510481558740139,
-0.005013955757021904,
-0.004693029448390007,
-0.06615254282951355,
-0.034710079431533813,
0.025040604174137115,
-0.014120766893029213,
0.00579751655459404,
0.018271971493959427,
0.056116294115781784,
-0.03804438188672066,
-0.0259241946041584,
-0.02827487699687481,
0.005047298967838287,
0.05721661448478699,
-0.05504931882023811,
-0.010469706729054451,
0.008352424949407578,
0.03664397448301315,
0.00570582365617156,
0.009427737444639206,
0.010953180491924286,
-0.0037802644073963165,
-0.06605251133441925,
0.023356782272458076,
0.027191229164600372,
-0.020839383825659752,
-0.030492186546325684,
0.019455648958683014,
-0.07488840818405151,
-0.038311123847961426,
-0.025874178856611252,
0.07902294397354126,
0.04898088797926903,
-0.00006554637366207317,
-0.02105611376464367,
0.03634388744831085,
-0.023223409429192543,
-0.02755800262093544,
0.022539878264069557,
-0.018088584765791893,
0.03744420409202576,
-0.018738774582743645,
0.022406505420804024,
-0.006426866166293621,
-0.033493056893348694,
-0.02694115601480007,
0.10136276483535767,
-0.026407668367028236,
-0.0013816511491313577,
0.07082056254148483,
-0.021222829818725586,
0.00268202880397439,
-0.03275951370596886,
-0.02339012548327446,
-0.019955795258283615,
0.020505953580141068,
0.003723998088389635,
-0.03295956924557686,
-0.04387940838932991,
-0.016396427527070045,
0.02577415108680725,
0.03691071644425392,
0.013870694674551487,
0.0031092362478375435,
0.017938541248440742,
0.006468544714152813,
0.008735870011150837,
-0.014937670901417732,
-0.005414071958512068,
0.07668893784284592,
-0.04437955468893051,
0.024540459737181664,
0.015221086330711842,
-0.03254278376698494,
0.036844030022621155,
-0.054582513868808746,
0.00523902103304863,
0.01845535822212696,
0.025107290595769882,
0.006314333528280258,
0.03392651677131653,
-0.00200787466019392,
0.016354748979210854,
0.008952599950134754,
-0.10769794136285782,
0.0004931119037792087,
0.01783851347863674,
0.0025611603632569313,
-0.06368515640497208,
0.014562562108039856,
0.029625268653035164,
0.005176503211259842,
-0.07035376131534576,
-0.006168457679450512,
0.012928754091262817,
-0.031609177589416504,
0.05604960769414902,
-0.007777258288115263,
0.1026964858174324,
-0.03152582049369812,
0.018888818100094795,
-0.004730540327727795,
0.05528271943330765,
-0.051681675016880035,
0.05618298053741455,
-0.06491885334253311,
-0.011945134960114956,
0.08702526986598969,
-0.0051431600004434586,
-0.031642522662878036,
0.018472030758857727,
0.03355974331498146,
0.00803149864077568,
-0.04648016393184662,
0.03324298560619354,
-0.08669184148311615,
-0.008560819551348686,
-0.10196293890476227,
0.011294946074485779,
-0.049147605895996094,
0.06411861628293991,
0.015512838028371334,
0.04688027873635292,
-0.07095393538475037,
-0.03621051460504532,
0.006305997725576162,
0.03474342077970505,
0.006589413154870272,
-0.08049003779888153,
0.02420702949166298,
-0.03274283930659294,
-0.017921870574355125,
-0.08909253776073456,
-0.021906360983848572,
-0.03804438188672066,
-0.01907220482826233,
-0.03681068867444992,
0.02852495014667511,
0.0203892532736063,
0.013795671984553337,
-0.023423468694090843,
-0.05761672928929329,
0.016338076442480087,
-0.014020738191902637,
0.013578942976891994,
-0.05875039100646973,
-0.021489573642611504,
0.032059308141469955,
-0.05258193612098694,
-0.02299000881612301,
-0.02522399090230465,
-0.0407785065472126,
-0.05901713669300079,
-0.030125413089990616,
0.04511309787631035,
0.02227313444018364,
-0.05451583117246628,
0.06391856074333191,
0.02187301777303219,
-0.0006762380362488329,
-0.06678605824708939,
-0.011269939132034779,
0.014037408865988255,
-0.04447958245873451,
0.017471740022301674,
0.030375486239790916,
-0.0694868415594101,
-0.007427156437188387,
-0.016513127833604813,
-0.05488260090351105,
0.032409410923719406,
0.02314005233347416,
0.00004988427463104017,
-0.03060888685286045,
0.0013597698416560888,
-0.02384025603532791,
0.045079756528139114,
-0.0064226980321109295,
0.051681675016880035,
-0.016354748979210854,
-0.043646007776260376,
-0.061084404587745667,
0.00724377017468214,
0.02227313444018364,
0.016129683703184128,
0.07468835264444351,
0.01887214556336403,
-0.012928754091262817,
0.0007111440063454211,
-0.04728039354085922,
0.025640778243541718,
-0.04718036577105522,
0.008185709826648235,
-0.07948974519968033,
-0.031192390248179436,
0.019605692476034164,
0.007097894325852394,
0.04594667628407478,
-0.08922591060400009,
0.014996021054685116,
0.02659105509519577,
0.060084111988544464,
0.012745367363095284,
-0.0016088004922494292,
-0.07195422798395157,
0.02095608413219452,
0.03169253468513489,
-0.032576125115156174,
-0.009110978804528713,
0.037710949778556824,
0.01972239278256893,
-0.008239892311394215,
0.0412786528468132,
-0.007368806283921003,
-0.00826073158532381,
-0.05161498859524727,
-0.06681939959526062,
-0.0508480966091156,
0.021189486607909203,
0.010953180491924286,
0.0035031004808843136,
-0.009452744387090206,
-0.023373452946543694,
0.006230975966900587,
-0.016129683703184128,
-0.02170630358159542,
-0.024823874235153198,
0.023456811904907227,
0.012145193293690681,
0.03340969979763031,
0.04764716699719429,
-0.1208350881934166,
-0.007285448722541332,
-0.03304292634129524,
-0.013820679858326912,
0.09722822904586792,
-0.030892303213477135,
0.023623526096343994,
0.0014035325730219483,
0.018538717180490494,
0.060884345322847366,
0.002907094080001116,
-0.02257322147488594,
-0.0005202031461521983,
0.024723846465349197,
0.016663171350955963,
-0.004388774279505014,
-0.019438978284597397,
-0.03911135718226433,
-0.009752831421792507,
0.045846644788980484,
0.020972756668925285,
0.010211298242211342,
0.006247647572308779,
0.0034051553811877966,
-0.01907220482826233,
0.039278071373701096,
-0.028608307242393494,
0.04367934912443161,
0.07775591313838959,
-0.002871667267754674,
-0.008348257280886173,
0.11543351411819458,
0.003463505767285824,
-0.004155373200774193,
0.04241231456398964,
-0.026157595217227936,
-0.01322050578892231,
-0.03254278376698494,
-0.022456521168351173,
0.034143246710300446,
0.04774719849228859,
-0.03494348004460335,
0.0028070651460438967,
-0.05664978176355362,
0.04888086020946503,
0.009494423866271973,
-0.03265948221087456,
-0.0069895293563604355,
-0.005480757914483547,
-0.04231228679418564,
-0.06285158544778824,
0.014329160563647747,
0.022923322394490242,
0.03372646123170853,
-0.05674981325864792,
-0.0716874822974205,
-0.02227313444018364,
0.025657450780272484,
-0.007160412613302469,
0.053315479308366776,
-0.03484345227479935,
0.026007551699876785,
-0.009577780961990356,
0.0012847480829805136,
0.047813884913921356,
0.059417251497507095,
0.014687597751617432,
0.005764173809438944,
-0.015221086330711842,
-0.0918266624212265,
-0.0410785935819149,
0.03534359484910965,
0.026057565584778786,
0.03000871278345585,
0.025740807875990868,
-0.04621341824531555,
-0.00946108065545559,
-0.014204123988747597,
0.011728405952453613,
0.023873599246144295,
-0.04768051207065582,
0.021906360983848572,
0.07508847117424011,
0.024140343070030212,
0.04671356454491615,
0.01845535822212696,
-0.057850129902362823,
0.020856056362390518,
0.00935271568596363,
0.000002963099859698559,
-0.054782573133707047,
-0.04311252012848854,
0.023423468694090843,
0.05958396941423416,
-0.007489674724638462,
0.030892303213477135,
-0.022106418386101723,
-0.006243479438126087,
-0.012912082485854626,
-0.06378518790006638,
-0.0417787991464138,
0.04958106204867363,
0.04397943615913391,
0.0045429859310388565,
-0.02760801650583744,
-0.013303862884640694,
0.016513127833604813,
0.03290955722332001,
0.0029008423443883657,
-0.007427156437188387,
-0.001170131377875805,
0.0015817092498764396,
-0.00907763559371233,
-0.04321254789829254,
0.01907220482826233,
-0.024173686280846596,
-0.028808364644646645,
-0.011495004408061504,
-0.032576125115156174,
-0.020505953580141068,
0.039378099143505096,
0.020139180123806,
-0.04351263493299484,
-0.038977984338998795,
0.030242115259170532,
-0.029175138100981712,
-0.03861121088266373,
0.036543942987918854,
-0.04561324417591095,
0.04688027873635292,
-0.009511095471680164,
-0.01575457490980625,
-0.017505083233118057,
0.003567702602595091,
-0.007798097562044859,
-0.020939413458108902,
0.06848655641078949,
-0.02604089491069317,
0.006985361687839031,
-0.03857786953449249,
-0.033076271414756775,
-0.04834737256169319,
-0.04651350528001785,
-0.0022381499875336885,
-0.007252105977386236,
0.09876201301813126,
0.09015951305627823,
-0.01411243062466383,
0.012695352546870708,
0.035510312765836716,
0.0017505083233118057,
-0.026374325156211853,
0.029908685013651848,
0.02405698597431183,
-0.03561034053564072,
0.016146354377269745,
0.01337054930627346,
-0.04447958245873451,
0.010744786821305752,
0.00019159208750352263,
-0.027074528858065605,
-0.0039761546067893505,
-0.028925064951181412,
0.03847783803939819,
-0.0034384983591735363,
-0.00366773153655231,
-0.0035156041849404573,
-0.04257902875542641,
0.057183269411325455,
0.05541609227657318,
0.04921428859233856,
0.03807772323489189,
-0.009219343774020672,
0.04961440712213516,
0.06508556753396988,
0.02802480384707451,
-0.018788788467645645,
0.04784722626209259,
-0.032676152884960175,
0.009244350716471672,
-0.014420853927731514,
0.055749520659446716,
0.004555489402264357,
0.03000871278345585,
-0.04281242936849594,
-0.06778635084629059,
-0.01256198063492775,
0.0025424049235880375,
0.026507696136832237,
-0.007139572873711586,
-0.0018599150935187936,
0.04511309787631035,
-0.00418038060888648,
-0.04384606331586838,
0.010211298242211342,
-0.0399782732129097,
-0.013062126003205776,
-0.02790810354053974,
0.011328289285302162,
0.020522626116871834,
-0.024290386587381363,
0.006468544714152813,
-0.025807494297623634,
0.01907220482826233,
0.010861487127840519,
0.04868080094456673,
-0.07648887485265732,
0.04341260716319084,
0.06942015886306763,
0.007523017935454845,
-0.016438106074929237,
-0.08129026740789413,
0.0013233008794486523,
-0.006718617398291826,
0.0032134330831468105,
-0.039378099143505096,
-0.03804438188672066,
0.008073177188634872,
-0.04317920282483101,
-0.0030196267180144787,
0.002227730117738247,
0.01718832366168499,
0.004392942413687706,
-0.003636472625657916,
0.012570316903293133,
0.024740517139434814,
0.05028126761317253,
-0.055916234850883484,
0.022539878264069557,
0.00922767911106348,
0.02725791558623314,
-0.08069009333848953,
-0.014137438498437405,
0.03189259395003319,
0.05221516266465187,
0.027674702927470207,
-0.027124542742967606,
0.02272326499223709,
-0.021189486607909203,
-0.05451583117246628,
-0.02420702949166298,
0.010027911514043808,
0.009344380348920822,
-0.004534650128334761,
0.02339012548327446,
-0.03924473002552986,
0.019455648958683014,
0.03339302912354469,
-0.003734417725354433,
0.02725791558623314,
-0.006447705440223217,
-0.013937380164861679,
-0.020089166238904,
0.03294289857149124,
0.032826196402311325,
0.035110194236040115,
0.02877502143383026,
0.048480745404958725,
0.020622653886675835,
0.0069686900824308395,
0.0034926808439195156,
0.014912663027644157,
-0.033526401966810226,
-0.011761748231947422,
0.051748357713222504,
-0.010361341759562492,
0.04277908802032471,
-0.004872248042374849,
0.04094522073864937,
0.0409785658121109,
0.03417659178376198,
0.056316353380680084,
-0.051181528717279434,
0.046846937388181686,
0.059817370027303696,
-0.0718875378370285,
0.0038011036813259125,
-0.03574371337890625,
0.011911791749298573,
-0.021372873336076736,
0.03884461149573326,
0.02110612764954567,
-0.056516408920288086,
0.022506535053253174,
0.017921870574355125,
-0.018071914091706276,
-0.004240814596414566,
0.060317512601614,
-0.019205575808882713,
0.06018414348363876,
0.01957234926521778,
0.02847493439912796,
-0.02785808965563774,
-0.07348800450563431,
0.02339012548327446,
0.008802555501461029,
0.0609176866710186,
-0.043445948511362076,
-0.037144117057323456,
0.00976116769015789,
-0.007222930435091257,
0.03554365411400795,
-0.0027487147599458694,
0.024573802947998047,
0.021472901105880737,
0.04744711145758629,
-0.04277908802032471,
-0.014179117046296597,
0.010811472311615944,
-0.010586407035589218,
0.005872538313269615,
0.04174545407295227,
-0.02889172174036503,
-0.04688027873635292,
-0.02277327887713909,
0.03864455595612526,
0.04571327194571495,
0.039178043603897095,
-0.0008960935520008206,
0.0061226109974086285,
-0.003842782462015748,
0.007727243937551975,
-0.0038782095070928335,
0.03664397448301315,
-0.03884461149573326,
-0.023106709122657776,
0.027241243049502373,
-0.05284867808222771,
0.0014097843086346984,
0.022456521168351173,
0.023523496463894844,
-0.02048928290605545,
-0.01016961969435215,
0.049547720700502396,
-0.021739644929766655,
-0.01586293987929821,
0.008869241923093796,
-0.050047867000103,
0.037344176322221756,
0.006631092168390751,
0.03187592327594757,
0.023523496463894844,
-0.0030362983234226704,
0.08475794643163681,
-0.023623526096343994,
0.04494638368487358,
-0.003175922203809023,
-0.02760801650583744,
0.006501887924969196,
0.033276330679655075,
0.02364019677042961,
0.06025082617998123,
0.05558280646800995,
0.0028404081240296364,
-0.04241231456398964,
0.0010362383909523487,
-0.0015973388217389584,
0.02460714429616928,
-0.040078304708004,
-0.027241243049502373,
-0.06531896442174911,
0.01253697369247675,
-0.010978187434375286,
-0.08489131927490234,
-0.03169253468513489,
0.03275951370596886,
-0.015679553151130676,
0.02334010973572731,
-0.07102062553167343,
-0.005459918640553951,
-0.004301249049603939,
0.006814478896558285,
-0.007285448722541332,
-0.024690503254532814,
0.003150915028527379,
-0.041211966425180435,
0.007264609448611736,
0.020422596484422684,
-0.00785644818097353,
-0.005189006682485342,
0.0007627214654348791,
-0.011044873856008053,
0.05414905771613121,
-0.016396427527070045,
0.04204554110765457,
0.034093230962753296,
0.012703688815236092,
0.010161283425986767,
-0.017555097118020058,
-0.04918094724416733,
-0.006910339929163456,
-0.034710079431533813,
-0.03009207174181938,
0.036277201026678085,
0.006576909683644772,
0.008869241923093796,
-0.001358727808110416,
-0.034093230962753296,
-0.012695352546870708,
0.0198390930891037,
0.06705280393362045,
0.03159250691533089,
-0.015671217814087868,
0.010152948088943958,
0.03624385595321655,
-0.06648597121238708,
0.05461585894227028,
-0.0024736349005252123,
-0.08835899084806442,
0.02689114212989807,
0.03641057386994362,
-0.025590764358639717,
-0.010678100399672985,
-0.028058147057890892,
0.003275951137766242,
-0.04281242936849594,
0.050814755260944366,
-0.05828358978033066,
-0.03169253468513489,
-0.02822486124932766,
-0.04921428859233856,
-0.006301830057054758,
-0.0791563168168068,
-0.02202306129038334,
0.03417659178376198,
0.011244932189583778,
0.02800813317298889,
0.04841405898332596,
-0.00879422016441822,
0.0008450370514765382,
0.04204554110765457,
0.05745001509785652,
-0.005151495803147554,
0.002782057737931609,
0.0007048921543173492,
0.002975864103063941,
-0.02048928290605545,
-0.00183073990046978,
-0.04854742810130119,
-0.0256241075694561,
-0.032576125115156174,
-0.07142073661088943,
0.011178245767951012,
-0.004788890480995178,
0.04577995836734772,
0.028541620820760727,
0.013770665042102337,
-0.014204123988747597,
0.011344960890710354,
0.004074099473655224,
0.01872210204601288,
0.04184548556804657,
0.021189486607909203,
0.03000871278345585,
-0.019689049571752548,
0.03797769546508789,
-0.036177169531583786,
-0.08022329211235046,
-0.05734998732805252,
-0.05948393791913986,
-0.018372001126408577,
0.020622653886675835,
-0.01340389158576727,
0.0022631571628153324,
0.030125413089990616,
0.01433749683201313,
-0.023906942456960678,
0.07748916745185852,
0.024140343070030212,
-0.03405988961458206,
0.008381600491702557,
-0.005168167408555746,
-0.007089558523148298,
0.040545105934143066,
-0.0412786528468132,
0.03697740286588669,
-0.0003063389449380338,
-0.03274283930659294,
-0.019438978284597397,
0.04691362380981445,
0.01395405177026987,
0.0069895293563604355,
0.03242608159780502,
-0.007510513998568058,
0.0696869045495987,
0.019755735993385315,
0.006789471488445997,
0.01713830977678299,
-0.020155852660536766,
-0.012828725390136242,
-0.0016671507619321346,
-0.09149323403835297,
-0.004442956764250994,
-0.018271971493959427,
0.008952599950134754,
0.014070752076804638,
-0.026507696136832237
]
|
30,052 | pfzy.score | fzy_scorer | Use fzy matching algorithem to match needle against haystack.
Note:
The `fzf` unordered search is not supported for performance concern.
When the provided `needle` is not a subsequence of `haystack` at all,
then `(-inf, None)` is returned.
See Also:
https://github.com/jhawthorn/fzy/blob/master/src/match.c
Args:
needle: Substring to find in haystack.
haystack: String to be searched and scored against.
Returns:
A tuple of matching score with a list of matching indices.
Examples:
>>> fzy_scorer("ab", "acb")
(0.89, [0, 2])
>>> fzy_scorer("ab", "acbabc")
(0.98, [3, 4])
>>> fzy_scorer("ab", "wc")
(-inf, None)
| def fzy_scorer(needle: str, haystack: str) -> SCORE_INDICES:
"""Use fzy matching algorithem to match needle against haystack.
Note:
The `fzf` unordered search is not supported for performance concern.
When the provided `needle` is not a subsequence of `haystack` at all,
then `(-inf, None)` is returned.
See Also:
https://github.com/jhawthorn/fzy/blob/master/src/match.c
Args:
needle: Substring to find in haystack.
haystack: String to be searched and scored against.
Returns:
A tuple of matching score with a list of matching indices.
Examples:
>>> fzy_scorer("ab", "acb")
(0.89, [0, 2])
>>> fzy_scorer("ab", "acbabc")
(0.98, [3, 4])
>>> fzy_scorer("ab", "wc")
(-inf, None)
"""
if _subsequence(needle, haystack):
return _score(needle, haystack)
else:
return SCORE_MIN, None
| (needle: str, haystack: str) -> Tuple[float, Optional[List[int]]] | [
0.03128237649798393,
-0.03244367241859436,
-0.0382501445710659,
0.003127784002572298,
0.03326020762324333,
0.008315051905810833,
-0.020231932401657104,
0.08912937343120575,
0.04151628538966179,
-0.053201813250780106,
0.005579658318310976,
0.06964139640331268,
-0.04108079895377159,
-0.022645246237516403,
0.027707766741514206,
0.00042159308213740587,
0.020032333210110664,
0.008442068472504616,
-0.03422190248966217,
0.03619973361492157,
-0.0028306557796895504,
0.009381083771586418,
0.04877437651157379,
0.02453235164284706,
-0.007357890717685223,
-0.023044442757964134,
0.014452675357460976,
-0.006981377024203539,
0.005570585839450359,
-0.021375080570578575,
-0.005239435005933046,
-0.013808520510792732,
-0.07475835084915161,
0.02266339212656021,
-0.03015737235546112,
0.0197783000767231,
0.026346873492002487,
0.013255090452730656,
-0.004822094924747944,
-0.03304246440529823,
-0.022518230602145195,
-0.026963811367750168,
0.003860397730022669,
0.019832735881209373,
-0.03453037142753601,
0.07606480270624161,
-0.07131075114011765,
-0.03289730101823807,
0.030919471755623817,
0.013536341488361359,
0.016893209889531136,
-0.10872621834278107,
-0.05262116715312004,
-0.0007694711675867438,
0.02527630515396595,
0.06064135953783989,
0.013209727592766285,
-0.02037709392607212,
0.020032333210110664,
-0.022699682042002678,
0.039883214980363846,
-0.04260500147938728,
-0.022554520517587662,
0.0356009416282177,
-0.06804461032152176,
-0.055488113313913345,
0.018907329067587852,
-0.03202633187174797,
-0.022209761664271355,
0.010778266936540604,
-0.03901224583387375,
0.01690228097140789,
0.030447695404291153,
-0.05585101619362831,
0.00037396184052340686,
0.05806473642587662,
-0.02059483528137207,
0.030338823795318604,
0.04213322326540947,
0.013690575957298279,
0.06002442166209221,
-0.009127050638198853,
-0.0065595004707574844,
-0.05864538252353668,
-0.025348886847496033,
0.016720829531550407,
0.04565339908003807,
0.022300487384200096,
0.02932269126176834,
0.03331464156508446,
-0.02453235164284706,
0.023153314366936684,
0.04576227068901062,
-0.03491142392158508,
0.009254067204892635,
0.00988007802516222,
-0.029050514101982117,
0.03442149981856346,
0.036544494330883026,
0.03745175525546074,
-0.002603840548545122,
0.1101052537560463,
0.02589324302971363,
0.048411473631858826,
0.0012418142287060618,
-0.0307743102312088,
-0.00946273747831583,
-0.039157405495643616,
0.0075665609911084175,
-0.01565026119351387,
-0.008056482300162315,
-0.0463792085647583,
0.013518196530640125,
0.019088782370090485,
-0.06978655606508255,
-0.023552509024739265,
-0.02340734750032425,
0.005466250702738762,
0.023461783304810524,
-0.014225860126316547,
-0.011213752441108227,
0.04358484223484993,
-0.030429551377892494,
0.013064566068351269,
0.011948633939027786,
-0.009934513829648495,
-0.001675031497143209,
0.020340802147984505,
-0.014860942959785461,
0.018979910761117935,
0.09500842541456223,
0.04039128124713898,
0.010469797998666763,
-0.04532678425312042,
0.009049933403730392,
0.04826631024479866,
0.09166970103979111,
0.012365974485874176,
-0.006305467337369919,
-0.026238001883029938,
0.06985913217067719,
-0.003821839112788439,
-0.025965824723243713,
-0.04579855874180794,
0.01659381203353405,
0.04859292507171631,
0.018998056650161743,
0.01435287669301033,
0.07022204250097275,
0.04714130610227585,
0.025040417909622192,
-0.002617449499666691,
0.046560660004615784,
0.0009049933287315071,
0.003556465031579137,
-0.04812115058302879,
-0.012220812030136585,
-0.0498993843793869,
0.04630662873387337,
0.034258194267749786,
0.0503348670899868,
-0.033223915845155716,
-0.036562640219926834,
-0.033949725329875946,
0.012474846094846725,
0.0022579471115022898,
-0.05432681739330292,
0.04481871798634529,
0.0060831885784864426,
-0.01912507228553295,
-0.02651018090546131,
-0.011984924785792828,
-0.10691169649362564,
-0.008523722179234028,
0.03111906908452511,
-0.0050806645303964615,
-0.04402032867074013,
0.009072614833712578,
0.009825642220675945,
-0.003413571510463953,
0.03556464985013008,
-0.007788840215653181,
-0.04558081924915314,
-0.011730891652405262,
0.014343804679811,
0.031681571155786514,
0.018362972885370255,
0.07272607833147049,
0.027544459328055382,
0.0022137181367725134,
-0.036363039165735245,
-0.000922571518458426,
-0.013699648901820183,
0.007108394056558609,
-0.0010070602875202894,
0.027598895132541656,
-0.01773696206510067,
-0.020123060792684555,
0.043221939355134964,
-0.031264230608940125,
-0.039048533886671066,
-0.004899212159216404,
0.04002837836742401,
-0.008224325254559517,
-0.003465738845989108,
0.00024325949198100716,
-0.0033273815643042326,
0.009435519576072693,
-0.11271817237138748,
-0.06082281097769737,
-0.06082281097769737,
-0.037923529744148254,
-0.08470193296670914,
-0.040717896074056625,
0.059552643448114395,
-0.0128014599904418,
0.09805682301521301,
-0.007348818238824606,
-0.01061495952308178,
-0.006768170744180679,
0.050770353525877,
-0.02549404837191105,
0.0426412895321846,
-0.0013155292253941298,
0.04870179668068886,
-0.03554650396108627,
0.036163441836833954,
0.00010135812044609338,
0.02133879065513611,
-0.03821385279297829,
-0.030030354857444763,
-0.050697773694992065,
0.10952460765838623,
-0.06510508805513382,
0.011667382903397083,
-0.007362427189946175,
-0.00957160908728838,
0.018272247165441513,
-0.025348886847496033,
-0.01435287669301033,
0.010242982767522335,
-0.013672430999577045,
0.014806508086621761,
0.006627545226365328,
-0.038758210837841034,
-0.016185544431209564,
0.034784406423568726,
-0.020413383841514587,
-0.014416385442018509,
0.025929532945156097,
-0.015024250373244286,
0.026800503954291344,
0.018544424325227737,
-0.03835901618003845,
0.004627033602446318,
-0.05370987951755524,
-0.02569364570081234,
0.00699952244758606,
0.03028438799083233,
0.03402230516076088,
-0.013717793859541416,
0.018435554578900337,
-0.001865556463599205,
0.0009333452908322215,
-0.07998417317867279,
0.04590743035078049,
-0.021883146837353706,
0.008029264397919178,
0.007965755648911,
0.012529280968010426,
-0.07998417317867279,
-0.04547194764018059,
0.008764145895838737,
0.009163341484963894,
-0.04960905760526657,
0.00417567091062665,
0.007484907284379005,
0.006124014966189861,
0.14733926951885223,
0.036580782383680344,
-0.01966942846775055,
-0.014806508086621761,
-0.06009700149297714,
0.03155455365777016,
0.058935705572366714,
0.021774275228381157,
-0.0012520208256319165,
-0.04057273268699646,
0.003034789813682437,
-0.03331464156508446,
-0.03264326974749565,
-0.04402032867074013,
0.004338978324085474,
-0.031028343364596367,
0.023171458393335342,
0.037814658135175705,
0.0034929567482322454,
-0.04848405346274376,
0.07490351051092148,
0.005951635539531708,
0.014262150973081589,
0.04823002219200134,
0.008859409019351006,
0.006827143020927906,
-0.013745011761784554,
0.015886148437857628,
-0.01914321817457676,
0.009081687778234482,
-0.07229059934616089,
0.005824618972837925,
-0.021375080570578575,
-0.012166377156972885,
-0.00010072020086226985,
-0.04982680082321167,
-0.023262184113264084,
0.03543763607740402,
0.01602223888039589,
0.02079443447291851,
0.007063030730932951,
0.0007711722864769399,
0.027217844501137733,
-0.004461458418518305,
0.02349807322025299,
0.04514533281326294,
0.07265350222587585,
0.05490746721625328,
-0.04866550862789154,
0.0012713001342490315,
0.052476003766059875,
0.017746035009622574,
0.006654763128608465,
-0.029794467613101006,
0.003261605044826865,
-0.014906306751072407,
0.03690739721059799,
0.0011255713179707527,
0.03995579481124878,
0.05585101619362831,
-0.038467887789011,
-0.010760121047496796,
0.008873017504811287,
-0.009743988513946533,
0.0036086325999349356,
0.006713734939694405,
0.02632872946560383,
0.013064566068351269,
-0.05937119200825691,
-0.03576424717903137,
0.0545082725584507,
-0.023135168477892876,
0.012828677892684937,
-0.026401309296488762,
-0.0006333819474093616,
-0.025820663198828697,
0.011068589985370636,
0.07094784826040268,
-0.023643234744668007,
-0.07446802407503128,
0.006985913496464491,
0.014588764868676662,
-0.04496388137340546,
-0.08724226802587509,
-0.03465738892555237,
-0.02663719840347767,
-0.0784599781036377,
-0.0037265766877681017,
-0.01300105731934309,
-0.0008993229712359607,
-0.006577645894140005,
0.007353354245424271,
0.003948855679482222,
0.03487513214349747,
0.0013075906317681074,
-0.050080835819244385,
0.002088969573378563,
0.012574644759297371,
0.023969849571585655,
0.04870179668068886,
0.02248194068670273,
-0.0041575259529054165,
0.024695657193660736,
-0.0024178519379347563,
-0.03110092505812645,
0.01712002418935299,
-0.05940748378634453,
0.008328660391271114,
-0.0782422348856926,
-0.02380654215812683,
0.036471910774707794,
0.021683549508452415,
-0.011023227125406265,
-0.0008443202241323888,
0.07606480270624161,
-0.061222005635499954,
0.00524850795045495,
-0.003998755011707544,
0.0215383879840374,
0.0021978409495204687,
-0.016738975420594215,
0.01716538704931736,
-0.0044796038419008255,
-0.0705486536026001,
0.023897267878055573,
-0.006391657050698996,
0.018907329067587852,
0.05875425413250923,
0.01580449566245079,
0.061947815120220184,
-0.015396228060126305,
0.06354459375143051,
-0.037488047033548355,
-0.05552440509200096,
-0.01699300855398178,
-0.023008150979876518,
-0.07657287269830704,
-0.003130052238702774,
-0.02788921818137169,
0.052875202149152756,
-0.000809163844678551,
0.008827654644846916,
0.025403322651982307,
-0.07983901351690292,
0.027308572083711624,
0.014806508086621761,
0.006096797063946724,
0.013064566068351269,
-0.0053619155660271645,
-0.017755107954144478,
-0.003293359186500311,
0.004236911423504353,
-0.06125829741358757,
-0.008083700202405453,
-0.043113067746162415,
-0.0428590327501297,
-0.011758108623325825,
-0.02320774830877781,
0.008097308687865734,
0.027290426194667816,
-0.01841740868985653,
-0.04271387308835983,
0.07250834256410599,
0.02338920161128044,
0.04721388965845108,
0.08034707605838776,
0.012211740016937256,
-0.02248194068670273,
0.009027251973748207,
0.029250111430883408,
0.002574354410171509,
0.009435519576072693,
0.023897267878055573,
-0.03795982152223587,
-0.05229455232620239,
0.06525024771690369,
-0.009979876689612865,
0.01654844917356968,
-0.013064566068351269,
-0.03160899132490158,
-0.03237108886241913,
-0.007679968606680632,
-0.00606050668284297,
0.024931546300649643,
0.06964139640331268,
0.011594802141189575,
-0.0859358087182045,
-0.01694764569401741,
0.024006139487028122,
-0.0022171202581375837,
0.01764623634517193,
-0.034058596938848495,
0.024677513167262077,
-0.040100958198308945,
-0.022191615775227547,
-0.06525024771690369,
0.05044373869895935,
0.06764541566371918,
-0.026673488318920135,
0.01103230006992817,
0.06993171572685242,
0.034258194267749786,
-0.03286101296544075,
-0.007698114030063152,
-0.005157781764864922,
0.02068556286394596,
0.0503348670899868,
-0.06848009675741196,
-0.02182871103286743,
-0.07744383811950684,
-0.005370988044887781,
-0.021483952179551125,
-0.00036432218621484935,
0.014733926393091679,
0.03496585786342621,
-0.0035020294599235058,
0.008455676957964897,
0.03159084543585777,
0.045399364084005356,
0.02444162406027317,
-0.09007292240858078,
0.006332685239613056,
-0.004391145892441273,
0.004640642553567886,
-0.0850648358464241,
0.026365019381046295,
-0.02288113534450531,
-0.009426446631550789,
-0.017682526260614395,
-0.03919369727373123,
0.03774207830429077,
0.009471810422837734,
-0.017972851172089577,
0.012638152576982975,
0.02569364570081234,
-0.029576724395155907,
-0.04275016114115715,
0.03391343355178833,
0.055270370095968246,
0.006990449968725443,
0.016802482306957245,
-0.007131075486540794,
-0.012928476557135582,
0.016058528795838356,
-0.0013676966773346066,
-0.024169446900486946,
0.04663323983550072,
-0.03661707416176796,
0.047068726271390915,
-0.011513148434460163,
0.07526641339063644,
-0.028941642493009567,
-0.021483952179551125,
-0.03169971704483032,
0.004275470040738583,
0.018762167543172836,
0.03015737235546112,
-0.01284682285040617,
0.008895698934793472,
-0.0496816411614418,
0.045290492475032806,
0.031155360862612724,
-0.0028329240158200264,
0.050806645303964615,
0.01164923794567585,
-0.00007740074943285435,
0.04605259373784065,
-0.0024359971284866333,
-0.03641747683286667,
-0.002730857115238905,
-0.0549437552690506,
-0.02485896460711956,
-0.016158327460289,
-0.036344897001981735,
0.03578239306807518,
-0.008986425586044788,
-0.017791397869586945,
0.06466960161924362,
-0.04115338250994682,
0.030828746035695076,
-0.03404045104980469,
-0.014225860126316547,
0.012012142688035965,
0.006595791317522526,
0.03596384450793266,
-0.05000825226306915,
-0.006509601138532162,
-0.03594570234417915,
0.06452443450689316,
0.012284320779144764,
-0.012447628192603588,
0.024314608424901962,
0.00584730040282011,
0.03309689834713936,
0.03523803502321243,
0.028360994532704353,
-0.027798492461442947,
0.000735448847990483,
-0.014234933070838451,
-0.11446011066436768,
0.0329698845744133,
0.012066577561199665,
0.005271189380437136,
-0.022391213104128838,
-0.010161329060792923,
0.010242982767522335,
-0.044564686715602875,
0.013409324921667576,
-0.014842798002064228,
0.04042757302522659,
-0.12984727323055267,
-0.019070636481046677,
0.0097258435562253,
-0.014380094595253468,
0.03839530795812607,
-0.032516252249479294,
-0.03589126467704773,
-0.04079047590494156,
-0.03777837008237839,
0.007611923851072788,
0.08724226802587509,
-0.025294451043009758,
-0.04180660843849182,
0.03367754817008972,
-0.009054469875991344,
-0.04387516528367996,
0.0837583839893341,
0.02861502766609192,
0.028324704617261887,
-0.03596384450793266,
-0.04754050448536873,
-0.007444080431014299,
0.011794399470090866,
0.041044510900974274,
0.00961697194725275,
-0.02828841283917427,
-0.03309689834713936,
0.029867049306631088,
0.010896210558712482,
-0.012102868407964706,
-0.05574214830994606,
0.0024541423190385103,
0.015886148437857628,
0.010379071347415447,
0.01606760174036026,
0.015595825389027596,
0.06031474471092224,
0.017990995198488235,
0.05842763930559158,
-0.04677840322256088,
0.0007207058370113373,
-0.024586787447333336,
-0.0036880180705338717,
0.03607271611690521,
0.03349609300494194,
-0.0670284777879715,
-0.024078719317913055,
0.0031708788592368364,
0.0033863536082208157,
0.023334765806794167,
-0.06644783169031143,
-0.017918415367603302,
-0.027852928265929222,
0.05795586481690407,
0.020975885912775993,
0.017791397869586945,
-0.024695657193660736,
-0.02778034657239914,
0.0037016270216554403,
-0.005030765198171139,
0.04412920027971268,
0.011377058923244476,
0.013926464132964611,
0.0031368567142635584,
-0.017709745094180107,
0.018871039152145386,
-0.0029508681036531925,
0.04271387308835983,
0.052766330540180206,
-0.029703741893172264,
-0.016720829531550407,
-0.002277226420119405,
0.009480882436037064,
0.019832735881209373,
0.03402230516076088,
0.06601234525442123,
-0.03532876446843147,
-0.00402143644168973,
0.046850983053445816,
-0.006074115633964539,
0.006373512092977762,
-0.0029463316313922405,
0.031863022595644,
0.05791957303881645,
-0.02404242940247059,
-0.016938572749495506,
-0.028832770884037018,
-0.028887206688523293,
-0.01238411944359541,
0.07138333469629288,
-0.005148708820343018,
0.010478870011866093,
0.016766192391514778,
0.006564036943018436,
0.00787956640124321,
0.052367132157087326,
0.05915344879031181,
0.023842832073569298,
0.003109638812020421,
-0.02837914042174816,
0.002676421543583274,
-0.04670582339167595,
-0.008591766469180584,
-0.047576792538166046,
0.022953715175390244,
-0.0784599781036377,
-0.009335720911622047,
0.00892291683703661,
-0.029504144564270973,
0.08085514605045319,
0.0788954570889473,
-0.05668569728732109,
-0.004069068003445864,
0.06470589339733124,
0.017192605882883072,
0.036653365939855576,
0.0060831885784864426,
0.0008539598784409463,
-0.06630267202854156,
0.015223847702145576,
-0.01227524783462286,
-0.055488113313913345,
-0.035727959126234055,
-0.04939131438732147,
-0.03766949847340584,
0.04786711558699608,
-0.025022272020578384,
-0.01914321817457676,
0.035528361797332764,
0.005978853441774845,
0.017446639016270638,
0.0007558622164651752,
0.005625021178275347,
-0.01643957756459713,
0.036163441836833954,
-0.008124526590108871,
-0.013853883370757103,
-0.05697602406144142,
0.02807067148387432,
-0.002208047779276967,
-0.014398240484297276,
0.005625021178275347,
-0.02057669125497341,
-0.02464122325181961,
-0.02558477409183979,
-0.0030778846703469753,
0.02912309393286705,
-0.01688413694500923,
0.02799808979034424,
-0.06318169087171555,
0.050770353525877,
-0.0012735683703795075,
0.07007687538862228,
-0.004654251504689455,
-0.03496585786342621,
-0.007112930063158274,
0.011776254512369633,
0.08107288926839828,
-0.000018978067600983195,
0.02092145010828972,
-0.0307743102312088,
0.0033455267548561096,
-0.0006764768622815609,
-0.015967803075909615,
0.01477021723985672,
0.017355913296341896,
-0.01813615672290325,
-0.003728844691067934,
-0.021175483241677284,
-0.05574214830994606,
-0.01881660334765911,
0.023842832073569298,
-0.02455049566924572,
0.01566840521991253,
0.0030211808625608683,
0.01584985852241516,
-0.02173798531293869,
0.0044705308973789215,
-0.03589126467704773,
0.06975026428699493
]
|
30,055 | pfzy.score | substr_scorer | Match needle against haystack using :meth:`str.find`.
Note:
Scores may be negative but the higher the score, the higher
the match rank. `-inf` score means no match found.
See Also:
https://github.com/aslpavel/sweep.py/blob/3f4a179b708059c12b9e5d76d1eb3c70bf2caadc/sweep.py#L837
Args:
needle: Substring to find in haystack.
haystack: String to be searched and scored against.
Returns:
A tuple of matching score with a list of matching indices.
Example:
>>> substr_scorer("ab", "awsab")
(-1.3, [3, 4])
>>> substr_scorer("ab", "abc")
(0.5, [0, 1])
>>> substr_scorer("ab", "iop")
(-inf, None)
>>> substr_scorer("ab", "asdafswabc")
(-1.6388888888888888, [7, 8])
>>> substr_scorer(" ", "asdf")
(0, [])
| def substr_scorer(needle: str, haystack: str) -> SCORE_INDICES:
"""Match needle against haystack using :meth:`str.find`.
Note:
Scores may be negative but the higher the score, the higher
the match rank. `-inf` score means no match found.
See Also:
https://github.com/aslpavel/sweep.py/blob/3f4a179b708059c12b9e5d76d1eb3c70bf2caadc/sweep.py#L837
Args:
needle: Substring to find in haystack.
haystack: String to be searched and scored against.
Returns:
A tuple of matching score with a list of matching indices.
Example:
>>> substr_scorer("ab", "awsab")
(-1.3, [3, 4])
>>> substr_scorer("ab", "abc")
(0.5, [0, 1])
>>> substr_scorer("ab", "iop")
(-inf, None)
>>> substr_scorer("ab", "asdafswabc")
(-1.6388888888888888, [7, 8])
>>> substr_scorer(" ", "asdf")
(0, [])
"""
indices = []
offset = 0
needle, haystack = needle.lower(), haystack.lower()
for needle in needle.split(" "):
if not needle:
continue
offset = haystack.find(needle, offset)
if offset < 0:
return SCORE_MIN, None
needle_len = len(needle)
indices.extend(range(offset, offset + needle_len))
offset += needle_len
if not indices:
return 0, indices
return (
-(indices[-1] + 1 - indices[0]) + 2 / (indices[0] + 1) + 1 / (indices[-1] + 1),
indices,
)
| (needle: str, haystack: str) -> Tuple[float, Optional[List[int]]] | [
0.008765874430537224,
-0.038386449217796326,
-0.015334606170654297,
0.000725193414837122,
0.04535920172929764,
-0.016832659021019936,
0.019084276631474495,
0.06366267800331116,
0.05396619066596031,
-0.0796055793762207,
-0.02418673224747181,
0.07720869779586792,
-0.022570651024580002,
-0.05371197685599327,
-0.012447451241314411,
0.003965298645198345,
0.024095941334962845,
-0.03568087890744209,
-0.04492340609431267,
0.02173537388443947,
0.007422167342156172,
0.022843025624752045,
0.015634216368198395,
-0.0021574220154434443,
-0.01861216314136982,
0.019665338099002838,
-0.01115821860730648,
-0.023278821259737015,
0.0034182826057076454,
-0.029034974053502083,
-0.0009215290192514658,
-0.014653673395514488,
-0.06809327751398087,
0.003944870550185442,
-0.019138749688863754,
0.012511004693806171,
0.07190649956464767,
-0.000058163008361589164,
0.032303452491760254,
-0.01697792299091816,
-0.05425672233104706,
-0.0313592255115509,
0.03871329873800278,
0.004405634943395853,
-0.045468151569366455,
0.04180019348859787,
-0.08367302268743515,
-0.07539287954568863,
0.01717766374349594,
0.019774287939071655,
0.0009924594778567553,
-0.06130210682749748,
-0.07720869779586792,
-0.023950675502419472,
0.0014447123976424336,
0.06351740658283234,
0.018503213301301003,
0.011430591344833374,
-0.014726306311786175,
-0.03076000325381756,
0.04917242377996445,
-0.029815776273608208,
-0.0136277349665761,
0.05149667710065842,
-0.08098560571670532,
-0.045141302049160004,
0.03166791424155235,
-0.029289187863469124,
-0.017186744138598442,
0.01805833727121353,
-0.022570651024580002,
-0.013881949707865715,
0.021699057891964912,
-0.059994716197252274,
0.03914909437298775,
0.06823854148387909,
0.006999989040195942,
0.021662741899490356,
0.06816591322422028,
0.02781837433576584,
0.05897785723209381,
-0.05538253113627434,
0.034936390817165375,
-0.046775542199611664,
0.027219152078032494,
0.010931240394711494,
0.002097273012623191,
0.005678979214280844,
0.005601807031780481,
0.02369645982980728,
-0.016142645850777626,
0.05149667710065842,
0.05788836628198624,
-0.026420190930366516,
-0.03980278968811035,
0.008498040959239006,
-0.0011053808266296983,
0.030360523611307144,
0.008370934054255486,
0.027654949575662613,
0.006891039665788412,
0.1284148395061493,
0.02142668515443802,
0.015942906960844994,
-0.014626435935497284,
-0.02137221023440361,
-0.010704263113439083,
-0.015225657261908054,
0.010568076744675636,
-0.010695184580981731,
0.012356660328805447,
-0.03860434889793396,
-0.01178467646241188,
0.021481160074472427,
-0.08258352428674698,
-0.021699057891964912,
-0.06925540417432785,
-0.006468861363828182,
0.0008670543902553618,
-0.017332008108496666,
-0.02669256553053856,
0.016306070610880852,
-0.040819648653268814,
0.014208797365427017,
-0.0175499077886343,
-0.02574833855032921,
0.003940330818295479,
0.02745520882308483,
-0.03076000325381756,
-0.0034341709688305855,
0.07677289843559265,
0.02494937740266323,
0.019211383536458015,
-0.0413643978536129,
0.04368864744901657,
0.036370888352394104,
0.0934058204293251,
0.05127877742052078,
-0.016887132078409195,
0.003125481540337205,
0.07183387130498886,
-0.0081439558416605,
-0.006822946481406689,
-0.015579741448163986,
0.037006426602602005,
0.04644869267940521,
0.015561583451926708,
0.0020450681913644075,
0.08142140507698059,
0.032739248126745224,
0.005215945187956095,
-0.03114132583141327,
0.029507087543606758,
0.010531759820878506,
0.026293084025382996,
-0.03179502114653587,
0.0044646491296589375,
-0.06885591894388199,
0.05719835311174393,
0.005896877963095903,
0.06446163356304169,
-0.01829439401626587,
-0.016333308070898056,
-0.017695173621177673,
0.04917242377996445,
0.018439659848809242,
-0.03747854009270668,
0.04161861166357994,
-0.013355361297726631,
-0.04412444308400154,
-0.04692080616950989,
-0.012274947948753834,
-0.06478848308324814,
0.008434487506747246,
-0.003599864663556218,
-0.03553561121225357,
-0.033247679471969604,
0.034319013357162476,
-0.013055751100182533,
0.012274947948753834,
0.05930470675230026,
0.005774309858679771,
-0.00769000081345439,
0.014944205060601234,
-0.029307346791028976,
0.02600255236029625,
0.017313851043581963,
0.09158999472856522,
0.0021937384735792875,
-0.01334628276526928,
-0.03159528225660324,
-0.03284819796681404,
-0.016070013865828514,
0.008284682407975197,
-0.02244354411959648,
0.035935092717409134,
-0.036679577082395554,
-0.0022641015239059925,
-0.013046671636402607,
-0.028127063065767288,
-0.036243781447410583,
0.0025671166367828846,
0.01716858521103859,
-0.005134233273565769,
0.05269511789083481,
0.0005946813034825027,
-0.02607518620789051,
0.01697792299091816,
-0.09042787551879883,
-0.07234229892492294,
-0.07597394287586212,
-0.01547987200319767,
-0.01200257521122694,
-0.02124510332942009,
0.060067348182201385,
-0.015216577798128128,
0.08309195935726166,
0.0015502569731324911,
-0.031486332416534424,
-0.02482226863503456,
0.07989611476659775,
-0.03911278024315834,
0.048881895840168,
0.0019372537499293685,
0.015053153969347477,
-0.028744442388415337,
0.004584947135299444,
-0.016269754618406296,
0.07197913527488708,
-0.005120614543557167,
-0.005883259233087301,
-0.04118281602859497,
0.06943698227405548,
-0.059195756912231445,
0.014018136076629162,
0.026874147355556488,
-0.02137221023440361,
0.006518796551972628,
-0.0017885834677144885,
-0.03658878803253174,
-0.0038563492707908154,
0.009360555559396744,
-0.01792214997112751,
0.018276235088706017,
-0.012311264872550964,
-0.008003230206668377,
0.019193224608898163,
-0.030469471588730812,
-0.01710503175854683,
0.006677680648863316,
-0.022643284872174263,
0.007562893442809582,
0.016015538945794106,
-0.03252134844660759,
0.03114132583141327,
-0.04525025188922882,
-0.034319013357162476,
0.028544701635837555,
0.030632896348834038,
0.04692080616950989,
0.012111524119973183,
0.014299588277935982,
-0.002603433094918728,
-0.032739248126745224,
-0.056254126131534576,
0.037060901522636414,
-0.021263260394334793,
0.008116718381643295,
0.017123188823461533,
0.01741372048854828,
-0.016896212473511696,
-0.005520095117390156,
0.024150416254997253,
0.008389092050492764,
-0.0639532059431076,
-0.0004692761576734483,
-0.042090725153684616,
0.03451875224709511,
0.11229035258293152,
0.040202271193265915,
-0.029434453696012497,
-0.0023991530761122704,
-0.07070805877447128,
0.018140049651265144,
0.09137210249900818,
0.003459138562902808,
0.03867698088288307,
-0.05607254430651665,
0.0062418836168944836,
-0.02669256553053856,
-0.041328079998493195,
-0.03214002773165703,
-0.0013210095930844545,
-0.008847586810588837,
-0.003579436568543315,
0.05422040820121765,
0.03529955446720123,
0.0034046638756990433,
0.04968085512518883,
0.026983095332980156,
-0.0013459770707413554,
0.048155564814805984,
-0.047719769179821014,
-0.04216335713863373,
0.004639422055333853,
0.02796364016830921,
0.008829427883028984,
0.024858586490154266,
-0.022298278287053108,
0.001607001293450594,
-0.034300852566957474,
-0.03622562438249588,
0.03860434889793396,
-0.036625105887651443,
-0.0076673030853271484,
0.028435751795768738,
0.04811925068497658,
-0.023787250742316246,
-0.00310278357937932,
-0.018394263461232185,
0.04612184688448906,
0.004852781072258949,
0.00021179846953600645,
0.046848174184560776,
0.08468987792730331,
0.029434453696012497,
-0.04274442046880722,
0.016315149143338203,
0.06987278163433075,
0.030414996668696404,
-0.01968349702656269,
-0.013319045305252075,
0.019719813019037247,
-0.03157712146639824,
0.04859136417508125,
-0.014199717901647091,
0.0238054096698761,
0.0526588000357151,
-0.05509199947118759,
-0.004273987840861082,
0.016896212473511696,
-0.02612966112792492,
-0.007372232154011726,
0.01340983621776104,
0.0501529686152935,
-0.0003359268303029239,
-0.04121913015842438,
-0.021208785474300385,
0.01309206709265709,
-0.03500902280211449,
-0.016178961843252182,
0.014226955361664295,
-0.012238631956279278,
-0.020881937816739082,
0.014063531532883644,
0.05276774987578392,
-0.006541494280099869,
-0.09681956470012665,
0.030596578493714333,
-0.025911761447787285,
-0.041509661823511124,
-0.03678852692246437,
0.008266523480415344,
-0.03591693565249443,
-0.10350178182125092,
-0.008616069331765175,
-0.028417594730854034,
-0.026710722595453262,
-0.012193236500024796,
0.009905301965773106,
0.03252134844660759,
0.01948375627398491,
-0.01256547961384058,
-0.015416317619383335,
0.030850794166326523,
0.007453944068402052,
-0.02732810191810131,
0.03328399360179901,
-0.02494937740266323,
-0.02267960086464882,
0.028308644890785217,
-0.019629022106528282,
-0.010785975493490696,
0.021571950986981392,
-0.021953273564577103,
0.004802845884114504,
-0.028417594730854034,
-0.018221760168671608,
0.062391601502895355,
0.06297266483306885,
-0.00971464067697525,
-0.02093641273677349,
0.0413643978536129,
-0.05723467096686363,
0.025675704702734947,
-0.00789428036659956,
0.0017023319378495216,
-0.014099848456680775,
0.0020257749129086733,
-0.009987014345824718,
-0.008983773179352283,
-0.02356935292482376,
0.027927322313189507,
-0.0012903675669804215,
0.01811281219124794,
0.0764097347855568,
0.006028525065630674,
0.017903992906212807,
-0.01224771048873663,
0.0338468998670578,
-0.06398952007293701,
-0.02789100632071495,
0.042780738323926926,
-0.043216533958911896,
-0.07285072654485703,
-0.06250055134296417,
-0.009896223433315754,
0.054365672171115875,
-0.03707905858755112,
-0.03560824319720268,
-0.021517476066946983,
-0.0939868837594986,
0.07310494035482407,
-0.03388321399688721,
-0.01172112300992012,
0.02306092344224453,
-0.0025852748658508062,
-0.05788836628198624,
0.01697792299091816,
-0.018957167863845825,
-0.06028524786233902,
0.03295714780688286,
-0.05113351345062256,
-0.04092859849333763,
0.005111535545438528,
-0.007867042906582355,
0.021208785474300385,
0.05345776304602623,
-0.012792456895112991,
-0.06362635642290115,
0.057016771286726,
0.01369128841906786,
0.05810626223683357,
0.11664832383394241,
0.03940330818295479,
-0.02198958955705166,
-0.028744442388415337,
0.018475975841283798,
-0.006328135263174772,
-0.012365738861262798,
0.04456024244427681,
-0.042018093168735504,
-0.012901406735181808,
0.07350442558526993,
-0.005701676942408085,
0.00820750929415226,
-0.04880926012992859,
0.002868996700271964,
-0.010813212022185326,
-0.004410174675285816,
-0.009460425935685635,
0.0250583253800869,
0.020155610516667366,
0.014217875897884369,
-0.06823854148387909,
-0.0025398791767656803,
0.04456024244427681,
-0.018775586038827896,
-0.004507774952799082,
-0.02349672093987465,
0.051351409405469894,
-0.0501529686152935,
-0.009460425935685635,
-0.0570530891418457,
0.039766475558280945,
0.0676574781537056,
-0.021517476066946983,
0.006260042078793049,
0.05803363025188446,
0.04031122103333473,
-0.014989600516855717,
-0.009487663395702839,
-0.007226966321468353,
0.02807258814573288,
0.04005700722336769,
-0.03766012191772461,
-0.041073866188526154,
-0.04931769147515297,
-0.0035817064344882965,
-0.013836554251611233,
-0.012238631956279278,
-0.004203625023365021,
0.021463001146912575,
-0.00011008413275703788,
0.0054928576573729515,
0.0005705649382434785,
0.0313592255115509,
0.0557820126414299,
-0.07125280797481537,
0.013981820084154606,
0.01597014255821705,
-0.005660821218043566,
-0.04234493896365166,
0.019828762859106064,
-0.012265869416296482,
0.017223060131072998,
-0.030723687261343002,
0.014009056612849236,
0.04623079672455788,
-0.025022009387612343,
-0.03157712146639824,
0.00848896149545908,
0.04539551958441734,
-0.03034236468374729,
-0.033501893281936646,
0.04379759728908539,
0.04310758411884308,
-0.009387793019413948,
0.015334606170654297,
-0.017822280526161194,
-0.021590108051896095,
0.02129957638680935,
0.005506476387381554,
-0.013291807845234871,
0.03486375883221626,
-0.05432935804128647,
-0.011294404976069927,
-0.025911761447787285,
0.01981060393154621,
-0.012683507986366749,
-0.03275740519165993,
-0.011666648089885712,
0.02638387493789196,
-0.013418915681540966,
0.023678302764892578,
0.041582293808460236,
0.01673278771340847,
-0.08251089602708817,
0.0814940333366394,
0.07070805877447128,
-0.016197120770812035,
0.031123166903853416,
0.0071089379489421844,
0.022007746621966362,
0.020700355991721153,
0.04485077038407326,
-0.07099859416484833,
0.019338490441441536,
-0.08403618633747101,
-0.011820993386209011,
0.03849539905786514,
-0.001010617706924677,
0.03577166795730591,
0.00543838320299983,
-0.016514889895915985,
0.08178456872701645,
-0.058069948107004166,
-0.01266534999012947,
-0.022516177967190742,
0.011031110771000385,
0.012574558146297932,
-0.02375093474984169,
0.036752212792634964,
-0.008697781711816788,
-0.00006632001168327406,
-0.020954571664333344,
0.02988841012120247,
-0.03019709885120392,
-0.038459084928035736,
0.007522037252783775,
-0.008865744806826115,
0.007217887323349714,
0.0009839478880167007,
0.024967534467577934,
-0.03335662558674812,
0.023587511852383614,
-0.016251595690846443,
-0.12638112902641296,
0.03940330818295479,
0.048155564814805984,
0.03464585915207863,
-0.008693241514265537,
0.005206866189837456,
0.0076582240872085094,
-0.04092859849333763,
0.04623079672455788,
-0.029234712943434715,
-0.008352775126695633,
-0.0870867595076561,
-0.018575845286250114,
0.04695712402462959,
0.0051887077279388905,
0.029252871870994568,
-0.004242211114615202,
-0.03295714780688286,
-0.006763932295143604,
-0.048663996160030365,
0.029688669368624687,
0.07201544940471649,
-0.03798697143793106,
-0.032575823366642,
0.0035045340191572905,
0.020645881071686745,
-0.000508713535964489,
0.0726691484451294,
0.01981060393154621,
0.04249020665884018,
-0.024586211889982224,
-0.02796364016830921,
0.030669212341308594,
0.013772999867796898,
-0.013010355643928051,
0.002415041672065854,
-0.04118281602859497,
-0.017949387431144714,
0.005279498640447855,
0.009051866829395294,
0.00410375464707613,
-0.044342342764139175,
0.019211383536458015,
0.01653304696083069,
0.004544091410934925,
0.020282717421650887,
0.010068725794553757,
0.059994716197252274,
0.036443520337343216,
0.035263240337371826,
-0.026492824777960777,
0.0013777540298178792,
-0.011893625371158123,
-0.01785859651863575,
0.05233195424079895,
0.05233195424079895,
-0.06402584165334702,
-0.022534335032105446,
0.027364417910575867,
0.046085529029369354,
0.020954571664333344,
-0.05875995755195618,
0.01516210287809372,
0.004421523306518793,
0.022534335032105446,
0.01730477251112461,
0.009850827045738697,
-0.020591408014297485,
-0.033937688916921616,
0.0076582240872085094,
0.009896223433315754,
-0.0011859579244628549,
0.029289187863469124,
0.04441497474908829,
-0.004557710140943527,
0.015071311965584755,
-0.023224346339702606,
-0.032248977571725845,
0.0432528480887413,
0.025966236367821693,
-0.03802328556776047,
-0.020972728729248047,
-0.0025693862698972225,
0.009760036133229733,
0.009778195060789585,
0.034119270741939545,
0.07034489512443542,
-0.02643834985792637,
0.00681386748328805,
0.019901394844055176,
0.02563938871026039,
0.0073949298821389675,
0.031068691983819008,
0.047356605529785156,
0.04350706562399864,
-0.013291807845234871,
-0.006123855244368315,
-0.02513095922768116,
-0.01655120588839054,
0.023151714354753494,
-0.017903992906212807,
-0.032684773206710815,
0.010867686942219734,
0.00999609287828207,
0.013954582624137402,
0.01224771048873663,
0.004119643475860357,
0.053675662726163864,
0.02349672093987465,
0.0400933213531971,
-0.022280121222138405,
0.03954857587814331,
-0.06653167307376862,
0.01133980043232441,
-0.043579697608947754,
-0.0027804754208773375,
-0.07720869779586792,
-0.039076462388038635,
0.020918255671858788,
-0.04423339292407036,
0.016623839735984802,
0.05156930908560753,
-0.047901351004838943,
0.01930217444896698,
0.04023858904838562,
-0.010894924402236938,
0.029234712943434715,
-0.051169827580451965,
-0.008634227328002453,
-0.07909715175628662,
-0.007009068038314581,
0.010204912163317204,
-0.02763679251074791,
-0.010141358710825443,
-0.038858562707901,
-0.01961086317896843,
-0.013936423696577549,
0.004487346857786179,
-0.043906547129154205,
0.015370922163128853,
0.005964971147477627,
0.0024331999011337757,
0.00557910930365324,
-0.006042143329977989,
-0.04143702983856201,
0.06976383179426193,
-0.015761323273181915,
-0.029870251193642616,
-0.07161597162485123,
0.07219703495502472,
-0.002346948254853487,
-0.0017715600552037358,
0.0029688668437302113,
-0.0532761812210083,
-0.010649788193404675,
-0.0030256113968789577,
-0.024204891175031662,
0.013736683875322342,
0.003711083671078086,
0.01710503175854683,
-0.0946405753493309,
0.07183387130498886,
-0.015125786885619164,
0.0526588000357151,
-0.006182869430631399,
-0.04441497474908829,
0.0016784992767497897,
-0.022007746621966362,
0.07887925207614899,
-0.01340983621776104,
0.031177641823887825,
-0.017204901203513145,
-0.010767816565930843,
-0.012520084157586098,
0.011203614063560963,
0.00002920563201769255,
0.02632940001785755,
-0.02896234020590782,
-0.0136277349665761,
0.01463551539927721,
-0.0802592784166336,
-0.03577166795730591,
0.009823590517044067,
0.01544355507940054,
-0.008561594411730766,
-0.0407470166683197,
-0.00026967775193043053,
-0.054801471531391144,
0.020900096744298935,
-0.01200257521122694,
0.06068472936749458
]
|
30,057 | networkx.exception | AmbiguousSolution | Raised if more than one valid solution exists for an intermediary step
of an algorithm.
In the face of ambiguity, refuse the temptation to guess.
This may occur, for example, when trying to determine the
bipartite node sets in a disconnected bipartite graph when
computing bipartite matchings.
| class AmbiguousSolution(NetworkXException):
"""Raised if more than one valid solution exists for an intermediary step
of an algorithm.
In the face of ambiguity, refuse the temptation to guess.
This may occur, for example, when trying to determine the
bipartite node sets in a disconnected bipartite graph when
computing bipartite matchings.
"""
| null | [
-0.0287209153175354,
-0.03153388202190399,
0.026678379625082016,
0.059771038591861725,
-0.044398270547389984,
-0.016116321086883545,
-0.030458861961960793,
-0.02986760251224041,
0.07460629194974899,
-0.03440059721469879,
0.01255980134010315,
0.01339294109493494,
-0.036514800041913986,
-0.013957325369119644,
-0.055399294942617416,
0.016492577269673347,
0.011386238969862461,
0.04500744864344597,
-0.011654994450509548,
0.05149339511990547,
-0.020120766013860703,
0.04694247990846634,
-0.006185836624354124,
0.06349776685237885,
0.010741228237748146,
0.016259657219052315,
0.03251931443810463,
-0.02893591858446598,
0.011878956109285355,
-0.008855465799570084,
-0.09460164606571198,
-0.019852010533213615,
-0.033558499068021774,
0.006956266704946756,
0.005245195236057043,
0.018705325201153755,
0.02382958121597767,
0.06339026987552643,
-0.07998138666152954,
-0.021213700994849205,
-0.05403760448098183,
-0.055757634341716766,
-0.012004375457763672,
-0.017997603863477707,
-0.006517300847917795,
-0.03346891328692436,
0.027448810636997223,
0.03325391188263893,
-0.07575298100709915,
-0.038163162767887115,
0.025585444644093513,
-0.0574418306350708,
0.009057031944394112,
0.02311290055513382,
-0.03051261231303215,
0.06435778737068176,
-0.013769197277724743,
0.07281459867954254,
-0.017773641273379326,
-0.014297747984528542,
-0.048268336802721024,
0.034920189529657364,
0.024958349764347076,
-0.009289952926337719,
-0.006150002591311932,
0.0002719741314649582,
-0.016170073300600052,
-0.004105227533727884,
-0.05081254988908768,
0.02239622175693512,
0.0025598881766200066,
0.0071399156004190445,
-0.054575115442276,
0.02499418333172798,
0.09159158915281296,
-0.000517072796355933,
0.010920397937297821,
0.05737016350030899,
-0.005043629091233015,
-0.019260751083493233,
0.002302331617102027,
-0.04984503239393234,
-0.03146221116185188,
-0.056975990533828735,
-0.0073414817452430725,
-0.023148735985159874,
0.011009982787072659,
0.005608013831079006,
0.029455510899424553,
-0.0581585094332695,
-0.022808313369750977,
-0.019439920783042908,
-0.020192433148622513,
0.02490459941327572,
0.014190246351063251,
0.07360294461250305,
0.010490390472114086,
-0.06941036880016327,
0.006203753408044577,
-0.08843820542097092,
-0.04927168786525726,
0.04816083610057831,
-0.04923585429787636,
0.019762426614761353,
-0.02348915860056877,
-0.0796947181224823,
0.0029854164458811283,
-0.03827066347002983,
-0.005074983928352594,
-0.024367090314626694,
-0.07553797960281372,
0.019869929179549217,
-0.012756887823343277,
0.040456537157297134,
0.010642684996128082,
0.022772477939724922,
-0.009737877175211906,
0.014727755449712276,
0.011287695728242397,
0.03361225128173828,
0.03423934429883957,
0.05765683576464653,
-0.09309661388397217,
0.030458861961960793,
0.04704998433589935,
-0.016259657219052315,
0.03509936109185219,
0.012658344581723213,
0.00037513673305511475,
-0.03336141258478165,
0.03667605295777321,
0.004118665121495724,
-0.011144360527396202,
0.02827299013733864,
-0.013509401120245457,
0.07861969619989395,
-0.029419677332043648,
-0.021876629441976547,
-0.010938314720988274,
0.004963002633303404,
-0.016116321086883545,
-0.002770412713289261,
-0.006920432671904564,
0.022503724321722984,
0.035206861793994904,
0.043681591749191284,
-0.044684942811727524,
-0.014163371175527573,
-0.00741314934566617,
-0.0011690828250721097,
-0.010364972054958344,
0.0011713224230334163,
-0.0240625012665987,
-0.064644455909729,
-0.048268336802721024,
-0.008273164741694927,
0.02993926964700222,
-0.010956231504678726,
-0.019439920783042908,
-0.03330766037106514,
-0.010320179164409637,
-0.07632632553577423,
0.06349776685237885,
0.04984503239393234,
-0.0056931194849312305,
-0.05020337179303169,
-0.029115088284015656,
-0.041889894753694534,
-0.0165194533765316,
0.027233805507421494,
-0.053249258548021317,
0.014709838666021824,
-0.07668466120958328,
-0.05203090235590935,
-0.008631504140794277,
-0.015104012563824654,
0.014853174798190594,
0.011753537692129612,
0.03251931443810463,
-0.02540627494454384,
0.014441084116697311,
-0.045831628143787384,
-0.04859084263443947,
-0.03268056735396385,
-0.009209326468408108,
0.06912370026111603,
0.031032204627990723,
-0.009352662600576878,
0.03409601002931595,
-0.0031085957307368517,
-0.008125349879264832,
-0.026875466108322144,
-0.00002257119194837287,
0.02031785249710083,
0.05009587109088898,
-0.041818227618932724,
0.014190246351063251,
-0.000919364916626364,
0.05253257974982262,
0.018472403287887573,
-0.037016477435827255,
-0.015050261281430721,
0.04429076984524727,
0.04973753169178963,
-0.020282018929719925,
0.05307008698582649,
-0.034293096512556076,
-0.03638938069343567,
-0.027448810636997223,
0.009083908051252365,
-0.013760238885879517,
-0.03612062707543373,
0.02592586725950241,
0.02619462087750435,
0.007166791241616011,
0.015516102313995361,
0.024510426446795464,
-0.014011076651513577,
0.012577718123793602,
0.018705325201153755,
0.05823017656803131,
-0.06869369000196457,
0.06589864194393158,
-0.005782704800367355,
0.01995951309800148,
-0.01716446503996849,
-0.021643709391355515,
0.025531692430377007,
0.013070435263216496,
-0.04285741224884987,
0.02791465073823929,
-0.007256376091390848,
0.007251896895468235,
-0.026087120175361633,
0.027126304805278778,
0.0035453219898045063,
-0.022718727588653564,
-0.04300074651837349,
0.044398270547389984,
-0.005433323327451944,
-0.0724920928478241,
-0.040743205696344376,
-0.028093820437788963,
0.0013314554234966636,
0.040528204292058945,
-0.03366599977016449,
0.022575391456484795,
0.009451205842196941,
0.0021433185320347548,
-0.004226167220622301,
-0.031247209757566452,
-0.002427750499919057,
-0.0524250753223896,
-0.05231757462024689,
0.058624349534511566,
-0.06923120468854904,
-0.0882948637008667,
-0.0233458224684,
0.032501399517059326,
0.024653760716319084,
-0.015677355229854584,
0.07460629194974899,
-0.024098334833979607,
0.025012100115418434,
-0.06786951422691345,
0.02864924818277359,
-0.06865786015987396,
0.05163672938942909,
-0.013840865343809128,
0.02741297520697117,
0.07747301459312439,
0.03146221116185188,
-0.007126478012651205,
0.043896596878767014,
-0.0063470895402133465,
0.04830417037010193,
-0.009133179672062397,
0.06998371332883835,
-0.038234829902648926,
0.03683730587363243,
-0.02597961761057377,
0.024958349764347076,
-0.0032564105931669474,
0.010275387205183506,
-0.039883192628622055,
0.020729944109916687,
-0.02535252273082733,
-0.047551658004522324,
0.018991995602846146,
-0.015614646486938,
0.055040955543518066,
0.011977499350905418,
0.05421677604317665,
0.012685220688581467,
-0.049343355000019073,
0.042678240686655045,
0.009719960391521454,
-0.0024344692938029766,
0.0366402193903923,
0.011995417065918446,
0.021482456475496292,
0.041961561888456345,
-0.02139287069439888,
-0.03613854572176933,
-0.018938245251774788,
-0.03547561541199684,
0.013043560087680817,
0.0036125106271356344,
0.04515078291296959,
-0.01644778624176979,
-0.039309848099946976,
0.029455510899424553,
0.006535217631608248,
0.0082597266882658,
0.038593169301748276,
0.05880352109670639,
0.024815013632178307,
-0.012801680713891983,
-0.0007525130640715361,
0.053894270211458206,
-0.0660419836640358,
0.07388961315155029,
-0.02936592698097229,
-0.012353756465017796,
-0.05686848610639572,
0.02499418333172798,
0.025585444644093513,
-0.008524002507328987,
-0.0004283277376089245,
0.0351531095802784,
-0.026875466108322144,
-0.04357409104704857,
-0.00789690762758255,
0.004508359357714653,
-0.06905203312635422,
-0.024528343230485916,
0.0695895403623581,
0.030566364526748657,
0.09775502979755402,
-0.007507213857024908,
0.07066456228494644,
0.020013263449072838,
-0.006136565003544092,
-0.004949565045535564,
0.07625465840101242,
0.008927133865654469,
-0.043323252350091934,
-0.009280994534492493,
0.006933870259672403,
-0.006163440179079771,
-0.08213142305612564,
0.06167023628950119,
0.012515009380877018,
-0.02664254605770111,
0.08643150329589844,
0.06331860274076462,
-0.04558079317212105,
-0.037303145974874496,
0.031551796942949295,
0.04285741224884987,
-0.004537474829703569,
-0.04464910924434662,
-0.0337555855512619,
0.01680612564086914,
0.00003653383828350343,
-0.011690828017890453,
-0.005321342498064041,
0.013912533409893513,
-0.003097397508099675,
-0.038664836436510086,
-0.05260424688458443,
-0.07374627888202667,
-0.035995207726955414,
-0.025370441377162933,
-0.02253955788910389,
0.038593169301748276,
-0.007323564495891333,
0.047551658004522324,
-0.014960676431655884,
-0.02592586725950241,
0.03819899633526802,
-0.020586607977747917,
-0.010364972054958344,
0.007623673882335424,
-0.03862900286912918,
-0.017119672149419785,
0.037733156234025955,
0.022234968841075897,
0.0638561099767685,
0.08592982590198517,
0.01522047258913517,
-0.0667586624622345,
0.041029877960681915,
-0.0045912256464362144,
-0.01679716631770134,
-0.02003118023276329,
0.02347123995423317,
0.012004375457763672,
-0.03318224102258682,
-0.0703778862953186,
-0.013652737252414227,
0.015247347764670849,
-0.0016573204193264246,
0.028040070086717606,
0.003657303052023053,
0.00887338351458311,
0.02664254605770111,
0.034705184400081635,
0.00667855329811573,
-0.023292070254683495,
-0.03812732920050621,
-0.021858712658286095,
0.030673865228891373,
-0.014324624091386795,
-0.05020337179303169,
0.039453186094760895,
0.0116729112342,
0.009737877175211906,
0.03239389508962631,
0.008842028677463531,
0.061921074986457825,
-0.0019484712975099683,
0.0732804387807846,
0.03273431956768036,
-0.009097345173358917,
-0.04386076331138611,
-0.04751582443714142,
-0.03217889368534088,
0.005245195236057043,
-0.007440024986863136,
-0.02089119516313076,
-0.03260890021920204,
0.05708349123597145,
-0.07374627888202667,
0.0031735447701066732,
-0.059842705726623535,
-0.0480891689658165,
-0.029473427683115005,
0.021285369992256165,
0.028398409485816956,
0.036066874861717224,
0.0021310006268322468,
-0.004206010606139898,
0.010974149219691753,
0.030781367793679237,
-0.08514147996902466,
0.021285369992256165,
-0.02003118023276329,
-0.04629747197031975,
0.015632562339305878,
0.031068040058016777,
-0.038163162767887115,
-0.015964027494192123,
-0.008483689278364182,
-0.0008353790617547929,
0.006279900670051575,
-0.07840469479560852,
0.006015625316649675,
-0.04099404439330101,
0.018203649669885635,
0.008416499942541122,
0.01960117369890213,
-0.0020794891752302647,
0.009702043607831001,
-0.05264008045196533,
-0.015569853596389294,
0.0013213771162554622,
-0.011601243168115616,
0.022360388189554214,
-0.02182287909090519,
-0.019995346665382385,
-0.03051261231303215,
-0.009460164234042168,
-0.05930519476532936,
-0.023292070254683495,
-0.026373790577054024,
0.0172361321747303,
0.03079928457736969,
0.05260424688458443,
-0.018938245251774788,
-0.00045240367762744427,
0.0066337608732283115,
0.029545096680521965,
0.005805100779980421,
0.008815153501927853,
-0.016402993351221085,
-0.04343075305223465,
-0.044684942811727524,
-0.031408462673425674,
-0.011045816354453564,
-0.009809545241296291,
-0.015014427714049816,
-0.01203125063329935,
0.012317921966314316,
0.039739858359098434,
0.018436569720506668,
-0.039381518959999084,
-0.02606920339167118,
-0.008102953433990479,
-0.0531417578458786,
0.030118439346551895,
-0.03956068679690361,
-0.025245022028684616,
-0.004530755802989006,
0.09969006478786469,
-0.01339294109493494,
-0.0008057040977291763,
-0.02175121009349823,
0.031175540760159492,
-0.007767010014504194,
-0.043824926018714905,
-0.022414138540625572,
0.06855035573244095,
0.028559662401676178,
0.05586513504385948,
0.008223893120884895,
-0.022718727588653564,
-0.08571482449769974,
0.029473427683115005,
0.028111737221479416,
-0.0035386031959205866,
0.000992712564766407,
0.02304123342037201,
0.057477664202451706,
0.004100748337805271,
-0.01475463155657053,
0.012147710658609867,
-0.05231757462024689,
-0.006293338257819414,
0.0005590657237917185,
-0.010669560171663761,
0.0026808278635144234,
0.02311290055513382,
0.07345961034297943,
-0.003455737140029669,
0.021142033860087395,
0.006154481787234545,
0.011905831284821033,
-0.009612458758056164,
0.027162138372659683,
-0.016492577269673347,
0.03135471045970917,
-0.028667164966464043,
-0.018508238717913628,
0.04199739545583725,
-0.009469122625887394,
-0.013993159867823124,
0.040814876556396484,
-0.05256841331720352,
0.009881213307380676,
-0.013070435263216496,
0.027108388021588326,
0.041459888219833374,
-0.02606920339167118,
0.05550679564476013,
-0.027162138372659683,
-0.02786090038716793,
0.09101824462413788,
0.05066921189427376,
0.016286533325910568,
-0.009379537776112556,
-0.05414510518312454,
0.028971752151846886,
-0.05059754475951195,
0.010535183362662792,
-0.02160787582397461,
0.011045816354453564,
-0.04099404439330101,
0.033773504197597504,
0.040098197758197784,
0.008470251224935055,
-0.008295560255646706,
0.00997975654900074,
-0.00305036548525095,
-0.027753397822380066,
-0.02246789075434208,
-0.0008185819024220109,
-0.013536276295781136,
-0.043609924614429474,
-0.029813850298523903,
-0.010266427882015705,
0.01657320372760296,
0.016349243000149727,
0.010105175897479057,
0.04532995447516441,
0.060631051659584045,
0.009612458758056164,
-0.029061337932944298,
-0.0175765547901392,
0.0037132936995476484,
-0.04859084263443947,
-0.026821715757250786,
0.05547096207737923,
-0.022808313369750977,
0.011502699926495552,
0.07940804213285446,
0.02139287069439888,
-0.043466586619615555,
0.06349776685237885,
-0.06378444284200668,
-0.019278667867183685,
0.038521502166986465,
0.025370441377162933,
0.011914790607988834,
0.07113040238618851,
-0.0020918070804327726,
-0.05737016350030899,
-0.028900085017085075,
0.01823052577674389,
-0.01130561251193285,
0.05823017656803131,
0.014046910218894482,
0.0014020034577697515,
-0.04486411064863205,
-0.08385145664215088,
-0.010454556904733181,
-0.007995450869202614,
0.032501399517059326,
-0.061562735587358475,
0.03409601002931595,
-0.004456848371773958,
0.01008725818246603,
-0.039596520364284515,
-0.029598847031593323,
0.005213840398937464,
0.09961839765310287,
0.02060452476143837,
-0.00044792445260100067,
-0.014790465123951435,
0.011081650853157043,
0.035278528928756714,
0.04945085942745209,
0.005769266746938229,
-0.005890206433832645,
-0.02418792061507702,
-0.024134168401360512,
0.04561662673950195,
0.03346891328692436,
-0.030906787142157555,
0.046189967542886734,
-0.03841400146484375,
0.041818227618932724,
-0.036353547126054764,
0.02671421319246292,
-0.019995346665382385,
0.000034714143112068996,
-0.0075967987067997456,
-0.038808174431324005,
0.011861039325594902,
0.016044653952121735,
-0.001985425129532814,
0.05249674618244171,
-0.013643778860569,
-0.03726731240749359,
0.02325623668730259,
-0.014441084116697311,
-0.0014434364857152104,
-0.027986319735646248,
0.016349243000149727,
-0.007018975913524628,
0.044254936277866364,
0.00861806608736515,
0.04730082303285599,
-0.023309988901019096,
0.023739995434880257,
0.05690431967377663,
0.03101428784430027,
-0.05203090235590935,
0.012927099131047726,
0.019905762746930122,
-0.010320179164409637,
-0.043609924614429474,
0.022593308240175247,
0.0005358296330086887,
-0.024725429713726044,
-0.015766941010951996,
0.02585419826209545,
0.00017105114238802344,
-0.0524250753223896,
-0.026821715757250786,
0.06589864194393158,
-0.01131457183510065,
-0.040814876556396484,
-0.08248976618051529,
-0.03135471045970917,
-0.0035811560228466988,
-0.023722078651189804,
-0.0006366125890053809,
0.04708581790328026,
-0.032573066651821136,
-0.045544955879449844,
-0.02836257591843605,
0.018418652936816216,
0.062351081520318985,
-0.008326915092766285,
0.012183545157313347,
-0.05124255642294884,
-0.009711001999676228,
-0.007708779536187649,
-0.03502769023180008,
0.05127838999032974,
0.018364902585744858,
-0.019278667867183685,
0.060631051659584045,
0.01637611724436283,
0.019224917516112328,
-0.03294932097196579,
0.012738971039652824,
0.037231478840112686,
-0.01389461662620306,
-0.0032788070384413004,
-0.04515078291296959,
0.0373389832675457,
0.039238180965185165,
0.021912463009357452,
-0.01266730297356844,
0.04819666966795921,
0.04185406118631363,
-0.023381656035780907,
0.029634680598974228,
-0.060631051659584045,
-0.016886752098798752,
-0.010356012731790543,
-0.010141009464859962,
-0.025101685896515846,
0.037804823368787766,
0.036299798637628555,
-0.08915488421916962,
0.0038924633990973234,
0.05088421702384949,
-0.0020380562637001276,
0.05249674618244171,
-0.017200298607349396,
0.044684942811727524,
0.022163301706314087,
0.023059150204062462,
0.028667164966464043,
0.04787416383624077,
0.014844216406345367,
0.058122675865888596,
0.026517126709222794,
-0.06647198647260666,
0.037303145974874496,
-0.033271826803684235,
-0.023059150204062462,
-0.023094983771443367,
0.012506050057709217,
0.0919499322772026,
-0.0574418306350708,
-0.013733363710343838,
0.031247209757566452,
0.007023455109447241,
0.058624349534511566,
0.016474660485982895,
0.02304123342037201,
-0.03008260577917099,
0.030028855428099632,
-0.02678588218986988,
-0.012085001915693283,
-0.04640497267246246,
-0.015104012563824654,
-0.020658275112509727,
0.07453462481498718,
0.014656087383627892,
-0.05586513504385948,
-0.02547794207930565,
0.02282623015344143,
0.038306497037410736
]
|
30,058 | networkx.algorithms.tree.branchings | ArborescenceIterator |
Iterate over all spanning arborescences of a graph in either increasing or
decreasing cost.
Notes
-----
This iterator uses the partition scheme from [1]_ (included edges,
excluded edges and open edges). It generates minimum spanning
arborescences using a modified Edmonds' Algorithm which respects the
partition of edges. For arborescences with the same weight, ties are
broken arbitrarily.
References
----------
.. [1] G.K. Janssens, K. Sörensen, An algorithm to generate all spanning
trees in order of increasing cost, Pesquisa Operacional, 2005-08,
Vol. 25 (2), p. 219-229,
https://www.scielo.br/j/pope/a/XHswBwRwJyrfL88dmMwYNWp/?lang=en
| class ArborescenceIterator:
"""
Iterate over all spanning arborescences of a graph in either increasing or
decreasing cost.
Notes
-----
This iterator uses the partition scheme from [1]_ (included edges,
excluded edges and open edges). It generates minimum spanning
arborescences using a modified Edmonds' Algorithm which respects the
partition of edges. For arborescences with the same weight, ties are
broken arbitrarily.
References
----------
.. [1] G.K. Janssens, K. Sörensen, An algorithm to generate all spanning
trees in order of increasing cost, Pesquisa Operacional, 2005-08,
Vol. 25 (2), p. 219-229,
https://www.scielo.br/j/pope/a/XHswBwRwJyrfL88dmMwYNWp/?lang=en
"""
@dataclass(order=True)
class Partition:
"""
This dataclass represents a partition and stores a dict with the edge
data and the weight of the minimum spanning arborescence of the
partition dict.
"""
mst_weight: float
partition_dict: dict = field(compare=False)
def __copy__(self):
return ArborescenceIterator.Partition(
self.mst_weight, self.partition_dict.copy()
)
def __init__(self, G, weight="weight", minimum=True, init_partition=None):
"""
Initialize the iterator
Parameters
----------
G : nx.DiGraph
The directed graph which we need to iterate trees over
weight : String, default = "weight"
The edge attribute used to store the weight of the edge
minimum : bool, default = True
Return the trees in increasing order while true and decreasing order
while false.
init_partition : tuple, default = None
In the case that certain edges have to be included or excluded from
the arborescences, `init_partition` should be in the form
`(included_edges, excluded_edges)` where each edges is a
`(u, v)`-tuple inside an iterable such as a list or set.
"""
self.G = G.copy()
self.weight = weight
self.minimum = minimum
self.method = (
minimum_spanning_arborescence if minimum else maximum_spanning_arborescence
)
# Randomly create a key for an edge attribute to hold the partition data
self.partition_key = (
"ArborescenceIterators super secret partition attribute name"
)
if init_partition is not None:
partition_dict = {}
for e in init_partition[0]:
partition_dict[e] = nx.EdgePartition.INCLUDED
for e in init_partition[1]:
partition_dict[e] = nx.EdgePartition.EXCLUDED
self.init_partition = ArborescenceIterator.Partition(0, partition_dict)
else:
self.init_partition = None
def __iter__(self):
"""
Returns
-------
ArborescenceIterator
The iterator object for this graph
"""
self.partition_queue = PriorityQueue()
self._clear_partition(self.G)
# Write the initial partition if it exists.
if self.init_partition is not None:
self._write_partition(self.init_partition)
mst_weight = self.method(
self.G,
self.weight,
partition=self.partition_key,
preserve_attrs=True,
).size(weight=self.weight)
self.partition_queue.put(
self.Partition(
mst_weight if self.minimum else -mst_weight,
{}
if self.init_partition is None
else self.init_partition.partition_dict,
)
)
return self
def __next__(self):
"""
Returns
-------
(multi)Graph
The spanning tree of next greatest weight, which ties broken
arbitrarily.
"""
if self.partition_queue.empty():
del self.G, self.partition_queue
raise StopIteration
partition = self.partition_queue.get()
self._write_partition(partition)
next_arborescence = self.method(
self.G,
self.weight,
partition=self.partition_key,
preserve_attrs=True,
)
self._partition(partition, next_arborescence)
self._clear_partition(next_arborescence)
return next_arborescence
def _partition(self, partition, partition_arborescence):
"""
Create new partitions based of the minimum spanning tree of the
current minimum partition.
Parameters
----------
partition : Partition
The Partition instance used to generate the current minimum spanning
tree.
partition_arborescence : nx.Graph
The minimum spanning arborescence of the input partition.
"""
# create two new partitions with the data from the input partition dict
p1 = self.Partition(0, partition.partition_dict.copy())
p2 = self.Partition(0, partition.partition_dict.copy())
for e in partition_arborescence.edges:
# determine if the edge was open or included
if e not in partition.partition_dict:
# This is an open edge
p1.partition_dict[e] = nx.EdgePartition.EXCLUDED
p2.partition_dict[e] = nx.EdgePartition.INCLUDED
self._write_partition(p1)
try:
p1_mst = self.method(
self.G,
self.weight,
partition=self.partition_key,
preserve_attrs=True,
)
p1_mst_weight = p1_mst.size(weight=self.weight)
p1.mst_weight = p1_mst_weight if self.minimum else -p1_mst_weight
self.partition_queue.put(p1.__copy__())
except nx.NetworkXException:
pass
p1.partition_dict = p2.partition_dict.copy()
def _write_partition(self, partition):
"""
Writes the desired partition into the graph to calculate the minimum
spanning tree. Also, if one incoming edge is included, mark all others
as excluded so that if that vertex is merged during Edmonds' algorithm
we cannot still pick another of that vertex's included edges.
Parameters
----------
partition : Partition
A Partition dataclass describing a partition on the edges of the
graph.
"""
for u, v, d in self.G.edges(data=True):
if (u, v) in partition.partition_dict:
d[self.partition_key] = partition.partition_dict[(u, v)]
else:
d[self.partition_key] = nx.EdgePartition.OPEN
nx._clear_cache(self.G)
for n in self.G:
included_count = 0
excluded_count = 0
for u, v, d in self.G.in_edges(nbunch=n, data=True):
if d.get(self.partition_key) == nx.EdgePartition.INCLUDED:
included_count += 1
elif d.get(self.partition_key) == nx.EdgePartition.EXCLUDED:
excluded_count += 1
# Check that if there is an included edges, all other incoming ones
# are excluded. If not fix it!
if included_count == 1 and excluded_count != self.G.in_degree(n) - 1:
for u, v, d in self.G.in_edges(nbunch=n, data=True):
if d.get(self.partition_key) != nx.EdgePartition.INCLUDED:
d[self.partition_key] = nx.EdgePartition.EXCLUDED
def _clear_partition(self, G):
"""
Removes partition data from the graph
"""
for u, v, d in G.edges(data=True):
if self.partition_key in d:
del d[self.partition_key]
nx._clear_cache(self.G)
| (G, weight='weight', minimum=True, init_partition=None) | [
0.04931797459721565,
0.0006966739892959595,
-0.06020309776067734,
0.015458966605365276,
0.02317274920642376,
-0.037135012447834015,
-0.00934655126184225,
-0.029892219230532646,
-0.013459871523082256,
-0.051160071045160294,
-0.005594324786216021,
0.029431695118546486,
-0.007933579385280609,
0.02871997468173504,
-0.0900115817785263,
0.042451974004507065,
-0.007635285146534443,
0.03347174823284149,
0.021602779626846313,
0.06660857051610947,
-0.036590754985809326,
-0.06681790202856064,
-0.0215609148144722,
0.03301122412085533,
-0.010539728216826916,
0.005541992373764515,
0.0037548437248915434,
-0.012015500105917454,
-0.04404287785291672,
-0.028364116325974464,
-0.007075329311192036,
-0.02177024446427822,
-0.0071538276970386505,
-0.04471272975206375,
0.04358235374093056,
0.0028259451501071453,
0.01840004324913025,
0.06405475735664368,
-0.07351643592119217,
-0.007002064026892185,
-0.02331927977502346,
-0.004186585545539856,
0.02177024446427822,
-0.04358235374093056,
0.03361827880144119,
0.03686288371682167,
0.04827132821083069,
0.054634939879179,
-0.0017086501466110349,
0.000027188274543732405,
0.045215122401714325,
-0.041216932237148285,
0.015218237414956093,
0.024952048435807228,
-0.04948543757200241,
0.025977762416005135,
0.022356364876031876,
-0.024826450273394585,
0.04538258537650108,
-0.042137980461120605,
0.012371359393000603,
0.008132441900670528,
0.04014935344457626,
-0.000315792829496786,
-0.03970976173877716,
-0.022900622338056564,
-0.05810980498790741,
-0.03830725699663162,
-0.049904096871614456,
0.06945545226335526,
0.013564536347985268,
-0.025768432766199112,
0.04201238229870796,
0.0009746893774718046,
-0.0386631153523922,
0.0030352743342518806,
-0.004474413115531206,
-0.034518394619226456,
0.04054708033800125,
-0.06455714255571365,
0.026270823553204536,
0.02662668190896511,
0.012099231593310833,
-0.0368000864982605,
0.03564877435564995,
0.02993408590555191,
0.07577719539403915,
0.03564877435564995,
0.017060335725545883,
-0.045926839113235474,
-0.02323554828763008,
0.08126161992549896,
0.033199623227119446,
0.05810980498790741,
0.07489801198244095,
0.007556786295026541,
-0.05279283970594406,
-0.08544820547103882,
0.0021011424250900745,
-0.036297693848609924,
-0.030813267454504967,
0.04102853685617447,
-0.017426662147045135,
0.011837569996714592,
-0.006656670477241278,
-0.04115413501858711,
-0.022188901901245117,
0.0009406734025105834,
-0.00996930617839098,
-0.043373022228479385,
-0.07535853236913681,
0.03347174823284149,
-0.03031087853014469,
0.03462306037545204,
-0.0046942089684307575,
0.017594125121831894,
-0.02409379929304123,
-0.002930609742179513,
0.027380267158150673,
-0.0037783931475132704,
0.05082514509558678,
0.016652142629027367,
-0.02794545702636242,
0.029368896037340164,
-0.003391134086996317,
-0.022565694525837898,
0.06891119480133057,
0.03669542074203491,
-0.006745635531842709,
-0.06732029467821121,
0.02823851816356182,
0.006117647979408503,
-0.01127238105982542,
0.016107887029647827,
-0.03215297684073448,
-0.013637801632285118,
-0.04014935344457626,
-0.009493081830441952,
-0.028615310788154602,
-0.009487848728895187,
0.03401600569486618,
-0.07347457110881805,
0.032529767602682114,
0.0022790723014622927,
-0.0217074453830719,
-0.023340214043855667,
-0.003050974104553461,
-0.019268758594989777,
0.033597346395254135,
-0.000574020086787641,
-0.023005286231637,
-0.015469432808458805,
-0.005136416759341955,
-0.01939435675740242,
0.01723826490342617,
-0.00717999367043376,
-0.04188678786158562,
0.018284911289811134,
-0.04014935344457626,
-0.008069642819464207,
-0.06623177975416183,
-0.03648608922958374,
0.041133198887109756,
0.021152721717953682,
-0.03288562595844269,
0.016484679654240608,
-0.0280291885137558,
-0.05049021914601326,
-0.03619303181767464,
-0.01677774079144001,
0.053295232355594635,
-0.036444224417209625,
-0.0681576058268547,
-0.016987070441246033,
-0.05388135462999344,
0.08716470748186111,
0.036444224417209625,
0.02223076857626438,
-0.020273540169000626,
0.0026846479158848524,
0.002344487700611353,
-0.05442560836672783,
-0.01654747873544693,
-0.020357271656394005,
0.010707192122936249,
0.03380667790770531,
0.04956917092204094,
-0.03933296725153923,
0.06979037821292877,
0.006876466330140829,
-0.06309184432029724,
-0.05078328028321266,
0.016798673197627068,
0.06903678923845291,
0.003794092917814851,
0.0003607659018598497,
0.026982542127370834,
0.03732340782880783,
-0.021749310195446014,
0.08201520889997482,
-0.02208423800766468,
0.026270823553204536,
0.060831084847450256,
0.010979319922626019,
0.008043477311730385,
0.027652395889163017,
-0.03242510184645653,
-0.013721533119678497,
0.03311588987708092,
0.038370054215192795,
-0.08549007028341293,
-0.062463853508234024,
0.033743876963853836,
0.014946109615266323,
0.018598904833197594,
-0.024261262267827988,
-0.020210741087794304,
0.02239823155105114,
0.057063158601522446,
-0.031671516597270966,
-0.029347963631153107,
0.02654295042157173,
-0.008074876852333546,
-0.04211704805493355,
0.056686364114284515,
-0.056770097464323044,
0.03981442749500275,
-0.035062652081251144,
0.005615257658064365,
0.010267600417137146,
0.03133659064769745,
-0.056602634489536285,
0.001041413052007556,
-0.042221713811159134,
0.025454439222812653,
0.01104211900383234,
-0.03531384840607643,
-0.001015246962197125,
-0.010864188894629478,
0.024952048435807228,
-0.06087294965982437,
-0.029368896037340164,
-0.024972980841994286,
-0.014297189190983772,
-0.03514638543128967,
-0.021665578708052635,
0.04781080409884453,
0.04358235374093056,
0.014412320218980312,
0.009822775609791279,
-0.05015529319643974,
-0.0761958509683609,
-0.027568664401769638,
-0.039751626551151276,
0.04508952423930168,
-0.03240416944026947,
-0.041677456349134445,
-0.020127009600400925,
-0.012235295958817005,
0.014883310534060001,
-0.000043460353481350467,
-0.026919743046164513,
-0.00789171364158392,
0.06024496257305145,
0.03380667790770531,
0.03211110830307007,
0.016966136172413826,
0.010225734673440456,
-0.008838928304612637,
-0.014527451246976852,
0.059533242136240005,
0.05095074325799942,
0.0020121776033192873,
0.04287063330411911,
-0.03031087853014469,
0.02101665735244751,
-0.03514638543128967,
0.0021547831129282713,
-0.02631268836557865,
-0.008069642819464207,
-0.03656982257962227,
0.02461712248623371,
-0.019970012828707695,
0.03648608922958374,
-0.03315775468945503,
-0.0035559809766709805,
-0.02070266380906105,
-0.09511921554803848,
-0.006086248438805342,
-0.02901303581893444,
-0.009990239515900612,
0.016673076897859573,
0.03560690954327583,
-0.01469491422176361,
0.13104012608528137,
0.012067832052707672,
0.004142102785408497,
-0.05827726796269417,
-0.013208677060902119,
0.030603937804698944,
0.08632738888263702,
-0.02308901771903038,
0.05128566920757294,
-0.02008514292538166,
-0.007687617093324661,
0.020147942006587982,
0.03261350095272064,
0.010749057866632938,
-0.017887186259031296,
0.012392292730510235,
-0.023277414962649345,
0.024198463186621666,
0.008367937058210373,
0.003142555709928274,
-0.01716499961912632,
-0.08858814835548401,
0.02440779283642769,
-0.010131536051630974,
0.0215609148144722,
0.0681576058268547,
-0.03031087853014469,
0.06673417240381241,
0.004780557006597519,
0.01840004324913025,
-0.07979631423950195,
0.001191868563182652,
0.018379108980298042,
0.049066778272390366,
-0.023654207587242126,
-0.030227145180106163,
-0.06020309776067734,
0.009330851957201958,
-0.0416983887553215,
0.0526253767311573,
-0.0415518581867218,
0.047140952199697495,
0.07854034006595612,
-0.0271709393709898,
0.009838475845754147,
-0.04496392607688904,
0.06979037821292877,
0.04550818353891373,
0.011691039428114891,
0.02532884106040001,
0.0031190060544759035,
-0.018577972427010536,
0.02363327331840992,
-0.009084890596568584,
-0.028573444113135338,
0.0635523647069931,
0.01800231635570526,
0.07854034006595612,
-0.004516278859227896,
0.023068085312843323,
0.03885151073336601,
-0.02978755533695221,
-0.021916775032877922,
-0.05287657305598259,
-0.016505612060427666,
0.03688381612300873,
0.03010154888033867,
-0.013805264607071877,
-0.0015791276236996055,
0.033681079745292664,
-0.029138633981347084,
-0.03933296725153923,
-0.062003329396247864,
0.022356364876031876,
0.0026781063061207533,
-0.07020903378725052,
-0.02648015134036541,
-0.08297812193632126,
-0.038370054215192795,
-0.0005746742244809866,
-0.010309466160833836,
0.0349370539188385,
-0.04069361090660095,
-0.0055367592722177505,
0.018431441858410835,
0.06472460925579071,
0.05936577916145325,
0.03156685456633568,
0.027233736589550972,
0.03912363946437836,
-0.04977849870920181,
-0.03803512826561928,
0.07489801198244095,
-0.03548131138086319,
0.054676804691553116,
-0.009979772381484509,
0.009268052875995636,
0.03010154888033867,
0.02941076271235943,
0.007828914560377598,
-0.042200781404972076,
0.00838363729417324,
0.07113008201122284,
-0.011293313466012478,
-0.041593726724386215,
-0.04255663976073265,
0.00696543138474226,
-0.029222365468740463,
-0.024031000211834908,
0.05216485261917114,
0.04835506156086922,
-0.09587280452251434,
0.06401289254426956,
0.03878871351480484,
0.04048427939414978,
0.051076341420412064,
-0.03445559740066528,
-0.013951795175671577,
0.024993915110826492,
0.052834708243608475,
-0.0196246188133955,
-0.06057988852262497,
0.04977849870920181,
0.004066220950335264,
0.05840286612510681,
0.012214362621307373,
0.041530925780534744,
-0.012507423758506775,
0.07627958804368973,
0.02248196303844452,
-0.007002064026892185,
-0.07054395973682404,
-0.020503802224993706,
-0.014171591028571129,
-0.039291102439165115,
0.03432999923825264,
-0.005573391914367676,
-0.035669706761837006,
-0.0293270293623209,
-0.03288562595844269,
-0.009022091515362263,
-0.007985911332070827,
-0.009027324616909027,
0.019582752138376236,
0.03229950740933418,
-0.013993661850690842,
0.033199623227119446,
0.0415518581867218,
0.042137980461120605,
-0.06618991494178772,
0.007609118707478046,
-0.0029698589351028204,
-0.03215297684073448,
0.04243104159832001,
-0.0281757190823555,
0.013135411776602268,
0.022733157500624657,
-0.0215609148144722,
0.024135664105415344,
-0.0072009265422821045,
-0.09361204504966736,
0.01963508501648903,
0.03885151073336601,
-0.014967042952775955,
-0.057691145688295364,
0.009723344817757607,
0.0856994017958641,
0.023821670562028885,
-0.03033181093633175,
0.010016405023634434,
0.008488302119076252,
0.015511298552155495,
0.014883310534060001,
-0.0015791276236996055,
-0.014684448018670082,
-0.036130230873823166,
0.05057394877076149,
-0.01181663665920496,
-0.043833550065755844,
-0.04395914450287819,
0.031985510140657425,
0.005610024090856314,
-0.02601962722837925,
0.003542897757142782,
0.00413425313308835,
-0.031441256403923035,
0.016809139400720596,
-0.02117365598678589,
0.0330740250647068,
-0.003998188767582178,
-0.00446394644677639,
-0.023884469643235207,
-0.0040609878487885,
0.014893777668476105,
-0.02871997468173504,
-0.017196400091052055,
-0.051369402557611465,
-0.013292408548295498,
0.024763653054833412,
0.046764157712459564,
0.020765462890267372,
0.06204519420862198,
0.011607307940721512,
-0.008980225771665573,
0.11245168000459671,
-0.09922207146883011,
-0.002234590006992221,
0.02016887441277504,
-0.04655482992529869,
0.0013868063688278198,
0.017259197309613228,
0.0437079519033432,
-0.041823986917734146,
0.007446888834238052,
0.020838728174567223,
0.006463041063398123,
0.031587786972522736,
-0.03887244313955307,
0.04672229290008545,
0.03108539618551731,
0.005761788226664066,
-0.0026310072280466557,
0.013909929431974888,
0.026919743046164513,
0.023717006668448448,
-0.04454526677727699,
-0.001970311626791954,
-0.028845572844147682,
0.012298094108700752,
0.00596588384360075,
-0.032487902790308,
0.01938389055430889,
0.0011833645403385162,
-0.05651890113949776,
0.026982542127370834,
-0.015888091176748276,
-0.004777940455824137,
0.02248196303844452,
0.04755960777401924,
0.03692568093538284,
0.021414384245872498,
0.00014350502169691026,
0.03885151073336601,
0.017070801928639412,
-0.044294074177742004,
0.01778252050280571,
0.025035779923200607,
0.006395008880645037,
0.021372517570853233,
0.004618327133357525,
0.018054649233818054,
0.06304997205734253,
0.054467473179101944,
-0.01181663665920496,
-0.014077393338084221,
-0.02323554828763008,
0.04063080996274948,
0.016495145857334137,
0.0057879542000591755,
0.0033466515596956015,
0.08842068165540695,
-0.027338402345776558,
-0.0004935591714456677,
-0.024826450273394585,
0.03102259710431099,
0.03269723057746887,
-0.02677321247756481,
0.02593589574098587,
-0.00934655126184225,
-0.07104635238647461,
0.06392915546894073,
-0.030415542423725128,
-0.004853822290897369,
-0.012193429283797741,
0.021916775032877922,
0.04596870765089989,
0.03872591257095337,
0.03843285143375397,
0.030959798023104668,
-0.002675489755347371,
-0.03778393194079399,
0.0030954566318541765,
-0.03407880291342735,
-0.03347174823284149,
-0.04446153715252876,
-0.08272692561149597,
0.02323554828763008,
-0.02340301126241684,
0.0369466170668602,
-0.0497366338968277,
0.022816890850663185,
0.02654295042157173,
-0.04856438934803009,
0.042682237923145294,
-0.004615710116922855,
-0.005473960191011429,
0.02639641985297203,
-0.05409068241715431,
0.02648015134036541,
-0.01584622450172901,
-0.004047904629260302,
0.006410708650946617,
0.024282194674015045,
-0.042305443435907364,
-0.03033181093633175,
-0.056853827089071274,
-0.03229950740933418,
0.03372294455766678,
0.011178182438015938,
0.035355713218450546,
0.01678820699453354,
-0.004367131739854813,
0.008430736139416695,
-0.043917279690504074,
0.031587786972522736,
-0.015982288867235184,
0.002670256420969963,
0.04994596168398857,
-0.006651437375694513,
-0.061626534909009933,
-0.029766621068120003,
0.00179499841760844,
-0.06514326483011246,
-0.018127914518117905,
0.01824304461479187,
-0.026647616177797318,
0.013459871523082256,
-0.02616615779697895,
-0.0018028483027592301,
-0.017667390406131744,
-0.031127260997891426,
0.007598652504384518,
0.054006949067115784,
-0.07318150997161865,
0.0024308362044394016,
0.00018659741908777505,
0.02246103063225746,
-0.052457913756370544,
0.012758619152009487,
-0.005437327548861504,
0.016202084720134735,
-0.0395422987639904,
0.03631862625479698,
-0.028971171006560326,
-0.060077499598264694,
0.009487848728895187,
-0.05555598810315132,
0.015050774440169334,
-0.012727219611406326,
-0.01069672591984272,
-0.05166246369481087,
-0.04040054976940155,
0.01019956823438406,
-0.0009472149540670216,
0.007797515019774437,
0.017520859837532043,
-0.02216796949505806,
0.05011342465877533,
-0.01123051531612873,
-0.021874908357858658,
-0.013669201172888279,
0.06459901481866837,
-0.01931062527000904,
-0.02139345183968544,
0.026919743046164513,
0.01154450885951519,
0.04264037311077118,
-0.00394585682079196,
-0.031838979572057724,
-0.004293866455554962,
-0.0038438085466623306,
-0.010136770084500313,
0.02377980388700962,
-0.019415289163589478,
0.008922659792006016,
0.006928798742592335,
-0.024282194674015045,
-0.015678761526942253,
0.013292408548295498,
-0.028824640437960625,
-0.06765522062778473,
-0.024742718786001205,
-0.0215609148144722,
-0.00429124990478158,
-0.0109269879758358,
-0.025580035522580147,
0.007033463101834059,
0.04935983940958977,
0.0011231823591515422,
-0.03202737867832184,
0.03246697038412094,
0.03206924349069595,
-0.06845066696405411,
-0.06472460925579071,
0.009220954030752182,
-0.04977849870920181,
0.025810297578573227,
-0.010675792582333088,
0.03994002565741539,
-0.004361898638308048,
-0.020608466118574142,
-0.02555910311639309,
-0.011324713006615639,
-0.012800484895706177,
0.030750468373298645,
-0.06518512964248657,
0.047727070748806,
-0.010026872158050537,
0.003964173141866922,
0.020911993458867073,
-0.020032810047268867,
0.03864218294620514,
-0.09729624539613724,
0.02895023673772812,
0.006604338530451059,
0.012915615923702717,
-0.010612993501126766,
0.024031000211834908,
-0.030583005398511887,
-0.04454526677727699,
0.031210994347929955,
0.025831231847405434,
0.009597746655344963,
0.00486952206119895,
-0.024805517867207527,
-0.0030823734123259783,
-0.015835758298635483,
0.010005938820540905,
0.009367484599351883,
0.03719780966639519,
-0.05103447660803795,
0.0437079519033432,
0.047224681824445724,
-0.066441111266613,
-0.0326344333589077,
-0.027003474533557892,
0.02840598113834858,
0.06422221660614014,
-0.0215609148144722,
0.043079961091279984,
0.04948543757200241,
-0.012507423758506775,
0.017719721421599388,
0.026815079152584076,
0.01454838365316391,
0.056351438164711,
-0.00014407740673050284,
-0.01112585049122572,
-0.09486802667379379,
-0.0013285867171362042,
-0.024051932618021965,
0.023507677018642426,
-0.010089670307934284,
0.037742067128419876,
0.02001187764108181,
-0.008859860710799694,
0.04793640226125717,
-0.04663855955004692,
0.02800825610756874,
0.026040561497211456,
-0.00539022870361805,
0.011021185666322708,
0.009838475845754147,
-0.003752227174118161,
-0.017677856609225273,
-0.08268506079912186,
-0.033597346395254135,
-0.0014849294675514102,
0.0014862377429381013,
0.037386205047369,
0.0082685062661767,
0.04316369444131851,
0.023382078856229782,
0.03793046250939369
]
|
30,059 | networkx.algorithms.tree.branchings | __init__ |
Initialize the iterator
Parameters
----------
G : nx.DiGraph
The directed graph which we need to iterate trees over
weight : String, default = "weight"
The edge attribute used to store the weight of the edge
minimum : bool, default = True
Return the trees in increasing order while true and decreasing order
while false.
init_partition : tuple, default = None
In the case that certain edges have to be included or excluded from
the arborescences, `init_partition` should be in the form
`(included_edges, excluded_edges)` where each edges is a
`(u, v)`-tuple inside an iterable such as a list or set.
| def __init__(self, G, weight="weight", minimum=True, init_partition=None):
"""
Initialize the iterator
Parameters
----------
G : nx.DiGraph
The directed graph which we need to iterate trees over
weight : String, default = "weight"
The edge attribute used to store the weight of the edge
minimum : bool, default = True
Return the trees in increasing order while true and decreasing order
while false.
init_partition : tuple, default = None
In the case that certain edges have to be included or excluded from
the arborescences, `init_partition` should be in the form
`(included_edges, excluded_edges)` where each edges is a
`(u, v)`-tuple inside an iterable such as a list or set.
"""
self.G = G.copy()
self.weight = weight
self.minimum = minimum
self.method = (
minimum_spanning_arborescence if minimum else maximum_spanning_arborescence
)
# Randomly create a key for an edge attribute to hold the partition data
self.partition_key = (
"ArborescenceIterators super secret partition attribute name"
)
if init_partition is not None:
partition_dict = {}
for e in init_partition[0]:
partition_dict[e] = nx.EdgePartition.INCLUDED
for e in init_partition[1]:
partition_dict[e] = nx.EdgePartition.EXCLUDED
self.init_partition = ArborescenceIterator.Partition(0, partition_dict)
else:
self.init_partition = None
| (self, G, weight='weight', minimum=True, init_partition=None) | [
0.025387130677700043,
0.003765727626159787,
-0.07135062664747238,
0.002260112203657627,
0.01076565682888031,
-0.0036418549716472626,
-0.035963598638772964,
-0.01900881715118885,
0.032846514135599136,
-0.02976546436548233,
0.021837616339325905,
0.05733275040984154,
-0.005950390361249447,
0.03881041705608368,
-0.08309825509786606,
0.021243028342723846,
-0.02999969571828842,
0.05765707418322563,
0.0024481734726577997,
0.06987316906452179,
-0.062125496566295624,
-0.04342298209667206,
-0.05340486392378807,
0.006126063875854015,
0.006297233514487743,
0.02340516820549965,
-0.01225212775170803,
-0.016306141391396523,
-0.009585488587617874,
-0.004824275616556406,
-0.02108086831867695,
-0.053909365087747574,
-0.05953092873096466,
-0.026522254571318626,
0.05401746928691864,
-0.0035224868915975094,
-0.015107954852283001,
0.05949489399790764,
-0.06223360449075699,
0.0014954803045839071,
0.026954682543873787,
-0.039999593049287796,
0.01215303037315607,
-0.030269963666796684,
0.002423398895189166,
0.017405228689312935,
0.06951280683279037,
0.010855745524168015,
-0.030432123690843582,
-0.01924304850399494,
0.013378242962062359,
-0.011008897796273232,
0.033657316118478775,
0.017459282651543617,
-0.034918565303087234,
0.04054012894630432,
0.013783643953502178,
-0.01712595298886299,
0.036414045840501785,
-0.01127916481345892,
0.005468413233757019,
-0.019891690462827682,
0.027387110516428947,
0.01817098632454872,
-0.03445010259747505,
-0.015134981833398342,
-0.09535038471221924,
-0.027981698513031006,
-0.03252219408750534,
0.07026955485343933,
0.02234211564064026,
-0.01362148392945528,
0.041441019624471664,
0.010585478506982327,
-0.03572936728596687,
0.02129708230495453,
-0.05844985693693161,
-0.013225091621279716,
0.04641394317150116,
-0.05315261334180832,
0.010585478506982327,
0.06461195647716522,
0.006783714983612299,
-0.01690973900258541,
0.04536890983581543,
-0.02637811191380024,
0.02895466238260269,
-0.0000876257981872186,
0.03499063476920128,
-0.03481045737862587,
-0.05178325995802879,
0.033837493509054184,
0.0405040942132473,
0.019765565171837807,
0.05235983058810234,
0.05304450914263725,
-0.029387090355157852,
-0.07949469238519669,
0.018648460507392883,
-0.04198155552148819,
-0.00722965644672513,
0.017981799319386482,
0.017414238303899765,
0.02677450329065323,
-0.02726098522543907,
-0.019999796524643898,
-0.02909880504012108,
-0.019098905846476555,
-0.010585478506982327,
-0.02767539583146572,
-0.07135062664747238,
0.03837798908352852,
0.017990808933973312,
0.050558045506477356,
-0.03549513593316078,
0.019747547805309296,
0.023513276129961014,
-0.027495216578245163,
0.03646809980273247,
-0.02428804151713848,
0.03605368733406067,
0.011882762424647808,
-0.02277454361319542,
0.06140478327870369,
-0.018522335216403008,
-0.00842333771288395,
0.046774301677942276,
0.022053830325603485,
-0.023369131609797478,
-0.037909526377916336,
0.04457612335681915,
0.0017420994117856026,
-0.01475660689175129,
-0.008779190480709076,
0.02108086831867695,
-0.0183872003108263,
-0.04014373570680618,
-0.006261197850108147,
-0.03445010259747505,
0.0451526939868927,
0.030017713084816933,
-0.06879209727048874,
0.029693393036723137,
-0.0014695797581225634,
-0.022900668904185295,
0.010639531537890434,
-0.03924284502863884,
-0.012243119068443775,
0.03733295574784279,
-0.024612363427877426,
-0.006612545810639858,
0.0012364739086478949,
0.019351154565811157,
0.027801519259810448,
-0.005382828414440155,
0.009837738238275051,
-0.053296755999326706,
0.006166604347527027,
-0.025279022753238678,
-0.009342247620224953,
-0.05999939143657684,
0.004936886951327324,
-0.0017015592893585563,
-0.011107995174825191,
-0.018486298620700836,
0.03482847660779953,
-0.029693393036723137,
-0.03272039070725441,
-0.03017987497150898,
-0.015918757766485214,
0.018225040286779404,
-0.07675597816705704,
-0.06904434412717819,
-0.018864674493670464,
-0.04057616367936134,
0.06688220798969269,
0.04616169258952141,
0.0687200278043747,
-0.008297213353216648,
0.04983733221888542,
-0.013630492612719536,
-0.049945440143346786,
-0.016729559749364853,
-0.04594548046588898,
-0.008337752893567085,
0.010828719474375248,
0.04353109002113342,
-0.02236013300716877,
0.04983733221888542,
0.0011514523066580296,
-0.0219096876680851,
-0.004207164514809847,
0.00970260426402092,
0.0689002051949501,
0.003015735186636448,
-0.006418853998184204,
0.006671103648841381,
0.036846473813056946,
-0.04972922429442406,
0.12468341737985611,
-0.003941401373594999,
0.03690052777528763,
0.0078062270767986774,
0.012459333054721355,
0.0092972032725811,
0.04086444899439812,
-0.02277454361319542,
-0.002524749143049121,
0.01383769791573286,
0.00822063721716404,
-0.0771884098649025,
-0.03482847660779953,
0.06544078141450882,
0.03700863569974899,
-0.012459333054721355,
0.00048028791206888855,
-0.04850401356816292,
0.021188974380493164,
0.05153100937604904,
-0.03318885341286659,
-0.008698110468685627,
0.014324178919196129,
0.021423205733299255,
-0.08201718330383301,
0.04637790843844414,
-0.04331487789750099,
0.059422820806503296,
-0.03331497684121132,
-0.02978348173201084,
0.010189086198806763,
0.01940520852804184,
-0.035116761922836304,
0.03169337287545204,
-0.029585285112261772,
0.024846594780683517,
-0.019765565171837807,
0.005702645052224398,
0.016810640692710876,
-0.046558085829019547,
0.031170854344964027,
-0.054377827793359756,
-0.015026874840259552,
-0.044035591185092926,
-0.03583747521042824,
-0.020792581140995026,
-0.007882802747189999,
0.021044831722974777,
0.033026691526174545,
0.008576489984989166,
0.004450405482202768,
-0.0848279669880867,
-0.061116497963666916,
-0.023747507482767105,
-0.04129687696695328,
0.03859420493245125,
-0.012693565338850021,
-0.045693229883909225,
-0.03358524665236473,
0.010837728157639503,
0.016522355377674103,
0.012089967727661133,
0.00045241659972816706,
-0.04284641146659851,
0.08720632642507553,
0.01839620992541313,
0.03590954467654228,
0.03374740481376648,
0.010540434159338474,
0.00843685120344162,
-0.007855776697397232,
0.019549351185560226,
0.05571114644408226,
0.012495368719100952,
0.03039608895778656,
-0.00940531026571989,
0.0029459160286933184,
-0.03169337287545204,
0.01582866907119751,
-0.060431819409132004,
-0.002087816596031189,
-0.013954813592135906,
0.023062828928232193,
-0.03758520632982254,
0.059386786073446274,
-0.04320676997303963,
-0.03439604863524437,
-0.014504357241094112,
-0.002729702042415738,
-0.011639521457254887,
-0.02511686272919178,
0.003342308569699526,
0.010936826467514038,
0.020558349788188934,
-0.007085513789206743,
0.11726007610559464,
-0.025062808766961098,
0.005526971071958542,
-0.028576286509633064,
-0.006418853998184204,
0.02172951027750969,
0.08554868400096893,
-0.04922472685575485,
0.04176534339785576,
-0.01318905595690012,
-0.005563006736338139,
0.06522456556558609,
0.0388464517891407,
0.038702309131622314,
-0.018026843667030334,
0.03772934898734093,
-0.010126023553311825,
0.03205372765660286,
0.03634197264909744,
0.0035900536458939314,
-0.036828454583883286,
-0.09448552876710892,
0.008040458895266056,
-0.03190958499908447,
0.01181969977915287,
0.06345881521701813,
-0.056864287704229355,
0.0848279669880867,
0.002479704562574625,
-0.0031305989250540733,
-0.07891812175512314,
0.033837493509054184,
0.017026854678988457,
0.08237754553556442,
-0.018261076882481575,
0.005207154434174299,
-0.05084633082151413,
0.0031846524216234684,
-0.03466631472110748,
0.04872022569179535,
-0.0654047429561615,
0.06583716720342636,
0.07369294762611389,
-0.013585448265075684,
0.00654948316514492,
-0.07174701988697052,
0.012567440047860146,
0.026324057951569557,
-0.015765605494379997,
0.03855816647410393,
-0.010513407178223133,
-0.01881062053143978,
0.0023986243177205324,
-0.02320697158575058,
-0.007905324921011925,
0.07293619960546494,
0.027134859934449196,
0.07517041265964508,
0.009711612947285175,
0.05484629049897194,
0.0363599918782711,
-0.004315271507948637,
-0.02236013300716877,
-0.029693393036723137,
-0.012900769710540771,
0.05524268373847008,
0.012062940746545792,
-0.02153131365776062,
0.020342135801911354,
0.018423236906528473,
0.0024932180531322956,
-0.07062991708517075,
-0.04172930493950844,
0.0519634373486042,
0.012387261725962162,
-0.05131479352712631,
-0.009558461606502533,
-0.08518832921981812,
-0.06774706393480301,
0.011234120465815067,
0.0028468179516494274,
0.01670253276824951,
-0.0536210797727108,
-0.024612363427877426,
0.032612282782793045,
0.041260842233896255,
0.02744116261601448,
0.04493648186326027,
0.05758500099182129,
0.04392748326063156,
-0.0354410819709301,
-0.07956676185131073,
0.08007126301527023,
-0.012315190397202969,
0.06915245205163956,
-0.012243119068443775,
-0.012567440047860146,
-0.014432285912334919,
0.027297019958496094,
0.0019053861033171415,
-0.05657600238919258,
-0.023603364825248718,
0.08014333248138428,
-0.03729692101478577,
-0.024378132075071335,
-0.04518873244524002,
-0.014396250247955322,
-0.021423205733299255,
-0.03927887976169586,
0.0692245215177536,
0.052431900054216385,
-0.05070218816399574,
0.050774261355400085,
0.03252219408750534,
0.03909870237112045,
0.027603324502706528,
-0.015107954852283001,
-0.018234049901366234,
0.0329546220600605,
0.03266633674502373,
-0.007810731418430805,
-0.04180137813091278,
0.05888228490948677,
0.031801480799913406,
0.04922472685575485,
0.02172951027750969,
0.02848619781434536,
-0.0012387261958792806,
0.07690012454986572,
0.028125841170549393,
0.05192740261554718,
-0.04497251659631729,
0.01628812402486801,
-0.0371888130903244,
-0.039999593049287796,
0.015044892206788063,
-0.04212569817900658,
-0.034738387912511826,
-0.03147715702652931,
-0.013279144652187824,
0.024360112845897675,
-0.007504428271204233,
-0.0620894618332386,
0.023387150838971138,
0.019261065870523453,
-0.024215970188379288,
0.025891629979014397,
0.009801702573895454,
0.03679241985082626,
-0.05906246602535248,
-0.01962142251431942,
-0.01791873760521412,
-0.016972800716757774,
0.06360296159982681,
0.011801682412624359,
-0.03562125936150551,
0.01897278055548668,
-0.03985545039176941,
0.01817999593913555,
0.002587811555713415,
-0.06911641359329224,
0.0336933508515358,
0.04417973384261131,
-0.006653085816651583,
-0.03769331052899361,
0.00877468567341566,
0.05383729189634323,
0.0024008764885365963,
-0.002610333962365985,
-0.017225051298737526,
-0.007288214284926653,
-0.005553997587412596,
0.04367523267865181,
0.02553127333521843,
-0.014432285912334919,
-0.05336882919073105,
0.046522051095962524,
0.0011948077008128166,
-0.02237815223634243,
-0.05632375180721283,
0.03981941565871239,
0.002083312254399061,
-0.04245002195239067,
-0.02535109408199787,
-0.026936663314700127,
-0.06053992733359337,
0.0029999695252627134,
-0.003421136410906911,
0.06435970962047577,
0.02255832962691784,
-0.03396362066268921,
-0.018486298620700836,
-0.021459242329001427,
0.013026895001530647,
-0.014324178919196129,
-0.010783674195408821,
-0.03628791868686676,
-0.0002302904613316059,
-0.006513447500765324,
0.05697239562869072,
0.04832383617758751,
0.061296675354242325,
0.0358554907143116,
0.0011283669155091047,
0.05830571427941322,
-0.06601735204458237,
0.00213849195279181,
0.0007297223201021552,
0.005995434708893299,
-0.009342247620224953,
0.018864674493670464,
0.0434950552880764,
-0.042341914027929306,
-0.04259416460990906,
0.027783501893281937,
0.02513488009572029,
0.0755307674407959,
-0.026215950027108192,
0.02300877496600151,
0.03693656250834465,
0.0052882349118590355,
-0.03823384642601013,
-0.012954823672771454,
-0.001682415371760726,
0.021675456315279007,
-0.0035675314720720053,
0.019261065870523453,
-0.017161987721920013,
0.007882802747189999,
-0.009531434625387192,
-0.01035124622285366,
-0.0009729631128720939,
0.014540392905473709,
-0.03630593791604042,
0.03711673989892006,
-0.008085503242909908,
-0.009846746921539307,
0.004878329113125801,
0.021621402353048325,
0.04616169258952141,
0.003722935216501355,
-0.009288194589316845,
0.06688220798969269,
0.02976546436548233,
-0.011441325768828392,
0.0124503243714571,
0.02999969571828842,
-0.0015664255479350686,
0.0001866535167209804,
0.0028580790385603905,
0.03468433395028114,
0.029657356441020966,
0.02486461214721203,
-0.0268105398863554,
0.02637811191380024,
-0.02724296785891056,
0.023585347458720207,
0.0044954498298466206,
-0.033026691526174545,
0.008535949513316154,
0.04839590564370155,
-0.014423277229070663,
-0.02281058020889759,
-0.03812573850154877,
0.019585387781262398,
0.0363599918782711,
-0.019567368552088737,
0.02149527706205845,
-0.024954702705144882,
-0.03679241985082626,
0.07963883131742477,
-0.02129708230495453,
0.018720531836152077,
-0.016143981367349625,
0.0272249486297369,
0.05066615343093872,
0.04320676997303963,
0.006689121481031179,
0.015351195819675922,
0.02915285713970661,
-0.054377827793359756,
0.020990777760744095,
-0.03992752358317375,
-0.017198024317622185,
-0.018261076882481575,
-0.08936846256256104,
0.02344120293855667,
-0.04446801915764809,
0.04327883943915367,
-0.04529683664441109,
0.017621442675590515,
0.018738549202680588,
-0.03425190597772598,
0.055639076977968216,
-0.030324017629027367,
-0.016540372744202614,
0.031062748283147812,
-0.0738731250166893,
0.00495940912514925,
-0.008630543015897274,
-0.021261045709252357,
-0.035116761922836304,
0.009576479904353619,
-0.05672014504671097,
-0.07149477303028107,
-0.045477017760276794,
-0.03652215376496315,
0.07059387862682343,
0.016783613711595535,
0.08338654041290283,
0.015134981833398342,
-0.013279144652187824,
-0.004175633192062378,
-0.031747426837682724,
-0.002918889280408621,
-0.005909849889576435,
0.007486410439014435,
0.020846635103225708,
0.019909707829356194,
-0.03989148885011673,
0.0076395622454583645,
-0.009729631245136261,
-0.05574718117713928,
0.001757865073159337,
0.02385561354458332,
-0.025873610749840736,
0.004599052481353283,
-0.03711673989892006,
-0.01000890787690878,
0.002916637109592557,
-0.04702655225992203,
-0.02657630667090416,
0.06497231125831604,
-0.10709801316261292,
0.03266633674502373,
0.0054233684204518795,
0.03938698768615723,
-0.053729183971881866,
-0.005153100937604904,
-0.05254000797867775,
0.011225111782550812,
-0.01607191003859043,
0.04522476717829704,
0.01750432699918747,
-0.04306262731552124,
-0.016819648444652557,
-0.05574718117713928,
0.00426572235301137,
-0.01487372349947691,
-0.006265702191740274,
-0.04850401356816292,
-0.06763895601034164,
0.009252158924937248,
0.02086465246975422,
0.012675547040998936,
0.012567440047860146,
-0.014062920585274696,
0.05679221823811531,
0.011783664114773273,
-0.005432377569377422,
-0.03762124106287956,
0.033477138727903366,
-0.013315180316567421,
0.00006327356823021546,
0.03877438232302666,
-0.004281488247215748,
0.012333208695054054,
0.015396240167319775,
-0.012216092087328434,
0.01648631878197193,
0.0058152563869953156,
-0.02765737660229206,
0.008121538907289505,
-0.022089866921305656,
-0.0006092280382290483,
-0.0006109172245487571,
-0.05189136415719986,
0.010414308868348598,
0.006499934010207653,
-0.022035812959074974,
-0.07473798096179962,
-0.013261127285659313,
-0.009972872212529182,
-0.015369213186204433,
0.03466631472110748,
-0.010738629847764969,
-0.035369012504816055,
0.05066615343093872,
-0.030251946300268173,
-0.03654016926884651,
0.018522335216403008,
0.019261065870523453,
-0.06861191987991333,
-0.02826998382806778,
0.02655828930437565,
-0.04288244992494583,
0.018864674493670464,
-0.02724296785891056,
0.05790932476520538,
0.0008665452478453517,
-0.008594507351517677,
-0.003002221928909421,
-0.03664827719330788,
-0.049476977437734604,
0.021639419719576836,
-0.05888228490948677,
0.06608942151069641,
-0.00421842560172081,
-0.007319745607674122,
0.015738578513264656,
-0.014017876237630844,
0.0011948077008128166,
-0.0815126895904541,
0.023152917623519897,
0.012279154732823372,
0.029044751077890396,
0.0002354987373109907,
0.021351134404540062,
-0.028792500495910645,
-0.030954640358686447,
0.027315039187669754,
0.032594263553619385,
0.0280537698417902,
0.02090068906545639,
-0.04425180330872536,
-0.013747608289122581,
0.013909769244492054,
-0.023152917623519897,
0.023747507482767105,
0.05535079166293144,
-0.031369052827358246,
0.026522254571318626,
0.050305794924497604,
-0.017648469656705856,
-0.031783461570739746,
-0.03138706833124161,
0.03812573850154877,
0.0329546220600605,
-0.019513316452503204,
0.010927816852927208,
0.017612434923648834,
-0.027495216578245163,
-0.002117095747962594,
0.03297263756394386,
0.017990808933973312,
0.05300847068428993,
-0.008040458895266056,
0.0026688918005675077,
-0.09513416886329651,
0.011639521457254887,
-0.036846473813056946,
-0.0036215849686414003,
-0.008162079378962517,
0.025693433359265327,
0.04817969352006912,
-0.026756485924124718,
0.04533287510275841,
-0.03187355026602745,
0.055819254368543625,
0.012432306073606014,
0.01733315736055374,
-0.0185944065451622,
0.025405148044228554,
-0.018684495240449905,
-0.0325402095913887,
-0.07408934086561203,
-0.025801539421081543,
-0.0114953787997365,
0.015008856542408466,
-0.010819709859788418,
0.011297183111310005,
0.046954479068517685,
0.05549493432044983,
0.02345922216773033
]
|
30,060 | networkx.algorithms.tree.branchings | __iter__ |
Returns
-------
ArborescenceIterator
The iterator object for this graph
| def __iter__(self):
"""
Returns
-------
ArborescenceIterator
The iterator object for this graph
"""
self.partition_queue = PriorityQueue()
self._clear_partition(self.G)
# Write the initial partition if it exists.
if self.init_partition is not None:
self._write_partition(self.init_partition)
mst_weight = self.method(
self.G,
self.weight,
partition=self.partition_key,
preserve_attrs=True,
).size(weight=self.weight)
self.partition_queue.put(
self.Partition(
mst_weight if self.minimum else -mst_weight,
{}
if self.init_partition is None
else self.init_partition.partition_dict,
)
)
return self
| (self) | [
0.024416161701083183,
-0.016247520223259926,
-0.09335591644048691,
0.008886764757335186,
0.0126658845692873,
-0.017396515235304832,
-0.022800387814641,
-0.005224340595304966,
0.017997942864894867,
-0.002506696153432131,
0.007894858717918396,
0.011121921241283417,
-0.04244103655219078,
0.04714473709464073,
-0.0743974819779396,
0.04955044761300087,
-0.017962036654353142,
0.015403726138174534,
-0.023482603952288628,
0.05956825613975525,
-0.042943719774484634,
-0.05127394199371338,
-0.007989112287759781,
0.008271872997283936,
-0.007688398472964764,
0.03161533921957016,
0.0029734757263213396,
-0.03551115468144417,
0.00487425597384572,
-0.00310139125213027,
-0.020717831328511238,
-0.010780813172459602,
-0.016148777678608894,
-0.014434261247515678,
0.05971188098192215,
0.030538156628608704,
-0.017001548781991005,
0.03348245844244957,
-0.047791048884391785,
-0.0003722455003298819,
0.023733945563435555,
-0.005902068689465523,
0.0297482218593359,
-0.024990661069750786,
0.04007123038172722,
0.033141348510980606,
0.07188405841588974,
0.006947834510356188,
0.04297962784767151,
-0.03698330372571945,
0.02376985177397728,
0.004117983393371105,
0.02256699651479721,
-0.005341035779565573,
-0.061686716973781586,
0.05087897554039955,
0.03208211809396744,
-0.028527414426207542,
0.005821279715746641,
-0.0055340309627354145,
-0.0006648242706432939,
-0.05709073320031166,
0.05382327735424042,
-0.0024707899428904057,
0.0007596389041282237,
-0.041292041540145874,
-0.0632665827870369,
-0.03201030567288399,
-0.007665956858545542,
0.06437967717647552,
0.0027400858234614134,
-0.011759255081415176,
0.04937091842293739,
0.009515122510492802,
-0.0638410821557045,
0.004508462268859148,
-0.02450592815876007,
0.0011512399651110172,
0.052961528301239014,
-0.07497198134660721,
0.001564160455018282,
0.05709073320031166,
-0.021956592798233032,
-0.06032228469848633,
0.00815068930387497,
-0.00008625884947832674,
0.06068134680390358,
-0.016570674255490303,
-0.007136341650038958,
0.004780002404004335,
-0.028940333053469658,
0.04678567498922348,
0.04190244525671005,
0.03283614665269852,
0.06488236039876938,
0.01762990653514862,
-0.07511560618877411,
-0.0832303911447525,
0.017522187903523445,
-0.017118243500590324,
-0.04244103655219078,
0.05102260038256645,
0.025295862928032875,
0.020735785365104675,
0.006068134680390358,
-0.02466750517487526,
-0.016507839784026146,
-0.05766523256897926,
-0.025672877207398415,
-0.007477449718862772,
-0.03409286215901375,
0.08710825443267822,
0.000014963806279411074,
0.036947399377822876,
-0.022818339988589287,
0.019784273579716682,
0.014200870878994465,
-0.033213160932064056,
0.06150718778371811,
0.0069343699142336845,
-0.01587948203086853,
0.030735639855265617,
0.004892209079116583,
0.046606145799160004,
-0.030304767191410065,
0.003832978429272771,
0.031417857855558395,
0.00885983556509018,
-0.0416870079934597,
-0.06394880264997482,
0.023338979110121727,
-0.017809435725212097,
-0.0013318926794454455,
0.009362521581351757,
0.0005228829104453325,
-0.0048159086145460606,
0.018922526389360428,
-0.02831197716295719,
-0.054361868649721146,
0.06337430328130722,
0.04394909366965294,
-0.035475246608257294,
0.03773733228445053,
0.012423518113791943,
-0.039424922317266464,
-0.022172030061483383,
-0.011974691413342953,
-0.016059013083577156,
0.04538533836603165,
-0.03251299262046814,
-0.010080643929541111,
0.015978224575519562,
0.06136356294155121,
0.003487382084131241,
-0.010610259138047695,
-0.008783535100519657,
-0.030161142349243164,
0.005973881110548973,
-0.007015158422291279,
-0.038814518600702286,
-0.07525923103094101,
0.010709000751376152,
-0.013312194496393204,
-0.0011703151976689696,
-0.026803920045495033,
0.009613864123821259,
-0.018258262425661087,
-0.04060982167720795,
-0.032997727394104004,
-0.028599224984645844,
0.03328497335314751,
-0.1013270765542984,
-0.0652773305773735,
-0.009371497668325901,
-0.07985521107912064,
0.06477463990449905,
0.035008467733860016,
0.08402032405138016,
0.01259407214820385,
0.0182403102517128,
0.010215291753411293,
-0.0370551161468029,
-0.055259522050619125,
-0.035762496292591095,
0.013437866233289242,
0.022028405219316483,
0.043984998017549515,
-0.020969174802303314,
0.042261503636837006,
0.022477231919765472,
-0.054074618965387344,
-0.012989039532840252,
0.018348028883337975,
0.05188434571027756,
-0.004362593870609999,
-0.015233172103762627,
0.01640012115240097,
0.0503762885928154,
-0.04901185631752014,
0.12344524264335632,
-0.007122877053916454,
-0.00047379249008372426,
0.0018233577720820904,
0.028904428705573082,
0.007683909963816404,
0.0460316464304924,
-0.022746527567505836,
-0.027934962883591652,
0.016507839784026146,
0.02741432376205921,
-0.09586934745311737,
-0.05737798288464546,
0.02443411573767662,
0.0017268600640818477,
0.007131853606551886,
0.00974851194769144,
-0.0411125086247921,
-0.015224195085465908,
0.05845516547560692,
-0.012558165937662125,
0.006889487151056528,
0.02481113001704216,
-0.0016326064942404628,
-0.06448739767074585,
-0.0043289316818118095,
-0.056157175451517105,
0.026355093345046043,
-0.050484005361795425,
-0.059532348066568375,
-0.000008529456863470841,
0.013240382075309753,
-0.01805180311203003,
0.020879410207271576,
-0.05285381153225899,
0.024272538721561432,
0.02159753255546093,
-0.037845052778720856,
0.05321287363767624,
-0.05306924879550934,
0.038742706179618835,
-0.0318487286567688,
-0.018348028883337975,
-0.01245044730603695,
-0.012243987061083317,
-0.07949615269899368,
-0.01385976281017065,
0.02174115739762783,
0.02825811691582203,
0.05044810101389885,
0.020071521401405334,
-0.05321287363767624,
-0.08782637119293213,
-0.05267427861690521,
-0.04911957308650017,
0.04078935459256172,
-0.02908395789563656,
-0.04520580545067787,
-0.04714473709464073,
0.02384166419506073,
0.03603179380297661,
-0.0033841519616544247,
0.0206280667334795,
0.011534841731190681,
0.0649900808930397,
0.02114870585501194,
0.06190215423703194,
0.006000810768455267,
0.02086145617067814,
0.019766319543123245,
0.018401887267827988,
0.010278127156198025,
0.060501813888549805,
0.009883159771561623,
0.039281297475099564,
-0.012226033955812454,
0.0005672044935636222,
-0.04172291234135628,
0.023482603952288628,
-0.06595954298973083,
-0.01854551210999489,
0.000979563919827342,
0.028599224984645844,
-0.029335301369428635,
0.018725043162703514,
-0.04283600300550461,
-0.0137879503890872,
-0.0037970724515616894,
-0.027145028114318848,
0.010735929943621159,
-0.026624388992786407,
0.030879264697432518,
0.0418306328356266,
-0.010143479332327843,
-0.028042681515216827,
0.13629963994026184,
-0.015466561540961266,
-0.008967554196715355,
-0.0300354715436697,
0.02682187221944332,
0.04093297943472862,
0.09342772513628006,
-0.06671357154846191,
0.03168715164065361,
0.022064311429858208,
-0.000012281366252864245,
0.052494749426841736,
0.04247694090008736,
0.07633641362190247,
-0.029927752912044525,
0.03136399760842323,
-0.019981756806373596,
0.013653302565217018,
0.004310978576540947,
0.021543672308325768,
-0.03280024230480194,
-0.08940624445676804,
-0.005839232821017504,
-0.024990661069750786,
-0.01195673830807209,
0.07328439503908157,
-0.053930994123220444,
0.08804181218147278,
0.03567273169755936,
-0.001989423530176282,
-0.0929250419139862,
0.018886620178818703,
-0.009712605737149715,
0.05278199911117554,
-0.015197265893220901,
-0.01625649631023407,
-0.013994410634040833,
-0.0012140757171437144,
-0.031148560345172882,
0.05091487988829613,
-0.05554677173495293,
0.057808857411146164,
0.07213539630174637,
0.002290137344971299,
0.0026323674246668816,
-0.05737798288464546,
0.06380517780780792,
0.031561478972435,
0.024470021948218346,
0.030538156628608704,
-0.0050448100082576275,
0.0031889125239104033,
-0.02375189960002899,
-0.047719236463308334,
0.002717644674703479,
0.01770171709358692,
0.016391145065426826,
0.04714473709464073,
-0.004928115289658308,
0.044810838997364044,
0.012872344814240932,
0.007077994290739298,
-0.009622840210795403,
-0.038527268916368484,
-0.05127394199371338,
0.05791657418012619,
0.04883232340216637,
-0.002281160792335868,
-0.01012552622705698,
0.017549116164445877,
-0.029855940490961075,
-0.04229741171002388,
-0.04499037191271782,
0.02227974869310856,
0.014910017140209675,
-0.03452373668551445,
-0.012010597623884678,
-0.06394880264997482,
-0.04825782775878906,
0.010780813172459602,
-0.013249359093606472,
0.02998161129653454,
-0.045636679977178574,
0.02131028287112713,
0.034721218049526215,
0.016606580466032028,
0.06678538769483566,
0.04254875332117081,
0.030807452276349068,
0.027665667235851288,
-0.03603179380297661,
-0.045026276260614395,
0.05134575441479683,
-0.025062473490834236,
0.034577593207359314,
-0.007755722384899855,
-0.01499080564826727,
-0.02235156111419201,
-0.005080716218799353,
-0.0363369956612587,
-0.03885042294859886,
-0.007333825342357159,
0.07705453783273697,
-0.023949382826685905,
-0.019891992211341858,
-0.037019211798906326,
-0.008244942873716354,
-0.05719844996929169,
-0.01956883631646633,
0.0686165988445282,
0.027899056673049927,
-0.08430757373571396,
0.05723435804247856,
0.06721626222133636,
0.029012145474553108,
0.03071768768131733,
-0.008747628889977932,
-0.03346450626850128,
-0.0022845270577818155,
0.05475683510303497,
-0.021346189081668854,
-0.06405652314424515,
0.057737044990062714,
-0.030663827434182167,
0.05748569965362549,
0.0725303664803505,
0.03989170119166374,
0.03996351361274719,
0.06987331062555313,
0.004465823993086815,
0.011463029310107231,
-0.061830341815948486,
-0.010583329014480114,
-0.018671182915568352,
-0.029837986454367638,
-0.01666044071316719,
-0.03669605776667595,
-0.037701427936553955,
0.01666044071316719,
-0.006588773336261511,
0.0032809218391776085,
0.003341513453051448,
-0.022387467324733734,
0.0207716915756464,
0.01725289225578308,
-0.010349939577281475,
0.07217130064964294,
-0.0011108455946668983,
0.018276216462254524,
-0.0830867663025856,
-0.0172259621322155,
-0.02691163867712021,
-0.018509605899453163,
0.03452373668551445,
0.015287031419575214,
0.006552867125719786,
0.0041336920112371445,
-0.011373263783752918,
0.04556486755609512,
0.006292547564953566,
-0.05759342014789581,
0.047791048884391785,
0.04028666764497757,
-0.04832964017987251,
-0.029101911932229996,
0.028078587725758553,
0.04520580545067787,
0.017585022374987602,
0.001287010032683611,
-0.027988821268081665,
0.0038509315345436335,
-0.011857996694743633,
0.014703556895256042,
0.03218983858823776,
-0.013473772443830967,
-0.0498017892241478,
0.05849107354879379,
0.018141567707061768,
-0.03615746274590492,
-0.06380517780780792,
0.018374957144260406,
-0.0016505594830960035,
-0.028078587725758553,
0.022136123850941658,
-0.0004031023127026856,
-0.025978079065680504,
-0.005875139031559229,
-0.011337357573211193,
0.01602310687303543,
0.027450229972600937,
-0.007818558253347874,
-0.0063823130913078785,
-0.012082410044968128,
0.013743068091571331,
-0.01641807332634926,
-0.012064456939697266,
-0.0021016302052885294,
0.01585255190730095,
-0.0020634799730032682,
0.04929910600185394,
0.03174101188778877,
0.06516961008310318,
0.051309846341609955,
-0.009945996105670929,
0.04244103655219078,
-0.051309846341609955,
-0.00025078182807192206,
0.000610965071246028,
-0.025798548012971878,
0.0037970724515616894,
-0.007033111527562141,
0.047575611621141434,
-0.025798548012971878,
-0.02883261628448963,
0.04071754217147827,
0.02996365912258625,
0.04448768496513367,
-0.04840145260095596,
-0.012656907550990582,
-0.0069343699142336845,
-0.012019573710858822,
-0.02920963056385517,
-0.016525791957974434,
-0.0008146201143972576,
-0.018114637583494186,
-0.016911782324314117,
0.030735639855265617,
-0.01965860091149807,
-0.0021106067579239607,
0.004986462648957968,
-0.039281297475099564,
-0.009479216299951077,
0.007051064632833004,
-0.05224340781569481,
0.04455949738621712,
-0.032925914973020554,
-0.006656097248196602,
0.016830993816256523,
0.02450592815876007,
0.05719844996929169,
-0.002773747779428959,
0.02278243377804756,
0.030250906944274902,
0.017450375482439995,
-0.011965715326368809,
0.023105589672923088,
0.023069683462381363,
-0.008110295049846172,
0.025601064786314964,
-0.00532308267429471,
0.02660643681883812,
0.03333883360028267,
0.009506145492196083,
-0.0415433831512928,
0.008002576418220997,
-0.022082265466451645,
0.033661987632513046,
0.0033729313872754574,
-0.005197410937398672,
0.013922598212957382,
0.0687602236866951,
0.032997727394104004,
-0.0010676460806280375,
-0.04247694090008736,
0.022477231919765472,
0.04276419058442116,
-0.008011553436517715,
0.028204258531332016,
-0.02405710145831108,
-0.01980222575366497,
0.06700082123279572,
-0.02883261628448963,
0.02145390771329403,
0.004494997672736645,
0.021579578518867493,
0.03920948505401611,
0.04463130980730057,
0.013590467162430286,
0.03534957766532898,
0.02211817167699337,
-0.014918993227183819,
0.0032898983918130398,
-0.033141348510980606,
-0.025457439944148064,
-0.024344351142644882,
-0.07245855033397675,
-0.005578913725912571,
-0.029622551053762436,
0.05389508977532387,
-0.02549334615468979,
-0.01783636584877968,
0.012243987061083317,
-0.05874241515994072,
0.05813201144337654,
-0.020071521401405334,
-0.002968987450003624,
0.034416016191244125,
-0.0691910982131958,
-0.017971014603972435,
-0.029622551053762436,
-0.0126658845692873,
-0.050340380519628525,
0.022746527567505836,
-0.10024989396333694,
-0.07055553048849106,
-0.026337139308452606,
-0.030753593891859055,
0.0636974573135376,
0.017073361203074455,
0.06700082123279572,
0.017656834796071053,
-0.022441325709223747,
-0.03188463672995567,
0.01214524544775486,
0.004699213430285454,
-0.015376796945929527,
-0.008882276713848114,
0.031076747924089432,
0.018814807757735252,
-0.018814807757735252,
-0.000874089659191668,
-0.03174101188778877,
-0.05637260898947716,
0.024272538721561432,
-0.00037280653486959636,
0.0011568503687158227,
0.010161432437598705,
-0.024380257353186607,
-0.0018300901865586638,
0.01595129445195198,
-0.05217159539461136,
-0.028886474668979645,
0.05874241515994072,
-0.12401974201202393,
0.06333839893341064,
0.008460380136966705,
0.02646281197667122,
-0.05971188098192215,
-0.0114001939073205,
-0.030179094523191452,
0.020825549960136414,
-0.06491826474666595,
0.017800459638237953,
0.016220590099692345,
-0.0545773059129715,
-0.0000964275750447996,
-0.04955044761300087,
0.03393128514289856,
-0.01304289884865284,
-0.02473931759595871,
-0.04157928749918938,
-0.028132446110248566,
-0.0055968668311834335,
0.00493260333314538,
0.014129058457911015,
-0.001008176594041288,
-0.03317725658416748,
0.03143581002950668,
0.00458476273342967,
0.007060041185468435,
-0.03992760553956032,
0.03168715164065361,
0.006606726441532373,
-0.004676772281527519,
-0.010421751998364925,
0.005655214190483093,
0.01783636584877968,
-0.009820324368774891,
-0.034631453454494476,
-0.011687442660331726,
0.01904819719493389,
0.0006693125469610095,
0.008042971603572369,
-0.0014250242384150624,
-0.018994338810443878,
-0.00015035687829367816,
-0.022333607077598572,
0.04075344651937485,
-0.010511517524719238,
-0.019245680421590805,
-0.08883174508810043,
-0.004721655044704676,
-0.02405710145831108,
-0.031202418729662895,
0.015987200662493706,
-0.030161142349243164,
-0.03229755535721779,
0.02398528903722763,
-0.02998161129653454,
-0.01005371380597353,
0.007221618667244911,
0.020574208348989487,
-0.041507475078105927,
-0.04822191968560219,
0.001379019464366138,
-0.08215320855379105,
0.01779148355126381,
-0.01942521147429943,
0.05971188098192215,
0.004667795728892088,
0.025744689628481865,
0.020286958664655685,
-0.030161142349243164,
-0.04387728124856949,
0.0506635382771492,
-0.0415433831512928,
0.0454571507871151,
0.02339283749461174,
0.006467590108513832,
0.020125381648540497,
0.014003387652337551,
0.036875586956739426,
-0.04947863519191742,
0.030179094523191452,
-0.00846935622394085,
0.03233346343040466,
0.00833919644355774,
0.03698330372571945,
-0.02263880893588066,
-0.03910176455974579,
0.05231522023677826,
0.033590175211429596,
0.04721654951572418,
0.016534768044948578,
-0.018455745652318,
-0.0001920135982800275,
-0.009443310089409351,
-0.029478926211595535,
0.018132591620087624,
0.016768159344792366,
-0.027450229972600937,
0.03824001923203468,
0.021723203361034393,
-0.000663141196127981,
-0.03870679810643196,
0.001484493725001812,
-0.002780480310320854,
-0.012064456939697266,
-0.02055625431239605,
0.020897362381219864,
0.02615761011838913,
-0.021723203361034393,
0.019155915826559067,
0.016085943207144737,
0.04086116701364517,
0.04685748741030693,
-0.002372048096731305,
0.029335301369428635,
-0.0649900808930397,
0.017827389761805534,
-0.010610259138047695,
-0.013249359093606472,
-0.04186653718352318,
0.01525112520903349,
0.026211468502879143,
-0.0017291042022407055,
0.06994512677192688,
-0.024559786543250084,
0.0745411068201065,
0.02420072630047798,
0.0008836272172629833,
-0.03350041061639786,
0.046749770641326904,
-0.026480764150619507,
-0.011274522170424461,
-0.05482864752411842,
-0.05253065750002861,
-0.033069536089897156,
0.017172101885080338,
0.01571790501475334,
-0.011723348870873451,
0.033213160932064056,
0.056911204010248184,
0.007549262139946222
]
|
30,061 | networkx.algorithms.tree.branchings | __next__ |
Returns
-------
(multi)Graph
The spanning tree of next greatest weight, which ties broken
arbitrarily.
| def __next__(self):
"""
Returns
-------
(multi)Graph
The spanning tree of next greatest weight, which ties broken
arbitrarily.
"""
if self.partition_queue.empty():
del self.G, self.partition_queue
raise StopIteration
partition = self.partition_queue.get()
self._write_partition(partition)
next_arborescence = self.method(
self.G,
self.weight,
partition=self.partition_key,
preserve_attrs=True,
)
self._partition(partition, next_arborescence)
self._clear_partition(next_arborescence)
return next_arborescence
| (self) | [
0.020993588492274284,
-0.03451218456029892,
-0.0629807636141777,
0.024474848061800003,
-0.01112412754446268,
-0.020233718678355217,
-0.014234288595616817,
-0.032727379351854324,
0.029281461611390114,
-0.022318940609693527,
-0.010284737683832645,
-0.0004243889998178929,
-0.029952973127365112,
0.030748184770345688,
-0.04325951635837555,
0.05453385040163994,
0.004855209030210972,
0.008645717985928059,
-0.019809605553746223,
0.06669174879789352,
-0.04788941517472267,
-0.008301125839352608,
0.01975659281015396,
0.023891692981123924,
-0.015374092385172844,
0.017088215798139572,
0.017194243147969246,
-0.010231723077595234,
-0.026825139299035072,
-0.027531994506716728,
-0.02454553358256817,
-0.013757161796092987,
-0.021912498399615288,
-0.017742056399583817,
0.06905971467494965,
0.0421285480260849,
-0.02894570492208004,
0.058774977922439575,
-0.057644009590148926,
-0.04697050154209137,
0.033681631088256836,
-0.025835543870925903,
0.029705572873353958,
-0.008544107899069786,
0.014649566262960434,
0.03405272960662842,
0.07436112314462662,
0.015268064104020596,
0.006882998626679182,
-0.011088784784078598,
0.035996582359075546,
-0.004274262581020594,
-0.00847342237830162,
-0.003253740957006812,
-0.03672110661864281,
0.03527205437421799,
0.016602251678705215,
-0.03703919053077698,
0.018236855044960976,
-0.008689896203577518,
0.03596124053001404,
-0.05099957436323166,
0.03954852744936943,
0.020940573886036873,
0.011945846490561962,
-0.04202251881361008,
-0.049762580543756485,
-0.03647371008992195,
-0.026878153905272484,
0.08022802323102951,
-0.011424540542066097,
-0.008093487471342087,
0.016089782118797302,
0.017644863575696945,
-0.04396636784076691,
-0.008857774548232555,
-0.01680547371506691,
-0.004908223170787096,
0.047500643879175186,
-0.048631612211465836,
0.008954967372119427,
0.034847941249608994,
-0.0006532885017804801,
-0.07040274143218994,
-0.02523471601307392,
0.01189283188432455,
0.08623629063367844,
0.011318512260913849,
-0.01883768104016781,
-0.01621348224580288,
-0.0294405035674572,
0.02868063375353813,
0.02011001855134964,
0.0701906830072403,
0.08100555837154388,
-0.020392760634422302,
-0.05230725556612015,
-0.052024513483047485,
0.018201511353254318,
-0.029334474354982376,
-0.04636967554688454,
0.0566190704703331,
-0.015594984404742718,
0.008429243229329586,
0.02161208540201187,
-0.04230526089668274,
0.005557646043598652,
-0.006922759115695953,
-0.03239162266254425,
-0.008915206417441368,
-0.041244979947805405,
0.017591848969459534,
-0.002339247614145279,
0.061354998499155045,
-0.0344415009021759,
0.023202508687973022,
-0.025075674057006836,
-0.004143936559557915,
0.05022203549742699,
0.01839589700102806,
-0.005190965253859758,
0.012855921871960163,
-0.054109737277030945,
0.022442640736699104,
-0.023273194208741188,
0.002529214834794402,
0.07690580189228058,
-0.03414108604192734,
-0.02115263044834137,
-0.021347016096115112,
0.034582871943712234,
0.024898961186408997,
0.019721249118447304,
0.02323785237967968,
-0.04569816216826439,
0.000863135966937989,
-0.0172119140625,
-0.03520137071609497,
-0.04668775945901871,
0.02527005970478058,
0.017476985231041908,
-0.024156764149665833,
0.05354425311088562,
0.00830996222794056,
0.010328915901482105,
-0.004594556521624327,
-0.013094485737383366,
0.006631181575357914,
0.050116006284952164,
0.008133248426020145,
-0.008928460069000721,
-0.006856491789221764,
0.08319681137800217,
0.02442183345556259,
0.022265926003456116,
-0.0024077242705971003,
-0.02237195521593094,
0.03686247766017914,
-0.045733507722616196,
-0.02754966728389263,
-0.026701441034674644,
0.0024673650041222572,
-0.016072111204266548,
-0.034671228379011154,
-0.01480860821902752,
0.00785934180021286,
-0.009303976781666279,
-0.002264144364744425,
-0.016690609976649284,
0.011300841346383095,
0.02237195521593094,
-0.06163774058222771,
-0.07414907217025757,
0.021894827485084534,
-0.0865190327167511,
0.04523870721459389,
0.03908907249569893,
0.08418640494346619,
0.028238849714398384,
0.0020178495906293392,
0.01170728262513876,
-0.03908907249569893,
-0.027196239680051804,
-0.06142568215727806,
0.03859427198767662,
0.05276671051979065,
0.06845889240503311,
-0.018731651827692986,
0.03891235589981079,
0.0344415009021759,
-0.06435912847518921,
-0.009162605740129948,
0.03465355560183525,
0.027196239680051804,
0.02323785237967968,
0.004943565931171179,
0.008950549177825451,
0.06867094337940216,
-0.036084938794374466,
0.10793673247098923,
-0.002041043248027563,
-0.03062448464334011,
0.024174435064196587,
0.006971355527639389,
-0.0003829717170447111,
0.04774804413318634,
-0.025888558477163315,
0.009025651961565018,
0.002042147796601057,
0.03855893015861511,
-0.06711586564779282,
-0.0009608807740733027,
0.006993444636464119,
0.04272937402129173,
0.004753598477691412,
-0.03094257041811943,
-0.04251731559634209,
-0.007430811412632465,
0.03477725759148598,
-0.0018477626144886017,
-0.0039362977258861065,
-0.005407439544796944,
0.00667977798730135,
-0.043648283928632736,
0.01839589700102806,
-0.0819951593875885,
0.009869460016489029,
-0.03862961381673813,
-0.03293943405151367,
-0.017565341666340828,
0.038028787821531296,
-0.059411145746707916,
0.02903406135737896,
-0.04997463524341583,
0.0199333056807518,
-0.005036340560764074,
-0.04629899188876152,
0.0219655130058527,
-0.04841955378651619,
0.04902037978172302,
-0.033769987523555756,
-0.03693316504359245,
-0.024439504370093346,
0.02758500911295414,
-0.024386491626501083,
-0.0020244764164090157,
0.01580704003572464,
-0.0008415990159846842,
0.06245062127709389,
0.03433547168970108,
-0.03256833553314209,
-0.06075417250394821,
-0.026984183117747307,
-0.03285107761621475,
0.023750321939587593,
-0.05789140984416008,
-0.034989312291145325,
-0.05955251678824425,
-0.003923044074326754,
0.018201511353254318,
-0.008711985312402248,
0.043506912887096405,
-0.031048597767949104,
0.07107425481081009,
-0.02749665267765522,
0.05866894870996475,
-0.00007993533654371276,
0.001464514760300517,
0.007413140032440424,
0.019367821514606476,
0.01050562970340252,
0.016743622720241547,
-0.005473706871271133,
0.01612512581050396,
-0.01929713599383831,
-0.031914494931697845,
-0.030995583161711693,
0.06400570273399353,
-0.022584011778235435,
-0.0629454180598259,
-0.007704717572778463,
0.029051732271909714,
-0.020693175494670868,
-0.00197588000446558,
-0.053614936769008636,
0.040114011615514755,
-0.013801340013742447,
-0.07718854397535324,
0.04569816216826439,
-0.03452985733747482,
0.04248197376728058,
-0.007823999039828777,
0.006684195715934038,
0.019014393910765648,
0.14299672842025757,
-0.031101612374186516,
-0.013465584255754948,
-0.010090352036058903,
0.04675844684243202,
0.02170044369995594,
0.061531711369752884,
-0.06895368546247482,
0.011274334043264389,
0.027850080281496048,
0.005818298552185297,
0.03735727816820145,
0.033681631088256836,
0.00948952604085207,
-0.035802196711301804,
0.01399572566151619,
-0.046723105013370514,
0.01702636480331421,
0.03887701407074928,
0.05290808156132698,
-0.056689757853746414,
-0.0974045917391777,
-0.02613595686852932,
-0.009206783957779408,
0.021311672404408455,
0.06266267597675323,
-0.049939293414354324,
0.05488727614283562,
0.013280034996569157,
-0.0067239562049508095,
-0.08461052179336548,
0.04502665251493454,
-0.06266267597675323,
0.011177142150700092,
-0.009975488297641277,
0.005319082643836737,
-0.030430098995566368,
-0.000024919392672018148,
-0.005403021350502968,
0.05697249621152878,
-0.05736126750707626,
0.05534673109650612,
0.06807012110948563,
0.006436796858906746,
0.023114152252674103,
-0.09980790317058563,
0.034229446202516556,
-0.00023290314129553735,
0.004788941238075495,
0.005858059041202068,
0.019279465079307556,
0.03315149247646332,
0.01880233734846115,
-0.04951518028974533,
0.041881147772073746,
-0.007907938212156296,
0.01883768104016781,
0.013739490881562233,
-0.018820010125637054,
0.02668377012014389,
0.025941571220755577,
-0.00933048315346241,
-0.017238421365618706,
0.01254667341709137,
-0.016646431758999825,
0.04050277918577194,
0.018325211480259895,
-0.022212913259863853,
-0.03746330365538597,
0.06874162703752518,
-0.013368391431868076,
-0.012829414568841457,
-0.07796608656644821,
0.05237794294953346,
-0.011601254343986511,
-0.04682913050055504,
-0.022884424775838852,
-0.04265868663787842,
-0.019403165206313133,
0.041739776730537415,
-0.029051732271909714,
0.05181245878338814,
-0.021258657798171043,
0.029051732271909714,
0.07549209147691727,
-0.004358201753348112,
0.06941314041614532,
0.020145362243056297,
0.022000856697559357,
0.06725723296403885,
-0.008703149855136871,
-0.010479122400283813,
0.04470856860280037,
-0.031861480325460434,
0.01085022184997797,
-0.0026595413219183683,
-0.01064700074493885,
-0.010267065837979317,
0.00824811216443777,
-0.028026793152093887,
-0.042870745062828064,
0.0082702012732625,
0.08842753618955612,
-0.006260083056986332,
-0.04325951635837555,
-0.023679636418819427,
-0.01273222267627716,
-0.006909505929797888,
-0.07308878749608994,
0.02894570492208004,
0.0014877085341140628,
-0.07930911332368851,
0.06446515768766403,
0.09634431451559067,
0.004788941238075495,
0.013244692236185074,
-0.05223657190799713,
-0.033769987523555756,
-0.02152372896671295,
0.02816816419363022,
-0.006268918514251709,
-0.03062448464334011,
0.05520536005496979,
0.04806612804532051,
0.07280604541301727,
0.04396636784076691,
0.037392619997262955,
0.03686247766017914,
0.02744363807141781,
-0.023025795817375183,
-0.011777968145906925,
-0.0543571338057518,
-0.01267920807003975,
-0.0176625344902277,
-0.04424910992383957,
0.04145703464746475,
-0.034900955855846405,
-0.05849223583936691,
0.021081944927573204,
-0.02396237850189209,
0.014923471957445145,
-0.039654556661844254,
-0.04255266115069389,
0.02065783180296421,
0.022530997171998024,
-0.03270970657467842,
0.0471118725836277,
0.022318940609693527,
-0.03682713583111763,
-0.047535985708236694,
0.006472139619290829,
-0.07344221323728561,
0.00971925351768732,
0.015480120666325092,
-0.01874932460486889,
-0.0007786447531543672,
0.01098275650292635,
-0.019968649372458458,
0.03094257041811943,
0.038346875458955765,
-0.01039960142225027,
0.034724242985248566,
0.0072629330679774284,
-0.05534673109650612,
0.01984494924545288,
0.010638165287673473,
0.04679378867149353,
-0.0021934588439762592,
0.03958386927843094,
-0.0003128384705632925,
-0.043365541845560074,
-0.02599458582699299,
0.02161208540201187,
0.006675360258668661,
-0.027602680027484894,
-0.07163973897695541,
0.047041188925504684,
-0.008963802829384804,
-0.08312612771987915,
-0.06450050324201584,
0.012369959615170956,
-0.022937439382076263,
-0.02193017117679119,
-0.02277839556336403,
0.01961522176861763,
-0.0806521326303482,
-0.014614223502576351,
-0.034989312291145325,
0.029511189088225365,
-0.01625766046345234,
-0.01528573501855135,
-0.008274619467556477,
-0.0029224029276520014,
0.005076101049780846,
-0.014207782223820686,
-0.016089782118797302,
-0.009100755676627159,
0.015594984404742718,
0.013863190077245235,
0.03845290094614029,
-0.021629758179187775,
0.07178110629320145,
0.013659968972206116,
-0.024227449670433998,
0.04456719756126404,
-0.0466524176299572,
0.017379792407155037,
-0.014958814717829227,
-0.040467437356710434,
-0.03149038180708885,
0.02491663210093975,
0.027531994506716728,
-0.0041130115278065205,
0.0018223600927740335,
0.010753029026091099,
0.06255665421485901,
0.05340288206934929,
-0.009100755676627159,
-0.04746530205011368,
0.022796068340539932,
0.0023613369558006525,
0.007832834497094154,
0.04679378867149353,
0.013942711055278778,
0.007726806681603193,
-0.016955679282546043,
0.024651560932397842,
-0.025305401533842087,
-0.015683341771364212,
0.03548411279916763,
-0.03749864920973778,
-0.003828060580417514,
-0.031225310638546944,
-0.022902095690369606,
0.029104746878147125,
-0.003881074720993638,
0.016814308241009712,
0.02518170326948166,
-0.0003840761783067137,
0.0552760474383831,
-0.02007467672228813,
-0.026012256741523743,
-0.0027478979900479317,
0.05944649130105972,
-0.01667293719947338,
-0.017097050324082375,
0.008190680295228958,
-0.01915576495230198,
-0.007965370081365108,
0.04587487876415253,
0.006374946795403957,
0.020410433411598206,
0.013765997253358364,
-0.043683625757694244,
0.005062847398221493,
-0.019986320286989212,
0.007806327659636736,
0.02894570492208004,
0.018607953563332558,
-0.0028627619612962008,
0.09500128775835037,
-0.0034260370302945375,
0.012087217532098293,
0.013668805360794067,
0.01735328510403633,
0.019085079431533813,
-0.036897819489240646,
0.013032635673880577,
-0.002405515406280756,
-0.02830953523516655,
0.07216987758874893,
-0.043365541845560074,
0.017362121492624283,
0.023520594462752342,
0.07103890925645828,
0.02781473658978939,
0.019668234512209892,
0.017830412834882736,
0.012025367468595505,
-0.016337182372808456,
0.006931595038622618,
0.004674077499657869,
-0.03672110661864281,
-0.0038854924496263266,
-0.04230526089668274,
-0.04682913050055504,
0.0011718327878043056,
-0.017998291179537773,
0.08644834160804749,
0.0008537480607628822,
-0.03841755911707878,
-0.00919794850051403,
-0.05262533947825432,
0.05068149045109749,
-0.029652560129761696,
0.02876899018883705,
0.05439247936010361,
-0.054427821189165115,
-0.01725609228014946,
-0.020710846409201622,
-0.0052969930693507195,
-0.03817015886306763,
-0.008477839641273022,
-0.028592277318239212,
-0.050116006284952164,
-0.0194738507270813,
-0.0339643731713295,
0.07740060240030289,
0.019049737602472305,
0.04424910992383957,
0.0067902239970862865,
0.01358928345143795,
-0.03566082566976547,
-0.02668377012014389,
0.003989311866462231,
-0.018130825832486153,
-0.011318512260913849,
0.0353250689804554,
-0.0037087788805365562,
-0.00512911519035697,
-0.0260476004332304,
0.01676129549741745,
-0.052059855312108994,
0.01306797843426466,
-0.055876873433589935,
-0.026259656995534897,
-0.005553228314965963,
-0.0043758731335401535,
0.0029997150413691998,
-0.002666167914867401,
-0.017644863575696945,
0.00878708902746439,
0.08022802323102951,
-0.11903434991836548,
0.05227191373705864,
0.053791649639606476,
-0.010373094119131565,
-0.06997862458229065,
0.016293004155158997,
-0.03403506055474281,
-0.03355793282389641,
-0.04386034235358238,
0.02998831495642662,
0.002591064665466547,
-0.049303121864795685,
-0.03062448464334011,
-0.07171042263507843,
0.07199316471815109,
-0.022866753861308098,
-0.017521163448691368,
-0.024121420457959175,
-0.02744363807141781,
-0.011875160969793797,
0.03548411279916763,
-0.004137309733778238,
-0.005743195302784443,
-0.04470856860280037,
0.027867751196026802,
-0.0014280675677582622,
0.008544107899069786,
0.02749665267765522,
0.0033111730590462685,
0.04004332423210144,
0.001791435177437961,
0.002438649069517851,
0.0020476700738072395,
-0.002244264120236039,
-0.01938549242913723,
-0.017839249223470688,
-0.0016058858018368483,
-0.028238849714398384,
0.023131823167204857,
0.0019979693461209536,
-0.01214023120701313,
-0.028433235362172127,
-0.04707653075456619,
-0.020940573886036873,
-0.00957788247615099,
-0.006207068916410208,
-0.03380533307790756,
-0.07577483355998993,
-0.026401028037071228,
-0.008071398362517357,
-0.0060568624176084995,
0.0026241985615342855,
-0.019721249118447304,
0.02065783180296421,
0.0538976788520813,
-0.022407297044992447,
0.001290010055527091,
0.008058144710958004,
0.026524726301431656,
-0.04113895073533058,
0.010373094119131565,
0.0019493730505928397,
-0.06029471382498741,
0.006339604035019875,
-0.044637881219387054,
0.049939293414354324,
0.0026595413219183683,
-0.025976914912462234,
-0.0015639163320884109,
-0.0020565057639032602,
-0.03251532092690468,
0.0271785669028759,
-0.045768849551677704,
0.03129599615931511,
0.0075147501192986965,
0.005972923245280981,
-0.017998291179537773,
0.022442640736699104,
0.033716972917318344,
-0.01490580104291439,
0.050716832280159,
0.006896252278238535,
0.0027699873317033052,
-0.01906740851700306,
-0.013659968972206116,
-0.027019524946808815,
0.0032117716036736965,
0.021983183920383453,
0.03961921110749245,
0.016549238935112953,
0.03767536208033562,
-0.04322417080402374,
0.03710987791419029,
-0.05955251678824425,
0.014623058959841728,
0.027054868638515472,
-0.008963802829384804,
-0.000038000347558408976,
0.06683312356472015,
0.09500128775835037,
-0.02436881884932518,
-0.06969588249921799,
0.01542710606008768,
0.011053442023694515,
0.020410433411598206,
-0.0002954432275146246,
0.011937011033296585,
0.019191108644008636,
-0.0147202517837286,
0.034724242985248566,
0.020587146282196045,
0.042199231684207916,
0.04354225471615791,
-0.05068149045109749,
0.03845290094614029,
-0.04234060272574425,
0.014976486563682556,
-0.04265868663787842,
-0.023891692981123924,
-0.032868750393390656,
0.01743280701339245,
0.0199333056807518,
-0.0471118725836277,
0.05771469697356224,
0.0012579807080328465,
0.11012797802686691,
0.027531994506716728,
-0.054922617971897125,
-0.028609948232769966,
0.039654556661844254,
-0.021258657798171043,
-0.0027589427772909403,
-0.065242700278759,
-0.05531138926744461,
0.007532421499490738,
0.02663075551390648,
0.05488727614283562,
-0.04806612804532051,
0.01480860821902752,
0.04661707580089569,
0.040926892310380936
]
|
30,062 | networkx.algorithms.tree.branchings | _clear_partition |
Removes partition data from the graph
| def _clear_partition(self, G):
"""
Removes partition data from the graph
"""
for u, v, d in G.edges(data=True):
if self.partition_key in d:
del d[self.partition_key]
nx._clear_cache(self.G)
| (self, G) | [
0.0439835749566555,
0.04506780579686165,
-0.07459498941898346,
0.02246161922812462,
0.0041087777353823185,
-0.015287634916603565,
-0.040477897971868515,
0.010797117836773396,
0.05605466291308403,
-0.02280495874583721,
0.006410506553947926,
-0.013724537566304207,
0.009468937292695045,
-0.006925515830516815,
-0.01998596265912056,
0.014727449975907803,
-0.0055114999413490295,
-0.0018725546542555094,
0.05724731460213661,
-0.016606781631708145,
0.0002116223913617432,
-0.08297969400882721,
0.0064511653035879135,
0.04112843796610832,
-0.020726852118968964,
-0.0013360868906602263,
0.015983348712325096,
-0.030846327543258667,
0.005642510950565338,
0.002550197998061776,
-0.004316588398069143,
-0.017365742474794388,
-0.014212440699338913,
0.03225582465529442,
0.030900539830327034,
0.03259916603565216,
0.0314607247710228,
0.0004825385694857687,
-0.05417533218860626,
0.008380190469324589,
0.006021990906447172,
0.0051184664480388165,
-0.0289669968187809,
-0.038201019167900085,
0.08391936123371124,
0.02322058007121086,
0.066065713763237,
0.023292861878871918,
0.011140457354485989,
0.027991190552711487,
-0.0026970207691192627,
0.009252090938389301,
-0.03588799387216568,
0.0534525103867054,
-0.03939367085695267,
-0.021865293383598328,
0.04582676663994789,
-0.012902330607175827,
0.01792592741549015,
0.016787486150860786,
0.007228196132928133,
-0.017031436786055565,
0.0036502392031252384,
0.012848119251430035,
0.02811768464744091,
-0.01855839416384697,
-0.008705458603799343,
0.01244153268635273,
-0.04261021688580513,
-0.016398970037698746,
-0.03359304368495941,
-0.012179510667920113,
0.0009645124664530158,
0.020040174946188927,
-0.03693608194589615,
0.0005079502006992698,
0.013028823770582676,
0.01385103166103363,
0.02345549687743187,
-0.06346356123685837,
0.061042118817567825,
-0.008262732066214085,
-0.0484650582075119,
0.0043730586767196655,
0.030286142602562904,
0.005750933662056923,
0.061258964240550995,
0.018440935760736465,
0.007946498692035675,
-0.055331844836473465,
0.026997312903404236,
0.06761977821588516,
-0.014808767475187778,
-0.01938963681459427,
0.056163083761930466,
-0.008443436585366726,
-0.07560693472623825,
-0.014022700488567352,
-0.031153526157140732,
-0.06111440062522888,
0.02710573561489582,
-0.0008402778184972703,
-0.03176792338490486,
0.015368952415883541,
0.0027218677569180727,
-0.01975104585289955,
0.04560991749167442,
-0.047561533749103546,
-0.054500602185726166,
0.03798417001962662,
-0.03624940291047096,
0.08775030076503754,
-0.009035245515406132,
0.018269266933202744,
0.0330328568816185,
0.040875449776649475,
-0.018070491030812263,
-0.014799731783568859,
-0.004427270032465458,
-0.012577061541378498,
-0.03653853386640549,
0.027973119169473648,
-0.051500897854566574,
-0.0209979098290205,
-0.0013338280841708183,
0.001513403607532382,
0.0314607247710228,
0.034532707184553146,
-0.026202211156487465,
-0.05956033617258072,
-0.0029025725089013577,
0.005538605619221926,
-0.02853330597281456,
-0.023274792358279228,
-0.017067579552531242,
-0.049007169902324677,
0.022118281573057175,
-0.03361111134290695,
0.017185036092996597,
-0.00151566241402179,
-0.02855137549340725,
-0.00407715467736125,
0.00834404956549406,
0.0468025729060173,
0.07596834003925323,
-0.02750328741967678,
0.01852225326001644,
-0.03165949881076813,
-0.007463112939149141,
-0.02667204476892948,
-0.0456460602581501,
0.04734468460083008,
0.053922343999147415,
-0.07495639473199844,
-0.0346953421831131,
0.03359304368495941,
-0.06180107966065407,
0.009631571359932423,
-0.04723626375198364,
-0.0076257470063865185,
-0.04828435182571411,
-0.0012671931181102991,
0.037405915558338165,
-0.0024056341499090195,
-0.030484918504953384,
-0.0008538307156413794,
0.055765535682439804,
-0.03446042537689209,
-0.04015263170003891,
-0.031894415616989136,
0.022533902898430824,
-0.05478972941637039,
-0.03773118555545807,
-0.03241845965385437,
-0.0021887882612645626,
0.0745227038860321,
0.018594535067677498,
0.00656862324103713,
0.0038828966207802296,
0.02607571892440319,
-0.02811768464744091,
-0.04297162592411041,
-0.026581691578030586,
0.007932945154607296,
0.02305794693529606,
-0.017067579552531242,
0.01732960157096386,
-0.05945191532373428,
0.01652546413242817,
-0.01652546413242817,
-0.07828136533498764,
0.003573439549654722,
-0.04018877074122429,
0.06245161592960358,
0.04445340856909752,
0.0038422381039708853,
0.010589308105409145,
0.033502690494060516,
-0.04221266508102417,
0.05197073146700859,
-0.018829451873898506,
-0.016200194135308266,
0.018793310970067978,
-0.0027941495645791292,
-0.05854839086532593,
0.02341935597360134,
-0.014013665728271008,
0.005082325544208288,
0.04467025399208069,
0.031063172966241837,
-0.010056228376924992,
-0.04358602315187454,
0.08442533016204834,
0.0008267249795608222,
0.062090206891298294,
-0.05222371965646744,
-0.05298268049955368,
0.046549584716558456,
0.04102001339197159,
-0.021666519343852997,
-0.05833154544234276,
0.005728345829993486,
-0.01346251554787159,
-0.04611589387059212,
0.02262425422668457,
-0.03380988910794258,
0.01714889518916607,
-0.06411410123109818,
-0.02341935597360134,
-0.03711678832769394,
0.06845101714134216,
-0.015531586483120918,
0.037369776517152786,
-0.035183247178792953,
0.06263232231140137,
0.04589904844760895,
-0.051284052431583405,
-0.02056421898305416,
0.028244176879525185,
0.01668809913098812,
-0.05240442231297493,
-0.06646326184272766,
-0.026943102478981018,
-0.0034333933144807816,
-0.011375374160706997,
0.04951314628124237,
0.02365427277982235,
0.0599217489361763,
0.03765890374779701,
-0.014790697023272514,
-0.058439966291189194,
-0.06819803267717361,
0.007463112939149141,
-0.026563622057437897,
0.06458393484354019,
-0.04322461411356926,
-0.057355739176273346,
0.008895198814570904,
-0.00519074872136116,
0.03691801428794861,
-0.03632168844342232,
-0.017492234706878662,
-0.05403076857328415,
0.06642712652683258,
0.08941278606653214,
0.020853346213698387,
0.057175032794475555,
0.07958244532346725,
-0.0008210779051296413,
-0.003970990423113108,
0.11550657451152802,
0.007941980846226215,
0.05121177062392235,
-0.0011181116569787264,
0.03957437351346016,
0.07112545520067215,
-0.037189070135354996,
-0.00958639569580555,
0.024521656334400177,
0.01957034133374691,
0.04810364544391632,
-0.017203107476234436,
0.02508184127509594,
0.04593518748879433,
-0.014953331090509892,
0.011583184823393822,
0.02632870525121689,
-0.0730409249663353,
-0.008524754084646702,
0.025425180792808533,
-0.02710573561489582,
0.0151882478967309,
-0.008845505304634571,
0.009143668226897717,
0.04622431471943855,
0.034731484949588776,
-0.0011982994619756937,
-0.01244153268635273,
-0.0273045115172863,
0.06483691930770874,
0.05746416002511978,
-0.01996789313852787,
-0.04542921483516693,
0.020925628021359444,
0.04936858266592026,
0.018061455339193344,
0.012866189703345299,
0.020744923502206802,
0.02587694302201271,
0.00846602488309145,
-0.04651344195008278,
0.001491944887675345,
-0.020112456753849983,
0.04976613074541092,
-0.013110141269862652,
0.0025773036759346724,
0.03776732459664345,
0.02387111820280552,
0.00242596329189837,
0.0338640995323658,
0.021485812962055206,
0.03605062887072563,
-0.011691607534885406,
0.029509112238883972,
-0.07517324388027191,
0.014058842323720455,
-0.005796109791845083,
0.07257109135389328,
-0.041706692427396774,
-0.0011881347745656967,
-0.03440621495246887,
0.007463112939149141,
-0.028226107358932495,
0.014013665728271008,
-0.048862606287002563,
0.01613694801926613,
0.03581571206450462,
-0.03200284019112587,
0.012387321330606937,
0.015621939674019814,
0.027449075132608414,
0.023076016455888748,
0.01142054982483387,
-0.0042284950613975525,
0.01772715151309967,
0.03892383724451065,
-0.009134633466601372,
-0.0013598044170066714,
-0.028424881398677826,
0.006925515830516815,
0.01899208500981331,
0.07473955303430557,
0.03644818067550659,
0.018260231241583824,
0.08536499738693237,
-0.02282303012907505,
0.005109431222081184,
0.004888067953288555,
-0.027159947901964188,
0.02772013284265995,
0.07228196412324905,
-0.002566009759902954,
-0.005425665061920881,
-0.02383497729897499,
0.01835961826145649,
-0.013408304192125797,
-0.05836768448352814,
-0.008095580153167248,
0.007761275861412287,
-0.02815382555127144,
-0.030015084892511368,
-0.09432796388864517,
-0.04868190363049507,
-0.003017771989107132,
0.048139788210392,
0.0318763442337513,
-0.02123282663524151,
0.021684588864445686,
0.0201666671782732,
0.059415772557258606,
0.03375567868351936,
-0.00785614550113678,
0.03859856724739075,
-0.0004881856148131192,
-0.042321089655160904,
0.002536645159125328,
-0.006948103662580252,
-0.02103405073285103,
0.06039157882332802,
-0.002532127546146512,
0.013164352625608444,
0.021883364766836166,
0.027376793324947357,
-0.01895594410598278,
0.0026315152645111084,
0.03287022188305855,
-0.0005923732533119619,
-0.03791188821196556,
-0.03769504278898239,
-0.05489815026521683,
-0.020636500790715218,
-0.055331844836473465,
-0.06154809147119522,
0.044778674840927124,
0.06454779207706451,
-0.05468130484223366,
0.005010043736547232,
0.005525052547454834,
0.034333933144807816,
-0.00037326858728192747,
0.03429779037833214,
0.013896207325160503,
0.05160932242870331,
0.017392847687005997,
0.07145071774721146,
-0.023997612297534943,
0.04889874905347824,
-0.021973716095089912,
0.07394444942474365,
0.06505376845598221,
-0.009920699521899223,
0.034930258989334106,
0.03693608194589615,
-0.010444743558764458,
-0.0031216773204505444,
-0.030051225796341896,
-0.05945191532373428,
0.011086245998740196,
-0.007553465198725462,
0.035761501640081406,
-0.019317355006933212,
-0.028587516397237778,
-0.038201019167900085,
-0.005565711297094822,
-0.035382021218538284,
0.05999403074383736,
0.011158527806401253,
0.010372461751103401,
-0.005394041538238525,
0.044308844953775406,
0.01507982425391674,
0.00957736000418663,
0.051067207008600235,
-0.051862310618162155,
0.03541816025972366,
0.041923537850379944,
-0.057355739176273346,
0.0333581268787384,
-0.031261950731277466,
0.022967593744397163,
-0.004047790076583624,
0.011872312054038048,
-0.03267144784331322,
-0.06704152375459671,
-0.04954928532242775,
-0.01591106690466404,
-0.006564105860888958,
-0.0026134448125958443,
-0.07076404243707657,
0.028406811878085136,
0.0395020917057991,
0.053524792194366455,
-0.06736678630113602,
-0.02141353115439415,
0.04911559447646141,
-0.00007094079774105921,
0.029219983145594597,
0.01998596265912056,
0.004829338751733303,
-0.009306303225457668,
-0.016615815460681915,
-0.03910454362630844,
-0.04275478050112724,
-0.04362216591835022,
-0.048212070018053055,
-0.0007939721690490842,
-0.011872312054038048,
0.04420042037963867,
-0.007815487682819366,
0.011574149131774902,
0.00017689316882751882,
-0.0035779571626335382,
0.012468638829886913,
0.001238957978785038,
0.024178316816687584,
0.015576763078570366,
-0.023274792358279228,
0.012839083559811115,
-0.031912487000226974,
-0.01790785603225231,
-0.04832049086689949,
-0.037803467363119125,
-0.034966398030519485,
0.011339233256876469,
0.07058333605527878,
0.007679958827793598,
-0.010706765577197075,
0.031478796154260635,
0.05478972941637039,
-0.06433095037937164,
-0.020130526274442673,
0.02137739025056362,
-0.004565057810395956,
-0.0132366344332695,
0.023907259106636047,
-0.0258950125426054,
0.020022103562951088,
0.04788680002093315,
0.006243354640901089,
-0.015251494012773037,
-0.025352898985147476,
-0.029436830431222916,
0.031045103445649147,
0.031478796154260635,
0.01975104585289955,
-0.010029122233390808,
-0.03279794007539749,
-0.0026676561683416367,
-0.006306601222604513,
-0.016417041420936584,
-0.038237158209085464,
0.008804846554994583,
0.005516017321497202,
0.01975104585289955,
-0.06508991122245789,
0.04770609736442566,
-0.04058632254600525,
-0.023762695491313934,
-0.0013552868040278554,
-0.00652344711124897,
-0.018648747354745865,
0.01754644699394703,
0.05482586845755577,
0.061909500509500504,
0.014935260638594627,
0.00957736000418663,
-0.035779573023319244,
-0.08594325184822083,
-0.006509894505143166,
0.02934647724032402,
-0.011050105094909668,
-0.04795908182859421,
0.08211231231689453,
0.01710372045636177,
-0.011158527806401253,
0.06624642014503479,
0.04770609736442566,
0.04195968061685562,
-0.014492534101009369,
0.015423163771629333,
-0.03773118555545807,
-0.034568849951028824,
0.014366040006279945,
-0.078353650867939,
0.06631869822740555,
0.007029421161860228,
-0.04040561616420746,
0.013589008711278439,
0.06284916400909424,
-0.038634710013866425,
-0.031135456636548042,
0.004411458503454924,
0.03426165133714676,
-0.0015721326926723123,
0.035942208021879196,
-0.038670849055051804,
-0.04607975110411644,
-0.04506780579686165,
0.023473568260669708,
0.038237158209085464,
0.032093193382024765,
-0.004752539098262787,
0.031514935195446014,
-0.032093193382024765,
-0.0021119886077940464,
0.008741599507629871,
-0.002195564564317465,
-0.01832347735762596,
0.009730959311127663,
-0.06801732629537582,
-0.004806750454008579,
0.010724836029112339,
-0.014104017987847328,
-0.01955227181315422,
-0.009712888859212399,
0.029870521277189255,
0.0013010753318667412,
-0.02611185982823372,
-0.02426867000758648,
-0.029491040855646133,
0.04911559447646141,
0.004043272230774164,
0.06462007761001587,
-0.004140401259064674,
-0.006143966689705849,
-0.017826538532972336,
0.04788680002093315,
-0.04723626375198364,
-0.10430287569761276,
-0.035165175795555115,
0.021485812962055206,
0.01998596265912056,
0.06859558075666428,
0.01190845388919115,
-0.00047124450793489814,
0.03299671784043312,
-0.05731959640979767,
0.03193055838346481,
0.049043312668800354,
-0.028822433203458786,
-0.017971104010939598,
0.03939367085695267,
-0.021503884345293045,
-0.016417041420936584,
0.029906662181019783,
-0.023130228742957115,
-0.006713187322020531,
-0.0924486294388771,
-0.02958139404654503,
-0.018612606450915337,
-0.026202211156487465,
-0.06534289568662643,
-0.03648431971669197,
0.009956840425729752,
-0.014682273380458355,
0.025931155309081078,
0.015965279191732407,
-0.011257915757596493,
-0.04206810146570206,
0.050416670739650726,
-0.020040174946188927,
-0.12049403041601181,
-0.04401971399784088,
0.083991639316082,
0.02773820422589779,
-0.08211231231689453,
-0.056958187371492386,
0.006189143285155296,
-0.0018894956447184086,
-0.004246565513312817,
-0.004788680002093315,
0.020022103562951088,
-0.007237231824547052,
-0.0333581268787384,
-0.06433095037937164,
-0.07401672750711441,
-0.010544131509959698,
-0.007056526839733124,
0.006582176312804222,
0.020925628021359444,
0.008312425576150417,
0.03509289398789406,
0.04766995459794998,
-0.017067579552531242,
-0.054970432072877884,
0.06078913062810898,
0.0066363876685500145,
-0.031316161155700684,
0.0068713040091097355,
-0.03612291067838669,
-0.01060737855732441,
0.028677869588136673,
-0.022317055612802505,
0.021648447960615158,
0.025804661214351654,
-0.01687783934175968,
-0.006405989173799753,
0.0069119627587497234,
-0.014456392265856266,
-0.00837115477770567,
-0.034731484949588776,
-0.018865592777729034,
-0.007783864159137011,
-0.05193459242582321,
-0.0635719895362854,
-0.03910454362630844,
0.054717447608709335,
0.013598044402897358,
-0.03337619826197624,
0.044778674840927124,
-0.024955347180366516,
0.022262845188379288,
-0.017049508169293404,
-0.008416331373155117,
-0.002988407388329506,
0.059198927134275436,
-0.03287022188305855,
-0.05937963351607323,
-0.01975104585289955,
-0.010245968587696552,
0.004470187705010176,
-0.035942208021879196,
0.04600746929645538,
-0.014808767475187778,
-0.028226107358932495,
-0.034171298146247864,
0.01549544557929039,
-0.06281302869319916,
0.06386111676692963,
-0.05240442231297493,
0.013489621691405773,
0.008696423843502998,
-0.044561829417943954,
0.006189143285155296,
-0.0273045115172863,
0.017808469012379646,
-0.07517324388027191,
0.009030727669596672,
-0.0717037096619606,
0.031677570194005966,
0.012929435819387436,
0.00029590429039672017,
-0.045971330255270004,
-0.0018420607084408402,
0.0697159543633461,
0.06031929701566696,
-0.028081541880965233,
-0.05225985869765282,
-0.034135159105062485,
-0.0033859582617878914,
-0.005010043736547232,
0.031099313870072365,
0.01899208500981331,
0.07495639473199844,
-0.018386725336313248,
0.04835663363337517,
0.010236932896077633,
-0.0314607247710228,
0.011239845305681229,
0.0018815898802131414,
-0.011763889342546463,
0.031135456636548042,
-0.0033565936610102654,
0.026961171999573708,
0.052946537733078,
0.001289781299419701,
0.034767623990774155,
0.022497761994600296,
0.02708766609430313,
-0.004131366033107042,
-0.03449656814336777,
-0.035562727600336075,
-0.034731484949588776,
0.0173024944961071,
0.010462814010679722,
0.005759968888014555,
-0.0009724182891659439,
0.07195669412612915,
-0.016606781631708145,
0.0018872368382290006,
0.029238054528832436,
-0.02994280308485031,
-0.012866189703345299,
0.012143369764089584,
0.000755572400521487,
0.015115965157747269,
-0.008502165786921978,
-0.012360216118395329,
-0.016046596691012383,
-0.02611185982823372,
-0.06259617954492569,
-0.010444743558764458,
-0.06339128315448761,
-0.027828555554151535,
0.027412934228777885,
-0.010480884462594986,
0.07224582135677338,
-0.023744624108076096
]
|
30,063 | networkx.algorithms.tree.branchings | _partition |
Create new partitions based of the minimum spanning tree of the
current minimum partition.
Parameters
----------
partition : Partition
The Partition instance used to generate the current minimum spanning
tree.
partition_arborescence : nx.Graph
The minimum spanning arborescence of the input partition.
| def _partition(self, partition, partition_arborescence):
"""
Create new partitions based of the minimum spanning tree of the
current minimum partition.
Parameters
----------
partition : Partition
The Partition instance used to generate the current minimum spanning
tree.
partition_arborescence : nx.Graph
The minimum spanning arborescence of the input partition.
"""
# create two new partitions with the data from the input partition dict
p1 = self.Partition(0, partition.partition_dict.copy())
p2 = self.Partition(0, partition.partition_dict.copy())
for e in partition_arborescence.edges:
# determine if the edge was open or included
if e not in partition.partition_dict:
# This is an open edge
p1.partition_dict[e] = nx.EdgePartition.EXCLUDED
p2.partition_dict[e] = nx.EdgePartition.INCLUDED
self._write_partition(p1)
try:
p1_mst = self.method(
self.G,
self.weight,
partition=self.partition_key,
preserve_attrs=True,
)
p1_mst_weight = p1_mst.size(weight=self.weight)
p1.mst_weight = p1_mst_weight if self.minimum else -p1_mst_weight
self.partition_queue.put(p1.__copy__())
except nx.NetworkXException:
pass
p1.partition_dict = p2.partition_dict.copy()
| (self, partition, partition_arborescence) | [
0.012853596359491348,
0.029476160183548927,
-0.0706147775053978,
0.021049320697784424,
0.037334099411964417,
-0.01272914931178093,
0.018951499834656715,
0.0075157093815505505,
-0.06617024540901184,
-0.05290775001049042,
0.027769457548856735,
0.025547189638018608,
-0.016951458528637886,
0.0007544598774984479,
-0.07175257802009583,
-0.0002869503223337233,
0.007675712928175926,
0.035485170781612396,
0.015306980349123478,
0.05532557889819145,
0.0032378442119807005,
-0.07178813964128494,
-0.007271260023117065,
0.020995985716581345,
-0.010800221003592014,
0.0004108417488168925,
-0.0067690275609493256,
-0.02056930959224701,
-0.03155620023608208,
-0.02935171313583851,
0.030791742727160454,
-0.004084527958184481,
0.03672964125871658,
0.0007589044398628175,
0.02055153250694275,
0.04458757862448692,
0.024836065247654915,
0.05863231047987938,
-0.051094379276037216,
0.004073416814208031,
-0.03120063990354538,
0.005373443476855755,
-0.014675856567919254,
-0.033654022961854935,
0.050063248723745346,
0.03985859453678131,
0.034685153514146805,
0.04366311803460121,
0.00981353409588337,
0.054970014840364456,
0.01939595304429531,
-0.04184974730014801,
0.00634679663926363,
0.005835675168782473,
-0.056925609707832336,
0.01269359327852726,
0.03975192457437515,
-0.052054401487112045,
-0.00019930963753722608,
-0.006417909171432257,
0.005560114048421383,
0.03879190608859062,
0.027698345482349396,
0.017751473933458328,
-0.0427386537194252,
-0.03644518926739693,
-0.048214320093393326,
-0.04974324256181717,
-0.08135277777910233,
0.056001145392656326,
0.02151155099272728,
-0.025618301704525948,
0.02049819752573967,
-0.015591430477797985,
-0.016400335356593132,
0.04583204910159111,
0.02151155099272728,
-0.01950262114405632,
0.05191217362880707,
-0.017369244247674942,
-0.0005861231475137174,
-0.0006055679405108094,
-0.010924668051302433,
-0.004066749941557646,
0.036391858011484146,
0.05383221432566643,
0.06069457530975342,
0.020764870569109917,
0.03303178772330284,
-0.045263148844242096,
-0.024960510432720184,
0.07214370369911194,
0.022080453112721443,
0.046436507254838943,
0.08832181245088577,
-0.015200311318039894,
-0.046400949358940125,
-0.0626501739025116,
-0.017298132181167603,
-0.02243601530790329,
-0.047325413674116135,
0.030702851712703705,
-0.033618465065956116,
-0.0065779127180576324,
0.020053744316101074,
-0.05653449147939682,
0.0140802888199687,
0.019093723967671394,
-0.052125513553619385,
-0.019680403172969818,
-0.05368999019265175,
-0.021280435845255852,
-0.06208127364516258,
0.05326331406831741,
-0.014506964012980461,
0.026951663196086884,
-0.003082285402342677,
0.00008694622374605387,
0.03594740480184555,
-0.023876044899225235,
0.03326290473341942,
0.028089463710784912,
-0.0008177945273928344,
-0.0009611307759769261,
-0.021618220955133438,
-0.015378092415630817,
0.08277502655982971,
0.014818081632256508,
-0.014026953838765621,
-0.05159216746687889,
0.009466860443353653,
-0.0007455708109773695,
-0.041316401213407516,
-0.010533548891544342,
-0.047325413674116135,
-0.02629387192428112,
-0.04515647888183594,
0.0058001186698675156,
-0.0014766969252377748,
-0.02821391075849533,
0.026009421795606613,
-0.07886383682489395,
0.03436514735221863,
-0.0006927919457666576,
-0.034525152295827866,
-0.023609371855854988,
-0.006680137012153864,
-0.037582993507385254,
0.029671719297766685,
0.021138211712241173,
-0.042454201728105545,
0.02442716620862484,
-0.021031541749835014,
-0.057032279670238495,
0.009849091060459614,
-0.0186492707580328,
-0.020160412415862083,
0.010826888494193554,
-0.012702482752501965,
-0.004697874188423157,
-0.044338684529066086,
-0.03109396994113922,
0.07157479971647263,
0.0014789191773161292,
-0.026684992015361786,
0.011386900208890438,
0.0015055864350870252,
-0.044338684529066086,
-0.032569557428359985,
-0.014978084713220596,
0.06713026762008667,
0.0013733614468947053,
-0.03790299966931343,
-0.034685153514146805,
-0.06855251640081406,
0.055218908935785294,
0.02618720382452011,
-0.024000491946935654,
-0.03301401063799858,
-0.012409143149852753,
-0.010373545810580254,
-0.04195641353726387,
0.0024956066627055407,
0.008475729264318943,
-0.004911211784929037,
0.0333162397146225,
0.03228510543704033,
-0.016035884618759155,
0.04967213049530983,
0.011822464875876904,
-0.05457889661192894,
-0.017351467162370682,
-0.020907094702124596,
0.0715392455458641,
0.009884647093713284,
0.0046400949358940125,
0.029938390478491783,
0.026720548048615456,
-0.04298754781484604,
0.10602883994579315,
0.005280108191072941,
0.015395871363580227,
0.05390332639217377,
0.0353073887526989,
0.028960593044757843,
0.011733573861420155,
-0.02424938604235649,
0.04071194678544998,
0.011573570780456066,
0.008000164292752743,
-0.07374373078346252,
-0.04885433241724968,
0.045192036777734756,
0.032569557428359985,
0.00054362224182114,
-0.0243560541421175,
-0.026062756776809692,
0.02920948714017868,
0.06848140060901642,
-0.029493937268853188,
-0.025493856519460678,
0.03672964125871658,
-0.004035638179630041,
-0.01753813773393631,
0.04753874987363815,
-0.03614296391606331,
0.02817835472524166,
-0.08490840345621109,
-0.010337989777326584,
0.014133622869849205,
0.004026749171316624,
-0.05756562203168869,
-0.017982590943574905,
-0.05152105540037155,
0.050987713038921356,
0.04988546669483185,
-0.011822464875876904,
-0.036694083362817764,
0.01840037666261196,
0.04188530147075653,
-0.04384089633822441,
-0.023893821984529495,
-0.01573365554213524,
-0.02551163360476494,
-0.017804808914661407,
-0.020853759720921516,
0.014649189077317715,
0.023733818903565407,
0.0272538922727108,
0.009404636919498444,
-0.0697258710861206,
-0.04949434846639633,
-0.021120432764291763,
-0.027769457548856735,
0.0758771076798439,
-0.00217448896728456,
-0.021884892135858536,
-0.013644724152982235,
-0.01563587598502636,
0.027716122567653656,
-0.026667213067412376,
-0.017369244247674942,
-0.0213693268597126,
0.012089136987924576,
0.029600607231259346,
-0.020107079297304153,
0.001822259509935975,
0.0660991296172142,
-0.0062445723451673985,
-0.008626843802630901,
0.018951499834656715,
0.07793937623500824,
0.007884605787694454,
0.02645387500524521,
0.009084630757570267,
-0.00871128961443901,
-0.04224086552858353,
-0.0009394636726938188,
0.00116557942237705,
0.0015800324035808444,
-0.011982467956840992,
0.012124693021178246,
-0.020800426602363586,
0.03996526449918747,
-0.003837856464087963,
-0.002717833500355482,
0.006782361306250095,
-0.0967130959033966,
-0.017751473933458328,
-0.03815189376473427,
-0.08213501423597336,
0.05280108004808426,
-0.004000082146376371,
-0.011306898668408394,
0.04960101470351219,
0.04743208363652229,
-0.013618056662380695,
-0.03797411173582077,
-0.004513425752520561,
0.04384089633822441,
0.061939045786857605,
0.00589345395565033,
-0.019040390849113464,
-0.0009033518144860864,
-0.0019500399939715862,
0.009377970360219479,
0.050169914960861206,
0.04177863523364067,
-0.02245379239320755,
0.012542478740215302,
-0.02938726916909218,
0.010871334001421928,
0.010284654796123505,
0.0029333934653550386,
-0.006640136241912842,
-0.05429444462060928,
0.06421464681625366,
0.006497910711914301,
-0.005026769824326038,
0.06489022076129913,
-0.020018188282847404,
0.05457889661192894,
-0.007582377642393112,
0.07015255093574524,
-0.06762805581092834,
-0.013831394724547863,
0.004751208238303661,
0.028871702030301094,
-0.02835613675415516,
0.007826827466487885,
-0.06993921101093292,
0.041351959109306335,
-0.04999213665723801,
0.038436342030763626,
-0.06695248186588287,
0.03422292321920395,
0.049352120608091354,
-0.04295198991894722,
-0.0093246353790164,
0.007200147490948439,
0.054081108421087265,
0.022596018388867378,
0.010853555984795094,
0.020107079297304153,
0.012471366673707962,
-0.013386940583586693,
0.02629387192428112,
0.00754237687215209,
-0.06293462216854095,
0.060765691101551056,
-0.02252490632236004,
0.0447298064827919,
-0.016106996685266495,
0.02926282212138176,
0.06389464437961578,
-0.020711535587906837,
-0.02437383309006691,
-0.05344109609723091,
-0.0372985415160656,
0.023004915565252304,
0.052232179790735245,
-0.024818286299705505,
0.026578322052955627,
0.026809437200427055,
-0.02632942795753479,
-0.03872079402208328,
-0.05952122062444687,
0.05155661329627037,
-0.025493856519460678,
-0.05824119225144386,
-0.020604867488145828,
-0.07936162501573563,
-0.04462313652038574,
0.017324799671769142,
-0.004782320000231266,
0.04284532368183136,
-0.0641079768538475,
-0.013155825436115265,
0.017227020114660263,
0.0507032610476017,
0.06122792139649391,
0.002648943103849888,
0.019111502915620804,
0.04170751944184303,
-0.061974603682756424,
-0.014222513884305954,
0.05080993101000786,
-0.06652580946683884,
0.07178813964128494,
-0.008240168914198875,
0.007053477689623833,
0.05457889661192894,
0.042418647557497025,
0.017147017642855644,
-0.01668478548526764,
0.01357361115515232,
0.07431263476610184,
-0.04188530147075653,
-0.04988546669483185,
-0.06236572191119194,
0.018880385905504227,
-0.055147796869277954,
-0.06688137352466583,
0.05749450996518135,
0.0563211552798748,
-0.0937974750995636,
0.03708520531654358,
0.05621448531746864,
0.024800507351756096,
0.04032082483172417,
-0.010666885413229465,
-0.036480747163295746,
0.03736965358257294,
0.03687186539173126,
-0.008511285297572613,
-0.047218743711709976,
0.06055235117673874,
0.021138211712241173,
0.026151645928621292,
-0.0025067180395126343,
0.01560920849442482,
-0.011449123732745647,
0.05781451612710953,
0.02348492480814457,
0.019698182120919228,
-0.08405505865812302,
-0.0077957152388989925,
0.0009683531825430691,
-0.026951663196086884,
0.013102490454912186,
0.016142552718520164,
-0.007417929824441671,
-0.05760117992758751,
-0.00981353409588337,
0.028036130592226982,
-0.004813431762158871,
0.05240996181964874,
0.04152974113821983,
0.026116089895367622,
0.004728985950350761,
0.04885433241724968,
0.02638276293873787,
0.06762805581092834,
-0.058134526014328,
0.008973517455160618,
0.0009639086201786995,
-0.05575225502252579,
-0.0127202607691288,
-0.07193036377429962,
0.01553809642791748,
0.010044650174677372,
-0.01553809642791748,
0.02147599495947361,
0.025156071409583092,
-0.04743208363652229,
-0.00510232662782073,
0.003320068120956421,
-0.020160412415862083,
-0.04771653190255165,
0.02229378931224346,
0.07445485889911652,
0.04885433241724968,
-0.05173439159989357,
0.029885057359933853,
0.025991642847657204,
0.023218253627419472,
0.0026267205830663443,
0.004657873418182135,
0.03118286095559597,
-0.04369867220520973,
0.053121089935302734,
-0.009062407538294792,
-0.034738488495349884,
-0.02531607449054718,
0.045369818806648254,
-0.014622521586716175,
-0.01162690483033657,
0.006626802496612072,
0.010515770874917507,
-0.006129014305770397,
-0.02817835472524166,
-0.02741389535367489,
0.02810724265873432,
0.03388513997197151,
-0.021938227117061615,
-0.03900524228811264,
-0.002524496056139469,
0.029956169426441193,
-0.050063248723745346,
-0.013315828517079353,
-0.03811633586883545,
-0.027004998177289963,
0.01739591173827648,
0.048178765922784805,
0.015911437571048737,
0.04302310198545456,
-0.005862342193722725,
0.019075946882367134,
0.07345928251743317,
-0.10332655906677246,
-0.007715713698416948,
0.059876780956983566,
-0.034471817314624786,
0.01645367033779621,
-0.009769088588654995,
0.06275684386491776,
-0.02648943103849888,
0.03184065222740173,
0.013538055121898651,
0.0029800611082464457,
-0.00017930922331288457,
-0.02622275985777378,
0.009902425110340118,
0.043236441910266876,
-0.013458053581416607,
0.02712944522500038,
0.004471202846616507,
0.038329675793647766,
0.013280272483825684,
-0.03985859453678131,
0.00980464555323124,
-0.004313421901315451,
0.06172570958733559,
-0.037440765649080276,
-0.03815189376473427,
0.006697915028780699,
-0.012711371295154095,
-0.04579649493098259,
0.02622275985777378,
-0.006644580513238907,
-0.04800098389387131,
0.033654022961854935,
0.05336998403072357,
0.033529575914144516,
0.03818744793534279,
0.023947156965732574,
-0.0302406195551157,
0.052018843591213226,
-0.025742748752236366,
0.0048623220063745975,
0.004006748553365469,
-0.01508475374430418,
0.00014041955000720918,
-0.005977900233119726,
-0.010524660348892212,
0.07214370369911194,
0.0545077845454216,
-0.009911314584314823,
-0.02051597647368908,
-0.028800589963793755,
0.04480091854929924,
0.004548982251435518,
0.018880385905504227,
0.0054045552387833595,
0.06478355079889297,
-0.030009504407644272,
-0.029636163264513016,
-0.06585023552179337,
0.04753874987363815,
0.009769088588654995,
-0.0019578179344534874,
0.026684992015361786,
0.045263148844242096,
-0.01964484713971615,
0.025867195799946785,
-0.04408979043364525,
-0.025724971666932106,
-0.015280312858521938,
0.041316401213407516,
0.03687186539173126,
0.04494314268231392,
0.05045436695218086,
-0.0033645133953541517,
-0.003213399089872837,
-0.02451605722308159,
-0.013102490454912186,
0.00880018062889576,
-0.06638358533382416,
-0.05767229199409485,
-0.03900524228811264,
0.004737874958664179,
-0.006809028331190348,
0.04551204293966293,
-0.045440930873155594,
-0.027751680463552475,
0.032800670713186264,
-0.03872079402208328,
0.011573570780456066,
0.03697853535413742,
0.0021478217095136642,
0.005413444247096777,
-0.013902506791055202,
0.040391936898231506,
0.023947156965732574,
-0.00315562030300498,
-0.027893904596567154,
0.018969276919960976,
-0.04003637656569481,
-0.02938726916909218,
-0.07481042295694351,
-0.042418647557497025,
0.028907258063554764,
0.01765369437634945,
0.04177863523364067,
0.05290775001049042,
-0.0186492707580328,
-0.000460565002867952,
-0.016222555190324783,
0.029653940349817276,
-0.012933597899973392,
0.014426962472498417,
0.021707111969590187,
0.0007733491947874427,
-0.016809232532978058,
0.004071194678544998,
0.01324471551924944,
-0.049316566437482834,
-0.08028608560562134,
0.022773800417780876,
-0.014506964012980461,
-0.0009566862718202174,
0.009004629217088223,
-0.0008005719282664359,
-0.028000572696328163,
-0.030453957617282867,
-0.009369080886244774,
0.060125675052404404,
-0.09095297753810883,
0.016889235004782677,
-0.010142429731786251,
0.013706947676837444,
-0.04359200596809387,
0.01576921157538891,
-0.03797411173582077,
0.020747091621160507,
-0.04480091854929924,
0.005822341423481703,
-0.014773636125028133,
-0.027698345482349396,
-0.01652478240430355,
-0.03971637040376663,
0.013004710897803307,
-0.013591389171779156,
-0.06357463449239731,
-0.024071604013442993,
-0.0901707336306572,
0.01577810011804104,
-0.0023156029637902975,
0.005711228121072054,
0.018987055867910385,
-0.03582295775413513,
0.04480091854929924,
-0.013875840231776237,
0.024676060304045677,
-0.0021922672167420387,
0.08071276545524597,
-0.03543183580040932,
-0.03143175318837166,
0.030667295679450035,
0.004813431762158871,
0.03786744177341461,
-0.013315828517079353,
-0.04856988415122032,
0.02417827397584915,
0.02357381582260132,
0.018009258434176445,
0.02236490324139595,
-0.05056103691458702,
-0.0024311610031872988,
-0.013769171200692654,
0.007537932135164738,
-0.03281845152378082,
0.0243560541421175,
-0.01948484405875206,
-0.050134360790252686,
-0.041209734976291656,
-0.0175203587859869,
-0.006884585600346327,
-0.033529575914144516,
-0.011458012275397778,
-0.012302474118769169,
0.013422497548162937,
-0.0045867604203522205,
-0.039467476308345795,
0.029671719297766685,
0.05728117376565933,
-0.06318351626396179,
-0.07097034156322479,
-0.023751597851514816,
-0.027485007420182228,
0.06147681549191475,
-0.00786682777106762,
0.01648033782839775,
0.023751597851514816,
-0.0628279522061348,
-0.015049196779727936,
0.0038134113419800997,
-0.02736056037247181,
0.007511265110224485,
-0.049174342304468155,
0.03498738259077072,
0.008013497106730938,
-0.0225426834076643,
-0.0027600566390901804,
-0.04885433241724968,
0.0050134360790252686,
-0.10560216009616852,
-0.004968990571796894,
-0.03511182963848114,
0.005400110501796007,
-0.017138129100203514,
-0.008769068866968155,
0.01162690483033657,
-0.021778224036097527,
0.020195968449115753,
0.04213419556617737,
0.015049196779727936,
0.01642700284719467,
0.0032778449822217226,
-0.0032311773393303156,
-0.044338684529066086,
-0.02839169278740883,
0.022862691432237625,
0.03432959318161011,
-0.040391936898231506,
0.01260470226407051,
0.07289037853479385,
-0.06631246954202652,
-0.02720055729150772,
-0.03822300583124161,
0.007946829311549664,
0.035609617829322815,
-0.0071023679338395596,
0.016035884618759155,
0.0954330638051033,
0.00043889787048101425,
0.04106750711798668,
0.018071481958031654,
0.02426716312766075,
0.04206308349967003,
0.051165491342544556,
-0.029956169426441193,
-0.06332574039697647,
-0.020924873650074005,
-0.005986789241433144,
0.0014411406591534615,
-0.0021455995738506317,
0.0243560541421175,
0.010640217922627926,
0.04405423626303673,
0.02640054002404213,
-0.051272161304950714,
0.029031705111265182,
0.024604948237538338,
-0.025920530781149864,
-0.0008855736814439297,
0.009644642472267151,
0.029636163264513016,
-0.0030778408981859684,
-0.0637524202466011,
-0.038471899926662445,
0.02231156826019287,
-0.01574254408478737,
0.048214320093393326,
0.032729558646678925,
0.02234712429344654,
0.04984990879893303,
0.028605030849575996
]
|
30,064 | networkx.algorithms.tree.branchings | _write_partition |
Writes the desired partition into the graph to calculate the minimum
spanning tree. Also, if one incoming edge is included, mark all others
as excluded so that if that vertex is merged during Edmonds' algorithm
we cannot still pick another of that vertex's included edges.
Parameters
----------
partition : Partition
A Partition dataclass describing a partition on the edges of the
graph.
| def _write_partition(self, partition):
"""
Writes the desired partition into the graph to calculate the minimum
spanning tree. Also, if one incoming edge is included, mark all others
as excluded so that if that vertex is merged during Edmonds' algorithm
we cannot still pick another of that vertex's included edges.
Parameters
----------
partition : Partition
A Partition dataclass describing a partition on the edges of the
graph.
"""
for u, v, d in self.G.edges(data=True):
if (u, v) in partition.partition_dict:
d[self.partition_key] = partition.partition_dict[(u, v)]
else:
d[self.partition_key] = nx.EdgePartition.OPEN
nx._clear_cache(self.G)
for n in self.G:
included_count = 0
excluded_count = 0
for u, v, d in self.G.in_edges(nbunch=n, data=True):
if d.get(self.partition_key) == nx.EdgePartition.INCLUDED:
included_count += 1
elif d.get(self.partition_key) == nx.EdgePartition.EXCLUDED:
excluded_count += 1
# Check that if there is an included edges, all other incoming ones
# are excluded. If not fix it!
if included_count == 1 and excluded_count != self.G.in_degree(n) - 1:
for u, v, d in self.G.in_edges(nbunch=n, data=True):
if d.get(self.partition_key) != nx.EdgePartition.INCLUDED:
d[self.partition_key] = nx.EdgePartition.EXCLUDED
| (self, partition) | [
0.007709618657827377,
0.03334816172719002,
-0.026396866887807846,
0.04838823899626732,
0.03293289244174957,
-0.012891493737697601,
-0.01946362666785717,
0.0009445185423828661,
-0.046329934149980545,
-0.06619077920913696,
0.020330281928181648,
0.013767176307737827,
-0.023363575339317322,
0.0025615976192057133,
-0.0484604611992836,
-0.005791241768747568,
-0.0026676724664866924,
0.04401885345578194,
0.04513828083872795,
0.07370178401470184,
0.0006838449626229703,
-0.07438789308071136,
0.0015290593728423119,
0.02359829470515251,
-0.008517594076693058,
-0.02009556256234646,
0.03385371342301369,
-0.02563854493200779,
-0.02356218360364437,
-0.01875947043299675,
-0.02282191626727581,
-0.012629691511392593,
0.03688700497150421,
-0.024302450940012932,
0.02348996140062809,
0.03365510329604149,
0.030748197808861732,
0.06124362349510193,
-0.09677647799253464,
-0.028942666947841644,
-0.035893961787223816,
0.006946781650185585,
-0.011320681311190128,
-0.028816279023885727,
0.053443726152181625,
0.014886605553328991,
0.05496037378907204,
0.06564911454916,
0.00633290084078908,
0.023056635633111,
0.01747754216194153,
-0.026017706841230392,
0.00825579185038805,
0.022334422916173935,
-0.04286331310868263,
-0.004075986798852682,
0.051096536219120026,
-0.04232165217399597,
0.0265774205327034,
-0.01088735368102789,
-0.030820420011878014,
0.029375994578003883,
0.05116875842213631,
0.004902017302811146,
-0.04954377934336662,
-0.01043597050011158,
-0.06575745344161987,
-0.038782812654972076,
-0.10645412653684616,
0.06965740025043488,
0.02673991769552231,
-0.06741853803396225,
0.035857852548360825,
-0.0011668246006593108,
0.0006398351397365332,
0.05636868625879288,
-0.01164567656815052,
-0.017396293580532074,
0.02191914990544319,
-0.033943988382816315,
0.05033821240067482,
-0.022442754358053207,
0.0017457230715081096,
0.019120575860142708,
0.05496037378907204,
0.033943988382816315,
0.06384358555078506,
0.03704950213432312,
0.008170029148459435,
-0.05514092743396759,
-0.004263310693204403,
0.08464330434799194,
0.015690067782998085,
0.03677867352962494,
0.058607544749975204,
-0.013902590610086918,
-0.047702137380838394,
-0.04658270627260208,
-0.01580742746591568,
-0.014101199805736542,
-0.04741325229406357,
0.03769949451088905,
-0.04976044222712517,
-0.018578916788101196,
-0.0021609952673316,
-0.06850185990333557,
0.01627686433494091,
0.019517794251441956,
-0.04170777276158333,
-0.04401885345578194,
-0.0426105372607708,
-0.008391207084059715,
-0.018578916788101196,
0.020294172689318657,
0.042899422347545624,
0.023634403944015503,
-0.022298311814665794,
-0.006590189412236214,
0.018136562779545784,
-0.028130177408456802,
0.02533160336315632,
0.06117140129208565,
-0.017576847225427628,
0.011329708620905876,
-0.010426943190395832,
-0.025530213490128517,
0.08767659962177277,
0.04214110225439072,
0.008016559295356274,
-0.05503259226679802,
0.008558218367397785,
0.004883962217718363,
-0.01868724822998047,
-0.009858201257884502,
-0.029953764751553535,
-0.020330281928181648,
-0.03410648554563522,
-0.01785670407116413,
0.0015121324686333537,
-0.023652460426092148,
0.016971994191408157,
-0.07720451802015305,
0.002032351214438677,
0.012891493737697601,
-0.0028121150098741055,
-0.00790371373295784,
-0.0010252032661810517,
-0.021828873082995415,
0.038710590451955795,
-0.016466446220874786,
-0.016737274825572968,
-0.02415800839662552,
-0.06001586094498634,
-0.043982744216918945,
-0.006188458763062954,
0.006766228470951319,
-0.029989873990416527,
0.00664435513317585,
-0.031000971794128418,
-0.012611635960638523,
-0.05813810974359512,
-0.05561036244034767,
0.054815929383039474,
0.036056458950042725,
-0.024717723950743675,
-0.0010387446964159608,
0.0047034090384840965,
-0.033510662615299225,
-0.04365774616599083,
-0.0023449338041245937,
0.0574520044028759,
0.015049103647470474,
-0.05604369193315506,
-0.024446893483400345,
-0.03408843278884888,
0.067237988114357,
0.019788622856140137,
0.007429761346429586,
-0.039649467915296555,
0.017342127859592438,
-0.0014726364752277732,
-0.040660563856363297,
0.017838649451732635,
0.03755505010485649,
0.02399551123380661,
0.002807601122185588,
0.0334203839302063,
-0.037807825952768326,
0.047774359583854675,
-0.020258061587810516,
-0.018885856494307518,
-0.028744058683514595,
0.004263310693204403,
0.04712436720728874,
-0.008341554552316666,
0.009903338737785816,
0.025512157008051872,
0.00025615975027903914,
-0.014886605553328991,
0.0758323147892952,
-0.012611635960638523,
0.021973315626382828,
0.08796548843383789,
0.016358112916350365,
-0.002473577857017517,
0.016168532893061638,
0.002685727784410119,
-0.002394585870206356,
0.02516910620033741,
0.02962876856327057,
-0.035460636019706726,
-0.04853267967700958,
0.03412454202771187,
0.018849747255444527,
-0.0019228908931836486,
-0.04943544790148735,
-0.006179430987685919,
0.06178528070449829,
0.04647437483072281,
-0.018235865980386734,
-0.06438524276018143,
0.03903558850288391,
0.008833562023937702,
-0.0265774205327034,
0.0555020309984684,
-0.07864894717931747,
0.03372732549905777,
-0.07597675919532776,
0.00881099235266447,
-0.015148407779633999,
0.034720368683338165,
-0.03954113647341728,
-0.020926108583807945,
-0.010779022239148617,
0.0026541310362517834,
0.049218785017728806,
-0.01725185103714466,
-0.0633019283413887,
0.03540647029876709,
0.010129030793905258,
-0.053840942680835724,
-0.0371217243373394,
-0.01930112950503826,
-0.008671063929796219,
0.008350581862032413,
-0.0014602234587073326,
0.03150651976466179,
0.04614938050508499,
0.016791440546512604,
0.03520786017179489,
-0.041996657848358154,
-0.06279637664556503,
-0.03013431653380394,
-0.029556548222899437,
0.07225736230611801,
0.010056809522211552,
-0.02802184596657753,
0.007384622935205698,
-0.025548268109560013,
0.011410958133637905,
-0.04307997599244118,
-0.024013565853238106,
-0.020221950486302376,
0.0005805911496281624,
0.067237988114357,
-0.021016383543610573,
0.03316761180758476,
0.03834948316216469,
-0.022298311814665794,
-0.005849921610206366,
-0.005132222548127174,
0.07381012290716171,
-0.011853313073515892,
0.018578916788101196,
-0.00041696487460285425,
-0.009785979986190796,
-0.033402327448129654,
0.014119254425168037,
0.020546946674585342,
0.019174741581082344,
-0.03701339289546013,
0.00563777144998312,
-0.015419237315654755,
0.05214374512434006,
-0.017567818984389305,
0.01977056823670864,
0.009524177759885788,
-0.08962657302618027,
-0.056802015751600266,
-0.042538318783044815,
-0.051096536219120026,
0.04001057520508766,
0.009451956488192081,
-0.01903029903769493,
0.015644928440451622,
0.02107055112719536,
0.0075742038898169994,
-0.0566575713455677,
-0.02778712660074234,
0.07460455596446991,
0.06940462440252304,
0.0011369205312803388,
-0.007975934073328972,
-0.02094416320323944,
0.019048355519771576,
0.018064340576529503,
0.01045402605086565,
0.006879074033349752,
-0.006364497821778059,
0.01010194793343544,
-0.06452968716621399,
-0.010444998741149902,
0.00140944286249578,
0.0014173421077430248,
0.013595650903880596,
-0.027606572955846786,
0.036056458950042725,
-0.0035388413816690445,
0.005412079859524965,
0.06322970986366272,
-0.016051173210144043,
0.06640744209289551,
-0.022334422916173935,
0.029755156487226486,
-0.08420997858047485,
-0.015834510326385498,
0.0345759242773056,
0.0379161573946476,
-0.024085788056254387,
-0.03221067786216736,
-0.06431302428245544,
0.010553330183029175,
-0.04091333970427513,
0.04084111750125885,
-0.06922406703233719,
0.025981595739722252,
0.07756562530994415,
-0.01815461739897728,
0.00008167207852238789,
0.03168707340955734,
0.05210763216018677,
0.059546422213315964,
0.01285538263618946,
0.020926108583807945,
-0.0037532481364905834,
-0.004089528229087591,
0.006590189412236214,
0.010408887639641762,
-0.07081294059753418,
0.09388762712478638,
0.009993615560233593,
0.08334332704544067,
-0.021955261006951332,
-0.003335718996822834,
0.05853532627224922,
-0.051096536219120026,
0.005633257795125246,
-0.03983002156019211,
-0.034413427114486694,
0.03248150646686554,
0.029773211106657982,
-0.008964463137090206,
0.024681612849235535,
0.03161485493183136,
0.013117184862494469,
-0.024573281407356262,
-0.03795226663351059,
0.012891493737697601,
0.0312718003988266,
-0.08565440773963928,
-0.055285368114709854,
-0.10284306108951569,
-0.03903558850288391,
-0.004762088879942894,
-0.006269707344472408,
0.04275498166680336,
-0.06308526545763016,
-0.006269707344472408,
0.024302450940012932,
0.03282455727458,
0.03237317502498627,
-0.01266580168157816,
0.035316191613674164,
0.03036903589963913,
-0.05290206894278526,
-0.021864984184503555,
0.0695490688085556,
-0.050013218075037,
0.0601964145898819,
-0.013722037896513939,
0.004006022587418556,
0.05405760556459427,
0.013577595353126526,
0.031163470819592476,
-0.015798399224877357,
0.024067731574177742,
0.04781046882271767,
-0.033745378255844116,
-0.023580238223075867,
-0.04654659703373909,
0.008531135506927967,
-0.05124097689986229,
-0.01879558153450489,
0.07980448007583618,
0.04997710511088371,
-0.10118197649717331,
0.04477717727422714,
0.010327639058232307,
0.07019905745983124,
0.03248150646686554,
-0.010625551454722881,
-0.0010821903124451637,
0.036164790391922,
0.035857852548360825,
0.014236614108085632,
-0.03932447358965874,
0.05557425320148468,
-0.0006088025984354317,
0.040118906646966934,
-0.025927430018782616,
0.026270480826497078,
-0.013460235670208931,
0.07157126069068909,
0.012575525790452957,
0.02359829470515251,
-0.09374318271875381,
-0.03932447358965874,
-0.009903338737785816,
-0.035857852548360825,
0.058679766952991486,
0.017242824658751488,
-0.016872689127922058,
-0.014841467142105103,
0.001779576763510704,
0.011221377179026604,
-0.013803286477923393,
0.04799102246761322,
0.008048155345022678,
0.016466446220874786,
0.0426105372607708,
0.03990224003791809,
0.05546592175960541,
0.020294172689318657,
-0.06420469284057617,
0.019752511754631996,
0.015789370983839035,
-0.05557425320148468,
0.0189580786973238,
-0.06044918671250343,
0.020420558750629425,
0.036832839250564575,
-0.009813062846660614,
0.006892615929245949,
-0.03060375526547432,
-0.05709090083837509,
-0.009352652356028557,
-0.008549191057682037,
-0.029646823182702065,
-0.043007753789424896,
0.012042894028127193,
0.09374318271875381,
0.029375994578003883,
-0.06814075261354446,
0.03047736920416355,
0.012006782926619053,
-0.008783909492194653,
-0.012846355326473713,
-0.012738022953271866,
0.03889114409685135,
-0.02121499367058277,
0.05698256939649582,
-0.011302625760436058,
-0.04647437483072281,
-0.03177735209465027,
0.017847677692770958,
-0.003507244633510709,
-0.029321828857064247,
0.01428175251930952,
0.019571959972381592,
0.023146910592913628,
-0.024302450940012932,
-0.015356043353676796,
0.028364896774291992,
0.020817775279283524,
0.0015527568757534027,
-0.003543355269357562,
-0.01327065471559763,
0.024753835052251816,
-0.018046285957098007,
-0.006007905583828688,
-0.00453865434974432,
-0.03024264983832836,
0.00464924331754446,
0.008982518687844276,
0.025819096714258194,
0.05467148870229721,
-0.04459662362933159,
-0.019788622856140137,
0.06016030162572861,
-0.09583760052919388,
-0.03013431653380394,
0.027642684057354927,
-0.053515948355197906,
-0.003123569069430232,
-0.018849747255444527,
0.027931569144129753,
0.00020791821589227766,
0.06395191699266434,
0.022370532155036926,
-0.004100813064724207,
0.00790371373295784,
-0.027895458042621613,
-0.0032476994674652815,
0.07081294059753418,
0.012512331828474998,
0.02684825100004673,
0.016186587512493134,
0.03701339289546013,
0.033871766179800034,
-0.034485649317502975,
-0.01838933676481247,
-0.01926501840353012,
0.03578563034534454,
-0.01584353670477867,
-0.0402633473277092,
0.0402633473277092,
-0.001218733610585332,
-0.050049327313899994,
0.01875947043299675,
0.02993570826947689,
-0.003798386547714472,
0.0359661839902401,
0.05607980117201805,
0.030748197808861732,
0.039468914270401,
-0.007127334829419851,
0.017910869792103767,
0.046113271266222,
-0.014742163009941578,
-0.0019883413333445787,
-0.0026924984995275736,
-0.033943988382816315,
0.02000528760254383,
-0.007632883731275797,
0.013830369338393211,
0.07980448007583618,
0.08182667940855026,
-0.007158931810408831,
0.0051096538081765175,
-0.04412718489766121,
0.026360757648944855,
0.01045402605086565,
0.0025886804796755314,
-0.022063592448830605,
0.06001586094498634,
-0.048243794590234756,
-0.03463008999824524,
-0.03260789439082146,
0.029610713943839073,
0.02184692956507206,
-0.028112122789025307,
0.016439363360404968,
0.057307563722133636,
-0.034720368683338165,
0.003324434394016862,
-0.04131055623292923,
-0.02946627140045166,
-0.053913164883852005,
0.020492780953645706,
0.04997710511088371,
0.02637881226837635,
0.058210328221321106,
0.004838823806494474,
-0.0037893587723374367,
-0.016628943383693695,
-0.0020086534786969423,
0.01389356330037117,
-0.0062742214649915695,
-0.023002468049526215,
-0.0566575713455677,
-0.007371081504970789,
0.013478291220963001,
0.03748283162713051,
-0.018452530726790428,
-0.0011058879317715764,
0.026288535445928574,
-0.0138755077496171,
0.004766602534800768,
0.02748018689453602,
0.0027602058835327625,
0.00006626158574363217,
-0.015924785286188126,
0.05607980117201805,
0.004346816800534725,
0.026757974177598953,
-0.0026451032608747482,
0.007894685491919518,
-0.022298311814665794,
0.0026812138967216015,
-0.0847877487540245,
-0.06124362349510193,
0.0246274471282959,
0.0018269720021635294,
0.02137749083340168,
0.04232165217399597,
-0.025385770946741104,
0.006608244497328997,
-0.02134137973189354,
0.01705324277281761,
-0.005642285104840994,
0.008734257891774178,
0.03950502350926399,
-0.04279109090566635,
-0.05420204997062683,
-0.024952443316578865,
0.021431656554341316,
-0.043910522013902664,
-0.04307997599244118,
-0.001594509813003242,
-0.028888501226902008,
0.003972169011831284,
-0.004170777276158333,
-0.02188303880393505,
-0.0660463348031044,
-0.00013604960986413062,
0.004712436813861132,
0.04708825796842575,
0.0016723733860999346,
-0.019120575860142708,
-0.0018077882705256343,
-0.023814957588911057,
-0.03453981503844261,
0.013803286477923393,
0.0018574403366073966,
-0.009415845386683941,
-0.06814075261354446,
-0.014218558557331562,
-0.046799372881650925,
-0.04091333970427513,
0.01107693463563919,
-0.03385371342301369,
0.016999077051877975,
0.006062071304768324,
-0.06366303563117981,
-0.04369385913014412,
-0.03463008999824524,
0.02543993666768074,
-0.00252548698335886,
-0.019951120018959045,
-0.018046285957098007,
-0.007515524048358202,
0.05362427979707718,
-0.0032206163741648197,
-0.00704608578234911,
0.023742737248539925,
0.08977101743221283,
-0.032192621380090714,
-0.017269907519221306,
0.04744936153292656,
-0.029339883476495743,
0.05329928547143936,
-0.01391161885112524,
-0.02200942672789097,
-0.019102521240711212,
0.04409107565879822,
0.01226858515292406,
0.008792937733232975,
-0.039649467915296555,
0.011004713363945484,
-0.04701603576540947,
-0.004094042349606752,
-0.036363400518894196,
0.011438040994107723,
-0.030964862555265427,
-0.07366567850112915,
-0.0719323679804802,
0.006120751146227121,
0.007235666736960411,
-0.050627097487449646,
-0.03365510329604149,
-0.0055655501782894135,
0.023002468049526215,
0.02986348792910576,
-0.015527568757534027,
0.013703982345759869,
0.05889642983675003,
-0.08709882944822311,
-0.07597675919532776,
-0.0004065266693942249,
-0.0015922528691589832,
0.017531709745526314,
-0.023417741060256958,
0.02271358296275139,
0.028653781861066818,
-0.02258719690144062,
-0.05889642983675003,
0.034991197288036346,
0.013983840122818947,
-0.01510326936841011,
-0.06543245166540146,
0.032066237181425095,
-0.0032476994674652815,
-0.012349833734333515,
-0.0090411975979805,
-0.028166288509964943,
-0.010020698420703411,
-0.06073807179927826,
0.00045561452861875296,
0.00037069813697598875,
0.005276665091514587,
-0.01285538263618946,
0.006797825451940298,
0.0015820967964828014,
0.014543554745614529,
0.017098382115364075,
0.02137749083340168,
0.02191914990544319,
-0.02520521730184555,
0.011853313073515892,
-0.011194294318556786,
-0.029484326019883156,
-0.026956582441926003,
-0.03060375526547432,
0.0527576245367527,
-0.05737978592514992,
0.002961071440950036,
0.03000793047249317,
-0.08601550757884979,
0.0064231776632368565,
-0.04149110987782478,
0.006815880537033081,
0.04600493609905243,
0.0002853585756383836,
0.030260704457759857,
0.08240444958209991,
0.061026956886053085,
0.03668839484453201,
0.0390716977417469,
-0.023580238223075867,
0.03744671866297722,
0.021124716848134995,
-0.011627621948719025,
-0.05640479922294617,
-0.020528890192508698,
0.030585700646042824,
0.0100658368319273,
0.035587020218372345,
0.06745465099811554,
-0.019120575860142708,
0.029249606654047966,
0.055754806846380234,
-0.029827376827597618,
0.0025209730956703424,
0.008680092170834541,
0.019915010780096054,
0.015031048096716404,
0.014164392836391926,
0.028617670759558678,
-0.01151026226580143,
-0.06853796541690826,
-0.042574428021907806,
-0.007894685491919518,
-0.04073278605937958,
0.023851068690419197,
0.013577595353126526,
0.02986348792910576,
0.038277264684438705,
0.0184615571051836
]
|
30,065 | networkx.classes.digraph | DiGraph |
Base class for directed graphs.
A DiGraph stores nodes and edges with optional data, or attributes.
DiGraphs hold directed edges. Self loops are allowed but multiple
(parallel) edges are not.
Nodes can be arbitrary (hashable) Python objects with optional
key/value attributes. By convention `None` is not used as a node.
Edges are represented as links between nodes with optional
key/value attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be any format that is supported
by the to_networkx_graph() function, currently including edge list,
dict of dicts, dict of lists, NetworkX graph, 2D NumPy array, SciPy
sparse matrix, or PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
Graph
MultiGraph
MultiDiGraph
Examples
--------
Create an empty graph structure (a "null graph") with no nodes and
no edges.
>>> G = nx.DiGraph()
G can be grown in several ways.
**Nodes:**
Add one node at a time:
>>> G.add_node(1)
Add the nodes from any container (a list, dict, set or
even the lines from a file or the nodes from another graph).
>>> G.add_nodes_from([2, 3])
>>> G.add_nodes_from(range(100, 110))
>>> H = nx.path_graph(10)
>>> G.add_nodes_from(H)
In addition to strings and integers any hashable Python object
(except None) can represent a node, e.g. a customized node object,
or even another Graph.
>>> G.add_node(H)
**Edges:**
G can also be grown by adding edges.
Add one edge,
>>> G.add_edge(1, 2)
a list of edges,
>>> G.add_edges_from([(1, 2), (1, 3)])
or a collection of edges,
>>> G.add_edges_from(H.edges)
If some edges connect nodes not yet in the graph, the nodes
are added automatically. There are no errors when adding
nodes or edges that already exist.
**Attributes:**
Each graph, node, and edge can hold key/value attribute pairs
in an associated attribute dictionary (the keys must be hashable).
By default these are empty, but can be added or changed using
add_edge, add_node or direct manipulation of the attribute
dictionaries named graph, node and edge respectively.
>>> G = nx.DiGraph(day="Friday")
>>> G.graph
{'day': 'Friday'}
Add node attributes using add_node(), add_nodes_from() or G.nodes
>>> G.add_node(1, time="5pm")
>>> G.add_nodes_from([3], time="2pm")
>>> G.nodes[1]
{'time': '5pm'}
>>> G.nodes[1]["room"] = 714
>>> del G.nodes[1]["room"] # remove attribute
>>> list(G.nodes(data=True))
[(1, {'time': '5pm'}), (3, {'time': '2pm'})]
Add edge attributes using add_edge(), add_edges_from(), subscript
notation, or G.edges.
>>> G.add_edge(1, 2, weight=4.7)
>>> G.add_edges_from([(3, 4), (4, 5)], color="red")
>>> G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})])
>>> G[1][2]["weight"] = 4.7
>>> G.edges[1, 2]["weight"] = 4
Warning: we protect the graph data structure by making `G.edges[1, 2]` a
read-only dict-like structure. However, you can assign to attributes
in e.g. `G.edges[1, 2]`. Thus, use 2 sets of brackets to add/change
data attributes: `G.edges[1, 2]['weight'] = 4`
(For multigraphs: `MG.edges[u, v, key][name] = value`).
**Shortcuts:**
Many common graph features allow python syntax to speed reporting.
>>> 1 in G # check if node in graph
True
>>> [n for n in G if n < 3] # iterate through nodes
[1, 2]
>>> len(G) # number of nodes in graph
5
Often the best way to traverse all edges of a graph is via the neighbors.
The neighbors are reported as an adjacency-dict `G.adj` or `G.adjacency()`
>>> for n, nbrsdict in G.adjacency():
... for nbr, eattr in nbrsdict.items():
... if "weight" in eattr:
... # Do something useful with the edges
... pass
But the edges reporting object is often more convenient:
>>> for u, v, weight in G.edges(data="weight"):
... if weight is not None:
... # Do something useful with the edges
... pass
**Reporting:**
Simple graph information is obtained using object-attributes and methods.
Reporting usually provides views instead of containers to reduce memory
usage. The views update as the graph is updated similarly to dict-views.
The objects `nodes`, `edges` and `adj` provide access to data attributes
via lookup (e.g. `nodes[n]`, `edges[u, v]`, `adj[u][v]`) and iteration
(e.g. `nodes.items()`, `nodes.data('color')`,
`nodes.data('color', default='blue')` and similarly for `edges`)
Views exist for `nodes`, `edges`, `neighbors()`/`adj` and `degree`.
For details on these and other miscellaneous methods, see below.
**Subclasses (Advanced):**
The Graph class uses a dict-of-dict-of-dict data structure.
The outer dict (node_dict) holds adjacency information keyed by node.
The next dict (adjlist_dict) represents the adjacency information and holds
edge data keyed by neighbor. The inner dict (edge_attr_dict) represents
the edge data and holds edge attribute values keyed by attribute names.
Each of these three dicts can be replaced in a subclass by a user defined
dict-like object. In general, the dict-like features should be
maintained but extra features can be added. To replace one of the
dicts create a new graph class by changing the class(!) variable
holding the factory for that dict-like structure. The variable names are
node_dict_factory, node_attr_dict_factory, adjlist_inner_dict_factory,
adjlist_outer_dict_factory, edge_attr_dict_factory and graph_attr_dict_factory.
node_dict_factory : function, (default: dict)
Factory function to be used to create the dict containing node
attributes, keyed by node id.
It should require no arguments and return a dict-like object
node_attr_dict_factory: function, (default: dict)
Factory function to be used to create the node attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object
adjlist_outer_dict_factory : function, (default: dict)
Factory function to be used to create the outer-most dict
in the data structure that holds adjacency info keyed by node.
It should require no arguments and return a dict-like object.
adjlist_inner_dict_factory : function, optional (default: dict)
Factory function to be used to create the adjacency list
dict which holds edge data keyed by neighbor.
It should require no arguments and return a dict-like object
edge_attr_dict_factory : function, optional (default: dict)
Factory function to be used to create the edge attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
graph_attr_dict_factory : function, (default: dict)
Factory function to be used to create the graph attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
Typically, if your extension doesn't impact the data structure all
methods will inherited without issue except: `to_directed/to_undirected`.
By default these methods create a DiGraph/Graph class and you probably
want them to create your extension of a DiGraph/Graph. To facilitate
this we define two class variables that you can set in your subclass.
to_directed_class : callable, (default: DiGraph or MultiDiGraph)
Class to create a new graph structure in the `to_directed` method.
If `None`, a NetworkX class (DiGraph or MultiDiGraph) is used.
to_undirected_class : callable, (default: Graph or MultiGraph)
Class to create a new graph structure in the `to_undirected` method.
If `None`, a NetworkX class (Graph or MultiGraph) is used.
**Subclassing Example**
Create a low memory graph class that effectively disallows edge
attributes by using a single attribute dict for all edges.
This reduces the memory used, but you lose edge attributes.
>>> class ThinGraph(nx.Graph):
... all_edge_dict = {"weight": 1}
...
... def single_edge_dict(self):
... return self.all_edge_dict
...
... edge_attr_dict_factory = single_edge_dict
>>> G = ThinGraph()
>>> G.add_edge(2, 1)
>>> G[2][1]
{'weight': 1}
>>> G.add_edge(2, 2)
>>> G[2][1] is G[2][2]
True
| class DiGraph(Graph):
"""
Base class for directed graphs.
A DiGraph stores nodes and edges with optional data, or attributes.
DiGraphs hold directed edges. Self loops are allowed but multiple
(parallel) edges are not.
Nodes can be arbitrary (hashable) Python objects with optional
key/value attributes. By convention `None` is not used as a node.
Edges are represented as links between nodes with optional
key/value attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be any format that is supported
by the to_networkx_graph() function, currently including edge list,
dict of dicts, dict of lists, NetworkX graph, 2D NumPy array, SciPy
sparse matrix, or PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
Graph
MultiGraph
MultiDiGraph
Examples
--------
Create an empty graph structure (a "null graph") with no nodes and
no edges.
>>> G = nx.DiGraph()
G can be grown in several ways.
**Nodes:**
Add one node at a time:
>>> G.add_node(1)
Add the nodes from any container (a list, dict, set or
even the lines from a file or the nodes from another graph).
>>> G.add_nodes_from([2, 3])
>>> G.add_nodes_from(range(100, 110))
>>> H = nx.path_graph(10)
>>> G.add_nodes_from(H)
In addition to strings and integers any hashable Python object
(except None) can represent a node, e.g. a customized node object,
or even another Graph.
>>> G.add_node(H)
**Edges:**
G can also be grown by adding edges.
Add one edge,
>>> G.add_edge(1, 2)
a list of edges,
>>> G.add_edges_from([(1, 2), (1, 3)])
or a collection of edges,
>>> G.add_edges_from(H.edges)
If some edges connect nodes not yet in the graph, the nodes
are added automatically. There are no errors when adding
nodes or edges that already exist.
**Attributes:**
Each graph, node, and edge can hold key/value attribute pairs
in an associated attribute dictionary (the keys must be hashable).
By default these are empty, but can be added or changed using
add_edge, add_node or direct manipulation of the attribute
dictionaries named graph, node and edge respectively.
>>> G = nx.DiGraph(day="Friday")
>>> G.graph
{'day': 'Friday'}
Add node attributes using add_node(), add_nodes_from() or G.nodes
>>> G.add_node(1, time="5pm")
>>> G.add_nodes_from([3], time="2pm")
>>> G.nodes[1]
{'time': '5pm'}
>>> G.nodes[1]["room"] = 714
>>> del G.nodes[1]["room"] # remove attribute
>>> list(G.nodes(data=True))
[(1, {'time': '5pm'}), (3, {'time': '2pm'})]
Add edge attributes using add_edge(), add_edges_from(), subscript
notation, or G.edges.
>>> G.add_edge(1, 2, weight=4.7)
>>> G.add_edges_from([(3, 4), (4, 5)], color="red")
>>> G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})])
>>> G[1][2]["weight"] = 4.7
>>> G.edges[1, 2]["weight"] = 4
Warning: we protect the graph data structure by making `G.edges[1, 2]` a
read-only dict-like structure. However, you can assign to attributes
in e.g. `G.edges[1, 2]`. Thus, use 2 sets of brackets to add/change
data attributes: `G.edges[1, 2]['weight'] = 4`
(For multigraphs: `MG.edges[u, v, key][name] = value`).
**Shortcuts:**
Many common graph features allow python syntax to speed reporting.
>>> 1 in G # check if node in graph
True
>>> [n for n in G if n < 3] # iterate through nodes
[1, 2]
>>> len(G) # number of nodes in graph
5
Often the best way to traverse all edges of a graph is via the neighbors.
The neighbors are reported as an adjacency-dict `G.adj` or `G.adjacency()`
>>> for n, nbrsdict in G.adjacency():
... for nbr, eattr in nbrsdict.items():
... if "weight" in eattr:
... # Do something useful with the edges
... pass
But the edges reporting object is often more convenient:
>>> for u, v, weight in G.edges(data="weight"):
... if weight is not None:
... # Do something useful with the edges
... pass
**Reporting:**
Simple graph information is obtained using object-attributes and methods.
Reporting usually provides views instead of containers to reduce memory
usage. The views update as the graph is updated similarly to dict-views.
The objects `nodes`, `edges` and `adj` provide access to data attributes
via lookup (e.g. `nodes[n]`, `edges[u, v]`, `adj[u][v]`) and iteration
(e.g. `nodes.items()`, `nodes.data('color')`,
`nodes.data('color', default='blue')` and similarly for `edges`)
Views exist for `nodes`, `edges`, `neighbors()`/`adj` and `degree`.
For details on these and other miscellaneous methods, see below.
**Subclasses (Advanced):**
The Graph class uses a dict-of-dict-of-dict data structure.
The outer dict (node_dict) holds adjacency information keyed by node.
The next dict (adjlist_dict) represents the adjacency information and holds
edge data keyed by neighbor. The inner dict (edge_attr_dict) represents
the edge data and holds edge attribute values keyed by attribute names.
Each of these three dicts can be replaced in a subclass by a user defined
dict-like object. In general, the dict-like features should be
maintained but extra features can be added. To replace one of the
dicts create a new graph class by changing the class(!) variable
holding the factory for that dict-like structure. The variable names are
node_dict_factory, node_attr_dict_factory, adjlist_inner_dict_factory,
adjlist_outer_dict_factory, edge_attr_dict_factory and graph_attr_dict_factory.
node_dict_factory : function, (default: dict)
Factory function to be used to create the dict containing node
attributes, keyed by node id.
It should require no arguments and return a dict-like object
node_attr_dict_factory: function, (default: dict)
Factory function to be used to create the node attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object
adjlist_outer_dict_factory : function, (default: dict)
Factory function to be used to create the outer-most dict
in the data structure that holds adjacency info keyed by node.
It should require no arguments and return a dict-like object.
adjlist_inner_dict_factory : function, optional (default: dict)
Factory function to be used to create the adjacency list
dict which holds edge data keyed by neighbor.
It should require no arguments and return a dict-like object
edge_attr_dict_factory : function, optional (default: dict)
Factory function to be used to create the edge attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
graph_attr_dict_factory : function, (default: dict)
Factory function to be used to create the graph attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
Typically, if your extension doesn't impact the data structure all
methods will inherited without issue except: `to_directed/to_undirected`.
By default these methods create a DiGraph/Graph class and you probably
want them to create your extension of a DiGraph/Graph. To facilitate
this we define two class variables that you can set in your subclass.
to_directed_class : callable, (default: DiGraph or MultiDiGraph)
Class to create a new graph structure in the `to_directed` method.
If `None`, a NetworkX class (DiGraph or MultiDiGraph) is used.
t | (incoming_graph_data=None, **attr) | [
0.031567566096782684,
-0.010823766700923443,
-0.014848525635898113,
0.01633022539317608,
-0.013492927886545658,
-0.007035448215901852,
-0.05939410254359245,
0.014659373089671135,
0.05569510906934738,
-0.05376154184341431,
-0.024421779438853264,
0.021069563925266266,
0.04213912785053253,
0.06742260605096817,
-0.017528196796774864,
0.030979089438915253,
0.000017538130123284645,
0.02809975855052471,
0.007124770432710648,
0.023875337094068527,
-0.03488825634121895,
-0.04104624316096306,
0.01651937887072563,
0.0019361930899322033,
0.010082916356623173,
0.008033756166696548,
-0.0048076435923576355,
0.01367157232016325,
0.04037369787693024,
0.006688666995614767,
-0.051533736288547516,
-0.07872976362705231,
-0.06494259834289551,
-0.00858019944280386,
0.027364162728190422,
0.01708683930337429,
-0.028562132269144058,
0.04712016135454178,
-0.08389995247125626,
0.023097706958651543,
0.03320689499378204,
-0.007786806672811508,
0.01429157517850399,
-0.017612263560295105,
0.04316896200180054,
0.039469968527555466,
0.0354977510869503,
0.06313513219356537,
-0.031189261004328728,
-0.10197459161281586,
0.014396660029888153,
-0.03688487410545349,
0.003927555866539478,
0.06069716066122055,
0.002444542245939374,
0.028036708012223244,
-0.012935977429151535,
0.05863749235868454,
0.010624104179441929,
0.012200381606817245,
0.010088170878589153,
-0.005002051126211882,
0.011128513142466545,
-0.0520801804959774,
-0.05245848745107651,
0.0022002195473760366,
-0.06405988335609436,
-0.047666605561971664,
-0.030726885423064232,
-0.006678158883005381,
0.0007375660934485495,
-0.0022658975794911385,
0.04590117558836937,
0.012221397832036018,
0.03957505151629448,
0.03432079777121544,
0.003029078245162964,
-0.008391045965254307,
-0.0027768739964812994,
-0.014711915515363216,
0.016634972766041756,
-0.0038671321235597134,
-0.02125871740281582,
-0.02610314078629017,
0.06666599214076996,
0.0018179723992943764,
-0.03312282636761665,
0.03825097903609276,
0.017444128170609474,
-0.04131946340203285,
-0.05594731122255325,
-0.008559182286262512,
0.011664447374641895,
0.04871745780110359,
-0.003775182645767927,
-0.0253885630518198,
0.006357649341225624,
-0.07957044243812561,
0.04260150343179703,
0.035098426043987274,
-0.03738928213715553,
-0.011223089881241322,
-0.05758664011955261,
0.006315615028142929,
-0.07036498934030533,
-0.10382408648729324,
-0.07213041931390762,
-0.012305466458201408,
-0.007876128889620304,
-0.025745851919054985,
-0.09356778115034103,
0.0036175549030303955,
0.05788087844848633,
0.024442795664072037,
0.0325133316218853,
0.023854319006204605,
-0.016729548573493958,
-0.02135329507291317,
0.008154604583978653,
-0.011527836322784424,
-0.041760820895433426,
0.04901169613003731,
-0.010371900163590908,
0.03385842218995094,
0.031483497470617294,
-0.023055672645568848,
0.0126942815259099,
-0.02029193378984928,
0.017780400812625885,
-0.05977240949869156,
0.02677568607032299,
-0.011979702860116959,
-0.013230214826762676,
0.06759074330329895,
0.04712016135454178,
0.001729963580146432,
-0.03171468526124954,
0.010482239536941051,
-0.02635534480214119,
0.042748622596263885,
0.020081764087080956,
-0.0628829300403595,
0.0512394979596138,
0.02027091756463051,
-0.06132766976952553,
-0.03352215141057968,
-0.04442998394370079,
-0.05060898885130882,
-0.058595456182956696,
-0.035749953240156174,
0.009200201369822025,
-0.026901787146925926,
0.006105444859713316,
0.010140713304281235,
-0.020985497161746025,
0.008012739941477776,
-0.08377385139465332,
0.006951380055397749,
-0.01692921109497547,
0.016813617199659348,
-0.05603137984871864,
-0.04669982194900513,
0.055316802114248276,
-0.014365134760737419,
-0.0007020998746156693,
0.005884766113013029,
0.040857091546058655,
-0.0676327794790268,
-0.0009720372618176043,
0.04527066648006439,
-0.01321970671415329,
-0.071920245885849,
-0.04035268351435661,
0.034951306879520416,
-0.0014107675524428487,
0.03621232882142067,
0.051617804914712906,
0.0006492289248853922,
0.018494978547096252,
0.02683873660862446,
0.029381796717643738,
-0.03383740410208702,
-0.04985237494111061,
0.009152913466095924,
0.026544498279690742,
-0.022971604019403458,
0.018032604828476906,
0.012442076578736305,
0.0658673495054245,
0.0165824294090271,
0.02767941728234291,
-0.025892971083521843,
0.0064837513491511345,
0.03902861103415489,
0.030495699495077133,
-0.033227913081645966,
0.010991902090609074,
-0.021563464775681496,
0.0072561269626021385,
0.1127353087067604,
0.04531269893050194,
-0.009410372003912926,
0.06948227435350418,
-0.00507298344746232,
0.0037830639630556107,
0.030327562242746353,
-0.010571561753749847,
-0.044556085020303726,
-0.0353085957467556,
-0.03211401030421257,
-0.008228164166212082,
-0.02702789008617401,
0.06002461537718773,
0.032723501324653625,
-0.022614315152168274,
-0.039953358471393585,
-0.016971245408058167,
0.0387553870677948,
-0.031756721436977386,
-0.009289523586630821,
0.022971604019403458,
-0.002490516984835267,
-0.03755741938948631,
-0.03612826019525528,
0.015626156702637672,
-0.05985647812485695,
0.027658401057124138,
-0.021164141595363617,
0.03612826019525528,
-0.04321099817752838,
0.07309719920158386,
-0.0032129772007465363,
0.035350631922483444,
0.035834021866321564,
0.0533832348883152,
-0.025073306635022163,
-0.011202072724699974,
0.018841760233044624,
-0.0010265501914545894,
0.0028241623658686876,
-0.011548853479325771,
-0.024127541109919548,
-0.020102782174944878,
-0.004639507737010717,
0.023202791810035706,
0.008748335763812065,
0.029444847255945206,
0.023749234154820442,
-0.021563464775681496,
-0.036506567150354385,
-0.04354726895689964,
-0.01954583078622818,
0.0003546622465364635,
0.016035987064242363,
-0.007655450142920017,
-0.012662755325436592,
-0.05157577246427536,
-0.01978752575814724,
0.010603087954223156,
-0.006042393855750561,
-0.001838989439420402,
0.009983085095882416,
-0.02570381760597229,
0.07847756147384644,
0.07103753089904785,
0.015563104301691055,
0.018169214949011803,
0.004584338050335646,
-0.07112160325050354,
-0.020743800327181816,
0.09684643894433975,
0.024022456258535385,
0.05918393284082413,
0.017297009006142616,
-0.009615287184715271,
-0.03652758523821831,
-0.02522042579948902,
0.01822175830602646,
-0.02923467755317688,
-0.023454995825886726,
-0.055400870740413666,
-0.022698383778333664,
-0.04548083618283272,
0.0026599669363349676,
-0.020922444760799408,
-0.013198689557611942,
-0.031000107526779175,
0.034194692969322205,
-0.016235649585723877,
-0.0031867059879004955,
0.06582531332969666,
-0.04222319647669792,
-0.008448842912912369,
0.01945125311613083,
0.017769891768693924,
0.0266916174441576,
-0.03383740410208702,
0.0256197489798069,
0.04014251008629799,
0.025493647903203964,
0.07511483877897263,
-0.01774887554347515,
0.08642199635505676,
-0.003575520822778344,
-0.025598732754588127,
0.0032707741484045982,
0.06956633925437927,
0.011559361591935158,
0.0008886259747669101,
0.016771582886576653,
-0.02069125883281231,
0.022635333240032196,
0.008900708518922329,
0.06427004933357239,
-0.02889840491116047,
-0.045691005885601044,
-0.0256197489798069,
-0.07742670923471451,
0.0464896522462368,
0.06141173839569092,
-0.06166394054889679,
0.04308489337563515,
-0.05435001850128174,
-0.018011588603258133,
-0.0023736099246889353,
0.047918811440467834,
0.09760305285453796,
0.06477446109056473,
0.06254665553569794,
0.012126822024583817,
-0.01641429401934147,
-0.00837002880871296,
-0.006331377662718296,
0.017864469438791275,
-0.0684734582901001,
0.04049980267882347,
0.006919854320585728,
0.003890776075422764,
0.018253283575177193,
-0.024085506796836853,
0.029760103672742844,
0.03257638216018677,
-0.027196025475859642,
0.011864108964800835,
0.02440076321363449,
-0.04846525192260742,
0.02683873660862446,
-0.011738006956875324,
-0.002444542245939374,
0.024274660274386406,
-0.016813617199659348,
0.05750257149338722,
-0.02898247353732586,
0.00890596304088831,
0.007492568343877792,
-0.04194997623562813,
-0.010377154685556889,
-0.055400870740413666,
-0.016246158629655838,
0.0020741173066198826,
-0.013387843035161495,
0.017843451350927353,
0.022635333240032196,
0.013713606633245945,
-0.017538703978061676,
-0.017864469438791275,
0.004111454822123051,
0.024695001542568207,
0.05905783176422119,
-0.05266865715384483,
0.03686385601758957,
-0.06002461537718773,
-0.03432079777121544,
0.0014974628575146198,
-0.0068988376297056675,
0.002745348494499922,
0.01650886982679367,
0.049221865832805634,
0.003501961240544915,
0.023623133078217506,
0.011349191889166832,
-0.00657307356595993,
0.010413934476673603,
0.06069716066122055,
0.04943203553557396,
-0.03644351661205292,
0.1050851121544838,
0.0027716197073459625,
0.010361392050981522,
-0.013986827805638313,
-0.08087349683046341,
-0.01897837035357952,
0.009920034557580948,
0.025892971083521843,
-0.0627988651394844,
-0.03902861103415489,
0.08339554071426392,
0.0024143303744494915,
-0.03532961383461952,
-0.058511387556791306,
0.01482750941067934,
-0.04371540620923042,
0.04197099432349205,
0.04682592302560806,
0.048507288098335266,
0.02160549908876419,
0.042160145938396454,
0.04384150728583336,
0.035287581384181976,
0.03497232496738434,
0.05287882685661316,
0.005204339977353811,
-0.07040702551603317,
0.027553316205739975,
0.03942793235182762,
-0.003517724107950926,
0.034783169627189636,
0.014386151917278767,
0.06574124097824097,
0.02242516167461872,
0.02406449057161808,
0.010571561753749847,
0.025829920545220375,
0.017044804990291595,
0.015394968912005424,
-0.001345089403912425,
-0.026712635532021523,
0.010608341544866562,
-0.044724222272634506,
0.060991398990154266,
0.016529887914657593,
-0.020953970029950142,
0.017475653439760208,
-0.025430597364902496,
0.0219417717307806,
-0.025745851919054985,
0.008133587427437305,
-0.037494368851184845,
-0.010513764806091785,
0.013492927886545658,
-0.017612263560295105,
-0.019819051027297974,
0.01805362105369568,
-0.03677978739142418,
-0.04308489337563515,
-0.02982315421104431,
-0.015458019450306892,
0.0238963533192873,
0.04951610416173935,
-0.02858315035700798,
0.029360780492424965,
0.00022035033907741308,
0.05657782405614853,
0.02299262210726738,
-0.10802749544382095,
-0.007471551187336445,
0.008033756166696548,
-0.01945125311613083,
-0.014690898358821869,
0.039448950439691544,
-0.012389534153044224,
-0.011349191889166832,
-0.05304696410894394,
-0.01634073443710804,
-0.04493439197540283,
0.0076449415646493435,
0.0736856758594513,
-0.017212940379977226,
-0.05182797461748123,
-0.003052722429856658,
0.061874113976955414,
-0.01864209771156311,
-0.046027276664972305,
-0.06725446879863739,
0.027448231354355812,
0.016403784975409508,
-0.016193615272641182,
-0.04035268351435661,
-0.07154194265604019,
-0.08385791629552841,
0.028688235208392143,
-0.03429977968335152,
0.03835606575012207,
-0.009095116518437862,
0.03358520194888115,
0.001599920797161758,
0.052920859307050705,
-0.01341936830431223,
-0.012799366377294064,
0.004274336621165276,
-0.03434181213378906,
-0.04228624701499939,
-0.014732932671904564,
-0.009925288148224354,
0.03413164243102074,
0.07448432594537735,
-0.022383129224181175,
-0.04131946340203285,
-0.016035987064242363,
-0.05527476593852043,
-0.016214631497859955,
-0.0464896522462368,
-0.008207147009670734,
-0.004505523946136236,
0.03713707625865936,
-0.00837528333067894,
-0.04049980267882347,
0.060571055859327316,
0.051113396883010864,
-0.001850811531767249,
0.032975707203149796,
0.02177363447844982,
0.056451719254255295,
0.0019821678288280964,
0.03663266822695732,
-0.011538345366716385,
-0.030432647094130516,
0.030937056988477707,
0.0061264620162546635,
-0.0650266632437706,
0.053257133811712265,
0.02677568607032299,
0.026586532592773438,
0.0301384087651968,
-0.04268557205796242,
0.06330326944589615,
-0.003995861392468214,
-0.029108574613928795,
0.021237701177597046,
0.020239392295479774,
0.017948536202311516,
0.03236621245741844,
-0.012021736241877079,
0.0689358338713646,
0.02158448100090027,
-0.004437218885868788,
0.056535787880420685,
-0.00570612121373415,
-0.04251743480563164,
-0.01701327972114086,
0.04451405256986618,
0.022929571568965912,
-0.04514456167817116,
-0.009993594139814377,
0.014785475097596645,
-0.039112675935029984,
0.017433619126677513,
-0.03228214383125305,
0.01088681723922491,
-0.0645642876625061,
-0.020249901339411736,
0.0038329793605953455,
-0.0037305213045328856,
0.010240543633699417,
0.07889790087938309,
-0.04640558362007141,
0.009462914429605007,
0.002713822992518544,
0.024947205558419228,
0.027637382969260216,
-0.051281534135341644,
-0.021479396149516106,
-0.039785221219062805,
-0.03646453469991684,
0.0456489697098732,
-0.005283154081553221,
0.017528196796774864,
0.012105804868042469,
-0.04669982194900513,
-0.0029134845826774836,
-0.019272608682513237,
0.034867238253355026,
0.02192075364291668,
-0.01321970671415329,
-0.0408991239964962,
0.008396300487220287,
-0.05762867256999016,
0.05426594987511635,
0.010403425432741642,
-0.06582531332969666,
-0.03999539092183113,
0.0376414880156517,
0.002661280333995819,
0.025598732754588127,
0.01871565729379654,
0.014396660029888153,
-0.01684514246881008,
0.05674595758318901,
0.00505196675658226,
-0.0400584451854229,
-0.02511534094810486,
-0.05321509763598442,
0.03934386372566223,
-0.01675056666135788,
-0.02553568221628666,
0.04384150728583336,
-0.012137330137193203,
-0.0107134273275733,
0.0318618044257164,
-0.0076291789300739765,
-0.05590527877211571,
0.00997783150523901,
0.038229964673519135,
0.004037895239889622,
-0.003189333016052842,
0.03497232496738434,
0.00015524683112744242,
-0.01023003552109003,
-0.02011328935623169,
-0.07553517818450928,
0.0011395167093724012,
0.04590117558836937,
-0.0062420554459095,
-0.05426594987511635,
-0.025472629815340042,
-0.06796904653310776,
-0.04138251766562462,
0.07381178438663483,
-0.02265634946525097,
-0.01043495163321495,
0.02530449442565441,
-0.04901169613003731,
-0.029360780492424965,
-0.0017956418450921774,
-0.03564487025141716,
0.013892251066863537,
0.0024813220370560884,
-0.024905171245336533,
-0.03278655558824539,
-0.0016143700340762734,
0.0221729576587677,
-0.04426184669137001,
-0.004489761311560869,
0.00824918132275343,
-0.007087990641593933,
-0.06611955165863037,
0.031672652810811996,
0.007461042609065771,
0.0020977614913135767,
0.03684283792972565,
-0.029760103672742844,
0.0028399250004440546,
-0.03005434200167656,
-0.006646633148193359,
-0.022488214075565338,
-0.014123438857495785,
0.02866721712052822,
-0.06010868400335312,
0.038545217365026474,
-0.0165824294090271,
-0.0015841580461710691,
0.007813078351318836,
-0.009389354847371578,
-0.03448893129825592,
0.018284808844327927,
0.049221865832805634,
-0.015426494181156158,
-0.01871565729379654,
-0.009941051714122295,
-0.01268377248197794,
-0.006184258498251438,
0.01913599856197834,
0.06944023817777634,
-0.02742721326649189,
0.02610314078629017,
0.025808902457356453,
-0.019524812698364258,
0.001247885636985302,
0.06822125613689423,
0.003733148565515876,
-0.024673983454704285,
0.0034021304454654455,
0.02578788623213768,
0.00010056973405880854,
-0.039869289845228195,
-0.022635333240032196,
0.01674005761742592,
0.013408860191702843,
0.022446179762482643,
-0.03909166157245636,
0.02675466798245907,
0.08276503533124924,
-0.019556337967514992,
-0.04028962925076485,
-0.01741260290145874,
0.02635534480214119,
-0.022362111136317253,
-0.0407099723815918,
-0.012400043196976185,
-0.03398452326655388,
-0.028478065505623817,
-0.041907940059900284,
0.05237441882491112,
-0.003938064444810152,
-0.003501961240544915,
-0.06708633154630661,
-0.03425774723291397,
-0.002553568221628666,
-0.00040293572237715125,
-0.046111345291137695,
0.010214272886514664,
0.00956799928098917,
-0.005030949600040913,
0.045186597853899,
0.05006254464387894,
-0.00891121756285429,
-0.07738467305898666,
0.02971806935966015,
0.024568898603320122,
-0.015668189153075218,
-0.028793320059776306,
0.0236651673913002,
0.04039471596479416,
-0.02084888517856598,
0.02578788623213768,
0.002661280333995819,
0.03980623930692673,
-0.002468186430633068,
-0.07019685208797455,
0.015804801136255264,
0.011874617077410221,
0.0007677780813537538,
0.04943203553557396,
0.039617087692022324,
-0.01255767047405243,
-0.008096807636320591,
0.005679850000888109,
-0.08469859510660172,
-0.0028688234742730856,
-0.028835354372859,
-0.014838017523288727,
0.06889379769563675,
0.0004203404241707176,
0.03869233652949333,
-0.053004927933216095,
-0.028141792863607407,
-0.005327815189957619,
0.030180443078279495,
-0.016803108155727386,
0.07448432594537735,
-0.028120774775743484,
-0.023602114990353584,
-0.049978479743003845,
0.0040615396574139595,
-0.014774966053664684,
-0.03890250623226166,
0.026712635532021523,
0.05640968680381775,
-0.014669881202280521,
0.003751538461074233,
0.05502256378531456,
0.0013010849943384528,
-0.03291265666484833,
0.004631626419723034,
0.058847662061452866,
-0.006273581180721521,
-0.00118614814709872,
-0.027448231354355812,
0.023097706958651543,
-0.10020916163921356,
-0.02406449057161808,
-0.020008204504847527,
0.03413164243102074,
-0.02234109491109848,
0.006862057838588953,
0.04880152642726898,
-0.0004203404241707176,
0.0709955021739006
]
|
30,066 | networkx.classes.graph | __contains__ | Returns True if n is a node, False otherwise. Use: 'n in G'.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> 1 in G
True
| def __contains__(self, n):
"""Returns True if n is a node, False otherwise. Use: 'n in G'.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> 1 in G
True
"""
try:
return n in self._node
except TypeError:
return False
| (self, n) | [
0.009146671742200851,
-0.04432031512260437,
-0.006450669374316931,
0.020222265273332596,
-0.018239513039588928,
0.04794488847255707,
-0.031293369829654694,
-0.00002200875860580709,
0.016866840422153473,
-0.036245763301849365,
-0.023882728070020676,
-0.004629409406334162,
0.055229928344488144,
0.007491389289498329,
-0.024887559935450554,
-0.0540456622838974,
-0.024905504658818245,
0.026430698111653328,
-0.0033778538927435875,
-0.011860618367791176,
-0.0827551782131195,
0.03879373148083687,
0.059141602367162704,
-0.027399644255638123,
0.010398227721452713,
0.03477440029382706,
0.04385378584265709,
-0.0015734160551801324,
-0.021837174892425537,
0.040372755378484726,
-0.07887939363718033,
-0.015180155634880066,
-0.015476223081350327,
-0.011636325158178806,
0.06373511999845505,
0.045971110463142395,
-0.017584577202796936,
0.0640581026673317,
-0.048267871141433716,
0.00785025767982006,
-0.016463112086057663,
0.019881339743733406,
0.01876884512603283,
0.025354091078042984,
0.007464474067091942,
-0.01203108113259077,
0.04955980181694031,
0.03707116097211838,
-0.05461985245347023,
-0.006100771948695183,
0.00985095277428627,
-0.03667640686035156,
-0.02210632711648941,
-0.017710182815790176,
-0.07478828728199005,
0.01259629987180233,
0.026125658303499222,
0.057634349912405014,
0.014928948134183884,
0.053292036056518555,
-0.006944113876670599,
0.04485861584544182,
0.007137006148695946,
-0.03721470758318901,
-0.009806093759834766,
-0.012919281609356403,
-0.048949722200632095,
-0.02587445080280304,
-0.032585300505161285,
0.04109049215912819,
-0.008998638950288296,
0.004920990206301212,
0.015368562191724777,
0.06445286422967911,
0.034989722073078156,
-0.03522298485040665,
0.00612768717110157,
0.06832864880561829,
0.007693252991884947,
0.016220875084400177,
0.025336146354675293,
-0.04694005846977234,
-0.008572481572628021,
-0.02027609571814537,
-0.01397794485092163,
0.023057328537106514,
0.014785400591790676,
-0.004106806591153145,
-0.016184989362955093,
0.0010121226077899337,
-0.04615054652094841,
0.007338869851082563,
0.012273317202925682,
-0.004669782239943743,
0.02827887237071991,
0.018499692901968956,
0.063412144780159,
-0.07041008770465851,
0.0037232651375234127,
-0.03493589162826538,
-0.002514325547963381,
0.030826842412352562,
0.020222265273332596,
0.006168060004711151,
-0.005342661403119564,
0.0049479054287076,
-0.04568401724100113,
0.021962778642773628,
-0.016238819807767868,
-0.013502444140613079,
-0.055804118514060974,
0.011968279257416725,
0.013556273654103279,
-0.003299351315945387,
0.02199866622686386,
-0.02233959175646305,
-0.01746794581413269,
-0.003122159745544195,
-0.04198766499757767,
-0.021262984722852707,
0.011421004310250282,
0.05688072741031647,
-0.015180155634880066,
0.026430698111653328,
0.05756257846951485,
-0.01723468117415905,
0.011609409935772419,
0.02748936042189598,
0.005095938686281443,
-0.083831787109375,
0.03287239372730255,
0.008227070793509483,
0.003404769115149975,
0.10636875033378601,
0.014381672255694866,
0.04579167813062668,
-0.053543247282505035,
0.0053067742846906185,
-0.02314704656600952,
0.04887795075774193,
-0.013376839458942413,
-0.06997944414615631,
0.03161635249853134,
-0.004894074983894825,
-0.0385066382586956,
0.014785400591790676,
-0.06965646147727966,
-0.026628075167536736,
-0.011779872700572014,
-0.03976267948746681,
-0.02402627468109131,
-0.031993165612220764,
0.04683239758014679,
0.013717764988541603,
-0.077874556183815,
0.003135617356747389,
0.016570772975683212,
-0.024905504658818245,
0.005001735873520374,
-0.026125658303499222,
0.003561774268746376,
0.046545300632715225,
-0.023290593177080154,
0.014345785602927208,
-0.05440453067421913,
-0.00974329188466072,
-0.011627353727817535,
-0.024205710738897324,
0.02106560580432415,
0.04263363033533096,
-0.004407359287142754,
-0.03710704669356346,
-0.05698838829994202,
0.045181598514318466,
-0.03412843495607376,
0.026287149637937546,
0.014238124713301659,
0.03561774268746376,
-0.011896505020558834,
0.025802677497267723,
-0.002213772851973772,
-0.02555146813392639,
-0.02678956650197506,
-0.0512823723256588,
0.009518998675048351,
0.005831620190292597,
0.009841980412602425,
-0.024044219404459,
0.012793677859008312,
0.01642722636461258,
-0.017037302255630493,
-0.03743002936244011,
0.02163979783654213,
0.03832720220088959,
0.018589410930871964,
-0.06484761834144592,
0.0067018773406744,
0.005540039390325546,
-0.07163023948669434,
0.06814920902252197,
0.07302983105182648,
-0.010685322806239128,
0.009303676895797253,
0.029570801183581352,
-0.0056162988767027855,
0.0325494110584259,
-0.013412726111710072,
0.008657713420689106,
0.0060334838926792145,
-0.02025815099477768,
-0.05476339906454086,
-0.0512823723256588,
0.0700153261423111,
0.10012443363666534,
0.01959424465894699,
0.043674349784851074,
-0.07231209427118301,
-0.0009257697383873165,
-0.022519025951623917,
-0.006975514814257622,
0.06635486334562302,
0.01191444881260395,
0.04485861584544182,
-0.011995194479823112,
-0.014498305507004261,
-0.01889444887638092,
-0.019863395020365715,
0.01563771441578865,
0.00967151764780283,
-0.0393679216504097,
0.04970334842801094,
0.04647352918982506,
0.02347002923488617,
0.006845424883067608,
-0.010111132636666298,
-0.022824063897132874,
0.02163979783654213,
0.053292036056518555,
0.018122881650924683,
0.027561133727431297,
-0.04625820741057396,
-0.03265707194805145,
-0.03202905133366585,
-0.06158190965652466,
0.036586686968803406,
-0.00044662359869107604,
-0.019378922879695892,
0.06822098791599274,
-0.0074375588446855545,
0.0033823398407548666,
-0.04202355444431305,
-0.0574549175798893,
-0.016813009977340698,
-0.0419158935546875,
0.01168118417263031,
-0.01649002730846405,
-0.10364134609699249,
-0.03994211181998253,
0.015969667583703995,
0.037968333810567856,
-0.03549213707447052,
-0.014552135020494461,
0.052179545164108276,
0.083831787109375,
-0.000808576587587595,
-0.008424447849392891,
0.010263651609420776,
0.05591177940368652,
-0.03473851457238197,
-0.06168957054615021,
0.06499116122722626,
0.021891005337238312,
0.022716403007507324,
0.031060107052326202,
0.033733680844306946,
-0.019504526630043983,
0.0004945662803947926,
0.023631518706679344,
-0.005208085291087627,
0.005360604729503393,
-0.016436196863651276,
0.026646018028259277,
-0.0010726817417889833,
-0.024205710738897324,
-0.01813185214996338,
-0.04270540177822113,
0.009101813659071922,
0.05555291101336479,
-0.012165657244622707,
-0.009680490009486675,
0.02002488635480404,
-0.020545246079564095,
-0.00844687782227993,
0.010155990719795227,
-0.030073216184973717,
0.026951057836413383,
-0.011394089087843895,
0.006742250174283981,
0.00451053399592638,
0.03685583919286728,
0.07141491770744324,
-0.03678406774997711,
-0.057777900248765945,
-0.07486005872488022,
-0.017315426841378212,
0.000790633144788444,
0.04629409313201904,
0.06685728579759598,
0.015879951417446136,
0.053292036056518555,
-0.01936098001897335,
-0.005970682017505169,
-0.012668073177337646,
0.008487250655889511,
0.035545967519283295,
-0.03637136518955231,
-0.03265707194805145,
-0.05196422338485718,
-0.036479026079177856,
0.058208540081977844,
-0.03603044152259827,
0.04453563690185547,
-0.028817174956202507,
0.030988331884145737,
-0.06613954156637192,
0.013125631026923656,
0.002823849907144904,
0.05390211567282677,
-0.03559979796409607,
0.048949722200632095,
0.018122881650924683,
-0.057634349912405014,
0.04640175402164459,
0.0032073911279439926,
-0.05634242296218872,
-0.020868228748440742,
0.03012704662978649,
0.04715538024902344,
0.04615054652094841,
0.021926892921328545,
0.014525219798088074,
0.05164124071598053,
-0.018858563154935837,
0.010021415539085865,
0.013017971068620682,
0.014794372022151947,
-0.02336236834526062,
0.019325092434883118,
0.035653628408908844,
0.05235897749662399,
-0.04238242283463478,
0.07306571304798126,
-0.004719126503914595,
-0.04798077791929245,
-0.009039011783897877,
-0.005970682017505169,
0.05849563702940941,
0.022859951481223106,
-0.028368590399622917,
0.035653628408908844,
0.07464473694562912,
-0.01774606853723526,
0.0019378922879695892,
-0.03220848739147186,
-0.051605354994535446,
0.0034720569383352995,
-0.0001626124867470935,
0.04227476194500923,
0.026125658303499222,
-0.045971110463142395,
-0.01111596543341875,
-0.028422418981790543,
-0.10579456388950348,
-0.010434114374220371,
-0.0029808550607413054,
-0.014516248367726803,
0.013807482086122036,
-0.014390644617378712,
0.000317655096296221,
0.0058450778014957905,
0.0018358388915657997,
0.026969000697135925,
0.01718982122838497,
0.0006554965511895716,
-0.007984833791851997,
0.0075048464350402355,
0.03821954131126404,
0.022752290591597557,
-0.01653488539159298,
0.01431887038052082,
-0.026699848473072052,
-0.01991722546517849,
-0.03800421953201294,
-0.0047415560111403465,
-0.0957462340593338,
-0.05756257846951485,
0.09696638584136963,
-0.05056463181972504,
-0.0014208967331796885,
-0.028835119679570198,
0.02817121148109436,
0.022859951481223106,
-0.018715014681220055,
0.07116371393203735,
0.04083928465843201,
0.02461840957403183,
0.00889546424150467,
-0.02061702124774456,
0.01780887134373188,
-0.028942780569195747,
0.009572829119861126,
-0.05174890160560608,
-0.027291983366012573,
-0.011546608060598373,
-0.006517956964671612,
-0.056952498853206635,
0.02278817817568779,
0.023882728070020676,
0.029588744044303894,
-0.025910336524248123,
-0.01876884512603283,
-0.022465195506811142,
0.0014388401759788394,
0.04955980181694031,
0.0044567035511136055,
-0.02393655851483345,
0.009074898436665535,
-0.042884837836027145,
-0.009119756519794464,
0.048734400421381,
-0.07216854393482208,
-0.047011829912662506,
0.056629519909620285,
-0.027345813810825348,
0.03685583919286728,
-0.06649841368198395,
-0.03421815484762192,
-0.08799466490745544,
-0.04141347482800484,
0.03538447618484497,
0.016220875084400177,
0.03045002929866314,
-0.02129887230694294,
-0.03220848739147186,
-0.012730875983834267,
-0.04589933529496193,
0.01855352334678173,
0.050421085208654404,
0.08526726067066193,
-0.048375532031059265,
-0.025623241439461708,
-0.01076606847345829,
-0.0033756110351532698,
-0.015198099426925182,
-0.03202905133366585,
-0.013888227753341198,
-0.07263506948947906,
-0.01058663334697485,
0.01923537440598011,
0.016463112086057663,
-0.07651085406541824,
0.04930859059095383,
-0.0834011435508728,
-0.022608743980526924,
-0.014291955158114433,
-0.019666017964482307,
0.05612710118293762,
0.014444475062191486,
0.032585300505161285,
0.01934303529560566,
0.005279859062284231,
-0.030665351077914238,
-0.04399733245372772,
-0.05688072741031647,
0.028422418981790543,
0.04284895211458206,
-0.038542523980140686,
0.030144991353154182,
-0.044463861733675,
-0.021227097138762474,
-0.0006897012353874743,
-0.029857896268367767,
0.029265761375427246,
-0.005226029083132744,
0.025138769298791885,
-0.03721470758318901,
-0.021837174892425537,
0.03689172863960266,
0.0011444555129855871,
-0.01746794581413269,
0.03364396467804909,
-0.050313424319028854,
-0.018463807180523872,
0.008204640820622444,
0.05555291101336479,
0.007643908262252808,
-0.03592278063297272,
-0.02748936042189598,
0.015862006694078445,
0.0021016262471675873,
0.005643214099109173,
0.07823342829942703,
0.022483138367533684,
0.04076750949025154,
0.029965557157993317,
-0.008913407102227211,
0.003821954131126404,
0.03651491552591324,
0.01608630083501339,
0.031239541247487068,
0.05189244821667671,
0.03242380917072296,
0.07486005872488022,
0.02300349809229374,
0.05784967169165611,
0.057670239359140396,
-0.03753769025206566,
-0.014498305507004261,
0.004624923225492239,
0.019540414214134216,
0.054691627621650696,
0.00011431938037276268,
0.052502524107694626,
-0.02393655851483345,
-0.033626019954681396,
0.03427198529243469,
-0.03402077406644821,
-0.021262984722852707,
-0.037035275250673294,
0.03743002936244011,
0.005418920889496803,
0.018185682594776154,
-0.03342864289879799,
0.026430698111653328,
-0.031436920166015625,
0.038291316479444504,
0.04923681914806366,
0.02142447605729103,
0.007123548537492752,
0.03290828317403793,
0.00819118320941925,
-0.04209532588720322,
0.03549213707447052,
0.03515121340751648,
-0.0013154789339751005,
0.04026509448885918,
0.012919281609356403,
-0.0344693623483181,
0.04098283126950264,
0.0006190488929860294,
0.04923681914806366,
-0.00475501362234354,
-0.00010962324449792504,
-0.02025815099477768,
0.12330736964941025,
-0.0030144990887492895,
-0.015036608092486858,
0.009088356047868729,
0.005342661403119564,
0.06847219169139862,
-0.03249558061361313,
-0.02391861379146576,
0.033733680844306946,
-0.0016496756579726934,
-0.04475095495581627,
-0.07428587228059769,
-0.02919398806989193,
-0.08045841753482819,
0.0846930667757988,
0.031993165612220764,
0.03972679004073143,
0.004804357886314392,
-0.022842008620500565,
-0.025031108409166336,
-0.05049286037683487,
0.03527681529521942,
-0.031777843832969666,
0.028996611014008522,
-0.056737180799245834,
-0.06549358367919922,
-0.06179723143577576,
-0.007092147599905729,
-0.0035595311783254147,
0.031185710802674294,
0.020419642329216003,
0.024295426905155182,
-0.08110438287258148,
0.014937919564545155,
-0.02108355052769184,
0.0028619798831641674,
0.02919398806989193,
-0.0423465333878994,
0.06456052511930466,
-0.03836308792233467,
0.014964834786951542,
0.027902059257030487,
0.021209154278039932,
-0.0455404669046402,
-0.0022104084491729736,
-0.03608427196741104,
0.01443550270050764,
0.007778484374284744,
0.03538447618484497,
-0.0017270568059757352,
0.018311288207769394,
0.009303676895797253,
0.0078726876527071,
-0.028781289234757423,
-0.025605298578739166,
-0.06312504410743713,
-0.007132519967854023,
0.007670823484659195,
0.0021543351467698812,
-0.002583856461569667,
0.0007592320907860994,
-0.00778297008946538,
-0.008460335433483124,
0.055804118514060974,
-0.05874684453010559,
0.008343703113496304,
0.008043150417506695,
0.010837841778993607,
0.005279859062284231,
0.0015857521211728454,
-0.008419962599873543,
-0.05906982719898224,
0.049523912370204926,
-0.06592422723770142,
0.008774345740675926,
-0.030360311269760132,
0.0017898587975651026,
-0.0197916217148304,
0.005082481540739536,
-0.03559979796409607,
-0.04833964630961418,
-0.09646397083997726,
0.0224472526460886,
0.004571093246340752,
-0.014363729394972324,
0.07238386571407318,
-0.09983734041452408,
0.0025793705135583878,
-0.09466962516307831,
-0.018966224044561386,
-0.009047983214259148,
0.008626312017440796,
0.01556594017893076,
-0.01980956457555294,
0.04101872071623802,
-0.025246430188417435,
-0.009617687202990055,
0.06990767270326614,
0.01891239359974861,
0.0028687084559351206,
0.04579167813062668,
0.00029887052369304,
-0.0011741742491722107,
0.019648075103759766,
-0.00435577193275094,
0.0007401671609841287,
0.01667843386530876,
-0.00664356118068099,
0.0007457745377905667,
0.0015442578587681055,
0.02357769012451172,
0.016947586089372635,
0.008572481572628021,
-0.04640175402164459,
-0.020796455442905426,
0.045504581183195114,
-0.03055769018828869,
0.014211209490895271,
-0.017826814204454422,
-0.0625508576631546,
-0.03296211361885071,
-0.028368590399622917,
-0.03725059702992439,
-0.03427198529243469,
-0.01980956457555294,
-0.01653488539159298,
-0.01076606847345829,
-0.0019266776507720351,
-0.009922726079821587,
0.0020197592675685883,
0.001324450713582337,
0.04564812779426575,
-0.00500622158870101,
-0.05774201080203056,
0.016902726143598557,
-0.0034361700527369976,
0.0005512002389878035,
-0.05024165287613869,
0.031993165612220764,
0.09036319702863693,
0.02817121148109436,
0.04159291088581085,
-0.010452058166265488,
0.0448945052921772,
-0.007338869851082563,
-0.007181864697486162,
0.024295426905155182,
-0.010900643654167652,
0.004732584115117788,
0.025605298578739166,
-0.026538357138633728,
-0.02506699599325657,
-0.04180823266506195,
0.02140653133392334,
0.02908632718026638,
0.04912915825843811,
-0.06954880058765411,
0.013645991683006287,
0.06122304126620293,
-0.047801341861486435,
0.0035483166575431824,
0.00022779766004532576,
0.042418308556079865,
0.010532802902162075,
-0.018697071820497513,
-0.009411337785422802,
0.04044453054666519,
-0.06987178325653076,
0.010021415539085865,
0.03882961720228195,
-0.02268051728606224,
-0.005400977563112974,
0.02074262499809265,
-0.07066129148006439,
-0.01718982122838497,
-0.0022889110259711742,
0.007195322308689356,
0.07378345727920532,
-0.007051774766296148,
0.04672473669052124,
-0.011259512975811958,
-0.010873728431761265,
-0.02325470745563507,
0.026412753388285637,
-0.049523912370204926,
0.028691571205854416,
0.06158190965652466,
0.004602494183927774,
0.02142447605729103,
-0.054906945675611496,
-0.0034294412471354008,
-0.0035124297719448805,
-0.013484500348567963,
0.046760622411966324,
-0.008666684851050377,
-0.004205495584756136,
0.04496627673506737,
0.026305092498660088,
0.03457702323794365,
-0.027453472837805748,
0.05131825804710388,
0.032441750168800354,
-0.02311115898191929,
0.005248458124697208,
-0.0034742997959256172,
-0.044140879064798355,
-0.08921481668949127,
0.00441408809274435,
-0.01670534908771515,
-0.014381672255694866,
-0.046437639743089676,
0.012865451164543629,
0.005167712923139334,
0.04022920876741409
]
|
30,067 | networkx.classes.graph | __getitem__ | Returns a dict of neighbors of node n. Use: 'G[n]'.
Parameters
----------
n : node
A node in the graph.
Returns
-------
adj_dict : dictionary
The adjacency dictionary for nodes connected to n.
Notes
-----
G[n] is the same as G.adj[n] and similar to G.neighbors(n)
(which is an iterator over G.adj[n])
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G[0]
AtlasView({1: {}})
| def __getitem__(self, n):
"""Returns a dict of neighbors of node n. Use: 'G[n]'.
Parameters
----------
n : node
A node in the graph.
Returns
-------
adj_dict : dictionary
The adjacency dictionary for nodes connected to n.
Notes
-----
G[n] is the same as G.adj[n] and similar to G.neighbors(n)
(which is an iterator over G.adj[n])
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G[0]
AtlasView({1: {}})
"""
return self.adj[n]
| (self, n) | [
0.013408537954092026,
-0.04702072590589523,
-0.04807451367378235,
-0.01720580644905567,
-0.011210119351744652,
0.025690613314509392,
-0.014425987377762794,
-0.00012838776456192136,
0.05770394951105118,
-0.05439724028110504,
-0.032031506299972534,
0.0004871496057603508,
0.034030068665742874,
0.03006928227841854,
-0.009502256289124489,
-0.005750409327447414,
-0.0016772027593106031,
0.028561275452375412,
-0.03646468371152878,
0.027925368398427963,
-0.030741525813937187,
-0.054615262895822525,
0.04716607555747032,
-0.002359666395932436,
-0.03895379975438118,
0.015025556087493896,
0.054506249725818634,
-0.001305878977291286,
0.0449494868516922,
0.00981112476438284,
-0.08575650304555893,
-0.0674787387251854,
-0.00645899074152112,
0.03753663972020149,
0.021566307172179222,
0.013281356543302536,
-0.010029150173068047,
0.0061910017393529415,
-0.061483051627874374,
0.034502457827329636,
0.01896817609667778,
-0.04258755221962929,
0.014771194197237492,
-0.047747474163770676,
0.046984389424324036,
0.007794393692165613,
0.035011183470487595,
0.004380939994007349,
-0.007312921807169914,
-0.06101066246628761,
0.0016953714657574892,
-0.033775705844163895,
0.020040132105350494,
-0.02332867495715618,
-0.027144113555550575,
-0.0026935171335935593,
0.020003793761134148,
0.03728227689862251,
0.016179272904992104,
0.048256199806928635,
-0.028288744390010834,
-0.03470231220126152,
0.01721489056944847,
-0.013263187371194363,
-0.008384878747165203,
-0.01123737171292305,
-0.039753224700689316,
-0.04204249009490013,
-0.02609032578766346,
-0.023746557533740997,
0.06729704886674881,
0.000013511234101315495,
0.01596124656498432,
-0.029288025572896004,
0.012527353130280972,
0.004626218229532242,
0.008457553572952747,
0.043895699083805084,
0.04571257531642914,
0.016687996685504913,
-0.028179731220006943,
-0.022801781073212624,
-0.03735494986176491,
-0.05130854994058609,
-0.006318183150142431,
0.0006313640624284744,
0.0424785390496254,
-0.012899812310934067,
-0.022038694471120834,
0.011537156067788601,
-0.02819790132343769,
0.005146298557519913,
-0.021675318479537964,
0.017378410324454308,
-0.01998562552034855,
-0.02759833261370659,
0.045131176710128784,
-0.06279119849205017,
0.035901449620723724,
0.0051690093241631985,
-0.031032225117087364,
0.01148265041410923,
-0.06657030433416367,
0.03671904280781746,
-0.05105418711900711,
-0.08699197322130203,
-0.027761850506067276,
0.012945234775543213,
-0.02910633757710457,
-0.02819790132343769,
-0.05396118760108948,
0.03906281292438507,
-0.02507287636399269,
0.024037256836891174,
0.03328515216708183,
0.038881126791238785,
0.013590225018560886,
-0.02147546224296093,
0.008875434286892414,
0.00823498610407114,
-0.03604679927229881,
0.04342331364750862,
-0.043750349432229996,
0.039389852434396744,
-0.000771036371588707,
0.0064726173877716064,
-0.006122868973761797,
0.008175937458872795,
0.01845945045351982,
-0.05265303701162338,
0.0662069246172905,
-0.036028631031513214,
-0.036392007023096085,
0.08553847670555115,
0.039389852434396744,
0.024491475895047188,
0.002257467247545719,
-0.011755181476473808,
-0.011637084186077118,
0.060610949993133545,
0.009320569224655628,
-0.04880126193165779,
0.0030455368105322123,
0.017178554087877274,
-0.007331090979278088,
-0.04404105246067047,
-0.007163029629737139,
0.002168894512578845,
-0.01322684995830059,
-0.04927365109324455,
0.0020905418787151575,
0.028633950278162956,
0.055741727352142334,
0.0015943078324198723,
-0.038990139961242676,
-0.008289492689073086,
-0.024000918492674828,
-0.027253124862909317,
0.004160644020885229,
-0.019040850922465324,
-0.02897915616631508,
0.006854161154478788,
-0.010501537472009659,
-0.03132292628288269,
-0.016769757494330406,
0.024891188368201256,
0.020512519404292107,
-0.06726071238517761,
0.011082937940955162,
0.01205496583133936,
-0.05319810286164284,
-0.05294374004006386,
-0.07042207568883896,
-0.009120712988078594,
-0.006486244034022093,
0.05069081485271454,
-0.002348311012610793,
0.04047997668385506,
0.033775705844163895,
0.011119275353848934,
0.027362138032913208,
-0.023492194712162018,
-0.044259075075387955,
-0.04589426517486572,
0.002657179720699787,
0.028924651443958282,
0.042369525879621506,
0.01160983182489872,
0.03768198937177658,
0.06915026158094406,
0.03323064371943474,
-0.006300013978034258,
0.01786896586418152,
0.009847463108599186,
0.015279918909072876,
-0.04044363647699356,
-0.017796291038393974,
0.041388414800167084,
-0.04702072590589523,
0.10879448056221008,
0.054251886904239655,
-0.007599079981446266,
-0.01597941666841507,
0.058467037975788116,
-0.01772361621260643,
0.03731861338019371,
0.0029864883981645107,
-0.04658467695116997,
-0.022529250010848045,
0.015107315964996815,
-0.0611923523247242,
-0.012718125246465206,
0.06475342810153961,
0.0023187866900116205,
-0.004321891348809004,
-0.01911352574825287,
-0.01646997220814228,
0.038881126791238785,
0.007212993688881397,
-0.017069540917873383,
0.04418640211224556,
-0.04033462703227997,
0.012527353130280972,
-0.012718125246465206,
-0.009756619110703468,
-0.06355428695678711,
-0.030487162992358208,
-0.010519706644117832,
-0.006109242327511311,
-0.0474567748606205,
0.05952082574367523,
0.03935351222753525,
0.03728227689862251,
-0.001704455935396254,
0.0711851641535759,
0.028434094041585922,
-0.04095236212015152,
0.006636136211454868,
0.03519286960363388,
0.020948568359017372,
-0.011864193715155125,
0.01435331255197525,
-0.017260313034057617,
0.014780278317630291,
-0.015252665616571903,
0.015452521853148937,
0.030796032398939133,
0.048365212976932526,
0.008939024992287159,
0.0025368118658661842,
-0.042369525879621506,
-0.03235854580998421,
-0.008752795867621899,
0.006177375093102455,
-0.004301451612263918,
-0.019931118935346603,
-0.09033502638339996,
-0.004174270201474428,
-0.011773350648581982,
-0.005082707852125168,
-0.013871841132640839,
0.012572775594890118,
-0.005664107855409384,
0.007476440630853176,
0.03481132537126541,
0.06475342810153961,
0.03484766185283661,
0.0281070563942194,
-0.048728588968515396,
0.008870892226696014,
0.07718085497617722,
0.05188995227217674,
0.012709041126072407,
-0.027125943452119827,
0.03386655077338219,
-0.0212392695248127,
0.033630356192588806,
0.03083236888051033,
0.0046125915832817554,
0.012581859715282917,
-0.02632651850581169,
-0.011855109594762325,
-0.08786407858133316,
0.014961966313421726,
-0.022692769765853882,
0.0003230630827601999,
0.00966577511280775,
0.04978237673640251,
0.040261950343847275,
-0.01161891594529152,
0.07747155427932739,
-0.025908637791872025,
0.0025163718964904547,
0.014253384433686733,
0.02470950037240982,
0.011555325239896774,
-0.04516751319169998,
0.058503374457359314,
0.013453959487378597,
0.08997165411710739,
0.06697001308202744,
-0.04385936260223389,
-0.05875773727893829,
-0.009170676581561565,
0.01192778442054987,
0.034774988889694214,
0.0549423024058342,
0.0848117247223854,
0.005282564088702202,
0.012600027956068516,
-0.036755383014678955,
-0.04952801391482353,
0.01809607446193695,
0.052980076521635056,
-0.0212211012840271,
-0.10966657847166061,
-0.07790759950876236,
0.00028601588564924896,
0.0018475347897037864,
0.07285668700933456,
-0.04458611458539963,
0.06206445023417473,
-0.03797268867492676,
0.012772631831467152,
-0.024164438247680664,
0.008530228398740292,
0.046257637441158295,
0.04643932729959488,
0.0274711512029171,
0.023782894015312195,
0.007467356510460377,
-0.051344890147447586,
-0.04643932729959488,
0.0124819315969944,
-0.06893223524093628,
0.033648524433374405,
0.03680988773703575,
0.05454258993268013,
-0.03192249312996864,
0.0016397297149524093,
-0.008471179753541946,
0.013880925253033638,
-0.03884478658437729,
0.00805329903960228,
0.05407020077109337,
-0.021675318479537964,
-0.015307172201573849,
-0.030741525813937187,
-0.04378668963909149,
-0.014589506201446056,
-0.02708960697054863,
0.05058180168271065,
-0.011419059708714485,
0.0024028171319514513,
-0.009874715469777584,
0.001841857098042965,
0.05294374004006386,
-0.06217346340417862,
-0.015697799623012543,
0.014952881261706352,
0.0061728330329060555,
0.03924449905753136,
-0.005627770442515612,
-0.020185481756925583,
-0.015788644552230835,
-0.01786896586418152,
-0.017814459279179573,
0.05388851463794708,
0.05301641300320625,
-0.043895699083805084,
-0.017378410324454308,
-0.03553807735443115,
-0.09055305272340775,
0.052507687360048294,
0.0187319815158844,
-0.03597412630915642,
0.02272910624742508,
0.032413050532341,
-0.0016226965235546231,
-0.023619376122951508,
0.0005379653302952647,
-0.006136495620012283,
0.026780737563967705,
0.04607595130801201,
-0.00355653278529644,
-0.04164277762174606,
0.08553847670555115,
0.016279200091958046,
0.01898634433746338,
-0.010819490998983383,
-0.07681747525930405,
-0.01684243232011795,
-0.009188845753669739,
0.042260512709617615,
-0.048001836985349655,
-0.04571257531642914,
0.10835842788219452,
-0.06442639231681824,
-0.03134109452366829,
-0.053234439343214035,
0.025890469551086426,
-0.0030773321632295847,
-0.011818772181868553,
0.04109771177172661,
0.032758258283138275,
-0.015625124797225,
0.00511904526501894,
0.03917182609438896,
0.04193347692489624,
-0.048510562628507614,
-0.02309248223900795,
-0.00007821078906999901,
-0.01574322208762169,
-0.010029150173068047,
0.04229684919118881,
-0.010973924770951271,
0.01191870030015707,
0.047129739075899124,
0.023365013301372528,
0.0218388382345438,
0.005950265564024448,
-0.061119675636291504,
0.02082138881087303,
0.02033083140850067,
0.010565128177404404,
-0.06042926385998726,
-0.009756619110703468,
-0.0030909585766494274,
-0.015416184440255165,
0.04702072590589523,
-0.029923932626843452,
-0.05588707700371742,
0.05577806383371353,
-0.038118038326501846,
-0.001569325802847743,
-0.0536341518163681,
0.007562742568552494,
-0.030650682747364044,
0.016297368332743645,
0.04404105246067047,
0.03094138205051422,
0.04164277762174606,
0.02109391987323761,
-0.046366650611162186,
-0.012318412773311138,
-0.034902170300483704,
0.020276324823498726,
-0.021075749769806862,
0.0898989737033844,
-0.06816915422677994,
-0.000544494716450572,
-0.038990139961242676,
0.056468475610017776,
-0.004038004670292139,
-0.012590943835675716,
-0.0023199222050607204,
-0.060974325984716415,
-0.020149143412709236,
0.01023809053003788,
0.025617938488721848,
-0.033648524433374405,
0.019694926217198372,
-0.05377950146794319,
-0.036373838782310486,
-0.0424785390496254,
-0.021675318479537964,
0.02781635709106922,
0.0034543336369097233,
-0.04792916402220726,
-0.034284431487321854,
0.006740606389939785,
0.002222265349701047,
-0.06638861447572708,
-0.09949208050966263,
0.018132412806153297,
0.017260313034057617,
-0.032249532639980316,
0.019077187404036522,
-0.0014001292875036597,
-0.05141756311058998,
-0.005850337445735931,
-0.04040729999542236,
0.04385936260223389,
-0.0016397297149524093,
0.0035588040482252836,
0.02447330765426159,
-0.026435531675815582,
0.045494552701711655,
-0.05058180168271065,
-0.006209170445799828,
0.02821606956422329,
-0.021947849541902542,
-0.0074083078652620316,
-0.00019190742750652134,
0.04920097440481186,
0.0787070244550705,
0.013989937491714954,
-0.00026174355298280716,
0.027271294966340065,
-0.006086531560868025,
-0.01136455312371254,
-0.0034793156664818525,
0.01798706315457821,
0.01010182499885559,
-0.027162281796336174,
-0.005496046971529722,
-0.018641138449311256,
0.06024757772684097,
0.046366650611162186,
0.010546959936618805,
0.028434094041585922,
0.019440563395619392,
0.05755859985947609,
0.024873020127415657,
0.010592381469905376,
0.0336848646402359,
-0.08408498018980026,
0.011737012304365635,
-0.024037256836891174,
0.026780737563967705,
0.07205726206302643,
0.02394641377031803,
0.06217346340417862,
0.015025556087493896,
-0.05079982429742813,
0.04084334895014763,
0.019785769283771515,
-0.02472766861319542,
-0.024019088596105576,
0.05079982429742813,
-0.011755181476473808,
0.03631933033466339,
-0.005541468970477581,
0.04782015085220337,
-0.016061175614595413,
0.021039413288235664,
0.07332907617092133,
0.027889031916856766,
-0.030886875465512276,
0.06206445023417473,
0.037500299513339996,
-0.06181008741259575,
-0.005541468970477581,
-0.04320528730750084,
0.03753663972020149,
0.019949287176132202,
-0.002138234907761216,
-0.05214431509375572,
0.02945154346525669,
-0.0486559122800827,
0.016033921390771866,
-0.009820209816098213,
0.015370762906968594,
-0.03383021429181099,
0.07209359854459763,
0.027689175680279732,
-0.028052549809217453,
-0.06257317960262299,
0.021493632346391678,
0.033648524433374405,
-0.01984027586877346,
-0.026017650961875916,
-0.0018305015983060002,
0.010201753117144108,
-0.039498861879110336,
0.007054017391055822,
0.01736024022102356,
-0.0014648555079475045,
0.00793520174920559,
-0.010873996652662754,
0.01696961373090744,
-0.014080781489610672,
0.01835952140390873,
0.018168751150369644,
-0.04680269956588745,
0.001024831086397171,
-0.03441161289811134,
-0.03392105549573898,
0.013808250427246094,
-0.041497424244880676,
-0.031777143478393555,
0.02258375659584999,
0.04454977437853813,
0.0673697292804718,
0.006054736208170652,
0.08568383008241653,
-0.054615262895822525,
0.03597412630915642,
0.004819260910153389,
-0.020567025989294052,
0.015025556087493896,
-0.09033502638339996,
0.04269656166434288,
0.003813166404142976,
0.026163000613451004,
0.00645899074152112,
-0.0648987740278244,
-0.0048873936757445335,
-0.0026639930438250303,
-0.04952801391482353,
-0.004524018615484238,
0.00849389098584652,
0.020567025989294052,
0.004437717143446207,
0.0013978582574054599,
0.031540948897600174,
0.022311225533485413,
-0.004644386935979128,
-0.011319131590425968,
-0.07972447574138641,
-0.04654833674430847,
-0.024255281314253807,
-0.006481701508164406,
-0.030995888635516167,
-0.04818352684378624,
-0.03183165192604065,
0.005541468970477581,
0.09404145181179047,
-0.07761690020561218,
0.024073593318462372,
-0.0017714531859382987,
-0.02520005591213703,
-0.011900531128048897,
0.02596314437687397,
-0.0003622394578997046,
-0.04484047740697861,
0.0536341518163681,
-0.036755383014678955,
0.0014205691404640675,
0.032158687710762024,
-0.007603622041642666,
0.0162337776273489,
0.0012843034928664565,
0.0015386660816147923,
-0.03986223787069321,
-0.05683185160160065,
0.055741727352142334,
-0.0024096304550766945,
-0.012881644070148468,
0.07594537734985352,
-0.08030587434768677,
0.06293655186891556,
-0.04404105246067047,
-0.021875174716114998,
-0.001023695571348071,
0.0010515163885429502,
0.030650682747364044,
-0.0193315502256155,
0.046003274619579315,
-0.03441161289811134,
0.013544803485274315,
0.013635647483170033,
-0.013072416186332703,
-0.0035065687261521816,
-0.006568003445863724,
0.022438406944274902,
0.007181198801845312,
-0.0018032484222203493,
-0.029360700398683548,
0.005223515909165144,
-0.020076468586921692,
0.020167313516139984,
-0.045240189880132675,
-0.0823407769203186,
0.07151219993829727,
0.02683524414896965,
-0.05530567467212677,
-0.018895501270890236,
0.017523759976029396,
-0.005396118853241205,
0.008148684166371822,
0.009129797108471394,
0.001225255080498755,
0.014980134554207325,
-0.02972407639026642,
-0.03274008631706238,
0.021638981997966766,
0.021420957520604134,
-0.019004512578248978,
-0.024927524849772453,
0.02583596296608448,
0.04778381437063217,
0.000635338481515646,
0.02623567543923855,
-0.010401609353721142,
0.013635647483170033,
-0.0028865602798759937,
-0.02981491945683956,
-0.0018884144956246018,
0.018404943868517876,
0.008448468521237373,
-0.03455696254968643,
0.05305274948477745,
0.046512000262737274,
0.008148684166371822,
-0.0013365386985242367,
-0.00001704207534203306,
-0.008298576809465885,
0.00967485923320055,
-0.05054546520113945,
0.004801092203706503,
0.009992812760174274,
0.0020042401738464832,
0.01809607446193695,
-0.001234339433722198,
-0.0411703884601593,
-0.030505331233143806,
-0.016397297382354736,
-0.037900011986494064,
0.04109771177172661,
-0.05029110237956047,
-0.014535000547766685,
0.025381743907928467,
-0.012509184889495373,
0.028306912630796432,
0.0424785390496254,
0.024673163890838623,
-0.013971769250929356,
-0.06569819897413254,
0.03481132537126541,
0.002757107838988304,
-0.05305274948477745,
0.05178093910217285,
0.08662860095500946,
-0.03568342700600624,
0.01505280937999487,
0.0022790427319705486,
-0.06649762392044067,
-0.07042207568883896,
0.004601235967129469,
-0.021384619176387787,
-0.021439125761389732,
0.007058559451252222,
0.009084375575184822,
-0.029633231461048126,
0.00701767997816205,
0.0193315502256155,
0.012000459246337414,
0.001025398843921721,
0.05955716222524643,
0.005255311261862516,
0.03357585147023201,
-0.03432076796889305,
0.01416254136711359,
-0.002802529837936163,
-0.012036796659231186,
-0.017278481274843216,
0.044259075075387955,
-0.008748252876102924,
-0.010774068534374237,
0.06773310154676437,
0.07594537734985352,
0.05843070149421692,
-0.011782434768974781,
0.03521103784441948,
-0.04560356214642525,
0.01747833751142025,
-0.04153376445174217,
0.023528531193733215,
-0.016161102801561356,
-0.09346005320549011,
0.020258156582713127,
-0.048110850155353546,
0.01808699034154415,
-0.10130894929170609,
0.0012956589926034212,
0.03553807735443115,
0.012400171719491482
]
|
30,068 | networkx.classes.digraph | __init__ | Initialize a graph with edges, name, or graph attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be an edge list, or any
NetworkX graph object. If the corresponding optional Python
packages are installed the data can also be a 2D NumPy array, a
SciPy sparse array, or a PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
convert
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G = nx.Graph(name="my graph")
>>> e = [(1, 2), (2, 3), (3, 4)] # list of edges
>>> G = nx.Graph(e)
Arbitrary graph attribute pairs (key=value) may be assigned
>>> G = nx.Graph(e, day="Friday")
>>> G.graph
{'day': 'Friday'}
| def __init__(self, incoming_graph_data=None, **attr):
"""Initialize a graph with edges, name, or graph attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be an edge list, or any
NetworkX graph object. If the corresponding optional Python
packages are installed the data can also be a 2D NumPy array, a
SciPy sparse array, or a PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
convert
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G = nx.Graph(name="my graph")
>>> e = [(1, 2), (2, 3), (3, 4)] # list of edges
>>> G = nx.Graph(e)
Arbitrary graph attribute pairs (key=value) may be assigned
>>> G = nx.Graph(e, day="Friday")
>>> G.graph
{'day': 'Friday'}
"""
self.graph = self.graph_attr_dict_factory() # dictionary for graph attributes
self._node = self.node_dict_factory() # dictionary for node attr
# We store two adjacency lists:
# the predecessors of node n are stored in the dict self._pred
# the successors of node n are stored in the dict self._succ=self._adj
self._adj = self.adjlist_outer_dict_factory() # empty adjacency dict successor
self._pred = self.adjlist_outer_dict_factory() # predecessor
# Note: self._succ = self._adj # successor
self.__networkx_cache__ = {}
# attempt to load graph with data
if incoming_graph_data is not None:
convert.to_networkx_graph(incoming_graph_data, create_using=self)
# load graph attributes (must be after convert)
self.graph.update(attr)
| (self, incoming_graph_data=None, **attr) | [
0.025889558717608452,
0.031147129833698273,
-0.0002935913216788322,
-0.0042244791984558105,
-0.019476914778351784,
-0.0008955546654760838,
-0.052018098533153534,
0.034293707460165024,
0.09200751036405563,
-0.04839355871081352,
0.003398004686459899,
0.05074353516101837,
0.01806294545531273,
0.05046472325921059,
-0.021966295316815376,
0.018670354038476944,
0.0012135730357840657,
0.018351715058088303,
-0.00625332398340106,
0.029095880687236786,
-0.028378939256072044,
-0.036564022302627563,
-0.015752801671624184,
0.040766097605228424,
0.0388343371450901,
0.010903486981987953,
-0.019407210871577263,
0.005894853267818689,
0.004742270335555077,
0.013362995348870754,
-0.026287859305739403,
-0.044729191809892654,
-0.043016497045755386,
0.003656900255009532,
0.0760754719376564,
0.02419677935540676,
-0.03843603655695915,
0.028876814991235733,
-0.12172075361013412,
-0.009892798960208893,
0.07675258070230484,
-0.05635957792401314,
-0.02047266624867916,
-0.008887088857591152,
0.04249870777130127,
0.032342031598091125,
0.012008772231638432,
0.033636510372161865,
-0.039232637733221054,
-0.08890075981616974,
-0.0017226514173671603,
-0.026009049266576767,
0.011381448246538639,
0.05197826772928238,
-0.04799525812268257,
0.07265008240938187,
0.00550650991499424,
0.08404149115085602,
0.003908327780663967,
0.022464171051979065,
-0.007662313524633646,
0.011212170124053955,
0.02033326029777527,
-0.03578733652830124,
-0.050066422671079636,
0.008817385882139206,
-0.06810945272445679,
-0.06329001486301422,
-0.03592674061655998,
0.0007629951578564942,
0.022065870463848114,
0.015663182362914085,
0.015673140063881874,
-0.007134565152227879,
0.05074353516101837,
0.016390081495046616,
-0.03066916950047016,
0.016320379450917244,
-0.0011283117346465588,
0.015115519054234028,
0.016868043690919876,
0.00009109577513299882,
-0.04437072202563286,
-0.05691719800233841,
0.049907103180885315,
-0.022802727296948433,
-0.004871718119829893,
0.03345727548003197,
-0.0020923244301229715,
-0.0374203696846962,
-0.06763149052858353,
0.006328005809336901,
0.00853857584297657,
0.03983008861541748,
0.03365642577409744,
-0.016220804303884506,
0.003818709868937731,
-0.07085773348808289,
0.08443979173898697,
0.003676815191283822,
-0.0368826650083065,
-0.006457453593611717,
-0.1034785732626915,
-0.01724642887711525,
-0.05317316949367523,
-0.07360600680112839,
-0.033477190881967545,
-0.0351102240383625,
-0.017784135416150093,
-0.047477468848228455,
-0.07762884348630905,
-0.017843879759311676,
0.04046737030148506,
0.017784135416150093,
0.03066916950047016,
0.01885954849421978,
-0.003975540865212679,
-0.02006440795958042,
0.04186142608523369,
-0.011640343815088272,
-0.03568775951862335,
0.06257307529449463,
-0.029036136344075203,
0.07472124695777893,
0.002038802718743682,
-0.01611127145588398,
0.05369096249341965,
-0.05357147008180618,
0.022723065689206123,
-0.05321300029754639,
0.05635957792401314,
-0.028518345206975937,
-0.03303905948996544,
0.05544348433613777,
0.02097054198384285,
-0.03293948620557785,
-0.03264075890183449,
0.02144850417971611,
-0.024834061041474342,
0.04644188657402992,
0.03694240748882294,
-0.05221724882721901,
0.019008910283446312,
0.023201027885079384,
-0.04409191012382507,
-0.004620290361344814,
-0.019476914778351784,
-0.035568270832300186,
-0.02955392748117447,
-0.031107300892472267,
0.021169692277908325,
-0.027960723266005516,
-0.002972320420667529,
0.024475591257214546,
0.004724844358861446,
-0.0008930652984417975,
-0.08722789585590363,
-0.018570778891444206,
-0.007373545318841934,
0.01659918949007988,
-0.06767132133245468,
-0.010256248526275158,
0.026427265256643295,
-0.037121646106243134,
-0.019855299964547157,
-0.0068756695836782455,
0.04289700835943222,
-0.08555503189563751,
-0.024734485894441605,
-0.0005053442437201738,
-0.034532688558101654,
-0.09917692840099335,
-0.05034523457288742,
-0.0021421120036393404,
-0.02355949766933918,
0.02258366160094738,
0.03973051533102989,
0.023758649826049805,
0.005026059690862894,
0.03967076912522316,
0.021388757973909378,
-0.02097054198384285,
-0.042060576379299164,
-0.0050185914151370525,
0.004961335565894842,
0.0027383186388760805,
0.013990319333970547,
0.017784135416150093,
0.0705789178609848,
0.008777556009590626,
0.04922999069094658,
0.002972320420667529,
0.0014986071037128568,
0.07742969691753387,
0.057673972100019455,
-0.04851305112242699,
0.021070117130875587,
0.02049258165061474,
-0.04437072202563286,
0.09113124758005142,
0.06265272945165634,
0.004879185929894447,
0.050544384866952896,
0.013263420201838017,
0.003004682483151555,
0.009887820109724998,
-0.023440008983016014,
0.013412782922387123,
-0.025272192433476448,
-0.012237795628607273,
-0.023778563365340233,
-0.028836986050009727,
0.06635692715644836,
0.021030288189649582,
-0.05086302384734154,
-0.01493628416210413,
-0.007268991321325302,
0.042140234261751175,
0.0047970362938940525,
-0.03945170342922211,
0.04102499410510063,
-0.014846665784716606,
-0.006781072821468115,
-0.05142064765095711,
0.011062807403504848,
-0.049190159887075424,
0.008339425548911095,
-0.011759834364056587,
0.009897777810692787,
0.003159024054184556,
0.03270050510764122,
-0.019885173067450523,
0.03238186240196228,
0.0025541046634316444,
0.04795542731881142,
-0.013412782922387123,
0.02186672016978264,
0.02979290671646595,
-0.02551117353141308,
-0.0009982415940612555,
-0.017993243411183357,
-0.0026462115347385406,
-0.04130380228161812,
-0.050982516258955,
0.03811739757657051,
-0.014767006039619446,
0.030131462961435318,
0.018720142543315887,
-0.05309351161122322,
-0.02144850417971611,
-0.05245622992515564,
-0.006138812750577927,
-0.009977437555789948,
-0.00781167671084404,
0.0022391979582607746,
-0.017953412607312202,
-0.06121885031461716,
-0.05165962874889374,
0.045525792986154556,
0.006337963044643402,
0.003831156762316823,
0.01796337030827999,
-0.02395780012011528,
0.07695173472166061,
0.07276957482099533,
-0.024654826149344444,
-0.009260496124625206,
0.02097054198384285,
-0.05480620265007019,
-0.0027607232332229614,
0.10961240530014038,
0.0029897461645305157,
0.06006377562880516,
0.02363915927708149,
0.017136896029114723,
-0.04644188657402992,
-0.03043018840253353,
-0.019058698788285255,
-0.013711508363485336,
0.01813264936208725,
-0.04460970312356949,
-0.009145984426140785,
-0.041741933673620224,
0.017853837460279465,
-0.004266798496246338,
-0.015922078862786293,
-0.007806697860360146,
-0.006741242948919535,
-0.01634029485285282,
-0.028458599001169205,
0.06922470033168793,
-0.006955329328775406,
-0.009569179266691208,
0.022225189954042435,
0.026686159893870354,
0.003502558683976531,
-0.00946960411965847,
0.0351102240383625,
0.021667569875717163,
0.042618196457624435,
0.08802449703216553,
-0.0454859621822834,
0.0626925602555275,
-0.017136896029114723,
-0.015135434456169605,
0.004869228694587946,
0.021667569875717163,
0.052814699709415436,
0.004558056127279997,
0.026407349854707718,
-0.007333715446293354,
0.037599604576826096,
0.018092818558216095,
0.04098516330122948,
-0.045844435691833496,
-0.005914768204092979,
0.008125338703393936,
-0.05874938517808914,
0.06536117941141129,
0.050544384866952896,
-0.029255202040076256,
0.048035088926553726,
-0.045366473495960236,
-0.006054173689335585,
-0.05424858257174492,
0.053053680807352066,
0.05237656831741333,
0.06759166717529297,
0.037758924067020416,
0.024973466992378235,
-0.002785617019981146,
0.012397116050124168,
-0.026009049266576767,
0.03214288130402565,
-0.068985715508461,
0.03560810163617134,
0.010226375423371792,
-0.0009067569044418633,
0.011122552677989006,
-0.052336737513542175,
0.011849451810121536,
0.02168748341500759,
-0.034214045852422714,
-0.017764220014214516,
-0.005581191275268793,
-0.05070370435714722,
0.0000768207319197245,
-0.03990975022315979,
-0.04445037990808487,
0.027582338079810143,
-0.050544384866952896,
0.06372814625501633,
-0.0335170216858387,
0.04297666624188423,
0.02590947411954403,
-0.011869367212057114,
-0.018092818558216095,
-0.047477468848228455,
0.003325812518596649,
0.015145392157137394,
0.013940531760454178,
0.04154278337955475,
0.0016467253444716334,
-0.017136896029114723,
0.006153748836368322,
-0.02322094328701496,
0.003863518824800849,
0.06380780786275864,
0.02817978896200657,
-0.05066387355327606,
0.013293292373418808,
-0.07165433466434479,
-0.06329001486301422,
0.005252593196928501,
-0.0009229378774762154,
0.02397771365940571,
0.000740590738132596,
0.02047266624867916,
0.006044216454029083,
-0.028558174148201942,
-0.036783087998628616,
0.005182890687137842,
0.009594072587788105,
0.050544384866952896,
0.026646330952644348,
-0.03939196094870567,
0.07145518064498901,
0.015732886269688606,
0.060501907020807266,
0.005252593196928501,
-0.059625644236803055,
-0.04516732320189476,
0.03618563711643219,
0.008787513710558414,
-0.0034129407722502947,
-0.04249870777130127,
0.10308027267456055,
0.002198123140260577,
-0.038157228380441666,
-0.054607052356004715,
-0.013442655093967915,
-0.050783365964889526,
0.018829675391316414,
0.06253324449062347,
0.04166227579116821,
0.011202213354408741,
0.05185877904295921,
0.03507039323449135,
0.04604358598589897,
0.04090550169348717,
0.07599581032991409,
-0.022603577002882957,
-0.03437336906790733,
-0.02810012921690941,
0.013143929652869701,
0.009051388129591942,
0.049588464200496674,
-0.02606879360973835,
0.06759166717529297,
-0.011909197084605694,
0.016778426244854927,
0.03787841647863388,
0.06567981839179993,
-0.0012882545124739408,
0.042379215359687805,
0.010803911834955215,
-0.02095062844455242,
-0.003768922295421362,
-0.04500800371170044,
0.04660120606422424,
-0.018421417102217674,
0.012297539971768856,
0.03793816268444061,
-0.031605176627635956,
0.023459922522306442,
-0.022882387042045593,
0.01847120374441147,
-0.025391682982444763,
-0.008807429112493992,
0.012775501236319542,
-0.01177974883466959,
-0.017594942823052406,
0.03895382955670357,
-0.04986727237701416,
-0.09814134240150452,
-0.009255517274141312,
-0.027383187785744667,
0.024913720786571503,
0.02186672016978264,
-0.014966156333684921,
0.0017189173959195614,
0.0006864467286504805,
0.04719865694642067,
-0.025232361629605293,
-0.0795406922698021,
0.010116842575371265,
0.02573023922741413,
-0.017843879759311676,
-0.014269130304455757,
0.05839091166853905,
0.004015371203422546,
-0.010141736827790737,
-0.04656137526035309,
-0.00874270498752594,
-0.04162244498729706,
0.005999407265335321,
0.07846527546644211,
0.010574889369308949,
-0.04592409357428551,
-0.014518068172037601,
0.03586699813604355,
0.010136757977306843,
-0.01885954849421978,
-0.047318145632743835,
-0.0032237479463219643,
-0.02266332134604454,
-0.02825944870710373,
-0.0378585010766983,
-0.03256109729409218,
-0.08045678585767746,
-0.004722354933619499,
-0.008448958396911621,
0.04879185929894447,
0.04365377873182297,
0.015404287725687027,
0.001205482636578381,
0.03951144963502884,
-0.04568511247634888,
-0.02355949766933918,
0.029434436932206154,
-0.045127492398023605,
-0.02105020359158516,
-0.014876538887619972,
0.022563746199011803,
0.055164676159620285,
0.05496552586555481,
-0.017624815925955772,
-0.020432837307453156,
-0.0017786624375730753,
-0.06109935790300369,
-0.02630777470767498,
-0.03949153423309326,
-0.031206876039505005,
-0.014946241863071918,
0.04429106041789055,
0.04130380228161812,
-0.05086302384734154,
0.02712429128587246,
0.036783087998628616,
-0.0038087524008005857,
0.020512497052550316,
-0.008249807171523571,
0.038077566772699356,
0.027383187785744667,
-0.0010175342904403806,
-0.01209838967770338,
-0.027164122089743614,
0.03264075890183449,
-0.0015608416870236397,
-0.02857808955013752,
0.05448756366968155,
0.044649530202150345,
0.023937884718179703,
0.0013218611711636186,
-0.054846033453941345,
0.03869493305683136,
0.018232224509119987,
-0.04596392437815666,
0.01603161171078682,
0.009897777810692787,
0.009126069024205208,
0.008244828321039677,
-0.02565057761967182,
0.07033994048833847,
0.02170739881694317,
0.020512497052550316,
0.07603564113378525,
0.034273792058229446,
-0.03345727548003197,
-0.029912397265434265,
0.03562801703810692,
0.017604900524020195,
-0.034214045852422714,
0.01657927595078945,
0.04056694731116295,
-0.02063198760151863,
0.014119766652584076,
0.014786921441555023,
0.01925784908235073,
-0.057116348296403885,
-0.04899100959300995,
-0.009524370543658733,
-0.03732079640030861,
-0.004826908931136131,
0.044968172907829285,
-0.01934746652841568,
-0.0024694656021893024,
-0.02670607529580593,
0.03658393770456314,
0.028378939256072044,
-0.05237656831741333,
0.000014168076631904114,
-0.030151378363370895,
-0.016728637740015984,
0.0049663144163787365,
-0.01024629082530737,
0.01060476154088974,
-0.02306162193417549,
-0.016041569411754608,
0.02662641555070877,
0.0270446315407753,
-0.005157996900379658,
0.0336962565779686,
0.016947703436017036,
-0.01813264936208725,
0.008264743722975254,
-0.019138358533382416,
0.02817978896200657,
0.0254912581294775,
-0.04612324386835098,
-0.005080826114863157,
0.012725713662803173,
-0.011690131388604641,
0.02266332134604454,
-0.013253462500870228,
0.017146853730082512,
-0.052018098533153534,
0.047796107828617096,
0.022484086453914642,
-0.03990975022315979,
-0.016330337151885033,
-0.04476902261376381,
0.021727314218878746,
0.03214288130402565,
-0.04397242143750191,
-0.010535058565437794,
0.03142594173550606,
-0.012805374339222908,
0.0002901684201788157,
-0.031545430421829224,
-0.06695438176393509,
0.028637835755944252,
0.018401501700282097,
0.03230220451951027,
0.013014482334256172,
0.0011451151221990585,
-0.02033326029777527,
0.013671678490936756,
-0.016001738607883453,
-0.03319837898015976,
0.024495504796504974,
0.042697858065366745,
-0.027900978922843933,
-0.01844133250415325,
0.010803911834955215,
-0.05165962874889374,
-0.06344933062791824,
0.03264075890183449,
-0.029514096677303314,
0.0152947548776865,
0.020452750846743584,
-0.06388746201992035,
-0.02696497179567814,
0.009116112254559994,
-0.052974019199609756,
0.027144206687808037,
0.028398854658007622,
-0.045525792986154556,
-0.033397529274225235,
-0.0030843426939100027,
0.050544384866952896,
-0.06779081374406815,
-0.005944640841335058,
-0.01935742422938347,
-0.008175126276910305,
-0.06647641956806183,
0.057275671511888504,
0.030489934608340263,
0.013811083510518074,
0.045605454593896866,
-0.04640205577015877,
-0.012566393241286278,
-0.03869493305683136,
-0.0368826650083065,
-0.017296217381954193,
-0.038814421743154526,
0.027622167021036148,
-0.06536117941141129,
0.04086567461490631,
-0.003913306165486574,
0.013651763089001179,
0.009818117134273052,
0.02702471613883972,
0.01060476154088974,
0.01771443337202072,
0.05197826772928238,
-0.03451277315616608,
-0.02688531018793583,
0.013392867520451546,
-0.02427644096314907,
-0.021309098228812218,
0.02720395103096962,
0.05034523457288742,
0.019058698788285255,
0.04648171737790108,
0.009494497440755367,
-0.010863657109439373,
-0.014119766652584076,
0.009424795396625996,
0.0047074188478291035,
-0.040786013007164,
0.01278545893728733,
0.036305125802755356,
0.003823688719421625,
-0.049588464200496674,
-0.016210846602916718,
0.00459539657458663,
0.011301788501441479,
0.02355949766933918,
-0.009997352957725525,
0.028060298413038254,
0.04417157173156738,
0.007393460720777512,
-0.04460970312356949,
-0.0254912581294775,
0.01877988688647747,
-0.014627601020038128,
-0.03640470281243324,
0.01534454245120287,
-0.014906411059200764,
-0.010903486981987953,
0.0032760249450802803,
0.04142329469323158,
-0.00785150658339262,
-0.022404426708817482,
-0.07312804460525513,
-0.06181630119681358,
-0.03481150045990944,
-0.0027383186388760805,
-0.054607052356004715,
0.05269521102309227,
0.019048741087317467,
-0.005461701191961765,
0.015683097764849663,
0.010226375423371792,
-0.007134565152227879,
-0.07814663648605347,
0.02435610070824623,
-0.003231215989217162,
0.011212170124053955,
-0.010485270991921425,
0.0013865850633010268,
0.022045955061912537,
-0.0024246566463261843,
0.04604358598589897,
0.038973744958639145,
0.029175540432333946,
-0.012596266344189644,
-0.09081260859966278,
-0.003427877090871334,
0.02831919491291046,
-0.017136896029114723,
0.027881063520908356,
0.044251229614019394,
-0.015882248058915138,
-0.02833910845220089,
0.0014898943481966853,
-0.09137022495269775,
0.033238209784030914,
-0.05396977439522743,
-0.023698903620243073,
0.061179019510746,
-0.005720596760511398,
0.04795542731881142,
-0.02308153733611107,
-0.031923819333314896,
0.002959873527288437,
0.029753077775239944,
0.03441319987177849,
0.09025498479604721,
-0.034771669656038284,
-0.009325220249593258,
-0.046999506652355194,
0.03612589091062546,
-0.015513820573687553,
-0.038973744958639145,
0.02055232599377632,
0.022125614807009697,
0.008887088857591152,
0.012685883790254593,
0.03538903594017029,
-0.009160920977592468,
-0.017126938328146935,
0.016937745735049248,
0.03787841647863388,
-0.03829663246870041,
0.005611063912510872,
-0.0020599626004695892,
-0.014786921441555023,
-0.10252265632152557,
-0.02363915927708149,
-0.021189607679843903,
0.026765821501612663,
-0.04249870777130127,
0.004692482762038708,
0.04321564733982086,
0.052814699709415436,
0.05795278027653694
]
|
30,069 | networkx.classes.graph | __iter__ | Iterate over the nodes. Use: 'for n in G'.
Returns
-------
niter : iterator
An iterator over all nodes in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> [n for n in G]
[0, 1, 2, 3]
>>> list(G)
[0, 1, 2, 3]
| def __iter__(self):
"""Iterate over the nodes. Use: 'for n in G'.
Returns
-------
niter : iterator
An iterator over all nodes in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> [n for n in G]
[0, 1, 2, 3]
>>> list(G)
[0, 1, 2, 3]
"""
return iter(self._node)
| (self) | [
0.008601549081504345,
-0.03599857911467552,
-0.04290486499667168,
-0.0011730401311069727,
-0.03315376117825508,
0.0348534919321537,
-0.04437200352549553,
0.008257129229605198,
0.12238085269927979,
0.013222141191363335,
0.011531352996826172,
-0.025048712268471718,
-0.005041053052991629,
0.07715003192424774,
-0.008632859215140343,
-0.004696633666753769,
-0.03521133214235306,
-0.010305755771696568,
-0.03692895919084549,
0.071925587952137,
-0.059937987476587296,
0.023062705993652344,
0.045481305569410324,
-0.03372630104422569,
-0.022812219336628914,
0.027911420911550522,
0.050276342779397964,
-0.01375889964401722,
0.0013228850439190865,
0.014787686057388783,
-0.028126124292612076,
-0.04079361632466316,
-0.01265854574739933,
-0.028555531054735184,
0.05864977091550827,
0.0482366606593132,
-0.07901079207658768,
0.03882550448179245,
-0.06480459868907928,
0.00232147891074419,
0.058685552328825,
-0.0037282323464751244,
-0.0133831687271595,
0.005090256221592426,
-0.0016527676489204168,
-0.01969902217388153,
0.048129308968782425,
-0.00011336219176882878,
0.0069689094088971615,
-0.07986960560083389,
0.0327601358294487,
-0.005049999337643385,
-0.008610494434833527,
-0.036517444998025894,
-0.041509293019771576,
0.033994682133197784,
0.01880442537367344,
0.0007212687050923705,
0.007161248009651899,
0.06358794122934341,
-0.014903983101248741,
-0.0641247034072876,
0.02107670158147812,
-0.029843751341104507,
0.013830467127263546,
-0.0208441074937582,
-0.06358794122934341,
-0.029378561303019524,
0.004121854901313782,
0.04022107273340225,
-0.01612958125770092,
0.021184053272008896,
0.03106040321290493,
0.01912648044526577,
-0.014877145178616047,
0.015923824161291122,
-0.07020796090364456,
0.09597235172986984,
0.03093515895307064,
-0.06244286149740219,
-0.013490520417690277,
0.045409735292196274,
-0.03857501596212387,
-0.02374260127544403,
0.027857745066285133,
-0.027106285095214844,
-0.01086040586233139,
-0.026050660759210587,
-0.06530556827783585,
0.055643923580646515,
-0.044729843735694885,
0.007984276860952377,
-0.010278917849063873,
0.019788483157753944,
0.012309652753174305,
0.01353524997830391,
-0.03742993250489235,
-0.04039999470114708,
0.01650531217455864,
0.0007330102962441742,
0.0012009962229058146,
0.07507456839084625,
0.003822165075689554,
0.01975269801914692,
-0.0022409651428461075,
-0.03344003111124039,
-0.065806545317173,
-0.02587174065411091,
0.024154115468263626,
0.00784114096313715,
-0.06523400545120239,
0.05822036415338516,
0.051170941442251205,
-0.007129936944693327,
0.011880245991051197,
-0.004115145653486252,
0.018768642097711563,
-0.026175903156399727,
0.05020477622747421,
0.0030282102525234222,
-0.013562087900936604,
0.05403364822268486,
-0.009607969783246517,
0.05321061983704567,
0.002860473468899727,
0.016210094094276428,
0.015789633616805077,
0.00211348501034081,
-0.013114789500832558,
-0.0830901563167572,
0.036016467958688736,
0.02644428238272667,
0.023277409374713898,
0.06040317937731743,
0.030577320605516434,
-0.012971654534339905,
-0.03818139433860779,
-0.012935870327055454,
-0.009572186507284641,
0.05761203542351723,
-0.011101947166025639,
-0.04408573359251022,
0.01763250306248665,
0.05270964652299881,
-0.047878824174404144,
-0.012667491100728512,
-0.007854560390114784,
0.01943064294755459,
0.015109741128981113,
-0.04090096801519394,
-0.01857183128595352,
0.022883787751197815,
0.10921238362789154,
0.045731790363788605,
-0.0681682825088501,
0.030147913843393326,
-0.03989902138710022,
0.0027128648944199085,
-0.0004568035074044019,
-0.026927364990115166,
-0.049274396151304245,
0.00645451620221138,
-0.003238440491259098,
0.007456464692950249,
0.0127211669459939,
-0.012014435604214668,
-0.01375889964401722,
-0.04676952213048935,
0.0030774131882935762,
0.0027240475174039602,
-0.0012390166521072388,
-0.08731265366077423,
-0.04304800182580948,
0.006709476467221975,
-0.014877145178616047,
0.05553657189011574,
0.017659341916441917,
0.07199715822935104,
0.004403653088957071,
0.0589718259871006,
-0.025173954665660858,
-0.015011334791779518,
-0.059866420924663544,
-0.029629047960042953,
0.01850026287138462,
0.03893285617232323,
0.014886091463267803,
0.004611646756529808,
0.01177289430052042,
-0.016415853053331375,
-0.005474932957440615,
-0.009697429835796356,
0.015199200250208378,
0.03907598927617073,
-0.0033301368821412325,
-0.019019128754734993,
-0.015324444510042667,
0.019394859671592712,
-0.04065047949552536,
0.10420264303684235,
0.012953761965036392,
0.01332054752856493,
0.0015141051262617111,
0.037215229123830795,
-0.020593618974089622,
0.042010266333818436,
-0.004374578595161438,
-0.0194485355168581,
0.01082462165504694,
-0.006673692725598812,
-0.021166160702705383,
-0.025531794875860214,
0.03467457368969917,
0.04215340316295624,
-0.011558190919458866,
0.011173514649271965,
-0.0362490639090538,
-0.039934802800416946,
-0.020361024886369705,
-0.01770407147705555,
0.047377850860357285,
-0.015306551940739155,
-0.012094949372112751,
-0.09196455776691437,
-0.022991139441728592,
-0.0440499484539032,
-0.025352874770760536,
-0.03939804434776306,
-0.05485668033361435,
-0.040686264634132385,
0.02909228950738907,
0.04122302308678627,
0.015539146959781647,
0.00497395871207118,
0.019645346328616142,
-0.0013172938488423824,
0.010180512443184853,
0.02234702929854393,
-0.019913725554943085,
0.016022229567170143,
-0.05571549013257027,
-0.02846607193350792,
-0.023563681170344353,
-0.03182975575327873,
0.006441097240895033,
0.03997058793902397,
-0.008699954487383366,
0.06348059326410294,
0.013615763746201992,
0.036589011549949646,
-0.02891336940228939,
-0.06484037637710571,
-0.017086800187826157,
-0.013231087476015091,
0.029718507081270218,
-0.0014112265780568123,
-0.0641247034072876,
-0.04508768022060394,
0.038288746029138565,
0.0427975133061409,
0.019860049709677696,
-0.015476525761187077,
-0.0072059775702655315,
0.09733213484287262,
0.04115145653486252,
0.038467664271593094,
0.022203894332051277,
0.01625482551753521,
-0.009411158971488476,
0.02576438896358013,
0.08165880292654037,
0.011361380107700825,
0.005640433169901371,
0.02215021848678589,
0.03524711728096008,
-0.012264923192560673,
-0.015234984457492828,
0.04147351160645485,
-0.044908761978149414,
-0.013454736210405827,
0.009554293937981129,
0.021488215774297714,
-0.056538522243499756,
-0.017292557284235954,
-0.05789830908179283,
-0.03302851691842079,
0.023456329479813576,
0.043656326830387115,
0.006651327479630709,
-0.030648889020085335,
0.0880998969078064,
0.004365632776170969,
-0.014447739347815514,
0.010842514224350452,
0.07586181163787842,
-0.03338635340332985,
-0.048880770802497864,
0.024601412937045097,
0.01111089251935482,
0.037537284195423126,
0.09990857541561127,
-0.07085207104682922,
-0.06201345473527908,
-0.010914081707596779,
0.007850087247788906,
0.03546182066202164,
0.04859450086951256,
0.09268023073673248,
-0.03365473449230194,
0.0320623517036438,
-0.033797867596149445,
-0.032098136842250824,
-0.02386784367263317,
-0.03048786148428917,
-0.0019300926942378283,
-0.08387739956378937,
-0.005188661627471447,
-0.012506463564932346,
-0.0062934886664152145,
0.04816509410738945,
-0.055894412100315094,
0.072211854159832,
0.008131884969770908,
0.026032768189907074,
-0.05900760740041733,
0.07493143528699875,
0.04172399640083313,
0.1045604795217514,
-0.01053835079073906,
0.03667847067117691,
0.027195744216442108,
-0.06444675475358963,
-0.017596719786524773,
0.049596451222896576,
-0.0254423338919878,
0.036642685532569885,
0.04676952213048935,
0.00464295782148838,
0.0014660205924883485,
-0.04741363227367401,
-0.0046653226017951965,
0.019520103931427002,
-0.01770407147705555,
0.00403239531442523,
-0.029020721092820168,
0.04430043697357178,
-0.011620813049376011,
-0.019215939566493034,
0.03657111898064613,
0.0026301147881895304,
0.008346588350832462,
0.09153515100479126,
-0.0006826892495155334,
-0.02379627712070942,
-0.0010025076335296035,
-0.004884498659521341,
0.010296809487044811,
0.029020721092820168,
-0.02814401686191559,
0.049274396151304245,
0.013982548378407955,
0.01385730504989624,
0.002829162636771798,
-0.02979007549583912,
0.006655800621956587,
-0.05428413674235344,
-0.013562087900936604,
0.040865182876586914,
0.04372789338231087,
-0.0014716117875650525,
-0.02152400091290474,
-0.01763250306248665,
-0.0989781990647316,
-0.045803360641002655,
-0.04866606742143631,
-0.00218505272641778,
0.02177448756992817,
0.006611070595681667,
0.01892966963350773,
0.0012803917052224278,
0.020468376576900482,
0.005139458924531937,
0.04723471403121948,
0.01474295649677515,
0.0170062854886055,
-0.0708162859082222,
0.056538522243499756,
0.006441097240895033,
0.0016404669731855392,
0.00422026077285409,
-0.07031530886888504,
-0.0574331171810627,
-0.02576438896358013,
-0.012425950728356838,
-0.06637908518314362,
-0.06376686692237854,
0.11050060391426086,
-0.040364209562540054,
-0.024726657196879387,
-0.07335694134235382,
-0.0026189323980361223,
0.026873689144849777,
0.004477457143366337,
0.05922231078147888,
0.022239677608013153,
-0.03080991469323635,
0.03036261722445488,
-0.02991531789302826,
0.028752343729138374,
0.004264990333467722,
0.015234984457492828,
-0.022078650072216988,
-0.011763948947191238,
-0.0014526016311720014,
0.049524880945682526,
-0.03302851691842079,
-0.00588644715026021,
0.026426391676068306,
0.06387421488761902,
0.05238759145140648,
0.005622541066259146,
-0.016344284638762474,
0.04612541198730469,
0.03989902138710022,
-0.0007028176332823932,
-0.03592700883746147,
0.014054116792976856,
-0.029432237148284912,
-0.009276969358325005,
0.01982426643371582,
-0.020790431648492813,
-0.045803360641002655,
0.027732502669095993,
0.002031853189691901,
0.031919214874506,
-0.05503559857606888,
-0.03635641559958458,
-0.015610715374350548,
-0.006593178957700729,
0.013392115011811256,
0.007604073267430067,
0.02694525755941868,
0.031149862334132195,
-0.07378634810447693,
0.01114667672663927,
-0.03182975575327873,
0.0028806019108742476,
0.03810982406139374,
0.05907917767763138,
-0.0034128869883716106,
-0.008207926526665688,
-0.008632859215140343,
0.05900760740041733,
-0.025782281532883644,
-0.04111567139625549,
0.04873763769865036,
-0.0181245319545269,
-0.03950539603829384,
-0.027285203337669373,
0.030344724655151367,
-0.006955490447580814,
0.021613460034132004,
-0.007751681841909885,
-0.03900442272424698,
-0.014859253540635109,
-0.040686264634132385,
0.04734206572175026,
0.03710787743330002,
-0.014054116792976856,
-0.02204286679625511,
0.030595213174819946,
0.003097541630268097,
-0.05664587393403053,
-0.08523719012737274,
0.002898493781685829,
0.027410447597503662,
-0.060510531067848206,
0.0048800259828567505,
-0.02229335345327854,
-0.07027953118085861,
-0.06097572296857834,
-0.043155353516340256,
0.06033161282539368,
-0.010976702906191349,
0.01319530326873064,
-0.003513529198244214,
0.014537198469042778,
0.006812355015426874,
-0.04247545823454857,
-0.008436048403382301,
0.03814560920000076,
-0.05156456306576729,
-0.06047474592924118,
-0.009384321048855782,
0.022740652784705162,
0.034620899707078934,
0.005112621001899242,
-0.04337005689740181,
-0.02007475309073925,
-0.004016739781945944,
-0.009697429835796356,
0.02354578860104084,
0.055643923580646515,
0.023331085219979286,
0.024207791313529015,
0.04483719542622566,
0.0018775351345539093,
0.005103675182908773,
0.021613460034132004,
0.025102388113737106,
0.04319113492965698,
-0.00588644715026021,
0.0003771284827962518,
-0.0009734331979416311,
0.012604869902133942,
-0.05904339253902435,
-0.045910708606243134,
0.012586977332830429,
-0.023653140291571617,
0.008069263771176338,
0.040686264634132385,
-0.006682638544589281,
-0.009992646984755993,
0.0241183303296566,
-0.021112484857439995,
0.02204286679625511,
-0.019359076395630836,
-0.03193710744380951,
-0.00869100820273161,
-0.007930601015686989,
0.02751779928803444,
0.014018332585692406,
0.005381000228226185,
0.05371159315109253,
-0.058792904019355774,
-0.020861998200416565,
0.07614808529615402,
0.0010668067261576653,
-0.03503241389989853,
0.056789007037878036,
0.04004215449094772,
-0.02082621492445469,
0.005054472014307976,
0.016093797981739044,
-0.002885074820369482,
0.007568289525806904,
0.010994595475494862,
-0.035139765590429306,
0.03660690411925316,
-0.019645346328616142,
-0.011432947590947151,
-0.04218918830156326,
-0.04884498938918114,
0.023277409374713898,
0.05385472998023033,
0.012068111449480057,
-0.00994791742414236,
-0.002987953368574381,
-0.02114826999604702,
0.019484318792819977,
-0.00754145160317421,
0.017212042585015297,
-0.0775078684091568,
-0.0019099642522633076,
0.03871815279126167,
0.002223073272034526,
0.01950221136212349,
-0.0015599532052874565,
0.028573423624038696,
0.04873763769865036,
0.04777147248387337,
0.013141627423465252,
0.0294859129935503,
-0.010788838379085064,
0.026301147416234016,
0.03850344941020012,
-0.02159556746482849,
-0.009867403656244278,
-0.0160311758518219,
-0.10255658626556396,
-0.028931261971592903,
-0.02866288274526596,
0.039040207862854004,
0.01053835079073906,
-0.01975269801914692,
0.014411955140531063,
-0.09146358072757721,
0.041187237948179245,
-0.017918774858117104,
-0.010967757552862167,
0.037394147366285324,
-0.07063736766576767,
0.013776791281998158,
-0.017265718430280685,
-0.04759255424141884,
-0.038467664271593094,
-0.002871655859053135,
-0.051492996513843536,
-0.0355512797832489,
-0.017194151878356934,
0.006713949143886566,
0.04322692006826401,
0.03431673347949982,
0.0376446358859539,
0.007407261990010738,
-0.030147913843393326,
-0.01199654396623373,
0.004786093253642321,
0.035139765590429306,
0.0021000660490244627,
-0.02240070514380932,
0.007451991550624371,
0.015637552365660667,
-0.04286907985806465,
-0.01919804885983467,
0.006535029970109463,
-0.007621965371072292,
0.08767049014568329,
-0.04090096801519394,
0.01645163632929325,
0.018392911180853844,
-0.030380509793758392,
-0.040865182876586914,
0.03882550448179245,
-0.03143613412976265,
-0.04734206572175026,
0.019305400550365448,
-0.058685552328825,
0.05847084894776344,
0.0034441978204995394,
-0.0018641161732375622,
-0.047449417412281036,
-0.0035045831464231014,
-0.03700052574276924,
-0.02417200617492199,
-0.0804421454668045,
0.013928872533142567,
-0.00959007814526558,
-0.072211854159832,
0.017847206443548203,
-0.05775517225265503,
0.050920452922582626,
-0.05378316342830658,
-0.051671914756298065,
-0.046304333955049515,
-0.013347385451197624,
0.0001413882419001311,
0.016147473827004433,
0.043155353516340256,
-0.0510278046131134,
0.008131884969770908,
0.06201345473527908,
0.046805307269096375,
0.009849511086940765,
-0.029843751341104507,
-0.024655088782310486,
0.002518290188163519,
-0.021863946691155434,
0.020182104781270027,
0.0021884075831621885,
0.02145243249833584,
0.0294859129935503,
0.04798617586493492,
-0.0073043834418058395,
0.01593277044594288,
-0.0020206705667078495,
0.011137730441987514,
-0.0022801037412136793,
-0.024851901456713676,
0.0019893597345799208,
-0.0575762540102005,
0.03964853286743164,
-0.02562125399708748,
-0.04165242984890938,
-0.05331797152757645,
-0.00777851976454258,
0.011978651396930218,
-0.008686535060405731,
0.028519747778773308,
0.00503210723400116,
-0.04634011536836624,
0.020879890769720078,
-0.023581573739647865,
-0.003260805504396558,
-0.03467457368969917,
0.006060893647372723,
-0.016245879232883453,
-0.017310449853539467,
0.023975195363163948,
-0.023438436910510063,
0.01720309816300869,
-0.04079361632466316,
0.05915074422955513,
0.005788041744381189,
0.00497395871207118,
0.05915074422955513,
-0.006919706705957651,
-0.01218440942466259,
-0.00016591975872870535,
-0.031078293919563293,
0.026050660759210587,
0.004978431388735771,
0.016720015555620193,
0.03272435441613197,
0.038467664271593094,
-0.002142559504136443,
-0.03179397061467171,
0.01969902217388153,
-0.024780333042144775,
0.06702319532632828,
-0.003687975462526083,
0.012032327242195606,
-0.01943064294755459,
-0.03839609771966934,
0.03979166969656944,
-0.0241183303296566,
0.05364002659916878,
-0.003947408404201269,
0.008485251106321812,
0.026408499106764793,
0.034370411187410355,
-0.05045526102185249,
0.00449982238933444,
0.07722160220146179,
-0.025674929842352867,
0.03395889699459076,
-0.02329530194401741,
0.01347262877970934,
-0.0066244895569980145,
0.0336010567843914,
-0.017811423167586327,
0.013016384094953537,
-0.007836668752133846,
0.002815743675455451,
-0.03302851691842079,
-0.0588286891579628,
0.01019840408116579,
0.0745735913515091,
-0.014054116792976856,
0.01824977621436119,
0.0007346876664087176,
0.019591670483350754,
0.002945460146293044,
0.006951017305254936,
0.008006641641259193,
-0.052423376590013504,
0.013150573708117008,
0.013910980895161629,
-0.009241185151040554,
-0.014868199825286865,
0.06673692166805267,
-0.017990343272686005,
0.043334271758794785,
-0.018339235335588455,
0.049453314393758774,
-0.007460937835276127,
-0.006552922073751688,
-0.029575372114777565,
-0.034424085170030594,
-0.016997341066598892,
-0.06061788275837898,
-0.02037891559302807,
0.03662479668855667,
-0.035819657146930695,
-0.043835245072841644,
0.028609206900000572,
0.05661008879542351,
0.009607969783246517
]
|
30,070 | networkx.classes.graph | __len__ | Returns the number of nodes in the graph. Use: 'len(G)'.
Returns
-------
nnodes : int
The number of nodes in the graph.
See Also
--------
number_of_nodes: identical method
order: identical method
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> len(G)
4
| def __len__(self):
"""Returns the number of nodes in the graph. Use: 'len(G)'.
Returns
-------
nnodes : int
The number of nodes in the graph.
See Also
--------
number_of_nodes: identical method
order: identical method
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> len(G)
4
"""
return len(self._node)
| (self) | [
-0.04312105476856232,
-0.027720676735043526,
-0.011077770963311195,
0.04305105283856392,
-0.008645211346447468,
0.07903192937374115,
-0.04088100045919418,
-0.02719566412270069,
0.0838620513677597,
-0.010132747702300549,
0.0025900632608681917,
-0.05348130688071251,
0.026495646685361862,
0.0007098611094988883,
0.00743330642580986,
0.007214551325887442,
0.0023647453635931015,
-0.021613027900457382,
0.007420181296765804,
0.0536913126707077,
-0.04294604808092117,
0.03591087833046913,
0.06447157263755798,
-0.06195151433348656,
-0.03829093649983406,
0.017710432410240173,
0.054006319493055344,
-0.0005900925607420504,
0.025288118049502373,
0.0168004110455513,
-0.08239201456308365,
-0.023153066635131836,
-0.011077770963311195,
0.03200828284025192,
0.05008622258901596,
0.03927095979452133,
-0.013912839815020561,
0.023853082209825516,
-0.055371351540088654,
0.014131595380604267,
-0.029698224738240242,
-0.03657589480280876,
0.016336649656295776,
-0.009275226853787899,
0.03309330716729164,
-0.018812960013747215,
0.03134326636791229,
-0.001480973674915731,
-0.05544135347008705,
-0.07518183439970016,
0.012644059024751186,
0.014980366453528404,
-0.014341600239276886,
0.011751537211239338,
-0.03414333239197731,
0.051906269043684006,
0.05292129144072533,
0.047216154634952545,
-0.03619088605046272,
0.05099624767899513,
-0.013484079390764236,
-0.013247823342680931,
0.01695791445672512,
-0.06583660840988159,
-0.016389150172472,
0.0016472277930006385,
-0.037870924919843674,
0.030345741659402847,
0.01066651102155447,
0.005315755028277636,
0.01883045956492424,
0.04728615656495094,
0.00431823031976819,
0.03930595889687538,
0.02425559237599373,
0.013589082285761833,
-0.012644059024751186,
0.048931196331977844,
0.0353158637881279,
-0.028998209163546562,
0.015671633183956146,
-0.0021667717956006527,
0.026968158781528473,
0.019985487684607506,
0.0772818848490715,
-0.034125834703445435,
-0.0075951856561005116,
0.00931897759437561,
-0.04427608102560043,
0.0130115682259202,
-0.042526040226221085,
0.05715639516711235,
0.019390473142266273,
-0.006147025153040886,
-0.01804294064640999,
-0.03274330124258995,
-0.026583150029182434,
-0.07637186348438263,
0.04161601513624191,
-0.05239627882838249,
-0.03314581140875816,
0.08575209230184555,
-0.013904090039432049,
0.022803056985139847,
-0.019617978483438492,
-0.06254652887582779,
-0.026898156851530075,
-0.03239329159259796,
-0.04137101024389267,
-0.004414482973515987,
-0.010710261762142181,
0.05348130688071251,
0.04840618371963501,
0.03218328580260277,
0.0555463582277298,
0.010544007644057274,
0.017579179257154465,
-0.029680725187063217,
0.0031128886621445417,
0.009388979524374008,
-0.008006446063518524,
0.06944169849157333,
-0.0006710320012643933,
-0.015260373242199421,
0.059011440724134445,
0.029645724222064018,
-0.012162797152996063,
-0.029558222740888596,
-0.022173041477799416,
-0.06580160558223724,
0.10577258467674255,
0.02453560009598732,
0.014857863076031208,
0.06671162694692612,
0.0640515685081482,
-0.00003582118733902462,
0.010517757385969162,
0.017832934856414795,
-0.01453410554677248,
0.04952621087431908,
-0.012390302494168282,
-0.02871820144355297,
0.03027573972940445,
0.020598003640770912,
-0.03304080665111542,
0.04371606931090355,
-0.010491506196558475,
-0.004913244862109423,
0.0008515052031725645,
-0.03461584448814392,
0.009406480006873608,
-0.028665700927376747,
0.07763189822435379,
-0.00887709204107523,
-0.03811592981219292,
0.004355418961495161,
-0.017894187942147255,
-0.03811592981219292,
-0.0010117434430867434,
-0.059676457196474075,
-0.0740618109703064,
0.012950316071510315,
-0.014210347086191177,
-0.040565989911556244,
-0.02567312680184841,
-0.0038894701283425093,
0.045886121690273285,
-0.051626261323690414,
-0.05813642218708992,
0.05309629812836647,
0.02038799785077572,
-0.04641113430261612,
-0.029838228598237038,
0.00469886464998126,
0.021665530279278755,
0.05050623416900635,
0.0026775654405355453,
0.05215127393603325,
0.005040123127400875,
0.014079093933105469,
-0.008824590593576431,
-0.03825593367218971,
-0.027528172358870506,
-0.028035685420036316,
0.02843819558620453,
0.021980537101626396,
-0.0007355648558586836,
0.02758067473769188,
-0.0027519422583281994,
0.04000597819685936,
-0.012897815555334091,
-0.021315520629286766,
0.005258878692984581,
0.02703816071152687,
0.026635650545358658,
-0.0571213960647583,
0.01804294064640999,
0.012057794257998466,
-0.04378607124090195,
0.05379631370306015,
0.024815605953335762,
0.0018320759991183877,
0.007599560543894768,
-0.003970409743487835,
0.005565136205404997,
0.01832294836640358,
-0.014490353874862194,
0.04144101217389107,
-0.0369609035551548,
-0.03354831784963608,
-0.054636333137750626,
-0.04137101024389267,
0.04007598012685776,
0.048966195434331894,
0.0008192387758754194,
-0.054321326315402985,
-0.037205908447504044,
0.0001273566304007545,
-0.012994067743420601,
-0.05036623030900955,
0.09499232470989227,
0.032760798931121826,
-0.000756893481593579,
-0.02910321019589901,
-0.0243430957198143,
-0.05155625939369202,
-0.018305446952581406,
-0.0010647916933521628,
0.0071883006021380424,
-0.04000597819685936,
0.040495987981557846,
0.032060783356428146,
0.027003159746527672,
0.031553272157907486,
0.027300667017698288,
-0.015234122052788734,
0.005053248256444931,
0.022873058915138245,
-0.018602954223752022,
-0.022768056020140648,
-0.08813215047121048,
-0.06671162694692612,
-0.022418048232793808,
0.00325289205648005,
-0.020405499264597893,
0.018882961943745613,
-0.03487835079431534,
0.04805617406964302,
0.019075466319918633,
-0.0031260137911885977,
-0.08169199526309967,
-0.07539184391498566,
-0.05519634857773781,
-0.020528001710772514,
0.015041617676615715,
-0.02887570485472679,
-0.05985146388411522,
-0.012407802976667881,
-0.016030391678214073,
0.013834088109433651,
0.032288290560245514,
-0.021945536136627197,
-0.04042598605155945,
0.053936317563056946,
0.016537904739379883,
0.04070599377155304,
0.052256274968385696,
0.01727292127907276,
-0.055616360157728195,
0.020965512841939926,
0.037870924919843674,
0.002681940561160445,
0.0029116335790604353,
-0.0636315569281578,
-0.0012611246202141047,
-0.04931620508432388,
-0.022558052092790604,
0.03773092105984688,
0.00017965282313525677,
0.0028656949289143085,
-0.03153577074408531,
-0.003117263549938798,
-0.050576236099004745,
-0.03969097137451172,
-0.07122673839330673,
0.018532952293753624,
0.00613390002399683,
-0.009581483900547028,
-0.055336352437734604,
-0.013020318001508713,
0.04501109942793846,
-0.004320417996495962,
-0.00575326569378376,
0.05015622451901436,
0.05337630584836006,
-0.016966665163636208,
-0.034318339079618454,
0.033425815403461456,
0.024588100612163544,
0.056001368910074234,
0.018935462459921837,
-0.049911219626665115,
-0.0739218071103096,
-0.04609612748026848,
0.014507854357361794,
0.025445621460676193,
0.08533208817243576,
0.03741591423749924,
0.048896193504333496,
0.03302330523729324,
-0.06408656388521194,
0.05085624381899834,
-0.01879545859992504,
0.03043324314057827,
0.05120624974370003,
0.00036121977609582245,
-0.04910619929432869,
-0.02238304726779461,
-0.027125662192702293,
0.0437510684132576,
-0.0015236309263855219,
0.06660662591457367,
-0.009852740913629532,
0.016117893159389496,
-0.04511610418558121,
0.03773092105984688,
0.0486861914396286,
0.05313129723072052,
0.03540336340665817,
0.0025900632608681917,
-0.015767885372042656,
-0.02992573194205761,
0.02266305312514305,
-0.001512693241238594,
-0.07252176851034164,
0.00830395333468914,
0.07322178781032562,
0.029995732009410858,
-0.05943145230412483,
0.006186401005834341,
0.036435890942811966,
-0.010474005714058876,
-0.027808180078864098,
0.028298191726207733,
0.018182944506406784,
-0.006943294778466225,
0.02203303761780262,
-0.05085624381899834,
0.04441608488559723,
0.030695749446749687,
-0.013449078425765038,
0.08351203799247742,
-0.0022663052659481764,
-0.018025441095232964,
0.015111619606614113,
0.003484772751107812,
0.048196177929639816,
0.052641287446022034,
0.006173275876790285,
0.05610636994242668,
-0.02621564082801342,
-0.0038522817194461823,
0.005490759387612343,
-0.017544178292155266,
0.00006836104876128957,
0.007148924749344587,
0.012372802011668682,
0.019477976486086845,
-0.002802256029099226,
-0.025253117084503174,
-0.013641583733260632,
-0.06415656954050064,
-0.059291448444128036,
-0.031465768814086914,
0.008181449957191944,
0.04732115566730499,
-0.003215703647583723,
-0.00763893686234951,
0.002769442740827799,
-0.04900119826197624,
-0.028420694172382355,
-0.0008400205406360328,
0.017124168574810028,
-0.0184804517775774,
0.0001356966677121818,
0.008050196804106236,
-0.040320985019207,
-0.010806513950228691,
0.00006706218846375123,
0.024325594305992126,
-0.04742616042494774,
-0.01252155564725399,
-0.049561209976673126,
-0.023940585553646088,
-0.08680211752653122,
-0.0063132792711257935,
0.054601334035396576,
-0.01715041883289814,
0.022365545853972435,
-0.047496162354946136,
0.03622588515281677,
-0.01238155271857977,
0.029645724222064018,
0.0771418884396553,
-0.004545736126601696,
0.0184804517775774,
0.028473196551203728,
0.00018416465900372714,
-0.009695236571133137,
-0.019040465354919434,
0.03192077949643135,
0.015190371312201023,
-0.032795801758766174,
0.01068401150405407,
0.00801957119256258,
-0.0640515685081482,
0.04137101024389267,
0.035455867648124695,
0.11032269895076752,
0.0047994921915233135,
-0.014849112369120121,
0.03955096751451492,
0.054636333137750626,
0.0741318091750145,
0.013309075497090816,
0.01930297166109085,
-0.01832294836640358,
-0.015584130771458149,
-0.013064068742096424,
0.03414333239197731,
-0.01911046728491783,
0.014411602169275284,
0.04105600342154503,
-0.019390473142266273,
-0.012451554648578167,
-0.039235956966876984,
0.005490759387612343,
-0.04063599184155464,
-0.0007733001257292926,
0.01756167970597744,
0.018532952293753624,
0.022085539996623993,
0.008190199732780457,
0.02332806959748268,
0.030363241210579872,
-0.09247226268053055,
0.01652040332555771,
-0.057296399027109146,
0.041896022856235504,
-0.03356581926345825,
-0.047881171107292175,
-0.029400717467069626,
0.036505892872810364,
-0.010071496479213238,
-0.06800666451454163,
0.011261525563895702,
-0.04767116531729698,
-0.018375448882579803,
-0.04574611783027649,
-0.03319831192493439,
-0.007315178867429495,
0.07952194660902023,
-0.03214828670024872,
-0.0032507043797522783,
-0.05075123906135559,
-0.04280604422092438,
0.029908230528235435,
-0.0038129056338220835,
-0.024798106402158737,
-0.0051451255567371845,
0.052256274968385696,
-0.01804294064640999,
-0.07122673839330673,
-0.05621137470006943,
0.031273264437913895,
0.03333831578493118,
-0.029820729047060013,
-0.0018003564327955246,
-0.048546187579631805,
-0.04980621859431267,
-0.04193102568387985,
-0.008929593488574028,
0.040845997631549835,
0.027878182008862495,
0.01699291542172432,
0.008203325793147087,
-0.06289653480052948,
0.01595163904130459,
0.006728914566338062,
-0.006287028547376394,
0.015654131770133972,
-0.06632661819458008,
-0.04511610418558121,
-0.024675602093338966,
0.05740140378475189,
0.026968158781528473,
0.024745604023337364,
-0.03888595104217529,
-0.048196177929639816,
0.007800815626978874,
-0.05285128951072693,
0.03388082608580589,
0.04511610418558121,
0.03008323535323143,
-0.004451671149581671,
0.01769293285906315,
0.007380805443972349,
0.0065057841129601,
0.05320129916071892,
0.012722810730338097,
0.008317078463733196,
0.017640430480241776,
0.037205908447504044,
0.048546187579631805,
0.03692590072751045,
0.038850948214530945,
-0.010150248184800148,
0.044206079095602036,
0.007761439774185419,
0.026425644755363464,
0.01217154785990715,
-0.008807090111076832,
0.019075466319918633,
-0.00219520996324718,
-0.06573160737752914,
0.05572136119008064,
-0.00439917016774416,
-0.039865974336862564,
0.016966665163636208,
0.07045672088861465,
0.04676114395260811,
0.022645553573966026,
-0.011900290846824646,
0.05747140571475029,
-0.01554912980645895,
0.02453560009598732,
-0.009703987278044224,
-0.013720335438847542,
-0.004221978131681681,
0.05281629040837288,
-0.00001275787963095354,
-0.04945620894432068,
-0.00032430479768663645,
0.021280519664287567,
-0.037870924919843674,
0.02910321019589901,
0.05841642618179321,
-0.028158187866210938,
0.04340105876326561,
-0.022278044372797012,
-0.03661089390516281,
0.0039375959895551205,
-0.00622140197083354,
-0.030643248930573463,
0.1177428737282753,
0.04473109170794487,
-0.014814112335443497,
-0.04392607510089874,
0.03594587743282318,
-0.00659328605979681,
-0.004162914119660854,
-0.05425132438540459,
-0.010071496479213238,
0.028298191726207733,
0.0037275911308825016,
-0.019740482792258263,
-0.011629033833742142,
-0.012014043517410755,
0.006575785577297211,
0.05208127200603485,
-0.009896491654217243,
0.012110295705497265,
-0.006553910207003355,
-0.025883132591843605,
0.00780519051477313,
-0.01177778746932745,
-0.06128649786114693,
0.036120884120464325,
-0.0014580043498426676,
-0.07546184211969376,
-0.028105687350034714,
0.020107991993427277,
0.0057488903403282166,
0.054986342787742615,
-0.038430940359830856,
0.04144101217389107,
-0.09464231133460999,
-0.0032857053447514772,
-0.014236598275601864,
0.011200273409485817,
-0.033075809478759766,
-0.04098600149154663,
0.01902296394109726,
-0.014079093933105469,
-0.015706634148955345,
0.01670415885746479,
-0.004838868044316769,
-0.027405669912695885,
0.010237750597298145,
-0.01617039553821087,
0.015732884407043457,
0.026635650545358658,
-0.0024763105902820826,
0.05208127200603485,
-0.0026666277553886175,
-0.02038799785077572,
0.004073224496096373,
0.053236301988363266,
0.02422059141099453,
-0.05617637187242508,
-0.0025616250932216644,
-0.024623101577162743,
0.009616484865546227,
-0.09247226268053055,
-0.05624637380242348,
-0.006435782182961702,
-0.00933647807687521,
0.04000597819685936,
0.0005553651135414839,
0.0235205739736557,
-0.001897702575661242,
-0.03011823631823063,
-0.007214551325887442,
-0.0004730584332719445,
-0.028420694172382355,
0.014796611852943897,
-0.02133302204310894,
-0.011707786470651627,
-0.011436529457569122,
-0.015601631253957748,
-0.00029395250021480024,
-0.07497183233499527,
0.021263020113110542,
-0.03654089197516441,
0.003484772751107812,
-0.10122247040271759,
-0.03370582312345505,
0.009747738018631935,
-0.0010762762976810336,
0.028578197583556175,
-0.041511014103889465,
0.06111149489879608,
-0.07469182461500168,
-0.0033994580153375864,
-0.023853082209825516,
-0.029173212125897408,
0.009493982419371605,
0.015417876653373241,
0.04238603636622429,
-0.03489585220813751,
0.020598003640770912,
0.020878009498119354,
0.050226226449012756,
-0.002918196376413107,
0.01085901539772749,
-0.019162967801094055,
0.03601587936282158,
-0.014849112369120121,
-0.021735530346632004,
-0.06394656002521515,
-0.011462779715657234,
-0.011637784540653229,
0.03503585606813431,
-0.006960795260965824,
0.039200957864522934,
-0.026425644755363464,
0.04473109170794487,
-0.030135735869407654,
0.011480280198156834,
-0.028858205303549767,
-0.008343328721821308,
0.06079648435115814,
0.021000513806939125,
0.003707903204485774,
-0.03738091513514519,
0.01330032479017973,
-0.0043510436080396175,
-0.011130272410809994,
0.036120884120464325,
0.017194170504808426,
-0.010972768068313599,
0.04333106055855751,
-0.07024671882390976,
-0.046166129410266876,
0.01652040332555771,
0.008470206521451473,
-0.04679614305496216,
0.0006737664807587862,
0.0771418884396553,
0.0022859934251755476,
-0.028648199513554573,
-0.05908144265413284,
0.05708639323711395,
0.02465810254216194,
0.010036495514214039,
0.00363352638669312,
-0.008474581874907017,
0.03608588129281998,
0.018462950363755226,
-0.03857094421982765,
0.01705416664481163,
0.008960219100117683,
-0.014962865971028805,
-0.011987793259322643,
-0.019705481827259064,
-0.023608077317476273,
-0.05509134754538536,
0.010211499407887459,
-0.03727591037750244,
0.04193102568387985,
-0.021595528349280357,
0.029558222740888596,
0.03379332646727562,
-0.0842120572924614,
-0.015619131736457348,
0.021385522559285164,
0.052606284618377686,
0.03871094435453415,
-0.03473834693431854,
0.022873058915138245,
0.0022816183045506477,
-0.016117893159389496,
0.029365718364715576,
0.05715639516711235,
-0.024623101577162743,
0.012320300564169884,
0.02976822666823864,
-0.010964018292725086,
0.00004679313497035764,
-0.008483332581818104,
-0.016590405255556107,
0.014910364523530006,
0.0007317366544157267,
-0.04200102761387825,
-0.032165784388780594,
0.015347874723374844,
0.014306599274277687,
0.01968798041343689,
0.026495646685361862,
0.01775418408215046,
0.09317227452993393,
0.014857863076031208,
0.032883305102586746,
-0.02675815299153328,
0.08491207659244537,
-0.061006490141153336,
-0.0018047315534204245,
0.07896193116903305,
-0.009572734124958515,
-0.017894187942147255,
0.04280604422092438,
0.016721658408641815,
0.025095613673329353,
-0.08533208817243576,
0.017736682668328285,
0.01486661285161972,
-0.01009774673730135,
-0.03321581333875656,
-0.009590234607458115,
-0.032095782458782196,
-0.04602612555027008,
-0.04917620122432709,
-0.009817739948630333,
0.024938108399510384,
-0.02257555164396763,
0.036470890045166016,
0.0073370542377233505,
0.024903109297156334
]
|
30,071 | networkx.classes.graph | __str__ | Returns a short summary of the graph.
Returns
-------
info : string
Graph information including the graph name (if any), graph type, and the
number of nodes and edges.
Examples
--------
>>> G = nx.Graph(name="foo")
>>> str(G)
"Graph named 'foo' with 0 nodes and 0 edges"
>>> G = nx.path_graph(3)
>>> str(G)
'Graph with 3 nodes and 2 edges'
| def __str__(self):
"""Returns a short summary of the graph.
Returns
-------
info : string
Graph information including the graph name (if any), graph type, and the
number of nodes and edges.
Examples
--------
>>> G = nx.Graph(name="foo")
>>> str(G)
"Graph named 'foo' with 0 nodes and 0 edges"
>>> G = nx.path_graph(3)
>>> str(G)
'Graph with 3 nodes and 2 edges'
"""
return "".join(
[
type(self).__name__,
f" named {self.name!r}" if self.name else "",
f" with {self.number_of_nodes()} nodes and {self.number_of_edges()} edges",
]
)
| (self) | [
0.025264911353588104,
-0.019205821678042412,
0.0439097061753273,
-0.018672846257686615,
0.03169802203774452,
-0.033586811274290085,
-0.002903314307332039,
-0.07727210968732834,
0.06010468304157257,
-0.05887042358517647,
-0.02999623864889145,
-0.0050492421723902225,
-0.007508410140872002,
0.011482350528240204,
0.005512089468538761,
-0.004294193349778652,
0.001263479352928698,
-0.07046497613191605,
0.023824943229556084,
0.0580475851893425,
-0.0002967306354548782,
0.036130134016275406,
0.013978920876979828,
-0.04701405391097069,
0.006521937903016806,
0.050417616963386536,
0.03293227776885033,
-0.025844639167189598,
-0.035662610083818436,
0.004668211564421654,
-0.08505167812108994,
-0.06261060386896133,
0.01586771011352539,
0.008840848691761494,
-0.0019565813709050417,
0.055055439472198486,
-0.02984663099050522,
0.01922452263534069,
-0.11482350528240204,
-0.030575966462492943,
0.01091197319328785,
-0.0012856866233050823,
-0.04955737665295601,
-0.015746155753731728,
0.00021535251289606094,
-0.022048357874155045,
0.03094998374581337,
0.01555914618074894,
-0.04428372532129288,
-0.06294722110033035,
0.026424366980791092,
0.013230884447693825,
-0.05561646819114685,
0.0013125692494213581,
-0.04555538669228554,
0.004941712133586407,
0.03394212946295738,
-0.0031253874767571688,
0.00914473831653595,
0.056813325732946396,
-0.0016059394693002105,
0.014063074253499508,
0.04731326922774315,
-0.03250215947628021,
-0.042077019810676575,
-0.00904655922204256,
-0.04574239253997803,
-0.02262808568775654,
-0.016064070165157318,
0.018850503489375114,
0.047836896032094955,
-0.01766299642622471,
0.0019752823282033205,
0.0426754467189312,
0.025564126670360565,
-0.019673343747854233,
-0.07375633716583252,
-0.01943023130297661,
0.04203961789608002,
-0.06175035983324051,
-0.0026415016036480665,
-0.02999623864889145,
-0.003282007295638323,
-0.07787053287029266,
0.04996879771351814,
-0.04439593106508255,
-0.04278765246272087,
-0.02997753769159317,
-0.029753126204013824,
0.0027700704522430897,
-0.03280137479305267,
0.02485349215567112,
-0.011407546699047089,
0.06799646466970444,
-0.05127786099910736,
-0.015531094744801521,
0.005890782456845045,
-0.10562266409397125,
0.04604160785675049,
0.0009607585961930454,
-0.012754011899232864,
0.009079285897314548,
-0.07831935584545135,
0.009270969778299332,
-0.06126413866877556,
-0.05079163610935211,
-0.0025713732466101646,
0.008148916065692902,
0.004598082974553108,
-0.0069333575665950775,
-0.025882041081786156,
-0.0037051152903586626,
0.03930928558111191,
-0.021281620487570763,
0.08460285514593124,
-0.004191338550299406,
-0.01442774198949337,
-0.014371639117598534,
0.020309174433350563,
-0.025751134380698204,
-0.007629965897649527,
0.030837779864668846,
-0.02870587632060051,
0.008602412417531013,
0.017709748819470406,
0.04521876946091652,
-0.004602758213877678,
-0.046228617429733276,
0.011660009622573853,
-0.09148478507995605,
0.0497443862259388,
-0.016120173037052155,
-0.0265926755964756,
0.07764612138271332,
0.09402810782194138,
0.01922452263534069,
-0.04858493059873581,
0.022179264575242996,
0.01618562638759613,
0.09993759542703629,
-0.012782063335180283,
-0.03158581629395485,
0.005114695522934198,
0.02661137655377388,
-0.011454299092292786,
-0.02197355404496193,
0.002632151124998927,
-0.014147228561341763,
0.0018513888353481889,
-0.057486556470394135,
0.04533097520470619,
-0.01089327223598957,
0.006489211227744818,
-0.013726457953453064,
-0.01001433003693819,
0.001366334268823266,
-0.012164933606982231,
-0.014222032390534878,
-0.00008466538565699011,
-0.03972070664167404,
-0.054419610649347305,
-0.025900742039084435,
0.0077515216544270515,
-0.036616355180740356,
0.019916454330086708,
-0.007896454073488712,
0.02343222312629223,
-0.025564126670360565,
-0.004429774824529886,
0.00035882345400750637,
-0.04491955414414406,
-0.08288237452507019,
-0.06549054384231567,
0.03448445349931717,
0.018074417486786842,
0.06930552423000336,
0.008569685742259026,
0.10562266409397125,
-0.012127531692385674,
-0.003941214177757502,
0.004324582405388355,
-0.039533697068691254,
-0.08138630539178848,
-0.0061151934787631035,
0.03412913531064987,
-0.04140378534793854,
0.02949131466448307,
-0.007896454073488712,
0.06332124024629593,
0.011332743801176548,
0.0016234716167673469,
0.031062189489603043,
0.010771716944873333,
0.059581056237220764,
0.04574239253997803,
-0.09006351977586746,
0.009406550787389278,
-0.02055228501558304,
0.02919209934771061,
0.039047472178936005,
0.03859865292906761,
0.04424632340669632,
0.01699911616742611,
0.010968076065182686,
0.03321279212832451,
0.04334867745637894,
0.017896758392453194,
0.008373326621949673,
-0.030033640563488007,
0.010145236738026142,
0.010837169364094734,
0.009126037359237671,
0.02260938473045826,
0.02500309981405735,
-0.007209195755422115,
-0.012202335521578789,
0.004053419455885887,
0.01314673013985157,
-0.026087751612067223,
-0.004149261396378279,
0.06474250555038452,
-0.03923448175191879,
0.017868706956505775,
-0.005614944268018007,
-0.04379750043153763,
-0.02932300604879856,
0.023637933656573296,
-0.027770832180976868,
0.018242724239826202,
-0.023656634613871574,
0.06638818234205246,
-0.031473610550165176,
-0.024610379710793495,
0.03723348677158356,
-0.0296409223228693,
0.03143620863556862,
-0.022179264575242996,
-0.013997620902955532,
0.013969570398330688,
-0.04521876946091652,
-0.06717362254858017,
-0.02760252356529236,
-0.026012947782874107,
-0.015054222196340561,
0.07517760246992111,
-0.0724472776055336,
-0.015138376504182816,
0.00401134230196476,
-0.019467633217573166,
-0.024610379710793495,
0.00452327961102128,
-0.0256202295422554,
0.00006158147152746096,
-0.030089743435382843,
0.011603906750679016,
-0.03590572252869606,
-0.07831935584545135,
-0.0490337498486042,
0.02599424682557583,
0.010584707371890545,
-0.02999623864889145,
0.02197355404496193,
-0.047836896032094955,
0.057486556470394135,
0.0323338508605957,
-0.020963706076145172,
-0.022478478029370308,
0.011716111563146114,
-0.05352196842432022,
-0.015474991872906685,
0.12694168090820312,
0.02161823771893978,
-0.048659734427928925,
0.03169802203774452,
-0.028743278235197067,
-0.05382118001580238,
-0.025732433423399925,
0.013689056970179081,
-0.04043133929371834,
-0.03209073841571808,
-0.02836926095187664,
-0.02339482121169567,
-0.04058094695210457,
-0.03128660097718239,
0.00452795485034585,
-0.014783059246838093,
0.03291357681155205,
-0.015624599531292915,
0.004149261396378279,
0.01894400827586651,
0.06092752143740654,
-0.00420302664861083,
-0.024273764342069626,
-0.006727647501975298,
0.032782673835754395,
-0.00601701345294714,
0.05176408216357231,
0.04574239253997803,
-0.009069935418665409,
0.0026438392233103514,
0.040655750781297684,
-0.024105455726385117,
0.024105455726385117,
-0.013530098833143711,
-0.0051707979291677475,
-0.011332743801176548,
0.013352440670132637,
-0.02274029143154621,
0.02741551399230957,
0.02242237515747547,
-0.048510126769542694,
0.01589576154947281,
0.05628969892859459,
0.07196105271577835,
0.010566006414592266,
0.06463029980659485,
-0.06261060386896133,
-0.023525727912783623,
0.03093128278851509,
0.07061458379030228,
-0.01905621401965618,
0.05094124376773834,
-0.013081277720630169,
0.014296835288405418,
-0.026667479425668716,
0.0021283957175910473,
-0.036934271454811096,
0.0346340611577034,
0.035830918699502945,
0.002814484992995858,
-0.029547417536377907,
-0.06077791377902031,
0.04394710808992386,
0.014970067888498306,
-0.03128660097718239,
0.0429372601211071,
0.03403563052415848,
-0.0015685376711189747,
-0.04009472206234932,
-0.0017578842816874385,
0.09103596955537796,
0.009817970916628838,
-0.018345579504966736,
0.027509018778800964,
-0.011080281808972359,
0.02567633055150509,
0.0077094449661672115,
-0.02434856817126274,
0.03738309442996979,
0.03399823233485222,
-0.046116411685943604,
0.011379496194422245,
-0.02161823771893978,
-0.009280320256948471,
0.017868706956505775,
0.02498439885675907,
0.015325385145843029,
0.03381122276186943,
-0.027845636010169983,
0.03912227600812912,
-0.0013698406983166933,
0.003515768563374877,
0.016550293192267418,
0.02855626866221428,
-0.014567998237907887,
-0.006161945406347513,
0.04940776899456978,
0.04813610762357712,
0.07424256205558777,
-0.03345590457320213,
-0.045630186796188354,
-0.023637933656573296,
-0.05288613587617874,
-0.05150226876139641,
-0.057336948812007904,
0.07016576826572418,
0.03844904527068138,
-0.006821152288466692,
-0.03770100697875023,
-0.08520128577947617,
0.018635444343090057,
0.024292465299367905,
0.01798091270029545,
0.035195086151361465,
0.008396702818572521,
0.02116941474378109,
-0.0038079700898379087,
0.04054354503750801,
-0.019486334174871445,
0.03379252180457115,
-0.04218922182917595,
-0.03863605484366417,
-0.029210800305008888,
0.008752020075917244,
-0.021767843514680862,
-0.05453181639313698,
0.05142746493220329,
-0.016241729259490967,
-0.07528980821371078,
-0.001843207166530192,
-0.005287678446620703,
-0.05647670850157738,
-0.024273764342069626,
0.014539947733283043,
-0.004560681059956551,
0.0015474992105737329,
0.026966692879796028,
-0.004740677308291197,
0.0027583823539316654,
-0.014334237203001976,
0.06249839812517166,
-0.05599048361182213,
-0.06765984743833542,
0.006853878498077393,
0.06328383833169937,
0.014932665973901749,
-0.017990263178944588,
0.0155497957020998,
0.05340976268053055,
-0.015269282273948193,
-0.0076626925729215145,
0.05131526291370392,
0.04518136754631996,
0.06448069214820862,
-0.01943023130297661,
0.03508288413286209,
-0.045779794454574585,
0.05400818958878517,
0.044321127235889435,
0.04454553499817848,
0.0005303457728587091,
-0.02178654447197914,
0.011444948613643646,
-0.033755119889974594,
0.012632455676794052,
-0.06126413866877556,
0.008859549649059772,
-0.01843908429145813,
-0.020290473476052284,
0.035026781260967255,
0.012585703283548355,
-0.0077842483296990395,
-0.0052923536859452724,
-0.0026578649412840605,
-0.026873188093304634,
-0.0008444623672403395,
-0.029042493551969528,
-0.021861348301172256,
0.0032703194301575422,
0.007859052158892155,
-0.02663007751107216,
0.0006107011577114463,
-0.002763057593256235,
-0.024236362427473068,
0.0021167078521102667,
-0.028593670576810837,
0.030650770291686058,
-0.0028776004910469055,
-0.021524732932448387,
0.024946996942162514,
-0.015596548095345497,
0.031473610550165176,
-0.03603662922978401,
0.04809870570898056,
0.002730330917984247,
-0.0253584161400795,
0.07001616060733795,
0.03998251631855965,
-0.055392056703567505,
-0.023207813501358032,
0.05640190467238426,
0.017410535365343094,
-0.053634174168109894,
-0.00456535629928112,
-0.0043830228969454765,
0.0468270443379879,
-0.04394710808992386,
0.0101826386526227,
-0.015643300488591194,
-0.041141971945762634,
-0.054943233728408813,
-0.03577481582760811,
0.007209195755422115,
0.026199957355856895,
0.035195086151361465,
0.038748256862163544,
0.008434104733169079,
0.016746653243899345,
-0.012501549907028675,
0.029304305091500282,
-0.0008251770632341504,
0.023114308714866638,
-0.06006728112697601,
-0.04574239253997803,
0.011706761084496975,
0.05614009127020836,
-0.05670111998915672,
-0.011697410605847836,
-0.08205953240394592,
0.030837779864668846,
-0.0065827155485749245,
-0.052811332046985626,
0.017092619091272354,
-0.0054279351606965065,
0.06077791377902031,
0.004614446312189102,
0.04660263657569885,
0.021880049258470535,
0.025115303695201874,
-0.003293695393949747,
0.007050238084048033,
-0.035830918699502945,
0.027452915906906128,
0.04862233251333237,
0.0032633065711706877,
-0.01702716574072838,
0.0011010152520611882,
0.021730441600084305,
0.022067058831453323,
-0.0006136231822893023,
0.014053723774850368,
-0.0025082577485591173,
-0.02614385448396206,
0.01681210659444332,
-0.03523248806595802,
0.03224034607410431,
-0.0006603754009120166,
0.011987274512648582,
-0.048323117196559906,
0.09477614611387253,
0.045293573290109634,
0.047238465398550034,
-0.015026170760393143,
0.055392056703567505,
0.007125041913241148,
0.05789797753095627,
-0.026256058365106583,
0.007873077876865864,
0.018242724239826202,
-0.0005779745988547802,
0.03886046260595322,
-0.02694799192249775,
-0.015531094744801521,
-0.016718601807951927,
0.01971074566245079,
-0.024759987369179726,
0.0763370618224144,
0.021412527188658714,
0.07057718187570572,
-0.06141374632716179,
-0.01714872196316719,
-0.01795286126434803,
-0.05340976268053055,
-0.046415627002716064,
0.035662610083818436,
0.050716832280159,
-0.008209694176912308,
-0.000018974835256813094,
0.017887407913804054,
0.008223718963563442,
-0.02900509163737297,
0.008597737178206444,
0.015100974589586258,
0.004941712133586407,
0.005016515497118235,
0.017597543075680733,
0.015437589958310127,
0.0043830228969454765,
-0.002816822612658143,
-0.017232876271009445,
0.01025744155049324,
-0.015652650967240334,
0.06208697706460953,
0.0005291769630275667,
-0.03412913531064987,
0.01633523404598236,
0.01305322628468275,
0.07371893525123596,
0.027303310111165047,
0.00553546566516161,
-0.019486334174871445,
0.009958227165043354,
-0.001019198913127184,
0.015194478444755077,
-0.004747690167278051,
0.01669990085065365,
-0.05438220873475075,
-0.026330862194299698,
0.02550802379846573,
-0.016447437927126884,
-0.013202833011746407,
-0.05501803755760193,
0.03457795828580856,
-0.011005477979779243,
0.026704881340265274,
-0.02835055999457836,
0.004196013789623976,
-0.028911586850881577,
0.0063255783170461655,
0.001360490219667554,
-0.023600531741976738,
0.016914961859583855,
0.041927412152290344,
0.02870587632060051,
0.016484839841723442,
0.046714842319488525,
0.002636826364323497,
0.034727565944194794,
-0.00512872077524662,
0.0046728868037462234,
-0.028612371534109116,
0.030519863590598106,
-0.0261064525693655,
-0.05688812956213951,
-0.012782063335180283,
-0.02019696868956089,
-0.005801953375339508,
-0.0003035973641090095,
-0.05269912630319595,
-0.000166700963745825,
0.032296448945999146,
0.03990771248936653,
-0.050417616963386536,
-0.004974438808858395,
-0.014755007810890675,
0.05935664847493172,
-0.039832908660173416,
-0.03532599285244942,
0.014698904938995838,
-0.07577603310346603,
0.015110325068235397,
-0.027939140796661377,
-0.0004654770018532872,
-0.04533097520470619,
-0.05322275310754776,
-0.06810866296291351,
0.009429926984012127,
0.031828925013542175,
-0.05853380635380745,
0.030501162633299828,
-0.03530729189515114,
0.03863605484366417,
-0.08363041281700134,
-0.010004979558289051,
-0.03811242803931236,
-0.008574360981583595,
-0.015138376504182816,
-0.06320903450250626,
0.058608610183000565,
-0.06006728112697601,
-0.025582827627658844,
0.04162819683551788,
0.039533697068691254,
0.03195983171463013,
0.06167555972933769,
0.030239351093769073,
-0.003681739093735814,
-0.012838165275752544,
-0.017045866698026657,
-0.03555040434002876,
-0.015250581316649914,
-0.04473254457116127,
0.039047472178936005,
-0.0057785771787166595,
0.049145955592393875,
0.005156772211194038,
-0.03618623688817024,
-0.0008789421408437192,
0.025713732466101646,
-0.07742170989513397,
-0.008868900127708912,
0.05049242079257965,
0.042413633316755295,
-0.054569218307733536,
-0.08512648195028305,
0.03478366881608963,
0.03029545210301876,
0.04428372532129288,
-0.00027861414127983153,
-0.05142746493220329,
0.0529235377907753,
-0.014250083826482296,
-0.018214672803878784,
-0.056850727647542953,
0.009911475703120232,
0.03014584630727768,
-0.05273652821779251,
0.006185321602970362,
-0.016223028302192688,
0.018008964136242867,
-0.051539670675992966,
-0.06687440723180771,
0.04693925008177757,
0.005194174125790596,
0.0731579065322876,
0.012314540334045887,
0.013819962739944458,
-0.011229888536036015,
0.04222662374377251,
-0.0839296281337738,
0.053297556936740875,
0.013511397875845432,
-0.0026672154199332,
0.008223718963563442,
0.03429744392633438,
-0.00513807125389576,
0.0022242378909140825,
0.011080281808972359,
-0.013642304576933384,
0.016157574951648712,
0.010248091071844101,
0.04813610762357712,
0.00801800936460495,
-0.023824943229556084,
0.005512089468538761,
-0.034727565944194794,
0.021730441600084305,
0.034690164029598236,
-0.02771472930908203,
0.019654642790555954,
-0.006143244449049234,
0.015465641394257545,
0.0378132127225399,
0.030688172206282616,
0.0089016268029809,
0.0853508934378624,
0.018841153010725975,
-0.03674726188182831,
0.015353436581790447,
-0.01989775523543358,
-0.010220040567219257,
0.04394710808992386,
-0.03829943761229515,
0.01003303099423647,
0.006788425613194704,
0.02853756956756115,
0.010388348251581192,
0.025451920926570892,
0.042712848633527756,
0.023114308714866638,
0.019374128431081772,
0.056027885526418686,
0.005549491383135319,
0.005694423336535692,
0.008050736039876938,
-0.045630186796188354,
0.044021911919116974,
0.05838419869542122,
-0.04521876946091652,
0.004420424345880747,
0.061488550156354904,
0.023207813501358032,
-0.031043488532304764,
-0.02870587632060051,
0.020720593631267548,
-0.06866969168186188,
0.010098484344780445,
-0.008766045793890953,
0.03364291414618492,
-0.053297556936740875,
-0.02820095233619213,
-0.052025895565748215,
0.05767356604337692,
-0.015437589958310127,
-0.04387230426073074,
0.05296093970537186,
-0.015287983231246471,
-0.004116534721106291
]
|
30,072 | networkx.classes.digraph | add_edge | Add an edge between u and v.
The nodes u and v will be automatically added if they are
not already in the graph.
Edge attributes can be specified with keywords or by directly
accessing the edge's attribute dictionary. See examples below.
Parameters
----------
u_of_edge, v_of_edge : nodes
Nodes can be, for example, strings or numbers.
Nodes must be hashable (and not None) Python objects.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edges_from : add a collection of edges
Notes
-----
Adding an edge that already exists updates the edge data.
Many NetworkX algorithms designed for weighted graphs use
an edge attribute (by default `weight`) to hold a numerical value.
Examples
--------
The following all add the edge e=(1, 2) to graph G:
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = (1, 2)
>>> G.add_edge(1, 2) # explicit two-node form
>>> G.add_edge(*e) # single edge as tuple of two nodes
>>> G.add_edges_from([(1, 2)]) # add edges from iterable container
Associate data to edges using keywords:
>>> G.add_edge(1, 2, weight=3)
>>> G.add_edge(1, 3, weight=7, capacity=15, length=342.7)
For non-string attribute keys, use subscript notation.
>>> G.add_edge(1, 2)
>>> G[1][2].update({0: 5})
>>> G.edges[1, 2].update({0: 5})
| def add_edge(self, u_of_edge, v_of_edge, **attr):
"""Add an edge between u and v.
The nodes u and v will be automatically added if they are
not already in the graph.
Edge attributes can be specified with keywords or by directly
accessing the edge's attribute dictionary. See examples below.
Parameters
----------
u_of_edge, v_of_edge : nodes
Nodes can be, for example, strings or numbers.
Nodes must be hashable (and not None) Python objects.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edges_from : add a collection of edges
Notes
-----
Adding an edge that already exists updates the edge data.
Many NetworkX algorithms designed for weighted graphs use
an edge attribute (by default `weight`) to hold a numerical value.
Examples
--------
The following all add the edge e=(1, 2) to graph G:
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = (1, 2)
>>> G.add_edge(1, 2) # explicit two-node form
>>> G.add_edge(*e) # single edge as tuple of two nodes
>>> G.add_edges_from([(1, 2)]) # add edges from iterable container
Associate data to edges using keywords:
>>> G.add_edge(1, 2, weight=3)
>>> G.add_edge(1, 3, weight=7, capacity=15, length=342.7)
For non-string attribute keys, use subscript notation.
>>> G.add_edge(1, 2)
>>> G[1][2].update({0: 5})
>>> G.edges[1, 2].update({0: 5})
"""
u, v = u_of_edge, v_of_edge
# add nodes
if u not in self._succ:
if u is None:
raise ValueError("None cannot be a node")
self._succ[u] = self.adjlist_inner_dict_factory()
self._pred[u] = self.adjlist_inner_dict_factory()
self._node[u] = self.node_attr_dict_factory()
if v not in self._succ:
if v is None:
raise ValueError("None cannot be a node")
self._succ[v] = self.adjlist_inner_dict_factory()
self._pred[v] = self.adjlist_inner_dict_factory()
self._node[v] = self.node_attr_dict_factory()
# add the edge
datadict = self._adj[u].get(v, self.edge_attr_dict_factory())
datadict.update(attr)
self._succ[u][v] = datadict
self._pred[v][u] = datadict
nx._clear_cache(self)
| (self, u_of_edge, v_of_edge, **attr) | [
-0.02483866550028324,
0.005154460668563843,
0.0019304914167150855,
0.05119449272751808,
-0.0145491948351264,
0.00014869221195112914,
-0.0393684096634388,
0.042869552969932556,
0.03483637422323227,
-0.04551485925912857,
-0.019061779603362083,
0.007449654396623373,
0.05469563603401184,
0.034194495528936386,
-0.006127000320702791,
0.07080089300870895,
0.026044614613056183,
0.010163039900362492,
-0.0068904440850019455,
0.0236327163875103,
-0.032210517674684525,
-0.03427230194211006,
0.015978828072547913,
0.023574363440275192,
0.012633291073143482,
0.013528027571737766,
-0.018857546150684357,
-0.001963314600288868,
0.05255604535341263,
-0.018682489171624184,
-0.027522874996066093,
-0.08706175535917282,
-0.055356960743665695,
0.0025772303342819214,
0.056835222989320755,
0.014617271721363068,
-0.00394607987254858,
0.020306630060076714,
-0.08247137069702148,
0.030693354085087776,
0.04084666818380356,
-0.0417025052011013,
0.028417611494660378,
0.002886011730879545,
0.060102954506874084,
0.04022424295544624,
-0.01317791361361742,
0.036217380315065384,
-0.04707092419266701,
-0.07313498854637146,
-0.0035959656815975904,
-0.03209381178021431,
0.07819219678640366,
0.016844388097524643,
-0.023243699222803116,
0.030887862667441368,
-0.03010983020067215,
0.03392218425869942,
-0.03310525417327881,
0.07784207910299301,
0.006948796566575766,
-0.011232834309339523,
-0.003773454111069441,
-0.01985926181077957,
-0.047382134944200516,
0.03382493183016777,
-0.08363841474056244,
-0.030187632888555527,
-0.01576486974954605,
0.032424475997686386,
0.032424475997686386,
0.007746278773993254,
0.0236327163875103,
0.0073864394798874855,
0.050144147127866745,
0.04796566069126129,
-0.006083236075937748,
0.021843241527676582,
0.023263150826096535,
-0.004697367083281279,
0.01890617236495018,
-0.0132070891559124,
-0.007469105068594217,
-0.023963378742337227,
0.06667732447385788,
0.026005713269114494,
-0.09040729701519012,
-0.0014624566538259387,
0.00357894622720778,
-0.03312470391392708,
-0.05002744495868683,
-0.03648969158530235,
-0.0383569672703743,
0.034252848476171494,
0.03267733380198479,
-0.006632721051573753,
0.034194495528936386,
-0.0777253732085228,
0.05317847430706024,
0.016153885051608086,
-0.013265442103147507,
-0.015239697881042957,
-0.01850743032991886,
0.002193077001720667,
-0.04703202098608017,
-0.1338992714881897,
-0.04205261915922165,
-0.013897593133151531,
-0.03859037533402443,
-0.013245991431176662,
-0.040379848331213,
-0.0016922191716730595,
0.023807773366570473,
0.031685344874858856,
-0.02762012928724289,
0.031724244356155396,
0.006073510739952326,
-0.01603718101978302,
0.017972534522414207,
0.014938210137188435,
0.015317500568926334,
0.021006857976317406,
-0.02188214473426342,
0.0014673193218186498,
0.014413039200007915,
-0.06566588580608368,
-0.0030148732475936413,
-0.00527602806687355,
0.004809209145605564,
-0.0576910562813282,
0.017223678529262543,
-0.023321501910686493,
-0.043647583574056625,
0.04049655422568321,
0.019402166828513145,
-0.04026314616203308,
-0.025013722479343414,
0.02882607840001583,
0.037929050624370575,
0.010270019993185997,
0.015385578386485577,
-0.033941637724637985,
0.029253995046019554,
0.005684494506567717,
-0.06694963574409485,
-0.017671046778559685,
-0.047148726880550385,
-0.029662461951375008,
-0.022776881232857704,
0.017330657690763474,
0.006807778030633926,
0.0014150453498587012,
-0.022562921047210693,
0.0027352680917829275,
0.016465097665786743,
-0.0124485082924366,
-0.052361540496349335,
-0.0417025052011013,
0.0010995777556672692,
0.004835953935980797,
-0.023049192503094673,
-0.018594959750771523,
0.036450788378715515,
-0.005567790009081364,
0.024274591356515884,
0.05948052927851677,
0.043414175510406494,
-0.007775455247610807,
-0.00683695450425148,
0.05255604535341263,
-0.024994270876049995,
-0.0841052383184433,
-0.025499992072582245,
0.03359152376651764,
-0.020228827372193336,
-0.010279744863510132,
0.022815782576799393,
-0.011495419777929783,
0.01132036279886961,
-0.00015727791469544172,
0.03563385456800461,
-0.0010631075128912926,
0.02888442948460579,
-0.03528374060988426,
0.011738554574549198,
-0.011281460523605347,
0.013625281862914562,
0.008898738771677017,
0.030245985835790634,
-0.008597251027822495,
0.021590381860733032,
-0.05022195354104042,
-0.020248277112841606,
0.06383750587701797,
0.01912013068795204,
-0.02707550674676895,
0.003136440645903349,
0.023010289296507835,
0.02390502579510212,
0.0647711455821991,
0.030926764011383057,
-0.022485118359327316,
0.028689922764897346,
0.02832035720348358,
0.032191064208745956,
-0.029467953369021416,
0.002832521917298436,
-0.01793363317847252,
-0.005499712191522121,
-0.032949645072221756,
0.02806749753654003,
0.00208852905780077,
0.04135239124298096,
0.054112110286951065,
-0.017505714669823647,
-0.017019445076584816,
-0.06726084649562836,
0.05492904409766197,
-0.033474817872047424,
0.017369559034705162,
0.001556063536554575,
-0.0022307629697024822,
-0.0008473252528347075,
-0.02513042651116848,
0.05450112745165825,
-0.07990386337041855,
0.010260294191539288,
-0.019567498937249184,
0.03528374060988426,
0.009871277958154678,
0.030440494418144226,
0.007590672466903925,
0.023321501910686493,
0.02137642353773117,
0.021065210923552513,
0.06644391268491745,
-0.002155391266569495,
0.050844378769397736,
0.020326079800724983,
0.002832521917298436,
-0.002504289848729968,
-0.009010580368340015,
-0.02588900737464428,
-0.0011226756032556295,
0.03289129212498665,
0.009978258050978184,
0.04909380525350571,
0.05874139815568924,
-0.0592082180082798,
-0.008713955990970135,
-0.026180770248174667,
-0.0019110406283289194,
-0.012749996036291122,
0.024469099938869476,
0.006462526507675648,
-0.027483973652124405,
-0.021493127569556236,
-0.022348962724208832,
0.006214528810232878,
-0.014024022966623306,
0.009457948617637157,
0.020073220133781433,
0.02040388435125351,
0.0686224028468132,
-0.009856690652668476,
-0.03577001020312309,
0.01430605910718441,
0.004232979379594326,
-0.05547366663813591,
0.002399741904810071,
-0.032249417155981064,
-0.01032837200909853,
0.05648510903120041,
-0.004894306417554617,
0.001794335781596601,
-0.033980537205934525,
-0.03851257264614105,
0.018361549824476242,
-0.03333866223692894,
-0.019363265484571457,
-0.05699082836508751,
-0.018624136224389076,
-0.04057435691356659,
0.04901600256562233,
-0.0625537559390068,
-0.010766014456748962,
0.00394607987254858,
0.015006287954747677,
-0.004855404607951641,
-0.05045536160469055,
0.03650914132595062,
-0.020578941330313683,
-0.0052274009212851524,
0.05430661886930466,
0.021998848766088486,
0.0597139410674572,
0.030265435576438904,
0.03580891340970993,
0.03403889015316963,
0.0264141783118248,
0.05006634443998337,
0.008597251027822495,
0.016640154644846916,
-0.04710982367396355,
-0.02264072559773922,
-0.03604232147336006,
0.08060409128665924,
0.001095930696465075,
-0.01825457066297531,
-0.03166589513421059,
-0.03650914132595062,
0.025830654427409172,
-0.023068642243742943,
0.04983293637633324,
-0.01043535117059946,
0.002285468392074108,
-0.0058984532952308655,
-0.04197481647133827,
0.023768870159983635,
0.03230777010321617,
-0.04356978088617325,
0.03479747101664543,
-0.03639243543148041,
-0.020053768530488014,
0.001635082415305078,
0.024566354230046272,
0.07566358894109726,
0.011359264142811298,
0.04703202098608017,
0.03207436203956604,
-0.003036755369976163,
-0.019149307161569595,
-0.007055775728076696,
0.04897709935903549,
-0.11491529643535614,
0.029954222962260246,
0.026686489582061768,
0.053100667893886566,
0.008183921687304974,
0.026219671592116356,
0.017165325582027435,
0.05944162979722023,
-0.04555376246571541,
-0.005324655212461948,
0.022990839555859566,
-0.06127000227570534,
0.01241933275014162,
-0.03438900411128998,
-0.011602398939430714,
0.06558807939291,
-0.013479400426149368,
0.040885571390390396,
-0.01081464160233736,
-0.010289470665156841,
0.04135239124298096,
0.017330657690763474,
-0.02293248660862446,
-0.07142331451177597,
0.046643003821372986,
-0.016105258837342262,
-0.026025163009762764,
-0.011505144648253918,
0.0502997562289238,
0.009511438198387623,
-0.05224483460187912,
0.013887867331504822,
0.008995992131531239,
0.03715101629495621,
0.03553660213947296,
-0.040146440267562866,
0.020092671737074852,
-0.051155589520931244,
0.025733401998877525,
0.048393577337265015,
-0.020034318789839745,
0.015327226370573044,
-0.01850743032991886,
0.03851257264614105,
0.0009354616631753743,
-0.012847250327467918,
0.012156746350228786,
0.012108120135962963,
-0.004843248054385185,
0.042441632598638535,
0.05442332476377487,
-0.04870478808879852,
0.10993589460849762,
0.013479400426149368,
0.039154451340436935,
0.03629518300294876,
-0.043414175510406494,
0.02713385783135891,
0.0592082180082798,
0.01926601119339466,
-0.07655832916498184,
-0.08488326519727707,
0.07045077532529831,
-0.004040902480483055,
-0.05913041532039642,
-0.0780365914106369,
0.0298569705337286,
0.0211041122674942,
-0.004130862653255463,
0.0541510134935379,
0.02758122608065605,
0.009316930547356606,
-0.02511097677052021,
0.050144147127866745,
0.026569785550236702,
0.02713385783135891,
-0.0010077942861244082,
-0.01146624330431223,
-0.038921039551496506,
-0.003384438343346119,
0.010639584623277187,
-0.025675049051642418,
0.05002744495868683,
-0.02491646818816662,
0.028028594329953194,
0.0010327156633138657,
0.036217380315065384,
0.016212237998843193,
0.023768870159983635,
0.061775725334882736,
0.0179141815751791,
-0.033183056861162186,
0.008076942525804043,
0.0061950781382620335,
-0.025013722479343414,
0.03960181772708893,
0.00357894622720778,
-0.014510292559862137,
0.06060867756605148,
-0.04298625513911247,
0.00002778956331894733,
-0.017651597037911415,
-0.0025213093031197786,
-0.06337068974971771,
0.03059609979391098,
0.006905032321810722,
-0.04174140468239784,
-0.027308914810419083,
-0.019421618431806564,
-0.02291303686797619,
-0.0851166769862175,
-0.05045536160469055,
-0.04294735565781593,
-0.00666189705953002,
0.03300799801945686,
-0.04178030788898468,
0.03306635096669197,
-0.0026817782782018185,
0.019197935238480568,
0.01863386109471321,
-0.06037526577711105,
-0.004607406910508871,
-0.00987614132463932,
-0.041391290724277496,
0.0027060918509960175,
0.006204803474247456,
0.022465668618679047,
-0.003994707018136978,
-0.041196782141923904,
0.006846679840236902,
-0.05547366663813591,
0.06512126326560974,
0.1005995124578476,
-0.04279174655675888,
-0.04586497321724892,
-0.018137866631150246,
0.022465668618679047,
-0.03806520625948906,
-0.030946213752031326,
-0.057107534259557724,
0.04275284707546234,
0.0003251929592806846,
-0.00815474521368742,
-0.037481680512428284,
-0.03158808872103691,
-0.09110752493143082,
0.023029740899801254,
-0.01865331269800663,
0.02417733706533909,
0.010950797237455845,
0.03588671609759331,
0.02664758823812008,
0.01787528023123741,
0.007921336218714714,
-0.001060676178894937,
0.03141303360462189,
0.002256292151287198,
-0.0472654327750206,
-0.026297474279999733,
0.03353317081928253,
0.03180205076932907,
0.04497023671865463,
-0.016134433448314667,
-0.048626985400915146,
-0.0023243699688464403,
-0.035692207515239716,
-0.01021166704595089,
-0.053372979164123535,
-0.02888442948460579,
-0.0004993383772671223,
0.019402166828513145,
0.025675049051642418,
-0.04773224890232086,
0.04123568534851074,
0.008179059252142906,
0.0005990237114019692,
0.03468076512217522,
0.027308914810419083,
0.05792446807026863,
0.07885352522134781,
0.054656732827425,
0.005737984552979469,
-0.008796622045338154,
0.042441632598638535,
0.007084951736032963,
-0.026725392788648605,
0.05372309312224388,
0.03485582396388054,
0.02888442948460579,
-0.0016046905657276511,
-0.05714643374085426,
0.07554688304662704,
-0.057107534259557724,
-0.03827916458249092,
0.0312768779695034,
0.04582607373595238,
-0.025461090728640556,
0.02956520766019821,
-0.004743562545627356,
0.05092218145728111,
-0.00862156506627798,
0.038454219698905945,
0.06185352802276611,
0.0457482673227787,
-0.01888672076165676,
-0.03139358386397362,
0.03666474670171738,
0.04030204564332962,
-0.05889700725674629,
-0.021745989099144936,
-0.02139587327837944,
0.009978258050978184,
0.0248970165848732,
-0.04952172189950943,
0.019295187667012215,
-0.09180775284767151,
-0.06656061857938766,
0.04586497321724892,
-0.0004966030828654766,
0.07943704724311829,
0.044153302907943726,
-0.027911890298128128,
-0.003926629200577736,
-0.03141303360462189,
0.004848110489547253,
0.03012928180396557,
-0.04851028323173523,
-0.022329512983560562,
-0.0062437052838504314,
0.001590102445334196,
-0.0015633576549589634,
0.025305483490228653,
0.0027376993093639612,
-0.03637298569083214,
0.005052343942224979,
-0.021298620849847794,
-0.0381041057407856,
0.006540329661220312,
-0.015473106876015663,
-0.04057435691356659,
-0.08838441222906113,
-0.010999424383044243,
-0.0581967793405056,
-0.0011500281980261207,
0.015794044360518456,
-0.034972529858350754,
-0.09266358613967896,
0.004184352234005928,
0.02956520766019821,
0.005937355104833841,
0.01632894203066826,
0.017223678529262543,
0.011612124741077423,
0.06088098883628845,
-0.019800908863544464,
-0.0050377557054162025,
-0.04427000880241394,
-0.07998166978359222,
-0.013693359680473804,
0.005300341639667749,
-0.011855259537696838,
-0.005339242983609438,
-0.004291331395506859,
0.027775734663009644,
0.014092100784182549,
-0.01556063536554575,
-0.03730662539601326,
-0.012983405031263828,
0.03386383503675461,
0.005071794614195824,
-0.030265435576438904,
0.021473677828907967,
-0.013012581504881382,
-0.01966475322842598,
-0.0541510134935379,
-0.05376199632883072,
0.0320354588329792,
0.04384209215641022,
0.0042135282419621944,
-0.023671617731451988,
-0.045164745301008224,
-0.02633637562394142,
-0.0625537559390068,
0.059597235172986984,
0.0029492266476154327,
0.04699312150478363,
0.002008294453844428,
-0.05644620582461357,
-0.019956516101956367,
-0.006447938270866871,
-0.05243934318423271,
0.014344961382448673,
0.04002973437309265,
-0.017612693831324577,
-0.019635576754808426,
0.002445937367156148,
-0.020228827372193336,
-0.02964301034808159,
0.03438900411128998,
0.0024969957303255796,
0.0462539903819561,
-0.05220593139529228,
0.06438212841749191,
0.03512813523411751,
0.022348962724208832,
-0.0018405314767733216,
-0.014792329631745815,
0.013537753373384476,
-0.032268866896629333,
-0.021590381860733032,
0.023516010493040085,
0.09725397080183029,
0.00927316676825285,
-0.06636611372232437,
0.02417733706533909,
-0.0008509722538292408,
0.04703202098608017,
0.014821505174040794,
-0.016727684065699577,
-0.012506861239671707,
0.029915321618318558,
0.06395421177148819,
-0.005305204074829817,
-0.022232258692383766,
0.0010801269672811031,
-0.006734837777912617,
-0.0288455281406641,
0.006258293054997921,
0.07002285867929459,
-0.06317617744207382,
-0.006511153653264046,
0.04209151864051819,
0.014607546851038933,
-0.03501142933964729,
0.02931234799325466,
0.0005686318036168814,
-0.006686210632324219,
-0.002907893853262067,
-0.00407737260684371,
0.029701363295316696,
-0.002684209728613496,
-0.050610966980457306,
0.021220816299319267,
-0.0363340862095356,
-0.01006578654050827,
-0.018390726298093796,
0.012837524525821209,
0.06127000227570534,
0.010026884265244007,
-0.058313481509685516,
-0.020364981144666672,
0.017019445076584816,
-0.02090960368514061,
0.01316818781197071,
-0.0004719856951851398,
-0.05714643374085426,
-0.007128716446459293,
-0.06667732447385788,
0.0009439713903702796,
-0.02266017533838749,
-0.04224712774157524,
-0.0657825842499733,
-0.030518297106027603,
-0.03610067442059517,
0.013479400426149368,
-0.004228116478770971,
0.020831800997257233,
0.03158808872103691,
-0.014072650112211704,
0.027795186266303062,
0.0226212739944458,
-0.013897593133151531,
-0.0693226307630539,
-0.004067647270858288,
0.01047425251454115,
-0.014111551456153393,
-0.025499992072582245,
0.008723681792616844,
0.01343077328056097,
-0.05504574999213219,
0.03501142933964729,
0.03586726635694504,
0.02042333409190178,
0.015755143016576767,
-0.07574139535427094,
0.03341646492481232,
-0.007746278773993254,
-0.006180489901453257,
0.05605718865990639,
-0.004420192912220955,
-0.022348962724208832,
-0.07142331451177597,
-0.018770016729831696,
-0.06796107441186905,
-0.006180489901453257,
-0.03057665005326271,
0.0015670045977458358,
0.0871395617723465,
0.05275055393576622,
0.057807762175798416,
-0.028028594329953194,
-0.02190159447491169,
-0.007853258401155472,
0.013654457405209541,
0.014413039200007915,
0.07002285867929459,
-0.04209151864051819,
-0.008923051878809929,
-0.028748273849487305,
-0.018682489171624184,
0.011184207163751125,
-0.03403889015316963,
0.029720814898610115,
0.07220134884119034,
-0.010250568389892578,
0.0003674376639537513,
0.04434781149029732,
-0.005951943341642618,
-0.021784890443086624,
0.03853202238678932,
0.039679620414972305,
-0.039446212351322174,
0.038921039551496506,
-0.006015158258378506,
0.016066355630755424,
-0.10083291679620743,
-0.02664758823812008,
0.01770022325217724,
0.005514300428330898,
0.006238842383027077,
-0.02116246521472931,
0.06815558671951294,
0.029759716242551804,
0.08558349311351776
]
|
30,073 | networkx.classes.digraph | add_edges_from | Add all the edges in ebunch_to_add.
Parameters
----------
ebunch_to_add : container of edges
Each edge given in the container will be added to the
graph. The edges must be given as 2-tuples (u, v) or
3-tuples (u, v, d) where d is a dictionary containing edge data.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edge : add a single edge
add_weighted_edges_from : convenient way to add weighted edges
Notes
-----
Adding the same edge twice has no effect but any edge data
will be updated when each duplicate edge is added.
Edge attributes specified in an ebunch take precedence over
attributes specified via keyword arguments.
When adding edges from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_edges)`, and pass this
object to `G.add_edges_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edges_from([(0, 1), (1, 2)]) # using a list of edge tuples
>>> e = zip(range(0, 3), range(1, 4))
>>> G.add_edges_from(e) # Add the path graph 0-1-2-3
Associate data to edges
>>> G.add_edges_from([(1, 2), (2, 3)], weight=3)
>>> G.add_edges_from([(3, 4), (1, 4)], label="WN2898")
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.DiGraph([(1, 2), (2, 3), (3, 4)])
>>> # Grow graph by one new node, adding edges to all existing nodes.
>>> # wrong way - will raise RuntimeError
>>> # G.add_edges_from(((5, n) for n in G.nodes))
>>> # right way - note that there will be no self-edge for node 5
>>> G.add_edges_from(list((5, n) for n in G.nodes))
| def add_edges_from(self, ebunch_to_add, **attr):
"""Add all the edges in ebunch_to_add.
Parameters
----------
ebunch_to_add : container of edges
Each edge given in the container will be added to the
graph. The edges must be given as 2-tuples (u, v) or
3-tuples (u, v, d) where d is a dictionary containing edge data.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edge : add a single edge
add_weighted_edges_from : convenient way to add weighted edges
Notes
-----
Adding the same edge twice has no effect but any edge data
will be updated when each duplicate edge is added.
Edge attributes specified in an ebunch take precedence over
attributes specified via keyword arguments.
When adding edges from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_edges)`, and pass this
object to `G.add_edges_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edges_from([(0, 1), (1, 2)]) # using a list of edge tuples
>>> e = zip(range(0, 3), range(1, 4))
>>> G.add_edges_from(e) # Add the path graph 0-1-2-3
Associate data to edges
>>> G.add_edges_from([(1, 2), (2, 3)], weight=3)
>>> G.add_edges_from([(3, 4), (1, 4)], label="WN2898")
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.DiGraph([(1, 2), (2, 3), (3, 4)])
>>> # Grow graph by one new node, adding edges to all existing nodes.
>>> # wrong way - will raise RuntimeError
>>> # G.add_edges_from(((5, n) for n in G.nodes))
>>> # right way - note that there will be no self-edge for node 5
>>> G.add_edges_from(list((5, n) for n in G.nodes))
"""
for e in ebunch_to_add:
ne = len(e)
if ne == 3:
u, v, dd = e
elif ne == 2:
u, v = e
dd = {}
else:
raise NetworkXError(f"Edge tuple {e} must be a 2-tuple or 3-tuple.")
if u not in self._succ:
if u is None:
raise ValueError("None cannot be a node")
self._succ[u] = self.adjlist_inner_dict_factory()
self._pred[u] = self.adjlist_inner_dict_factory()
self._node[u] = self.node_attr_dict_factory()
if v not in self._succ:
if v is None:
raise ValueError("None cannot be a node")
self._succ[v] = self.adjlist_inner_dict_factory()
self._pred[v] = self.adjlist_inner_dict_factory()
self._node[v] = self.node_attr_dict_factory()
datadict = self._adj[u].get(v, self.edge_attr_dict_factory())
datadict.update(attr)
datadict.update(dd)
self._succ[u][v] = datadict
self._pred[v][u] = datadict
nx._clear_cache(self)
| (self, ebunch_to_add, **attr) | [
-0.013241790235042572,
-0.0014091944321990013,
-0.03268712759017944,
0.029698709025979042,
-0.06298352032899857,
0.014622646383941174,
-0.022711988538503647,
0.008341812528669834,
0.03901433199644089,
-0.025556139647960663,
-0.012211301364004612,
0.024731747806072235,
0.0358816459774971,
0.05836692824959755,
0.004340937361121178,
0.059397418051958084,
0.027637729421257973,
0.0017325105145573616,
-0.0020158952102065086,
0.038354821503162384,
-0.03856091946363449,
-0.03697396442294121,
0.009284710511565208,
0.03017273359000683,
-0.003390310565009713,
0.032748956233263016,
-0.010634652338922024,
0.0041245343163609505,
0.020166680216789246,
0.023268453776836395,
-0.023763088509440422,
-0.09958650916814804,
-0.05816083028912544,
-0.04612471163272858,
0.031553588807582855,
0.0302345622330904,
-0.027390411123633385,
-0.025350041687488556,
-0.06648718565702438,
0.038643356412649155,
0.0735357329249382,
-0.03169785812497139,
0.038684576749801636,
-0.006301443558186293,
0.07980111241340637,
0.04041580110788345,
-0.01765228621661663,
0.02633931301534176,
-0.03909677267074585,
-0.08116135746240616,
0.008063580840826035,
-0.018610641360282898,
0.06191181018948555,
0.02755529060959816,
0.00740406708791852,
0.023041745647788048,
-0.05535789579153061,
0.022155525162816048,
0.0024409720208495855,
0.06599254906177521,
0.01094379834830761,
-0.022876868024468422,
-0.0065899803303182125,
-0.03382066637277603,
-0.044022511690855026,
0.004794352687895298,
-0.10708846896886826,
-0.07102134078741074,
-0.02487601712346077,
0.0023160253185778856,
0.008403642103075981,
0.012242215685546398,
-0.006667267065495253,
0.004977264441549778,
0.0166114903986454,
0.01996058225631714,
-0.0014658713480457664,
0.0302345622330904,
-0.005538881290704012,
-0.019630825147032738,
0.010727396234869957,
0.028029315173625946,
-0.02574162930250168,
-0.01438563410192728,
0.08326355367898941,
0.02988419681787491,
-0.06727035343647003,
0.0409722626209259,
0.006445711944252253,
-0.035119082778692245,
-0.007223731372505426,
-0.046660564839839935,
-0.020723143592476845,
0.019177410751581192,
0.06628108769655228,
0.003421225119382143,
0.000292884447844699,
-0.04830934852361679,
0.04802081361413002,
-0.00003892513268510811,
-0.013581852428615093,
-0.04521787911653519,
-0.0039184363558888435,
0.001008591614663601,
-0.04711398109793663,
-0.11755824834108353,
-0.04146689921617508,
-0.056759364902973175,
-0.02256772108376026,
-0.044929344207048416,
-0.06574523448944092,
0.02456687018275261,
0.05993327125906944,
0.005554338451474905,
-0.03821055218577385,
0.031223833560943604,
0.044846903532743454,
-0.021578451618552208,
0.012108252383768559,
0.005832570604979992,
0.004498086869716644,
0.06615743041038513,
0.005626472644507885,
0.04921618103981018,
0.012468922883272171,
-0.025020286440849304,
0.00982571765780449,
0.00771321402862668,
0.018445761874318123,
-0.10074065625667572,
0.03590225428342819,
-0.04715520143508911,
-0.04822691157460213,
0.03206883370876312,
0.015148196369409561,
-0.04826812818646431,
-0.03192456439137459,
-0.0008398489444516599,
0.014602036215364933,
0.02697821520268917,
-0.005023636389523745,
-0.01951747201383114,
0.0449705645442009,
0.028626998886466026,
-0.07675085961818695,
-0.015931367874145508,
-0.053750332444906235,
0.0003564849612303078,
-0.022299792617559433,
0.01435471884906292,
-0.012901728972792625,
0.0041631776839494705,
-0.04748495668172836,
0.006919736973941326,
0.002887947019189596,
-0.002544021001085639,
-0.08515965193510056,
0.02875065803527832,
-0.02666906826198101,
-0.017466798424720764,
-0.054038871079683304,
-0.01113959215581417,
0.017837774008512497,
-0.012705936096608639,
-0.006054126191884279,
0.0018651860300451517,
0.008635502308607101,
-0.01012455951422453,
-0.02905980497598648,
0.03579920530319214,
-0.00019804720068350434,
-0.06273620575666428,
0.011469348333775997,
0.012283435091376305,
-0.02994602546095848,
0.0023636852856725454,
0.04571251571178436,
0.004536730237305164,
-0.0034521399065852165,
-0.017415273934602737,
0.002157587558031082,
-0.008805532939732075,
0.004572797100991011,
-0.020032716915011406,
0.013860084116458893,
-0.010485230945050716,
-0.010871664620935917,
0.0065075415186584,
0.039241041988134384,
-0.023845527321100235,
0.01408679224550724,
-0.02988419681787491,
-0.0012198420008644462,
0.06846572458744049,
-0.004237888380885124,
-0.023495161905884743,
-0.03685030713677406,
0.0345626175403595,
0.000983473495580256,
0.07106255739927292,
-0.011191116645932198,
-0.026277482509613037,
0.04111653193831444,
0.003052825341001153,
0.03682969510555267,
-0.040168482810258865,
-0.03994177281856537,
-0.03936469927430153,
0.026813337579369545,
0.0003002910816576332,
0.005059703718870878,
-0.02044491283595562,
0.06422010809183121,
0.03254285827279091,
-0.0213723536580801,
-0.016827894374728203,
-0.0509474016726017,
0.01141782384365797,
0.0015405818121507764,
-0.018280884250998497,
0.01585923321545124,
-0.01171666570007801,
-0.01332422997802496,
-0.0640140101313591,
0.03561371937394142,
-0.05362667515873909,
0.0020480980165302753,
0.0009577111923135817,
0.039859335869550705,
0.05688302218914032,
0.04530031979084015,
-0.032171882688999176,
0.028338462114334106,
-0.021990645676851273,
0.08895185589790344,
0.07250524312257767,
-0.03398554399609566,
0.039818115532398224,
0.037757135927677155,
0.013241790235042572,
-0.01998119242489338,
-0.002715339884161949,
-0.031842127442359924,
-0.014787524938583374,
0.03138871118426323,
-0.017106126993894577,
0.0462895892560482,
0.023000527173280716,
-0.06294230371713638,
0.016982467845082283,
0.018857957795262337,
0.006280833855271339,
0.011623921804130077,
0.001262993784621358,
-0.0058068083599209785,
-0.02611260488629341,
-0.022588331252336502,
-0.0334496907889843,
0.035387009382247925,
-0.029822366312146187,
0.07052670419216156,
0.006914584897458553,
0.029863586649298668,
0.046619344502687454,
-0.034830547869205475,
0.017672894522547722,
0.016498137265443802,
-0.00048014370258897543,
-0.06838328391313553,
0.007532878313213587,
-0.009047698229551315,
-0.014437158592045307,
0.04707276076078415,
0.03812811151146889,
0.007821415551006794,
-0.0077905007638037205,
-0.021207474172115326,
0.012901728972792625,
-0.05890278145670891,
-0.02168150059878826,
-0.023577600717544556,
0.000046372028009500355,
-0.03740676864981651,
0.02368064969778061,
-0.06541547179222107,
-0.004281683824956417,
-0.0020635551773011684,
0.02489662729203701,
0.0047016083262860775,
-0.038602136075496674,
0.06389035284519196,
-0.04942227900028229,
0.0036530853249132633,
-0.0005757860490120947,
0.03493359684944153,
0.052554965019226074,
0.014014657586812973,
0.01392191369086504,
0.01422075554728508,
0.062324006110429764,
0.07473110407590866,
-0.0202697291970253,
0.03192456439137459,
-0.008939496241509914,
-0.03843725845217705,
-0.020898327231407166,
0.067352794110775,
0.016663014888763428,
-0.02100137621164322,
-0.01878582499921322,
-0.0378807932138443,
0.059108879417181015,
-0.013623071834445,
-0.000980897224508226,
0.003235737094655633,
-0.02578284777700901,
-0.008609740063548088,
-0.019589606672525406,
0.009274405427277088,
0.029781147837638855,
-0.06141717731952667,
0.04954593628644943,
-0.04233251139521599,
-0.009918461553752422,
0.013695205561816692,
0.04748495668172836,
0.0941455215215683,
0.031038343906402588,
0.051689356565475464,
0.000024896788090700284,
-0.006131412461400032,
-0.019012531265616417,
-0.006182936951518059,
0.07650354504585266,
-0.05898522213101387,
0.041611168533563614,
0.02664845995604992,
0.0146741708740592,
-0.011644531972706318,
-0.02963687852025032,
0.02368064969778061,
0.06248888373374939,
-0.03429469093680382,
-0.01331392489373684,
0.02728736214339733,
-0.04764983430504799,
0.015045147389173508,
0.0010382181499153376,
-0.0302345622330904,
0.058490585535764694,
-0.02551492117345333,
0.0420851930975914,
-0.03412981331348419,
0.0075689456425607204,
0.04682544246315956,
0.02844151109457016,
-0.04169360548257828,
-0.059108879417181015,
0.05395643040537834,
0.0012166217202320695,
0.0060026017017662525,
-0.00034360383870080113,
0.0405394583940506,
0.0008714076830074191,
-0.005033941473811865,
0.0017273580888286233,
-0.025659188628196716,
0.016508441418409348,
0.05251374468207359,
-0.03874640539288521,
0.022402841597795486,
-0.019939972087740898,
0.01404557190835476,
0.026566019281744957,
-0.02932773157954216,
-0.0035423077642917633,
-0.011077762581408024,
0.045176662504673004,
-0.01497301273047924,
0.05680058151483536,
-0.005842875689268112,
0.016559965908527374,
-0.01066556666046381,
0.05395643040537834,
0.08507721871137619,
-0.07666841894388199,
0.1225045919418335,
-0.02000180259346962,
0.06986719369888306,
-0.011149896308779716,
-0.008630350232124329,
0.010031815618276596,
0.05300838127732277,
0.06442620605230331,
-0.06166449189186096,
-0.09488747268915176,
0.049875691533088684,
-0.012530752457678318,
-0.0405394583940506,
-0.054698385298252106,
0.011747580952942371,
0.0008379167993552983,
0.03336725011467934,
0.0733296349644661,
0.02578284777700901,
-0.03202761337161064,
-0.028894925490021706,
0.02279442921280861,
0.018322104588150978,
0.018373629078269005,
0.025246992707252502,
-0.01065526157617569,
-0.02491723746061325,
0.013715815730392933,
-0.0018097972497344017,
-0.024216504767537117,
0.0006994447903707623,
-0.03516030311584473,
0.05354423448443413,
0.018610641360282898,
0.07007328420877457,
0.026607239618897438,
0.01763167604804039,
0.023927966132760048,
0.015828318893909454,
-0.012942948378622532,
-0.009320777840912342,
0.018682776018977165,
-0.05770741403102875,
0.03612896427512169,
0.009418674744665623,
-0.023041745647788048,
0.04501178115606308,
-0.025246992707252502,
0.0020274880807846785,
-0.020547961816191673,
-0.02131052315235138,
-0.04521787911653519,
0.04113714024424553,
-0.01849728636443615,
-0.0260301660746336,
-0.02574162930250168,
0.007352542597800493,
-0.08198574930429459,
-0.04719642177224159,
-0.05618228763341904,
-0.04066311568021774,
0.0009699482470750809,
0.03415042161941528,
-0.024443211033940315,
0.03790140524506569,
-0.0336763970553875,
0.01927015371620655,
0.005124109331518412,
-0.05358545482158661,
0.02283564768731594,
0.046042270958423615,
-0.03412981331348419,
-0.04332178086042404,
0.032130662351846695,
0.018167531117796898,
-0.03623201325535774,
-0.04140507057309151,
0.027699558064341545,
-0.01712673529982567,
0.023000527173280716,
0.07897672057151794,
-0.013056302443146706,
-0.03347029909491539,
-0.0015135315479710698,
0.029781147837638855,
-0.053461797535419464,
-0.0005152447847649455,
-0.061829373240470886,
0.03623201325535774,
0.0053740027360618114,
-0.014787524938583374,
-0.03431530296802521,
-0.029224682599306107,
-0.06459107995033264,
0.042167630046606064,
-0.03460383787751198,
0.062076687812805176,
0.00340061541646719,
0.002921437844634056,
0.021496010944247246,
0.01603441685438156,
-0.009063155390322208,
-0.028565170243382454,
0.030708588659763336,
-0.026813337579369545,
-0.06966109573841095,
-0.022299792617559433,
0.05898522213101387,
0.05424496904015541,
0.0278026070445776,
0.001966946991160512,
-0.037777747958898544,
0.04146689921617508,
-0.06261254101991653,
-0.0013782797614112496,
-0.021094121038913727,
0.024175284430384636,
0.017559541389346123,
0.013746730051934719,
0.05840814486145973,
-0.028936145827174187,
0.041631776839494705,
0.005760436411947012,
-0.02013576589524746,
0.03882884606719017,
0.006646657362580299,
0.031532980501651764,
0.03763347864151001,
0.022320402786135674,
-0.02549431100487709,
-0.0032280085142701864,
0.040704336017370224,
0.009228033944964409,
-0.004714489448815584,
0.0728762224316597,
0.03961201757192612,
0.01391160860657692,
0.016384784132242203,
-0.04472324624657631,
0.029575049877166748,
0.003029639134183526,
-0.060551565140485764,
0.023165404796600342,
0.023495161905884743,
0.00019853025150950998,
0.051730573177337646,
0.04505300149321556,
0.036273229867219925,
0.030399441719055176,
0.012767765671014786,
0.0722167044878006,
0.012716241180896759,
-0.04958715662360191,
-0.007996599189937115,
0.04554763808846474,
0.023289063945412636,
-0.02580345794558525,
0.00710007268935442,
-0.04439348727464676,
0.02308296598494053,
0.008187239058315754,
-0.02697821520268917,
0.03258407860994339,
-0.07625622302293777,
-0.05989205092191696,
0.04789715260267258,
-0.014993622899055481,
0.07423646748065948,
0.043074462562799454,
-0.07390671223402023,
0.006239613983780146,
-0.002998724579811096,
0.01882704347372055,
0.01882704347372055,
-0.05721277743577957,
-0.028256023302674294,
-0.045794956386089325,
-0.010361571796238422,
0.0024435482919216156,
0.01469478104263544,
-0.04206458106637001,
-0.03320237249135971,
-0.014581426978111267,
0.009171356447041035,
-0.0222585741430521,
0.003720067208632827,
-0.024814188480377197,
-0.04538276046514511,
-0.05391521379351616,
-0.03342907875776291,
-0.08198574930429459,
0.005750131793320179,
0.03178029879927635,
-0.05432740971446037,
-0.061211079359054565,
-0.0037896251305937767,
0.03406798467040062,
-0.012829594314098358,
0.02662784978747368,
0.04266226664185524,
-0.039570797234773636,
0.06215912848711014,
-0.01013486459851265,
-0.0004186363657936454,
-0.02285625785589218,
-0.059685952961444855,
-0.002412633504718542,
-0.004572797100991011,
-0.03783957660198212,
-0.012592582032084465,
0.008558215573430061,
-0.00340576795861125,
-0.05985083058476448,
-0.0066518099047243595,
-0.029224682599306107,
0.019187714904546738,
0.05890278145670891,
0.03351151943206787,
-0.02662784978747368,
0.005605862941592932,
0.0078626349568367,
-0.019064055755734444,
-0.026153823360800743,
-0.017260700464248657,
0.04950471594929695,
0.06731157749891281,
0.01481843926012516,
-0.0210425965487957,
-0.05148325860500336,
-0.07456622272729874,
-0.061788152903318405,
0.07213426381349564,
0.021434182301163673,
0.011788800358772278,
0.014344414696097374,
-0.0456300750374794,
-0.011438434012234211,
0.00771321402862668,
-0.058820340782403946,
-0.00024651241255924106,
0.024175284430384636,
0.00039223008207045496,
-0.0065023889765143394,
-0.020166680216789246,
-0.005090618040412664,
-0.022938696667551994,
0.02487601712346077,
-0.03429469093680382,
0.031162003055214882,
-0.07452500611543655,
0.07695695757865906,
0.01728130877017975,
-0.007275255862623453,
-0.009439283981919289,
0.02487601712346077,
0.0028209651354700327,
-0.057295218110084534,
-0.025246992707252502,
-0.01482874434441328,
0.05280228331685066,
0.01140751875936985,
-0.08066672086715698,
0.024422602728009224,
0.002393311820924282,
0.05593497306108475,
0.014169231057167053,
-0.028379682451486588,
-0.010103950276970863,
0.020640704780817032,
0.05844936519861221,
-0.00991330947726965,
0.007605012506246567,
-0.005015907809138298,
-0.005497661419212818,
0.009975139051675797,
-0.0016539356438443065,
0.05478082224726677,
-0.039879944175481796,
0.008367574773728848,
0.035984694957733154,
0.01745649240911007,
0.0019991497974842787,
0.04587739333510399,
0.023866137489676476,
-0.06075766310095787,
-0.02992541529238224,
-0.03285200521349907,
0.036273229867219925,
-0.016364173963665962,
-0.028853707015514374,
-0.031017735600471497,
-0.010031815618276596,
0.00809449516236782,
-0.022464672103524208,
-0.024937845766544342,
0.06739401817321777,
-0.012067032046616077,
-0.034274082630872726,
-0.046042270958423615,
0.014158925972878933,
0.010758310556411743,
-0.014292890205979347,
0.005404917523264885,
-0.036025915294885635,
0.01287081465125084,
-0.03563432767987251,
0.030069684609770775,
0.0213723536580801,
-0.03637627884745598,
-0.011685751378536224,
-0.029018584638834,
-0.038952503353357315,
-0.0028724896255880594,
-0.01774502918124199,
0.03194517642259598,
0.04645446687936783,
-0.007759585976600647,
0.0345626175403595,
0.04323934018611908,
-0.012448313646018505,
-0.07468988001346588,
0.03083224594593048,
-0.013643681071698666,
0.035345789045095444,
-0.031017735600471497,
0.027349192649126053,
0.017157651484012604,
-0.022423451766371727,
0.02938956208527088,
-0.003465021029114723,
0.05037032812833786,
0.008032665587961674,
-0.06520937383174896,
0.0035757985897362232,
0.0016732573276385665,
0.01699277199804783,
0.04942227900028229,
-0.007517421152442694,
-0.039261650294065475,
-0.04018909111618996,
0.006394187454134226,
-0.03577859699726105,
-0.0070794629864394665,
-0.02633931301534176,
-0.014014657586812973,
0.057583753019571304,
0.04080738499760628,
0.0635605975985527,
-0.008522148244082928,
-0.047855932265520096,
-0.04023031145334244,
0.0516069158911705,
0.004209549631923437,
0.03260468691587448,
-0.02044491283595562,
-0.025844678282737732,
-0.045794956386089325,
0.01438563410192728,
-0.03147115185856819,
-0.03736555203795433,
0.04082799330353737,
0.04146689921617508,
-0.010407944209873676,
-0.012757460586726665,
0.05890278145670891,
0.00815117172896862,
0.008403642103075981,
0.03194517642259598,
0.010871664620935917,
-0.03977689519524574,
0.031285662204027176,
-0.04233251139521599,
0.004912858828902245,
-0.08408794552087784,
-0.008295441046357155,
-0.011634226888418198,
0.030152123421430588,
0.008609740063548088,
0.008140867576003075,
0.059644732624292374,
0.025906506925821304,
0.05725399777293205
]
|
30,074 | networkx.classes.digraph | add_node | Add a single node `node_for_adding` and update node attributes.
Parameters
----------
node_for_adding : node
A node can be any hashable Python object except None.
attr : keyword arguments, optional
Set or change node attributes using key=value.
See Also
--------
add_nodes_from
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_node(1)
>>> G.add_node("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_node(K3)
>>> G.number_of_nodes()
3
Use keywords set/change node attributes:
>>> G.add_node(1, size=10)
>>> G.add_node(3, weight=0.4, UTM=("13S", 382871, 3972649))
Notes
-----
A hashable object is one that can be used as a key in a Python
dictionary. This includes strings, numbers, tuples of strings
and numbers, etc.
On many platforms hashable items also include mutables such as
NetworkX Graphs, though one should be careful that the hash
doesn't change on mutables.
| def add_node(self, node_for_adding, **attr):
"""Add a single node `node_for_adding` and update node attributes.
Parameters
----------
node_for_adding : node
A node can be any hashable Python object except None.
attr : keyword arguments, optional
Set or change node attributes using key=value.
See Also
--------
add_nodes_from
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_node(1)
>>> G.add_node("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_node(K3)
>>> G.number_of_nodes()
3
Use keywords set/change node attributes:
>>> G.add_node(1, size=10)
>>> G.add_node(3, weight=0.4, UTM=("13S", 382871, 3972649))
Notes
-----
A hashable object is one that can be used as a key in a Python
dictionary. This includes strings, numbers, tuples of strings
and numbers, etc.
On many platforms hashable items also include mutables such as
NetworkX Graphs, though one should be careful that the hash
doesn't change on mutables.
"""
if node_for_adding not in self._succ:
if node_for_adding is None:
raise ValueError("None cannot be a node")
self._succ[node_for_adding] = self.adjlist_inner_dict_factory()
self._pred[node_for_adding] = self.adjlist_inner_dict_factory()
attr_dict = self._node[node_for_adding] = self.node_attr_dict_factory()
attr_dict.update(attr)
else: # update attr even if node already exists
self._node[node_for_adding].update(attr)
nx._clear_cache(self)
| (self, node_for_adding, **attr) | [
-0.01791699416935444,
0.02858896739780903,
0.030972935259342194,
0.039782434701919556,
0.009498614817857742,
0.02404453232884407,
-0.06909776479005814,
0.042427144944667816,
0.04399162530899048,
-0.044401369988918304,
-0.01733962818980217,
0.020487207919359207,
0.05498021841049194,
0.06120087951421738,
-0.01668776199221611,
-0.005606045015156269,
0.010774409398436546,
0.018196366727352142,
-0.03914919123053551,
0.015141909942030907,
-0.02082245424389839,
0.049690794199705124,
0.030898435041308403,
0.026242252439260483,
0.016082458198070526,
-0.002386294072493911,
0.03685835003852844,
-0.0035759492311626673,
0.008669814094901085,
0.014424857683479786,
-0.004884336609393358,
-0.09141019731760025,
-0.05263350158929825,
-0.01877373270690441,
0.03603886067867279,
0.02132532186806202,
-0.015952086076140404,
0.040974415838718414,
-0.07043875008821487,
-0.007170523051172495,
0.042352646589279175,
-0.01705094426870346,
0.010616098530590534,
-0.02192131243646145,
0.03494000434875488,
0.02741561084985733,
0.02205168642103672,
0.07233846932649612,
-0.07271096855401993,
-0.06760779023170471,
-0.005564139690250158,
-0.04682258516550064,
0.041793905198574066,
0.032295290380716324,
-0.02868209220468998,
-0.007566298823803663,
-0.01590552367269993,
-0.008828124031424522,
-0.01906241662800312,
0.07800038903951645,
0.03510762378573418,
0.008306631818413734,
-0.020319586619734764,
-0.057624928653240204,
-0.05010053887963295,
0.0029636609833687544,
-0.0884302407503128,
-0.02730386145412922,
-0.002889161929488182,
0.035033125430345535,
0.01898791827261448,
-0.005955258850008249,
0.03929819166660309,
-0.0015586575027555227,
0.07140723615884781,
0.023001547902822495,
-0.009936296381056309,
0.01437829528003931,
-0.0017786622047424316,
0.022871173918247223,
0.0066397180780768394,
0.0062113492749631405,
-0.011482149362564087,
0.001588922692462802,
0.020468583330512047,
0.008418380282819271,
-0.039782434701919556,
-0.005824885796755552,
-0.017861120402812958,
-0.04458761587738991,
-0.055799707770347595,
-0.019481472671031952,
0.009871109388768673,
0.025907006114721298,
0.06164787337183952,
-0.014937037602066994,
0.03937269002199173,
-0.05468222126364708,
0.06760779023170471,
0.027788104489445686,
-0.00997354555875063,
0.01875510811805725,
-0.009326335974037647,
-0.009684862568974495,
-0.02190268784761429,
-0.08537578582763672,
-0.03989418223500252,
0.0017891386523842812,
-0.0200215894728899,
0.028439970687031746,
-0.06760779023170471,
-0.020170588046312332,
0.01699507050216198,
0.01663188822567463,
0.008260070346295834,
0.02611187845468521,
-0.00586213544011116,
-0.00018057262059301138,
-0.0034432478714734316,
0.01065334863960743,
-0.004472264554351568,
0.022871173918247223,
-0.0034898098092526197,
0.008744313381612301,
0.011621834710240364,
-0.03482825309038162,
0.02728523686528206,
-0.002933395793661475,
-0.006397596560418606,
-0.07874538004398346,
0.00016864115605130792,
-0.011137591674923897,
-0.029184959828853607,
0.07535567879676819,
0.02464052475988865,
-0.03527524694800377,
-0.030432816594839096,
0.022144809365272522,
0.0096476124599576,
0.07040149718523026,
0.01789836958050728,
-0.045630600303411484,
0.04127241298556328,
-0.005769011564552784,
-0.06671380251646042,
-0.012916253879666328,
-0.096029132604599,
-0.022927049547433853,
-0.036970097571611404,
-0.02607462927699089,
-0.0005977376131340861,
-0.03155029937624931,
0.007868950255215168,
0.03825520724058151,
-0.025515887886285782,
0.027899853885173798,
-0.03730534389615059,
-0.04209190234541893,
-0.01896929182112217,
-0.007524393033236265,
-0.008423035964369774,
-0.006094944663345814,
0.07390294969081879,
-0.020915577188134193,
-0.0054430789314210415,
-0.0026773056015372276,
0.003082393668591976,
-0.026447122916579247,
-0.039000194519758224,
0.03345002233982086,
-0.033003032207489014,
-0.08783425390720367,
-0.0024980425368994474,
0.03326377645134926,
-0.006593156140297651,
-0.011798769235610962,
0.005042647011578083,
-0.025627635419368744,
-0.005224238149821758,
-0.005131114274263382,
0.0071099926717579365,
-0.009289086796343327,
0.007752546109259129,
0.02415628172457218,
-0.005331330467015505,
0.0013502932852134109,
-0.01436898298561573,
0.030172070488333702,
0.033077530562877655,
0.010457788594067097,
0.050324033945798874,
0.0023292559199035168,
-0.025664884597063065,
0.06552182137966156,
0.018457112833857536,
-0.03685835003852844,
0.007552329916507006,
-0.007044806145131588,
0.018820295110344887,
0.12977714836597443,
0.032258041203022,
-0.00218375027179718,
0.04317213594913483,
0.0469343326985836,
0.027713606134057045,
-0.0452953539788723,
-0.016948508098721504,
0.020189212635159492,
-0.03579673916101456,
0.000609960057772696,
0.005200957413762808,
0.0048098377883434296,
0.06973100453615189,
0.09304917603731155,
-0.03993143141269684,
-0.0402294285595417,
-0.06600606441497803,
0.04458761587738991,
-0.023783786222338676,
-0.021660566329956055,
0.04268789291381836,
-0.010597473941743374,
0.01469491608440876,
-0.05196300894021988,
0.025162016972899437,
-0.048349812626838684,
0.03268640860915184,
-0.009372897446155548,
0.020151963457465172,
0.006076319608837366,
0.027862602844834328,
0.018801670521497726,
0.030470065772533417,
0.017712123692035675,
0.034977253526449203,
-0.00894918479025364,
0.025106143206357956,
0.03466063365340233,
0.0072031160816550255,
-0.021176323294639587,
-0.04954179376363754,
0.012087453156709671,
-0.010085294023156166,
-0.0039484440349042416,
0.016836760565638542,
0.032928530126810074,
0.020896952599287033,
0.06887426972389221,
-0.09692312031984329,
-0.037044599652290344,
-0.0019684017170220613,
0.015449217520654202,
0.009172681719064713,
0.034344010055065155,
0.007198459934443235,
0.00003244778054067865,
-0.05527821183204651,
-0.030563190579414368,
-0.005042647011578083,
0.0009184322552755475,
0.020245086401700974,
0.005419797729700804,
0.02667061984539032,
0.04875955730676651,
0.012534447014331818,
-0.029110461473464966,
0.006807340774685144,
0.05606045201420784,
-0.044364117085933685,
0.013717117719352245,
-0.00916802603751421,
0.009684862568974495,
0.06641580164432526,
-0.0013910349225625396,
0.023895535618066788,
-0.0585189163684845,
-0.018224302679300308,
0.03622511029243469,
-0.04682258516550064,
0.0009964233031496406,
-0.04872230812907219,
-0.01469491608440876,
-0.02275942638516426,
0.005815573502331972,
-0.05531546473503113,
-0.02992994897067547,
0.014797352254390717,
0.07546742260456085,
-0.024994393810629845,
-0.03264915943145752,
0.011798769235610962,
0.0007461534696631134,
-0.04164490848779678,
0.05520371347665787,
0.03253741189837456,
0.047753822058439255,
-0.05423522740602493,
0.06440433114767075,
0.02123219706118107,
0.054309725761413574,
0.047083329409360886,
0.004178924951702356,
-0.035815365612506866,
-0.0876852497458458,
-0.006504688877612352,
0.0025469325482845306,
0.0425761453807354,
0.026298126205801964,
-0.02931533381342888,
0.03600161150097847,
-0.025106143206357956,
0.04056467115879059,
-0.002297826576977968,
0.05077102780342102,
-0.012217826209962368,
-0.006062351167201996,
0.015132597647607327,
-0.04983979091048241,
0.0248267725110054,
0.05419797822833061,
-0.05758767947554588,
-0.02262905240058899,
-0.07919237017631531,
0.004560731817036867,
-0.019537346437573433,
-0.028495844453573227,
0.06842727959156036,
0.03492137789726257,
0.017348941415548325,
0.04469936341047287,
-0.03078668750822544,
-0.0014981271233409643,
-0.011957080103456974,
0.04127241298556328,
-0.1237427368760109,
-0.0010144660482183099,
0.01841055043041706,
-0.006919089239090681,
-0.008362505584955215,
0.019835343584418297,
0.003054456552490592,
0.03717496991157532,
-0.06071663647890091,
-0.0031056746374815702,
-0.0008485894650220871,
-0.06626680493354797,
0.02261042781174183,
0.0019311521900817752,
-0.020226461812853813,
0.011267964728176594,
-0.027210738509893417,
0.055762454867362976,
-0.023616164922714233,
0.00483311852440238,
0.06254185736179352,
0.022237934172153473,
-0.010560224764049053,
-0.04261339455842972,
0.00586213544011116,
-0.022312432527542114,
-0.028477219864726067,
-0.007598891854286194,
0.037621963769197464,
0.010066669434309006,
-0.04268789291381836,
0.018671296536922455,
0.017162693664431572,
0.06153612583875656,
0.06876251846551895,
-0.08530128747224808,
0.03196004405617714,
-0.06790578365325928,
-0.023113295435905457,
0.029613329097628593,
-0.026521623134613037,
0.02609325386583805,
-0.0117335831746459,
0.014601792208850384,
-0.04008042812347412,
-0.03318927809596062,
0.023653414100408554,
0.0010272705694660544,
-0.005959914997220039,
0.029706452041864395,
0.016138331964612007,
-0.023038797080516815,
0.10936444252729416,
0.007729264907538891,
0.033766645938158035,
0.02415628172457218,
-0.04387987405061722,
0.0167622622102499,
0.029911324381828308,
0.038962945342063904,
-0.07498317956924438,
-0.05382548272609711,
0.06865077465772629,
-0.034399885684251785,
-0.08254482597112656,
-0.07688290625810623,
0.05028678476810455,
-0.009917671792209148,
0.039000194519758224,
0.0574386827647686,
0.03313340246677399,
0.030544565990567207,
-0.04011768102645874,
0.009591738693416119,
0.01400580070912838,
0.03350589796900749,
-0.014480731450021267,
-0.025571761652827263,
-0.023672038689255714,
-0.013931301422417164,
0.02678236924111843,
-0.014508668333292007,
0.04667358472943306,
-0.002560900989919901,
0.023783786222338676,
-0.01831742748618126,
0.0220144372433424,
-0.01503947377204895,
-0.011640459299087524,
0.0934961661696434,
0.03477238118648529,
-0.014508668333292007,
0.04134691134095192,
-0.011258652433753014,
-0.045630600303411484,
0.05401173233985901,
-0.003485153429210186,
0.008409067988395691,
0.07695740461349487,
-0.0176655612885952,
0.0200215894728899,
-0.053713735193014145,
0.0016017272137105465,
-0.08410930633544922,
-0.0032895938493311405,
0.016520140692591667,
-0.013623993843793869,
-0.0182988028973341,
-0.007617516443133354,
-0.016278019174933434,
-0.10295753180980682,
-0.016901947557926178,
-0.013484308496117592,
-0.005629326216876507,
0.032351166009902954,
-0.022852549329400063,
0.05255900323390961,
-0.025068894028663635,
-0.003028847509995103,
0.021604692563414574,
-0.009424115531146526,
-0.029762325808405876,
-0.03989418223500252,
-0.05885416269302368,
0.009917671792209148,
-0.010280854068696499,
-0.019630471244454384,
0.04954179376363754,
-0.00620203698053956,
0.0342508889734745,
-0.03933544084429741,
0.014294483698904514,
0.0746479406952858,
-0.023914160206913948,
-0.011919829994440079,
0.0018496690317988396,
0.006397596560418606,
-0.030842561274766922,
-0.027918478474020958,
-0.08396030217409134,
0.058481667190790176,
-0.0038786011282354593,
-0.03488412871956825,
-0.04719507694244385,
-0.09610363095998764,
-0.07904337346553802,
0.0110537800937891,
-0.031699299812316895,
0.06373384594917297,
0.019816717132925987,
0.02402590773999691,
0.015793776139616966,
0.04544435441493988,
-0.0073381457477808,
0.03343139961361885,
0.037677839398384094,
-0.03313340246677399,
-0.0731952115893364,
-0.016529452055692673,
0.03009757213294506,
-0.009456709027290344,
0.029054585844278336,
-0.021846814081072807,
-0.06224386394023895,
-0.0170323196798563,
-0.00517767621204257,
-0.03806895762681961,
-0.022144809365272522,
0.024845397099852562,
0.03006032295525074,
0.0496535450220108,
0.040452923625707626,
-0.07159347832202911,
0.04734407737851143,
0.009573114104568958,
0.0248267725110054,
0.04320938512682915,
0.01468560378998518,
0.04872230812907219,
0.021735066547989845,
0.05714068561792374,
0.012599633075296879,
-0.019574595615267754,
0.013456370681524277,
0.010588161647319794,
-0.030265195295214653,
0.04183115437626839,
0.04667358472943306,
0.045109108090400696,
-0.02069208025932312,
-0.016007959842681885,
0.044475868344306946,
-0.03359902277588844,
-0.07449893653392792,
-0.01569133996963501,
0.06365934759378433,
-0.014229297637939453,
0.014769414439797401,
-0.02592563070356846,
0.0353311225771904,
-0.001158225699327886,
0.03400876745581627,
0.06909776479005814,
0.048387061804533005,
-0.0025329638738185167,
-0.07330695539712906,
0.029762325808405876,
-0.016771573573350906,
0.0037365874741226435,
-0.0077106403186917305,
-0.018131179735064507,
0.03210904449224472,
0.028179224580526352,
-0.048983052372932434,
0.013251499272882938,
-0.057624928653240204,
-0.05732693523168564,
-0.008204195648431778,
-0.02190268784761429,
0.05863066762685776,
0.07487143576145172,
-0.03266778588294983,
-0.0011646279599517584,
-0.04462486505508423,
0.00919596292078495,
0.020878328010439873,
-0.035014502704143524,
-0.02737835980951786,
0.0007112320745363832,
0.00769667187705636,
0.014974286779761314,
-0.016622576862573624,
-0.03069356270134449,
-0.03825520724058151,
0.02665199525654316,
0.009317023679614067,
0.01002010703086853,
0.05069652944803238,
-0.019611846655607224,
-0.025515887886285782,
-0.0683155283331871,
-0.017190629616379738,
-0.04544435441493988,
0.026465749368071556,
-0.0011884908890351653,
-0.04078816995024681,
-0.06853902339935303,
0.04604034498333931,
0.017842495813965797,
0.014918413013219833,
-0.00029683171305805445,
0.034381259232759476,
-0.053154993802309036,
0.05222375690937042,
-0.02864484302699566,
-0.031028809025883675,
-0.039037443697452545,
-0.06615506112575531,
0.028235098347067833,
-0.0069982442073524,
-0.020468583330512047,
0.016315268352627754,
0.0008782726363278925,
0.0033408119343221188,
0.012432010844349861,
-0.0011785965180024505,
-0.027583232149481773,
-0.03158755227923393,
0.026521623134613037,
0.0373239703476429,
-0.006760778836905956,
0.039819683879613876,
-0.037156347185373306,
-0.004753963556140661,
-0.0574386827647686,
-0.037119098007678986,
0.016147645190358162,
0.019127603620290756,
-0.00701686879619956,
-0.02080382965505123,
-0.023001547902822495,
-0.041682157665491104,
-0.04011768102645874,
0.006113569252192974,
0.018708545714616776,
-0.006537281908094883,
0.0013502932852134109,
-0.038478702306747437,
-0.020449958741664886,
0.01607314683496952,
-0.04067642241716385,
-0.021101824939250946,
0.03799445927143097,
-0.02193993702530861,
-0.03218354284763336,
-0.029706452041864395,
-0.011947767809033394,
-0.02078520506620407,
0.03132680431008339,
-0.03285403177142143,
0.029576079919934273,
-0.03754746541380882,
0.056358449161052704,
0.051180772483348846,
0.019798092544078827,
0.025869756937026978,
-0.01601727120578289,
0.004546763375401497,
-0.04950454458594322,
-0.04592859745025635,
0.007515080738812685,
0.010252916254103184,
0.029557455331087112,
-0.03536837175488472,
0.027545982971787453,
-0.023914160206913948,
-0.010569537058472633,
0.015700651332736015,
0.0035363715142011642,
0.009591738693416119,
0.07829838246107101,
-0.01368917990475893,
-0.028998712077736855,
0.009209931828081608,
0.015011535957455635,
-0.03454888239502907,
-0.012236450798809528,
0.004865712020546198,
0.07405194640159607,
-0.018857544288039207,
0.012879004701972008,
-0.00769201572984457,
0.019779467955231667,
-0.04455036669969559,
0.026186376810073853,
0.020934201776981354,
-0.03473513200879097,
-0.01701369509100914,
0.006579187698662281,
0.012664820067584515,
0.01469491608440876,
-0.039111942052841187,
-0.001208279631100595,
0.009116807952523232,
-0.00918665062636137,
-0.014629729092121124,
0.0044652801007032394,
0.04186840355396271,
-0.012096765451133251,
-0.04060192406177521,
-0.03184829652309418,
0.06418083608150482,
0.0008148321649059653,
-0.0034898098092526197,
-0.014406232163310051,
-0.028384096920490265,
-0.01031810324639082,
-0.08306631445884705,
0.004358187783509493,
0.005079896654933691,
-0.0365976057946682,
-0.02540413849055767,
-0.04279964044690132,
0.01605452224612236,
0.033878393471241,
-0.029203584417700768,
0.023802410811185837,
0.05322949215769768,
-0.006132193841040134,
0.003485153429210186,
0.017823871225118637,
-0.013856803067028522,
-0.06805478036403656,
0.005750386975705624,
0.003915850538760424,
0.008348537608981133,
-0.029706452041864395,
0.022442806512117386,
0.02929670736193657,
0.008977122604846954,
0.009065589867532253,
0.007971386425197124,
0.035033125430345535,
0.0011314526200294495,
-0.06529831886291504,
0.019779467955231667,
0.017246505245566368,
-0.02810472436249256,
0.06023239344358444,
0.03948443755507469,
-0.00585747929289937,
-0.053639236837625504,
0.0026400561910122633,
-0.08790875226259232,
0.00768735958263278,
-0.031084682792425156,
0.005000741221010685,
0.075020432472229,
0.018187053501605988,
0.03808758407831192,
0.011156216263771057,
-0.032388415187597275,
0.002633071970194578,
0.03873945027589798,
0.014899788424372673,
0.0442151203751564,
-0.014285171404480934,
0.014843913726508617,
-0.006141506601125002,
-0.00952189601957798,
0.03428813815116882,
-0.042427144944667816,
0.018093930557370186,
0.042501647025346756,
0.003676057094708085,
0.0055362023413181305,
0.05155326798558235,
-0.0206548310816288,
0.0023490446619689465,
0.035684991627931595,
0.08179983496665955,
-0.010960656218230724,
0.012674132362008095,
0.026577496901154518,
0.045816849917173386,
-0.09126120060682297,
-0.008353193290531635,
-0.032928530126810074,
0.03231391683220863,
-0.015840336680412292,
-0.0013305045431479812,
0.03719359636306763,
-0.005922665819525719,
0.07505768537521362
]
|
30,075 | networkx.classes.digraph | add_nodes_from | Add multiple nodes.
Parameters
----------
nodes_for_adding : iterable container
A container of nodes (list, dict, set, etc.).
OR
A container of (node, attribute dict) tuples.
Node attributes are updated using the attribute dict.
attr : keyword arguments, optional (default= no attributes)
Update attributes for all nodes in nodes.
Node attributes specified in nodes as a tuple take
precedence over attributes specified via keyword arguments.
See Also
--------
add_node
Notes
-----
When adding nodes from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.add_nodes_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_nodes_from("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_nodes_from(K3)
>>> sorted(G.nodes(), key=str)
[0, 1, 2, 'H', 'e', 'l', 'o']
Use keywords to update specific node attributes for every node.
>>> G.add_nodes_from([1, 2], size=10)
>>> G.add_nodes_from([3, 4], weight=0.4)
Use (node, attrdict) tuples to update attributes for specific nodes.
>>> G.add_nodes_from([(1, dict(size=11)), (2, {"color": "blue"})])
>>> G.nodes[1]["size"]
11
>>> H = nx.Graph()
>>> H.add_nodes_from(G.nodes(data=True))
>>> H.nodes[1]["size"]
11
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.DiGraph([(0, 1), (1, 2), (3, 4)])
>>> # wrong way - will raise RuntimeError
>>> # G.add_nodes_from(n + 1 for n in G.nodes)
>>> # correct way
>>> G.add_nodes_from(list(n + 1 for n in G.nodes))
| def add_nodes_from(self, nodes_for_adding, **attr):
"""Add multiple nodes.
Parameters
----------
nodes_for_adding : iterable container
A container of nodes (list, dict, set, etc.).
OR
A container of (node, attribute dict) tuples.
Node attributes are updated using the attribute dict.
attr : keyword arguments, optional (default= no attributes)
Update attributes for all nodes in nodes.
Node attributes specified in nodes as a tuple take
precedence over attributes specified via keyword arguments.
See Also
--------
add_node
Notes
-----
When adding nodes from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.add_nodes_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_nodes_from("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_nodes_from(K3)
>>> sorted(G.nodes(), key=str)
[0, 1, 2, 'H', 'e', 'l', 'o']
Use keywords to update specific node attributes for every node.
>>> G.add_nodes_from([1, 2], size=10)
>>> G.add_nodes_from([3, 4], weight=0.4)
Use (node, attrdict) tuples to update attributes for specific nodes.
>>> G.add_nodes_from([(1, dict(size=11)), (2, {"color": "blue"})])
>>> G.nodes[1]["size"]
11
>>> H = nx.Graph()
>>> H.add_nodes_from(G.nodes(data=True))
>>> H.nodes[1]["size"]
11
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.DiGraph([(0, 1), (1, 2), (3, 4)])
>>> # wrong way - will raise RuntimeError
>>> # G.add_nodes_from(n + 1 for n in G.nodes)
>>> # correct way
>>> G.add_nodes_from(list(n + 1 for n in G.nodes))
"""
for n in nodes_for_adding:
try:
newnode = n not in self._node
newdict = attr
except TypeError:
n, ndict = n
newnode = n not in self._node
newdict = attr.copy()
newdict.update(ndict)
if newnode:
if n is None:
raise ValueError("None cannot be a node")
self._succ[n] = self.adjlist_inner_dict_factory()
self._pred[n] = self.adjlist_inner_dict_factory()
self._node[n] = self.node_attr_dict_factory()
self._node[n].update(newdict)
nx._clear_cache(self)
| (self, nodes_for_adding, **attr) | [
-0.036329466849565506,
-0.0019499931950122118,
-0.030053280293941498,
0.01914035901427269,
-0.0408153310418129,
0.0648941621184349,
-0.05101413652300835,
0.02852446585893631,
0.0782511755824089,
-0.0073725082911551,
-0.01795351691544056,
0.006130346097052097,
0.05318666249513626,
0.06449184566736221,
-0.0014005753910169005,
0.007885466329753399,
0.018909025937318802,
-0.006844463758170605,
-0.019240938127040863,
0.01244173664599657,
-0.02240920625627041,
0.02667379565536976,
0.019673433154821396,
0.036329466849565506,
0.010138455778360367,
-0.004915843717753887,
0.035142622888088226,
-0.0008392137242481112,
0.008297843858599663,
0.021222364157438278,
-0.026392171159386635,
-0.06513556092977524,
-0.0478358119726181,
-0.036631207913160324,
0.0166962668299675,
0.021503986790776253,
-0.03148151561617851,
0.010983327403664589,
-0.05024972930550575,
0.012673069722950459,
0.06513556092977524,
-0.02240920625627041,
0.01955273747444153,
-0.024018485099077225,
0.04320913553237915,
0.03578633442521095,
0.006462260149419308,
0.054393623024225235,
-0.05560057982802391,
-0.07056687027215958,
0.021946538239717484,
-0.045421890914440155,
0.045944906771183014,
0.019965114071965218,
-0.01803397946059704,
0.014916002750396729,
-0.02918829396367073,
0.0054212575778365135,
0.017350036650896072,
0.059100762009620667,
0.03134070336818695,
-0.010540775954723358,
-0.020719463005661964,
-0.04988764226436615,
-0.04799673706293106,
-0.012059533037245274,
-0.09808553755283356,
-0.06167560815811157,
-0.014986407943069935,
0.02136317454278469,
0.0020920622628182173,
0.012934577651321888,
0.03335230052471161,
-0.004852981306612492,
0.024943821132183075,
0.05753171443939209,
-0.009655672125518322,
0.050812978297472,
-0.010158572345972061,
-0.006155491340905428,
-0.008242524228990078,
0.040714751929044724,
-0.014634378254413605,
0.009238265454769135,
0.05185900628566742,
0.007935755886137486,
-0.07221638411283493,
0.021262595430016518,
0.015237858518958092,
-0.050692278891801834,
-0.049686480313539505,
-0.012572490610182285,
0.004817778244614601,
0.013487767428159714,
0.0374760776758194,
0.017591428011655807,
0.014453334733843803,
-0.0819927528500557,
0.04510003700852394,
0.026975534856319427,
0.0010887776734307408,
-0.010530717670917511,
-0.0015967062208801508,
0.0016256229719147086,
-0.01810438558459282,
-0.09341862797737122,
-0.07113011926412582,
-0.030837804079055786,
0.004651821218430996,
0.013015042059123516,
-0.08287785202264786,
0.006593013647943735,
0.09092424809932709,
-0.0075334361754357815,
0.00008034607162699103,
0.021745380014181137,
0.00972104910761118,
-0.014553914777934551,
-0.008946583606302738,
0.001337712979875505,
-0.004390313755720854,
0.042525190860033035,
0.02619101107120514,
0.0408153310418129,
0.011787966825067997,
-0.017370153218507767,
0.0408153310418129,
0.01177790854126215,
0.011043675243854523,
-0.09800507873296738,
0.007583726197481155,
-0.02158445119857788,
-0.02425987645983696,
0.053870607167482376,
0.03763700649142265,
-0.0474737249314785,
-0.06879666447639465,
0.004772517364472151,
0.005587214604020119,
0.03196429833769798,
0.005577156785875559,
-0.04369191825389862,
0.04505980387330055,
0.020940739661455154,
-0.0823548436164856,
-0.01583128049969673,
-0.04429539665579796,
-0.01810438558459282,
-0.07294055819511414,
-0.012069590389728546,
-0.017339978367090225,
-0.008846004493534565,
0.015881570056080818,
0.03160221129655838,
-0.04224356636404991,
0.01928117126226425,
-0.06706669181585312,
-0.03512251004576683,
-0.023415006697177887,
-0.017309805378317833,
-0.03453914448618889,
0.008187205530703068,
0.03256778046488762,
-0.001745061599649489,
0.0012182743521407247,
0.006472317967563868,
-0.010309441946446896,
-0.038039326667785645,
-0.05519825965166092,
0.0229925699532032,
0.02214769832789898,
-0.0611928254365921,
0.041076838970184326,
0.015770932659506798,
-0.010379848070442677,
-0.018707865849137306,
0.033472996205091476,
-0.025245560333132744,
-0.008111770264804363,
0.01077210996299982,
-0.03797897696495056,
-0.0024855812080204487,
-0.00711100036278367,
-0.017380209639668465,
-0.012210402637720108,
0.010681587271392345,
-0.0205887109041214,
0.022791409865021706,
0.030616527423262596,
-0.03467995673418045,
0.055399421602487564,
-0.0017375181196257472,
-0.007960900664329529,
0.07052664458751678,
-0.015348495915532112,
-0.0102943554520607,
-0.02737785503268242,
0.012300924398005009,
0.005904041230678558,
0.12584559619426727,
0.019351577386260033,
-0.0026703968178480864,
0.022208046168088913,
0.016444817185401917,
0.01865757629275322,
-0.03353334590792656,
-0.05431315675377846,
-0.00803130678832531,
-0.02144363895058632,
-0.006225896999239922,
0.015418902039527893,
-0.017641717568039894,
0.06280210614204407,
0.05837658792734146,
-0.05889960378408432,
0.0005623046308755875,
-0.05423269420862198,
0.00041206335299648345,
-0.020568594336509705,
-0.06513556092977524,
0.0511750653386116,
0.007498233113437891,
-0.018858734518289566,
-0.09301631152629852,
0.03697317838668823,
-0.04236426204442978,
0.025265676900744438,
-0.010027818381786346,
0.02162468247115612,
0.022087350487709045,
0.07652120292186737,
-0.01580110564827919,
0.02904748171567917,
0.025064516812562943,
0.056324757635593414,
-0.007583726197481155,
0.01342741958796978,
0.004015653394162655,
0.029872236773371696,
0.004244472831487656,
-0.07133127748966217,
-0.010309441946446896,
-0.026211127638816833,
-0.009982557035982609,
0.009655672125518322,
0.03526332229375839,
0.008604612201452255,
0.04143892601132393,
-0.0630434975028038,
0.029329104349017143,
0.007271928247064352,
0.008458771742880344,
0.02158445119857788,
0.020035520195961,
-0.013296665623784065,
0.013085448183119297,
-0.05169808119535446,
-0.03739561513066292,
0.002597476588562131,
-0.02812214568257332,
0.04811743274331093,
0.004651821218430996,
-0.0076893349178135395,
0.06513556092977524,
-0.0036636237055063248,
-0.011194544844329357,
0.028584813699126244,
0.03643004596233368,
-0.07334288209676743,
0.01516745239496231,
-0.010741936042904854,
0.026613447815179825,
0.06050888076424599,
0.020457956939935684,
0.03433798626065254,
-0.017239399254322052,
-0.018567053601145744,
0.016193367540836334,
-0.04123776778578758,
-0.009278497658669949,
0.007297073490917683,
0.0014018326764926314,
-0.05234179273247719,
-0.007794944103807211,
-0.036812249571084976,
-0.01544907595962286,
0.011526458896696568,
0.06461254507303238,
-0.02180572785437107,
-0.04864044860005379,
0.04855998605489731,
-0.036772020161151886,
-0.002693027490749955,
-0.002548443851992488,
0.021483872085809708,
0.03160221129655838,
-0.062037695199251175,
0.05218086391687393,
0.005142148584127426,
0.05471547693014145,
0.05926169082522392,
-0.037777818739414215,
-0.010842515155673027,
-0.04180101677775383,
-0.0004727256309706718,
-0.008961671032011509,
0.0593421533703804,
0.027659477666020393,
-0.030978616327047348,
0.00817714724689722,
-0.031622327864170074,
0.05837658792734146,
-0.0024277479387819767,
-0.022087350487709045,
-0.006618158891797066,
-0.05314642935991287,
0.000404205551603809,
-0.024420805275440216,
0.029027365148067474,
0.05197970196604729,
-0.06219862401485443,
0.017309805378317833,
-0.0823548436164856,
0.013216202147305012,
-0.02214769832789898,
0.04131823033094406,
0.09100471436977386,
0.06465277075767517,
0.03192406892776489,
0.0035932178143411875,
-0.007598813157528639,
-0.003784319618716836,
-0.014704784378409386,
0.04268611967563629,
-0.05129576101899147,
0.01580110564827919,
0.028685392811894417,
-0.005094373133033514,
0.014252174645662308,
-0.014081189408898354,
-0.015479249879717827,
0.0441344678401947,
-0.07056687027215958,
-0.006085085216909647,
-0.0007562352693639696,
-0.032326385378837585,
0.04622653126716614,
0.008257611654698849,
-0.01928117126226425,
0.009152772836387157,
-0.03341265022754669,
0.07068756967782974,
-0.023756977170705795,
-0.0013527999399229884,
0.026834722608327866,
0.02804168127477169,
-0.016163192689418793,
-0.02707611583173275,
0.0296710766851902,
-0.0168773103505373,
-0.0148355383425951,
0.006562839727848768,
0.05833635479211807,
0.013487767428159714,
0.010641355998814106,
0.0034398334100842476,
0.00829281471669674,
0.005456460639834404,
0.05797426775097847,
-0.05753171443939209,
0.027920985594391823,
-0.02844400145113468,
-0.040634289383888245,
0.032547663897275925,
-0.051094599068164825,
0.022308627143502235,
-0.03463972359895706,
0.01281388197094202,
-0.0341368243098259,
0.01991482451558113,
0.010520659387111664,
-0.011114081367850304,
0.009499773383140564,
0.04224356636404991,
0.05733055621385574,
-0.06738854944705963,
0.1287422925233841,
-0.02812214568257332,
0.03455926105380058,
-0.004445632454007864,
-0.04514027014374733,
0.00030111114028841257,
0.021685030311346054,
0.06654367595911026,
-0.07463030517101288,
-0.08026278018951416,
0.07020478695631027,
-0.04053371027112007,
-0.061554912477731705,
-0.09020007401704788,
0.021503986790776253,
-0.025688111782073975,
0.03697317838668823,
0.056767307221889496,
0.01602238230407238,
-0.0031380935106426477,
-0.013618521392345428,
0.012361272238194942,
-0.000746177276596427,
0.04622653126716614,
-0.0016972861485555768,
-0.0006037938292138278,
-0.013900144957005978,
0.012321040034294128,
0.01988464966416359,
-0.020719463005661964,
0.0061202882789075375,
0.00912259891629219,
0.047795578837394714,
0.011154313571751118,
0.04417470097541809,
-0.004138863645493984,
0.01910012774169445,
0.07756723463535309,
0.04361145570874214,
-0.013276549987494946,
0.019271112978458405,
-0.0359673798084259,
-0.036812249571084976,
0.03019409254193306,
0.0017802646616473794,
-0.01991482451558113,
0.051617614924907684,
-0.007241754326969385,
0.024843240156769753,
-0.0319039523601532,
-0.02536625601351261,
-0.06811272352933884,
0.011798025108873844,
-0.0004453804576769471,
-0.021966654807329178,
-0.007855291478335857,
0.022912105545401573,
-0.048238132148981094,
-0.07076803594827652,
-0.04429539665579796,
-0.025084633380174637,
0.0076893349178135395,
-0.0017601486761122942,
-0.01706841215491295,
0.03433798626065254,
-0.025305908173322678,
0.017199166119098663,
0.0071512325666844845,
-0.0011981583666056395,
0.011134197004139423,
-0.010631297715008259,
-0.03731515258550644,
-0.021966654807329178,
-0.006643303669989109,
0.02421964518725872,
0.005345822777599096,
-0.0046493071131408215,
0.03059641271829605,
-0.017521021887660027,
0.00940422248095274,
0.062037695199251175,
-0.025024283677339554,
-0.01902972161769867,
0.007925697602331638,
0.04421493411064148,
-0.037073757499456406,
-0.01820496656000614,
-0.0871424451470375,
0.04807720333337784,
0.005582185462117195,
-0.03626912087202072,
-0.0537901408970356,
-0.08227437734603882,
-0.07499238848686218,
0.009278497658669949,
-0.034036245197057724,
0.10693657398223877,
0.007744654081761837,
0.000756863912101835,
0.028162378817796707,
0.043530989438295364,
-0.013357013463973999,
-0.008222408592700958,
0.02500416897237301,
-0.009565150365233421,
-0.07986045628786087,
-0.006341564003378153,
0.03397589921951294,
0.017521021887660027,
-0.0029897382482886314,
-0.01610284484922886,
-0.05459478124976158,
0.013648695312440395,
-0.010510602034628391,
-0.011435937136411667,
0.00504408311098814,
0.06127328798174858,
0.04602537304162979,
0.05383037403225899,
0.04606560245156288,
-0.024360457435250282,
0.03568575531244278,
0.004531125538051128,
0.007468059193342924,
0.042525190860033035,
0.011989126913249493,
0.03721456974744797,
0.0013942891964688897,
0.027920985594391823,
-0.03576622158288956,
-0.033734504133462906,
0.04469771683216095,
0.032064877450466156,
-0.03224592283368111,
0.05423269420862198,
0.03182348608970642,
0.004551241640001535,
-0.012773649767041206,
-0.023274194449186325,
0.027920985594391823,
-0.019482331350445747,
-0.07535447925329208,
0.006442144047468901,
0.034177057445049286,
-0.007246783468872309,
0.028625044971704483,
0.00017617201956454664,
0.01917053386569023,
-0.00539611279964447,
-0.012632838450372219,
0.10774121433496475,
0.02228851057589054,
-0.006789144594222307,
-0.0060498821549117565,
0.05503733456134796,
0.013115622103214264,
-0.0007776085403747857,
0.010153543204069138,
-0.02351558580994606,
0.040071040391922,
0.004837894346565008,
-0.04312866926193237,
0.0166962668299675,
-0.04510003700852394,
-0.0611928254365921,
-0.017239399254322052,
-0.03467995673418045,
0.08633780479431152,
0.07696375250816345,
-0.07483146339654922,
-0.00027863780269399285,
-0.044416092336177826,
0.004131320398300886,
0.020639000460505486,
-0.02321384660899639,
-0.009741165675222874,
-0.044898878782987595,
-0.0016319092828780413,
-0.0012999954633414745,
-0.003990508615970612,
-0.0315217487514019,
-0.04803697019815445,
0.003960334230214357,
0.029872236773371696,
0.005552011542022228,
0.03846176341176033,
-0.025949619710445404,
-0.04743349179625511,
-0.0511750653386116,
-0.03212522715330124,
-0.06167560815811157,
0.01511716190725565,
0.013648695312440395,
-0.059623777866363525,
-0.053025733679533005,
0.030515948310494423,
0.04751395434141159,
-0.007754711899906397,
0.04787604138255119,
0.04888184368610382,
-0.07249800860881805,
0.04662885144352913,
-0.002019142033532262,
0.005016423761844635,
-0.028102030977606773,
-0.04695070907473564,
0.022087350487709045,
-0.015388728119432926,
-0.051094599068164825,
0.005320677999407053,
0.005949302576482296,
0.00001223853359988425,
-0.031541865319013596,
-0.025688111782073975,
-0.025527184829115868,
0.01895931549370289,
0.03964860364794731,
0.06569880247116089,
-0.020980970934033394,
0.013739217072725296,
-0.0038647835608571768,
-0.018607284873723984,
-0.0159519761800766,
-0.00026197926490567625,
0.03134070336818695,
0.028685392811894417,
0.017420442774891853,
-0.05793403461575508,
-0.012331098318099976,
-0.04196194186806679,
-0.04864044860005379,
0.050692278891801834,
0.06280210614204407,
-0.03528343513607979,
-0.0027357737999409437,
-0.04069463536143303,
-0.02681460790336132,
0.014010783284902573,
-0.03552483022212982,
-0.017420442774891853,
0.008443684317171574,
-0.027619246393442154,
-0.014081189408898354,
-0.0018330690218135715,
0.01006805058568716,
-0.03142116591334343,
0.04795650765299797,
-0.028323305770754814,
0.015479249879717827,
-0.05137622356414795,
0.0537901408970356,
0.008669989183545113,
-0.01576087437570095,
-0.009816600009799004,
0.020980970934033394,
-0.021986771374940872,
-0.06408952921628952,
-0.03482076898217201,
-0.010882747359573841,
-0.0181747917085886,
0.01587151177227497,
-0.041036609560251236,
0.05797426775097847,
0.00473731430247426,
0.026693910360336304,
0.01448350865393877,
-0.020206505432724953,
-0.0011962724383920431,
0.03166256099939346,
-0.003952790983021259,
-0.009635556489229202,
0.026130663231015205,
0.03854222595691681,
-0.020417723804712296,
-0.005154720973223448,
0.02118213102221489,
0.07857303321361542,
0.01516745239496231,
0.0026527955196797848,
-0.01511716190725565,
0.031320586800575256,
-0.024380572140216827,
0.04755418747663498,
0.038783617317676544,
-0.07028524577617645,
-0.03244708105921745,
0.005582185462117195,
0.03353334590792656,
-0.005111974664032459,
-0.011345415376126766,
-0.005617388524115086,
0.011365531012415886,
0.030837804079055786,
-0.0036284206435084343,
-0.024360457435250282,
0.04815766587853432,
-0.03385520353913307,
-0.011234777048230171,
-0.05475571006536484,
0.02844400145113468,
0.0018016378162428737,
-0.004289733711630106,
0.006165549159049988,
0.0014998980332165956,
-0.008192234672605991,
-0.05049112066626549,
0.042042408138513565,
0.006633245851844549,
-0.03548459708690643,
0.0073473635129630566,
-0.021765494719147682,
-0.03198441490530968,
0.016635918989777565,
-0.020528361201286316,
0.026532983407378197,
0.04232403263449669,
-0.02751866728067398,
0.024541500955820084,
0.026834722608327866,
-0.03363392502069473,
-0.05797426775097847,
0.0294900331646204,
-0.0033241664059460163,
0.03775770217180252,
-0.02944980189204216,
0.02014615759253502,
0.020468013361096382,
-0.0010152285685762763,
0.025808807462453842,
0.0015539597952738404,
0.08472852408885956,
-0.010490485467016697,
-0.043973542749881744,
0.012401504442095757,
0.022389089688658714,
-0.018607284873723984,
0.06481370329856873,
0.03512251004576683,
-0.03270858898758888,
-0.0255875326693058,
0.022308627143502235,
-0.06927944719791412,
0.003962848801165819,
-0.02518521249294281,
0.007548523135483265,
0.08319970965385437,
0.020377492532134056,
0.006271158345043659,
-0.011456052772700787,
-0.07181406766176224,
-0.02377709373831749,
0.05849728360772133,
-0.01991482451558113,
0.03463972359895706,
-0.025869155302643776,
0.007543493993580341,
-0.01602238230407238,
0.006155491340905428,
-0.01072181947529316,
-0.06497462838888168,
0.040191736072301865,
0.03389543294906616,
-0.010208861902356148,
-0.013085448183119297,
0.059100762009620667,
-0.00016579971997998655,
-0.005989534314721823,
0.0027659479528665543,
0.06581950187683105,
-0.014624320901930332,
0.016977891325950623,
-0.01966337487101555,
0.006577926687896252,
-0.1120058000087738,
-0.006351622287184,
-0.007473088335245848,
0.04831859469413757,
0.009132657200098038,
0.002550958190113306,
0.04389307647943497,
0.02162468247115612,
0.07607865333557129
]
|
30,076 | networkx.classes.graph | add_weighted_edges_from | Add weighted edges in `ebunch_to_add` with specified weight attr
Parameters
----------
ebunch_to_add : container of edges
Each edge given in the list or container will be added
to the graph. The edges must be given as 3-tuples (u, v, w)
where w is a number.
weight : string, optional (default= 'weight')
The attribute name for the edge weights to be added.
attr : keyword arguments, optional (default= no attributes)
Edge attributes to add/update for all edges.
See Also
--------
add_edge : add a single edge
add_edges_from : add multiple edges
Notes
-----
Adding the same edge twice for Graph/DiGraph simply updates
the edge data. For MultiGraph/MultiDiGraph, duplicate edges
are stored.
When adding edges from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_edges)`, and pass this
object to `G.add_weighted_edges_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_weighted_edges_from([(0, 1, 3.0), (1, 2, 7.5)])
Evaluate an iterator over edges before passing it
>>> G = nx.Graph([(1, 2), (2, 3), (3, 4)])
>>> weight = 0.1
>>> # Grow graph by one new node, adding edges to all existing nodes.
>>> # wrong way - will raise RuntimeError
>>> # G.add_weighted_edges_from(((5, n, weight) for n in G.nodes))
>>> # correct way - note that there will be no self-edge for node 5
>>> G.add_weighted_edges_from(list((5, n, weight) for n in G.nodes))
| def add_weighted_edges_from(self, ebunch_to_add, weight="weight", **attr):
"""Add weighted edges in `ebunch_to_add` with specified weight attr
Parameters
----------
ebunch_to_add : container of edges
Each edge given in the list or container will be added
to the graph. The edges must be given as 3-tuples (u, v, w)
where w is a number.
weight : string, optional (default= 'weight')
The attribute name for the edge weights to be added.
attr : keyword arguments, optional (default= no attributes)
Edge attributes to add/update for all edges.
See Also
--------
add_edge : add a single edge
add_edges_from : add multiple edges
Notes
-----
Adding the same edge twice for Graph/DiGraph simply updates
the edge data. For MultiGraph/MultiDiGraph, duplicate edges
are stored.
When adding edges from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_edges)`, and pass this
object to `G.add_weighted_edges_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_weighted_edges_from([(0, 1, 3.0), (1, 2, 7.5)])
Evaluate an iterator over edges before passing it
>>> G = nx.Graph([(1, 2), (2, 3), (3, 4)])
>>> weight = 0.1
>>> # Grow graph by one new node, adding edges to all existing nodes.
>>> # wrong way - will raise RuntimeError
>>> # G.add_weighted_edges_from(((5, n, weight) for n in G.nodes))
>>> # correct way - note that there will be no self-edge for node 5
>>> G.add_weighted_edges_from(list((5, n, weight) for n in G.nodes))
"""
self.add_edges_from(((u, v, {weight: d}) for u, v, d in ebunch_to_add), **attr)
nx._clear_cache(self)
| (self, ebunch_to_add, weight='weight', **attr) | [
0.0014623814495280385,
-0.01951734907925129,
-0.005646022502332926,
0.01914820447564125,
-0.05398979410529137,
-0.00804546382278204,
-0.016128789633512497,
0.014301995746791363,
0.015598734840750694,
0.01829633116722107,
-0.00003885929618263617,
0.01910087838768959,
0.049105726182460785,
0.027714256197214127,
-0.028603991493582726,
0.06614317744970322,
0.018220609053969383,
0.0025272222701460123,
-0.0003652995510492474,
0.03608154132962227,
-0.01566499099135399,
-0.06958852708339691,
0.034131698310375214,
0.07333677262067795,
-0.015646060928702354,
0.0382964089512825,
-0.017813604325056076,
0.005646022502332926,
0.02652163617312908,
-0.009413192979991436,
-0.004027464427053928,
-0.09896866977214813,
-0.043805185705423355,
-0.04032197222113609,
0.050279416143894196,
0.030137361958622932,
-0.01388552412390709,
-0.030042709782719612,
-0.048537809401750565,
0.01451969612389803,
0.07689570635557175,
0.004860406741499901,
0.07867517322301865,
0.006384312175214291,
0.05622359365224838,
0.059101030230522156,
0.010544290766119957,
0.009503113105893135,
-0.0021746414713561535,
-0.04645545408129692,
0.018646545708179474,
0.019025156274437904,
0.06693825870752335,
0.022300133481621742,
0.003996702376753092,
0.009039315395057201,
-0.06330360472202301,
-0.02040708251297474,
0.00499765295535326,
0.01993381977081299,
0.008868941105902195,
-0.04880283772945404,
0.02008526399731636,
-0.032162927091121674,
-0.02979661151766777,
-0.0027259925846010447,
-0.10343626886606216,
-0.025688692927360535,
-0.019223926588892937,
0.0032300171442329884,
0.03346912935376167,
-0.0027827839367091656,
-0.016687238588929176,
0.009171828627586365,
-0.04092774912714958,
0.0612969696521759,
0.0002154823741875589,
0.03683875873684883,
-0.016497934237122536,
-0.011396163143217564,
0.03326089307665825,
0.03725523129105568,
-0.01079038716852665,
-0.020293500274419785,
0.0953340157866478,
0.05327043682336807,
-0.07223880290985107,
0.026616288349032402,
0.009583567269146442,
-0.04369160160422325,
-0.01886424608528614,
-0.01821114495396614,
-0.006739259231835604,
0.0066162110306322575,
0.09760567545890808,
-0.00538572808727622,
0.014396647922694683,
-0.04297224432229996,
0.019971681758761406,
0.02989126555621624,
-0.028130728751420975,
-0.0865502581000328,
0.04168497025966644,
-0.005873188842087984,
-0.03805031254887581,
-0.10131605714559555,
-0.014377716928720474,
-0.05739728733897209,
-0.019119808450341225,
-0.018050234764814377,
-0.024742167443037033,
-0.0164790041744709,
0.037558119744062424,
-0.005556102842092514,
-0.015655526891350746,
0.06549954414367676,
0.04846208915114403,
0.021789008751511574,
0.050279416143894196,
0.01872226782143116,
0.005627091974020004,
0.05156669020652771,
0.02262195199728012,
0.017955582588911057,
-0.0026597357355058193,
-0.03316624090075493,
-0.012853811495006084,
-0.03481319546699524,
0.05308113247156143,
-0.04679620638489723,
-0.01580697111785412,
-0.050885193049907684,
-0.06655965000391006,
0.01292953360825777,
-0.002946059685200453,
-0.0225272998213768,
-0.05202102288603783,
0.006147680804133415,
0.0656888484954834,
0.038126032799482346,
0.010127819143235683,
-0.01274022925645113,
0.04857567325234413,
0.03159501031041145,
-0.06356862932443619,
-0.000878493650816381,
-0.0566779263317585,
0.0225272998213768,
-0.002160443691536784,
0.02186473086476326,
-0.0364033579826355,
0.011396163143217564,
-0.029588377103209496,
0.00875062495470047,
0.01910087838768959,
-0.014850979670882225,
-0.05258893966674805,
0.039299726486206055,
-0.001526271807961166,
-0.014065364375710487,
0.009673487395048141,
0.02506398595869541,
0.007865624502301216,
0.013800336979329586,
-0.02462858520448208,
0.008083324879407883,
0.03087565116584301,
0.0486135333776474,
-0.031651802361011505,
0.037558119744062424,
0.015920553356409073,
-0.06667323410511017,
0.028225380927324295,
0.029171906411647797,
0.00212376588024199,
-0.00361335976049304,
0.05274038389325142,
-0.008159046992659569,
-0.006256531458348036,
-0.020672108978033066,
0.007103671319782734,
-0.0216375645250082,
-0.0023935255594551563,
0.007747308351099491,
0.001759353675879538,
-0.008211106061935425,
-0.017472853884100914,
0.020804623141884804,
-0.00007594385533593595,
-0.018192213028669357,
0.05035514011979103,
-0.03589223325252533,
-0.009630893357098103,
0.010127819143235683,
-0.019441626965999603,
0.006540488917380571,
-0.031046025454998016,
0.005333669483661652,
-0.06042616814374924,
0.07409399002790451,
-0.0020563260186463594,
-0.06432585418224335,
0.026900244876742363,
-0.010601081885397434,
0.07064864039421082,
-0.050052251666784286,
-0.03956475108861923,
-0.05936605855822563,
-0.002851407043635845,
-0.009749209508299828,
0.006478964816778898,
-0.016412746161222458,
0.05296754837036133,
0.06360649317502975,
0.0030217815656214952,
-0.004607211332768202,
-0.0656888484954834,
0.0019001492764800787,
0.012607715092599392,
-0.028509337455034256,
-0.016384350135922432,
-0.0014091393677517772,
-0.015305312350392342,
-0.044827431440353394,
0.0621299110352993,
-0.04354015737771988,
0.013838198035955429,
-0.012711833231151104,
0.010752526111900806,
0.06724114716053009,
0.050885193049907684,
-0.05277824401855469,
0.048083480447530746,
-0.016403282061219215,
0.028660781681537628,
0.04918144643306732,
-0.04395662993192673,
0.021315746009349823,
0.07110296934843063,
0.014443974010646343,
0.008083324879407883,
-0.006701398175209761,
-0.03456709906458855,
0.0065641519613564014,
0.003956475295126438,
-0.01224803552031517,
0.03693341091275215,
-0.005721744615584612,
-0.04940861463546753,
0.00540939113125205,
0.02313307486474514,
0.015797505155205727,
0.005125433672219515,
0.000980836688540876,
-0.012285896576941013,
0.011131135746836662,
-0.014235738664865494,
-0.047780591994524,
-0.048121340572834015,
-0.03748239576816559,
0.0646287351846695,
0.01957414112985134,
0.03884539380669594,
0.021183233708143234,
-0.029474793002009392,
0.028263241052627563,
0.004249898251146078,
0.005357332527637482,
-0.07257954776287079,
0.026408052071928978,
-0.02065317891538143,
-0.024249974638223648,
0.08117400109767914,
0.034093838185071945,
-0.015343173407018185,
-0.0396026149392128,
-0.022886978462338448,
0.04035983234643936,
-0.08397570997476578,
-0.034283142536878586,
-0.03776635602116585,
-0.0026763000059872866,
-0.03439672663807869,
0.03848571330308914,
-0.040549136698246,
0.03712271898984909,
0.020709970965981483,
0.04096560925245285,
0.01595841534435749,
-0.04229074344038963,
0.04566037282347679,
-0.033336617052555084,
0.02243264578282833,
-0.015731249004602432,
0.004855674225836992,
0.031083887442946434,
0.02154291234910488,
-0.005054444540292025,
0.03008056990802288,
0.05690509453415871,
0.05410337820649147,
0.005915782414376736,
0.01557980477809906,
-0.0020172817166894674,
-0.05099877715110779,
-0.00722671952098608,
0.07011858373880386,
0.009370598942041397,
-0.04274507611989975,
-0.021845800802111626,
-0.04967363923788071,
0.0539519339799881,
-0.04619042947888374,
-0.004306689370423555,
0.009872257709503174,
-0.04414593428373337,
0.0049408613704144955,
0.008192175067961216,
-0.023871364071965218,
0.047515563666820526,
-0.041647106409072876,
0.026635218411684036,
-0.019630931317806244,
-0.027789978310465813,
-0.006786585319787264,
0.0116801206022501,
0.05130166560411453,
0.015598734840750694,
0.027600673958659172,
-0.008315223269164562,
-0.019555209204554558,
0.01970665343105793,
0.04035983234643936,
0.03305266052484512,
-0.05641290172934532,
0.056564345955848694,
0.04743984341621399,
0.03115960955619812,
-0.04762914776802063,
-0.043994490057229996,
-0.014623814262449741,
0.045546792447566986,
-0.011850494891405106,
0.011888355948030949,
0.011604398488998413,
-0.062470659613609314,
0.002402990823611617,
-0.004607211332768202,
0.008305758237838745,
0.012030335143208504,
-0.012427875772118568,
0.01787039451301098,
-0.01782306842505932,
0.0014600150752812624,
0.02979661151766777,
0.03721737116575241,
-0.0468340665102005,
-0.041079193353652954,
0.06587815284729004,
0.008035998791456223,
-0.04918144643306732,
0.023379171267151833,
0.046379733830690384,
-0.00983439665287733,
-0.011377232149243355,
0.009413192979991436,
0.0175485759973526,
0.005489846225827932,
0.03303372859954834,
-0.02069104090332985,
0.04395662993192673,
-0.03933758661150932,
-0.0022610120940953493,
0.06152413785457611,
-0.028774365782737732,
-0.0018883177544921637,
-0.04160924628376961,
0.025783345103263855,
-0.0030004847794771194,
0.06542381644248962,
-0.0043966094963252544,
0.036289773881435394,
-0.00019048819376621395,
0.05031727999448776,
0.08397570997476578,
-0.057132259011268616,
0.08488437533378601,
-0.025650832802057266,
0.015343173407018185,
-0.024855751544237137,
-0.03186003863811493,
0.014510231092572212,
0.01773788221180439,
0.08336994051933289,
-0.05876028165221214,
-0.0846572145819664,
0.014027503319084644,
0.0026881315279752016,
-0.061486274003982544,
-0.029966987669467926,
0.011121670715510845,
-0.031689662486314774,
-0.025215430185198784,
0.05993397533893585,
-0.015788039192557335,
-0.00854238960891962,
-0.0873832032084465,
0.048121340572834015,
-0.0014446340501308441,
-0.016431676223874092,
0.00003194522287230939,
-0.00679131830111146,
-0.06489376723766327,
0.015930019319057465,
-0.03736881539225578,
-0.02506398595869541,
-0.00006832728831795976,
-0.05603428930044174,
0.006445836275815964,
0.022489437833428383,
0.06920991837978363,
0.014756327494978905,
0.027789978310465813,
0.031841106712818146,
0.04433523863554001,
-0.05308113247156143,
0.005494578741490841,
-0.026010511443018913,
-0.016649378463625908,
0.029720891267061234,
-0.007420757319778204,
-0.006365381646901369,
0.03880753368139267,
-0.0012026785407215357,
0.02894474007189274,
-0.032162927091121674,
-0.015523012727499008,
-0.03373415768146515,
0.02833896316587925,
-0.024666445329785347,
-0.007870356552302837,
-0.04967363923788071,
-0.007406559307128191,
-0.07265527546405792,
-0.06409868597984314,
-0.0953340157866478,
-0.03223864734172821,
0.011699051596224308,
-0.016649378463625908,
-0.03721737116575241,
0.06640820950269699,
-0.04838636517524719,
0.023625267669558525,
0.02909618429839611,
-0.025329014286398888,
0.04649331793189049,
0.030743137001991272,
-0.04448668286204338,
-0.0014718465972691774,
0.024439280852675438,
0.0387696698307991,
-0.02300056256353855,
-0.03220078721642494,
-0.006947494577616453,
-0.046947646886110306,
0.031973619014024734,
0.062470659613609314,
-0.03861822560429573,
0.019914889708161354,
0.03138677403330803,
0.0719737708568573,
-0.03350698947906494,
-0.011301510967314243,
-0.07095152884721756,
0.07488907128572464,
0.03486998751759529,
-0.035967957228422165,
-0.020709970965981483,
-0.0033790948800742626,
-0.08011388778686523,
0.03700913488864899,
-0.018419379368424416,
0.08458148688077927,
0.02144826017320156,
0.00039192059193737805,
0.000026713454644777812,
0.010894504375755787,
-0.028509337455034256,
0.019763445481657982,
0.02050173468887806,
-0.023170936852693558,
-0.008353084325790405,
0.012778089381754398,
0.051074497401714325,
0.012096591293811798,
0.022300133481621742,
-0.008551854640245438,
0.00891153421252966,
0.06886917352676392,
-0.017113175243139267,
-0.001370095182210207,
-0.008267897181212902,
-0.004645072389394045,
0.015276916325092316,
0.007505944464355707,
0.039110418409109116,
-0.01515386812388897,
0.04213929921388626,
-0.00895886030048132,
-0.026313399896025658,
0.03899683803319931,
0.046152565628290176,
0.004176542162895203,
0.04918144643306732,
0.023473823443055153,
-0.05277824401855469,
-0.009469984099268913,
0.04747770354151726,
0.024155322462320328,
-0.022300133481621742,
0.08624737709760666,
0.04781845211982727,
-0.005319471471011639,
0.017813604325056076,
-0.02271660417318344,
-0.007378163747489452,
-0.008031265810132027,
-0.050847332924604416,
0.0521724671125412,
0.06799837201833725,
0.014018037356436253,
0.09389529377222061,
0.00006596097227884457,
0.011642259545624256,
0.01545675564557314,
-0.02646484412252903,
0.024704307317733765,
0.0071084038354456425,
-0.04789417237043381,
-0.02548045851290226,
0.01513493712991476,
0.005953643471002579,
-0.011064879596233368,
-0.008807417005300522,
-0.004706596489995718,
0.07625206559896469,
-0.011964078061282635,
-0.03439672663807869,
-0.022262271493673325,
-0.10828247666358948,
-0.052816104143857956,
0.026673078536987305,
-0.025461526587605476,
0.089882031083107,
0.06614317744970322,
-0.07538126409053802,
0.0003635248285718262,
-0.0030620088800787926,
-0.005877921357750893,
0.026994897052645683,
-0.0530054084956646,
-0.055201347917318344,
-0.008698565885424614,
0.018088096752762794,
-0.019498419016599655,
-0.00840041134506464,
-0.03907255828380585,
-0.014425043947994709,
-0.035456832498311996,
-0.010336054489016533,
-0.016034135594964027,
0.03097030334174633,
-0.00683864438906312,
-0.030610624700784683,
-0.058911725878715515,
-0.024325696751475334,
-0.07515409588813782,
0.005073375068604946,
0.017709486186504364,
-0.06016113981604576,
-0.07965955883264542,
-0.022603021934628487,
0.034794263541698456,
-0.018561359494924545,
0.01445343904197216,
0.008064394816756248,
-0.03021308407187462,
0.03617619350552559,
-0.07761506736278534,
0.055731400847435,
0.02247050777077675,
-0.05743514746427536,
0.012210174463689327,
0.013809802010655403,
-0.02421211451292038,
-0.041836414486169815,
-0.016687238588929176,
0.0025887463707476854,
-0.03994336351752281,
0.03443458676338196,
-0.030383458361029625,
0.005480380728840828,
0.05739728733897209,
0.02623767778277397,
-0.006256531458348036,
0.01914820447564125,
0.00895886030048132,
-0.02843361534178257,
-0.025915859267115593,
-0.031462498009204865,
0.029853403568267822,
0.06833911687135696,
0.01694280095398426,
0.018040770664811134,
-0.025972651317715645,
-0.02801714465022087,
-0.04357801750302315,
0.030099499970674515,
0.0512259416282177,
0.00040138582699000835,
-0.007316639646887779,
-0.0503930002450943,
0.004810714162886143,
0.008324689231812954,
-0.03505929186940193,
-0.010260333307087421,
0.033904530107975006,
0.01716996729373932,
-0.02129681594669819,
0.010336054489016533,
-0.00461194384843111,
-0.03475640341639519,
0.057132259011268616,
-0.053649045526981354,
0.012399479746818542,
-0.03744453564286232,
0.03907255828380585,
-0.002799348207190633,
-0.012683437205851078,
-0.005489846225827932,
0.04058700054883957,
0.019858097657561302,
-0.02820645086467266,
-0.05349760130047798,
-0.0009713714825920761,
0.03975405544042587,
0.0049550593830645084,
-0.07538126409053802,
-0.004912465810775757,
0.014917236752808094,
0.0049787224270403385,
-0.025783345103263855,
-0.025556178763508797,
-0.020918207243084908,
0.022300133481621742,
0.07310960441827774,
0.005201155785471201,
-0.015494616702198982,
-0.01278755534440279,
0.00005239164602244273,
-0.0032678782008588314,
0.014538627117872238,
0.06788478791713715,
-0.004555152263492346,
-0.004041662439703941,
0.03945117071270943,
0.00322528462857008,
-0.008301026187837124,
0.03693341091275215,
-0.02824431098997593,
-0.05682937055826187,
-0.0033909264020621777,
-0.010979692451655865,
0.041836414486169815,
-0.03532432019710541,
0.018125956878066063,
-0.038921114057302475,
-0.020123125985264778,
-0.02046387456357479,
-0.0584573931992054,
0.006270729470998049,
0.05622359365224838,
0.003528172615915537,
-0.017065849155187607,
-0.020728901028633118,
0.020444944500923157,
-0.04925717040896416,
0.015504082664847374,
0.006100354716181755,
-0.009574102237820625,
-0.010194076225161552,
-0.06712756305932999,
0.0008317590109072626,
0.01924285665154457,
-0.03513501584529877,
-0.015125472098588943,
-0.031519290059804916,
-0.03167073056101799,
0.036346565932035446,
-0.01367728877812624,
0.020198848098516464,
0.05917675420641899,
0.0047255270183086395,
0.01910087838768959,
0.06334146112203598,
-0.03979191929101944,
-0.06750617176294327,
0.03002377785742283,
0.024742167443037033,
0.020482804626226425,
-0.055390652269124985,
0.010951296426355839,
-0.0003484395856503397,
0.0021261321380734444,
0.01628023386001587,
0.025442596524953842,
0.024060670286417007,
0.00920022465288639,
-0.057132259011268616,
0.00584006030112505,
-0.0016930969431996346,
0.01628023386001587,
0.038409993052482605,
-0.023852434009313583,
-0.0441080741584301,
-0.058722421526908875,
0.00015395822993014008,
-0.016403282061219215,
-0.02332238107919693,
-0.025688692927360535,
-0.0010743060847744346,
-0.0037080124020576477,
0.026483774185180664,
0.06777120381593704,
0.02148612216114998,
0.011736911721527576,
-0.04827278479933739,
0.049711503088474274,
0.024249974638223648,
0.04077630490064621,
-0.014699536375701427,
-0.0037080124020576477,
-0.04119277372956276,
-0.013071512803435326,
-0.029720891267061234,
-0.03261725604534149,
0.03502143174409866,
0.005177492741495371,
-0.00540939113125205,
-0.013298679143190384,
0.034604959189891815,
0.00029445806285366416,
0.029758751392364502,
0.020009541884064674,
0.03680089861154556,
-0.04475171118974686,
0.02135360799729824,
-0.056753650307655334,
-0.004538588225841522,
-0.07371538132429123,
0.01824900507926941,
-0.012210174463689327,
0.021467190235853195,
0.020198848098516464,
-0.012285896576941013,
0.060691192746162415,
0.028585059568285942,
0.06886917352676392
]
|
30,077 | networkx.classes.graph | adjacency | Returns an iterator over (node, adjacency dict) tuples for all nodes.
For directed graphs, only outgoing neighbors/adjacencies are included.
Returns
-------
adj_iter : iterator
An iterator over (node, adjacency dictionary) for all nodes in
the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> [(n, nbrdict) for n, nbrdict in G.adjacency()]
[(0, {1: {}}), (1, {0: {}, 2: {}}), (2, {1: {}, 3: {}}), (3, {2: {}})]
| def adjacency(self):
"""Returns an iterator over (node, adjacency dict) tuples for all nodes.
For directed graphs, only outgoing neighbors/adjacencies are included.
Returns
-------
adj_iter : iterator
An iterator over (node, adjacency dictionary) for all nodes in
the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> [(n, nbrdict) for n, nbrdict in G.adjacency()]
[(0, {1: {}}), (1, {0: {}, 2: {}}), (2, {1: {}, 3: {}}), (3, {2: {}})]
"""
return iter(self._adj.items())
| (self) | [
-0.01579289510846138,
-0.028779389336705208,
-0.03782224282622337,
-0.026541603729128838,
-0.0010982573730871081,
0.020030014216899872,
-0.01997498609125614,
0.0071260626427829266,
0.0955277606844902,
-0.01946139708161354,
-0.02951308898627758,
-0.022781390696763992,
-0.016893446445465088,
0.062327828258275986,
-0.01997498609125614,
-0.017177755013108253,
-0.019608136266469955,
0.03252125903964043,
-0.042114388197660446,
0.04376521334052086,
-0.042187757790088654,
-0.01073953602463007,
0.009249207563698292,
-0.006516174413263798,
-0.053596798330545425,
-0.004319659899920225,
0.016581622883677483,
-0.025055861100554466,
0.03384191915392876,
0.03767550364136696,
-0.03343838453292847,
-0.06416207551956177,
-0.024450557306408882,
-0.012766382656991482,
0.03519926592707634,
0.04325162619352341,
-0.042407870292663574,
0.02560613490641117,
-0.04989160969853401,
0.013133232481777668,
0.05161580443382263,
-0.01584792323410511,
0.0014100800035521388,
0.004255461040884256,
0.023294979706406593,
0.005245956126600504,
0.010180089622735977,
-0.00506711658090353,
0.0022125644609332085,
-0.08650325238704681,
0.029311321675777435,
-0.012940636835992336,
0.03409871459007263,
0.009583958424627781,
0.013188260607421398,
-0.0056815906427800655,
-0.01297732163220644,
0.001567137660458684,
0.009391361847519875,
0.03013673424720764,
-0.03347507119178772,
-0.07571785897016525,
0.03066866658627987,
-0.04013339802622795,
0.016865933313965797,
-0.019791562110185623,
-0.08775053918361664,
-0.05631148815155029,
-0.0181682500988245,
0.007497498299926519,
0.003145739436149597,
-0.012225278653204441,
0.013490911573171616,
0.0031755459494888783,
-0.02676171250641346,
-0.00776805030182004,
-0.003397948807105422,
0.07975320518016815,
0.04193096235394478,
-0.03593296557664871,
-0.0048974486999213696,
-0.007437885273247957,
-0.055357675999403,
-0.014600632712244987,
0.013041520491242409,
0.01878272369503975,
-0.010005836375057697,
0.0039230030961334705,
-0.023863596841692924,
0.044755708426237106,
0.0012965857749804854,
-0.031273968517780304,
0.007846006192266941,
0.036428213119506836,
0.004491620697081089,
0.02147907204926014,
-0.028119059279561043,
-0.0502951443195343,
0.01214273739606142,
0.016893446445465088,
-0.05517425015568733,
0.0034552691504359245,
-0.023386692628264427,
0.028871100395917892,
-0.04196764901280403,
-0.08048690855503082,
-0.025917958468198776,
-0.061007168143987656,
0.04794730618596077,
-0.0048974486999213696,
-0.07322327792644501,
0.013628480024635792,
0.027183590456843376,
0.008928214199841022,
0.020580289885401726,
0.0010185821447521448,
0.04013339802622795,
-0.040060028433799744,
0.0038037768099457026,
0.017021844163537025,
-0.00862556230276823,
0.05367016792297363,
0.02032349444925785,
0.041197262704372406,
0.017847256734967232,
0.001796419033780694,
0.02366182953119278,
-0.02182758040726185,
-0.020286809653043747,
-0.029127895832061768,
0.036336500197649,
0.008712689392268658,
0.006901367101818323,
0.057338666170835495,
0.010079205967485905,
-0.021754208952188492,
0.0001854312577052042,
-0.011308154091238976,
0.013720192946493626,
0.045746203511953354,
0.001294292975217104,
-0.04526929929852486,
0.01576538197696209,
0.004138527438044548,
-0.01900283433496952,
-0.02722027525305748,
-0.04061030223965645,
-0.011143071576952934,
-0.0061218105256557465,
-0.019167916849255562,
0.010867933742702007,
-0.011876771226525307,
0.01825079135596752,
0.023184925317764282,
-0.05818242207169533,
0.016719192266464233,
-0.05609137564897537,
0.028045687824487686,
0.0053284973837435246,
-0.03043021447956562,
-0.038445889949798584,
-0.0012300941161811352,
0.030760379508137703,
-0.005195514298975468,
-0.0017952725756913424,
0.01605886220932007,
-0.01673753559589386,
-0.054917458444833755,
0.004301317036151886,
-0.028155744075775146,
-0.020543605089187622,
-0.08188093453645706,
-0.039363011717796326,
-0.02555110864341259,
-0.019956644624471664,
0.038152407854795456,
0.028174085542559624,
0.057962313294410706,
0.04471902549266815,
0.039069533348083496,
0.010446055792272091,
-0.0052230278961360455,
-0.05920960381627083,
-0.021552441641688347,
0.036721691489219666,
0.02010338380932808,
0.038042351603507996,
-0.007804735563695431,
0.05902617797255516,
-0.00214607291854918,
0.03892279416322708,
-0.010895447805523872,
0.017984824255108833,
0.038776054978370667,
-0.0005843807011842728,
-0.023038184270262718,
-0.017801400274038315,
0.02021344006061554,
-0.03525429219007492,
0.09516090899705887,
0.012472902424633503,
-0.05689844861626625,
-0.030558612197637558,
0.06287810206413269,
0.011794229969382286,
0.06871102005243301,
-0.0431782528758049,
-0.0669868215918541,
0.0019339877180755138,
0.002044042805209756,
-0.031053859740495682,
-0.03336501494050026,
0.05554110184311867,
-0.00753876892849803,
-0.03452059254050255,
0.012482074089348316,
-0.033383358269929886,
0.023570118471980095,
-0.012537101283669472,
-0.023331664502620697,
0.014591461978852749,
-0.01748957671225071,
0.00036255104350857437,
-0.06665665656328201,
0.017452891916036606,
-0.041784223169088364,
0.0023444013204425573,
0.0021013631485402584,
-0.04831415414810181,
-0.021515756845474243,
0.03554777428507805,
0.05678839236497879,
0.008483408018946648,
0.01646239683032036,
0.07307653874158859,
0.037858929485082626,
-0.03743705153465271,
-0.004528305493295193,
0.0017402450321242213,
-0.0032901866361498833,
-0.02026846632361412,
0.0026848840061575174,
-0.018819408491253853,
-0.01708604209125042,
-0.026211438700556755,
-0.015251792035996914,
0.020983824506402016,
0.03308987617492676,
0.010950474999845028,
0.021148907020688057,
-0.06075037270784378,
-0.05495414137840271,
0.0015510879456996918,
-0.036373186856508255,
0.022891445085406303,
-0.04002334550023079,
-0.08144071698188782,
-0.025532765313982964,
-0.01584792323410511,
0.005534850526601076,
0.04934133589267731,
0.04970818758010864,
-0.0018846922321245074,
0.08290811628103256,
0.050331830978393555,
0.07791895419359207,
0.03404368832707405,
-0.01073953602463007,
-0.005603634752333164,
0.002946264808997512,
0.043214939534664154,
0.003368142293766141,
0.01237201876938343,
0.007974403910338879,
0.026211438700556755,
-0.009996664710342884,
0.0053284973837435246,
0.062034349888563156,
-0.050038352608680725,
0.003070076694712043,
-0.042591292411088943,
0.004496206063777208,
-0.06276804953813553,
0.005993413273245096,
-0.06757378578186035,
-0.03248457610607147,
-0.016856761649250984,
0.03552943095564842,
0.008795230649411678,
-0.022249456495046616,
0.09684842079877853,
-0.004714023321866989,
-0.00043735408689826727,
0.01242704689502716,
0.03969318047165871,
0.0061218105256557465,
0.023221610113978386,
-0.0009549566311761737,
-0.00010955346806440502,
0.07237952202558517,
0.08584292232990265,
-0.03477738797664642,
-0.010913790203630924,
-0.021515756845474243,
-0.01150992140173912,
0.04061030223965645,
0.03639152646064758,
0.08166082948446274,
-0.00017396718612872064,
0.017205268144607544,
-0.03928964212536812,
-0.03129231184720993,
0.00030379771487787366,
-0.003494247095659375,
-0.035914622247219086,
-0.11298982799053192,
-0.043031513690948486,
-0.017911454662680626,
-0.01051025465130806,
0.05326663330197334,
-0.07039853185415268,
0.10066366195678711,
-0.008685175329446793,
0.006328163668513298,
-0.1015441045165062,
0.0695914626121521,
0.0965549424290657,
0.07208604365587234,
0.06889444589614868,
0.025019176304340363,
-0.012784725055098534,
-0.044352173805236816,
-0.05964982137084007,
0.02980656921863556,
-0.056128062307834625,
0.029366349801421165,
0.04791061952710152,
0.015609471127390862,
-0.000014446512977883685,
-0.020947139710187912,
0.0020749957766383886,
0.023625144734978676,
0.0040078372694551945,
-0.0021896364632993937,
0.0034392194356769323,
-0.004149991553276777,
-0.05656828358769417,
-0.035639483481645584,
0.01530681923031807,
0.008455893956124783,
-0.006800483446568251,
0.09273970127105713,
-0.023973653092980385,
0.004432007670402527,
0.010913790203630924,
0.022928129881620407,
0.0061218105256557465,
-0.036776721477508545,
-0.01219776552170515,
0.06812406331300735,
0.0049066198989748955,
0.04141737520694733,
-0.010831248946487904,
-0.006873853504657745,
-0.011464064940810204,
-0.0307236947119236,
-0.006493246182799339,
-0.0005058518727310002,
0.03279639780521393,
-0.0015132565749809146,
-0.024303818121552467,
-0.008671418763697147,
-0.07586459815502167,
0.0025060446932911873,
-0.02578956075012684,
-0.0005411038873717189,
0.030100049450993538,
0.03292479366064072,
0.03162247687578201,
0.03686843439936638,
-0.0014914748026058078,
-0.005030431784689426,
0.04670001566410065,
0.03492412716150284,
-0.008391696028411388,
-0.08166082948446274,
0.08694346994161606,
-0.0006580373155884445,
-0.028577622026205063,
0.032246120274066925,
-0.0487910620868206,
-0.037455394864082336,
-0.01776471547782421,
0.006878438871353865,
-0.030558612197637558,
-0.06841754168272018,
0.10315824300050735,
-0.02514757215976715,
-0.011069701053202152,
-0.0446823388338089,
0.026028012856841087,
-0.021515756845474243,
-0.02584458887577057,
0.02751375548541546,
0.004234825726598501,
-0.019443053752183914,
0.005906286183744669,
0.011033016256988049,
0.06830748170614243,
-0.0181682500988245,
0.030393529683351517,
0.0005170293152332306,
0.021735867485404015,
0.033163245767354965,
0.03477738797664642,
-0.025532765313982964,
0.013509253971278667,
0.017370350658893585,
0.04783724993467331,
0.05106553062796593,
0.06599632650613785,
-0.029989993199706078,
0.03778555989265442,
0.0040376437827944756,
0.007341587450355291,
-0.058365847915410995,
-0.007919375784695148,
0.0035699098370969296,
-0.02301984280347824,
-0.002870601834729314,
-0.00324433040805161,
-0.05462397634983063,
0.07857928425073624,
-0.054697345942258835,
-0.007547940593212843,
0.0035309321247041225,
0.0085017504170537,
-0.012546272948384285,
0.028100715950131416,
0.01128064002841711,
0.023405035957694054,
0.029659828171133995,
0.0058420873247087,
-0.06621643900871277,
0.02015841193497181,
-0.030338501557707787,
-0.00575496070086956,
0.03220943734049797,
0.11805235594511032,
-0.004892862867563963,
0.012766382656991482,
-0.04552609473466873,
0.05146906524896622,
-0.04662664607167244,
-0.08415541052818298,
0.05554110184311867,
0.004262339323759079,
-0.020231781527400017,
-0.03969318047165871,
0.04336167871952057,
0.04233450070023537,
-0.018415873870253563,
-0.03452059254050255,
-0.033731866627931595,
0.0008523532305844128,
-0.02584458887577057,
0.04427880421280861,
0.057742200791835785,
-0.03472236171364784,
-0.009923295117914677,
0.03461230546236038,
0.016150575131177902,
-0.04537935554981232,
-0.0873103216290474,
0.034832414239645004,
-0.0029256294947117567,
-0.019076203927397728,
-0.012280306778848171,
0.006277721840888262,
-0.019956644624471664,
-0.014875770546495914,
-0.00866683293133974,
0.03472236171364784,
-0.009941637516021729,
0.018507586792111397,
-0.0034392194356769323,
-0.01870018243789673,
-0.006167666986584663,
-0.06133733317255974,
-0.01036351453512907,
0.030100049450993538,
-0.06632649153470993,
-0.02778889425098896,
-0.01738869398832321,
0.06166749820113182,
0.044242121279239655,
0.027091877534985542,
-0.020451892167329788,
0.035235948860645294,
0.014371352270245552,
0.006296064704656601,
-0.026614973321557045,
0.023294979706406593,
0.02549608051776886,
-0.014820743352174759,
0.06027346849441528,
-0.026743371039628983,
-0.023845255374908447,
0.027935633435845375,
0.0487910620868206,
0.040573619306087494,
0.030448555946350098,
0.023221610113978386,
0.040793728083372116,
0.005498165730386972,
-0.03008170612156391,
-0.04314156994223595,
-0.019277971237897873,
0.004546648357063532,
-0.002723861951380968,
0.015481073409318924,
0.0031319826375693083,
0.025220943614840508,
0.03796898201107979,
-0.051138900220394135,
0.05102884769439697,
-0.01825079135596752,
-0.03485075756907463,
-0.02434050291776657,
-0.025074202567338943,
0.02204768918454647,
0.02611972577869892,
0.012509588152170181,
0.04651658982038498,
-0.057045187801122665,
-0.025881273671984673,
0.09794896841049194,
-0.00019632211478892714,
-0.06401533633470535,
0.056128062307834625,
0.0635017454624176,
-0.03129231184720993,
-0.0320260114967823,
0.012078538537025452,
0.030815405771136284,
0.04644322022795677,
-0.012326162308454514,
-0.022322827950119972,
-0.008685175329446793,
-0.027458729222416878,
-0.03903284668922424,
-0.020855426788330078,
-0.0396198071539402,
0.0057595460675656796,
0.037455394864082336,
0.00025779815041460097,
0.005851258989423513,
-0.015554443001747131,
-0.002209125319495797,
0.03472236171364784,
0.015187593176960945,
-0.028724361211061478,
-0.11152242124080658,
-0.033896949142217636,
0.01595797762274742,
-0.014958311803638935,
0.051248956471681595,
0.028779389336705208,
0.012564615346491337,
0.06053026393055916,
-0.002095631090924144,
-0.043324995785951614,
-0.00483783520758152,
-0.021570784971117973,
-0.02975154109299183,
0.010042521171271801,
-0.05869601294398308,
-0.03928964212536812,
0.017929797992110252,
-0.03013673424720764,
-0.02428547479212284,
-0.012069367803633213,
0.033108219504356384,
0.04541603848338127,
0.02980656921863556,
0.045966316014528275,
-0.06485909223556519,
0.04893780127167702,
0.004695680923759937,
-0.010959645733237267,
-0.024157077074050903,
-0.08848424255847931,
0.022652992978692055,
-0.03547440096735954,
-0.04101384058594704,
-0.010372686199843884,
0.0002610940719023347,
-0.023863596841692924,
-0.032998163253068924,
-0.02204768918454647,
0.00347361178137362,
0.04970818758010864,
0.0368134044110775,
0.05007503554224968,
-0.008712689392268658,
0.007456227671355009,
0.019553110003471375,
-0.022873101755976677,
-0.01714107021689415,
-0.02279973216354847,
-0.048607636243104935,
0.010721193626523018,
0.03519926592707634,
-0.05502751097083092,
-0.03980323299765587,
-0.02457895502448082,
-0.006621643900871277,
0.08268801122903824,
-0.06639986485242844,
0.04633316397666931,
0.0071260626427829266,
-0.0604202076792717,
0.005268884357064962,
0.038555942475795746,
-0.002703226637095213,
-0.009400533512234688,
0.03716191276907921,
-0.051359012722969055,
0.03435551002621651,
0.02744038589298725,
-0.007946889847517014,
-0.006612472701817751,
-0.026670001447200775,
0.019626479595899582,
-0.012445389293134212,
-0.060897111892700195,
0.03452059254050255,
-0.024377187713980675,
-0.022524595260620117,
0.01822327822446823,
-0.09508754312992096,
0.05587126687169075,
-0.04255460947751999,
-0.02991662360727787,
0.007878105156123638,
0.045966316014528275,
-0.004824078641831875,
-0.015325161628425121,
-0.001269071944989264,
-0.03751042112708092,
0.0330531932413578,
0.024652324616909027,
0.011143071576952934,
-0.010831248946487904,
-0.0038335833232849836,
0.06577622145414352,
-0.028229113668203354,
-0.00433341646566987,
-0.014279639348387718,
0.02199266292154789,
0.012307819910347462,
0.012968149967491627,
0.02434050291776657,
-0.052166081964969635,
0.0487176887691021,
0.037345338612794876,
-0.038776054978370667,
0.009152909740805626,
0.005709104239940643,
-0.02657828852534294,
-0.03248457610607147,
0.06599632650613785,
0.0026206851471215487,
-0.0015373311471194029,
-0.04552609473466873,
-0.0008878918597474694,
-0.004998332355171442,
0.004092670977115631,
0.03061363846063614,
-0.03384191915392876,
-0.05840253084897995,
0.03466733172535896,
0.0017987118335440755,
-0.02366182953119278,
-0.027587125077843666,
-0.02663331665098667,
0.001026607002131641,
-0.04185759276151657,
-0.000013900178601033986,
-0.01746206358075142,
0.016379855573177338,
-0.04416874796152115,
0.10007670521736145,
0.012619642540812492,
0.022377854213118553,
0.017773887142539024,
0.02026846632361412,
0.005993413273245096,
-0.0047552939504384995,
-0.04603968560695648,
0.0015338918892666698,
0.02136901766061783,
0.027146905660629272,
0.049304649233818054,
0.04002334550023079,
-0.019277971237897873,
-0.018039852380752563,
0.010666166432201862,
-0.01776471547782421,
0.0487910620868206,
-0.04816741496324539,
0.006974737159907818,
-0.019846590235829353,
-0.024487242102622986,
0.024102050811052322,
0.007790978532284498,
0.04699349403381348,
-0.036153074353933334,
-0.009895781055092812,
0.032356176525354385,
-0.001895009889267385,
0.007414957042783499,
-0.0007411518017761409,
0.08004669100046158,
-0.042224444448947906,
0.006002584472298622,
-0.020763713866472244,
0.007442471105605364,
-0.041710853576660156,
-0.008923628367483616,
-0.012738868594169617,
-0.024138735607266426,
-0.025019176304340363,
0.05458729341626167,
-0.0353093184530735,
0.028871100395917892,
-0.023038184270262718,
0.06731698662042618,
-0.003095297608524561,
0.038555942475795746,
0.014398865401744843,
0.03552943095564842,
-0.020176755264401436,
0.03450224921107292,
0.005511922296136618,
-0.050221774727106094,
0.012023511342704296,
0.03650158271193504,
-0.039473067969083786,
-0.022304484620690346,
0.06981156766414642,
0.016774220392107964,
0.06933466345071793,
-0.021258961409330368,
0.029072869569063187,
-0.006516174413263798,
0.00846047978848219,
-0.05759546160697937,
-0.02406536601483822,
-0.04002334550023079,
-0.06328164041042328,
0.010381856933236122,
-0.0013768342323601246,
0.00964815728366375,
-0.07469067722558975,
0.031163914129137993,
0.036373186856508255,
0.03991328924894333
]
|
30,078 | networkx.classes.digraph | clear | Remove all nodes and edges from the graph.
This also removes the name, and all graph, node, and edge attributes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear()
>>> list(G.nodes)
[]
>>> list(G.edges)
[]
| def clear(self):
"""Remove all nodes and edges from the graph.
This also removes the name, and all graph, node, and edge attributes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear()
>>> list(G.nodes)
[]
>>> list(G.edges)
[]
"""
self._succ.clear()
self._pred.clear()
self._node.clear()
self.graph.clear()
nx._clear_cache(self)
| (self) | [
-0.02395651489496231,
0.02943074144423008,
0.006756965536624193,
-0.01359523180872202,
-0.07681983709335327,
0.006219479721039534,
-0.0941639170050621,
-0.029647542163729668,
0.10218555480241776,
0.029304273426532745,
-0.01812998577952385,
-0.018500354140996933,
0.024697251617908478,
0.06782259047031403,
-0.007651269901543856,
-0.0035930254962295294,
-0.002121714409440756,
0.00109924899879843,
0.03472429886460304,
-0.02149943634867668,
-0.032610490918159485,
-0.0314180850982666,
0.026594260707497597,
0.019349493086338043,
-0.009810246527194977,
-0.012556393630802631,
0.031454216688871384,
-0.03167101740837097,
-0.01058711763471365,
0.04556434974074364,
-0.03967459127306938,
-0.004959323909133673,
-0.026485860347747803,
-0.011111052706837654,
0.023179644718766212,
0.009990914724767208,
0.005401959177106619,
-0.005812977906316519,
-0.05727160722017288,
0.0055826264433562756,
0.024281715974211693,
-0.006088495720177889,
-0.01763315126299858,
-0.029484940692782402,
0.06514871120452881,
-0.018337754532694817,
0.07747023552656174,
0.0272627305239439,
-0.004891573451459408,
-0.0680755227804184,
-0.01681111380457878,
0.03196008503437042,
-0.030117277055978775,
0.060884956270456314,
-0.022149838507175446,
-0.0043021454475820065,
0.016368478536605835,
0.014643102884292603,
0.046937424689531326,
0.00030600561876781285,
0.033694494515657425,
-0.008708175271749496,
-0.02719046361744404,
-0.01983729563653469,
0.0001377589942421764,
-0.0016508495900779963,
-0.038409918546676636,
0.02554638870060444,
-0.007719020359218121,
-0.01732601597905159,
-0.05546493083238602,
-0.0015447073383256793,
0.005067724268883467,
0.012213124893605709,
0.017488617449998856,
-0.018554555252194405,
0.00798098836094141,
0.02641359344124794,
-0.00011263491614954546,
-0.0698099359869957,
0.03441716358065605,
0.013369397260248661,
-0.07631396502256393,
-0.006242063362151384,
0.037000708281993866,
-0.02285444177687168,
0.022980909794569016,
0.01783188432455063,
0.007353168446570635,
-0.04570888355374336,
0.0156638752669096,
0.001482602907344699,
0.012962895445525646,
-0.016314277425408363,
0.04697355628013611,
0.0417703315615654,
-0.041661933064460754,
-0.053802791982889175,
0.0034394580870866776,
-0.04065019264817238,
-0.018807489424943924,
0.01139108743518591,
-0.07457955926656723,
0.03277308866381645,
-0.02204143814742565,
-0.024588851258158684,
0.02505858615040779,
-0.07486862689256668,
0.005551009904593229,
0.0373259112238884,
-0.04845502972602844,
0.05915055051445961,
0.047949161380529404,
0.023559045046567917,
0.06814779341220856,
0.02200530469417572,
-0.05416412651538849,
-0.01682014763355255,
0.012845461256802082,
0.017768651247024536,
-0.05658506974577904,
0.04816596210002899,
-0.02419138140976429,
0.004611538723111153,
0.05636826902627945,
0.026232926174998283,
0.017172448337078094,
0.0007842099876143038,
-0.019132690504193306,
-0.0698099359869957,
0.021680103614926338,
0.008884325623512268,
-0.01127365417778492,
0.05391119047999382,
0.009268244728446007,
-0.024841785430908203,
0.00014368713891599327,
-0.07653076201677322,
0.00836942344903946,
0.05669347196817398,
-0.06482350826263428,
-0.03382096067070961,
0.015221239067614079,
0.02973787486553192,
0.01839195378124714,
-0.013784932903945446,
0.032321419566869736,
-0.06410083919763565,
-0.061174023896455765,
-0.03765111416578293,
-0.0014385652029886842,
0.008116488344967365,
0.026540059596300125,
-0.060921091586351395,
-0.06962926685810089,
0.029304273426532745,
-0.0334596261382103,
0.03833765164017677,
-0.039999790489673615,
-0.0002938670222647488,
-0.03002694435417652,
0.014164334163069725,
0.03055087849497795,
-0.043035004287958145,
-0.024426249787211418,
-0.04751555994153023,
0.06738898903131485,
-0.008297156542539597,
-0.04093926399946213,
-0.014263701625168324,
-0.05868081375956535,
-0.08108358830213547,
-0.03667550906538963,
-0.02505858615040779,
0.0014724403154104948,
0.01844615489244461,
-0.00033367035211995244,
0.01980116218328476,
-0.012411858886480331,
0.030045010149478912,
0.002260602544993162,
-0.051634781062603,
-0.06034295633435249,
0.0028003468178212643,
0.03569990396499634,
-0.030117277055978775,
-0.022944776341319084,
-0.023450644686818123,
-0.00919597689062357,
-0.00794937089085579,
-0.002834221813827753,
0.0016214910428971052,
0.011318820528686047,
0.0740736871957779,
0.07906010746955872,
-0.04018045961856842,
0.014164334163069725,
-0.0025699955876916647,
0.009918647818267345,
0.006775032263249159,
-0.005049657542258501,
0.0027145296335220337,
0.06319750100374222,
-0.023017043247818947,
-0.01471537072211504,
0.017714451998472214,
0.01006318163126707,
-0.02587158977985382,
-0.021914971992373466,
0.033188626170158386,
-0.0043563456274569035,
0.005447125993669033,
0.07168887555599213,
-0.03244788944721222,
-0.02256537415087223,
-0.02204143814742565,
-0.047118090093135834,
0.03329702466726303,
0.004286337178200483,
-0.016594313085079193,
-0.027605999261140823,
-0.01761508360505104,
-0.011924057267606258,
-0.05315238609910011,
-0.016558179631829262,
0.002114939270541072,
-0.03485076501965523,
-0.013342296704649925,
0.01873522251844406,
-0.08498600870370865,
0.09004469960927963,
0.005790394265204668,
0.0462147556245327,
-0.024137182161211967,
0.024624984711408615,
-0.006689215078949928,
-0.02034316398203373,
0.010289016179740429,
-0.013188729993999004,
-0.03210461884737015,
-0.05564559996128082,
-0.07064100354909897,
-0.04036112502217293,
-0.004864473361521959,
0.010252882726490498,
0.044986214488744736,
0.006273679900914431,
-0.004022110719233751,
0.03051474504172802,
-0.03304409235715866,
-0.04046952724456787,
-0.07667530328035355,
0.029918542131781578,
-0.024064915254712105,
0.03517596796154976,
-0.048527300357818604,
-0.05687413737177849,
-0.035862505435943604,
0.008012604899704456,
0.03555537015199661,
0.014950238168239594,
0.014896037988364697,
-0.02997274324297905,
0.09105643630027771,
0.09488658607006073,
0.028961004689335823,
0.04820209741592407,
0.05481452867388725,
-0.0402165912091732,
-0.019403692334890366,
0.06897886097431183,
-0.02912360616028309,
0.040830861777067184,
-0.0006210446590557694,
0.028942938894033432,
0.06561844795942307,
-0.04476941376924515,
0.031237415969371796,
0.0011161866132169962,
0.029810141772031784,
0.031183214858174324,
-0.02587158977985382,
0.014236601069569588,
-0.003611092222854495,
-0.012664793990552425,
0.027136262506246567,
-0.002104776678606868,
-0.0256186556071043,
-0.0054742260836064816,
0.00611107936128974,
0.0719418078660965,
0.008897875435650349,
-0.02254730835556984,
0.027660198509693146,
0.04104766249656677,
-0.01018061488866806,
0.014941204339265823,
-0.005149024538695812,
-0.0018981382017955184,
0.06334203481674194,
0.053224653005599976,
-0.061210159212350845,
-0.003412357997149229,
-0.01597101055085659,
0.05799427628517151,
0.002468370134010911,
0.03333315998315811,
0.04722649231553078,
0.05647667124867439,
0.03826538100838661,
-0.04831049591302872,
-0.006644048262387514,
-0.04025272652506828,
0.03326089307665825,
0.015094771981239319,
-0.029593341052532196,
-0.008879808709025383,
-0.04231233522295952,
0.0024254615418612957,
0.01927722617983818,
-0.023017043247818947,
0.02863580361008644,
-0.010270949453115463,
0.028274469077587128,
-0.09835540503263474,
-0.0006752448971383274,
0.004972873721271753,
0.09445298463106155,
-0.022493107244372368,
-0.003651742357760668,
0.01784995198249817,
-0.010415483266115189,
0.016133610159158707,
-0.009250177070498466,
-0.07457955926656723,
0.02529345452785492,
0.030460545793175697,
0.002773246495053172,
0.0036562590394169092,
0.0007271867943927646,
0.036747775971889496,
0.04729875922203064,
-0.01401076652109623,
-0.009801213629543781,
-0.01707308180630207,
0.05340532213449478,
0.013983666896820068,
-0.012655760161578655,
0.004661222454160452,
-0.022204039618372917,
0.015835508704185486,
0.076964370906353,
0.04401060938835144,
-0.0021454268135130405,
0.06850912421941757,
0.027425330132246017,
0.006255613174289465,
0.03163488581776619,
-0.017759617418050766,
-0.015627741813659668,
0.03772338107228279,
0.02258344180881977,
-0.04375767707824707,
-0.03439909592270851,
0.07233928143978119,
-0.034814633429050446,
0.0233964454382658,
0.04158966615796089,
0.013242930173873901,
-0.05727160722017288,
0.009963814169168472,
-0.10999039560556412,
-0.06370337307453156,
-0.014679236337542534,
-0.0038301516324281693,
0.06977380067110062,
0.020270897075533867,
0.026630394160747528,
0.028653869405388832,
0.021372968330979347,
0.008830125443637371,
0.016648512333631516,
0.03830151632428169,
-0.01654914580285549,
0.027389196678996086,
-0.03597090393304825,
0.01112911943346262,
0.02009022980928421,
0.019710827618837357,
0.042782071977853775,
0.01276416052132845,
-0.03161681815981865,
-0.01211375743150711,
-0.0233964454382658,
0.005934928543865681,
0.048238229006528854,
0.0688343271613121,
0.01376686617732048,
-0.05138184502720833,
-0.0582110770046711,
0.0225292406976223,
-0.022167906165122986,
0.025094719603657722,
0.043360207229852676,
0.04509461671113968,
-0.014914104714989662,
-0.005980095360428095,
0.0035162419080734253,
0.041661933064460754,
0.012303458526730537,
0.08093905448913574,
0.014652136713266373,
0.002330611227080226,
0.03183361887931824,
0.0611017569899559,
-0.023233843967318535,
0.05015330761671066,
0.014652136713266373,
0.11859016865491867,
0.0527910515666008,
0.003121031681075692,
0.0659436509013176,
0.005551009904593229,
0.02090323343873024,
0.02395651489496231,
-0.0008559123962186277,
-0.0396384559571743,
-0.01674788072705269,
-0.01653107814490795,
0.04043339192867279,
-0.017651217058300972,
-0.05271878466010094,
-0.010569050908088684,
-0.0006893595564179122,
-0.05907828360795975,
0.02198723889887333,
-0.011192353442311287,
-0.016892414540052414,
-0.010921352542936802,
0.002698721131309867,
-0.04263753816485405,
-0.017145348712801933,
0.007524802815169096,
-0.057307738810777664,
0.0014950238401070237,
0.00976508017629385,
0.0027980883605778217,
0.03636837378144264,
-0.0049096401780843735,
0.003663034178316593,
-0.03579023852944374,
0.005054173991084099,
0.00021087288041599095,
-0.05528426542878151,
-0.06128242611885071,
0.028003467246890068,
0.013649431988596916,
0.016982747241854668,
-0.052393585443496704,
0.041951000690460205,
0.014263701625168324,
0.020397363230586052,
-0.03221302106976509,
-0.0086539750918746,
0.00502707390114665,
0.009430845268070698,
0.04588955268263817,
0.016829179599881172,
-0.020578032359480858,
-0.0039882357232272625,
-0.02505858615040779,
-0.057343874126672745,
-0.05947574973106384,
-0.032357554882764816,
-0.026250991970300674,
0.003489141585305333,
-0.04260140284895897,
0.015085739083588123,
-0.0020686432253569365,
-0.04375767707824707,
0.003046506317332387,
-0.025130853056907654,
0.030858013778924942,
0.0043857041746377945,
0.035031434148550034,
0.01600714400410652,
0.024101048707962036,
-0.02334224432706833,
-0.0186629556119442,
-0.02370358072221279,
-0.02941267378628254,
-0.0930076465010643,
-0.05423639342188835,
-0.044371943920850754,
0.038084715604782104,
0.02722659707069397,
-0.049936506897211075,
-0.015853576362133026,
-0.026612326502799988,
-0.032050419598817825,
-0.015871642157435417,
-0.01471537072211504,
-0.0379040464758873,
0.024552717804908752,
0.047732360661029816,
0.02121036872267723,
0.022727975621819496,
0.0015853575896471739,
0.012493159621953964,
-0.009010792709887028,
-0.030207611620426178,
-0.04007205739617348,
0.007601586170494556,
0.037867914885282516,
0.028184134513139725,
-0.014625036157667637,
-0.027931200340390205,
0.0017818334745243192,
0.01785898581147194,
-0.013080328702926636,
-0.02554638870060444,
0.03924098610877991,
-0.022908642888069153,
0.043902210891246796,
-0.05004490539431572,
0.03078574687242508,
-0.020162496715784073,
-0.010514849796891212,
0.0379040464758873,
-0.0030239226762205362,
0.06811165809631348,
0.02478758431971073,
-0.024643050506711006,
0.07884331047534943,
0.023595178499817848,
-0.002603870816528797,
-0.0022007564548403025,
-0.09582605957984924,
0.010785851627588272,
0.01598907634615898,
-0.009647645987570286,
-0.014751504175364971,
0.02502245269715786,
0.04509461671113968,
0.015754207968711853,
0.010614217258989811,
0.03416423127055168,
0.018003519624471664,
0.03373062610626221,
0.015167038887739182,
-0.060523621737957,
-0.03485076501965523,
-0.035338569432497025,
-0.02451658435165882,
0.04986423999071121,
-0.03282729163765907,
0.011851790361106396,
0.01792221888899803,
0.031002547591924667,
-0.00785903725773096,
-0.0347062312066555,
-0.0170188806951046,
0.015537407249212265,
0.017985451966524124,
0.03492303192615509,
-0.0031413566321134567,
-0.0025112787261605263,
-0.003952102269977331,
0.04675675556063652,
0.04018045961856842,
-0.012285391800105572,
0.0002606975904200226,
0.03517596796154976,
-0.04979196935892105,
0.0010777947027236223,
0.0062330299988389015,
-0.021607836708426476,
0.020487697795033455,
0.0029381057247519493,
-0.03405582904815674,
-0.006964733358472586,
0.013821066357195377,
-0.009006276726722717,
-0.014110133983194828,
0.01074068434536457,
0.012339591979980469,
-0.010126414708793163,
-0.009168877266347408,
-0.003836926771327853,
-0.0256186556071043,
0.00797195453196764,
-0.008857225999236107,
0.05365825816988945,
0.00909209344536066,
-0.04917770251631737,
0.012926761992275715,
0.015582574531435966,
-0.02831060253083706,
-0.05947574973106384,
-0.021860770881175995,
0.006580814719200134,
-0.003642708994448185,
0.07107460498809814,
0.014697303995490074,
-0.05604306608438492,
0.07230314612388611,
-0.012872561812400818,
0.051634781062603,
0.04534754902124405,
-0.017967386171221733,
-0.004345054272562265,
-0.0003503256302792579,
0.008446207270026207,
-0.0016587537247687578,
0.0014543735887855291,
-0.04317953810095787,
0.00785903725773096,
0.0021002599969506264,
-0.0634143054485321,
-0.011246553622186184,
-0.01156272180378437,
-0.07761476933956146,
-0.06572684645652771,
0.012059557251632214,
-0.005826527718454599,
0.06482350826263428,
-0.03000887669622898,
0.038626719266176224,
-0.035356637090444565,
0.0775425061583519,
0.01762411743402481,
-0.14301641285419464,
-0.05738000571727753,
0.05055077373981476,
-0.00007995949999894947,
-0.08903295546770096,
-0.023595178499817848,
0.03333315998315811,
-0.002448044950142503,
0.017479583621025085,
-0.001982826041057706,
0.0031368399504572153,
-0.015853576362133026,
-0.02361324615776539,
-0.0703880712389946,
-0.035085633397102356,
-0.05506746470928192,
-0.04397447779774666,
0.03768724575638771,
-0.014408235438168049,
-0.01625104434788227,
0.02009022980928421,
0.06460671126842499,
-0.016666579991579056,
0.004503138363361359,
-0.0031074814032763243,
-0.005980095360428095,
-0.031255483627319336,
-0.0014882488176226616,
-0.025094719603657722,
-0.04375767707824707,
0.025456054136157036,
0.053224653005599976,
0.0628361701965332,
0.030460545793175697,
-0.011544655077159405,
-0.006603398360311985,
0.016106510534882545,
-0.01143625471740961,
0.0033875161316245794,
-0.06055975705385208,
0.00989154726266861,
0.02119230106472969,
-0.010939419269561768,
-0.07747023552656174,
0.0346159003674984,
0.031201282516121864,
0.007380268536508083,
-0.012339591979980469,
0.021120034158229828,
0.0013335521798580885,
0.033206693828105927,
-0.018536489456892014,
-0.056512802839279175,
-0.017949318513274193,
0.032538220286369324,
-0.04682902246713638,
-0.004887056536972523,
-0.004868989810347557,
-0.004092119634151459,
-0.03604317083954811,
-0.05387505888938904,
0.08202306181192398,
-0.03441716358065605,
-0.00098237965721637,
0.028491269797086716,
0.014733437448740005,
-0.08108358830213547,
0.04657609015703201,
-0.06782259047031403,
0.0027077544946223497,
0.022077571600675583,
-0.04599795490503311,
-0.009539245627820492,
0.019078491255640984,
0.04375767707824707,
-0.015103805810213089,
0.04870796576142311,
-0.07320648431777954,
0.05777747556567192,
0.04072245955467224,
0.024335917085409164,
-0.03772338107228279,
0.025492187589406967,
0.08534733951091766,
0.037253644317388535,
0.012899661436676979,
-0.050695307552814484,
-0.03830151632428169,
0.015121872536838055,
0.022511174902319908,
0.030442478135228157,
-0.0064498307183384895,
0.025998057797551155,
0.031779419630765915,
0.040577925741672516,
-0.06290843337774277,
-0.04372154176235199,
0.05857241153717041,
0.010903285816311836,
-0.058464013040065765,
0.026594260707497597,
0.017533782869577408,
0.0411921963095665,
-0.033947430551052094,
-0.00908305961638689,
0.04289047047495842,
0.03685617446899414,
0.053260788321495056,
-0.020415430888533592,
-0.03953005373477936,
-0.03241175413131714,
-0.017109215259552002,
0.026287125423550606,
0.010840051807463169,
-0.039782989770174026,
0.014227568171918392,
0.07172501087188721,
-0.03078574687242508,
-0.005392925813794136,
0.03812084719538689,
-0.008324256166815758,
0.014263701625168324,
-0.008143588900566101,
0.041661933064460754,
0.014796670526266098,
-0.024263650178909302,
-0.0178860854357481,
-0.013703632168471813,
-0.027334997430443764,
-0.030153410509228706,
-0.031743284314870834,
-0.02366744726896286,
-0.0375065803527832,
0.027045929804444313,
0.028400935232639313,
0.05987321957945824,
-0.00824747234582901
]
|
30,079 | networkx.classes.digraph | clear_edges | Remove all edges from the graph without altering nodes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear_edges()
>>> list(G.nodes)
[0, 1, 2, 3]
>>> list(G.edges)
[]
| def clear_edges(self):
"""Remove all edges from the graph without altering nodes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear_edges()
>>> list(G.nodes)
[0, 1, 2, 3]
>>> list(G.edges)
[]
"""
for predecessor_dict in self._pred.values():
predecessor_dict.clear()
for successor_dict in self._succ.values():
successor_dict.clear()
nx._clear_cache(self)
| (self) | [
-0.0016314218519255519,
0.030977020040154457,
0.020136944949626923,
-0.0009227472473867238,
-0.09251702576875687,
-0.00544356182217598,
-0.07561705261468887,
-0.002768829930573702,
0.09944263100624084,
-0.006652719806879759,
-0.0120162982493639,
0.001390296034514904,
0.013982944190502167,
0.05107632651925087,
0.011207056231796741,
0.012100986205041409,
-0.018970131874084473,
-0.00710909441113472,
0.03842956945300102,
0.016664734110236168,
-0.040424447506666183,
-0.05905582383275032,
0.0285116545855999,
0.007400797680020332,
-0.009654441848397255,
0.013427766039967537,
-0.005617642775177956,
-0.05250661447644234,
-0.0013797100400552154,
0.06790102273225784,
-0.0049401381984353065,
-0.021266119554638863,
-0.020795630291104317,
-0.009974374435842037,
0.0389188788831234,
0.01890426315367222,
0.025481704622507095,
0.012515016831457615,
-0.065981425344944,
0.011150597594678402,
0.026083929464221,
0.006026968825608492,
-0.00088863680139184,
-0.008139465935528278,
0.054087456315755844,
-0.034609198570251465,
0.04998479038476944,
0.013258390128612518,
0.022357653826475143,
-0.06985826045274734,
0.0038815373554825783,
0.007960679940879345,
0.020080486312508583,
0.060862503945827484,
0.01930888369679451,
-0.016796469688415527,
0.002050157403573394,
-0.0005398865323513746,
0.03536197915673256,
0.011781053617596626,
0.011470531113445759,
-0.020099306479096413,
-0.021868346258997917,
-0.04245695844292641,
0.01590253971517086,
-0.008765216916799545,
-0.041628897190093994,
0.026592059060931206,
-0.020701531320810318,
-0.0005445914575830102,
-0.034552738070487976,
-0.0011626968625932932,
-0.011630496941506863,
0.0019442973425611854,
-0.014556940644979477,
-0.010520142503082752,
-0.006873849779367447,
0.051640912890434265,
-0.0054388572461903095,
-0.03731921687722206,
0.031127575784921646,
-0.012609114870429039,
-0.05416273698210716,
0.01195983961224556,
0.042682796716690063,
-0.03325418755412102,
0.015855491161346436,
0.036961644887924194,
0.03895651921629906,
-0.044752947986125946,
0.03841075301170349,
-0.003135811537504196,
-0.011950429528951645,
-0.03366822004318237,
0.031278133392333984,
0.04746296629309654,
-0.023562107235193253,
-0.030355973169207573,
0.01534736342728138,
-0.05213022232055664,
0.005029531195759773,
0.006591556128114462,
-0.07091215997934341,
0.04565628618001938,
-0.021943623200058937,
-0.009047510102391243,
0.02858693338930607,
-0.08589253574609756,
-0.0036063010338693857,
0.009160428307950497,
-0.0271566454321146,
0.08581726253032684,
0.03171098232269287,
0.01532854326069355,
0.03650997579097748,
0.026629697531461716,
-0.057437341660261154,
-0.048291027545928955,
0.020814448595046997,
0.04129014536738396,
-0.06688477098941803,
0.05909346416592598,
-0.02941499464213848,
0.022357653826475143,
0.05453912541270256,
0.015027429908514023,
0.014999200589954853,
0.007029111031442881,
-0.011178826913237572,
-0.0751277431845665,
0.027740051969885826,
-0.004944843240082264,
-0.008525267243385315,
0.05913110449910164,
-0.010341356508433819,
-0.052995920181274414,
-0.010360175743699074,
-0.03536197915673256,
0.06278210133314133,
0.05111396312713623,
-0.05691039189696312,
-0.022056540474295616,
0.006958537735044956,
0.04746296629309654,
-0.0130419647321105,
-0.01601545885205269,
0.04524225741624832,
-0.02600865252315998,
-0.032143834978342056,
-0.03140987083315849,
0.01133879367262125,
0.007974795065820217,
-0.010454273782670498,
-0.05325939506292343,
-0.04290863126516342,
0.03528670221567154,
-0.041515979915857315,
0.031296953558921814,
-0.06157764792442322,
0.026441501453518867,
-0.04053736478090286,
-0.002032513963058591,
0.026083929464221,
-0.08220390230417252,
-0.005057760514318943,
-0.03607712313532829,
0.061878759413957596,
-0.024352530017495155,
-0.015723753720521927,
0.012769081629812717,
-0.04189237207174301,
-0.07177785784006119,
-0.05660928040742874,
-0.040462084114551544,
0.024107875302433968,
0.01524385530501604,
0.02708136849105358,
0.020193403586745262,
-0.02497357502579689,
0.0353243425488472,
0.0008351186406798661,
-0.05593177676200867,
-0.042645156383514404,
0.005321234930306673,
0.06568031758069992,
-0.020061666145920753,
-0.020795630291104317,
-0.03861776739358902,
-0.021077923476696014,
-0.03427044674754143,
-0.01609073579311371,
-0.00847821868956089,
0.0023300985340029,
0.0587923526763916,
0.024747740477323532,
-0.04881797730922699,
-0.008064188063144684,
-0.0004990127636119723,
-0.010444863699376583,
0.023148076608777046,
-0.016260111704468727,
0.0055047255009412766,
0.04900617152452469,
0.01246796827763319,
-0.019967569038271904,
0.018113840371370316,
0.03385641425848007,
-0.06105069816112518,
0.02493593655526638,
0.02858693338930607,
-0.02726956270635128,
-0.036848727613687515,
0.06455113738775253,
-0.041628897190093994,
-0.02612156979739666,
0.013446586206555367,
-0.042720433324575424,
0.06210459768772125,
-0.03955874592065811,
-0.010416634380817413,
-0.036848727613687515,
-0.025406425818800926,
-0.02384440042078495,
-0.06010971963405609,
0.009583868086338043,
0.0024512496311217546,
-0.012806720100343227,
-0.006746817380189896,
0.02040041796863079,
-0.06003444269299507,
0.06884200125932693,
0.026610879227519035,
0.04923200607299805,
-0.05826540291309357,
0.042569879442453384,
0.04893089458346367,
-0.009513295255601406,
-0.0025265279691666365,
-0.017210500314831734,
0.0135783227160573,
-0.04761352390050888,
-0.060824863612651825,
-0.021755428984761238,
-0.028116444125771523,
0.006370426155626774,
0.036848727613687515,
0.03842956945300102,
0.00042432258487679064,
0.009861457161605358,
-0.014613399282097816,
-0.0194594394415617,
-0.07554177194833755,
0.024710102006793022,
-0.01244914811104536,
0.06368543952703476,
-0.04113959148526192,
-0.053974539041519165,
-0.01697525568306446,
0.025274688377976418,
0.04561864957213402,
0.033555302768945694,
0.03325418755412102,
-0.02041923813521862,
0.05006006732583046,
0.09236647188663483,
0.05069993436336517,
0.02378794178366661,
0.054990798234939575,
-0.0076078129932284355,
-0.022094180807471275,
0.08250501751899719,
-0.05713622644543648,
0.049420204013586044,
0.03063826821744442,
0.03515496477484703,
0.0747513473033905,
-0.03432690352201462,
0.049457840621471405,
-0.0017643350875005126,
0.025594621896743774,
0.020061666145920753,
-0.02369384467601776,
0.02038159966468811,
0.018019743263721466,
-0.004907203838229179,
0.02480419911444187,
-0.007245536427944899,
-0.03615240380167961,
0.021905984729528427,
0.005325939506292343,
0.07682150602340698,
-0.001457340782508254,
-0.02369384467601776,
0.014180549420416355,
0.04648434743285179,
-0.023035159334540367,
0.05894290655851364,
-0.039107076823711395,
0.01825498789548874,
0.06884200125932693,
0.055254269391298294,
-0.05088812857866287,
-0.026893172413110733,
-0.013804158195853233,
0.0644005835056305,
0.005589413456618786,
0.031184034422039986,
0.03786498308181763,
0.032143834978342056,
0.009414492174983025,
-0.06289501488208771,
-0.0031781557481735945,
-0.05427565425634384,
-0.009833227843046188,
0.01645771786570549,
-0.0035380800254642963,
0.004768409766256809,
-0.020042845979332924,
-0.006511572748422623,
0.010341356508433819,
-0.02149195410311222,
0.06590615212917328,
-0.03850485011935234,
0.010548371821641922,
-0.08672060072422028,
0.02145431563258171,
0.027871789410710335,
0.10403461009263992,
-0.01306078489869833,
0.00032140305847860873,
0.04057500138878822,
-0.02625330723822117,
-0.001102121314033866,
0.0014961562119424343,
-0.04659726470708847,
0.010670699179172516,
0.038015540689229965,
0.012006888166069984,
-0.007720730267465115,
-0.019666455686092377,
0.03504204750061035,
0.06413710862398148,
-0.005015416536480188,
-0.019073639065027237,
-0.006991472095251083,
0.07761192321777344,
-0.009249821305274963,
-0.004944843240082264,
-0.01597781851887703,
-0.04855450242757797,
0.0018243225058540702,
0.0797949954867363,
0.032520223408937454,
-0.006535097025334835,
0.03265196084976196,
0.008435874246060848,
0.000501659291330725,
0.01242091879248619,
-0.016852928325533867,
-0.008958117105066776,
0.03208737447857857,
0.030318334698677063,
-0.05416273698210716,
-0.019064228981733322,
0.07049812376499176,
-0.015516739338636398,
0.011178826913237572,
0.0272507444024086,
0.016796469688415527,
-0.036792267113924026,
-0.005467086564749479,
-0.08483864367008209,
-0.052807725965976715,
-0.020739171653985977,
-0.005255366209894419,
0.04874269664287567,
-0.01768098957836628,
0.041628897190093994,
0.061841122806072235,
0.06304557621479034,
0.014585169963538647,
-0.01625070348381996,
0.019553538411855698,
0.0015584960347041488,
0.0502106249332428,
-0.04298390820622444,
0.016730600968003273,
0.02290342189371586,
0.05149035528302193,
0.030167777091264725,
-0.01601545885205269,
-0.00972031056880951,
0.009240411221981049,
-0.025858094915747643,
-0.0064127701334655285,
0.011244695633649826,
0.06041083484888077,
0.03161688521504402,
-0.02943381480872631,
-0.048215750604867935,
0.0056788064539432526,
0.016721192747354507,
0.01823616772890091,
0.0248230192810297,
0.0404997244477272,
-0.012938457541167736,
-0.00409090518951416,
0.00627632811665535,
0.07369745522737503,
0.0023430369328707457,
0.04166653752326965,
0.03818491846323013,
0.012515016831457615,
0.012195084244012833,
0.053861621767282486,
-0.03543725982308388,
0.04911908879876137,
-0.018019743263721466,
0.11540163308382034,
0.038015540689229965,
0.004446124657988548,
0.05246897414326668,
0.0018031505169346929,
-0.023524468764662743,
0.006389245390892029,
-0.025368787348270416,
-0.034552738070487976,
0.01821734756231308,
-0.03088292106986046,
0.06940659135580063,
0.002460659481585026,
-0.07956916093826294,
-0.002928796224296093,
-0.0011250576935708523,
-0.047312408685684204,
0.02954673208296299,
0.016561225056648254,
-0.020739171653985977,
0.016467127948999405,
0.005151858553290367,
-0.059658050537109375,
-0.00964503176510334,
0.01187515165656805,
-0.06684713065624237,
0.0009527409565635026,
0.012025708332657814,
0.0009392143692821264,
0.02256467007100582,
0.03295307606458664,
0.008261793293058872,
-0.05325939506292343,
-0.004864859860390425,
-0.017596302554011345,
-0.06583087146282196,
-0.08280612528324127,
0.02047569677233696,
0.017276369035243988,
0.024578364565968513,
-0.06266918033361435,
0.03948346897959709,
0.026836713775992393,
-0.008177105337381363,
-0.06857852637767792,
-0.004991892259567976,
0.032219111919403076,
-0.02173660881817341,
0.04230640456080437,
0.032426126301288605,
-0.020720351487398148,
0.004860155284404755,
-0.008849904872477055,
-0.06293265521526337,
-0.05453912541270256,
-0.03434572368860245,
-0.024107875302433968,
0.030864102765917778,
-0.058604154735803604,
-0.009372147731482983,
-0.017445744946599007,
-0.028699850663542747,
-0.010143750347197056,
-0.007090274710208178,
0.009240411221981049,
-0.01884780451655388,
0.055028434842824936,
-0.019835831597447395,
-0.008793446235358715,
-0.01142348162829876,
-0.025726357474923134,
-0.012646754272282124,
-0.023411551490426064,
-0.0973348394036293,
-0.059695690870285034,
-0.023336272686719894,
0.05600705370306969,
0.032990712672472,
-0.05416273698210716,
-0.010435453616082668,
0.015234445221722126,
-0.031146395951509476,
-0.005584708880633116,
-0.017652761191129684,
-0.03182389959692955,
0.01080243568867445,
0.04509169980883598,
0.015949590131640434,
0.0010480150813236833,
0.028681032359600067,
0.01413350086659193,
0.0041356016881763935,
0.02271522581577301,
-0.04441419616341591,
0.013851206749677658,
0.038222555071115494,
0.021360216662287712,
-0.014058222062885761,
-0.0033404745627194643,
0.004469648934900761,
0.01936534233391285,
0.012562066316604614,
-0.04911908879876137,
0.03325418755412102,
-0.029904304072260857,
0.05694803223013878,
-0.05265716835856438,
0.03982222080230713,
-0.015036839991807938,
-0.0272507444024086,
0.03063826821744442,
-0.02476656064391136,
0.059356939047575,
0.017191682010889053,
-0.006318672094494104,
0.07505246251821518,
0.0088310856372118,
0.018264397978782654,
0.004199117422103882,
-0.08092416822910309,
-0.008732282556593418,
0.024089055135846138,
-0.0002464188146404922,
0.000989203923381865,
0.029189160093665123,
0.05088812857866287,
-0.0016161309322342277,
0.01764335110783577,
0.034778572618961334,
0.022207098081707954,
0.04798991605639458,
0.004368493799120188,
-0.05796429142355919,
0.002731190761551261,
-0.005429447162896395,
-0.04512934014201164,
0.023185715079307556,
-0.047124214470386505,
0.008666413836181164,
0.040462084114551544,
0.02708136849105358,
0.00471665570512414,
-0.04795227572321892,
-0.0008051249315030873,
-0.004902499262243509,
0.0012397394748404622,
0.017257550731301308,
0.0160530973225832,
-0.01425582729279995,
-0.00815358106046915,
0.03421398624777794,
0.049420204013586044,
-0.013455995358526707,
0.015008610673248768,
0.02956555224955082,
-0.06722351908683777,
-0.011385842226445675,
0.0002561226428952068,
-0.020061666145920753,
-0.025820456445217133,
0.007927745580673218,
-0.03762032836675644,
-0.026855532079935074,
-0.024145513772964478,
-0.04765116423368454,
-0.016213063150644302,
-0.003248729044571519,
0.01625070348381996,
-0.035851288586854935,
-0.00017393403686583042,
-0.019111277535557747,
0.004041503649204969,
0.028078805655241013,
-0.017059944570064545,
0.03562545403838158,
0.013361898250877857,
-0.04847922548651695,
0.005749380216002464,
0.008402939885854721,
-0.02965964935719967,
-0.08513975888490677,
-0.02935853600502014,
-0.004897794220596552,
-0.022451752796769142,
0.07659567147493362,
-0.011837512254714966,
-0.06767518818378448,
0.039069436490535736,
0.013870025984942913,
0.010341356508433819,
0.03509850800037384,
-0.002001932356506586,
-0.030958199873566628,
0.05536718666553497,
0.03660407289862633,
-0.006831505335867405,
-0.004991892259567976,
-0.043887246400117874,
0.0016455365112051368,
0.019704094156622887,
-0.060749586671590805,
-0.007391388062387705,
-0.016391849145293236,
-0.06165292486548424,
-0.0410643108189106,
0.021868346258997917,
-0.009565048851072788,
0.056119970977306366,
0.01427464745938778,
0.04889325425028801,
-0.040424447506666183,
0.07264355570077896,
-0.02055097557604313,
-0.1308336853981018,
-0.048215750604867935,
0.06466405838727951,
0.020927367731928825,
-0.10870186239480972,
-0.023373911157250404,
0.033517662435770035,
-0.001119764638133347,
0.02627212554216385,
-0.01599663868546486,
-0.0012867883779108524,
-0.03314127027988434,
-0.03903179615736008,
-0.0733586996793747,
-0.004733122885227203,
-0.06643309444189072,
-0.05322175845503807,
0.012703212909400463,
-0.022301195189356804,
0.021868346258997917,
0.011828102171421051,
0.03933291137218475,
-0.02504885382950306,
-0.006610375363379717,
0.011197647079825401,
-0.003690988989546895,
-0.04418836161494255,
0.03733803704380989,
-0.01951589807868004,
0.002277168445289135,
0.015526149421930313,
0.032369669526815414,
0.015469689853489399,
0.030431251972913742,
-0.003321654861792922,
-0.017831547185778618,
0.026441501453518867,
0.0066339001059532166,
0.01705053448677063,
-0.036754630506038666,
-0.024183154106140137,
-0.0066950637847185135,
-0.05307120084762573,
-0.07177785784006119,
0.02487947791814804,
0.02141667529940605,
0.0021360216196626425,
-0.00008615836122771725,
0.023543287068605423,
-0.02711900696158409,
0.03293425589799881,
-0.02484183758497238,
-0.02279050461947918,
-0.011705775745213032,
0.011781053617596626,
-0.04053736478090286,
0.007024405989795923,
-0.023505648598074913,
-0.007447846699506044,
-0.021021464839577675,
-0.04678546264767647,
0.06127653643488884,
-0.04230640456080437,
0.015742573887109756,
0.012345640920102596,
0.01145171094685793,
-0.07384800910949707,
0.042607516050338745,
-0.0476888008415699,
0.022075360640883446,
0.0363970585167408,
-0.04550573229789734,
-0.003199327737092972,
0.021341398358345032,
0.015667295083403587,
-0.022320015355944633,
0.01571434549987316,
-0.08649476617574692,
0.06609434634447098,
-0.012053937651216984,
0.02056979574263096,
-0.03741331398487091,
0.013314848765730858,
0.07125090807676315,
0.03647233545780182,
-0.014942741952836514,
-0.06537920236587524,
-0.03530552238225937,
0.002726485952734947,
0.01816088892519474,
0.03888124227523804,
-0.0476888008415699,
0.047048937529325485,
-0.0005384162650443614,
0.024296071380376816,
-0.05890526995062828,
-0.027570676058530807,
0.029264438897371292,
0.030148958787322044,
-0.04847922548651695,
0.029810206964612007,
0.02277168445289135,
0.054953157901763916,
-0.04215584695339203,
-0.005424742586910725,
0.01823616772890091,
0.030224237591028214,
0.04200528934597969,
-0.019911110401153564,
-0.003674522042274475,
-0.06357252597808838,
0.0007280822610482574,
0.03944582864642143,
0.034552738070487976,
-0.0283234603703022,
0.0035874813329428434,
0.077084980905056,
-0.034609198570251465,
-0.02154841274023056,
0.026874352246522903,
0.008445284329354763,
0.011941020376980305,
-0.014058222062885761,
0.02166133001446724,
0.013408946804702282,
-0.01632598042488098,
-0.02950909361243248,
-0.03400697186589241,
-0.02395731769502163,
-0.02853047475218773,
-0.010924763046205044,
-0.038542490452528,
-0.03660407289862633,
0.012242132797837257,
0.03188036009669304,
0.06394891440868378,
-0.013173702172935009
]
|
30,080 | networkx.classes.graph | copy | Returns a copy of the graph.
The copy method by default returns an independent shallow copy
of the graph and attributes. That is, if an attribute is a
container, that container is shared by the original an the copy.
Use Python's `copy.deepcopy` for new containers.
If `as_view` is True then a view is returned instead of a copy.
Notes
-----
All copies reproduce the graph structure, but data attributes
may be handled in different ways. There are four types of copies
of a graph that people might want.
Deepcopy -- A "deepcopy" copies the graph structure as well as
all data attributes and any objects they might contain.
The entire graph object is new so that changes in the copy
do not affect the original object. (see Python's copy.deepcopy)
Data Reference (Shallow) -- For a shallow copy the graph structure
is copied but the edge, node and graph attribute dicts are
references to those in the original graph. This saves
time and memory but could cause confusion if you change an attribute
in one graph and it changes the attribute in the other.
NetworkX does not provide this level of shallow copy.
Independent Shallow -- This copy creates new independent attribute
dicts and then does a shallow copy of the attributes. That is, any
attributes that are containers are shared between the new graph
and the original. This is exactly what `dict.copy()` provides.
You can obtain this style copy using:
>>> G = nx.path_graph(5)
>>> H = G.copy()
>>> H = G.copy(as_view=False)
>>> H = nx.Graph(G)
>>> H = G.__class__(G)
Fresh Data -- For fresh data, the graph structure is copied while
new empty data attribute dicts are created. The resulting graph
is independent of the original and it has no edge, node or graph
attributes. Fresh copies are not enabled. Instead use:
>>> H = G.__class__()
>>> H.add_nodes_from(G)
>>> H.add_edges_from(G.edges)
View -- Inspired by dict-views, graph-views act like read-only
versions of the original graph, providing a copy of the original
structure without requiring any memory for copying the information.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Parameters
----------
as_view : bool, optional (default=False)
If True, the returned graph-view provides a read-only view
of the original graph without actually copying any data.
Returns
-------
G : Graph
A copy of the graph.
See Also
--------
to_directed: return a directed copy of the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> H = G.copy()
| def copy(self, as_view=False):
"""Returns a copy of the graph.
The copy method by default returns an independent shallow copy
of the graph and attributes. That is, if an attribute is a
container, that container is shared by the original an the copy.
Use Python's `copy.deepcopy` for new containers.
If `as_view` is True then a view is returned instead of a copy.
Notes
-----
All copies reproduce the graph structure, but data attributes
may be handled in different ways. There are four types of copies
of a graph that people might want.
Deepcopy -- A "deepcopy" copies the graph structure as well as
all data attributes and any objects they might contain.
The entire graph object is new so that changes in the copy
do not affect the original object. (see Python's copy.deepcopy)
Data Reference (Shallow) -- For a shallow copy the graph structure
is copied but the edge, node and graph attribute dicts are
references to those in the original graph. This saves
time and memory but could cause confusion if you change an attribute
in one graph and it changes the attribute in the other.
NetworkX does not provide this level of shallow copy.
Independent Shallow -- This copy creates new independent attribute
dicts and then does a shallow copy of the attributes. That is, any
attributes that are containers are shared between the new graph
and the original. This is exactly what `dict.copy()` provides.
You can obtain this style copy using:
>>> G = nx.path_graph(5)
>>> H = G.copy()
>>> H = G.copy(as_view=False)
>>> H = nx.Graph(G)
>>> H = G.__class__(G)
Fresh Data -- For fresh data, the graph structure is copied while
new empty data attribute dicts are created. The resulting graph
is independent of the original and it has no edge, node or graph
attributes. Fresh copies are not enabled. Instead use:
>>> H = G.__class__()
>>> H.add_nodes_from(G)
>>> H.add_edges_from(G.edges)
View -- Inspired by dict-views, graph-views act like read-only
versions of the original graph, providing a copy of the original
structure without requiring any memory for copying the information.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Parameters
----------
as_view : bool, optional (default=False)
If True, the returned graph-view provides a read-only view
of the original graph without actually copying any data.
Returns
-------
G : Graph
A copy of the graph.
See Also
--------
to_directed: return a directed copy of the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> H = G.copy()
"""
if as_view is True:
return nx.graphviews.generic_graph_view(self)
G = self.__class__()
G.graph.update(self.graph)
G.add_nodes_from((n, d.copy()) for n, d in self._node.items())
G.add_edges_from(
(u, v, datadict.copy())
for u, nbrs in self._adj.items()
for v, datadict in nbrs.items()
)
return G
| (self, as_view=False) | [
0.02078651264309883,
-0.026140324771404266,
0.0369432158768177,
-0.004765560384839773,
-0.05113748833537102,
0.019700508564710617,
-0.03105592541396618,
0.00843559019267559,
0.10227497667074203,
-0.004182070959359407,
-0.020977038890123367,
-0.027931280434131622,
0.002185108372941613,
0.0650840774178505,
-0.034809309989213943,
0.040734704583883286,
-0.004258282016962767,
-0.009183408692479134,
0.036257319152355194,
0.02903633750975132,
0.006654161028563976,
-0.07712539285421371,
-0.014584853313863277,
0.015537489205598831,
-0.011298260651528835,
-0.015918543562293053,
-0.010593309998512268,
0.016175756230950356,
0.021015144884586334,
0.020919881761074066,
-0.013232110999524593,
-0.07339105755090714,
-0.014337168075144291,
0.01817629113793373,
0.00876424927264452,
0.012193737551569939,
-0.0210532508790493,
0.04279239848256111,
-0.051594752818346024,
-0.029703183099627495,
-0.006858977489173412,
-0.02520674280822277,
-0.02236788719892502,
-0.007149531506001949,
0.043440189212560654,
0.004925127141177654,
0.0035938185174018145,
0.043021030724048615,
-0.02194872871041298,
-0.0602065809071064,
0.024387475103139877,
0.019681455567479134,
-0.05818699300289154,
0.05121370032429695,
-0.03450446575880051,
-0.008959539234638214,
0.035304680466651917,
0.059596892446279526,
-0.002686432795599103,
0.04473577439785004,
-0.015099276788532734,
-0.023301471024751663,
0.002519721630960703,
-0.0738864317536354,
-0.020386405289173126,
-0.007587743923068047,
-0.061730798333883286,
-0.04599325358867645,
0.026407063007354736,
-0.04587893933057785,
-0.043706927448511124,
0.036257319152355194,
0.0368860587477684,
0.027988439425826073,
0.0247685294598341,
0.01743323542177677,
0.0131082683801651,
0.00999314896762371,
-0.002019587904214859,
-0.04561220109462738,
-0.00936917308717966,
-0.04805094748735428,
-0.05525287613272667,
-0.027512120082974434,
-0.006392186041921377,
0.006215948611497879,
0.003305646125227213,
0.0010592119069769979,
0.03021760657429695,
-0.05864425748586655,
-0.003734332276508212,
0.04565030708909035,
-0.0030627239029854536,
0.034809309989213943,
0.024578003212809563,
-0.017518971115350723,
-0.03458067774772644,
-0.04096333682537079,
0.03326604142785072,
0.025930745527148247,
-0.040315546095371246,
0.014499116688966751,
-0.08139319717884064,
0.009716885164380074,
-0.030655819922685623,
-0.021834412589669228,
-0.01589949056506157,
-0.014937329106032848,
-0.013927535153925419,
-0.04873684421181679,
-0.05098506808280945,
0.05163285881280899,
0.04183976352214813,
0.030084237456321716,
0.04949895292520523,
0.002541156020015478,
0.011869841255247593,
-0.034390151500701904,
0.00009362623677588999,
0.035628579556941986,
0.0009913366520777345,
0.05292844399809837,
0.023625366389751434,
0.03757195547223091,
-0.0026388010010123253,
0.02972223609685898,
0.021110408008098602,
-0.023568209260702133,
-0.0196052435785532,
-0.041954077780246735,
-0.005449076648801565,
-0.02844570390880108,
-0.023911157622933388,
0.0679800882935524,
0.03837217018008232,
-0.010269413702189922,
-0.039934489876031876,
0.0049918112345039845,
0.011107733473181725,
0.056396037340164185,
-0.05445266142487526,
-0.0625310093164444,
0.08040245622396469,
0.07548686116933823,
-0.00595397362485528,
-0.04789852723479271,
-0.00479652127251029,
0.00959304254502058,
-0.027931280434131622,
-0.029284022748470306,
0.03486647084355354,
0.05338570848107338,
0.02648327499628067,
0.002399451332166791,
-0.04134439304471016,
0.015337435528635979,
-0.09884548932313919,
-0.0208817757666111,
-0.026311799883842468,
-0.01247000228613615,
-0.06375038623809814,
0.002755498979240656,
0.06706555932760239,
-0.039667751640081406,
0.01441337913274765,
-0.008130745962262154,
0.08573722094297409,
-0.054376449435949326,
-0.01275579258799553,
0.04492630437016487,
-0.02200588583946228,
-0.04523114487528801,
-0.02248220331966877,
0.011088680475950241,
-0.0003253846662119031,
0.04991811513900757,
0.027836017310619354,
0.005068022292107344,
-0.0009413232328370214,
-0.0052061546593904495,
0.022405993193387985,
-0.03440920263528824,
-0.05833941325545311,
0.03730521723628044,
0.000029118651582393795,
-0.0234919972717762,
-0.028521914035081863,
-0.0036319238133728504,
0.06222616881132126,
0.03831500932574272,
0.03158940374851227,
0.026064114645123482,
0.04065849632024765,
0.0059158680960536,
0.03223719447851181,
-0.09511115401983261,
-0.03345656767487526,
-0.019529033452272415,
-0.05365244671702385,
0.1412949413061142,
0.044240403920412064,
-0.06782766431570053,
0.06622723489999771,
0.005634840577840805,
-0.029855605214834213,
0.010221782140433788,
-0.023244312033057213,
-0.008478458039462566,
-0.004394032526761293,
-0.006454107351601124,
0.0014539603143930435,
0.0084546422585845,
0.07426748424768448,
0.005577682517468929,
-0.03587626293301582,
-0.02802654355764389,
-0.05007053539156914,
-0.017280813306570053,
-0.0014587235637009144,
-0.027188224717974663,
0.010659994557499886,
-0.0019981535151600838,
-0.08268878608942032,
0.02280610054731369,
-0.009878832846879959,
-0.056396037340164185,
-0.010488519445061684,
-0.05525287613272667,
0.022120201960206032,
-0.06115921586751938,
0.051328014582395554,
-0.01651870459318161,
0.023587262257933617,
-0.03303740918636322,
0.007149531506001949,
-0.008992881514132023,
-0.026178430765867233,
0.0014765853993594646,
0.034009095281362534,
0.008354615420103073,
-0.0577678345143795,
-0.032637301832437515,
0.022558415308594704,
0.03117024153470993,
0.03532373532652855,
-0.02019587904214859,
-0.027664542198181152,
-0.004322584718465805,
0.01809055358171463,
-0.025054320693016052,
-0.03147508576512337,
-0.010278940200805664,
-0.04717452451586723,
0.04119196906685829,
0.028845811262726784,
0.0092215146869421,
-0.05620551109313965,
-0.04172544553875923,
-0.016242438927292824,
0.010764784179627895,
-0.012403317727148533,
-0.021834412589669228,
-0.018452554941177368,
0.005758683197200298,
0.01664254628121853,
-0.028845811262726784,
0.01006936002522707,
0.008259352296590805,
-0.049689482897520065,
0.017090285196900368,
0.10097938776016235,
0.050108641386032104,
0.025282952934503555,
0.031989507377147675,
-0.006301685702055693,
-0.0339900441467762,
-0.04244944825768471,
0.011336365714669228,
-0.004829863552004099,
-0.030598660930991173,
0.00482748169451952,
0.0286552831530571,
-0.002237503184005618,
-0.020557880401611328,
-0.025225795805454254,
-0.020062509924173355,
-0.0009443002054467797,
0.0025316295213997364,
-0.0017766656819730997,
0.001035396009683609,
0.06912325322628021,
-0.02179630659520626,
0.015023065730929375,
-0.012927267700433731,
0.03368519991636276,
0.04161113128066063,
-0.03318982943892479,
0.025397269055247307,
-0.02760738506913185,
0.06900893151760101,
0.06946620345115662,
-0.0038176877424120903,
0.04645052179694176,
0.05631982535123825,
0.024844741448760033,
0.008802354335784912,
0.026883380487561226,
0.009926464408636093,
0.002629274735227227,
0.055062346160411835,
-0.019586190581321716,
-0.02312999591231346,
0.030770136043429375,
0.049156006425619125,
-0.03757195547223091,
-0.05128990858793259,
0.0007775889243930578,
-0.038238801062107086,
0.040849022567272186,
0.022844206541776657,
-0.08169804513454437,
0.029646025970578194,
-0.028483809903264046,
-0.003448541508987546,
-0.01497543416917324,
0.04077281057834625,
0.043706927448511124,
0.06942809373140335,
0.0015004012966528535,
0.025168636813759804,
-0.023530103266239166,
0.045040618628263474,
0.008473695255815983,
0.06382659822702408,
-0.05193770304322243,
0.020595984533429146,
-0.0030889215413480997,
-0.024749476462602615,
-0.007230505347251892,
-0.026654748246073723,
0.056777093559503555,
0.05872046947479248,
0.00392962247133255,
-0.044087983667850494,
0.005406207870692015,
0.004313058219850063,
-0.03111308440566063,
0.025606850162148476,
-0.05784404277801514,
-0.014851591549813747,
-0.020367352291941643,
0.045688413083553314,
-0.020538827404379845,
0.023301471024751663,
-0.013003477826714516,
0.021510515362024307,
0.016956916078925133,
-0.028731495141983032,
-0.0288267582654953,
-0.01044088788330555,
0.009588278830051422,
0.025282952934503555,
0.008073587901890278,
-0.04934653267264366,
0.0762108638882637,
0.008978592231869698,
-0.01534696202725172,
0.0314369797706604,
-0.04077281057834625,
-0.06569376587867737,
-0.028998233377933502,
-0.030979715287685394,
-0.020691249519586563,
-0.012793898582458496,
-0.010850521735846996,
-0.015794701874256134,
-0.045688413083553314,
-0.017576130107045174,
-0.03640973940491676,
0.03667647764086723,
0.06302638351917267,
-0.026292746886610985,
-0.01992914080619812,
0.0339328870177269,
0.04667915403842926,
-0.03802921995520592,
0.05292844399809837,
-0.00936917308717966,
0.009226277470588684,
-0.015651805326342583,
-0.04214460775256157,
-0.03774343058466911,
0.00837843120098114,
0.029493603855371475,
-0.0366002656519413,
-0.012498580850660801,
0.035514261573553085,
0.02109135501086712,
-0.04332587495446205,
-0.04404987767338753,
0.02524484694004059,
-0.03366614878177643,
0.009674016386270523,
-0.02040545828640461,
-0.005015627481043339,
0.0025625901762396097,
0.025587797164916992,
0.05071832984685898,
0.022405993193387985,
-0.03856269642710686,
0.048774950206279755,
-0.025378216058015823,
-0.019119400531053543,
0.02695959247648716,
0.05033727362751961,
-0.020233983173966408,
0.07548686116933823,
-0.009288198314607143,
0.02856002002954483,
0.04042986035346985,
0.02669285424053669,
0.05940636619925499,
-0.003084158292040229,
-0.0015146909281611443,
0.05471939966082573,
-0.018338238820433617,
-0.051175594329833984,
0.04149681329727173,
-0.008702327497303486,
0.0682087242603302,
0.044240403920412064,
-0.01824297569692135,
0.02194872871041298,
0.021491462364792824,
0.018900293856859207,
-0.001474203891120851,
0.05955878645181656,
-0.01663302071392536,
-0.0011366135440766811,
0.08017382770776749,
-0.013975166715681553,
-0.023091891780495644,
0.022348834201693535,
-0.07270516455173492,
-0.05258549377322197,
-0.019891034811735153,
-0.018785977736115456,
0.014194273389875889,
0.032522983849048615,
-0.031570348888635635,
0.04134439304471016,
0.03597152605652809,
0.035190366208553314,
-0.01820486970245838,
-0.09671158343553543,
0.021910622715950012,
-0.03212287649512291,
-0.0302747655659914,
-0.023682525381445885,
0.061083003878593445,
0.01886218786239624,
0.0017266523791477084,
-0.0033628041855990887,
-0.005329997278749943,
-0.0032580143306404352,
-0.01992914080619812,
0.05494803190231323,
-0.022043991833925247,
-0.03336130455136299,
0.019700508564710617,
0.05940636619925499,
-0.04519304260611534,
-0.008659458719193935,
-0.06424575299024582,
0.02589263953268528,
-0.007916403003036976,
-0.02888391725718975,
-0.0170807596296072,
-0.06005416065454483,
-0.041268181055784225,
-0.04690778627991676,
-0.008626116439700127,
0.010583783499896526,
0.043821245431900024,
0.011441155336797237,
0.05845373123884201,
0.024920951575040817,
0.025054320693016052,
-0.0005650320672430098,
0.03597152605652809,
-0.01696644350886345,
0.006978056859225035,
-0.11103922873735428,
-0.0098026217892766,
0.0018564489437267184,
0.04359261319041252,
-0.03745763748884201,
0.004229702986776829,
0.0156327523291111,
-0.048355791717767715,
-0.02057693339884281,
-0.04625999182462692,
0.024273158982396126,
0.020862722769379616,
0.007287663407623768,
0.029931815341114998,
-0.004536927677690983,
0.008830933831632137,
0.043706927448511124,
-0.006944714579731226,
-0.017366550862789154,
0.002936499658972025,
0.006049237214028835,
0.041649237275123596,
0.03208477422595024,
-0.043135348707437515,
-0.057996466755867004,
0.014318116009235382,
0.022825153544545174,
-0.07384832203388214,
0.051061276346445084,
0.037419531494379044,
0.0036033447831869125,
-0.048203371465206146,
-0.055062346160411835,
-0.00019767192134168,
0.01331784762442112,
0.005530050490051508,
0.024749476462602615,
-0.01451816875487566,
0.02072935365140438,
0.008335563354194164,
-0.0020696010906249285,
0.08802354335784912,
0.045421674847602844,
-0.009407278150320053,
0.01036467682570219,
0.0010294420644640923,
-0.07895445078611374,
0.009840727783739567,
-0.008078351616859436,
0.02173914760351181,
-0.009754990227520466,
0.012050842866301537,
0.0077496920712292194,
0.03789585083723068,
0.03366614878177643,
-0.03570478782057762,
-0.002815038664266467,
-0.05631982535123825,
-0.028579073026776314,
-0.0075258226133883,
0.008102167397737503,
0.006258816923946142,
0.04812715947628021,
0.018986031413078308,
-0.024749476462602615,
-0.001802863203920424,
0.05456697568297386,
-0.002588787814602256,
-0.0009883595630526543,
-0.05094696208834648,
0.029322128742933273,
-0.037057530134916306,
-0.012136579491198063,
0.031570348888635635,
-0.002648327499628067,
0.04374503344297409,
-0.017928605899214745,
0.007582980673760176,
-0.011431628838181496,
0.026978645473718643,
0.03650500252842903,
0.0035342785995453596,
0.004722691606730223,
0.006363607011735439,
-0.00047512707533314824,
0.06721798330545425,
-0.0011907947482541203,
-0.031094031408429146,
-0.00725908437743783,
0.035399943590164185,
0.020748406648635864,
0.015023065730929375,
-0.026788117364048958,
0.024863794445991516,
-0.003434251993894577,
0.04263997822999954,
0.05094696208834648,
-0.05849183723330498,
0.014937329106032848,
0.029284022748470306,
0.02514958381652832,
-0.0050966013222932816,
-0.009926464408636093,
0.015108803287148476,
-0.018766924738883972,
-0.03248487785458565,
0.0007912830915302038,
0.013451216742396355,
0.005649130325764418,
0.021491462364792824,
0.06363607197999954,
0.009935990907251835,
-0.05281412601470947,
0.024597056210041046,
0.0011211332166567445,
-0.0156327523291111,
0.06828492879867554,
-0.03869606554508209,
-0.0006525554927065969,
0.0343329943716526,
-0.018633555620908737,
-0.08268878608942032,
0.0003620015922933817,
-0.042601872235536575,
-0.07895445078611374,
0.03543804958462715,
-0.05849183723330498,
0.016909284517169,
0.01006936002522707,
-0.014718222431838512,
-0.04290671646595001,
-0.0043892692774534225,
-0.04961327090859413,
-0.010698099620640278,
0.0038748460356146097,
0.013689376413822174,
-0.051175594329833984,
0.01747133955359459,
0.04923221468925476,
-0.11172512173652649,
-0.007587743923068047,
0.038124483078718185,
0.011631682515144348,
-0.07491527497768402,
-0.000762704003136605,
0.0236634723842144,
-0.023053785786032677,
0.07979277521371841,
-0.017252232879400253,
-0.05098506808280945,
-0.02455895021557808,
0.006125447805970907,
-0.09084334969520569,
-0.07411506026983261,
-0.009069092571735382,
-0.055710140615701675,
0.019757665693759918,
-0.02574021928012371,
-0.04134439304471016,
0.03720995411276817,
0.03810543194413185,
-0.015651805326342583,
-0.00043017457937821746,
0.046869680285453796,
0.01073620468378067,
-0.014441958628594875,
0.024539897218346596,
-0.029322128742933273,
-0.028674336150288582,
0.025721166282892227,
0.004167781677097082,
0.003908188082277775,
0.08253636211156845,
0.03846743330359459,
-0.009273909032344818,
-0.014203798957169056,
0.03669552877545357,
0.028331387788057327,
-0.08070730417966843,
-0.002981750061735511,
-0.06074005737900734,
0.03351372480392456,
-0.0686659887433052,
-0.031951405107975006,
0.04012501984834671,
-0.01081241574138403,
0.0014051377074792981,
-0.04263997822999954,
0.03618110716342926,
0.0472126305103302,
0.004451190587133169,
-0.029874658212065697,
-0.05548150837421417,
0.04961327090859413,
-0.0024339843075722456,
-0.03576194494962692,
-0.004732218105345964,
-0.025854535400867462,
-0.006235001143068075,
-0.04801284149289131,
0.05128990858793259,
0.0394391193985939,
0.020691249519586563,
-0.006001605186611414,
-0.0341615192592144,
-0.029398340731859207,
0.002843617694452405,
-0.02930307574570179,
0.024959057569503784,
0.007087610196322203,
0.007635375484824181,
0.03301835432648659,
0.007225742097944021,
-0.018376344814896584,
-0.07259084284305573,
0.038600802421569824,
0.004220176488161087,
0.008078351616859436,
0.012298528105020523,
0.011946052312850952,
0.05121370032429695,
0.020977038890123367,
0.05963499844074249,
-0.05361434072256088,
-0.006039710715413094,
-0.043821245431900024,
-0.06222616881132126,
-0.0007525822729803622,
-0.0038534116465598345,
-0.016118597239255905,
0.0364287905395031,
0.06222616881132126,
0.022672731429338455,
0.043821245431900024,
0.024235054850578308,
-0.07986897975206375,
0.02328241802752018,
-0.03804827108979225,
-0.0031603691168129444,
0.10227497667074203,
0.03389478102326393,
-0.012965372763574123,
0.0055967350490391254,
-0.011879367753863335,
-0.030522450804710388,
0.013651270419359207,
-0.003827214241027832,
0.04763178899884224,
-0.000642433762550354,
-0.007282900623977184,
-0.01793813146650791,
0.028121808543801308,
-0.07175252586603165,
-0.07247652858495712,
0.015499384142458439,
0.030446238815784454,
-0.008654695935547352,
-0.03037002868950367,
0.061044901609420776,
0.008068825118243694,
-0.016509177163243294,
0.003734332276508212,
0.07765886932611465,
0.009269146248698235,
0.00595397362485528,
-0.01981482468545437,
0.025492534041404724,
-0.06348364800214767,
-0.03667647764086723,
-0.016918811947107315,
0.01054567750543356,
0.0014480063691735268,
-0.003943912219256163,
0.04324966296553612,
0.010831468738615513,
0.026292746886610985
]
|
30,081 | networkx.classes.graph | edge_subgraph | Returns the subgraph induced by the specified edges.
The induced subgraph contains each edge in `edges` and each
node incident to any one of those edges.
Parameters
----------
edges : iterable
An iterable of edges in this graph.
Returns
-------
G : Graph
An edge-induced subgraph of this graph with the same edge
attributes.
Notes
-----
The graph, edge, and node attributes in the returned subgraph
view are references to the corresponding attributes in the original
graph. The view is read-only.
To create a full graph version of the subgraph with its own copy
of the edge or node attributes, use::
G.edge_subgraph(edges).copy()
Examples
--------
>>> G = nx.path_graph(5)
>>> H = G.edge_subgraph([(0, 1), (3, 4)])
>>> list(H.nodes)
[0, 1, 3, 4]
>>> list(H.edges)
[(0, 1), (3, 4)]
| def edge_subgraph(self, edges):
"""Returns the subgraph induced by the specified edges.
The induced subgraph contains each edge in `edges` and each
node incident to any one of those edges.
Parameters
----------
edges : iterable
An iterable of edges in this graph.
Returns
-------
G : Graph
An edge-induced subgraph of this graph with the same edge
attributes.
Notes
-----
The graph, edge, and node attributes in the returned subgraph
view are references to the corresponding attributes in the original
graph. The view is read-only.
To create a full graph version of the subgraph with its own copy
of the edge or node attributes, use::
G.edge_subgraph(edges).copy()
Examples
--------
>>> G = nx.path_graph(5)
>>> H = G.edge_subgraph([(0, 1), (3, 4)])
>>> list(H.nodes)
[0, 1, 3, 4]
>>> list(H.edges)
[(0, 1), (3, 4)]
"""
return nx.edge_subgraph(self, edges)
| (self, edges) | [
0.02403665892779827,
-0.02061057835817337,
0.00641488516703248,
-0.008114401251077652,
-0.08381275087594986,
-0.005134612787514925,
0.0021942693274468184,
0.027498804032802582,
0.09391067177057266,
-0.04089658334851265,
0.020844995975494385,
0.009584009647369385,
-0.0228826105594635,
0.05175184831023216,
-0.03193467855453491,
0.0008210196392610669,
-0.029536420479416847,
-0.0035207485780119896,
0.020844995975494385,
0.0634005218744278,
-0.03837210312485695,
-0.06574468314647675,
0.04086051881313324,
-0.014209218323230743,
-0.0026687365025281906,
0.05268951132893562,
0.007113625295460224,
-0.005477220751345158,
0.05258132144808769,
-0.030762596055865288,
-0.04345712810754776,
-0.04619799181818962,
-0.061200618743896484,
0.0019891553092747927,
0.024162882938981056,
0.05434845760464668,
-0.029644612222909927,
0.05103056877851486,
-0.07317386567592621,
0.04857821390032768,
-0.01996142789721489,
-0.06368903070688248,
0.055502504110336304,
-0.007568933069705963,
0.04417840763926506,
-0.014317410066723824,
0.030888820067048073,
-0.0172115471214056,
-0.015191962011158466,
-0.03243957459926605,
0.017995938658714294,
-0.019077857956290245,
-0.005310424603521824,
-0.012153569608926773,
-0.010999521240592003,
0.0464865043759346,
0.002727340441197157,
0.02472187578678131,
0.01585013046860695,
0.04908310994505882,
-0.010738058015704155,
-0.08150465041399002,
-0.01779758743941784,
-0.01012496929615736,
-0.014028898440301418,
0.009701217524707317,
-0.05607952922582626,
-0.03606400638818741,
-0.057377833873033524,
0.028364339843392372,
-0.04075232520699501,
0.020556483417749405,
-0.009755313396453857,
-0.02515464462339878,
0.0103593859821558,
0.012135538272559643,
-0.021025314927101135,
0.026867683976888657,
-0.004532794468104839,
-0.026308691129088402,
0.009448769502341747,
-0.015101802535355091,
-0.03287234157323837,
0.03462144359946251,
0.0890059620141983,
-0.01895163394510746,
-0.01855493150651455,
0.018293466418981552,
-0.03155600652098656,
-0.020844995975494385,
0.02136792242527008,
0.0055223009549081326,
-0.03754262998700142,
0.03822784498333931,
-0.01147736981511116,
-0.03303463011980057,
-0.02461368404328823,
-0.04237520694732666,
0.013596129603683949,
-0.06693479418754578,
-0.015038690529763699,
-0.025713635608553886,
-0.059902314096689224,
0.008348817005753517,
-0.012406017631292343,
-0.05207642540335655,
-0.0006006910698488355,
-0.035793524235486984,
0.006910765077918768,
-0.04637831076979637,
-0.012424049898982048,
0.05636804178357124,
0.02133185975253582,
0.056981127709150314,
0.016769763082265854,
0.006969369016587734,
0.013749402016401291,
-0.028490563854575157,
0.04327680543065071,
-0.020592547953128815,
-0.02782338112592697,
0.06527584791183472,
-0.029915092512965202,
0.060443274676799774,
0.02504645101726055,
0.01043151319026947,
0.01403791457414627,
-0.01602143421769142,
0.00241854228079319,
-0.0724525898694992,
0.04356531798839569,
0.009800393134355545,
-0.0036334486212581396,
-0.005905481055378914,
0.029824933037161827,
-0.03707379847764969,
0.028111891821026802,
0.0006756365764886141,
0.0630759447813034,
0.02641688473522663,
-0.04785693436861038,
0.0024230503477156162,
0.029247907921671867,
0.05005684122443199,
-0.03862455114722252,
-0.02118760347366333,
0.026308691129088402,
-0.018059050664305687,
0.013542033731937408,
0.014678049832582474,
-0.04100477322936058,
0.008574217557907104,
-0.009547945111989975,
-0.034855861216783524,
-0.01808609813451767,
-0.03840816393494606,
-0.061705514788627625,
0.060299016535282135,
-0.0011174206156283617,
0.014524778351187706,
-0.04652256518602371,
0.00584687665104866,
-0.0036469725891947746,
-0.035649269819259644,
-0.006937813013792038,
-0.00038796980516053736,
0.05088631063699722,
-0.022684259340167046,
-0.015354250557720661,
0.02039419487118721,
-0.010341353714466095,
-0.026705395430326462,
-0.09037639945745468,
-0.030329829081892967,
-0.023189155384898186,
0.02778731659054756,
0.0742197260260582,
0.059685930609703064,
-0.0203581303358078,
0.07724910229444504,
0.062102217227220535,
-0.04172605276107788,
-0.01037741731852293,
0.026543108746409416,
0.06967566162347794,
0.0128838662058115,
0.016661571338772774,
0.01869918592274189,
0.03981466218829155,
-0.04879460111260414,
0.003135314444079995,
-0.01659845933318138,
-0.0013321142178028822,
0.05323047190904617,
0.02479400299489498,
-0.06996417045593262,
-0.02483006753027439,
-0.0036559884902089834,
-0.01920408196747303,
0.11497204750776291,
-0.002632672432810068,
0.012153569608926773,
0.034278836101293564,
0.01066592987626791,
0.028129924088716507,
0.027498804032802582,
0.0338640995323658,
-0.08496679365634918,
-0.0264890119433403,
-0.003272808389738202,
-0.060587529093027115,
-0.024920227006077766,
0.1041528508067131,
-0.034747667610645294,
-0.027661092579364777,
-0.018753282725811005,
-0.0504535436630249,
0.008335293270647526,
-0.04013923928141594,
-0.013181393966078758,
0.024920227006077766,
-0.0012983041815459728,
-0.00985448993742466,
-0.03361165151000023,
0.012460113503038883,
-0.07811463624238968,
0.0035500505473464727,
-0.024884164333343506,
0.011883090250194073,
-0.0396343432366848,
0.024812035262584686,
0.013713338412344456,
0.056331977248191833,
-0.05373536795377731,
-0.013614161871373653,
0.10826414078474045,
-0.009611057117581367,
-0.01895163394510746,
0.07032480835914612,
0.04760448634624481,
-0.027949605137109756,
-0.04605373367667198,
-0.029193812981247902,
-0.012117506004869938,
0.022179363295435905,
0.0031984264496713877,
-0.0052969008684158325,
0.061417002230882645,
-0.0110806655138731,
-0.020772866904735565,
-0.020159779116511345,
-0.03642464429140091,
0.0055223009549081326,
0.04226701334118843,
0.04991258308291435,
0.02237771451473236,
-0.04590947926044464,
-0.0644824430346489,
0.01113476138561964,
0.01369530614465475,
0.02335144393146038,
0.03198877349495888,
0.000313587806886062,
0.05131908133625984,
0.03801146149635315,
0.013569082133471966,
-0.024956291541457176,
0.035252563655376434,
-0.05186003819108009,
-0.014128074049949646,
0.023477667942643166,
0.036262355744838715,
0.028003700077533722,
-0.007442709058523178,
0.04100477322936058,
-0.025244804099202156,
-0.01851886697113514,
0.020772866904735565,
-0.020267970860004425,
-0.023874372243881226,
-0.061056360602378845,
-0.00795662123709917,
-0.04313255101442337,
0.04764055088162422,
-0.0023419063072651625,
-0.04782086983323097,
0.04435872659087181,
-0.01142327394336462,
0.027318483218550682,
-0.02299080416560173,
0.058099113404750824,
-0.03992285579442978,
-0.0022799214348196983,
0.03593778237700462,
0.008632821030914783,
0.04994864761829376,
0.05023716017603874,
-0.04266371950507164,
0.04439479112625122,
0.05611559376120567,
0.1009070873260498,
0.0009748551528900862,
-0.007821381092071533,
-0.00005043325654696673,
0.002044378314167261,
-0.0063472650945186615,
0.04013923928141594,
0.021746594458818436,
0.008921333588659763,
-0.010197097435593605,
-0.0630398839712143,
0.009629089385271072,
-0.059938378632068634,
0.0020793152507394552,
-0.062426794320344925,
-0.029806900769472122,
0.0036018926184624434,
-0.04100477322936058,
-0.020231906324625015,
0.029446261003613472,
-0.03409851714968681,
0.060912106186151505,
-0.014876401983201504,
0.03404442220926285,
-0.01765333116054535,
0.08063911646604538,
0.02068270742893219,
0.06480702012777328,
0.0414375439286232,
0.021349892020225525,
-0.0061759608797729015,
-0.027697155252099037,
0.007740237284451723,
0.0018178513273596764,
-0.04370957612991333,
0.0403556227684021,
0.06751181930303574,
0.03285430744290352,
-0.011594577692449093,
-0.03142978250980377,
0.04616192728281021,
0.03209696337580681,
-0.010647897608578205,
-0.013650226406753063,
0.02147611603140831,
0.017779555171728134,
0.002601116430014372,
-0.058135177940130234,
-0.0019452022388577461,
0.017824634909629822,
-0.010873297229409218,
0.060695722699165344,
-0.01169375330209732,
0.011711785569787025,
0.001550752203911543,
-0.000466859812149778,
-0.04367351159453392,
0.018203306943178177,
0.0037529105320572853,
-0.004447142593562603,
0.033521492034196854,
0.009791377931833267,
0.007334517315030098,
-0.04958800598978996,
-0.0012847802136093378,
-0.01761726662516594,
-0.0389130637049675,
0.11814568191766739,
-0.020592547953128815,
-0.05074205622076988,
-0.02436123602092266,
-0.029915092512965202,
-0.007825889624655247,
0.013406793586909771,
-0.0012690022122114897,
0.029193812981247902,
-0.06758394837379456,
0.020051587373018265,
0.03808359056711197,
0.03790326789021492,
0.022071171551942825,
-0.02634475566446781,
0.030834725126624107,
0.01214455347508192,
0.0771048441529274,
-0.028977427631616592,
0.059000711888074875,
-0.01830248348414898,
0.055213991552591324,
0.0028761043213307858,
-0.07443610578775406,
0.009137717075645924,
0.011125745251774788,
0.010314305312931538,
-0.014840338379144669,
-0.07645568996667862,
0.08741915225982666,
-0.017554154619574547,
-0.013010090216994286,
0.006036213133484125,
-0.02122366800904274,
0.03243957459926605,
-0.0016611982136964798,
0.04237520694732666,
0.04425053298473358,
-0.027570931240916252,
0.026398852467536926,
0.04248339682817459,
0.060010503977537155,
-0.07198375463485718,
0.03391819819808006,
-0.007483281195163727,
-0.06578074395656586,
0.03862455114722252,
0.02616443671286106,
0.02464974857866764,
0.030059348791837692,
-0.006396852899342775,
0.04825364053249359,
-0.027733219787478447,
0.012225697748363018,
0.03285430744290352,
0.00915124174207449,
-0.02425304427742958,
0.000615342112723738,
-0.028923332691192627,
-0.055971335619688034,
0.010945425368845463,
-0.02302686683833599,
0.06325626373291016,
-0.02151217870414257,
-0.06614138931035995,
0.0008858221117407084,
-0.018825409933924675,
0.015327202156186104,
-0.017644314095377922,
0.008136941120028496,
0.009146733209490776,
-0.0020590294152498245,
0.01996142789721489,
0.005121088586747646,
0.0023283823393285275,
0.0006378820980899036,
-0.08835681527853012,
0.04010317474603653,
-0.07623931020498276,
-0.025172675028443336,
0.03238547593355179,
0.04403414949774742,
-0.03902125358581543,
0.00627062888815999,
-0.010368401184678078,
0.03341330215334892,
-0.03624432533979416,
-0.09715642780065536,
-0.015101802535355091,
0.04872247204184532,
0.030275732278823853,
-0.033990323543548584,
0.030293764546513557,
-0.006906257010996342,
-0.012279793620109558,
-0.008844696916639805,
0.0273906122893095,
0.024054691195487976,
-0.02068270742893219,
0.08460615575313568,
0.013451874256134033,
-0.05085024610161781,
-0.006734952796250582,
0.05384356155991554,
-0.03413458168506622,
-0.07183949649333954,
-0.018293466418981552,
0.060551464557647705,
-0.004435872659087181,
-0.062210410833358765,
-0.012162585742771626,
-0.02295473963022232,
-0.0713706687092781,
-0.01732875406742096,
-0.005157152656465769,
0.009439753368496895,
0.012045377865433693,
0.03492799028754234,
-0.0011495401849970222,
0.001875328249298036,
0.02172856405377388,
-0.07223620265722275,
-0.017599234357476234,
-0.0038813885767012835,
-0.048289705067873,
-0.09924814105033875,
0.0214400514960289,
0.0389130637049675,
0.04572916030883789,
-0.030167540535330772,
-0.016481250524520874,
0.005612460896372795,
-0.022972771897912025,
-0.0010126096894964576,
-0.04627011716365814,
0.009989729151129723,
0.006982893217355013,
-0.007749252952635288,
0.0436013825237751,
-0.028490563854575157,
0.03988679125905037,
0.055430375039577484,
-0.02068270742893219,
0.012667481787502766,
-0.01588619500398636,
-0.02219739556312561,
0.055394310504198074,
0.05121088773012161,
0.0040549468249082565,
-0.015796033665537834,
0.04529638960957527,
0.02392846718430519,
0.003191664582118392,
0.02807582914829254,
0.024559587240219116,
-0.007577949203550816,
0.03938189521431923,
-0.012703546322882175,
0.053410790860652924,
-0.018933603540062904,
-0.003135314444079995,
0.02403665892779827,
0.03202483803033829,
-0.007577949203550816,
0.056259848177433014,
0.005066992715001106,
0.08814042806625366,
-0.010819201357662678,
-0.0403556227684021,
-0.0172926913946867,
-0.024559587240219116,
-0.027210291475057602,
0.01938440278172493,
0.005188708659261465,
0.03844422847032547,
-0.01635502651333809,
0.03858848661184311,
-0.03166419640183449,
-0.027354547753930092,
0.06311201304197311,
-0.014723130501806736,
0.0518961027264595,
-0.03438702970743179,
-0.004697336815297604,
0.014010866172611713,
0.011955217458307743,
-0.0013174632331356406,
0.007487789262086153,
-0.01122492179274559,
-0.04623405635356903,
0.014741161838173866,
-0.0335034616291523,
0.007411153055727482,
-0.012415033765137196,
-0.0022134282626211643,
0.015029674395918846,
0.029879027977585793,
0.016300929710268974,
0.04313255101442337,
0.023513730615377426,
0.03220515698194504,
-0.023838307708501816,
0.026561139151453972,
-0.05160759016871452,
-0.0022956994362175465,
0.02093515545129776,
-0.007699665147811174,
-0.0034779226407408714,
0.011324097402393818,
-0.00039332304731942713,
-0.004298378713428974,
-0.004566604737192392,
-0.0007212801137939095,
-0.058964647352695465,
-0.04641437530517578,
-0.006662825122475624,
0.03765081986784935,
-0.009881537407636642,
0.06253498792648315,
0.009250417351722717,
0.03218712657690048,
-0.029590517282485962,
-0.01603045128285885,
0.018212322145700455,
-0.04471936821937561,
0.04132935032248497,
0.04919130355119705,
-0.028724979609251022,
-0.01722056232392788,
-0.009683185257017612,
-0.01794184185564518,
-0.04309648647904396,
-0.03941795974969864,
-0.07216407358646393,
0.04414234310388565,
0.060335081070661545,
0.04594554379582405,
-0.009584009647369385,
-0.02547921985387802,
0.07378695160150528,
-0.030456053093075752,
0.02392846718430519,
-0.036298420280218124,
-0.0049001965671777725,
0.05088631063699722,
0.002898644423112273,
-0.030113443732261658,
-0.02450549229979515,
-0.007330009248107672,
-0.04049987718462944,
0.07072151452302933,
-0.05268951132893562,
-0.009448769502341747,
0.008709457702934742,
0.018383625894784927,
-0.02526283636689186,
-0.023477667942643166,
-0.035613205283880234,
0.053158342838287354,
0.01162162609398365,
-0.014551825821399689,
-0.03462144359946251,
-0.0025808303616940975,
0.013956770300865173,
-0.0774654820561409,
-0.01010693795979023,
0.0124330660328269,
0.02620049938559532,
-0.0936942845582962,
-0.006135388743132353,
-0.00981842540204525,
-0.027895508334040642,
0.04212275892496109,
-0.058387625962495804,
0.014046929776668549,
-0.04670288786292076,
0.0013129551662132144,
-0.04172605276107788,
0.008145957253873348,
-0.03685741499066353,
-0.0713706687092781,
-0.004018882755190134,
-0.020412227138876915,
0.03718198835849762,
0.058459751307964325,
0.01866312325000763,
0.027841411530971527,
-0.01158556155860424,
0.055935271084308624,
0.0335034616291523,
-0.03797539696097374,
0.01268551405519247,
-0.0004006485687568784,
0.056476231664419174,
-0.025930019095540047,
0.04987651854753494,
-0.036550868302583694,
0.04417840763926506,
0.02436123602092266,
-0.0018561693141236901,
-0.005535824690014124,
0.008939364925026894,
-0.027444707229733467,
0.005193216726183891,
-0.04049987718462944,
-0.04306042194366455,
-0.02641688473522663,
-0.04944375157356262,
-0.01848280243575573,
0.015309169888496399,
-0.057053256779909134,
0.00261689443141222,
0.014055945910513401,
-0.035036180168390274,
0.056440167129039764,
-0.0010143001563847065,
-0.04879460111260414,
-0.021926915273070335,
-0.01187407411634922,
-0.04370957612991333,
0.003257030388340354,
-0.024992356076836586,
-0.04446692019701004,
0.014245281927287579,
-0.06531191617250443,
0.008709457702934742,
-0.007735729217529297,
-0.006266120821237564,
0.021259730681777,
0.0094577856361866,
-0.018041018396615982,
-0.00996268168091774,
-0.025389060378074646,
0.017166467383503914,
0.01924014650285244,
0.014605922624468803,
0.05535824969410896,
0.025461187586188316,
-0.02641688473522663,
-0.05200429633259773,
0.01189210545271635,
-0.03379197418689728,
0.005130104720592499,
-0.03673119097948074,
-0.04969619959592819,
0.04753236100077629,
-0.00992661714553833,
0.03599187731742859,
-0.03757869452238083,
0.014146106317639351,
0.0017231832025572658,
-0.06780032813549042,
0.022720323875546455,
0.016147658228874207,
-0.004352474585175514,
0.0443226620554924,
0.05041747912764549,
-0.01877131499350071,
0.02418091520667076,
0.03790326789021492,
-0.010458561591804028,
-0.0006840890855528414,
0.0029414703603833914,
-0.05268951132893562,
0.04825364053249359,
0.026813587173819542,
0.05377143248915672,
-0.03128552436828613,
-0.019041795283555984,
-0.03411654755473137,
0.019474562257528305,
0.016580427065491676,
0.010314305312931538,
0.04443085566163063,
-0.027498804032802582,
-0.03417064622044563,
0.010458561591804028,
-0.042519461363554,
-0.035829588770866394,
0.028220083564519882,
0.061417002230882645,
0.00261689443141222,
-0.029518388211727142,
0.0005099675618112087,
0.027859443798661232,
0.0014786241808906198,
-0.00790252536535263,
-0.019979458302259445,
-0.00581982871517539,
-0.016048481687903404,
-0.06325626373291016,
-0.04608979821205139,
-0.03238547593355179,
-0.03258382901549339,
0.034783732146024704,
0.018681155517697334,
0.0022089204285293818,
-0.035829588770866394,
0.07371482998132706,
0.0504535436630249,
0.025352995842695236
]
|
30,082 | networkx.classes.graph | get_edge_data | Returns the attribute dictionary associated with edge (u, v).
This is identical to `G[u][v]` except the default is returned
instead of an exception if the edge doesn't exist.
Parameters
----------
u, v : nodes
default: any Python object (default=None)
Value to return if the edge (u, v) is not found.
Returns
-------
edge_dict : dictionary
The edge attribute dictionary.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G[0][1]
{}
Warning: Assigning to `G[u][v]` is not permitted.
But it is safe to assign attributes `G[u][v]['foo']`
>>> G[0][1]["weight"] = 7
>>> G[0][1]["weight"]
7
>>> G[1][0]["weight"]
7
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.get_edge_data(0, 1) # default edge data is {}
{}
>>> e = (0, 1)
>>> G.get_edge_data(*e) # tuple form
{}
>>> G.get_edge_data("a", "b", default=0) # edge not in graph, return 0
0
| def get_edge_data(self, u, v, default=None):
"""Returns the attribute dictionary associated with edge (u, v).
This is identical to `G[u][v]` except the default is returned
instead of an exception if the edge doesn't exist.
Parameters
----------
u, v : nodes
default: any Python object (default=None)
Value to return if the edge (u, v) is not found.
Returns
-------
edge_dict : dictionary
The edge attribute dictionary.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G[0][1]
{}
Warning: Assigning to `G[u][v]` is not permitted.
But it is safe to assign attributes `G[u][v]['foo']`
>>> G[0][1]["weight"] = 7
>>> G[0][1]["weight"]
7
>>> G[1][0]["weight"]
7
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.get_edge_data(0, 1) # default edge data is {}
{}
>>> e = (0, 1)
>>> G.get_edge_data(*e) # tuple form
{}
>>> G.get_edge_data("a", "b", default=0) # edge not in graph, return 0
0
"""
try:
return self._adj[u][v]
except KeyError:
return default
| (self, u, v, default=None) | [
0.06114909425377846,
-0.014034979045391083,
0.012012754566967487,
0.030110735446214676,
-0.013088800944387913,
-0.013979321345686913,
0.02486037276685238,
0.0020083098206669092,
0.07391322404146194,
-0.03461899608373642,
-0.0027249008417129517,
-0.004285631235688925,
0.0005794762400910258,
-0.025416947901248932,
0.0023410955909639597,
0.0543217696249485,
-0.003200309118255973,
0.020240794867277145,
0.018070152029395103,
0.06738273799419403,
0.018005218356847763,
-0.08155686408281326,
-0.016270557418465614,
0.0010859019821509719,
-0.007105614058673382,
0.009044351987540722,
-0.009253067895770073,
0.00531529588624835,
0.10307778418064117,
-0.014647211879491806,
-0.07628794759511948,
-0.08163107186555862,
-0.06827326118946075,
0.06252197921276093,
0.049089960753917694,
0.025491157546639442,
-0.010315199382603168,
0.03467465192079544,
-0.10211305320262909,
-0.007982220500707626,
0.003228137968108058,
-0.049275483936071396,
-0.0005797661724500358,
0.004464199300855398,
0.046974971890449524,
0.0056909844279289246,
0.0007513769087381661,
-0.024266691878437996,
-0.015194511041045189,
-0.07198376208543777,
0.04192868620157242,
-0.0134876798838377,
0.03317189961671829,
0.02142815664410591,
-0.015398588962852955,
-0.0288491640239954,
-0.03703082352876663,
0.04823654517531395,
-0.015250168740749359,
0.07947897911071777,
-0.01243946235626936,
-0.0008192095556296408,
0.030481785535812378,
-0.01342274621129036,
-0.04834785684943199,
0.014090636745095253,
-0.02309788390994072,
-0.010250265710055828,
-0.05818069353699684,
0.03274519369006157,
0.008330079726874828,
0.007550874259322882,
-0.017940282821655273,
-0.027995748445391655,
0.0535796694457531,
0.0209828969091177,
0.000191757659194991,
-0.012226108461618423,
0.049275483936071396,
0.018153637647628784,
-0.01454517338424921,
-0.03441491723060608,
-0.03851502388715744,
-0.014573002234101295,
0.041372112929821014,
0.018153637647628784,
-0.01733732596039772,
0.022374335676431656,
0.005649241153150797,
-0.02897903136909008,
-0.027569040656089783,
-0.002343414817005396,
-0.04760575667023659,
0.07298560440540314,
-0.005616774316877127,
-0.0614459365606308,
0.0176063384860754,
-0.035268332809209824,
0.06534196436405182,
0.009990530088543892,
-0.009767900221049786,
-0.026604309678077698,
-0.027513382956385612,
-0.006762392353266478,
-0.04441472515463829,
-0.10240989178419113,
0.013033143244683743,
-0.015463522635400295,
-0.004255483392626047,
-0.05821779742836952,
-0.06270750612020493,
0.0004936708719469607,
0.006910812575370073,
0.041409216821193695,
0.0038496472407132387,
0.03814397379755974,
0.00577447097748518,
-0.01946159079670906,
0.007444197311997414,
0.0031446516513824463,
-0.023821432143449783,
0.039257124066352844,
-0.04059290513396263,
0.00675311591476202,
0.006122330669313669,
-0.050982315093278885,
-0.022040389478206635,
0.001139820204116404,
0.04051869735121727,
0.0010980770457535982,
0.0764363706111908,
-0.025658130645751953,
-0.03881186619400978,
0.012235384434461594,
0.02512010745704174,
-0.006038844119757414,
0.03829239308834076,
0.06567590683698654,
0.02892337366938591,
0.039776597172021866,
0.015982992947101593,
-0.04994337633252144,
-0.006122330669313669,
0.01167880930006504,
-0.015129577368497849,
-0.02333906665444374,
0.04630708321928978,
-0.014637935906648636,
-0.02337617054581642,
-0.008033239282667637,
0.03224427253007889,
0.04207710921764374,
-0.024544980376958847,
-0.013571166433393955,
0.02122407965362072,
-0.05072258040308952,
-0.060852255672216415,
-0.039516858756542206,
-0.013942216522991657,
-0.0269753597676754,
-0.023524591699242592,
-0.009925596415996552,
-0.007652913220226765,
-0.0310940183699131,
0.03855213150382042,
0.06816194951534271,
0.037216346710920334,
-0.0018575707217678428,
0.05417335033416748,
0.012216832488775253,
-0.07421007007360458,
-0.021669339388608932,
-0.06812483817338943,
0.012893998995423317,
0.016678713262081146,
0.026288915425539017,
-0.005176152102649212,
-0.015175959095358849,
0.051093630492687225,
0.000548458774574101,
0.021780654788017273,
0.010278094559907913,
0.016465358436107635,
-0.01261571142822504,
0.02102000080049038,
-0.008163107559084892,
0.050982315093278885,
-0.02495313435792923,
0.0014320224290713668,
0.008112087845802307,
-0.018654555082321167,
-0.043004732578992844,
-0.011539665050804615,
0.058959897607564926,
0.04359841346740723,
-0.033691368997097015,
0.04007343575358391,
0.02708667516708374,
-0.03265243023633957,
0.060889359563589096,
0.05521228909492493,
-0.05565755069255829,
0.00979572907090187,
0.047160498797893524,
-0.04793970286846161,
0.020185139030218124,
0.06738273799419403,
-0.016994105651974678,
-0.04478577524423599,
-0.00014624600589741021,
-0.024340901523828506,
0.00961020402610302,
0.03328321501612663,
-0.007226205430924892,
0.009229877032339573,
-0.011994201689958572,
-0.03242979943752289,
0.051501788198947906,
-0.025658130645751953,
0.041594743728637695,
-0.005514735821634531,
-0.039257124066352844,
0.041483428329229355,
0.023988403379917145,
0.06437723338603973,
-0.09773465991020203,
-0.01916475035250187,
-0.025546815246343613,
-0.004529132973402739,
-0.018636003136634827,
0.052800461649894714,
-0.009002609178423882,
0.02524997480213642,
-0.022485651075839996,
0.024526426568627357,
0.03623306378722191,
0.03435926139354706,
-0.010714078322052956,
0.06114909425377846,
0.020277900621294975,
0.02890482172369957,
-0.03734621778130531,
-0.018060874193906784,
0.018654555082321167,
0.021966179832816124,
-0.0380326583981514,
0.02281959541141987,
0.04092685133218765,
-0.009582375176250935,
-0.033839792013168335,
-0.043412890285253525,
0.029535606503486633,
-0.009239153005182743,
0.016094308346509933,
-0.00440158462151885,
-0.0018680065404623747,
-0.04014764726161957,
0.003907623700797558,
0.009990530088543892,
-0.02495313435792923,
-0.007861629128456116,
-0.0004942506202496588,
-0.021817760542035103,
0.04096395522356033,
0.00864083506166935,
-0.018728764727711678,
0.005677070003002882,
-0.004958160221576691,
-0.06812483817338943,
0.00003790221308008768,
-0.011140786111354828,
0.022244468331336975,
0.05146468058228493,
-0.05328282713890076,
0.02113131619989872,
-0.023635907098650932,
-0.009758624248206615,
0.002669243374839425,
0.024044061079621315,
-0.011298482306301594,
-0.0687556266784668,
0.0057930233888328075,
-0.05435887351632118,
0.03814397379755974,
-0.04593603312969208,
0.0022112280130386353,
0.007546236272901297,
-0.0038519662339240313,
0.028366798534989357,
-0.013571166433393955,
0.05179862678050995,
-0.011400521732866764,
-0.05187283828854561,
0.025880761444568634,
0.014461686834692955,
0.027698908001184464,
0.03267098218202591,
0.0189699474722147,
0.0696832537651062,
0.05550913140177727,
0.04678944870829582,
-0.01951724849641323,
0.013163010589778423,
-0.00857126247137785,
-0.02307933010160923,
0.015519180335104465,
0.09639887511730194,
-0.009331915527582169,
0.010018358938395977,
-0.051279157400131226,
-0.0343778133392334,
-0.0015572519041597843,
-0.0002939414407592267,
0.05988752469420433,
-0.009090732783079147,
-0.009215963073074818,
-0.022708280012011528,
-0.015519180335104465,
0.03090849332511425,
0.037457529455423355,
-0.029999420046806335,
0.08437684923410416,
-0.011650980450212955,
-0.014619383029639721,
0.004628852941095829,
0.04886732995510101,
0.04044448584318161,
0.03899738937616348,
0.07142718881368637,
0.04634418711066246,
-0.0020790414419025183,
-0.01747647114098072,
-0.033561501652002335,
0.023654459044337273,
-0.07079640030860901,
0.06229935213923454,
0.009253067895770073,
0.05528650060296059,
-0.00043859309516847134,
0.018218571320176125,
0.00009326988219982013,
0.027420619502663612,
-0.027958642691373825,
-0.022485651075839996,
0.06864431500434875,
-0.016817856580018997,
0.029387187212705612,
-0.024470768868923187,
-0.010389409027993679,
0.02153947204351425,
-0.020036717876791954,
0.045527875423431396,
-0.02094579115509987,
-0.001234901836141944,
-0.010315199382603168,
-0.017875349149107933,
0.0288491640239954,
-0.05447018891572952,
0.045268140733242035,
0.05213257297873497,
0.014526620507240295,
0.006386703811585903,
0.01702193357050419,
-0.016493188217282295,
0.0031933519057929516,
-0.0019839596934616566,
-0.016919896006584167,
0.07821740955114365,
0.01726311631500721,
-0.024044061079621315,
-0.009336554445326328,
-0.01749502308666706,
-0.006034206133335829,
0.01905343495309353,
0.039887912571430206,
0.002562566427513957,
-0.016604501754045486,
0.002386317355558276,
0.013589718379080296,
-0.011168614961206913,
-0.0063681514002382755,
0.005361677147448063,
-0.0029707218054682016,
0.06404329091310501,
0.043524205684661865,
-0.05213257297873497,
0.07465532422065735,
0.028422456234693527,
-0.004399265628308058,
0.023951299488544464,
-0.07910793274641037,
-0.0190163291990757,
0.024211034178733826,
0.008019325323402882,
-0.014814184978604317,
-0.05543491989374161,
0.05832911282777786,
-0.03523122891783714,
-0.048978645354509354,
-0.03280084952712059,
-0.034080974757671356,
0.025416947901248932,
-0.03929423168301582,
0.021502366289496422,
0.03087138757109642,
-0.01268064510077238,
-0.008019325323402882,
0.018478306010365486,
0.03665977343916893,
-0.03641859069466591,
0.021706445142626762,
0.0421513170003891,
-0.019962508231401443,
-0.013970045372843742,
0.03489728271961212,
-0.0009832833893597126,
0.05328282713890076,
0.03638148680329323,
0.04122369363903999,
0.017995940521359444,
-0.01435964833945036,
0.001379843452014029,
0.018385544419288635,
-0.010426514782011509,
0.017634166404604912,
-0.019981060177087784,
-0.04615866020321846,
-0.0032837954349815845,
-0.005333848763257265,
0.06530486047267914,
-0.020055269822478294,
-0.04957232624292374,
0.03448912873864174,
-0.050759684294462204,
0.01720745861530304,
0.013302154839038849,
0.003977195825427771,
-0.0251015555113554,
0.04014764726161957,
0.011456179432570934,
-0.010973813943564892,
0.007365349214524031,
-0.031520724296569824,
-0.008260508067905903,
-0.06185409054160118,
-0.06159435585141182,
-0.05973910540342331,
0.04378394037485123,
0.06508222967386246,
-0.06434012949466705,
-0.020871581509709358,
-0.03090849332511425,
0.07009141147136688,
0.006233645603060722,
-0.0498320609331131,
0.022188810631632805,
-0.07565716654062271,
-0.006066672969609499,
0.052837569266557693,
0.009011885151267052,
0.0018448159098625183,
-0.02094579115509987,
-0.04567629471421242,
-0.047160498797893524,
-0.027995748445391655,
0.04081553593277931,
0.056548070162534714,
-0.023914193734526634,
-0.057030435651540756,
-0.04222552850842476,
0.05435887351632118,
-0.03910870477557182,
-0.06114909425377846,
-0.06712300330400467,
0.04500840604305267,
-0.0073328823782503605,
-0.023635907098650932,
0.005222533363848925,
-0.00007022417412372306,
-0.07903371751308441,
0.025621024891734123,
0.001352014602161944,
0.02927587181329727,
-0.024155376479029655,
0.024155376479029655,
0.018673108890652657,
-0.03126098960638046,
0.03254111483693123,
-0.053208619356155396,
0.027364961802959442,
0.0036455695517361164,
0.010138950310647488,
-0.02528708055615425,
0.01069552544504404,
0.05369098484516144,
0.05758701264858246,
0.04942390322685242,
-0.00715663330629468,
0.031780462712049484,
-0.025936419144272804,
0.00727722467854619,
-0.07450690865516663,
-0.0019213450141251087,
-0.033839792013168335,
-0.03393255174160004,
-0.029331529513001442,
-0.03101980872452259,
0.03799555450677872,
0.08237317204475403,
0.014879118651151657,
0.033598609268665314,
0.04612155631184578,
0.08066634088754654,
0.06827326118946075,
0.026029180735349655,
-0.0026066286955028772,
0.0016627693548798561,
0.004921054933220148,
0.012782683596014977,
-0.001956131076440215,
0.05242941156029701,
0.04467445984482765,
0.009814281016588211,
0.03467465192079544,
-0.06523064523935318,
0.060518309473991394,
-0.03111257031559944,
-0.03491583466529846,
0.004461880307644606,
0.06356092542409897,
-0.009424678049981594,
0.03480452299118042,
-0.01706831529736519,
0.0889778733253479,
0.0007154314080253243,
0.020463425666093826,
0.05435887351632118,
0.02133539505302906,
-0.1028551533818245,
-0.006985022686421871,
0.056659385561943054,
-0.014248332940042019,
-0.037772923707962036,
-0.014981157146394253,
0.04122369363903999,
-0.02871929667890072,
0.011966372840106487,
0.012893998995423317,
0.058663059026002884,
-0.08415421843528748,
-0.029479948803782463,
0.008469223976135254,
0.0047332108952105045,
0.009600927121937275,
-0.002247173571959138,
-0.02337617054581642,
-0.013858729973435402,
-0.0058718714863061905,
0.008988694287836552,
0.01929461769759655,
-0.03999922424554825,
-0.023914193734526634,
0.009229877032339573,
0.017764035612344742,
-0.011845781467854977,
0.005241085775196552,
-0.009702966548502445,
-0.0029475311748683453,
-0.023858536034822464,
-0.02319064550101757,
-0.08140844106674194,
-0.009206686168909073,
0.02905324101448059,
-0.016177793964743614,
-0.018274229019880295,
0.018793700262904167,
-0.03836660459637642,
-0.030370470136404037,
0.02868219092488289,
-0.02298656851053238,
-0.04111237823963165,
0.0015271040610969067,
0.05146468058228493,
0.045231036841869354,
0.007485940586775541,
0.014257608912885189,
0.016456082463264465,
0.04408077895641327,
-0.04797680675983429,
0.01742081344127655,
-0.021595129743218422,
-0.0799984484910965,
-0.027364961802959442,
0.030147839337587357,
0.026066286489367485,
0.002583438064903021,
0.0050880275666713715,
0.02868219092488289,
-0.002604309469461441,
-0.03677108883857727,
-0.058811478316783905,
0.006474828347563744,
0.026474440470337868,
0.03862633928656578,
-0.03667832538485527,
-0.0003339452960062772,
0.01940593309700489,
-0.006349598988890648,
-0.01916475035250187,
-0.060740940272808075,
-0.02341327629983425,
-0.005417334847152233,
-0.011048023588955402,
0.004220697563141584,
-0.022374335676431656,
-0.01163242757320404,
-0.028515217825770378,
0.07357928156852722,
-0.0738019123673439,
0.03515701740980148,
-0.009443230926990509,
-0.04834785684943199,
-0.04296762868762016,
-0.017717653885483742,
-0.013636100105941296,
0.006071310956031084,
0.029424291104078293,
0.017958836629986763,
-0.03695661202073097,
0.026344573125243187,
0.005171514116227627,
-0.029628369957208633,
0.029888104647397995,
0.03265243023633957,
-0.0037197796627879143,
-0.054767027497291565,
0.0618169866502285,
0.00038177601527422667,
-0.015185235068202019,
0.04055580124258995,
-0.04497130215167999,
0.059145424515008926,
-0.02109421230852604,
0.009086094796657562,
0.03335742652416229,
0.051390472799539566,
0.03443346917629242,
-0.034006763249635696,
0.008195574395358562,
-0.0021694849710911512,
0.014099912717938423,
-0.019628562033176422,
-0.004176635295152664,
-0.01066769752651453,
0.01160459965467453,
0.04189158231019974,
0.01922040805220604,
-0.03244835138320923,
-0.033654265105724335,
-0.024192482233047485,
-0.0843026340007782,
0.020815923810005188,
-0.00974934734404087,
-0.06270750612020493,
0.012912551872432232,
0.014851289801299572,
-0.043487098067998886,
-0.025639578700065613,
0.04575050622224808,
-0.0573272779583931,
0.02717943675816059,
0.0417802669107914,
0.016252005472779274,
-0.016066478565335274,
-0.03788423910737038,
-0.0625590831041336,
0.05999884009361267,
-0.03844081610441208,
-0.003995748236775398,
-0.022096047177910805,
0.07209508121013641,
0.06508222967386246,
-0.009318001568317413,
0.020648950710892677,
-0.00961947999894619,
0.014739974401891232,
-0.016845684498548508,
-0.04192868620157242,
0.033709924668073654,
0.009517441503703594,
-0.010203883983194828,
-0.07732688635587692,
0.014758527278900146,
-0.004795825574547052,
-0.043375782668590546,
-0.08756788074970245,
-0.0346560999751091,
0.014127741567790508,
-0.0022274614311754704,
0.009211324155330658,
0.0006064354092814028,
0.0157325342297554,
-0.00577447097748518,
0.009777176193892956,
0.008909845724701881,
-0.061000674962997437,
-0.058700162917375565,
0.006349598988890648,
-0.02695680595934391,
-0.014517344534397125,
-0.027940090745687485,
-0.02717943675816059,
-0.010639868676662445,
-0.05261493846774101,
0.04263368248939514,
0.054804135113954544,
-0.07309691607952118,
0.0008290655678138137,
-0.09795729070901871,
0.05933094769716263,
-0.03510136157274246,
-0.01243946235626936,
0.020296452566981316,
0.03283795341849327,
-0.03862633928656578,
-0.0191090926527977,
-0.002110348781570792,
-0.08126002550125122,
-0.025454053655266762,
0.03641859069466591,
-0.02133539505302906,
0.04437762126326561,
0.041297901421785355,
0.03441491723060608,
-0.022671176120638847,
-0.013450575061142445,
0.0009740071254782379,
-0.0030797177460044622,
-0.006386703811585903,
0.07498927414417267,
-0.04011053964495659,
0.02684549242258072,
-0.04667813330888748,
0.041297901421785355,
0.010769736021757126,
-0.05213257297873497,
0.0029707218054682016,
0.0571417510509491,
-0.021984731778502464,
-0.01721673458814621,
0.01745791733264923,
0.03346874192357063,
-0.008028601296246052,
0.0011096723610535264,
-0.004053724929690361,
-0.05773543193936348,
0.010101845487952232,
-0.03641859069466591,
0.04975784942507744,
-0.01549135148525238,
-0.0382181853055954,
0.033876895904541016,
-0.051019422709941864,
0.01739298366010189,
-0.07621373981237411,
0.03610319644212723,
0.020630398765206337,
0.0576983280479908
]
|
30,083 | networkx.classes.graph | has_edge | Returns True if the edge (u, v) is in the graph.
This is the same as `v in G[u]` without KeyError exceptions.
Parameters
----------
u, v : nodes
Nodes can be, for example, strings or numbers.
Nodes must be hashable (and not None) Python objects.
Returns
-------
edge_ind : bool
True if edge is in the graph, False otherwise.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.has_edge(0, 1) # using two nodes
True
>>> e = (0, 1)
>>> G.has_edge(*e) # e is a 2-tuple (u, v)
True
>>> e = (0, 1, {"weight": 7})
>>> G.has_edge(*e[:2]) # e is a 3-tuple (u, v, data_dictionary)
True
The following syntax are equivalent:
>>> G.has_edge(0, 1)
True
>>> 1 in G[0] # though this gives KeyError if 0 not in G
True
| def has_edge(self, u, v):
"""Returns True if the edge (u, v) is in the graph.
This is the same as `v in G[u]` without KeyError exceptions.
Parameters
----------
u, v : nodes
Nodes can be, for example, strings or numbers.
Nodes must be hashable (and not None) Python objects.
Returns
-------
edge_ind : bool
True if edge is in the graph, False otherwise.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.has_edge(0, 1) # using two nodes
True
>>> e = (0, 1)
>>> G.has_edge(*e) # e is a 2-tuple (u, v)
True
>>> e = (0, 1, {"weight": 7})
>>> G.has_edge(*e[:2]) # e is a 3-tuple (u, v, data_dictionary)
True
The following syntax are equivalent:
>>> G.has_edge(0, 1)
True
>>> 1 in G[0] # though this gives KeyError if 0 not in G
True
"""
try:
return v in self._adj[u]
except KeyError:
return False
| (self, u, v) | [
0.022788802161812782,
-0.05719763785600662,
-0.05178247392177582,
0.07261580228805542,
-0.01600104756653309,
0.03499171510338783,
-0.007163806352764368,
0.03922231122851372,
0.03617628291249275,
-0.04091455042362213,
-0.01752406172454357,
-0.010726907290518284,
0.07231496274471283,
-0.02369132824242115,
-0.013265264220535755,
0.016508718952536583,
-0.011347394436597824,
0.024198999628424644,
0.034314822405576706,
0.022318735718727112,
-0.05426442623138428,
-0.048999685794115067,
0.041365813463926315,
0.001259776996448636,
-0.009711564518511295,
0.018511200323700905,
-0.0033797749783843756,
0.01752406172454357,
0.04839799925684929,
-0.00754926074296236,
-0.09378758072853088,
-0.04414860159158707,
-0.01776849664747715,
0.045276761054992676,
0.06359053403139114,
0.06084534898400307,
0.0027663386426866055,
0.012249921448528767,
-0.0709235668182373,
-0.03495411202311516,
-0.021547827869653702,
0.003948554862290621,
0.04757068306207657,
0.04046328365802765,
0.04328368231654167,
0.028166357427835464,
0.0012503756443038583,
0.026192080229520798,
-0.0488116592168808,
-0.0007203762070275843,
0.01604805514216423,
-0.030535491183400154,
0.023202460259199142,
-0.030704714357852936,
-0.05787453055381775,
0.006176667753607035,
-0.017505260184407234,
0.03721042722463608,
-0.011526019312441349,
0.0682159811258316,
-0.021698249503970146,
0.020532485097646713,
0.039711181074380875,
-0.003781681414693594,
-0.004305805079638958,
0.013951560482382774,
-0.032190121710300446,
-0.052158527076244354,
-0.030648306012153625,
0.011149967089295387,
0.013227658346295357,
0.0069334739819169044,
0.009448327124118805,
0.04275720939040184,
-0.0065856254659593105,
0.0057724108919501305,
0.01647111400961876,
0.05057910829782486,
0.002372658345848322,
-0.003932102583348751,
0.013866947963833809,
-0.08325809985399246,
-0.008987662382423878,
-0.02344689518213272,
0.024086184799671173,
0.04523915797472,
-0.014026771299540997,
0.021228183060884476,
0.015060916543006897,
0.01092433463782072,
-0.0161608699709177,
0.0010870277183130383,
-0.01359430979937315,
0.010708104819059372,
0.015446370467543602,
-0.019517142325639725,
0.04535197094082832,
-0.04132820665836334,
0.005396358203142881,
-0.03143801540136337,
0.0027005295269191265,
-0.03440883383154869,
0.02352210506796837,
0.02523314580321312,
-0.030516687780618668,
-0.022055499255657196,
-0.0174112468957901,
-0.012814000248908997,
-0.015201935544610023,
-0.07761730253696442,
-0.026342501863837242,
-0.01460025180131197,
0.021604236215353012,
0.01228752639144659,
0.01089613139629364,
-0.004764119163155556,
0.02777150273323059,
-0.014825883321464062,
-0.04174186661839485,
-0.0015805971343070269,
0.01783430576324463,
0.05163205415010452,
-0.0005111968494020402,
-0.007267220877110958,
0.051444027572870255,
-0.10221116244792938,
-0.007558661978691816,
0.012325131334364414,
0.014402823522686958,
-0.049902211874723434,
0.05328668653964996,
0.008926554583013058,
-0.0034972913563251495,
0.03391996771097183,
0.004940394312143326,
0.007760790642350912,
-0.03096795082092285,
0.02267598547041416,
-0.0022833459079265594,
0.020212840288877487,
-0.010642295703291893,
-0.03559340164065361,
0.010764512233436108,
0.01249435544013977,
-0.010322649963200092,
0.0016240781405940652,
-0.05377555638551712,
-0.040237654000520706,
0.04260678589344025,
0.027395449578762054,
-0.010802118107676506,
-0.022525565698742867,
0.016602732241153717,
0.0017850757576525211,
-0.0366087444126606,
-0.03815056011080742,
-0.015521581284701824,
0.0007756089908070862,
0.006195470690727234,
-0.01629249006509781,
0.0323217399418354,
0.011037150397896767,
-0.026737356558442116,
0.012607171200215816,
-0.024387026205658913,
0.035273756831884384,
0.0012903312454000115,
0.041140180081129074,
0.038470204919576645,
0.047232236713171005,
-0.022375144064426422,
-0.05407639965415001,
-0.07208932936191559,
0.024067381396889687,
-0.02534596063196659,
0.005015604663640261,
0.018981266766786575,
0.02889966033399105,
0.0040308162569999695,
-0.0018238562624901533,
0.019028274342417717,
-0.004778221249580383,
0.0016146769048646092,
-0.05862663686275482,
0.009133383631706238,
0.00262766913510859,
0.0358942449092865,
-0.02617327682673931,
0.003835738869383931,
0.0007350657833740115,
-0.03907189145684242,
-0.06155984848737717,
0.03241575509309769,
0.0663733258843422,
0.04170425981283188,
-0.037342045456171036,
0.03262258321046829,
0.047645892947912216,
-0.04328368231654167,
0.03074231930077076,
0.08859805017709732,
-0.07468409091234207,
0.0005558531265705824,
0.042493969202041626,
-0.030422674492001534,
0.01716681197285652,
0.01716681197285652,
-0.036571137607097626,
0.02795952931046486,
-0.023465696722269058,
-0.02038206346333027,
-0.06772711873054504,
0.054753292351961136,
0.053098659962415695,
0.0212657880038023,
0.07017146050930023,
-0.05915310978889465,
0.033600322902202606,
-0.038771048188209534,
0.010999545454978943,
0.02985859476029873,
-0.010285045020282269,
0.04584084078669548,
-0.005067312158644199,
0.06614769250154495,
-0.05802495405077934,
-0.008785534650087357,
0.01747705601155758,
0.0025548089761286974,
-0.032302938401699066,
0.04719462990760803,
0.04708181694149971,
0.034559257328510284,
0.02914409525692463,
-0.014195994473993778,
0.0337507426738739,
0.002536006271839142,
0.040012020617723465,
0.04903728887438774,
0.0219802875071764,
0.030159438028931618,
-0.0016640338581055403,
-0.040388073772192,
-0.014412225224077702,
0.02790312096476555,
-0.020776920020580292,
0.003725273534655571,
0.050015028566122055,
-0.004167135339230299,
0.0004118953656870872,
-0.05915310978889465,
-0.02630489692091942,
-0.0019049426773563027,
-0.025383567437529564,
0.011328591965138912,
-0.043095655739307404,
-0.05445244908332825,
-0.0223375391215086,
0.01647111400961876,
0.027339041233062744,
-0.0328294113278389,
0.029050081968307495,
0.041064970195293427,
0.09055352210998535,
-0.01442162599414587,
-0.010642295703291893,
0.02038206346333027,
0.007836000993847847,
-0.05888987332582474,
-0.0612214021384716,
-0.00018303196702618152,
0.007807796820998192,
0.015596791170537472,
0.007267220877110958,
0.02363492175936699,
-0.01418659370392561,
-0.009189791046082973,
0.0023703081533312798,
-0.0015629696426913142,
0.010651696473360062,
-0.04414860159158707,
-0.009537640027701855,
-0.014355816878378391,
0.04591605067253113,
-0.050240658223629,
0.0028039440512657166,
-0.0075398595072329044,
0.0018297320930287242,
0.03134400397539139,
-0.02950134500861168,
0.02523314580321312,
-0.03433362394571304,
-0.009584646672010422,
0.03760528191924095,
-0.01670614816248417,
0.09100478887557983,
0.08205472677946091,
0.009796176105737686,
0.013904553838074207,
0.0223375391215086,
0.06990822404623032,
-0.00273108365945518,
-0.04986460506916046,
-0.06810317188501358,
-0.0029379127081483603,
0.00006276115891523659,
0.07370635867118835,
0.026624541729688644,
0.003104786155745387,
-0.02072051167488098,
-0.05400118604302406,
-0.008982961997389793,
0.014769474975764751,
0.032190121710300446,
0.0033304179087281227,
-0.023973368108272552,
-0.03850781172513962,
-0.06370335072278976,
-0.017279628664255142,
0.0323217399418354,
-0.03611987456679344,
0.07133722305297852,
0.01819155551493168,
-0.0011246330104768276,
-0.02658693492412567,
0.010952538810670376,
0.03638311102986336,
0.012061894871294498,
0.031249990686774254,
0.03828217834234238,
0.008456488139927387,
-0.07483451813459396,
0.04892447590827942,
0.021340997889637947,
-0.06219913810491562,
0.013584909029304981,
0.014496836811304092,
0.07739167660474777,
0.050503894686698914,
0.026154475286602974,
0.024781882762908936,
0.06129661202430725,
-0.03512333333492279,
-0.022224722430109978,
0.04147862643003464,
-0.015342955477535725,
-0.06283842772245407,
-0.01418659370392561,
-0.0024960506707429886,
0.04772110655903816,
-0.03719162568449974,
0.059077899903059006,
-0.0015982245095074177,
-0.027733895927667618,
0.015587390400469303,
0.021717051044106483,
0.06588445603847504,
-0.007934714667499065,
0.015606192871928215,
0.05697200447320938,
0.0633649006485939,
-0.014224198646843433,
-0.0017439450602978468,
-0.033374689519405365,
-0.061635058373212814,
-0.0011228702496737242,
-0.012099499814212322,
0.02861762046813965,
-0.03151322901248932,
0.012240519747138023,
0.010172229260206223,
-0.02297682873904705,
0.007013385649770498,
0.008334270678460598,
0.008470590226352215,
-0.012851606123149395,
0.00009805284207686782,
0.004251747392117977,
0.02807234413921833,
-0.011864466592669487,
0.03286701813340187,
0.0565207414329052,
0.0022457404993474483,
0.017853109166026115,
0.05449005588889122,
-0.04159144312143326,
0.05614468827843666,
0.021773459389805794,
-0.0008766732062213123,
0.004420971032232046,
-0.061334218829870224,
-0.00935901515185833,
-0.020457275211811066,
0.009871386922895908,
-0.06095816567540169,
-0.09326110035181046,
0.08596567809581757,
-0.010397860780358315,
-0.021472616121172905,
-0.05385076627135277,
0.03504812344908714,
-0.003781681414693594,
-0.0337507426738739,
0.03352510929107666,
0.017853109166026115,
0.0005291181150823832,
-0.019094083458185196,
0.05870184674859047,
0.04117778688669205,
-0.034860096871852875,
0.014854087494313717,
-0.026267290115356445,
-0.04986460506916046,
0.01475067250430584,
-0.05189529061317444,
-0.025552790611982346,
0.008818439207971096,
0.005814717151224613,
0.01021923590451479,
-0.01842658966779709,
0.010943138040602207,
0.016499318182468414,
-0.009142784401774406,
-0.005057910457253456,
-0.011544821783900261,
-0.041365813463926315,
-0.041365813463926315,
-0.018915457651019096,
0.004475028719753027,
0.04162904992699623,
-0.07295425236225128,
-0.08055051416158676,
0.11055953800678253,
-0.029990212991833687,
-0.013331073336303234,
-0.014788277447223663,
-0.012033690698444843,
-0.0536627396941185,
-0.0064352042973041534,
0.015136126428842545,
-0.010736308060586452,
0.004251747392117977,
-0.044035788625478745,
-0.027733895927667618,
-0.015709606930613518,
-0.040012020617723465,
-0.048059552907943726,
0.04655534029006958,
0.09371236711740494,
-0.03346870094537735,
-0.05445244908332825,
0.016865970566868782,
0.0015923486789688468,
-0.03925991803407669,
-0.06381616741418839,
-0.0014043223345652223,
-0.05806255713105202,
0.005527976900339127,
0.005527976900339127,
0.06889288127422333,
-0.041854679584503174,
-0.012118302285671234,
-0.07506014406681061,
-0.05697200447320938,
-0.032133713364601135,
0.03476608544588089,
0.062462374567985535,
0.004211791791021824,
-0.008127441629767418,
0.011591828428208828,
0.012861006893217564,
-0.024142591282725334,
-0.06810317188501358,
-0.020870933309197426,
0.06347771733999252,
0.003250506706535816,
-0.015126725658774376,
0.045276761054992676,
-0.03185167536139488,
-0.014431027695536613,
-0.009448327124118805,
-0.020682906731963158,
0.023258868604898453,
-0.002897957107052207,
0.04264439269900322,
-0.007826599292457104,
-0.036759164184331894,
0.025740817189216614,
-0.040538497269153595,
-0.035085730254650116,
0.06287603080272675,
-0.05787453055381775,
-0.031832873821258545,
0.03346870094537735,
0.09626952558755875,
-0.004446825012564659,
-0.014562645927071571,
-0.020194036886096,
0.006580924615263939,
-0.021829867735505104,
0.02184866927564144,
0.05264739692211151,
-0.0020859180949628353,
0.00484168017283082,
0.002367957727983594,
-0.0369659923017025,
0.012362737208604813,
0.02867402881383896,
0.04550239443778992,
0.03595064952969551,
0.031720057129859924,
0.04726984351873398,
0.056595951318740845,
0.07205172628164291,
0.073931984603405,
0.06611008942127228,
-0.03202090039849281,
-0.03572501987218857,
0.02327767014503479,
0.01942312903702259,
0.06705021858215332,
0.030253451317548752,
0.05904029682278633,
0.019047075882554054,
-0.08310768008232117,
0.08596567809581757,
-0.049714185297489166,
-0.011920874938368797,
-0.0141301853582263,
0.015775416046380997,
-0.02553398720920086,
0.050240658223629,
-0.026850173249840736,
0.05005263164639473,
-0.02784671261906624,
0.04230594262480736,
0.043208472430706024,
0.022130709141492844,
-0.05543018877506256,
0.027320237830281258,
0.027113409712910652,
-0.004510283935815096,
-0.01878383941948414,
-0.003572501940652728,
0.004261148627847433,
0.012861006893217564,
0.014205396175384521,
-0.03576262667775154,
0.05260979384183884,
-0.05441484600305557,
-0.021773459389805794,
0.05761129409074783,
0.028918463736772537,
-0.0007797220605425537,
0.05200810730457306,
0.00808043498545885,
-0.016179673373699188,
0.03643951937556267,
-0.007836000993847847,
0.031776465475559235,
-0.03391996771097183,
-0.04020004719495773,
-0.007177908439189196,
-0.01015342678874731,
-0.056107085198163986,
-0.04459986835718155,
-0.019225701689720154,
-0.06592205911874771,
0.05441484600305557,
0.020570090040564537,
-0.04535197094082832,
0.00264412141405046,
-0.023146051913499832,
-0.03534896671772003,
-0.05806255713105202,
-0.006345891859382391,
-0.027057001367211342,
0.027884317561984062,
0.012691783718764782,
-0.037285637110471725,
-0.07351832836866379,
-0.013603711500763893,
0.017618075013160706,
0.07502254098653793,
0.004381015431135893,
0.0264741200953722,
-0.0009971276158466935,
0.040839336812496185,
-0.05212092399597168,
0.03288581967353821,
-0.003645362099632621,
-0.08401020616292953,
0.013913954608142376,
-0.01801293157041073,
0.04377255216240883,
0.033017437905073166,
0.02209310419857502,
-0.01659333147108555,
0.018558207899332047,
-0.027395449578762054,
-0.026962988078594208,
0.007177908439189196,
0.024781882762908936,
-0.028655225411057472,
-0.02060769498348236,
0.015173732303082943,
0.023465696722269058,
-0.0027193319983780384,
-0.01675315387547016,
-0.07348072528839111,
-0.023315275087952614,
0.0065386188216507435,
-0.01837018132209778,
-0.02985859476029873,
-0.02978338487446308,
-0.004120128694921732,
-0.026511725038290024,
0.07483451813459396,
-0.05663355812430382,
0.02889966033399105,
0.0161608699709177,
-0.02504511922597885,
-0.008982961997389793,
-0.01801293157041073,
-0.0025595095939934254,
-0.01765567995607853,
0.0529482401907444,
0.005941634997725487,
-0.04144102334976196,
-0.03369433432817459,
-0.022995630279183388,
-0.03865823149681091,
0.014760074205696583,
0.02267598547041416,
0.004195339512079954,
-0.0759250670671463,
0.0030060724820941687,
-0.020175235345959663,
0.0010417838348075747,
0.06359053403139114,
-0.0919073149561882,
0.03489770367741585,
-0.07088595628738403,
0.0064822109416127205,
0.035273756831884384,
0.09303547441959381,
0.019206898286938667,
-0.016123265027999878,
0.03121238574385643,
-0.011967881582677364,
0.04685618355870247,
0.051143184304237366,
0.0162360817193985,
-0.024387026205658913,
0.03611987456679344,
0.05716003105044365,
0.01036965660750866,
-0.024593856185674667,
-0.023616118356585503,
0.011845664121210575,
0.015502777881920338,
0.008658616803586483,
0.006797154899686575,
-0.055054135620594025,
0.012522559612989426,
0.06554600596427917,
-0.007060391828417778,
-0.03751127049326897,
0.005513874813914299,
0.033431097865104675,
-0.01587883196771145,
0.02901247702538967,
-0.017862509936094284,
-0.057648900896310806,
-0.013970362953841686,
-0.04211791604757309,
0.02434942126274109,
-0.05798734724521637,
-0.013725928962230682,
-0.029388530179858208,
-0.0066420333459973335,
0.04211791604757309,
-0.0058758254162967205,
0.022299934178590775,
-0.019460733979940414,
0.01953594572842121,
-0.02286401204764843,
-0.04204270616173744,
0.02534596063196659,
-0.03831978514790535,
-0.0034855396952480078,
-0.07874546200037003,
0.017317233607172966,
0.04471268132328987,
-0.006679638754576445,
-0.028711633756756783,
-0.012748191133141518,
0.023559710010886192,
-0.005485670641064644,
-0.009749169461429119,
0.0005455703940242529,
-0.0036171581596136093,
0.006176667753607035,
0.03854541480541229,
-0.012541362084448338,
-0.018689826130867004,
-0.04843560606241226,
-0.002162303775548935,
0.0005020892713218927,
0.02256317064166069,
-0.08731947094202042,
-0.04192989319562912,
0.05904029682278633,
-0.06926893442869186,
0.05407639965415001,
-0.0009577595628798008,
-0.014374619349837303,
-0.0006674937903881073,
-0.030761122703552246,
0.004458576440811157,
-0.013613112270832062,
-0.052158527076244354,
0.0018003529403358698,
0.008056932128965855,
-0.0389590747654438,
-0.05174487084150314,
0.002319775987416506,
-0.0599428229033947,
-0.024067381396889687,
0.007318928372114897,
-0.016687344759702682,
0.03809415176510811,
0.016668541356921196,
0.0793471485376358,
-0.033976372331380844,
0.004019064828753471,
-0.027395449578762054,
0.020288050174713135,
-0.013077237643301487,
0.04200510308146477,
0.03121238574385643,
-0.002324476605281234,
-0.007784293964505196,
-0.047533079981803894,
0.02399217151105404,
-0.021115366369485855,
-0.012861006893217564,
0.025722013786435127,
-0.03209611028432846,
0.009852584451436996,
0.041140180081129074,
0.024537447839975357,
-0.011074756272137165,
0.00606855284422636,
0.025834830477833748,
0.004712412133812904,
-0.035273756831884384,
-0.009528238326311111,
-0.007060391828417778,
-0.04523915797472,
-0.09724726527929306,
0.020212840288877487,
-0.029952608048915863,
-0.0025501083582639694,
-0.05621989816427231,
0.054226819425821304,
0.02653052844107151,
0.06648614257574081
]
|
30,084 | networkx.classes.graph | has_node | Returns True if the graph contains the node n.
Identical to `n in G`
Parameters
----------
n : node
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.has_node(0)
True
It is more readable and simpler to use
>>> 0 in G
True
| def has_node(self, n):
"""Returns True if the graph contains the node n.
Identical to `n in G`
Parameters
----------
n : node
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.has_node(0)
True
It is more readable and simpler to use
>>> 0 in G
True
"""
try:
return n in self._node
except TypeError:
return False
| (self, n) | [
0.008576149120926857,
-0.04085317254066467,
-0.01740962825715542,
0.031323131173849106,
0.0030879462137818336,
0.07964771240949631,
-0.04489944875240326,
0.017019197344779968,
-0.00036464162985794246,
-0.03371895104646683,
-0.0026575857773423195,
0.00422374252229929,
0.054163284599781036,
0.009042003192007542,
0.0041461000218987465,
-0.0540568046271801,
-0.017755690962076187,
0.02051532082259655,
0.010346394032239914,
0.002180640120059252,
-0.05696728080511093,
0.02457934059202671,
0.04255686700344086,
-0.04678060859441757,
0.00875361729413271,
0.03765874728560448,
0.045573826879262924,
0.00866488367319107,
-0.012254176661372185,
0.04007231444120407,
-0.08255819231271744,
-0.02394045703113079,
-0.014534642919898033,
0.009055313654243946,
0.054092299193143845,
0.06608914583921432,
-0.0010054680751636624,
0.02225450798869133,
-0.09384516626596451,
-0.0015783575363457203,
0.004121698439121246,
0.016850601881742477,
0.017640335485339165,
0.050862375646829605,
-0.00938806589692831,
-0.03142961114645004,
0.04372815787792206,
0.04369266331195831,
-0.05618642270565033,
-0.012493759393692017,
0.016611021012067795,
-0.058599989861249924,
-0.018563169986009598,
-0.022307749837636948,
-0.0658406913280487,
-0.011384583078324795,
0.02237873710691929,
0.04582228139042854,
0.012050088495016098,
0.052991993725299835,
-0.006854707840830088,
0.042663346976041794,
-0.012928555719554424,
-0.03540489822626114,
-0.016344819217920303,
-0.0009588826796971262,
-0.025892606005072594,
-0.04791640490293503,
-0.02056856080889702,
0.032991331070661545,
0.007120910100638866,
0.04528987780213356,
0.021846331655979156,
0.06285922229290009,
0.009028692729771137,
-0.026495996862649918,
0.0006932350224815309,
0.06757988035678864,
-0.012138823047280312,
0.026158807799220085,
0.014019985683262348,
-0.05526358634233475,
0.007001119200140238,
-0.013212504796683788,
0.0025865985080599785,
0.01151768397539854,
0.023887215182185173,
0.015981009230017662,
-0.02514723874628544,
0.002555541694164276,
-0.04518339782953262,
0.004228179343044758,
0.016096362844109535,
-0.0025466682855039835,
0.04553833231329918,
-0.021012231707572937,
0.050862375646829605,
-0.024863289669156075,
-0.006357796955853701,
-0.02786250226199627,
-0.025786124169826508,
0.010701330378651619,
0.0025289214681833982,
0.013913504779338837,
0.003760106861591339,
0.0017757908208295703,
-0.0642789676785469,
0.018563169986009598,
-0.015173528343439102,
-0.029850145801901817,
-0.05451822280883789,
-0.010506115853786469,
0.05650586634874344,
-0.016957083716988564,
0.03620350733399391,
-0.0017236595740541816,
-0.011162747628986835,
0.02044433355331421,
-0.05192718654870987,
-0.01576804742217064,
0.00795501098036766,
0.04284081608057022,
0.005812082439661026,
-0.011987974867224693,
0.0493006557226181,
-0.025182733312249184,
0.02418891154229641,
0.015280009247362614,
0.010967533104121685,
-0.08000265061855316,
0.04159853979945183,
0.024295391514897346,
0.012795454822480679,
0.08610755950212479,
-0.010985279455780983,
0.024295391514897346,
-0.05991325527429581,
0.013035036623477936,
-0.013336732983589172,
0.04518339782953262,
-0.009840610437095165,
-0.06019720435142517,
0.006331176962703466,
0.0008956596720963717,
-0.020355599001049995,
0.026921920478343964,
-0.06424348056316376,
-0.01863415725529194,
0.0003516088181640953,
-0.03277837112545967,
0.0012467139167711139,
-0.05036546662449837,
0.04901670664548874,
0.006610689219087362,
-0.07304590195417404,
0.007852966897189617,
0.016957083716988564,
-0.03843960538506508,
-0.017418500036001205,
-0.03366571292281151,
0.011473317630589008,
0.044544510543346405,
-0.018075132742524147,
0.012662353925406933,
-0.0536663755774498,
-0.02127843350172043,
-0.02394045703113079,
-0.012209810316562653,
0.029175767675042152,
0.056150928139686584,
0.006490898318588734,
-0.03808467090129852,
-0.05948733165860176,
0.026620225980877876,
-0.00788402371108532,
0.017613716423511505,
0.009019820019602776,
-0.011020773090422153,
-0.015475224703550339,
0.027631793171167374,
-0.00007334426481975242,
-0.02851913496851921,
0.001090320060029626,
-0.048484303057193756,
-0.008083675056695938,
0.002480117604136467,
-0.0021939503494650126,
-0.02626528963446617,
-0.001759153208695352,
-0.006100468337535858,
-0.006393290590494871,
-0.03146510571241379,
0.013673922047019005,
0.04504142329096794,
0.027649540454149246,
-0.08745631575584412,
0.04518339782953262,
0.028927311301231384,
-0.031376373022794724,
0.04042724892497063,
0.10392536222934723,
0.001146888011135161,
0.022112533450126648,
0.023461291566491127,
-0.024987518787384033,
0.014765352010726929,
-0.012972922995686531,
0.0071253469213843346,
-0.010967533104121685,
-0.01083443220704794,
-0.04245038703083992,
-0.0493006557226181,
0.05707376450300217,
0.09739453345537186,
-0.004376808647066355,
0.05501513183116913,
-0.051323793828487396,
0.004328005015850067,
-0.03316880017518997,
-0.022680431604385376,
0.05813857167959213,
-0.009734129533171654,
0.05462470278143883,
-0.013132644817233086,
-0.0009960400639101863,
-0.031962018460035324,
-0.021012231707572937,
0.033701203763484955,
0.006162581965327263,
-0.049052201211452484,
0.025235973298549652,
0.07446564733982086,
0.011420076712965965,
0.01784442365169525,
-0.012884189374744892,
-0.0335414856672287,
0.04127909615635872,
0.04766795039176941,
0.02000066265463829,
0.0037490150425583124,
-0.03772973269224167,
-0.029779158532619476,
-0.047064557671546936,
-0.04237939789891243,
0.017720196396112442,
-0.0002699457108974457,
-0.02457934059202671,
0.07002893835306168,
-0.02585711143910885,
0.012626860290765762,
-0.05462470278143883,
-0.057002775371074677,
-0.016655387356877327,
-0.027401085942983627,
-0.005878633353859186,
-0.015200148336589336,
-0.09086370468139648,
-0.03339951112866402,
0.014250693842768669,
0.04933615028858185,
-0.02394045703113079,
-0.017143424600362778,
0.028678856790065765,
0.07396873086690903,
0.020266864448785782,
-0.01987643539905548,
0.010080192238092422,
0.034357838332653046,
-0.051891691982746124,
-0.07631131261587143,
0.05114632472395897,
0.02186407893896103,
0.013931251130998135,
0.013114897534251213,
0.049513619393110275,
-0.03632773458957672,
0.015945514664053917,
-0.0008590568322688341,
0.006575195584446192,
0.010452874936163425,
-0.02889181859791279,
-0.0030679809860885143,
0.003529398236423731,
0.008571712300181389,
-0.04330223426222801,
-0.022077040746808052,
0.014747604727745056,
0.06527279317378998,
0.014845211990177631,
-0.006566322408616543,
0.003216610522940755,
-0.009015383198857307,
-0.022360989823937416,
0.03084396757185459,
-0.016948210075497627,
0.036984365433454514,
-0.0005476556834764779,
0.028856324031949043,
-0.0041461000218987465,
0.02947746217250824,
0.09370319545269012,
-0.023248329758644104,
-0.06814777851104736,
-0.08390694856643677,
-0.012183189392089844,
0.009077496826648712,
0.03943342715501785,
0.06814777851104736,
-0.0016105236718431115,
0.03052452579140663,
-0.04844880849123001,
0.0012578056193888187,
-0.0019488222897052765,
-0.005315171554684639,
0.032228220254182816,
-0.04255686700344086,
-0.032813865691423416,
-0.056931789964437485,
-0.043515194207429886,
0.03943342715501785,
-0.024490607902407646,
0.03808467090129852,
-0.008616079576313496,
0.035067711025476456,
-0.05916788801550865,
0.0035538000520318747,
0.02631852962076664,
0.03560011461377144,
-0.03205075114965439,
0.04049823805689812,
0.014933946542441845,
-0.056860800832509995,
0.05270804464817047,
-0.005479329731315374,
-0.08539768308401108,
-0.0063444869592785835,
0.018722891807556152,
0.04443803057074547,
0.032600902020931244,
0.04198896884918213,
0.00586975971236825,
0.06477588415145874,
-0.03645196184515953,
0.004319131374359131,
0.02450835332274437,
0.015918895602226257,
-0.025182733312249184,
-0.00005490421608556062,
0.016486793756484985,
0.03812016174197197,
-0.052282121032476425,
0.06797030568122864,
-0.00482269749045372,
-0.047135546803474426,
0.0008213448454625905,
0.034357838332653046,
0.09192851185798645,
0.02431313879787922,
-0.026797693222761154,
0.0548376627266407,
0.04042724892497063,
0.005967367440462112,
0.00012117748701712117,
-0.03591955825686455,
-0.053311437368392944,
0.013505327515304089,
0.008274453692138195,
0.07102276384830475,
0.027578553184866905,
-0.011970228515565395,
0.0020042811520397663,
-0.043373219668865204,
-0.07120022922754288,
0.0014829684514552355,
-0.0086781932041049,
0.010949785821139812,
0.01544860377907753,
-0.01335447933524847,
0.02521822601556778,
-0.018403450027108192,
0.005887506529688835,
0.027631793171167374,
0.012058962136507034,
-0.014880705624818802,
-0.005439399275928736,
0.006411037407815456,
0.03968188166618347,
0.013035036623477936,
-0.02521822601556778,
-0.025644149631261826,
-0.030684245750308037,
-0.0034517559688538313,
-0.05824505165219307,
-0.006331176962703466,
-0.07056134194135666,
-0.06104905158281326,
0.1057000383734703,
-0.03575983643531799,
-0.004281419795006514,
-0.03953990712761879,
0.03508545830845833,
0.014117592945694923,
-0.009884976781904697,
0.058670975267887115,
0.029175767675042152,
0.0022039327304810286,
-0.004831571131944656,
-0.03221047297120094,
0.0212961807847023,
-0.039823856204748154,
0.021065471693873405,
-0.03709084913134575,
-0.0402497798204422,
0.012804328463971615,
0.0004955243784934282,
-0.034020647406578064,
0.011455570347607136,
0.033186547458171844,
0.026797693222761154,
-0.023816227912902832,
-0.01383364386856556,
-0.025129493325948715,
-0.024863289669156075,
0.07017091661691666,
0.0015007152687758207,
-0.026673465967178345,
-0.014241820201277733,
-0.031056929379701614,
0.0021151986438781023,
0.06335613876581192,
-0.041314590722322464,
-0.0473485067486763,
0.0804995596408844,
-0.01086992584168911,
0.01772907003760338,
-0.0631786659359932,
-0.017569348216056824,
-0.05565401911735535,
-0.04085317254066467,
0.04205995798110962,
0.032547663897275925,
0.022343242540955544,
-0.0040063438937067986,
-0.038546085357666016,
-0.02173985168337822,
-0.034127127379179,
0.016415806487202644,
0.03765874728560448,
0.0705968365073204,
-0.04347970336675644,
-0.04294729605317116,
-0.001927747973240912,
-0.003642534138634801,
-0.029175767675042152,
-0.03309781476855278,
-0.028483640402555466,
-0.07460761815309525,
-0.008638262748718262,
-0.002480117604136467,
0.013212504796683788,
-0.09278035908937454,
0.067863829433918,
-0.068254254758358,
-0.004898121580481529,
-0.003871024353429675,
-0.04049823805689812,
0.03670041635632515,
0.004574242047965527,
0.02470356971025467,
0.01567043922841549,
-0.022857900708913803,
0.006082721520215273,
-0.046425674110651016,
-0.051643237471580505,
0.06410150229930878,
0.02394045703113079,
-0.033505991101264954,
0.04372815787792206,
-0.05643487721681595,
-0.01723215915262699,
-0.008695940487086773,
-0.009751875884830952,
0.02379848249256611,
0.017595969140529633,
0.020888004451990128,
-0.01312377117574215,
-0.044792965054512024,
0.03780072182416916,
0.0191488154232502,
-0.03503221645951271,
0.03613251820206642,
-0.07347182184457779,
-0.014454782009124756,
0.006450967863202095,
0.03872355446219444,
0.012600240297615528,
-0.03762325271964073,
-0.04245038703083992,
0.013895757496356964,
0.013878011144697666,
-0.006961188744753599,
0.09767848253250122,
0.024952024221420288,
0.03595505282282829,
0.012919683009386063,
-0.013443213887512684,
-0.011783886700868607,
0.04660314321517944,
0.031962018460035324,
0.041953474283218384,
0.05980677157640457,
0.04663863405585289,
0.05537007004022598,
0.03858157992362976,
0.049265164881944656,
0.049833063036203384,
-0.054021310061216354,
-0.015235641971230507,
0.018048513680696487,
0.03011634759604931,
0.04887473210692406,
0.027827009558677673,
0.06403051316738129,
-0.004068457987159491,
-0.04663863405585289,
0.046745117753744125,
-0.04379914328455925,
-0.038865529000759125,
-0.04614172503352165,
0.03879454359412193,
-0.00013587407011073083,
0.034925736486911774,
-0.02974366582930088,
0.03618576005101204,
-0.0418114997446537,
0.02257395163178444,
0.05817406624555588,
0.014117592945694923,
-0.01671750098466873,
-0.004587552044540644,
0.0033718952909111977,
-0.06211385875940323,
0.04305377975106239,
0.027383338660001755,
-0.022219015285372734,
0.029459716752171516,
0.035316165536642075,
-0.050223492085933685,
0.061900898814201355,
-0.014525769278407097,
0.025448935106396675,
0.011970228515565395,
-0.00511552020907402,
-0.033523738384246826,
0.1159931942820549,
0.017853297293186188,
-0.01780005730688572,
0.015688186511397362,
-0.0020076087675988674,
0.030205082148313522,
-0.0473485067486763,
-0.031198903918266296,
0.006450967863202095,
0.007005556020885706,
-0.03804917633533478,
-0.06914159655570984,
-0.04046274349093437,
-0.07141318917274475,
0.07787303626537323,
0.03797818720340729,
0.035191938281059265,
0.028412653133273125,
-0.01023104041814804,
-0.027010655030608177,
-0.037907201796770096,
0.0013687232276424766,
-0.03772973269224167,
0.02837716042995453,
-0.03320429474115372,
-0.049194175750017166,
-0.054163284599781036,
-0.012688973918557167,
-0.007094290107488632,
0.05849350988864899,
0.004583115689456463,
0.053701866418123245,
-0.08142239600419998,
0.011011900380253792,
-0.020302359014749527,
0.012893062084913254,
0.015102541074156761,
-0.03575983643531799,
0.06371106952428818,
-0.03701985999941826,
0.026016833260655403,
0.03780072182416916,
0.01934402994811535,
-0.04088866710662842,
0.008238960057497025,
-0.033647965639829636,
0.011633038520812988,
0.01248488575220108,
0.015830161049962044,
-0.002963718492537737,
0.011242608539760113,
0.01473873108625412,
0.021722104400396347,
-0.012147695757448673,
-0.037694238126277924,
-0.06261076778173447,
-0.022077040746808052,
-0.009920470416545868,
-0.026105567812919617,
-0.014445909298956394,
-0.00964539498090744,
0.005155450198799372,
0.0003105693031102419,
0.05050744116306305,
-0.048803746700286865,
0.009246091358363628,
0.022396482527256012,
0.007906206883490086,
-0.0028283989522606134,
0.016832856461405754,
0.00017233823018614203,
-0.04007231444120407,
0.05231761559844017,
-0.047774430364370346,
-0.03244118019938469,
-0.05064941570162773,
-0.0034828127827495337,
-0.029708171263337135,
0.002764066681265831,
-0.03638097643852234,
-0.025129493325948715,
-0.0852557122707367,
0.0179420318454504,
-0.007080980110913515,
-0.004412302281707525,
0.07829895615577698,
-0.09029580652713776,
0.014667743816971779,
-0.0788668543100357,
-0.034925736486911774,
0.023212837055325508,
0.04014329984784126,
0.03386092558503151,
-0.0016892751445993781,
0.030542271211743355,
-0.04401210695505142,
0.004467761144042015,
0.06278824061155319,
0.02205929346382618,
-0.0006261299131438136,
0.06978048384189606,
-0.02193506620824337,
0.0010942021617665887,
-0.004257017746567726,
-0.008394244126975536,
-0.024916531518101692,
0.043195754289627075,
-0.015182401984930038,
0.021136458963155746,
-0.006211386062204838,
0.016948210075497627,
0.019326284527778625,
0.011171621270477772,
-0.03833312541246414,
-0.03226371482014656,
0.05341791734099388,
-0.028927311301231384,
0.02110096625983715,
-0.010044698603451252,
-0.08177733421325684,
-0.019663473591208458,
-0.020728282630443573,
-0.027401085942983627,
-0.0262475423514843,
-0.0061315251514315605,
-0.0015839034458622336,
0.004951362032443285,
0.007813036441802979,
0.005346228834241629,
0.011340215802192688,
0.0037645434495061636,
0.03939793258905411,
-0.0268331877887249,
-0.060729607939720154,
0.016300451010465622,
0.015075921081006527,
-0.0006621780921705067,
-0.05682530626654625,
0.018953600898385048,
0.07943475246429443,
0.025129493325948715,
0.02340805158019066,
-0.010949785821139812,
0.0686446875333786,
-0.011428950354456902,
-0.015528464689850807,
0.011393456719815731,
-0.029850145801901817,
0.00717858737334609,
0.028678856790065765,
-0.02651374414563179,
-0.025431187823414803,
-0.04017879441380501,
0.0032254839316010475,
-0.024490607902407646,
0.0556185245513916,
-0.06772185117006302,
-0.01323025207966566,
0.05174971744418144,
-0.0335414856672287,
0.003165588481351733,
0.003245449159294367,
0.004902558401226997,
0.018545424565672874,
-0.02690417505800724,
-0.02580387145280838,
0.03701985999941826,
-0.07680822163820267,
-0.0009511184762232006,
0.049123190343379974,
-0.013185884803533554,
-0.019787700846791267,
0.0018101753666996956,
-0.0655212476849556,
-0.007036612834781408,
0.006566322408616543,
-0.01319475844502449,
0.04489944875240326,
0.0016083052614703774,
0.05050744116306305,
0.005940746981650591,
0.004518783185631037,
-0.010594849474728107,
0.05316946282982826,
-0.035120949149131775,
-0.009370319545269012,
0.07283293455839157,
0.005692291539162397,
0.030932702124118805,
-0.06988696753978729,
0.029583944007754326,
0.012733341194689274,
-0.01151768397539854,
0.014295061118900776,
-0.021597877144813538,
0.00964539498090744,
0.06069411337375641,
0.016664260998368263,
0.021331673488020897,
-0.013957871124148369,
0.044934939593076706,
0.030950449407100677,
-0.04255686700344086,
0.01987643539905548,
-0.008185719139873981,
-0.023070862516760826,
-0.08426188677549362,
-0.001303281867876649,
-0.008420865051448345,
-0.018075132742524147,
-0.029566196724772453,
0.017817804589867592,
0.018882613629102707,
0.03394966199994087
]
|
30,085 | networkx.classes.digraph | has_predecessor | Returns True if node u has predecessor v.
This is true if graph has the edge u<-v.
| def has_predecessor(self, u, v):
"""Returns True if node u has predecessor v.
This is true if graph has the edge u<-v.
"""
return u in self._pred and v in self._pred[u]
| (self, u, v) | [
-0.03032502718269825,
0.02041073702275753,
-0.05500490590929985,
0.04173881188035011,
-0.021627971902489662,
0.029407691210508347,
0.009120441973209381,
0.047772061079740524,
0.033535704016685486,
0.01165193784981966,
0.0013418251182883978,
-0.04466722905635834,
0.07038793712854385,
0.012710402719676495,
-0.025685422122478485,
-0.005071812309324741,
0.04110373184084892,
0.010990397073328495,
0.0030232411809265614,
-0.005640737246721983,
-0.03115415759384632,
-0.021116379648447037,
0.007316640578210354,
0.025967679917812347,
-0.0173676498234272,
0.0167237501591444,
-0.04018639400601387,
-0.0047719138674438,
-0.014677383936941624,
0.023321516811847687,
-0.008445669896900654,
0.007131409365683794,
0.021081097424030304,
-0.01845257543027401,
0.08566511422395706,
0.08658245205879211,
0.012128246948122978,
0.0023793415166437626,
-0.05976799875497818,
-0.02894902229309082,
-0.01721769943833351,
-0.02266879566013813,
-0.014880256727337837,
0.019246425479650497,
0.04988899081945419,
0.014086407609283924,
0.008935210295021534,
0.011810706928372383,
0.005318787414580584,
0.002948266454041004,
0.03965716063976288,
-0.011290295049548149,
0.038986802101135254,
-0.00744453864172101,
-0.0788203701376915,
-0.019758015871047974,
0.017896881327033043,
0.012013579718768597,
-0.0382811576128006,
0.07296353578567505,
0.027714146301150322,
0.04329122602939606,
0.014209895394742489,
0.028825534507632256,
0.031912725418806076,
-0.020922329276800156,
0.013336661271750927,
-0.06520145386457443,
-0.029601743444800377,
0.000049029815272660926,
-0.033288728445768356,
0.03081897832453251,
-0.00012955172860529274,
0.013945278711616993,
0.0015138257294893265,
-0.01615041494369507,
0.025791268795728683,
-0.02266879566013813,
0.01644149236381054,
-0.042232759296894073,
0.016009286046028137,
-0.06456637382507324,
-0.0037862181197851896,
-0.032547805458307266,
0.011863630264997482,
-0.008419208228588104,
0.016997186467051506,
-0.029125433415174484,
-0.02743188850581646,
0.043397072702646255,
-0.08093730360269547,
0.01805565133690834,
-0.02228069119155407,
0.02046366035938263,
0.022580590099096298,
0.06414298713207245,
0.06724782288074493,
-0.040009982883930206,
-0.017305904999375343,
-0.025932397693395615,
0.06498976051807404,
0.07063490897417068,
-0.033835604786872864,
-0.024327058345079422,
0.0045095025561749935,
0.010681677609682083,
-0.04145655408501625,
0.0029967795126140118,
-0.004723400808870792,
-0.030871901661157608,
-0.016600262373685837,
-0.03341221809387207,
-0.009279211051762104,
-0.008048745803534985,
0.016741391271352768,
-0.027908198535442352,
0.01850549876689911,
0.014677383936941624,
-0.011413782835006714,
0.015197795815765858,
0.034576527774333954,
-0.016653185710310936,
-0.02826102077960968,
0.0032239085994660854,
-0.03404729813337326,
-0.07522159069776535,
0.07056434452533722,
0.051935359835624695,
0.014368664473295212,
-0.055710550397634506,
0.06583653390407562,
-0.01523307804018259,
-0.04625492915511131,
0.029919281601905823,
0.021433919668197632,
-0.02085176482796669,
-0.0051908898167312145,
0.02580890990793705,
0.03261836990714073,
-0.021998435258865356,
0.005089453421533108,
-0.031718675047159195,
0.0021202380303293467,
0.017155956476926804,
-0.04921863228082657,
-0.018628986552357674,
-0.04950088635087013,
0.04353820160031319,
0.04770149663090706,
0.04780734330415726,
0.026902657002210617,
-0.010372959077358246,
0.050806328654289246,
-0.03434719517827034,
-0.024080082774162292,
-0.024415263906121254,
-0.038245875388383865,
-0.051829513162374496,
0.012004759162664413,
-0.012375221587717533,
0.05108858644962311,
-0.009870187379419804,
0.021116379648447037,
-0.025773627683520317,
-0.03658761456608772,
0.020234325900673866,
-0.00991429015994072,
0.027061427012085915,
-0.014933179132640362,
0.08474777638912201,
0.029619384557008743,
-0.022562948986887932,
-0.030642567202448845,
0.037363819777965546,
-0.03551150858402252,
-0.028790252283215523,
0.016256261616945267,
0.010875729843974113,
-0.014633281156420708,
0.004269143100827932,
0.044878922402858734,
0.025597216561436653,
0.01609749160706997,
-0.07973770797252655,
0.03032502718269825,
-0.011369680054485798,
0.014615640044212341,
-0.02104581519961357,
0.053558338433504105,
0.038739826530218124,
-0.08827599883079529,
-0.060861747711896896,
0.016653185710310936,
0.06287283450365067,
0.014844974502921104,
-0.023462645709514618,
0.030924824997782707,
0.05257043614983559,
-0.02595003880560398,
-0.03923377767205238,
0.0358114056289196,
-0.028843175619840622,
-0.0027277530170977116,
0.022457102313637733,
-0.02644398808479309,
0.04120957851409912,
-0.022421820089221,
0.0202696081250906,
0.040609780699014664,
-0.026655681431293488,
-0.029478255659341812,
-0.04470251128077507,
0.050030119717121124,
0.025650139898061752,
-0.021169302985072136,
0.002544726710766554,
-0.04583154246211052,
0.033200524747371674,
-0.006637458689510822,
-0.012816249392926693,
0.02429177612066269,
-0.02723783813416958,
0.03856341540813446,
-0.021451560780405998,
0.03669346123933792,
-0.03814002871513367,
-0.034170784056186676,
-0.0006444509490393102,
-0.024556392803788185,
-0.047913189977407455,
0.04156240075826645,
0.011202089488506317,
0.013169070705771446,
-0.03120708093047142,
0.02610880695283413,
0.03686986863613129,
-0.011722502298653126,
0.056945428252220154,
0.0323713943362236,
0.03443539887666702,
0.013266096822917461,
0.033288728445768356,
0.019158219918608665,
-0.035740841180086136,
0.006522791460156441,
0.045514002442359924,
0.019511042162775993,
0.009499724954366684,
-0.028472714126110077,
0.032459598034620285,
-0.03686986863613129,
-0.035987816751003265,
-0.03944546729326248,
-0.01829380728304386,
0.015762310475111008,
-0.0201637614518404,
0.017244162037968636,
-0.018187960609793663,
0.029213638976216316,
0.04170352965593338,
-0.07465707510709763,
-0.012692761607468128,
0.020446019247174263,
0.06678915023803711,
-0.0008721312042325735,
-0.0315069817006588,
0.02296869456768036,
0.03203621134161949,
-0.04611380025744438,
-0.05197064206004143,
0.07719739526510239,
-0.028666764497756958,
-0.027096709236502647,
-0.0014542870922014117,
0.0493597611784935,
-0.06297867745161057,
-0.05475793033838272,
-0.010734600946307182,
0.024715162813663483,
0.02729075960814953,
-0.01509194914251566,
-0.00929685216397047,
-0.02933712676167488,
0.014933179132640362,
-0.03891623765230179,
-0.037610795348882675,
0.016353286802768707,
-0.02972523123025894,
-0.0028402148745954037,
-0.023868389427661896,
0.041774094104766846,
-0.009976034052670002,
0.009843725711107254,
-0.017526419833302498,
0.016503235325217247,
0.044137999415397644,
0.0697881355881691,
-0.003858987707644701,
-0.024503469467163086,
0.03189508244395256,
0.06869439035654068,
-0.047031134366989136,
-0.06640104949474335,
-0.05761578679084778,
-0.0426914282143116,
0.01722652092576027,
0.05175894871354103,
0.03859869763255119,
-0.012066503055393696,
-0.042268041521310806,
-0.06001497432589531,
0.00650074053555727,
-0.029407691210508347,
0.0054951985366642475,
-0.021433919668197632,
-0.04057449847459793,
0.0053408388048410416,
-0.03718740865588188,
0.025685422122478485,
0.03106595389544964,
-0.027784710749983788,
0.08340705931186676,
-0.013477790169417858,
0.03743438422679901,
-0.04763093218207359,
-0.031189439818263054,
0.00628022663295269,
-0.0025733935181051493,
-0.037998899817466736,
0.03242431581020355,
0.015956362709403038,
-0.044137999415397644,
0.005318787414580584,
0.05278212949633598,
-0.07254014909267426,
0.006743305362761021,
0.029354767873883247,
0.05249987170100212,
0.03561735153198242,
0.02187494747340679,
0.06156739220023155,
0.007131409365683794,
-0.02977815456688404,
-0.013733585365116596,
0.04039808735251427,
0.004306630231440067,
-0.02639106474816799,
0.0162386205047369,
0.04039808735251427,
0.03750494867563248,
-0.045161180198192596,
0.07529215514659882,
0.024856289848685265,
-0.007409256417304277,
0.026849733665585518,
-0.0026152911596000195,
0.028931381180882454,
-0.058956511318683624,
0.037363819777965546,
0.026708604767918587,
0.06347262859344482,
0.029654666781425476,
-0.014262818731367588,
0.002449905965477228,
-0.07402199506759644,
-0.019458118826150894,
-0.023515567183494568,
-0.000026013711249106564,
-0.06319037079811096,
0.017058931291103363,
-0.03537037968635559,
-0.01486261561512947,
0.058462560176849365,
0.001911852741613984,
-0.016132773831486702,
-0.01418343372642994,
0.013548354618251324,
-0.0032327291555702686,
0.021822024136781693,
0.0042713480070233345,
0.0202696081250906,
0.07123470306396484,
-0.04184465855360031,
0.0202696081250906,
-0.01356599573045969,
0.0045602209866046906,
0.004961555358022451,
-0.006205251906067133,
0.023039259016513824,
0.011387321166694164,
0.0015502104070037603,
-0.03096010722219944,
-0.002134571550413966,
-0.024115364998579025,
-0.027008503675460815,
-0.05158253759145737,
0.05098273977637291,
0.002070622518658638,
0.01525953970849514,
-0.06340206414461136,
0.0719403475522995,
0.017791034653782845,
-0.02796112187206745,
0.05384059622883797,
0.027661222964525223,
-0.03371211513876915,
0.002767445519566536,
0.05765106901526451,
0.03438247740268707,
0.029760513454675674,
-0.03399437293410301,
-0.05578111484646797,
-0.01717359758913517,
-0.029954563826322556,
-0.06446053087711334,
-0.05599280819296837,
-0.010487625375390053,
0.024503469467163086,
0.014051125384867191,
0.001564543810673058,
0.0037751924246549606,
0.030642567202448845,
0.011034499853849411,
-0.012922096066176891,
-0.006937357131391764,
-0.003702423069626093,
-0.006985870189964771,
-0.005706891417503357,
0.020199043676257133,
0.027890557423233986,
0.014033484272658825,
-0.05175894871354103,
0.15368914604187012,
-0.02968994900584221,
-0.013548354618251324,
0.03440011665225029,
0.019810939207673073,
0.00706525519490242,
-0.014765589497983456,
0.02679681032896042,
0.029213638976216316,
-0.0041809375397861,
-0.0427972748875618,
-0.010963935405015945,
-0.006249354686588049,
0.025879474356770515,
-0.029513537883758545,
-0.003984680399298668,
0.04999483749270439,
-0.04297368600964546,
-0.05031237751245499,
-0.018717192113399506,
-0.01722652092576027,
-0.01359245739877224,
-0.03448832407593727,
-0.00389426969923079,
-0.063225656747818,
-0.002082750666886568,
-0.045125897973775864,
0.060579489916563034,
0.013989381492137909,
0.026955580338835716,
-0.03958659619092941,
-0.015365386381745338,
-0.0033914989326149225,
0.061214569956064224,
0.03842228651046753,
0.015153693035244942,
-0.031048312783241272,
0.0007045408710837364,
0.027608299627900124,
-0.04600795358419418,
-0.05059463530778885,
-0.015241898596286774,
-0.010708139277994633,
-0.00903223641216755,
-0.03390616923570633,
0.011316756717860699,
0.030589643865823746,
0.023233311250805855,
-0.03955131396651268,
-0.0174205731600523,
-0.012119426392018795,
0.004449964035302401,
0.036975715309381485,
-0.04780734330415726,
-0.10655216127634048,
0.004176527261734009,
0.0036208329256623983,
-0.009120441973209381,
0.06350790709257126,
-0.07176394015550613,
0.0037178590428084135,
0.06865910440683365,
0.038245875388383865,
-0.01988150365650654,
0.04336179047822952,
-0.009332134388387203,
0.0968848466873169,
0.024397622793912888,
0.0032569854520261288,
0.06001497432589531,
-0.002890933072194457,
0.0028512405697256327,
-0.003823705483227968,
0.025085624307394028,
0.00006336320075206459,
0.048901092261075974,
-0.029672307893633842,
0.05271156504750252,
0.05955630913376808,
0.02737896516919136,
0.037363819777965546,
0.07402199506759644,
0.03037795051932335,
0.024838648736476898,
-0.016168056055903435,
0.007153460290282965,
0.03404729813337326,
0.006694792304188013,
0.04519646242260933,
0.03037795051932335,
0.05599280819296837,
-0.02046366035938263,
-0.05976799875497818,
0.0697881355881691,
-0.06735366582870483,
-0.046537186950445175,
-0.015621181577444077,
-0.03249488025903702,
-0.03194800764322281,
-0.013283737935125828,
-0.00020259685697965324,
0.044279128313064575,
-0.02550901100039482,
0.04650190472602844,
0.03018389828503132,
0.033147599548101425,
-0.033976733684539795,
-0.006628638133406639,
0.06530730426311493,
-0.016503235325217247,
0.02845507301390171,
0.036728743463754654,
0.02624993585050106,
0.028278661891818047,
-0.0158064141869545,
0.020428378134965897,
-0.05257043614983559,
-0.014809692278504372,
-0.04932447895407677,
0.04480835795402527,
0.0017034674528986216,
-0.005543711595237255,
0.03448832407593727,
0.029654666781425476,
0.010875729843974113,
0.05722768232226372,
0.03143641725182533,
0.06841213256120682,
-0.005305556580424309,
-0.07684457302093506,
0.03155990317463875,
-0.014439228922128677,
-0.055428292602300644,
-0.019511042162775993,
-0.027061427012085915,
-0.06640104949474335,
0.07670344412326813,
0.0007547077257186174,
0.04142127186059952,
-0.002185289515182376,
-0.020569507032632828,
0.0472075454890728,
-0.05511075258255005,
-0.0026704194024205208,
0.022827565670013428,
0.01275450550019741,
-0.003488524816930294,
-0.05539301037788391,
-0.021416278555989265,
-0.040433369576931,
0.03538801893591881,
0.016326826065778732,
0.003208472626283765,
-0.010813985951244831,
-0.01825852505862713,
0.06855326145887375,
-0.015047846361994743,
0.012287016957998276,
-0.04861883446574211,
-0.020622430369257927,
-0.04029224067926407,
-0.004564631264656782,
0.03330637142062187,
-0.044878922402858734,
0.07275184243917465,
-0.008419208228588104,
-0.0020540840923786163,
0.05045350641012192,
-0.040609780699014664,
-0.01486261561512947,
0.05472264811396599,
-0.04329122602939606,
-0.01430692058056593,
-0.045514002442359924,
-0.027343682944774628,
-0.005570172797888517,
-0.026673322543501854,
-0.07338692247867584,
0.03814002871513367,
-0.0015932106180116534,
-0.019511042162775993,
-0.007590077351778746,
-0.03884567320346832,
-0.012869172729551792,
-0.02905486896634102,
-0.012198811396956444,
-0.03166574984788895,
0.05761578679084778,
0.044631946831941605,
-0.020446019247174263,
0.03475293889641762,
0.02536788210272789,
-0.04787790775299072,
-0.027149632573127747,
0.0717286542057991,
-0.07740908861160278,
-0.006046482361853123,
-0.04371461272239685,
0.01199593860656023,
-0.02713199146091938,
0.014024663716554642,
0.024556392803788185,
-0.013274917379021645,
-0.03983357176184654,
0.033588629215955734,
-0.012904454953968525,
0.00560545502230525,
-0.044526100158691406,
-0.12885048985481262,
0.030042769387364388,
-0.05793332681059837,
-0.01933463104069233,
-0.0013330045621842146,
0.031330570578575134,
-0.020622430369257927,
0.002915189601480961,
0.03071313165128231,
0.01501256413757801,
0.01717359758913517,
0.04872468113899231,
0.031224722042679787,
0.010567010380327702,
0.00817223358899355,
0.030748413875699043,
-0.011669578962028027,
0.003878833958879113,
0.019563965499401093,
0.0035877558402717113,
0.06005025655031204,
-0.006090585142374039,
0.008582388050854206,
-0.036728743463754654,
0.05126499757170677,
0.06784761697053909,
-0.015330104157328606,
-0.057686351239681244,
-0.04008054733276367,
-0.007435718085616827,
-0.043150097131729126,
0.016520876437425613,
-0.01845257543027401,
-0.07994940131902695,
0.032018572092056274,
-0.051053304225206375,
-0.0015590309631079435,
-0.06767120957374573,
-0.021275149658322334,
-0.04636077582836151,
-0.012869172729551792,
0.021857306361198425,
0.047313392162323,
-0.003770782146602869,
-0.037469666451215744,
0.01275450550019741,
-0.037116844207048416,
-0.050559353083372116,
0.04833657667040825,
-0.0047983755357563496,
0.00299236923456192,
-0.007594487629830837,
0.0018986219074577093,
0.051547255367040634,
-0.02718491479754448,
-0.011854809708893299,
-0.046678315848112106,
-0.01275450550019741,
0.008992543444037437,
0.00506740203127265,
0.06297867745161057,
-0.005411403253674507,
-0.006266995798796415,
0.006760946474969387,
-0.06576596945524216,
0.024027159437537193,
-0.02781999297440052,
-0.061461545526981354,
-0.01278096716850996,
0.017491137608885765,
-0.04406743496656418,
-0.015435950830578804,
0.009781982749700546,
-0.09046348929405212,
0.023956594988703728,
0.007307820022106171,
-0.04886581003665924,
-0.022880489006638527,
0.010778703726828098,
0.012922096066176891,
-0.012260555289685726,
-0.022986335679888725,
-0.02473280392587185,
0.05302910506725311,
-0.038633979856967926,
-0.04357348382472992,
-0.018770115450024605,
-0.14042304456233978,
-0.060085538774728775,
-0.024644598364830017,
-0.01353953406214714,
0.048654116690158844,
-0.021451560780405998,
0.019652171060442924,
0.030801337212324142,
-0.0026924707926809788,
-0.02390367165207863,
0.026285218074917793,
0.011810706928372383,
0.02639106474816799,
-0.006112636532634497,
-0.024891572073101997,
-0.002912984462454915,
-0.031330570578575134,
0.03990413621068001,
0.007889975793659687,
0.01548005361109972,
-0.007770898751914501,
-0.01875247433781624,
-0.0024851879570633173,
0.01761462539434433,
-0.018628986552357674,
-0.0005639634910039604,
-0.03556443005800247,
0.007563615683466196,
0.005795096978545189,
-0.026285218074917793,
0.04593738913536072,
-0.044631946831941605,
-0.041527118533849716,
-0.08848769217729568,
0.0089528514072299,
-0.01800272800028324,
0.005958276800811291,
0.024362340569496155,
0.03856341540813446,
0.03718740865588188,
0.04583154246211052
]
|
30,086 | networkx.classes.digraph | has_successor | Returns True if node u has successor v.
This is true if graph has the edge u->v.
| def has_successor(self, u, v):
"""Returns True if node u has successor v.
This is true if graph has the edge u->v.
"""
return u in self._succ and v in self._succ[u]
| (self, u, v) | [
-0.03960186988115311,
-0.013362044468522072,
-0.04082149267196655,
0.06951849907636642,
-0.025091946125030518,
0.010492343455553055,
-0.04243570193648338,
0.05520587041974068,
0.027728483080863953,
0.02649092487990856,
-0.016348326578736305,
-0.021630369126796722,
0.06632596254348755,
0.00675276480615139,
-0.010519246570765972,
-0.015290124341845512,
0.013550368137657642,
0.007568835746496916,
-0.013200623914599419,
0.0072818659245967865,
-0.04473146051168442,
0.003820289159193635,
0.03501034900546074,
0.03542286902666092,
-0.030956897884607315,
0.01953190192580223,
-0.008896072395145893,
0.006766216363757849,
-0.021092301234602928,
0.00014502638077829033,
-0.02050042524933815,
-0.018688926473259926,
0.02473323419690132,
-0.02984488755464554,
0.13423025608062744,
0.10689635574817657,
-0.01006188802421093,
0.028141003102064133,
-0.030651992186903954,
-0.02304728515446186,
-0.03083134815096855,
-0.010088792070746422,
-0.06080178543925285,
0.02701105922460556,
0.06564440578222275,
0.03538699820637703,
0.027405641973018646,
0.07898851484060287,
0.005008524749428034,
0.0013653498608618975,
0.028445908799767494,
-0.012581844814121723,
-0.008564263582229614,
-0.017478272318840027,
-0.07109683752059937,
0.009308592416346073,
0.011093187145888805,
0.045054301619529724,
0.00010291968646924943,
0.03935077041387558,
0.0499686636030674,
0.017272012308239937,
0.016357295215129852,
0.008604618720710278,
0.04526953026652336,
0.00035366820520721376,
0.0075419326312839985,
-0.08358003944158554,
-0.0037664822302758694,
0.04437274858355522,
-0.02880462259054184,
0.04537714272737503,
0.011191832832992077,
-0.006806571502238512,
-0.028445908799767494,
-0.007340156473219395,
0.022347794845700264,
0.026347439736127853,
-0.001361986855044961,
-0.013119913637638092,
-0.009622465819120407,
-0.09864596277475357,
0.007062154356390238,
-0.05316120758652687,
-0.0368756540119648,
0.016931233927607536,
-0.00014600723807234317,
-0.04989692196249962,
-0.05577981099486351,
0.03642726317048073,
-0.060730043798685074,
-0.0016422311309725046,
-0.0012622199719771743,
0.012554940767586231,
0.022867927327752113,
0.06883694976568222,
0.030167730525135994,
-0.044085778295993805,
-0.02401580847799778,
-0.036983270198106766,
0.03820289298892021,
0.08171472698450089,
-0.04114433377981186,
-0.0196395143866539,
0.027262156829237938,
0.017558982595801353,
-0.036642491817474365,
0.004353874363005161,
-0.004060178063809872,
-0.03438260406255722,
-0.04333248361945152,
-0.011173897422850132,
0.029468240216374397,
-0.019908549264073372,
0.012142421677708626,
-0.036606620997190475,
0.006219179835170507,
0.000882208812981844,
-0.03531525656580925,
0.013792499899864197,
0.04971756786108017,
-0.0049322983250021935,
0.0006036460399627686,
0.013765595853328705,
0.018384020775556564,
-0.05997674539685249,
0.0585777685046196,
0.06464000791311264,
0.023818517103791237,
-0.028679072856903076,
0.03090308979153633,
-0.011146994307637215,
0.001624295487999916,
0.04082149267196655,
0.02625776268541813,
-0.0001231673377333209,
-0.03176400065422058,
0.00963143352419138,
-0.010788281448185444,
0.004847104195505381,
-0.0004646449233405292,
-0.05212094262242317,
0.0033001559786498547,
0.028123067691922188,
0.02469736337661743,
-0.007712320890277624,
-0.05664071813225746,
0.042256344109773636,
0.014330568723380566,
0.018455762416124344,
0.03902792930603027,
-0.020105840638279915,
0.07554487138986588,
0.012052743695676327,
-0.05739401653409004,
-0.034400537610054016,
0.015155606903135777,
-0.04476733133196831,
-0.010734474286437035,
-0.018025308847427368,
0.06094527244567871,
0.011882354505360126,
0.0059591131284832954,
0.027136608958244324,
-0.03510002791881561,
0.02715454436838627,
-0.018545441329479218,
0.04871316999197006,
-0.005008524749428034,
0.02401580847799778,
0.0008323253132402897,
0.0001349375961581245,
-0.03544080629944801,
0.07213710248470306,
-0.048462070524692535,
-0.04896426945924759,
-0.0005403108661994338,
0.006268502678722143,
0.013586239889264107,
-0.033414077013731,
0.011129057966172695,
0.021827662363648415,
0.01771143451333046,
-0.07776889204978943,
0.018491635099053383,
0.01598961465060711,
0.008295228704810143,
-0.0011512432247400284,
0.04024755209684372,
0.012169324792921543,
-0.06973373144865036,
-0.045054301619529724,
0.029504111036658287,
0.05832666903734207,
0.05039912089705467,
-0.0482468456029892,
0.01685052365064621,
0.04455210641026497,
-0.019621578976511955,
-0.03662455826997757,
0.019908549264073372,
-0.052730754017829895,
0.0039884354919195175,
0.04035516828298569,
0.0009741288959048688,
0.007393963634967804,
-0.004544440191239119,
0.04451623186469078,
0.07489918917417526,
-0.021181978285312653,
-0.016904331743717194,
-0.011003509163856506,
-0.004631876479834318,
0.05172635614871979,
-0.04017581045627594,
-0.04620218276977539,
-0.011424995958805084,
0.02284999191761017,
-0.015828194096684456,
-0.014635474421083927,
0.013729725033044815,
-0.031154189258813858,
0.0802798792719841,
-0.04039103910326958,
0.01922699622809887,
-0.03457989543676376,
-0.03691152483224869,
-0.0018731523305177689,
0.0021074365358799696,
-0.04534127190709114,
0.018599247559905052,
0.008456649258732796,
0.010851056315004826,
-0.0265267975628376,
-0.021074365824460983,
-0.00642543938010931,
-0.015595030039548874,
0.034884799271821976,
0.0341135673224926,
0.04207698628306389,
0.00016212128684855998,
-0.024338649585843086,
-0.012626683339476585,
-0.013657982461154461,
-0.003331543179228902,
0.004950233735144138,
0.011568481102585793,
0.00816519558429718,
0.0013731967192143202,
0.05509825423359871,
-0.045018430799245834,
-0.05355579033493996,
-0.04157479107379913,
-0.025683822110295296,
0.008434230461716652,
-0.039673615247011185,
-0.017352722585201263,
-0.012043775990605354,
0.0647834986448288,
0.012599780224263668,
-0.02428484335541725,
0.028750814497470856,
0.010393697768449783,
0.08185821771621704,
-0.03018566593527794,
-0.056282006204128265,
0.032714590430259705,
0.019693322479724884,
-0.011478803120553493,
-0.07009243965148926,
0.06768906861543655,
-0.01671600714325905,
-0.0613398551940918,
-0.021648304536938667,
0.005250655580312014,
-0.03022153675556183,
-0.0026881026569753885,
-0.02363916113972664,
0.021989082917571068,
0.008389391005039215,
-0.01528115663677454,
-0.0030423311982303858,
-0.03214064985513687,
0.000980854732915759,
-0.04121607914566994,
0.012178292497992516,
0.030705798417329788,
0.011209769174456596,
0.01609722711145878,
-0.033718984574079514,
0.044839076697826385,
-0.024715298786759377,
-0.0066316993907094,
0.017442399635910988,
0.03056231327354908,
0.0461663119494915,
0.025934921577572823,
0.020554231479763985,
-0.020069969817996025,
0.008994718082249165,
0.044444490224123,
-0.05405798926949501,
-0.08157124370336533,
-0.08594753593206406,
0.005748369265347719,
0.003977226093411446,
0.04900014027953148,
0.029019849374890327,
0.0032956721261143684,
-0.0008850112208165228,
-0.04042690992355347,
-0.0201596487313509,
0.0035400448832660913,
0.012025839649140835,
0.012321777641773224,
-0.05061434954404831,
-0.028930170461535454,
-0.07055877149105072,
0.02735183574259281,
0.03520764037966728,
-0.04566411301493645,
0.040606267750263214,
0.007223574910312891,
0.01640213280916214,
-0.03090308979153633,
-0.05402211844921112,
0.011631255969405174,
0.008568746969103813,
-0.04082149267196655,
0.041503049433231354,
-0.006842442788183689,
-0.08472791314125061,
0.039673615247011185,
0.04013993963599205,
-0.08429746329784393,
0.010590989142656326,
0.05212094262242317,
0.0647834986448288,
0.05355579033493996,
0.03224826231598854,
0.041538920253515244,
0.05344817787408829,
-0.035404935479164124,
-0.021630369126796722,
0.05502651259303093,
0.00868084467947483,
-0.0651063397526741,
0.012967460788786411,
0.036678362637758255,
-0.004037758801132441,
-0.05739401653409004,
0.0671868696808815,
-0.0015245286049321294,
-0.015119736082851887,
0.034454345703125,
0.056210264563560486,
0.08078207820653915,
-0.03174606338143349,
0.01956777274608612,
0.011138026602566242,
0.06033546105027199,
0.02966553159058094,
-0.0048291683197021484,
-0.012841911055147648,
-0.0351358987390995,
0.01095866970717907,
-0.04074975103139877,
0.011290479451417923,
-0.017280979081988335,
-0.0015391012420877814,
0.004766393452882767,
-0.001894450862891972,
0.07626229524612427,
0.011989968828856945,
0.009855628944933414,
0.03266078233718872,
0.009810789488255978,
-0.020105840638279915,
-0.00966730434447527,
-0.07389479875564575,
0.023334255442023277,
0.05269487947225571,
-0.027405641973018646,
0.01685052365064621,
0.017657628282904625,
0.022347794845700264,
0.015568126924335957,
0.0005209739902056754,
-0.035261448472738266,
0.01606135629117489,
-0.021558627486228943,
-0.037844181060791016,
-0.008927459828555584,
-0.0354946106672287,
-0.04114433377981186,
-0.02828448824584484,
0.05936693400144577,
-0.015361866913735867,
0.0022789458744227886,
-0.059940874576568604,
0.06403020024299622,
0.01778317801654339,
-0.040498651564121246,
0.02177385427057743,
0.008577714674174786,
-0.037844181060791016,
-0.014276761561632156,
0.006999379489570856,
0.014222954399883747,
-0.00695005664601922,
-0.027746420353651047,
-0.04774464666843414,
-0.032266199588775635,
-0.016859492287039757,
-0.05879299342632294,
-0.04638154059648514,
-0.041323691606521606,
0.036534879356622696,
0.04107259213924408,
-0.016025485470891,
-0.004963685758411884,
0.041395433247089386,
0.0032059939112514257,
0.026311568915843964,
-0.003629723098129034,
-0.04437274858355522,
-0.0010301776928827167,
-0.004501843359321356,
0.0049188463017344475,
0.01967538520693779,
-0.00038645678432658315,
-0.07504267245531082,
0.13136056065559387,
-0.03126180171966553,
-0.010707571171224117,
-0.007864774204790592,
-0.000828962423838675,
-0.020482489839196205,
0.00820106640458107,
0.04293789714574814,
-0.0005142481531947851,
0.033270593732595444,
-0.05943867936730385,
-0.025916986167430878,
0.023692967370152473,
0.006613763514906168,
-0.036642491817474365,
-0.030293278396129608,
0.056999433785676956,
-0.001846248866058886,
-0.07253168523311615,
-0.006779667921364307,
-0.042220473289489746,
-0.01281500793993473,
-0.009044041857123375,
0.012070679105818272,
-0.07769715040922165,
-0.029091591015458107,
-0.0020738071762025356,
0.04257918521761894,
0.01608826033771038,
0.01245629508048296,
-0.0265267975628376,
0.026993123814463615,
-0.037055011838674545,
0.004663263913244009,
0.06037133187055588,
0.00812932476401329,
0.0068648625165224075,
-0.0060846623964607716,
0.017926661297678947,
-0.05233616754412651,
-0.05502651259303093,
-0.021199915558099747,
0.002759844996035099,
-0.020787395536899567,
-0.0306699275970459,
0.020374875515699387,
0.016868460923433304,
0.0036812881007790565,
-0.06291819363832474,
0.039781227707862854,
-0.015164575539529324,
-0.0006473641260527074,
0.02783609740436077,
-0.03397008404135704,
-0.049251239746809006,
-0.026724088937044144,
0.018688926473259926,
-0.011344285681843758,
0.07791237533092499,
-0.11729902029037476,
-0.027064865455031395,
0.06951849907636642,
0.024141358211636543,
-0.02749532088637352,
0.025056075304746628,
-0.018940025940537453,
0.032266199588775635,
0.0027867485769093037,
0.009317560121417046,
0.0682271346449852,
-0.01492244377732277,
-0.001075016800314188,
0.02311902679502964,
0.009595561772584915,
0.02656266838312149,
0.019352544099092484,
-0.034095633774995804,
0.038023535162210464,
0.04882078617811203,
0.01410637330263853,
0.02797958254814148,
0.07249581813812256,
0.023836452513933182,
0.013577272184193134,
-0.015164575539529324,
-0.029019849374890327,
0.027925776317715645,
0.0024056164547801018,
0.035745710134506226,
0.005497270729392767,
0.0620214082300663,
0.04422926530241966,
-0.08192995935678482,
0.06668467074632645,
-0.05129590258002281,
-0.02039281092584133,
-0.037915922701358795,
-0.038776833564043045,
-0.05326882004737854,
-0.015702644363045692,
-0.02611427754163742,
0.036570750176906586,
-0.03517176955938339,
0.04437274858355522,
0.042363956570625305,
0.02132546342909336,
-0.03752133622765541,
-0.0033360272645950317,
0.04085736349225044,
-0.022096695378422737,
0.010743441991508007,
0.02473323419690132,
0.019836807623505592,
0.039817098528146744,
0.011451900005340576,
-0.050183892250061035,
0.004230566788464785,
-0.0024773587938398123,
-0.04358357936143875,
0.040606267750263214,
0.006855894345790148,
0.015146639198064804,
0.0361761674284935,
0.041538920253515244,
0.00546139944344759,
0.06094527244567871,
0.015200446359813213,
0.04286615550518036,
-0.014518892392516136,
-0.08078207820653915,
0.024141358211636543,
-0.014563731849193573,
-0.05760924518108368,
-0.018106019124388695,
0.004347148351371288,
-0.06887281686067581,
0.11306621134281158,
0.03913554549217224,
0.03172812983393669,
0.0015065929619595408,
-0.027262156829237938,
-0.017406528815627098,
-0.043296609073877335,
-0.00202000024728477,
0.014052566140890121,
0.006178824696689844,
0.00125325215049088,
-0.05337643623352051,
-0.04128782078623772,
-0.003331543179228902,
0.04878491535782814,
0.02869700826704502,
0.015361866913735867,
0.013003331609070301,
-0.05301772058010101,
0.05319707840681076,
-0.035333190113306046,
0.05165461450815201,
-0.03382659703493118,
-0.006165372673422098,
-0.034095633774995804,
-0.03332440182566643,
0.025343045592308044,
-0.05050673335790634,
0.05864951014518738,
0.011783708818256855,
0.03461576625704765,
0.04534127190709114,
-0.020895009860396385,
-0.01116492971777916,
0.03260697424411774,
-0.046847864985466,
-0.022527150809764862,
-0.009748014621436596,
-0.013012299314141273,
0.023477740585803986,
-0.018384020775556564,
-0.022060824558138847,
0.046776123344898224,
0.009200978092849255,
0.003970500081777573,
0.012859846465289593,
-0.038848575204610825,
0.005564528983086348,
-0.031441159546375275,
0.003376382403075695,
-0.07489918917417526,
0.06464000791311264,
0.033306464552879333,
-0.008241421543061733,
0.011362222023308277,
0.010070856660604477,
-0.059044092893600464,
-0.032266199588775635,
0.07798411697149277,
-0.02521749585866928,
-0.010357826016843319,
-0.030311213806271553,
-0.03691152483224869,
-0.03856160491704941,
-0.012115517631173134,
0.022007018327713013,
-0.02970140241086483,
-0.056999433785676956,
0.010169502347707748,
0.012115517631173134,
0.028069261461496353,
-0.009882532060146332,
-0.12031220644712448,
0.04369119554758072,
-0.028069261461496353,
-0.03022153675556183,
0.010088792070746422,
0.051188286393880844,
-0.014778959564864635,
0.025414787232875824,
-0.007806483190506697,
0.0019123865058645606,
0.02042868174612522,
0.09297830611467361,
0.01808808371424675,
-0.008833297528326511,
0.05664071813225746,
0.011416028253734112,
0.04089323803782463,
0.009070944972336292,
0.015577094629406929,
0.02177385427057743,
0.04046278074383736,
-0.04125194996595383,
0.026006663218140602,
-0.04516191780567169,
0.02794371172785759,
0.06116049736738205,
-0.003692497732117772,
-0.016079291701316833,
-0.053663406521081924,
-0.023854387924075127,
-0.01688639633357525,
0.007290833629667759,
-0.021684177219867706,
-0.0513317734003067,
0.01974712871015072,
-0.04451623186469078,
0.002768812933936715,
-0.011909258551895618,
-0.0292888842523098,
-0.046847864985466,
0.023585353046655655,
0.02215050347149372,
0.015666773542761803,
-0.024105487391352654,
-0.03303743153810501,
0.0003060266899410635,
-0.031333547085523605,
-0.03093896247446537,
0.05732227489352226,
-0.04953821003437042,
-0.016653232276439667,
-0.05653310567140579,
-0.021002622321248055,
0.07913199812173843,
-0.026383312419056892,
0.02701105922460556,
-0.041323691606521606,
0.023585353046655655,
0.00017669398221187294,
0.011120090261101723,
0.06313341856002808,
-0.030687863007187843,
0.011882354505360126,
0.019101446494460106,
-0.05086544528603554,
0.008900556713342667,
-0.013344109058380127,
-0.05473954230546951,
0.030382957309484482,
0.017316849902272224,
-0.03945838660001755,
0.006640667095780373,
-0.018473699688911438,
-0.04390642046928406,
-0.008313164114952087,
-0.02570175752043724,
-0.05588742345571518,
-0.013855273835361004,
0.012895718216896057,
-0.02195321023464203,
-0.03129767253994942,
-0.042256344109773636,
0.008039645850658417,
0.023854387924075127,
-0.006640667095780373,
-0.03931489959359169,
0.020787395536899567,
-0.09089777618646622,
-0.027441514655947685,
-0.018993832170963287,
-0.027172479778528214,
0.04085736349225044,
-0.04354770854115486,
0.016079291701316833,
-0.00005464762216433883,
0.018993832170963287,
-0.010375762358307838,
0.03827463462948799,
-0.02301141247153282,
0.0634203851222992,
0.025091946125030518,
-0.010133630596101284,
0.057896215468645096,
-0.05391450226306915,
-0.007932032458484173,
-0.015774386003613472,
-0.004235050641000271,
-0.003791143884882331,
-0.02371090278029442,
-0.007537448313087225,
0.03683978319168091,
-0.002378712873905897,
0.028141003102064133,
0.0006053274846635759,
0.04021168127655983,
0.015164575539529324,
-0.01994442008435726,
0.05054260417819023,
-0.04537714272737503,
-0.025647951290011406,
-0.06460414081811905,
0.010106727480888367,
-0.0037530306726694107,
0.004394229501485825,
-0.003080444410443306,
0.0551341250538826,
0.0036745620891451836,
0.0582190565764904
]
|
30,087 | networkx.classes.digraph | is_directed | Returns True if graph is directed, False otherwise. | def is_directed(self):
"""Returns True if graph is directed, False otherwise."""
return True
| (self) | [
0.02049008384346962,
0.018706846982240677,
0.030109276995062828,
0.023439284414052963,
-0.002167962258681655,
0.0021947536151856184,
-0.06176174059510231,
0.021175943315029144,
0.05980703979730606,
0.01012501586228609,
-0.018295329064130783,
-0.03755086287856102,
0.04008854925632477,
0.03960844501852989,
0.006425655912607908,
-0.011128087528049946,
-0.03389865532517433,
0.056789252907037735,
0.00760876527056098,
0.023782214149832726,
-0.05497172102332115,
0.002235476626083255,
0.04331209138035774,
-0.030332181602716446,
-0.0035771913826465607,
0.039436981081962585,
0.0010325416224077344,
-0.0008160668658092618,
-0.022136148065328598,
0.07469021528959274,
-0.08086295425891876,
-0.04331209138035774,
0.024056557565927505,
0.04242047294974327,
0.049107614904642105,
0.05555470287799835,
-0.03833960369229317,
0.0689975693821907,
-0.1283245086669922,
-0.024690980091691017,
-0.05600051209330559,
0.021398847922682762,
-0.010433653369545937,
0.0324583500623703,
-0.00567978248000145,
-0.015286116860806942,
-0.0018636116292327642,
0.001717866281978786,
-0.048798978328704834,
-0.0528455525636673,
0.032561227679252625,
-0.014025848358869553,
0.020953038707375526,
0.07613051682710648,
-0.028686117380857468,
0.010605118237435818,
0.017446577548980713,
0.04231759533286095,
-0.01168534904718399,
0.023250672966241837,
0.015577607788145542,
-0.0034400192089378834,
0.026079846546053886,
-0.05171388387680054,
-0.018723992630839348,
0.013862956315279007,
-0.06903186440467834,
0.008333205245435238,
0.00234478572383523,
0.05716647580265999,
-0.03707076236605644,
0.03266410902142525,
0.006442802492529154,
0.0540115162730217,
0.02618272602558136,
-0.028548944741487503,
0.019015483558177948,
0.020575815811753273,
-0.005019641947001219,
-0.04019142687320709,
-0.0213474091142416,
-0.020009981468319893,
0.00826461985707283,
-0.01211401168256998,
-0.002100447891280055,
-0.02704005129635334,
-0.0092591168358922,
0.017746642231941223,
-0.009919257834553719,
-0.03693358972668648,
-0.013057069852948189,
-0.008114587515592575,
0.009602047502994537,
0.023713627830147743,
-0.03755086287856102,
0.04924478754401207,
0.01522610429674387,
-0.0694090873003006,
0.027177223935723305,
-0.04194037243723869,
-0.025788355618715286,
0.03720793500542641,
-0.025668330490589142,
0.013262827880680561,
-0.026525655761361122,
-0.07770799845457077,
-0.05322277918457985,
-0.021553168073296547,
-0.030366474762558937,
-0.03352143242955208,
-0.07921689003705978,
0.004327351227402687,
0.059018298983573914,
0.036865003407001495,
0.020712988451123238,
-0.043140627443790436,
0.02422802336513996,
-0.02902904711663723,
-0.035116057842969894,
0.0058341012336313725,
-0.01653781160712242,
0.04410083219408989,
-0.010948048904538155,
-0.03422443941235542,
0.0676601454615593,
0.006910044699907303,
0.024073705077171326,
-0.006725719664245844,
-0.012962764129042625,
0.0007485524984076619,
0.03566474840044975,
0.009181957691907883,
-0.02364504151046276,
0.07482738792896271,
0.014600256457924843,
0.007248688489198685,
-0.00981637928634882,
0.0117968013510108,
0.013099935837090015,
0.0610072948038578,
-0.017712349072098732,
-0.02107306569814682,
0.04705003276467323,
0.021210236474871635,
-0.03556186705827713,
0.03360716626048088,
-0.06656276434659958,
-0.011196672916412354,
-0.024090850725769997,
-0.021227383986115456,
0.08223468065261841,
-0.024948177859187126,
0.0009478806750848889,
-0.009061932563781738,
-0.05229686573147774,
0.0052125402726233006,
-0.06285911798477173,
-0.01395726203918457,
0.03209827467799187,
0.013580038212239742,
-0.0637507364153862,
-0.044203709810972214,
0.01567191258072853,
0.024365196004509926,
-0.014163020066916943,
-0.028308894485235214,
0.034550223499536514,
-0.03194395452737808,
-0.03905975818634033,
0.04639846459031105,
-0.01760946959257126,
-0.026611389592289925,
-0.07578758895397186,
0.0013770794030278921,
0.011290978640317917,
0.023816507309675217,
0.05236545205116272,
0.0846351906657219,
0.0033264236990362406,
0.02050722949206829,
0.02817172184586525,
-0.05174817889928818,
-0.040019962936639786,
-0.013682917691767216,
0.061590276658535004,
0.006339923478662968,
0.009490595199167728,
-0.005851247813552618,
0.036899298429489136,
0.04351785033941269,
-0.000737300084438175,
0.009053358808159828,
0.0037186502013355494,
0.00897619966417551,
0.026697121560573578,
-0.08950480073690414,
0.018089571967720985,
0.0027755917981266975,
-0.034567371010780334,
0.06313346326351166,
0.06388790905475616,
-0.022701984271407127,
0.0018914747051894665,
0.019169801846146584,
0.004402367398142815,
0.07462162524461746,
-0.03424158692359924,
-0.006185604725033045,
0.010639411397278309,
-0.026697121560573578,
-0.05805809423327446,
-0.06203608587384224,
0.05006781965494156,
0.02902904711663723,
0.002550543984398246,
-0.039436981081962585,
-0.023182086646556854,
0.02530825324356556,
-0.04434088245034218,
0.022153295576572418,
0.05291413888335228,
-0.019838515669107437,
0.01255124807357788,
-0.018981190398335457,
0.001681429916061461,
-0.028000256046652794,
-0.0009296625503338873,
-0.04032859951257706,
-0.02793166972696781,
-0.07030070573091507,
0.03809955343604088,
-0.014300191774964333,
0.02647421695291996,
0.03929980844259262,
0.039128344506025314,
-0.022341907024383545,
0.011385285295546055,
0.024279462173581123,
-0.037139348685741425,
0.013820089399814606,
-0.044786691665649414,
-0.030812283977866173,
-0.0071843890473246574,
-0.018329622223973274,
0.015491874888539314,
0.01193397305905819,
0.021553168073296547,
0.005881254095584154,
0.00032122922129929066,
-0.03607626259326935,
-0.0528455525636673,
-0.0783938616514206,
-0.032029688358306885,
-0.02160460688173771,
0.00461669871583581,
-0.040294308215379715,
-0.05641203001141548,
-0.000726047670468688,
0.03388151153922081,
0.015749072656035423,
-0.033401407301425934,
0.03269840031862259,
-0.05291413888335228,
0.09855815768241882,
0.022667691111564636,
-0.00576551491394639,
-0.007955982349812984,
0.02957773581147194,
-0.009490595199167728,
-0.02556545101106167,
0.10233039408922195,
-0.0010914826998487115,
-0.004387364257127047,
0.004035860765725374,
0.004020857624709606,
-0.023507870733737946,
-0.011565322987735271,
0.02649136260151863,
-0.034550223499536514,
-0.01739513874053955,
-0.028686117380857468,
-0.011308125220239162,
-0.0477701872587204,
-0.0043144915252923965,
-0.0664941817522049,
-0.007218682207167149,
-0.006125591695308685,
0.005735508631914854,
-0.016143443062901497,
-0.0029599168337881565,
0.05236545205116272,
0.016657838597893715,
0.03331567719578743,
0.02988637238740921,
0.023679334670305252,
0.005242546554654837,
0.03792808949947357,
-0.028548944741487503,
0.020678695291280746,
0.019529879093170166,
0.04221471771597862,
-0.04019142687320709,
0.023096352815628052,
0.003892258508130908,
-0.011453870683908463,
0.0026877159252762794,
-0.008787588216364384,
0.011925400234758854,
0.03693358972668648,
-0.0005318098119460046,
-0.05624056234955788,
0.021861804649233818,
-0.014986053109169006,
0.06145310401916504,
0.008363211527466774,
-0.011436724103987217,
-0.03436161205172539,
-0.03319564834237099,
0.02162175253033638,
0.09499168395996094,
-0.06803736835718155,
0.08141164481639862,
-0.05970415845513344,
-0.001857181778177619,
-0.06807165592908859,
0.03134382516145706,
0.06052719056606293,
0.02138170227408409,
0.04495815932750702,
0.0744844526052475,
0.03981420397758484,
-0.0015056781703606248,
0.044546641409397125,
-0.0028484645299613476,
-0.07071222364902496,
-0.006018426269292831,
0.026388484984636307,
-0.027828792110085487,
0.03216686099767685,
-0.033744338899850845,
0.02817172184586525,
-0.004458093550056219,
0.024605246260762215,
-0.005804094951599836,
0.026045553386211395,
0.04351785033941269,
-0.03556186705827713,
-0.004151599481701851,
0.047084324061870575,
0.04759871959686279,
-0.038511067628860474,
0.09663774818181992,
-0.024553807452321053,
0.03665924444794655,
-0.03293845057487488,
0.019855663180351257,
0.00327284075319767,
0.044238004833459854,
-0.011668202467262745,
0.030537940561771393,
0.0219303909689188,
0.0014649552758783102,
0.006910044699907303,
0.012105438858270645,
0.0305036474019289,
0.005461164750158787,
0.023233525454998016,
0.004267338663339615,
0.06231043115258217,
-0.05263979732990265,
-0.03552757576107979,
-0.04050006344914436,
-0.045678310096263885,
-0.037962380796670914,
0.005439731292426586,
-0.0024390914477407932,
0.021793218329548836,
0.023747920989990234,
0.059944212436676025,
0.04818170145153999,
-0.0060484325513243675,
0.024690980091691017,
0.009181957691907883,
0.038305312395095825,
0.02673141472041607,
-0.017815226688981056,
0.03518464416265488,
0.047975946217775345,
-0.038305312395095825,
-0.027725912630558014,
-0.02592552825808525,
-0.03209827467799187,
-0.022581957280635834,
-0.038271017372608185,
-0.07887396216392517,
-0.04344926401972771,
0.042591940611600876,
0.0027755917981266975,
-0.05826385319232941,
-0.009533461183309555,
0.025428280234336853,
0.01250838115811348,
-0.00499392207711935,
0.029492003843188286,
0.0001317468413617462,
0.03775662183761597,
0.03127523884177208,
0.0204729363322258,
0.01251695491373539,
-0.005439731292426586,
0.070575051009655,
0.013717210851609707,
-0.0826461911201477,
-0.008024568669497967,
0.0346188098192215,
-0.009104798547923565,
0.03881970793008804,
0.03974561765789986,
0.0830577090382576,
0.03244120255112648,
0.046261291950941086,
0.031772490590810776,
0.046604223549366,
0.0038236724212765694,
0.009199104271829128,
-0.023747920989990234,
0.013074216432869434,
0.05970415845513344,
-0.033144209533929825,
0.04070582240819931,
0.0039844210259616375,
-0.044306591153144836,
0.05627485737204552,
-0.04320921376347542,
0.01597197726368904,
-0.0045523992739617825,
0.0015721209347248077,
-0.04632987827062607,
-0.005431158002465963,
0.04962201043963432,
0.017815226688981056,
-0.020935893058776855,
-0.04914190620183945,
-0.042797695845365524,
-0.01568048633635044,
-0.06663135439157486,
0.0024948175996541977,
-0.008491810411214828,
0.05579475313425064,
-0.020387204363942146,
-0.021587461233139038,
0.022959182038903236,
0.04790735989809036,
-0.021827511489391327,
-0.12544389069080353,
0.01964990422129631,
0.0013395713176578283,
-0.01850108802318573,
-0.0024412348866462708,
0.025239666923880577,
0.00784881692379713,
-0.001050759805366397,
-0.11405860632658005,
-0.008933333680033684,
0.0100907227024436,
0.0024390914477407932,
0.0021336693316698074,
0.025994114577770233,
-0.029543442651629448,
-0.0036029110196977854,
0.06628841906785965,
-0.04187178611755371,
-0.0319611020386219,
-0.056789252907037735,
-0.0017703775083646178,
0.02107306569814682,
-0.05332565680146217,
0.008071721531450748,
-0.032321177423000336,
0.006511388346552849,
-0.08950480073690414,
-0.04135739058256149,
-0.009610620327293873,
0.020027127116918564,
0.01597197726368904,
-0.053908638656139374,
-0.03734510764479637,
0.0052511198446154594,
0.003722936613485217,
-0.0008782229851931334,
0.01764376275241375,
-0.0614188127219677,
0.0213474091142416,
-0.04331209138035774,
0.04410083219408989,
0.03424158692359924,
-0.028377478942275047,
-0.017463723197579384,
-0.006601407658308744,
0.005431158002465963,
-0.0035000320058315992,
0.015603327192366123,
-0.0409458726644516,
-0.0062370444647967815,
0.05682354420423508,
0.0018186020897701383,
0.01255124807357788,
-0.01254267431795597,
-0.028926167637109756,
0.034584518522024155,
0.03868253529071808,
0.012448368594050407,
0.03134382516145706,
0.062447600066661835,
0.07894254475831985,
0.043655022978782654,
-0.0031292387284338474,
0.011128087528049946,
0.03679641708731651,
-0.03624773025512695,
0.05061650648713112,
-0.03437875956296921,
0.006657133810222149,
0.0012784869177266955,
-0.04351785033941269,
0.045369673520326614,
-0.029371976852416992,
-0.004243762232363224,
0.009250544011592865,
0.01367434486746788,
0.052536915987730026,
0.03307562321424484,
-0.012491234578192234,
0.07496455311775208,
-0.007355854380875826,
0.05826385319232941,
-0.009593474678695202,
0.05569187551736832,
-0.08127447217702866,
0.019444147124886513,
0.016383493319153786,
-0.035973384976387024,
-0.02704005129635334,
0.011042354628443718,
0.036556366831064224,
-0.02448522113263607,
0.03552757576107979,
-0.025239666923880577,
0.0358705073595047,
-0.00813173409551382,
-0.02899475395679474,
0.029697760939598083,
-0.03389865532517433,
-0.044203709810972214,
0.1099434420466423,
0.024828150868415833,
0.006841458845883608,
0.06340780854225159,
0.027280103415250778,
0.027160076424479485,
-0.04605553671717644,
-0.05500601604580879,
-0.00967063382267952,
-0.020370058715343475,
-0.0007973128813318908,
-0.013554318808019161,
0.03611055761575699,
-0.021690338850021362,
0.02138170227408409,
0.033384259790182114,
-0.012714140117168427,
-0.05473167076706886,
0.00826890580356121,
0.013657198287546635,
0.01853538118302822,
0.03748227655887604,
-0.012285476550459862,
0.020627256482839584,
-0.04773589223623276,
-0.05572616681456566,
-0.04722149670124054,
0.01153102982789278,
0.01760946959257126,
0.03789379447698593,
-0.009533461183309555,
-0.022667691111564636,
-0.01110236719250679,
-0.006468522362411022,
0.0026684261392802,
-0.03127523884177208,
-0.04855892434716225,
-0.05113090202212334,
0.01024504192173481,
-0.04183749109506607,
0.0032085413113236427,
-0.015783365815877914,
0.02025003172457218,
-0.016023416072130203,
0.04101445898413658,
-0.005246832966804504,
-0.038305312395095825,
0.025702623650431633,
0.028617531061172485,
-0.03424158692359924,
0.012834165245294571,
-0.00005545825479202904,
-0.0069314781576395035,
-0.04554114118218422,
-0.02565118484199047,
-0.04674139618873596,
-0.02335355058312416,
0.04293486848473549,
-0.009053358808159828,
-0.0528455525636673,
0.03779091686010361,
-0.02818886749446392,
-0.033452846109867096,
0.040260013192892075,
-0.017523737624287605,
0.0358705073595047,
0.03731081262230873,
-0.02102162502706051,
-0.0017885956913232803,
-0.018363915383815765,
-0.048867564648389816,
0.023730775341391563,
0.02450236678123474,
-0.05929264426231384,
0.00447095325216651,
-0.006665707100182772,
0.01478886790573597,
-0.041734613478183746,
-0.010133589617908001,
-0.03823672607541084,
-0.005088227801024914,
-0.09821522980928421,
-0.009164811111986637,
0.002728438936173916,
0.025839796289801598,
0.045369673520326614,
-0.09094510972499847,
0.03324709087610245,
-0.03333282098174095,
-0.013262827880680561,
-0.03208112716674805,
-0.013914396055042744,
-0.0028227446600794792,
-0.029680615290999413,
0.04235188663005829,
-0.03242405503988266,
-0.04523250088095665,
0.08607549965381622,
0.020695840939879417,
-0.02361074835062027,
0.03273269534111023,
0.02957773581147194,
-0.009533461183309555,
0.015474728308618069,
-0.0025698337703943253,
-0.0645051822066307,
0.0222218818962574,
-0.0099878441542387,
0.027280103415250778,
-0.010973768308758736,
0.027691619470715523,
0.06039002165198326,
-0.02680000104010105,
-0.0196841973811388,
-0.006177031435072422,
-0.062173258513212204,
-0.04355214536190033,
0.07153525203466415,
0.03333282098174095,
-0.013657198287546635,
-0.003206398105248809,
-0.017558028921484947,
-0.011230966076254845,
-0.03556186705827713,
-0.011736788786947727,
-0.028514651581645012,
-0.03017786331474781,
0.016700703650712967,
-0.04859321936964989,
-0.010982342064380646,
-0.012105438858270645,
-0.006039859261363745,
-0.03189251571893692,
-0.03734510764479637,
0.005088227801024914,
-0.02275342307984829,
-0.04098016768693924,
-0.023284966126084328,
0.038271017372608185,
0.02110735885798931,
0.07489597052335739,
-0.012208317406475544,
-0.04526679590344429,
0.03923122212290764,
-0.00741158053278923,
-0.010622264817357063,
0.02765732631087303,
0.009910685010254383,
0.003729366697371006,
0.02702290564775467,
0.029406270012259483,
-0.03413870930671692,
-0.0347045436501503,
0.02757159434258938,
0.011771081015467644,
0.0022140436340123415,
-0.04067153111100197,
0.019529879093170166,
0.015328982844948769,
-0.042008958756923676,
-0.013245681300759315,
-0.05071938782930374,
-0.018723992630839348,
0.010450799949467182,
-0.011239539831876755,
-0.007925976067781448,
-0.01482316106557846,
-0.0477701872587204,
-0.03182392939925194,
0.01875828579068184,
0.009361996315419674,
-0.007668778300285339,
-0.0426948182284832,
-0.026268457993865013,
0.002749872161075473,
-0.013554318808019161,
-0.021844659000635147,
0.043380677700042725,
-0.0016975047765299678,
0.06378503143787384,
-0.07510172575712204,
0.03448163717985153,
0.014223032630980015,
0.051988229155540466,
-0.009387715719640255,
0.04488957300782204,
0.046227000653743744,
-0.006279910448938608,
0.0050453613512218,
-0.038545362651348114,
0.023542162030935287,
-0.02758873999118805,
0.0009510956588201225,
0.07297556102275848,
-0.023542162030935287,
-0.05610339343547821,
0.06814024597406387,
0.005851247813552618,
0.03043506108224392,
-0.04375790059566498,
0.015714779496192932,
0.03333282098174095,
0.003995137754827738,
-0.010879462584853172,
0.017172232270240784,
-0.07270121574401855,
-0.050479333847761154,
-0.008916187100112438,
0.02110735885798931,
-0.004348784685134888,
-0.047084324061870575,
0.04331209138035774,
0.009010492824018002,
0.07736507058143616
]
|
30,088 | networkx.classes.digraph | is_multigraph | Returns True if graph is a multigraph, False otherwise. | def is_multigraph(self):
"""Returns True if graph is a multigraph, False otherwise."""
return False
| (self) | [
0.03255057707428932,
0.0010248007019981742,
0.031526319682598114,
0.06513587385416031,
-0.06339984387159348,
0.002123382641002536,
-0.0537475124001503,
-0.001880338415503502,
0.04871302470564842,
0.005932885222136974,
0.002536775078624487,
-0.035553909838199615,
0.007859879173338413,
0.04027591645717621,
-0.015007986687123775,
-0.015112148597836494,
-0.021127495914697647,
-0.01525971107184887,
0.04937271773815155,
0.04513680189847946,
-0.06839961558580399,
0.022446878254413605,
0.018193602561950684,
0.00683128135278821,
0.004700303543359041,
0.010095018893480301,
0.011891811154782772,
0.01965186931192875,
0.009843294508755207,
0.061316609382629395,
-0.11068932712078094,
-0.03300194442272186,
0.03690801560878754,
0.026700153946876526,
0.057080693542957306,
0.07249664515256882,
-0.014764942228794098,
0.05218508467078209,
-0.1257580667734146,
-0.0023827021941542625,
-0.04399102181196213,
-0.0297729279845953,
-0.004756724461913109,
0.04093560576438904,
0.023800982162356377,
-0.007469272706657648,
0.018592890352010727,
0.03166520223021507,
-0.04756724461913109,
-0.023922504857182503,
0.04169946163892746,
-0.03119647316634655,
0.0033570495434105396,
0.06218462437391281,
-0.10027313977479935,
0.029911810532212257,
0.0065925768576562405,
0.04281051829457283,
-0.04072728380560875,
0.029512524604797363,
-0.004626522306352854,
-0.0033700698986649513,
0.07569094002246857,
-0.022134393453598022,
0.0019497795728966594,
-0.007603814825415611,
-0.05753206089138985,
0.007738357409834862,
-0.03840100020170212,
0.05336558818817139,
-0.087843157351017,
0.017985278740525246,
-0.025884220376610756,
0.03663025051355362,
0.006618617568165064,
-0.021873988211154938,
0.0014495857758447528,
0.06777464598417282,
-0.02234271727502346,
-0.0013107032282277942,
-0.023696821182966232,
-0.00636689318343997,
-0.00963497068732977,
0.004765404388308525,
0.010633188299834728,
0.014573978260159492,
0.032793622463941574,
0.057289015501737595,
-0.007469272706657648,
-0.04281051829457283,
-0.04621313884854317,
-0.00041095103370025754,
0.0363524854183197,
0.056247398257255554,
-0.028019538149237633,
0.040762003511190414,
-0.016283968463540077,
-0.05562242865562439,
-0.010789431631565094,
-0.09902320057153702,
-0.044268786907196045,
0.0032311873510479927,
-0.02621406503021717,
-0.04600481688976288,
-0.031144393607974052,
-0.0750659704208374,
-0.044720154255628586,
-0.025120366364717484,
-0.010815472342073917,
-0.043817419558763504,
-0.06999675929546356,
-0.004969388246536255,
0.02836674265563488,
0.07409379631280899,
0.018210962414741516,
-0.02784593403339386,
0.01489514485001564,
-0.032359614968299866,
-0.009018680080771446,
0.008992639370262623,
-0.0038192677311599255,
0.04711587727069855,
0.01598016358911991,
0.007256608922034502,
0.05958057940006256,
0.017299547791481018,
0.07464932650327682,
0.012942110188305378,
-0.013020231388509274,
-0.010060298256576061,
0.03044998086988926,
0.0012325819116085768,
-0.013089672662317753,
0.03631776571273804,
-0.015502755530178547,
-0.004713323898613453,
-0.03440812975168228,
-0.034599095582962036,
0.021787187084555626,
0.030102774500846863,
-0.07124670594930649,
0.0088060162961483,
0.010850192978978157,
0.045831214636564255,
-0.07839915156364441,
0.02433915250003338,
-0.06836489588022232,
-0.05284477770328522,
-0.042185548692941666,
-0.0323248952627182,
0.02933892048895359,
-0.022846166044473648,
0.016327369958162308,
-0.03624832257628441,
-0.05652516335248947,
0.01958242803812027,
-0.032654739916324615,
0.012646984308958054,
0.029373642057180405,
-0.0010866468073800206,
-0.05485857278108597,
-0.00019882977358065546,
-0.011110597290098667,
0.05940697342157364,
-0.00724358856678009,
-0.05881672352552414,
0.03975510597229004,
-0.05947641655802727,
-0.05281005799770355,
0.06673302501440048,
-0.01020786166191101,
0.005772302392870188,
-0.03673441335558891,
-0.007360770832747221,
-0.005533598363399506,
0.02069348655641079,
0.049789365381002426,
0.04548400640487671,
0.008575992658734322,
0.03374844044446945,
0.015346512198448181,
-0.04194250330328941,
-0.02829730324447155,
0.0034416811540722847,
0.02777649275958538,
0.01840192638337612,
0.01522499043494463,
-0.029963891953229904,
0.06999675929546356,
0.004591801669448614,
0.020224759355187416,
-0.03321027010679245,
0.006497095339000225,
0.012186936102807522,
0.047254759818315506,
-0.06051803380250931,
0.05909448862075806,
0.03274154290556908,
-0.03248113766312599,
0.0664205402135849,
0.01012973953038454,
-0.06527476012706757,
-0.020433083176612854,
0.022099671885371208,
-0.00007201815606094897,
0.02612726390361786,
-0.045310404151678085,
0.0064667146652936935,
0.013098352588713169,
-0.03515462577342987,
-0.045310404151678085,
-0.03617888316512108,
0.07256608456373215,
0.07839915156364441,
0.03506782278418541,
-0.007603814825415611,
-0.025866858661174774,
0.016874220222234726,
-0.037498265504837036,
0.027082080021500587,
0.05496273562312126,
-0.03579695522785187,
0.04176890105009079,
0.011883131228387356,
-0.030588863417506218,
-0.03400884196162224,
-0.007273969240486622,
0.015077427960932255,
0.004199024755507708,
-0.0013768894132226706,
0.03475533798336983,
-0.001867318176664412,
0.031821444630622864,
0.03937317803502083,
-0.027359845116734505,
0.006327832117676735,
-0.011449122801423073,
0.014938545413315296,
0.03746354579925537,
0.03951206058263779,
-0.0026930177118629217,
-0.053712792694568634,
-0.029078517109155655,
-0.010546387173235416,
0.01808944158256054,
-0.011631406843662262,
0.024408593773841858,
-0.001103464630432427,
0.020346282050013542,
0.015355192124843597,
-0.06430257856845856,
-0.03683857247233391,
-0.021196937188506126,
-0.02576269768178463,
0.0479491725564003,
-0.015051387250423431,
-0.07916300743818283,
-0.019252581521868706,
0.03961622342467308,
-0.005772302392870188,
-0.00002985498394991737,
0.050379615277051926,
-0.0013486789539456367,
0.12395259737968445,
-0.005307914223521948,
-0.0060804481618106365,
0.013896926306188107,
0.0369427353143692,
-0.04579649120569229,
-0.020953891798853874,
0.11686959117650986,
0.006648998241871595,
-0.003433000994846225,
0.010381463915109634,
0.004320546519011259,
-0.044477108865976334,
0.0046048215590417385,
0.019565068185329437,
-0.033991482108831406,
-0.030571503564715385,
-0.03491158038377762,
0.013645201921463013,
-0.03951206058263779,
-0.012950790114700794,
-0.028088979423046112,
-0.017377668991684914,
-0.013211194425821304,
-0.027220962569117546,
0.006531815975904465,
-0.0036630250979214907,
0.00884073693305254,
-0.020745567977428436,
0.0042662955820560455,
0.053955838084220886,
-0.008992639370262623,
0.0020474314223974943,
0.03728994354605675,
0.009374566376209259,
0.022446878254413605,
-0.004389987792819738,
0.04305356368422508,
-0.03541502729058266,
0.03251585736870766,
-0.00511695072054863,
-0.011614046059548855,
-0.006648998241871595,
0.019790751859545708,
0.033106107264757156,
0.021179575473070145,
0.032116569578647614,
-0.04194250330328941,
0.04416462406516075,
-0.05711541324853897,
0.04777556657791138,
-0.017169345170259476,
0.033401232212781906,
0.00333100906573236,
-0.02503356523811817,
-0.00018146946968045086,
0.06576085090637207,
-0.04506735876202583,
0.03251585736870766,
-0.009825934655964375,
0.019565068185329437,
-0.04294940084218979,
-0.0032463776879012585,
0.029217397794127464,
-0.013549720868468285,
-0.0008994809468276799,
0.0329672247171402,
-0.024530114606022835,
0.002462993608787656,
0.038678765296936035,
0.0329672247171402,
-0.049025509506464005,
-0.006879022344946861,
0.0019118039635941386,
-0.01538123283535242,
0.04930327460169792,
-0.042845241725444794,
0.041734181344509125,
-0.015441994182765484,
0.019478265196084976,
-0.04892134666442871,
0.001972564961761236,
0.04638674482703209,
-0.05958057940006256,
0.005407736171036959,
0.029304200783371925,
0.029911810532212257,
-0.05169899761676788,
0.08603768795728683,
-0.013037591241300106,
0.026977919042110443,
-0.05218508467078209,
0.0021646134555339813,
-0.038748208433389664,
-0.014704180881381035,
-0.011336280964314938,
0.06371232867240906,
0.06794824451208115,
0.03185616433620453,
0.016266608610749245,
0.021249016746878624,
0.01276850700378418,
0.0036890655755996704,
0.0032767581287771463,
0.04548400640487671,
0.021908709779381752,
-0.06402481347322464,
-0.031821444630622864,
-0.02897435426712036,
-0.030693024396896362,
0.003192126750946045,
-0.01914842054247856,
0.03885237127542496,
-0.002766799181699753,
0.00727830920368433,
0.011153997853398323,
0.0025997061748057604,
-0.0028080297634005547,
-0.01914842054247856,
0.010624508373439312,
0.004548400640487671,
0.009287765249609947,
-0.017559951171278954,
0.03583167493343353,
0.009956136345863342,
-0.01795055903494358,
0.021040692925453186,
0.0006130358669906855,
-0.015112148597836494,
-0.011318921111524105,
-0.03234225511550903,
-0.07596870511770248,
-0.015563515946269035,
0.05242813006043434,
-0.014426415786147118,
-0.032567936927080154,
-0.03298458456993103,
0.004939007572829723,
-0.00636689318343997,
0.006028367206454277,
0.007130746729671955,
-0.023627379909157753,
0.011813689954578876,
0.02345377579331398,
0.06069163605570793,
0.027793852612376213,
-0.05638628080487251,
0.06735799461603165,
-0.04169946163892746,
-0.09339845925569534,
-0.004735024180263281,
-0.011214759200811386,
0.0038474781904369593,
0.05593491345643997,
0.01488646399229765,
0.056629326194524765,
0.04482431709766388,
0.07006620615720749,
0.06860794126987457,
0.04305356368422508,
-0.028696589171886444,
-0.022429518401622772,
-0.05451136827468872,
-0.01926994137465954,
0.027082080021500587,
-0.016396811231970787,
0.030866628512740135,
-0.020641406998038292,
-0.05392111837863922,
0.09298180788755417,
-0.03263738006353378,
-0.00636689318343997,
-0.020832369104027748,
-0.029443083330988884,
-0.02196078933775425,
0.005433776415884495,
0.028123699128627777,
0.028019538149237633,
-0.02336697466671467,
-0.07638535648584366,
-0.06885097920894623,
0.014990625903010368,
-0.09145410358905792,
-0.02814105898141861,
-0.0050865705125033855,
0.040380075573921204,
0.02793273515999317,
-0.04801861196756363,
0.011518564075231552,
0.005537938326597214,
-0.017377668991684914,
-0.009426647797226906,
0.009470048360526562,
0.0034547012764960527,
-0.013167793862521648,
0.047463081777095795,
0.022655202075839043,
0.00017441684030927718,
-0.0012499422300606966,
-0.06225406378507614,
0.041143931448459625,
-0.00619762996211648,
-0.002847090596333146,
0.027064720168709755,
0.0012304118135944009,
0.008558631874620914,
-0.0057853227481245995,
0.021353179588913918,
0.0011685657082125545,
-0.008159345015883446,
-0.04517152160406113,
0.00576796242967248,
0.001543982420116663,
-0.04624786227941513,
-0.008489190600812435,
-0.030206935480237007,
-0.040692564100027084,
-0.08138512820005417,
-0.02286352589726448,
-0.008814696222543716,
-0.006635977886617184,
0.016040924936532974,
-0.04197722673416138,
0.002977292751893401,
-0.03676913306117058,
-0.02420026995241642,
-0.02510300651192665,
0.0032528876326978207,
-0.03446021303534508,
0.013462918810546398,
0.004290166310966015,
0.0802740678191185,
0.015441994182765484,
-0.03697745501995087,
-0.03319291025400162,
0.0012965979985892773,
-0.00355452299118042,
0.015537476167082787,
0.049789365381002426,
-0.010824152268469334,
-0.027203602716326714,
0.05645572394132614,
0.016882900148630142,
0.02777649275958538,
-0.029425721615552902,
-0.027203602716326714,
0.017299547791481018,
-0.02150942198932171,
-0.037046898156404495,
0.004301016218960285,
0.07985741645097733,
0.04774084687232971,
0.007803458720445633,
0.0111279571428895,
-0.019408823922276497,
0.05763622373342514,
-0.014686821028590202,
0.07763529568910599,
-0.037255220115184784,
-0.017421068623661995,
0.01711726374924183,
-0.04086616635322571,
0.022221194580197334,
-0.033991482108831406,
-0.003773696953430772,
-0.029668767005205154,
-0.01802000030875206,
0.024981483817100525,
0.05083098262548447,
-0.03234225511550903,
0.08346836268901825,
-0.06312207877635956,
0.0016242738347500563,
-0.010772070847451687,
0.07464932650327682,
0.009782534092664719,
0.007495312951505184,
-0.0009342015837319195,
-0.009088121354579926,
-0.016283968463540077,
0.05406000092625618,
0.00933984573930502,
0.0069094025529921055,
0.038609325885772705,
-0.009374566376209259,
0.029581965878605843,
0.03262002021074295,
-0.04461599141359329,
0.05562242865562439,
-0.03185616433620453,
-0.03728994354605675,
0.11124485731124878,
0.023332254961133003,
0.015398593619465828,
0.03791491314768791,
0.015676358714699745,
0.017238786444067955,
-0.013228555209934711,
-0.02404402755200863,
0.0017013101605698466,
-0.012117494828999043,
0.009747813455760479,
-0.033765800297260284,
0.014877784065902233,
-0.007035264745354652,
0.027672331780195236,
0.06419841945171356,
-0.00513431103900075,
-0.06596916913986206,
0.010459586046636105,
0.01568503864109516,
0.02553701400756836,
0.01462605968117714,
0.003294118447229266,
0.02479051984846592,
-0.052740614861249924,
-0.04294940084218979,
-0.03583167493343353,
0.0340435653924942,
0.025189807638525963,
0.0461784191429615,
0.05888616666197777,
0.018801214173436165,
-0.0012857478577643633,
0.010633188299834728,
0.000416376133216545,
-0.008931878954172134,
-0.024148188531398773,
-0.04360909387469292,
0.0473589189350605,
-0.01973867043852806,
0.004613501951098442,
0.01273378636687994,
0.03739410266280174,
-0.01176160853356123,
0.01090227346867323,
-0.024252351373434067,
-0.03649136796593666,
0.031074952334165573,
0.027220962569117546,
-0.044407669454813004,
-0.02017267793416977,
-0.0030640943441540003,
-0.0070743258111178875,
-0.014773622155189514,
-0.0021526783239096403,
-0.041803620755672455,
-0.00200077542103827,
0.05319198593497276,
-0.029668767005205154,
-0.03982454538345337,
0.009626290760934353,
0.0004600481770467013,
-0.07964909076690674,
0.056039076298475266,
-0.021561503410339355,
0.011961252428591251,
0.012022013776004314,
-0.01951298676431179,
-0.015077427960932255,
-0.019999075680971146,
-0.038748208433389664,
0.040032871067523956,
-0.014938545413315296,
-0.059302814304828644,
0.016717975959181786,
-0.02562381513416767,
0.026995278894901276,
-0.03937317803502083,
0.031682562083005905,
-0.019339382648468018,
0.0265786312520504,
-0.11013379693031311,
0.0031400457955896854,
-0.011032476089894772,
0.013462918810546398,
0.05642100051045418,
-0.11964724212884903,
0.019530346617102623,
0.002942572347819805,
-0.02979028970003128,
-0.014539258554577827,
-0.02123165689408779,
-0.002569325501099229,
-0.009131521917879581,
0.036664970219135284,
-0.020120596513152122,
-0.012881348840892315,
0.08944030851125717,
0.049476876854896545,
-0.02954724431037903,
0.010042938403785229,
0.012794546782970428,
0.01512082852423191,
0.003890878986567259,
-0.006258391309529543,
-0.047914449125528336,
0.020155318081378937,
-0.011935211718082428,
-0.01672665774822235,
0.04058840125799179,
0.05635156109929085,
0.03275890275835991,
-0.016987061128020287,
-0.033036667853593826,
0.014374335296452045,
-0.04826165735721588,
-0.027654970064759254,
0.06596916913986206,
0.02308920957148075,
-0.015737120062112808,
-0.051421232521533966,
-0.0019389294320717454,
0.005316594149917364,
-0.035866398364305496,
-0.020311560481786728,
0.021249016746878624,
-0.022620482370257378,
0.041143931448459625,
-0.04058840125799179,
0.008202745579183102,
-0.00034612114541232586,
0.001641634153202176,
-0.037185780704021454,
0.011015115305781364,
-0.013115712441504002,
-0.06155965104699135,
-0.0028926613740622997,
-0.028644507750868797,
0.02091917209327221,
0.03241169452667236,
0.03166520223021507,
0.03819267824292183,
-0.028106339275836945,
0.045831214636564255,
-0.014443776570260525,
0.0051299710758030415,
0.003971170634031296,
0.00028725885204039514,
-0.048365820199251175,
0.017967918887734413,
0.03051942214369774,
-0.007807798683643341,
-0.031022870913147926,
0.006371233146637678,
0.04662978649139404,
0.0037997374311089516,
-0.05221980810165405,
0.022464238107204437,
0.05725429579615593,
-0.01824568398296833,
0.01840192638337612,
-0.037567708641290665,
-0.005277533549815416,
0.01845400780439377,
0.000706890074070543,
-0.012603583745658398,
-0.0369427353143692,
-0.032654739916324615,
-0.007339070085436106,
0.010433545336127281,
-0.046352021396160126,
0.021335817873477936,
0.02985973097383976,
-0.03558863326907158,
0.024894682690501213,
-0.017985278740525246,
-0.020207399502396584,
0.04083144664764404,
-0.04933799430727959,
0.051351793110370636,
-0.03583167493343353,
-0.012265057303011417,
-0.007017904426902533,
0.014348294585943222,
-0.016761377453804016,
0.006201969925314188,
0.027811214327812195,
-0.04600481688976288,
0.03189088776707649,
-0.012673025019466877,
-0.05958057940006256,
-0.04760196432471275,
-0.011553284712135792,
0.09006527811288834,
-0.04659506678581238,
-0.026335587725043297,
0.06110828369855881,
0.01333271712064743,
0.015771839767694473,
-0.050379615277051926,
0.029443083330988884,
0.03996342793107033,
0.020589325577020645,
-0.03513726219534874,
-0.003281098324805498,
-0.09895375370979309,
-0.05496273562312126,
0.04263691604137421,
0.04239387437701225,
0.004227234981954098,
-0.07763529568910599,
0.030345818027853966,
0.012317138724029064,
0.032880425453186035
]
|
30,089 | networkx.classes.graph | nbunch_iter | Returns an iterator over nodes contained in nbunch that are
also in the graph.
The nodes in nbunch are checked for membership in the graph
and if not are silently ignored.
Parameters
----------
nbunch : single node, container, or all nodes (default= all nodes)
The view will only report edges incident to these nodes.
Returns
-------
niter : iterator
An iterator over nodes in nbunch that are also in the graph.
If nbunch is None, iterate over all nodes in the graph.
Raises
------
NetworkXError
If nbunch is not a node or sequence of nodes.
If a node in nbunch is not hashable.
See Also
--------
Graph.__iter__
Notes
-----
When nbunch is an iterator, the returned iterator yields values
directly from nbunch, becoming exhausted when nbunch is exhausted.
To test whether nbunch is a single node, one can use
"if nbunch in self:", even after processing with this routine.
If nbunch is not a node or a (possibly empty) sequence/iterator
or None, a :exc:`NetworkXError` is raised. Also, if any object in
nbunch is not hashable, a :exc:`NetworkXError` is raised.
| def nbunch_iter(self, nbunch=None):
"""Returns an iterator over nodes contained in nbunch that are
also in the graph.
The nodes in nbunch are checked for membership in the graph
and if not are silently ignored.
Parameters
----------
nbunch : single node, container, or all nodes (default= all nodes)
The view will only report edges incident to these nodes.
Returns
-------
niter : iterator
An iterator over nodes in nbunch that are also in the graph.
If nbunch is None, iterate over all nodes in the graph.
Raises
------
NetworkXError
If nbunch is not a node or sequence of nodes.
If a node in nbunch is not hashable.
See Also
--------
Graph.__iter__
Notes
-----
When nbunch is an iterator, the returned iterator yields values
directly from nbunch, becoming exhausted when nbunch is exhausted.
To test whether nbunch is a single node, one can use
"if nbunch in self:", even after processing with this routine.
If nbunch is not a node or a (possibly empty) sequence/iterator
or None, a :exc:`NetworkXError` is raised. Also, if any object in
nbunch is not hashable, a :exc:`NetworkXError` is raised.
"""
if nbunch is None: # include all nodes via iterator
bunch = iter(self._adj)
elif nbunch in self: # if nbunch is a single node
bunch = iter([nbunch])
else: # if nbunch is a sequence of nodes
def bunch_iter(nlist, adj):
try:
for n in nlist:
if n in adj:
yield n
except TypeError as err:
exc, message = err, err.args[0]
# capture error for non-sequence/iterator nbunch.
if "iter" in message:
exc = NetworkXError(
"nbunch is not a node or a sequence of nodes."
)
# capture error for unhashable node.
if "hashable" in message:
exc = NetworkXError(
f"Node {n} in sequence nbunch is not a valid node."
)
raise exc
bunch = bunch_iter(nbunch, self._adj)
return bunch
| (self, nbunch=None) | [
-0.009166961535811424,
-0.054762233048677444,
-0.03517533466219902,
0.0066656251437962055,
-0.051408689469099045,
0.023327384144067764,
-0.01080688089132309,
0.016380760818719864,
0.08173797279596329,
-0.016896691173315048,
-0.03160068392753601,
0.013865604996681213,
0.003818799741566181,
0.06644435226917267,
-0.03287208080291748,
0.0038487419951707125,
0.027731209993362427,
-0.012225686572492123,
0.0007094030734151602,
0.07871609926223755,
-0.046470507979393005,
0.007172341458499432,
0.0231246966868639,
0.025962309911847115,
-0.04676532372832298,
0.002540492219850421,
0.02441452071070671,
-0.028431400656700134,
-0.014446025714278221,
0.05988467484712601,
-0.039358049631118774,
-0.06839751452207565,
-0.020305510610342026,
-0.055241309106349945,
0.05745243653655052,
0.027970749884843826,
-0.04293270409107208,
0.04831311106681824,
-0.052293140441179276,
-0.009443352930247784,
0.06305395811796188,
-0.03440144285559654,
0.0307899359613657,
0.013736623339354992,
-0.006605740170925856,
0.0007836830918677151,
0.04787088930606842,
0.009802660904824734,
-0.035046353936195374,
-0.04451734572649002,
0.0238433126360178,
-0.014464451931416988,
-0.008595754392445087,
0.006679444573819637,
0.0005450081080198288,
0.0021086314227432013,
-0.025409527122974396,
-0.001863334677182138,
0.01264948584139347,
0.06368044018745422,
-0.0395423099398613,
-0.015422606840729713,
0.05350926145911217,
-0.013248332776129246,
-0.02273775078356266,
-0.0045212930999696255,
-0.09868994355201721,
-0.038252487778663635,
-0.01603066734969616,
0.0003299415111541748,
0.033222176134586334,
-0.005209966562688351,
0.0035562284756451845,
0.05800521746277809,
0.004254115279763937,
-0.016472892835736275,
-0.05999523028731346,
0.05855799838900566,
0.022940436378121376,
-0.037773411720991135,
0.042711593210697174,
0.03207975998520851,
-0.06858177483081818,
-0.054762233048677444,
0.06699713319540024,
0.00996849499642849,
0.021742742508649826,
0.008010726422071457,
0.004975034389644861,
0.036483585834503174,
-0.03799452260136604,
-0.012612633407115936,
0.019347356632351875,
0.027104724198579788,
0.025888605043292046,
0.04713384434580803,
-0.05837373808026314,
-0.020452920347452164,
0.004887510556727648,
-0.02271932363510132,
-0.006776181049644947,
0.004758528433740139,
-0.01053048949688673,
0.026902038604021072,
-0.022442933171987534,
-0.03261411562561989,
-0.062169503420591354,
-0.007563895080238581,
0.013985374942421913,
-0.04142176732420921,
-0.11409412324428558,
0.02082144096493721,
-0.007121669594198465,
-0.0352306142449379,
-0.008784621022641659,
0.0027431787457317114,
0.04967664182186127,
-0.04201140254735947,
0.038252487778663635,
0.013266758993268013,
-0.0002559493877924979,
0.03429088741540909,
0.003800373524427414,
0.06659175455570221,
0.000681763980537653,
0.0000027711057555279694,
0.038252487778663635,
0.019752729684114456,
0.013699770905077457,
-0.09478361904621124,
0.07042437791824341,
-0.019844859838485718,
-0.02082144096493721,
0.04212195798754692,
-0.009019553661346436,
0.016574235633015633,
-0.059295039623975754,
-0.013128562830388546,
-0.026422960683703423,
0.05830003321170807,
-0.035857100039720535,
-0.05509389936923981,
0.023566922172904015,
0.06939251720905304,
-0.07827387750148773,
-0.027620654553174973,
-0.051482394337654114,
-0.006476758047938347,
0.028892051428556442,
-0.03924749419093132,
-0.039763424545526505,
0.013073285110294819,
0.038178782910108566,
0.017366556450724602,
-0.04378030449151993,
0.042637888342142105,
-0.03134271875023842,
0.057157617062330246,
-0.01670321822166443,
-0.029850207269191742,
-0.0307899359613657,
0.015754275023937225,
0.01969745196402073,
0.021484779193997383,
-0.05306703597307205,
-0.006264858413487673,
0.004730889108031988,
-0.009885577484965324,
0.014280191622674465,
0.003256805008277297,
0.012677124701440334,
-0.02894733101129532,
-0.018029892817139626,
0.022000707685947418,
-0.033461712300777435,
0.057268176227808,
0.008365428075194359,
0.008093643933534622,
0.004261024761945009,
0.022479785606265068,
-0.03644673526287079,
-0.018029892817139626,
-0.03486209362745285,
-0.04882904142141342,
-0.00935582909733057,
0.0276759322732687,
0.02736268937587738,
-0.020213380455970764,
0.04540179669857025,
-0.017762714996933937,
-0.003917839843779802,
-0.0074625518172979355,
0.034733112901449203,
0.06861862540245056,
0.003692120546475053,
-0.0104844244197011,
-0.029573816806077957,
0.046396803110837936,
-0.050855908542871475,
0.0443330854177475,
-0.002685597399249673,
-0.024119704961776733,
0.028855200856924057,
0.02728898636996746,
0.034585703164339066,
0.016758495941758156,
-0.03047669306397438,
-0.01742183417081833,
0.013616853393614292,
0.0018944286275655031,
0.010069838725030422,
-0.040095094591379166,
0.0673288032412529,
0.06648120284080505,
-0.011147762648761272,
0.03285365551710129,
-0.023659052327275276,
-0.017292851582169533,
0.000894239405170083,
-0.034825243055820465,
0.019955415278673172,
-0.06533878296613693,
0.032503560185432434,
-0.04149547219276428,
-0.01631627045571804,
-0.0018840639386326075,
0.022442933171987534,
-0.017375769093632698,
0.021761169657111168,
0.013819539919495583,
-0.004680217709392309,
0.0032752309925854206,
0.005900943651795387,
0.015155429020524025,
0.004302483517676592,
0.008945848792791367,
-0.030992621555924416,
0.015164642594754696,
0.018536610528826714,
-0.009461778216063976,
-0.05877911299467087,
0.00222264276817441,
-0.01871165819466114,
-0.039210643619298935,
0.004309393465518951,
-0.024230260401964188,
0.009756595827639103,
-0.010604193434119225,
-0.049492381513118744,
0.043669749051332474,
-0.004799987189471722,
-0.036428309977054596,
0.01595696248114109,
-0.050782203674316406,
0.02360377460718155,
-0.01104641892015934,
-0.08689726889133453,
-0.025151563808321953,
0.020397640764713287,
0.02249821089208126,
0.044554196298122406,
-0.03781026229262352,
-0.0019773459061980247,
0.05170350521802902,
0.015312050469219685,
0.02529897168278694,
-0.009618399664759636,
-0.004033002536743879,
-0.009664464741945267,
-0.003927052486687899,
0.04938182234764099,
-0.009024159982800484,
0.01993698999285698,
0.03898952901363373,
-0.036428309977054596,
0.015183067880570889,
-0.041753437370061874,
0.06603897362947464,
-0.07532570511102676,
-0.05144554376602173,
0.00022658288071397692,
0.04499642178416252,
-0.05800521746277809,
-0.019181521609425545,
-0.027933897450566292,
-0.05155609920620918,
0.0012460618745535612,
0.0231246966868639,
0.011838739737868309,
-0.04717069864273071,
0.06913455575704575,
-0.024230260401964188,
0.005666011478751898,
-0.03255883604288101,
0.005956221837550402,
0.02019495517015457,
-0.04322752356529236,
0.011203040368855,
-0.012658698484301567,
0.045991428196430206,
0.08468614518642426,
-0.0831383541226387,
-0.02631240524351597,
-0.010208033956587315,
0.011617626994848251,
0.04938182234764099,
0.042306218296289444,
0.043190669268369675,
-0.04355918988585472,
0.02992391027510166,
-0.030366135761141777,
-0.0656704530119896,
0.022829880937933922,
-0.060732271522283554,
-0.007582321297377348,
-0.09389916807413101,
0.005836452357470989,
0.0008084431174211204,
-0.015708209946751595,
0.047502364963293076,
-0.03160068392753601,
0.053877782076597214,
-0.0010502850636839867,
0.04698643833398819,
-0.026036014780402184,
0.06356988847255707,
0.04219566285610199,
0.08498095721006393,
-0.046470507979393005,
0.027233706787228584,
-0.02990548498928547,
-0.032264020293951035,
-0.04293270409107208,
0.11328338086605072,
-0.04425938054919243,
0.05804206803441048,
0.040242500603199005,
0.01754160225391388,
0.019734304398298264,
-0.0548727884888649,
0.015616080723702908,
0.042969558387994766,
-0.029094738885760307,
-0.010981927625834942,
0.04315381869673729,
-0.0042794509790837765,
-0.023235253989696503,
0.005458718631416559,
0.012382308021187782,
0.06729194521903992,
-0.007890957407653332,
0.0963314101099968,
0.0006558523746207356,
-0.04543864727020264,
0.028376122936606407,
0.04260103777050972,
-0.002315924735739827,
-0.046138837933540344,
-0.013110137544572353,
0.026054440066218376,
0.012925876304507256,
0.004152772016823292,
0.02568591944873333,
-0.015818767249584198,
0.013856392353773117,
-0.04713384434580803,
-0.021024126559495926,
0.035451728850603104,
0.01576348952949047,
-0.018886705860495567,
-0.03351699188351631,
-0.019107818603515625,
-0.08048500120639801,
-0.042711593210697174,
-0.04602828249335289,
-0.03670470044016838,
0.02369590476155281,
0.011414940468966961,
-0.019236799329519272,
0.04588087275624275,
0.013552362099289894,
0.03965286910533905,
0.009328189305961132,
0.03454884886741638,
-0.0036575717385858297,
-0.09706845134496689,
0.021521631628274918,
-0.003401910187676549,
0.024211835116147995,
-0.018564248457551003,
-0.003261411562561989,
-0.03598608449101448,
0.02920529432594776,
0.04938182234764099,
-0.059626709669828415,
-0.0934569463133812,
0.10989298671483994,
-0.02631240524351597,
-0.020139677450060844,
-0.06463859975337982,
0.02225867286324501,
-0.003475614357739687,
0.00666101835668087,
0.08048500120639801,
0.009876364842057228,
-0.04857107624411583,
0.00018512425594963133,
-0.03228244557976723,
0.04683902859687805,
-0.015210707671940327,
0.014731629751622677,
-0.04547550156712532,
-0.0005473113851621747,
-0.0009535482968203723,
0.019439486786723137,
-0.007061785086989403,
-0.024267112836241722,
0.04061102122068405,
0.03093734383583069,
0.05041368305683136,
0.06670231372117996,
-0.04761292412877083,
0.0764312744140625,
0.03615191578865051,
-0.0008533566142432392,
-0.028781495988368988,
0.022848306223750114,
-0.05689965561032295,
-0.026220275089144707,
0.02305099368095398,
-0.0373864620923996,
-0.04820255562663078,
0.043264374136924744,
0.0040376088581979275,
0.03583867475390434,
-0.044959571212530136,
-0.03128743916749954,
-0.027454819530248642,
0.0074303061701357365,
0.020876718685030937,
0.0008487501181662083,
0.04724440351128578,
0.02314312383532524,
-0.05280907079577446,
0.00508559076115489,
-0.01088979747146368,
-0.017486324533820152,
0.031158456578850746,
0.017025673761963844,
0.022221820428967476,
0.016233352944254875,
-0.05214573070406914,
0.017292851582169533,
-0.04868163540959358,
-0.06500712037086487,
0.04035305604338646,
0.00423568906262517,
0.008388460613787174,
-0.014888251200318336,
0.07392532378435135,
0.03206133469939232,
-0.005933189298957586,
-0.02657036855816841,
-0.03228244557976723,
-0.028910478577017784,
-0.003758915001526475,
0.05395148694515228,
0.03471468389034271,
-0.010521276853978634,
0.00014467330765910447,
-0.0014406871050596237,
-0.010419933125376701,
-0.014934316277503967,
-0.059626709669828415,
0.05303018167614937,
0.03277995064854622,
-0.05192461982369423,
0.004634152632206678,
0.01522913295775652,
-0.055167604237794876,
-0.042085107415914536,
-0.023824887350201607,
0.07138253003358841,
-0.01691511645913124,
-0.01160841342061758,
-0.010180395096540451,
-0.003252198453992605,
-0.01947633922100067,
-0.06909769773483276,
-0.002754695015028119,
0.014418386854231358,
-0.037128496915102005,
-0.039763424545526505,
-0.005647585261613131,
0.03543329983949661,
0.04794459044933319,
0.02887362614274025,
-0.01854582317173481,
0.05682595074176788,
-0.048792190849781036,
-0.005684437695890665,
0.04860793054103851,
0.07108771800994873,
-0.018849853426218033,
0.016786135733127594,
0.06500712037086487,
-0.025649067014455795,
0.011976934969425201,
0.005302096717059612,
0.013828753493726254,
0.05214573070406914,
0.0032775343861430883,
0.017965402454137802,
0.007333569228649139,
0.0019911653362214565,
-0.03795767202973366,
-0.0010975018376484513,
-0.011672904714941978,
0.012234899215400219,
-0.0033996067941188812,
0.0678078755736351,
-0.00040738852112554014,
0.01947633922100067,
0.0630171000957489,
-0.0001812375121517107,
0.005080984439700842,
0.019808007404208183,
-0.020876718685030937,
-0.03596765547990799,
-0.013773474842309952,
0.01416042260825634,
0.0630171000957489,
0.02257191576063633,
0.03828933835029602,
0.01280610729008913,
-0.026680925861001015,
0.055720385164022446,
0.04919756203889847,
0.014906677417457104,
0.06648120284080505,
0.016159649938344955,
0.004429162479937077,
-0.007950842380523682,
0.03047669306397438,
-0.032098185271024704,
0.050303127616643906,
-0.03160068392753601,
0.04890274628996849,
-0.0009875213727355003,
-0.03126901388168335,
-0.0010969260474666953,
-0.004028396215289831,
0.009318976663053036,
0.05443056300282478,
0.03390393778681755,
-0.026386108249425888,
-0.012115130200982094,
0.009166961535811424,
0.01670321822166443,
0.05280907079577446,
-0.0462493933737278,
0.009125502780079842,
-0.042564183473587036,
-0.04772347956895828,
0.034419868141412735,
0.0013186144642531872,
-0.012253325432538986,
-0.03821563720703125,
0.03723905608057976,
0.05137183889746666,
0.03757072240114212,
0.019586894661188126,
-0.002038382226601243,
0.014528943225741386,
-0.026994168758392334,
0.009793447330594063,
-0.040574170649051666,
0.014049866236746311,
0.02177959494292736,
-0.0915406346321106,
-0.013110137544572353,
-0.019126243889331818,
0.09330953657627106,
-0.008581934496760368,
0.0030564216431230307,
0.013377315364778042,
-0.09242508560419083,
0.013948522508144379,
0.003224559361115098,
0.005670617800205946,
0.03740488737821579,
-0.06331191956996918,
-0.00444528553634882,
-0.030016042292118073,
-0.009019553661346436,
0.001182722277007997,
-0.02520684152841568,
-0.06080597639083862,
-0.016214927658438683,
-0.043596044182777405,
0.01208749134093523,
0.04392771050333977,
0.053472407162189484,
0.00207868916913867,
0.0032015268225222826,
-0.013699770905077457,
-0.04156917706131935,
-0.015321264043450356,
0.031397994607686996,
-0.005274457857012749,
0.0048782979138195515,
0.0587054081261158,
-0.002839915454387665,
0.009217632934451103,
-0.07761053740978241,
-0.013036432676017284,
-0.01424333918839693,
0.07539941370487213,
-0.04658106341958046,
0.000823414302431047,
0.012327030301094055,
-0.0405004657804966,
-0.009977707639336586,
0.05796836316585541,
-0.03749701753258705,
-0.04068472608923912,
0.03467783331871033,
-0.01316541526466608,
0.061469316482543945,
-0.007499403785914183,
0.013920883648097515,
-0.01471320353448391,
0.014952742494642735,
-0.042085107415914536,
-0.022479785606265068,
-0.09382546693086624,
0.059626709669828415,
-0.014409174211323261,
-0.07974795997142792,
0.019955415278673172,
-0.011543923057615757,
-0.011534709483385086,
-0.016565022990107536,
-0.03014502301812172,
-0.046949584037065506,
-0.012621846981346607,
0.016178075224161148,
0.004334729164838791,
0.02751009725034237,
-0.007384241092950106,
0.009222240187227726,
0.03672312572598457,
0.027307411655783653,
-0.025151563808321953,
-0.04131121188402176,
0.05000830814242363,
-0.027897045016288757,
0.02410127781331539,
-0.00708021130412817,
0.004178107716143131,
0.03556228429079056,
0.01754160225391388,
0.0038095866329967976,
-0.021595334634184837,
0.03206133469939232,
0.061063941568136215,
0.0017850239528343081,
-0.018674805760383606,
-0.030421415343880653,
0.022682471200823784,
-0.07635756582021713,
0.023474792018532753,
-0.017735077068209648,
-0.04094269126653671,
-0.07234068959951401,
-0.033480141311883926,
-0.06769732385873795,
0.004143558908253908,
-0.04429623484611511,
-0.06662861257791519,
-0.010152755305171013,
-0.01624256558716297,
-0.015450245700776577,
-0.01080688089132309,
-0.05000830814242363,
0.014906677417457104,
-0.019679024815559387,
-0.06850806623697281,
0.004261024761945009,
-0.03615191578865051,
0.00878001470118761,
-0.005808813497424126,
0.049013301730155945,
0.0668497234582901,
-0.02879992127418518,
0.00751783000305295,
-0.009461778216063976,
0.021724317222833633,
0.0059700412675738335,
-0.03572811931371689,
0.0342724584043026,
0.007913989946246147,
0.015413394197821617,
0.022240247577428818,
0.02458035573363304,
0.023659052327275276,
-0.050782203674316406,
0.021963855251669884,
0.013193054124712944,
0.09574177861213684,
-0.033793382346630096,
0.0061174496077001095,
-0.014934316277503967,
-0.03615191578865051,
0.017127016559243202,
-0.009940856136381626,
0.017910124734044075,
0.007107850164175034,
-0.023806462064385414,
0.029057886451482773,
0.029979189857840538,
-0.020600328221917152,
-0.007199980318546295,
0.05748928710818291,
-0.033388007432222366,
0.013580001890659332,
0.018886705860495567,
-0.015413394197821617,
-0.0076099601574242115,
0.01977115496993065,
-0.010862158611416817,
0.022148117423057556,
0.030089745298027992,
0.04706013947725296,
0.009682890959084034,
-0.03289050608873367,
-0.0009109380189329386,
0.034346163272857666,
-0.01105563249439001,
-0.0024944269098341465,
-0.006481364369392395,
-0.006587314419448376,
-0.04260103777050972,
0.035046353936195374,
-0.0150356600061059,
-0.015874044969677925,
0.02975807711482048,
0.007444125600159168,
0.012631059624254704,
-0.027307411655783653,
0.056752245873212814,
0.003298263531178236,
0.045991428196430206,
-0.020323937758803368,
0.056125760078430176,
-0.004021486267447472,
0.02599916234612465,
-0.009986921213567257,
-0.023677479475736618,
-0.03851045295596123,
-0.029315851628780365,
0.03125058859586716,
0.007402666844427586,
-0.023198401555418968,
-0.03467783331871033,
0.012787681072950363,
0.059700414538383484,
0.026054440066218376
]
|
30,090 | networkx.classes.digraph | successors | Returns an iterator over successor nodes of n.
A successor of n is a node m such that there exists a directed
edge from n to m.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
predecessors
Notes
-----
neighbors() and successors() are the same.
| def successors(self, n):
"""Returns an iterator over successor nodes of n.
A successor of n is a node m such that there exists a directed
edge from n to m.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
predecessors
Notes
-----
neighbors() and successors() are the same.
"""
try:
return iter(self._succ[n])
except KeyError as err:
raise NetworkXError(f"The node {n} is not in the digraph.") from err
| (self, n) | [
-0.0700857937335968,
-0.009812727570533752,
-0.011531745083630085,
-0.017995968461036682,
-0.025194356217980385,
0.01919570006430149,
-0.030029093846678734,
0.027504287660121918,
0.06901140511035919,
-0.0028493618592619896,
-0.025480858981609344,
0.04430052638053894,
0.03101394884288311,
0.07355964183807373,
0.0015813622158020735,
-0.05379093438386917,
-0.023654403164982796,
0.018712226301431656,
-0.06654031574726105,
0.03839140012860298,
-0.03532940149307251,
0.05332536995410919,
0.012444973923265934,
-0.030978135764598846,
-0.03710213676095009,
0.04412145912647247,
0.004798925016075373,
-0.0027307316195219755,
-0.029581433162093163,
0.02027008682489395,
0.003941654227674007,
-0.018372004851698875,
-0.00797731801867485,
-0.05572482943534851,
0.08809966593980789,
0.08244123309850693,
-0.05260911211371422,
0.03651122376322746,
-0.06088188663125038,
0.05185703933238983,
0.005846451502293348,
-0.0355621837079525,
-0.011666043661534786,
-0.014190850779414177,
0.020091021433472633,
-0.009884352795779705,
0.006571662146598101,
0.046771612018346786,
-0.02523016929626465,
-0.04136386886239052,
0.010376780293881893,
0.0064328876323997974,
0.01820189319550991,
-0.06152651831507683,
0.007292396388947964,
0.005336117930710316,
0.0022148024290800095,
0.007896739058196545,
0.01885547861456871,
0.03067372553050518,
0.024066250771284103,
-0.022007010877132416,
0.004008803516626358,
0.002959038596600294,
0.005327165126800537,
-0.038427215069532394,
-0.0024912329390645027,
-0.09039169549942017,
-0.011513838544487953,
0.013680517673492432,
0.02494366653263569,
0.024119969457387924,
0.005618144758045673,
-0.007010370027273893,
-0.023493245244026184,
-0.012892634607851505,
0.0113079147413373,
0.08050733804702759,
0.022168168798089027,
0.0038073561154305935,
-0.03004700131714344,
-0.023314179852604866,
-0.033377598971128464,
-0.05318211764097214,
-0.029294930398464203,
-0.037066325545310974,
0.01723494566977024,
-0.0509975329041481,
-0.09776914119720459,
0.04619860649108887,
-0.0755651667714119,
-0.03835558891296387,
-0.0025001862086355686,
-0.024334847927093506,
0.022418858483433723,
0.05260911211371422,
-0.011683950200676918,
-0.011513838544487953,
0.008205624297261238,
-0.054113250225782394,
0.007713197730481625,
0.09533386677503586,
-0.06571662425994873,
0.022812800481915474,
-0.005658434238284826,
-0.010958739556372166,
-0.07001417130231857,
0.016626127064228058,
-0.013268670067191124,
-0.0029299408197402954,
-0.10428708791732788,
-0.015086173079907894,
0.031085574999451637,
-0.05328955501317978,
0.025069011375308037,
-0.04089830070734024,
0.01408341247588396,
-0.01061851717531681,
0.0009837348479777575,
0.006097141653299332,
0.02494366653263569,
0.04293963685631752,
-0.023905092850327492,
0.04526747390627861,
-0.017978062853217125,
0.024388566613197327,
0.08444675803184509,
0.01093187928199768,
0.0032007754780352116,
-0.027737069875001907,
0.03903603181242943,
0.0024419904220849276,
0.03318062797188759,
0.09741101413965225,
-0.007605758961290121,
0.003975228872150183,
-0.04770274832844734,
0.011057225055992603,
-0.03151533007621765,
-0.0011840631486847997,
0.00800417736172676,
-0.054328128695487976,
-0.0019417292205616832,
0.06159814074635506,
-0.023188835009932518,
-0.01697530224919319,
-0.048311565071344376,
0.01930313929915428,
0.019571734592318535,
-0.011155710555613041,
0.008017607033252716,
-0.0023099302779883146,
0.07835856825113297,
0.0021610830444842577,
-0.04992314428091049,
0.00355666596442461,
0.020467057824134827,
-0.04071923717856407,
-0.03552636876702309,
-0.025409234687685966,
0.009678428992629051,
0.03857046365737915,
0.013787955977022648,
-0.007377451751381159,
-0.029957469552755356,
-0.0024688499979674816,
-0.009409832768142223,
-0.008304109796881676,
0.036439597606658936,
-0.03742445260286331,
0.004651196766644716,
0.013573079369962215,
0.022311421111226082,
0.005850928369909525,
-0.09010519087314606,
0.007019323296844959,
0.01448630727827549,
0.0070014167577028275,
0.005152577068656683,
-0.008286203257739544,
-0.003964037634432316,
0.004243825562298298,
-0.020646121352910995,
-0.05522345006465912,
-0.005586808081716299,
0.029169585555791855,
0.0057032001204788685,
0.025588298216462135,
0.03932253643870354,
-0.0016529879067093134,
0.0156860388815403,
-0.013671564869582653,
0.016617173328995705,
0.0504603385925293,
0.0243169404566288,
-0.055868081748485565,
-0.014002833515405655,
0.018372004851698875,
-0.001497425721026957,
0.022078637033700943,
-0.0019260611152276397,
0.055187638849020004,
-0.004440796095877886,
0.07678280025720596,
0.017906436696648598,
0.004411698319017887,
-0.034451983869075775,
0.02818473055958748,
0.0016261283308267593,
-0.001492949202656746,
0.016115793958306313,
-0.013080651871860027,
0.026788029819726944,
0.020252179354429245,
-0.04777437448501587,
-0.030870696529746056,
0.02471088245511055,
0.00021459745767060667,
-0.013707377016544342,
-0.056154586374759674,
-0.0016910390695556998,
-0.009991792030632496,
0.06947697699069977,
-0.03237483650445938,
-0.015292096883058548,
-0.0039617992006242275,
-0.026429900899529457,
0.004387076944112778,
0.01062746997922659,
-0.02521226368844509,
-0.02460344322025776,
0.046377670019865036,
-0.006880548316985369,
-0.03506080433726311,
0.052465859800577164,
-0.011415353044867516,
-0.025301795452833176,
-0.03153323382139206,
-0.01660821959376335,
0.01093187928199768,
-0.07001417130231857,
-0.03164067491889,
0.002551667159423232,
-0.019571734592318535,
0.018819665536284447,
-0.01093187928199768,
0.037925831973552704,
0.014853389002382755,
-0.02351115085184574,
0.06593149900436401,
0.019446389749646187,
-0.0807938426733017,
-0.025140637531876564,
-0.0355621837079525,
0.03839140012860298,
-0.03282249718904495,
-0.08251286298036575,
-0.027593819424510002,
0.06102513521909714,
0.01283891499042511,
0.019983584061264992,
-0.013904348015785217,
-0.021326566115021706,
0.025409234687685966,
0.019285231828689575,
-0.013975974172353745,
-0.0031067668460309505,
0.008715958334505558,
0.03493545949459076,
-0.017825858667492867,
0.09511899203062057,
0.008948741480708122,
-0.03369991481304169,
0.012597178108990192,
0.000015781795809743926,
-0.038928594440221786,
-0.006858165375888348,
0.005519659258425236,
-0.022418858483433723,
-0.013214950449764729,
-0.02873983047902584,
0.0129463542252779,
-0.07900319993495941,
-0.01924941875040531,
-0.03579496592283249,
-0.020359618589282036,
0.014620605856180191,
0.001162799191661179,
0.04243825376033783,
-0.018336191773414612,
0.10113555192947388,
0.0005329962586984038,
-0.038033273071050644,
-0.03429082781076431,
0.0036573896650224924,
-0.03112138621509075,
-0.03395060449838638,
0.022526297718286514,
-0.00715809827670455,
0.03640378639101982,
0.08824291825294495,
-0.09397298097610474,
-0.06646869331598282,
-0.07663954794406891,
-0.02471088245511055,
0.02397671900689602,
0.05418487638235092,
0.06320971995592117,
-0.019750799983739853,
0.030405130237340927,
-0.012767289765179157,
-0.05010221153497696,
-0.05214354395866394,
-0.0397522896528244,
0.003751398529857397,
-0.12935610115528107,
-0.013707377016544342,
0.002193538472056389,
-0.013922254554927349,
0.06560918688774109,
-0.038427215069532394,
0.05038871243596077,
-0.029975375160574913,
0.028811456635594368,
-0.061096761375665665,
0.006491083186119795,
0.018389910459518433,
0.022257700562477112,
-0.01076176855713129,
0.03971647843718529,
0.008335446007549763,
-0.052680738270282745,
-0.041435495018959045,
0.05339699611067772,
-0.09712450951337814,
0.028542859479784966,
0.07248525321483612,
0.03857046365737915,
0.01340296771377325,
-0.00808027945458889,
0.003596955444663763,
0.05264492332935333,
-0.034774299710989,
-0.05482950806617737,
0.012104751542210579,
0.034774299710989,
-0.015130938962101936,
-0.008429455570876598,
0.019983584061264992,
-0.020538682118058205,
0.001208684523589909,
0.11875548958778381,
0.004257255233824253,
-0.01542639546096325,
0.04139968007802963,
0.0763530433177948,
0.023618590086698532,
-0.0064328876323997974,
-0.01862269453704357,
0.005161530338227749,
0.03457732871174812,
0.02823845110833645,
0.00035672978265210986,
-0.011666043661534786,
0.0035947172436863184,
-0.019500110298395157,
-0.027593819424510002,
0.042223379015922546,
0.013599938713014126,
0.0051973434165120125,
-0.011101990938186646,
0.017431916669011116,
-0.051212407648563385,
-0.011836154386401176,
-0.011361634358763695,
0.009391926229000092,
0.046091169118881226,
-0.017978062853217125,
0.005944937001913786,
0.0010195476934313774,
0.0030396175570786,
-0.015408488921821117,
0.014271429739892483,
0.045697227120399475,
-0.031049761921167374,
-0.029796311631798744,
0.05375512316823006,
0.01772737316787243,
-0.0005758038605563343,
0.00621801009401679,
-0.03903603181242943,
-0.0502096489071846,
0.01796015538275242,
0.0038767436053603888,
-0.003673057770356536,
-0.042975448071956635,
0.09060657024383545,
-0.019446389749646187,
-0.017978062853217125,
-0.0721629410982132,
0.02567782998085022,
0.045410722494125366,
-0.002634484553709626,
0.06328134983778,
0.0015209279954433441,
-0.04125643149018288,
-0.0060210395604372025,
-0.044515401124954224,
0.04616279527544975,
-0.013895395211875439,
-0.04344101622700691,
-0.005913600791245699,
0.020520776510238647,
-0.01031410787254572,
0.01958964206278324,
-0.027343129739165306,
-0.05350443348288536,
0.05572482943534851,
0.025928519666194916,
0.0070237996987998486,
0.017584120854735374,
-0.0651078075170517,
0.013734237290918827,
0.06700588762760162,
0.03004700131714344,
-0.06743564456701279,
0.06979928910732269,
-0.019464297220110893,
-0.014728044159710407,
0.05486532300710678,
0.02886517532169819,
-0.0352935865521431,
0.054220691323280334,
-0.03953741118311882,
0.05049615353345871,
-0.04909944906830788,
-0.04641348496079445,
-0.01715436577796936,
0.006450793705880642,
0.040074605494737625,
0.004772065207362175,
0.05031708627939224,
0.04107736423611641,
-0.061275824904441833,
0.040253669023513794,
-0.006504513323307037,
0.05300305411219597,
-0.00628963578492403,
0.06349622458219528,
-0.020592402666807175,
-0.023367900401353836,
-0.030082814395427704,
-0.011997312307357788,
-0.02755800634622574,
0.0018197416793555021,
0.04909944906830788,
-0.04566141217947006,
-0.02186375856399536,
-0.033664099872112274,
0.04555397480726242,
0.03728120028972626,
0.01862269453704357,
-0.023600684478878975,
0.018604787066578865,
-0.013035885989665985,
-0.05640527606010437,
0.04981570690870285,
0.019392671063542366,
0.012471833266317844,
-0.034451983869075775,
0.00793702807277441,
-0.025713643059134483,
-0.04347682744264603,
-0.05225098133087158,
-0.002388271037489176,
0.011952546425163746,
-0.04866969585418701,
-0.032285306602716446,
0.06861746311187744,
-0.014826529659330845,
-0.02453181892633438,
0.01391330175101757,
0.047810185700654984,
-0.02521226368844509,
-0.013429827988147736,
-0.05368349701166153,
-0.023618590086698532,
-0.007968364283442497,
-0.0009663880337029696,
0.006782062817364931,
0.058876365423202515,
-0.07878832519054413,
-0.017252851277589798,
0.005497276317328215,
-0.013241809792816639,
0.03226739913225174,
0.017897482961416245,
-0.041829437017440796,
0.05765872821211815,
-0.015650225803256035,
0.01380586251616478,
0.033144813030958176,
0.006791016086935997,
0.01874803937971592,
0.0020167124457657337,
0.0755651667714119,
-0.012400207109749317,
0.012624038383364677,
0.01796015538275242,
0.02334999293088913,
0.07198387384414673,
0.003308214247226715,
0.02936655655503273,
0.039000220596790314,
-0.03710213676095009,
-0.03760351613163948,
-0.03232111781835556,
0.019267326220870018,
-0.010797581635415554,
0.02454972453415394,
0.030834883451461792,
0.0070551359094679356,
0.01976870559155941,
0.07649629563093185,
-0.048884570598602295,
0.011119897477328777,
-0.01976870559155941,
-0.05593970790505409,
-0.036350067704916,
-0.034111760556697845,
-0.020467057824134827,
-0.019894050434231758,
-0.0007666193414479494,
0.0006149741820991039,
-0.06571662425994873,
-0.02413787692785263,
0.05443556606769562,
0.052394233644008636,
0.0234037134796381,
0.05593970790505409,
0.024567632004618645,
-0.06861746311187744,
-0.0273252222687006,
0.021487724035978317,
-0.006661194376647472,
0.020592402666807175,
-0.008424978703260422,
-0.025122730061411858,
-0.0010732670780271292,
0.007560993079096079,
0.003207490546628833,
-0.02016264759004116,
-0.015757665038108826,
0.012104751542210579,
0.031157199293375015,
0.04129224270582199,
0.019356857985258102,
-0.003451465629041195,
-0.004839214496314526,
0.05038871243596077,
-0.0389644056558609,
-0.053611870855093,
-0.022060729563236237,
-0.027683351188898087,
0.03430873155593872,
0.030942322686314583,
0.051140785217285156,
-0.02873983047902584,
0.058589860796928406,
0.05260911211371422,
0.0800059586763382,
0.02936655655503273,
-0.03318062797188759,
-0.009866446256637573,
-0.02685965597629547,
0.00558233167976141,
0.013877488672733307,
-0.07828693836927414,
-0.006155337672680616,
-0.03957322612404823,
-0.023869279772043228,
-0.020574495196342468,
0.055868081748485565,
0.03296574950218201,
0.012095797806978226,
0.054113250225782394,
-0.12541668117046356,
0.03481011465191841,
-0.006038945633918047,
0.020019397139549255,
-0.020610308274626732,
-0.047237180173397064,
-0.027361035346984863,
-0.046843238174915314,
-0.02016264759004116,
-0.022866519168019295,
0.035132430493831635,
-0.05110497027635574,
-0.01155860535800457,
0.04089830070734024,
0.011800342239439487,
0.025086916983127594,
0.03062000684440136,
-0.006611951626837254,
0.007829589769244194,
0.00007827071385690942,
0.006540325935930014,
-0.020610308274626732,
0.008071326650679111,
0.004040139727294445,
0.027934040874242783,
0.013537266291677952,
-0.006741773337125778,
-0.01323285698890686,
-0.051892854273319244,
-0.007878832519054413,
-0.0012601654743775725,
0.041041553020477295,
-0.07316569983959198,
0.05350443348288536,
0.028327982872724533,
-0.010179809294641018,
0.006025515962392092,
0.04931432753801346,
-0.04147130623459816,
-0.04988733306527138,
0.05755128711462021,
-0.055760644376277924,
0.029921656474471092,
-0.010887113399803638,
-0.030870696529746056,
0.010251435451209545,
-0.01976870559155941,
-0.027414754033088684,
-0.0661463737487793,
-0.03378944471478462,
0.046485111117362976,
-0.015274190343916416,
-0.033431317657232285,
-0.00254271412268281,
-0.08530626446008682,
0.07578004151582718,
-0.00904722698032856,
-0.05243004858493805,
-0.01133477408438921,
0.04437214881181717,
-0.005000372417271137,
-0.013304482214152813,
-0.0005005408893339336,
-0.05260911211371422,
0.03532940149307251,
0.0800059586763382,
0.011281055398285389,
-0.004302021581679583,
0.05253748595714569,
-0.027074532583355904,
0.00940087903290987,
0.013367154635488987,
0.025606203824281693,
0.02913377247750759,
0.06231439858675003,
-0.028202638030052185,
0.05328955501317978,
-0.018425723537802696,
0.014181897975504398,
0.0426173210144043,
0.0032231586519628763,
-0.02175632119178772,
-0.054041627794504166,
-0.002574050333350897,
-0.026823842898011208,
0.014808623120188713,
-0.00515705393627286,
-0.018273519352078438,
0.03624262660741806,
-0.00489741051569581,
-0.014352008700370789,
0.024836227297782898,
-0.0256241112947464,
-0.026143398135900497,
-0.004362455569207668,
0.02193538472056389,
0.013734237290918827,
-0.025373421609401703,
-0.017225991934537888,
-0.02800566703081131,
0.0022327087353914976,
-0.04107736423611641,
0.0060792351141572,
0.026608964428305626,
0.004075952805578709,
0.00023949859314598143,
0.01666194014251232,
0.053146302700042725,
-0.013725283555686474,
0.047237180173397064,
0.0026232930831611156,
0.0038812202401459217,
-0.004776542074978352,
0.008031036704778671,
0.037746768444776535,
-0.026035958901047707,
0.01948220282793045,
0.007543086539953947,
-0.01571289822459221,
-0.018273519352078438,
-0.005501752719283104,
-0.03839140012860298,
0.012713570147752762,
0.07449077814817429,
-0.03545474633574486,
-0.016858911141753197,
-0.039000220596790314,
0.0010139519581571221,
-0.033825259655714035,
0.008859209716320038,
0.02164888195693493,
-0.005049615167081356,
-0.021827947348356247,
0.0001496866170782596,
0.03414757549762726,
-0.06671938300132751,
-0.007932551205158234,
0.1009206771850586,
-0.012042079120874405,
-0.0008164215832948685,
-0.00902036763727665,
-0.0226158294826746,
-0.07943295687437057,
-0.0024778032675385475,
-0.039680663496255875,
0.004888457246124744,
-0.02471088245511055,
-0.01010818313807249,
0.001240020734257996,
-0.018103407695889473,
0.03235693275928497,
0.04988733306527138,
-0.019106168299913406,
0.021093782037496567,
0.03753188997507095,
0.022472579032182693,
0.022508390247821808,
-0.02721778303384781,
0.01898082345724106,
-0.00525553897023201,
0.006697007454931736,
-0.018837571144104004,
0.018891291692852974,
-0.03771095722913742,
0.05593970790505409,
-0.0037581133656203747,
0.06338878720998764,
0.011746622622013092,
0.0002865029964596033,
0.0007442362839356065,
0.023618590086698532,
0.017225991934537888,
-0.041829437017440796,
0.000352812756318599,
-0.03226739913225174,
0.04125643149018288,
0.01864060014486313,
-0.00565395737066865,
-0.011003505438566208,
0.029724685475230217,
0.061096761375665665,
-0.0013441018527373672
]
|
30,091 | networkx.classes.graph | number_of_edges | Returns the number of edges between two nodes.
Parameters
----------
u, v : nodes, optional (default=all edges)
If u and v are specified, return the number of edges between
u and v. Otherwise return the total number of all edges.
Returns
-------
nedges : int
The number of edges in the graph. If nodes `u` and `v` are
specified return the number of edges between those nodes. If
the graph is directed, this only returns the number of edges
from `u` to `v`.
See Also
--------
size
Examples
--------
For undirected graphs, this method counts the total number of
edges in the graph:
>>> G = nx.path_graph(4)
>>> G.number_of_edges()
3
If you specify two nodes, this counts the total number of edges
joining the two nodes:
>>> G.number_of_edges(0, 1)
1
For directed graphs, this method can count the total number of
directed edges from `u` to `v`:
>>> G = nx.DiGraph()
>>> G.add_edge(0, 1)
>>> G.add_edge(1, 0)
>>> G.number_of_edges(0, 1)
1
| def number_of_edges(self, u=None, v=None):
"""Returns the number of edges between two nodes.
Parameters
----------
u, v : nodes, optional (default=all edges)
If u and v are specified, return the number of edges between
u and v. Otherwise return the total number of all edges.
Returns
-------
nedges : int
The number of edges in the graph. If nodes `u` and `v` are
specified return the number of edges between those nodes. If
the graph is directed, this only returns the number of edges
from `u` to `v`.
See Also
--------
size
Examples
--------
For undirected graphs, this method counts the total number of
edges in the graph:
>>> G = nx.path_graph(4)
>>> G.number_of_edges()
3
If you specify two nodes, this counts the total number of edges
joining the two nodes:
>>> G.number_of_edges(0, 1)
1
For directed graphs, this method can count the total number of
directed edges from `u` to `v`:
>>> G = nx.DiGraph()
>>> G.add_edge(0, 1)
>>> G.add_edge(1, 0)
>>> G.number_of_edges(0, 1)
1
"""
if u is None:
return int(self.size())
if v in self._adj[u]:
return 1
return 0
| (self, u=None, v=None) | [
-0.07245904952287674,
-0.05042708292603493,
-0.00046292640035972,
0.05245004966855049,
-0.04222486540675163,
0.07025217264890671,
-0.03095141425728798,
0.028211211785674095,
0.024422744289040565,
0.007949345745146275,
-0.022914713248610497,
-0.01730557344853878,
0.042335208505392075,
0.030270962044596672,
0.015052723698318005,
0.051236268132925034,
0.026169853284955025,
-0.03953983634710312,
0.05425233021378517,
0.04579264670610428,
-0.052964989095926285,
-0.0009517146390862763,
0.047447800636291504,
-0.017369940876960754,
-0.0426662415266037,
0.031576696783304214,
-0.008832096122205257,
-0.004303405527025461,
0.03306633606553078,
-0.026114681735634804,
-0.07930035889148712,
-0.01571478508412838,
-0.038730647414922714,
0.030988195911049843,
0.06536027044057846,
0.0734153613448143,
0.0047677685506641865,
0.0744820162653923,
-0.10960809886455536,
0.04711677134037018,
-0.036027226597070694,
-0.028376728296279907,
0.050500646233558655,
0.03681802377104759,
0.013930895365774632,
0.008859681896865368,
0.014841231517493725,
-0.025011245161294937,
-0.04123177379369736,
-0.04730067774653435,
0.008661982603371143,
-0.00005251384209259413,
0.022215869277715683,
-0.014896403066813946,
-0.028450289741158485,
0.038914553821086884,
0.00293560279533267,
0.0384363979101181,
-0.03639503940939903,
0.06536027044057846,
-0.047374241054058075,
0.020395198836922646,
0.03619274124503136,
-0.025011245161294937,
-0.03137439861893654,
0.03220197558403015,
-0.02096530795097351,
0.010206794366240501,
-0.023687120527029037,
0.02181127667427063,
0.03957661613821983,
0.010243576020002365,
-0.0012413669610396028,
0.031172102317214012,
0.06039479747414589,
0.03795824199914932,
0.011117130517959595,
0.053737394511699677,
0.003678124165162444,
-0.019567620009183884,
0.06635335832834244,
-0.04174670949578285,
0.01940210536122322,
-0.046050116419792175,
0.11299197375774384,
0.0139125045388937,
-0.03227553889155388,
0.0032252550590783358,
-0.019181417301297188,
0.013480325229465961,
-0.05252361297607422,
-0.0006293040351010859,
-0.012073442339897156,
0.013480325229465961,
-0.030675556510686874,
0.018905557692050934,
-0.027843400835990906,
-0.07812336087226868,
0.002029864815995097,
-0.06455107778310776,
-0.024054931476712227,
0.028818102553486824,
-0.03486861661076546,
-0.0077240606769919395,
-0.05175120756030083,
-0.09430710226297379,
-0.0291491337120533,
-0.031521525233983994,
-0.025912385433912277,
-0.008565431460738182,
-0.04483633488416672,
0.03225715085864067,
0.01688259094953537,
0.02451469749212265,
0.007103377487510443,
0.016606731340289116,
0.01860211230814457,
-0.03733295947313309,
0.011089544743299484,
0.010749317705631256,
-0.028339946642518044,
0.06697864085435867,
0.018638893961906433,
-0.012551599182188511,
0.03832605481147766,
-0.03749847784638405,
-0.0251767598092556,
0.00009037266136147082,
0.008303365670144558,
-0.005052823107689619,
0.07510729879140854,
-0.014703301712870598,
0.016294090077280998,
0.0620131753385067,
0.0503535196185112,
0.009627490304410458,
-0.02186644822359085,
0.0426662415266037,
0.03876742720603943,
0.019917042925953865,
-0.01643201895058155,
-0.037406522780656815,
-0.013746988959610462,
0.014997551217675209,
-0.048588018864393234,
0.019457276910543442,
0.020395198836922646,
-0.02445952594280243,
0.0013114811154082417,
0.017323965206742287,
-0.0008384973625652492,
-0.00685050617903471,
0.06072583049535751,
0.0075401547364890575,
-0.020836573094129562,
-0.01012403704226017,
0.023208962753415108,
-0.046896085143089294,
-0.0002010037424042821,
-0.03490540012717247,
0.004776963964104652,
0.0400179922580719,
0.023466432467103004,
0.009149333462119102,
-0.006896482780575752,
0.02889166586101055,
0.044247835874557495,
0.0005494197830557823,
-0.008248193189501762,
0.02043198049068451,
-0.005862010642886162,
-0.03021579049527645,
-0.06444073468446732,
0.019512448459863663,
0.025562962517142296,
-0.0055815535597503185,
-0.0021195190493017435,
-0.030749117955565453,
0.03527320921421051,
0.00865278672426939,
0.02806408703327179,
-0.011484942398965359,
0.02727329172194004,
-0.04741102084517479,
0.021369902417063713,
0.010289552621543407,
0.021296339109539986,
0.006947056856006384,
-0.009241286665201187,
0.0018769927555695176,
-0.0015769957099109888,
-0.052964989095926285,
0.005462014582008123,
0.05491439253091812,
0.042077742516994476,
-0.05090523883700371,
0.012238957919180393,
0.013507911004126072,
-0.03461114689707756,
-0.042445551604032516,
0.03485022485256195,
-0.006239017937332392,
-0.003836743300780654,
0.035181257873773575,
0.02811925858259201,
0.015503293834626675,
0.020891744643449783,
-0.0032597375102341175,
-0.0010350471129640937,
-0.045277707278728485,
-0.013379177078604698,
-0.025507790967822075,
-0.004397657234221697,
0.03724100813269615,
-0.023356089368462563,
-0.022969884797930717,
-0.014445832930505276,
0.0317973829805851,
-0.04012833535671234,
-0.02043198049068451,
0.06646370142698288,
0.035659413784742355,
0.022565292194485664,
-0.006896482780575752,
0.03249622881412506,
-0.058187924325466156,
-0.02607790008187294,
0.010280356742441654,
0.04410070925951004,
-0.029995102435350418,
0.026041118428111076,
0.033434148877859116,
0.000981599441729486,
0.045939769595861435,
-0.002082737861201167,
0.019015902653336525,
-0.020266463980078697,
-0.0010706789325922728,
-0.0023723901249468327,
-0.014022848568856716,
-0.023815853521227837,
-0.047558147460222244,
-0.005770057439804077,
-0.01881360448896885,
0.0020494048949331045,
-0.030362915247678757,
-0.02925947867333889,
0.03575136885046959,
-0.0029057180508971214,
0.021884838119149208,
-0.0646614208817482,
-0.10629779100418091,
-0.030510040000081062,
-0.02552618272602558,
-0.004822940565645695,
-0.01057460717856884,
-0.03624791279435158,
0.028100868687033653,
-0.007599924225360155,
0.00441834656521678,
0.04468920826911926,
0.004018350504338741,
-0.05579714477062225,
0.04428461566567421,
-0.011843560263514519,
-0.019457276910543442,
0.01568719930946827,
-0.003151692682877183,
-0.08261066675186157,
-0.0018241197103634477,
0.0139125045388937,
-0.029296258464455605,
0.032422665506601334,
-0.07323145121335983,
-0.03256978839635849,
-0.07470270246267319,
-0.03862030431628227,
0.02872614935040474,
-0.01589869149029255,
0.002099978970363736,
-0.05848217383027077,
-0.007645900826901197,
-0.06370510905981064,
0.004130993038415909,
-0.009728638455271721,
0.0015919380821287632,
0.026353759691119194,
-0.04285014793276787,
-0.04667539522051811,
-0.021829666569828987,
0.04998570680618286,
-0.03839961811900139,
-0.019990604370832443,
0.04218808561563492,
-0.008147045038640499,
0.024349182844161987,
0.0251767598092556,
0.016073402017354965,
0.023834245279431343,
0.028615806251764297,
0.010160817764699459,
-0.042739804834127426,
-0.04402714595198631,
-0.04969145730137825,
-0.018087176606059074,
0.004597655031830072,
0.10901959985494614,
0.002280436921864748,
0.08386123180389404,
-0.01346193440258503,
-0.07098779827356339,
0.02422044798731804,
-0.004928686190396547,
0.02013772912323475,
0.027549149468541145,
-0.00809647049754858,
-0.04255589842796326,
-0.01030794344842434,
-0.03352610021829605,
0.02308022975921631,
0.024183666333556175,
0.1113000363111496,
0.009848177433013916,
0.017323965206742287,
-0.03280886635184288,
0.05252361297607422,
0.049176521599292755,
0.02414688467979431,
0.05594426766037941,
0.024496307596564293,
-0.03643181920051575,
-0.02019290253520012,
0.010445872321724892,
0.03532838448882103,
-0.08893704414367676,
0.006542463321238756,
0.07746129482984543,
0.09960360080003738,
-0.026868697255849838,
0.01060219295322895,
0.04597655311226845,
0.0097378334030509,
-0.048588018864393234,
-0.027015822008252144,
0.03106175921857357,
-0.01619294099509716,
0.0033930696081370115,
-0.05943848565220833,
0.03906168043613434,
0.05796723812818527,
-0.012119418941438198,
0.07503373175859451,
0.031172102317214012,
-0.03858352452516556,
-0.007976931519806385,
0.03850996121764183,
0.039208803325891495,
-0.04483633488416672,
0.07054641842842102,
0.040643271058797836,
-0.049360428005456924,
0.0577833317220211,
0.028321556746959686,
-0.017618214711546898,
-0.025379056110978127,
0.002806868636980653,
0.017930855974555016,
0.012901020236313343,
-0.01976991817355156,
-0.012432060204446316,
0.0009591858251951635,
-0.042519114911556244,
0.019788308069109917,
0.0016241216799244285,
0.028045697137713432,
0.06539704650640488,
-0.0061378697864711285,
0.0012999869650229812,
0.01719523034989834,
0.003248243359848857,
-0.03635825589299202,
0.028799712657928467,
0.005622932221740484,
-0.004114901646971703,
0.0034114602021872997,
-0.03190772607922554,
0.0008930945186875761,
0.00886427890509367,
0.009857372380793095,
0.04579264670610428,
-0.04170992970466614,
0.02037680894136429,
-0.006652807351201773,
-0.014464223757386208,
-0.06208673492074013,
-0.04255589842796326,
0.08224285393953323,
0.005475807469338179,
0.026592837646603584,
-0.06451430171728134,
0.03858352452516556,
0.014804449863731861,
-0.011668848805129528,
0.04616045951843262,
0.003172382013872266,
0.018694065511226654,
-0.0008293020655401051,
0.00011652182729449123,
0.03389391303062439,
-0.03832605481147766,
0.016606731340289116,
-0.023208962753415108,
-0.046896085143089294,
0.02186644822359085,
-0.03917202353477478,
-0.06896483153104782,
0.013351590372622013,
0.022491728886961937,
0.08790716528892517,
-0.015015942044556141,
0.013176879845559597,
0.02241816744208336,
0.032054852694272995,
0.04579264670610428,
0.047006428241729736,
-0.0062941899523139,
0.015420535579323769,
-0.03983408585190773,
0.009967716410756111,
0.03586171194911003,
-0.01667109876871109,
-0.004735584836453199,
0.06422004848718643,
-0.0577833317220211,
-0.01456537190824747,
-0.01054702140390873,
0.013746988959610462,
-0.0355122908949852,
0.043769676238298416,
0.009213700890541077,
-0.013986066915094852,
0.006211432162672281,
-0.020946918055415154,
0.007310271728783846,
0.004650528077036142,
-0.08680373430252075,
-0.03216519579291344,
-0.043401867151260376,
-0.010694146156311035,
-0.07142917066812515,
-0.07003148645162582,
-0.0355122908949852,
-0.0012919411528855562,
-0.03411460295319557,
-0.07047285884618759,
0.015448121353983879,
-0.062454547733068466,
0.004873514641076326,
-0.002148254308849573,
0.00017111898341681808,
0.05535576865077019,
0.02078140154480934,
-0.041011083871126175,
-0.012983778491616249,
-0.09048185497522354,
0.007999920286238194,
0.05175120756030083,
-0.043475426733493805,
-0.013930895365774632,
-0.0384363979101181,
0.03606400638818741,
0.000016711399439373054,
-0.08658304065465927,
-0.0018999810563400388,
0.037884678691625595,
0.016717074438929558,
-0.020983697846531868,
-0.046050116419792175,
-0.006432119756937027,
-0.04829376935958862,
-0.006413728930056095,
0.03755364939570427,
0.04814664646983147,
0.013232051394879818,
0.0238526351749897,
0.0039861672557890415,
-0.044725991785526276,
-0.0020172211807221174,
-0.013002169318497181,
-0.0138481380417943,
0.061866048723459244,
-0.07404063642024994,
-0.0697004497051239,
-0.002816063817590475,
0.03262495994567871,
-0.018169933930039406,
0.037461694329977036,
-0.030252572149038315,
-0.011540114879608154,
-0.0088780727237463,
-0.016919370740652084,
0.018243495374917984,
0.019310152158141136,
0.0066298190504312515,
-0.010970005765557289,
0.06488210707902908,
0.011540114879608154,
0.014188364148139954,
0.03755364939570427,
0.02078140154480934,
0.010878052562475204,
0.02547100931406021,
0.06032123789191246,
0.09982428699731827,
0.04170992970466614,
0.02102047950029373,
-0.014078020118176937,
0.02883649431169033,
0.021976791322231293,
0.01211022399365902,
0.010988395661115646,
0.010197599418461323,
0.05005927011370659,
0.04704320803284645,
-0.06856023520231247,
0.08444973081350327,
-0.05653277039527893,
0.007043607998639345,
0.0295537281781435,
0.04987536370754242,
-0.0023838842753320932,
0.004475817549973726,
-0.023962978273630142,
0.044615644961595535,
-0.028854884207248688,
-0.0006425222964026034,
-0.015402144752442837,
0.006307982839643955,
-0.04343864694237709,
0.06138789281249046,
0.026353759691119194,
-0.014592957682907581,
-0.036983538419008255,
0.02181127667427063,
-0.023723900318145752,
0.012468840926885605,
0.04998570680618286,
-0.010013693012297153,
0.061020080000162125,
-0.05774654820561409,
-0.041011083871126175,
0.012128614820539951,
0.022620463743805885,
0.011061958968639374,
0.056863799691200256,
0.026225024834275246,
-0.012753895483911037,
-0.030804289504885674,
0.01664351113140583,
0.011255060322582722,
-0.04358576983213425,
-0.05965917557477951,
-0.0291491337120533,
0.013195270672440529,
-0.03928236663341522,
0.02024807408452034,
0.019549230113625526,
-0.049912143498659134,
0.02920430526137352,
0.047668490558862686,
-0.03931914642453194,
-0.0045447819866240025,
-0.015043527819216251,
-0.01677224598824978,
-0.04303405433893204,
0.0005192476673983037,
-0.06072583049535751,
0.0046735163778066635,
0.03606400638818741,
-0.03275369480252266,
-0.10659203678369522,
-0.022307822480797768,
0.021645760163664818,
0.043107613921165466,
-0.008579224348068237,
0.04075361788272858,
-0.04807308316230774,
0.01589869149029255,
-0.024900900200009346,
0.09239447861909866,
-0.07319466769695282,
-0.0919531062245369,
-0.01764580048620701,
0.02006416767835617,
-0.03411460295319557,
-0.009553927928209305,
-0.007599924225360155,
-0.01297458354383707,
0.03909846022725105,
-0.009811396710574627,
-0.023926198482513428,
0.016156161203980446,
0.006643611937761307,
0.03196289762854576,
-0.03159508854150772,
-0.008124057203531265,
0.006087295711040497,
0.03906168043613434,
-0.0016344664618372917,
-0.08047735691070557,
0.008018311113119125,
0.000643097038846463,
0.011917122639715672,
-0.016238918527960777,
-0.055723581463098526,
0.022307822480797768,
-0.0037700773682445288,
0.06285914033651352,
-0.026703180745244026,
0.04667539522051811,
-0.026225024834275246,
-0.02920430526137352,
-0.003174680983647704,
-0.02398137003183365,
-0.04068005457520485,
0.0466386154294014,
-0.006147065199911594,
0.0002364918909734115,
-0.036615725606679916,
0.03227553889155388,
-0.008744739927351475,
-0.053259238600730896,
0.013397566974163055,
0.02626180648803711,
0.021645760163664818,
-0.06315339356660843,
0.001374698942527175,
0.009930935688316822,
-0.0020930825266987085,
0.03687319532036781,
-0.045277707278728485,
0.08776004612445831,
-0.0246434323489666,
0.0074022249318659306,
0.015209043398499489,
0.023944588378071785,
-0.00946197472512722,
-0.008873474784195423,
0.02642732299864292,
0.002356298267841339,
0.05237649008631706,
0.01730557344853878,
0.03111693076789379,
-0.04685930162668228,
-0.009163127280771732,
0.05726839229464531,
0.026813525706529617,
-0.009402205236256123,
-0.01897912099957466,
-0.0429237075150013,
-0.01084127090871334,
0.00806888472288847,
0.05623851716518402,
-0.015815934166312218,
0.009333239868283272,
0.026041118428111076,
0.04060649126768112,
-0.03906168043613434,
-0.01976991817355156,
-0.02776983752846718,
0.06260167062282562,
0.05108914524316788,
0.001609179307706654,
0.03201807290315628,
-0.03795824199914932,
-0.018087176606059074,
0.0024298608768731356,
-0.018565332517027855,
-0.010105646215379238,
-0.025250323116779327,
-0.013774574734270573,
0.05796723812818527,
-0.04895583167672157,
-0.04998570680618286,
0.028082478791475296,
-0.026169853284955025,
-0.07131882756948471,
0.0004965467378497124,
0.035659413784742355,
0.02644571289420128,
-0.02979280613362789,
-0.05039030313491821,
0.0059907445684075356,
0.019438887014985085,
-0.019034292548894882,
-0.019972214475274086,
-0.024845728650689125,
-0.022454949095845222,
0.016027426347136497,
0.002042508451268077,
0.029516946524381638,
-0.02342965081334114,
-0.016505582258105278,
0.028873274102807045,
-0.05473048612475395,
-0.030896242707967758,
-0.009553927928209305,
-0.01923658885061741,
-0.0004474093148019165,
0.02061588689684868,
-0.04090074077248573,
-0.02186644822359085,
0.018464183434844017,
-0.08628879487514496,
-0.014969965443015099,
0.08356697857379913,
0.006878092419356108,
0.025746868923306465,
-0.02979280613362789,
0.020468760281801224,
-0.012211372144520283,
-0.010537825524806976,
0.03714905306696892,
0.016523972153663635,
-0.0002951119968201965,
-0.038914553821086884,
0.03810536488890648,
-0.02456986904144287,
0.029093962162733078,
-0.00988495908677578,
-0.028873274102807045,
-0.017719363793730736,
-0.0036758254282176495,
-0.054951176047325134,
-0.015098699368536472,
0.005236729513853788,
0.022694027051329613,
-0.018326254561543465,
0.01637684740126133,
0.010289552621543407,
0.04939720779657364,
-0.017167644575238228,
-0.021002089604735374,
-0.03757203742861748,
0.06274879723787308,
-0.038693867623806,
0.01719523034989834,
0.0726061686873436,
-0.005236729513853788,
-0.026868697255849838,
0.001374698942527175,
0.008505661971867085,
0.020505541935563087,
-0.0620131753385067,
0.01653316803276539,
-0.0025402044411748648,
0.028431899845600128,
-0.04468920826911926,
-0.006289592478424311,
-0.02157219871878624,
-0.012303325347602367,
0.03227553889155388,
-0.010427482426166534,
0.01899751089513302,
0.0022183686960488558,
0.05995342507958412,
0.0453144907951355,
0.03839961811900139
]
|
30,092 | networkx.classes.graph | number_of_nodes | Returns the number of nodes in the graph.
Returns
-------
nnodes : int
The number of nodes in the graph.
See Also
--------
order: identical method
__len__: identical method
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.number_of_nodes()
3
| def number_of_nodes(self):
"""Returns the number of nodes in the graph.
Returns
-------
nnodes : int
The number of nodes in the graph.
See Also
--------
order: identical method
__len__: identical method
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.number_of_nodes()
3
"""
return len(self._node)
| (self) | [
-0.05839623138308525,
-0.02691013738512993,
-0.010454297997057438,
0.037135638296604156,
-0.016218243166804314,
0.11362449824810028,
-0.04160599410533905,
-0.002298977691680193,
0.056777048856019974,
0.008958312682807446,
0.0072159296832978725,
-0.05325708165764809,
0.018286222591996193,
0.009442307986319065,
0.019518209621310234,
-0.00268617388792336,
0.009055111557245255,
-0.029057318344712257,
0.016543839126825333,
0.03600924834609032,
-0.041429996490478516,
0.02861732244491577,
0.06381697952747345,
-0.08743595331907272,
-0.021506991237401962,
0.0124870790168643,
0.03301727771759033,
0.019518209621310234,
0.0280013270676136,
0.02148939110338688,
-0.0998966321349144,
-0.014995054341852665,
-0.021506991237401962,
0.010480698198080063,
0.03819162771105766,
0.07370807975530624,
-0.007493127137422562,
0.021102195605635643,
-0.05853703245520592,
0.01858541928231716,
-0.015760647132992744,
-0.020433401688933372,
0.020099004730582237,
0.019764607772231102,
0.008456718176603317,
-0.028634920716285706,
0.010691896080970764,
-0.0047651538625359535,
-0.033034879714250565,
-0.07177209854125977,
0.009257510304450989,
-0.023566171526908875,
-0.01358706783503294,
0.014264660887420177,
-0.026030147448182106,
0.04160599410533905,
0.05220109224319458,
0.02926851622760296,
-0.02733253501355648,
0.03843802586197853,
-0.017107034102082253,
0.007097131107002497,
0.014827855862677097,
-0.06617535650730133,
-0.023513371124863625,
-0.010005502961575985,
-0.006186340004205704,
0.025308553129434586,
-0.00804752204567194,
0.0022813777904957533,
0.03329887613654137,
0.036924440413713455,
0.011527887545526028,
0.024340562522411346,
0.028951717540621758,
0.01826862245798111,
-0.01622704230248928,
0.04924432188272476,
0.006679134909063578,
-0.003755363402888179,
0.03231328725814819,
-0.004325157962739468,
0.011510288342833519,
0.01770542748272419,
0.09130791574716568,
-0.04241558909416199,
0.0018094823462888598,
0.02451656199991703,
-0.03372127190232277,
0.030782099813222885,
-0.04371797665953636,
0.031186897307634354,
0.010331099852919579,
0.006731934379786253,
-0.015567048452794552,
-0.02559015154838562,
-0.01620064303278923,
-0.0777912437915802,
0.039529215544462204,
-0.04192279279232025,
-0.03819162771105766,
0.08666155487298965,
-0.018251022323966026,
0.005838743411004543,
-0.027508532628417015,
-0.07546806335449219,
-0.04171159490942955,
-0.027103736996650696,
-0.02425256371498108,
0.0005051700863987207,
-0.05086350440979004,
0.026593340560793877,
0.04206359013915062,
0.03734683617949486,
0.05776263773441315,
-0.0011923883575946093,
0.012733476236462593,
-0.021770987659692764,
0.02140139229595661,
0.01291827391833067,
-0.016948634758591652,
0.07149050384759903,
0.02082059718668461,
-0.016799036413431168,
0.04970191791653633,
0.0390012189745903,
0.01796942576766014,
-0.024798158556222916,
-0.023530971258878708,
-0.05758664011955261,
0.09848864376544952,
0.02067979797720909,
0.041993193328380585,
0.0560026541352272,
0.04727314040064812,
0.003288968000560999,
-0.009732705540955067,
0.014924654737114906,
0.008681115694344044,
0.04709714278578758,
-0.020081404596567154,
-0.018708618357777596,
0.00748432707041502,
0.021471790969371796,
-0.0495259165763855,
0.05881862714886665,
0.007805523928254843,
0.006951932329684496,
-0.011695086024701595,
-0.032876480370759964,
0.01842701993882656,
-0.03514685854315758,
0.05593225732445717,
-0.011395889334380627,
-0.048751525580883026,
0.015699047595262527,
-0.0002205478522228077,
-0.040303606539964676,
-0.012953474186360836,
-0.0493147186934948,
-0.04663954675197601,
0.02236938290297985,
0.0029325715731829405,
-0.034319665282964706,
-0.029514912515878677,
-0.00894511304795742,
0.028582122176885605,
-0.05976901948451996,
-0.04533715918660164,
0.03444286435842514,
0.02805412746965885,
-0.024129364639520645,
-0.048892322927713394,
0.01153668761253357,
0.044809162616729736,
0.033598072826862335,
0.0029413714073598385,
0.011378289200365543,
0.005526346154510975,
0.022193383425474167,
-0.014326260425150394,
-0.023724569007754326,
-0.023108575493097305,
-0.0191838126629591,
0.031697291880846024,
0.019359812140464783,
0.0037817631382495165,
0.03562205284833908,
-0.002285777823999524,
0.04934991896152496,
0.008386318571865559,
-0.017283031716942787,
0.020204603672027588,
0.04192279279232025,
0.010973493568599224,
-0.06603455543518066,
0.033193279057741165,
-0.008408318273723125,
-0.04727314040064812,
0.0439995713531971,
0.030746901407837868,
0.012803875841200352,
0.00783192366361618,
0.010234300047159195,
0.0222637839615345,
0.0008645915659144521,
-0.009899904020130634,
0.021154994145035744,
-0.048188332468271255,
-0.035551656037569046,
-0.05917062610387802,
-0.04118359833955765,
0.026681341230869293,
0.046498749405145645,
-0.02119019441306591,
-0.05318668112158775,
-0.04037400707602501,
0.00019112313748337328,
-0.040303606539964676,
-0.05572105944156647,
0.07071611285209656,
0.05931142345070839,
0.0164998397231102,
-0.03674844279885292,
-0.020204603672027588,
-0.0495259165763855,
-0.01514465268701315,
0.00776592455804348,
0.005367947742342949,
-0.04114839807152748,
0.041429996490478516,
0.04688594490289688,
0.011017492972314358,
0.033034879714250565,
0.02251018024981022,
-0.03525245562195778,
0.00827631913125515,
-0.008091521449387074,
-0.04037400707602501,
-0.031750090420246124,
-0.07814323902130127,
-0.07490487396717072,
-0.0029325715731829405,
-0.015338250435888767,
-0.01435266062617302,
0.010225500911474228,
-0.045372359454631805,
0.04135959595441818,
-0.0013848865637555718,
-0.0031063698697835207,
-0.05374987795948982,
-0.09053351730108261,
-0.03447806462645531,
-0.01783742569386959,
-0.009354309178888798,
-0.01466065738350153,
-0.05227149277925491,
0.019923007115721703,
-0.01893741637468338,
0.025660550221800804,
0.0304477047175169,
0.00032779682078398764,
-0.05096910521388054,
0.039529215544462204,
0.020292602479457855,
0.02339017204940319,
0.035393256694078445,
0.03479486331343651,
-0.07525686919689178,
0.004936751909554005,
0.050546709448099136,
0.0007061931537464261,
0.014185462146997452,
-0.07807283848524094,
0.00003489028676995076,
-0.09039272367954254,
-0.027138935402035713,
0.03167969360947609,
-0.003238368546590209,
0.007537126541137695,
-0.032982077449560165,
-0.014431859366595745,
-0.04688594490289688,
-0.031556494534015656,
-0.06237379461526871,
-0.010815095156431198,
0.01310307253152132,
0.007959522306919098,
-0.06166980043053627,
-0.01435266062617302,
0.026434943079948425,
-0.024094166234135628,
-0.01153668761253357,
0.05040590837597847,
0.02696293778717518,
-0.015470249578356743,
-0.04702674224972725,
0.008302719332277775,
0.015760647132992744,
0.07335608452558517,
0.03629084676504135,
-0.037698835134506226,
-0.0727928951382637,
-0.045724354684352875,
0.00800792220979929,
0.04135959595441818,
0.08828074485063553,
0.042556386440992355,
0.03854362666606903,
0.0251853559166193,
-0.06962492316961288,
0.05153229832649231,
-0.028740519657731056,
0.010111101903021336,
0.03988121077418327,
-0.02124299295246601,
-0.04297878220677376,
-0.01826862245798111,
-0.04128919914364815,
0.029286114498972893,
0.02471015974879265,
0.04713234305381775,
-0.02133099175989628,
0.014757456257939339,
-0.056777048856019974,
0.06916733086109161,
0.06314818561077118,
0.050898704677820206,
0.03419646620750427,
0.00009095536370296031,
-0.008813113905489445,
-0.021929387003183365,
0.005227148998528719,
0.012522278353571892,
-0.06934332847595215,
-0.003746563568711281,
0.06941372156143188,
0.01893741637468338,
-0.05716424435377121,
0.013164672069251537,
0.029514912515878677,
0.0025255754590034485,
-0.043225180357694626,
0.02001100592315197,
-0.004707954358309507,
-0.013912664726376534,
0.02701573818922043,
-0.03812123090028763,
0.03653724491596222,
0.017441431060433388,
-0.020539000630378723,
0.10933014005422592,
0.004892752505838871,
-0.020838197320699692,
-0.008430317975580692,
0.02691013738512993,
0.05132110044360161,
0.05121550336480141,
0.01740623079240322,
0.05684744566679001,
-0.03259488195180893,
0.0028049726970493793,
0.02266857959330082,
-0.006819933652877808,
-0.011545487679541111,
0.0058343433775007725,
0.02615334652364254,
0.0386844240128994,
0.018902216106653214,
-0.0386844240128994,
-0.008329118601977825,
-0.04343637824058533,
-0.055650658905506134,
-0.019782207906246185,
0.013578267768025398,
0.05364427715539932,
0.013419869355857372,
-0.009556706994771957,
0.029409313574433327,
-0.028529321774840355,
-0.03255968168377876,
-0.019307011738419533,
0.014440659433603287,
-0.035287655889987946,
-0.012399079278111458,
-0.0012825875310227275,
-0.03843802586197853,
-0.017635028809309006,
0.009794305078685284,
-0.00018067324708681554,
-0.04554835706949234,
-0.005499946419149637,
-0.050018712878227234,
-0.017335832118988037,
-0.0721592977643013,
-0.015215052291750908,
0.0732152909040451,
-0.01899021491408348,
0.027508532628417015,
-0.05343307927250862,
0.04646354913711548,
0.00057584437308833,
0.01212628185749054,
0.06367617845535278,
-0.013138271868228912,
0.023055775091052055,
0.00308436993509531,
0.00863711629062891,
-0.0023825769312679768,
-0.018198223784565926,
0.027754930779337883,
0.0057727438397705555,
-0.029708510264754295,
-0.006538336630910635,
-0.005944342352449894,
-0.05871303007006645,
0.01164228655397892,
0.036924440413713455,
0.11707406491041183,
-0.010419098660349846,
-0.01476625632494688,
0.0275261327624321,
0.02840612456202507,
0.08609836548566818,
0.025414152070879936,
0.02937411516904831,
-0.006872733123600483,
-0.021718189120292664,
0.01026070024818182,
0.05118030309677124,
-0.01397426426410675,
0.0063051385805010796,
0.0447387658059597,
-0.013270271010696888,
-0.007853923365473747,
-0.03801563009619713,
0.014423059299588203,
-0.03945881500840187,
0.007598726078867912,
0.005873942747712135,
0.011791884899139404,
0.020345402881503105,
0.02307337522506714,
0.012047083117067814,
0.004602355416864157,
-0.09187110513448715,
0.007207130081951618,
-0.062408994883298874,
0.035287655889987946,
-0.03766363486647606,
-0.04625235125422478,
-0.03560445457696915,
0.028634920716285706,
-0.01601584441959858,
-0.07574966549873352,
0.023090975359082222,
-0.05797383561730385,
-0.017388630658388138,
-0.03240128606557846,
-0.02599494718015194,
0.005508746486157179,
0.08215600252151489,
-0.017987025901675224,
0.00683313375338912,
-0.048751525580883026,
-0.05251789093017578,
0.02395336702466011,
-0.018233422189950943,
0.005310748238116503,
-0.0057551441714167595,
0.04575955495238304,
-0.0009646906401030719,
-0.06846333295106888,
-0.05522826313972473,
0.04033880680799484,
0.030271705240011215,
-0.035551656037569046,
-0.009794305078685284,
-0.041078001260757446,
-0.04678034409880638,
-0.047519538551568985,
-0.014590257778763771,
0.05195469409227371,
0.03009570762515068,
0.011395889334380627,
0.0038851622957736254,
-0.06987132132053375,
0.0006665934924967587,
0.005451546981930733,
-0.02390056848526001,
0.02840612456202507,
-0.07919923216104507,
-0.049877915531396866,
-0.03183808922767639,
0.02902211807668209,
0.01291827391833067,
0.0279485285282135,
-0.0443163700401783,
-0.027596531435847282,
0.033386874943971634,
-0.05987461656332016,
0.04069080576300621,
0.05470026656985283,
0.02861732244491577,
0.0037575634196400642,
0.047519538551568985,
0.015839846804738045,
0.012883074581623077,
0.06086020916700363,
0.016209442168474197,
0.019307011738419533,
0.023618970066308975,
0.0501595139503479,
0.04230998829007149,
0.021260593086481094,
0.012777475640177727,
-0.013578267768025398,
0.06483776867389679,
0.013833465054631233,
0.03164449334144592,
0.01965900883078575,
-0.0029699711594730616,
0.03717083856463432,
0.008786714635789394,
-0.06019141525030136,
0.0608954094350338,
-0.006978332065045834,
-0.0390012189745903,
0.006019141525030136,
0.0894775316119194,
0.034918058663606644,
0.025502152740955353,
-0.015487849712371826,
0.05885382741689682,
-0.007598726078867912,
-0.0014002863317728043,
-0.005249149166047573,
-0.025150155648589134,
-0.012187881395220757,
0.04625235125422478,
-0.016315041109919548,
-0.07314489036798477,
0.002666373969987035,
0.03787483274936676,
-0.02446376159787178,
0.01448465883731842,
0.07434167712926865,
-0.026998138055205345,
0.023214174434542656,
-0.027913328260183334,
-0.014027063734829426,
-0.009239910170435905,
-0.018497420474886894,
-0.03611484915018082,
0.11622927337884903,
0.039634816348552704,
0.0012242881348356605,
-0.05107470229268074,
0.023724569007754326,
-0.02138379216194153,
-0.008667916059494019,
-0.06258498877286911,
-0.009917503222823143,
0.01853261888027191,
0.01046309806406498,
-0.018603019416332245,
-0.015567048452794552,
-0.022791778668761253,
0.007915522903203964,
0.06571776419878006,
0.0019106813706457615,
0.0070003317669034,
0.01136068906635046,
-0.016913436353206635,
0.006780334282666445,
-0.016570238396525383,
-0.05670664831995964,
0.03505885973572731,
0.0008634916157461703,
-0.061951398849487305,
-0.04579475522041321,
0.009398308582603931,
0.01271587610244751,
0.06029701232910156,
-0.025678150355815887,
0.050441108644008636,
-0.10257180035114288,
0.0005890442989766598,
-0.0010251899948343635,
0.022844577208161354,
-0.04776593670248985,
-0.05403147637844086,
0.008425918407738209,
0.0050027514807879925,
-0.02789572812616825,
0.024780558422207832,
-0.0037971630226820707,
-0.025977347046136856,
0.015549448318779469,
-0.011431088671088219,
0.016772637143731117,
0.025924548506736755,
-0.0023605769965797663,
0.049631517380476,
0.0026927737053483725,
-0.02620614506304264,
0.010577497072517872,
0.04202838987112045,
0.01571664772927761,
-0.05638985335826874,
0.015417450107634068,
-0.020151803269982338,
0.01310307253152132,
-0.08208560198545456,
-0.0554746612906456,
0.007501927204430103,
-0.00783192366361618,
0.033914871513843536,
0.010947093367576599,
0.01271587610244751,
0.0010163901606574655,
-0.04104280099272728,
-0.007581126410514116,
0.0009300409583374858,
-0.019131014123558998,
0.016350241377949715,
-0.003093170002102852,
-0.034266866743564606,
-0.02451656199991703,
-0.0028071727138012648,
0.02108459547162056,
-0.06842813640832901,
0.010639096610248089,
-0.03959961608052254,
0.0004276208346709609,
-0.07582006603479385,
-0.030166106298565865,
-0.009627106599509716,
-0.0014981854474171996,
0.020028606057167053,
-0.04656914621591568,
0.06628095358610153,
-0.06842813640832901,
-0.01689583621919155,
-0.016183042898774147,
-0.03372127190232277,
0.0035947649739682674,
0.008848314173519611,
0.04273238405585289,
-0.012803875841200352,
0.008003521710634232,
0.007704325020313263,
0.04150039702653885,
-0.0015531849348917603,
0.013252670876681805,
-0.008975912816822529,
0.015003854408860207,
-0.004677154589444399,
-0.026628540828824043,
-0.08708395063877106,
-0.016728637740015984,
-0.011184691451489925,
0.04530195891857147,
0.00263557443395257,
0.033492475748062134,
-0.0302893053740263,
0.04811793193221092,
-0.029162917286157608,
-0.00870311539620161,
-0.020204603672027588,
0.005697944667190313,
0.04970191791653633,
0.030007708817720413,
-0.0037597634363919497,
-0.012671876698732376,
0.008425918407738209,
-0.024886157363653183,
0.00271917344070971,
0.02999010868370533,
0.016763836145401,
-0.01639424078166485,
0.05262348800897598,
-0.06233859434723854,
-0.037030041217803955,
0.03208448737859726,
-0.01212628185749054,
-0.04794193431735039,
0.008302719332277775,
0.05582665652036667,
0.04128919914364815,
-0.032119687646627426,
-0.03291168063879013,
0.04846992716193199,
0.037839632481336594,
0.01005830243229866,
0.0023209773935377598,
-0.003031570464372635,
0.030306905508041382,
0.01212628185749054,
-0.02108459547162056,
0.012372680008411407,
0.001401386340148747,
-0.011827085167169571,
-0.016860635951161385,
-0.029954908415675163,
-0.029972508549690247,
-0.039634816348552704,
0.008549116551876068,
-0.04836433008313179,
0.0500539131462574,
-0.018902216106653214,
-0.009935103356838226,
0.04487956315279007,
-0.06958972662687302,
-0.030430104583501816,
0.040761202573776245,
0.04406997188925743,
0.033897269517183304,
-0.02196458727121353,
0.014915854670107365,
0.02236938290297985,
-0.0193950105458498,
0.023882968351244926,
0.06807614117860794,
-0.03259488195180893,
0.002747773192822933,
0.022070186212658882,
-0.01950060948729515,
0.014713456854224205,
0.006877133157104254,
-0.010964693501591682,
-0.00040617104968987405,
-0.019641408696770668,
-0.04466836526989937,
-0.0036101648584008217,
0.02891651913523674,
0.023020576685667038,
0.021735789254307747,
0.03688924014568329,
0.0006066440837457776,
0.10306459665298462,
0.003093170002102852,
0.01212628185749054,
-0.05244749039411545,
0.09419428557157516,
-0.03780443221330643,
0.004155759699642658,
0.08018481731414795,
0.010480698198080063,
-0.017001435160636902,
0.02620614506304264,
0.015171052888035774,
0.016491038724780083,
-0.09743265062570572,
0.02312617562711239,
0.018233422189950943,
0.01028709951788187,
-0.024745360016822815,
-0.003480366198346019,
-0.01899021491408348,
-0.02953251264989376,
-0.028282925486564636,
-0.013138271868228912,
0.028582122176885605,
0.0012363879941403866,
0.026998138055205345,
-0.006753934547305107,
0.03233088552951813
]
|
30,093 | networkx.classes.graph | order | Returns the number of nodes in the graph.
Returns
-------
nnodes : int
The number of nodes in the graph.
See Also
--------
number_of_nodes: identical method
__len__: identical method
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.order()
3
| def order(self):
"""Returns the number of nodes in the graph.
Returns
-------
nnodes : int
The number of nodes in the graph.
See Also
--------
number_of_nodes: identical method
__len__: identical method
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.order()
3
"""
return len(self._node)
| (self) | [
-0.05316416919231415,
0.002397979376837611,
-0.016551434993743896,
0.03392871841788292,
0.028268197551369667,
0.07783647626638412,
-0.032242607325315475,
0.014959950000047684,
0.08058930933475494,
-0.028560686856508255,
-0.0024044313468039036,
-0.07439542561769485,
0.010219908319413662,
-0.02135169506072998,
0.017463311553001404,
0.012095279060304165,
0.01733427308499813,
-0.02154095098376274,
-0.01719663105905056,
0.03320610150694847,
-0.03076295740902424,
0.01842680387198925,
0.04700469598174095,
-0.08932957053184509,
-0.010589821264147758,
0.012379164807498455,
0.03492662310600281,
-0.0010054308222606778,
0.010340345092117786,
0.012379164807498455,
-0.06245499476790428,
-0.024500252678990364,
-0.039090290665626526,
0.01538147870451212,
0.02697780542075634,
0.048449937254190445,
-0.0019022535998374224,
0.02202269807457924,
-0.03599334880709648,
0.0024474444799125195,
0.006129364483058453,
-0.016792306676506996,
0.022091519087553024,
0.0016054633306339383,
-0.0021323736291378736,
-0.011914623901247978,
0.01519222091883421,
-0.016749294474720955,
-0.00429915776476264,
-0.06648102402687073,
0.037025660276412964,
-0.05457499995827675,
0.003770096693187952,
0.0032324332278221846,
-0.019201040267944336,
0.020336585119366646,
0.057293426245450974,
0.0024904573801904917,
-0.010314537212252617,
0.039606448262929916,
-0.005105652846395969,
0.005097050219774246,
-0.013686763122677803,
-0.05254478007555008,
-0.03458251804113388,
-0.006886394694447517,
-0.02183344028890133,
0.02541212923824787,
-0.016499819234013557,
0.0036496601533144712,
0.018736498430371284,
0.02627239003777504,
0.03688801825046539,
0.028457455337047577,
0.0023614182136952877,
0.037817101925611496,
0.008443468250334263,
0.06730686873197556,
0.03236304223537445,
-0.00040459181764163077,
-0.01908060349524021,
0.007540193386375904,
0.03430723398923874,
0.026427237316966057,
0.06971560418605804,
-0.05319857969880104,
0.0262207742780447,
0.0186676774173975,
-0.010030650533735752,
0.015080386772751808,
-0.0529232956469059,
0.029111254960298538,
0.0013291042996570468,
0.006391744129359722,
-0.014572832733392715,
-0.02513684518635273,
-0.012387767434120178,
-0.08299804478883743,
0.03747299686074257,
-0.023588374257087708,
-0.04397657513618469,
0.11665148288011551,
0.006701438222080469,
0.004778753500431776,
-0.016336368396878242,
-0.07597830891609192,
-0.03203614428639412,
-0.02040540613234043,
-0.04087963327765465,
0.003430293407291174,
-0.02892199717462063,
0.04026024416089058,
0.06145709380507469,
0.010022047907114029,
0.09800101071596146,
-0.012929732911288738,
0.0193730928003788,
-0.02130007930099964,
0.02413894236087799,
0.044905658811330795,
-0.023519553244113922,
0.05911717936396599,
0.032758764922618866,
-0.0024280885700136423,
0.005178775172680616,
0.03764504939317703,
0.010082266293466091,
-0.031588807702064514,
-0.031107060611248016,
-0.06751333177089691,
0.11658266186714172,
-0.01285230927169323,
0.0290596392005682,
0.06372818350791931,
0.051994215697050095,
0.010099471546709538,
0.015045976266264915,
0.00917038880288601,
0.009480083361268044,
0.04934460669755936,
0.010727462358772755,
-0.02881876565515995,
0.024981997907161713,
-0.010477987118065357,
-0.024345405399799347,
0.04827788472175598,
0.012792090885341167,
-0.015768596902489662,
-0.007815477438271046,
-0.04208400100469589,
0.03108985535800457,
-0.02962741069495678,
0.06734128296375275,
-0.031072650104761124,
-0.026943394914269447,
0.003496963530778885,
-0.028371429070830345,
-0.0335502028465271,
-0.0321221686899662,
-0.027287499979138374,
-0.04738321155309677,
0.02446584217250347,
0.012430780567228794,
-0.036027759313583374,
-0.022418418899178505,
0.010753270238637924,
0.038298849016427994,
-0.06042477861046791,
-0.05078984797000885,
0.025343308225274086,
0.017489118501544,
-0.02248723991215229,
-0.030023131519556046,
-0.013058772310614586,
0.020818332210183144,
0.024414226412773132,
0.0028216582722961903,
0.04411421716213226,
0.016362177208065987,
0.04143020138144493,
-0.010391960851848125,
-0.019011782482266426,
-0.024414226412773132,
-0.026822958141565323,
0.007058446761220694,
0.002582935616374016,
0.02145492471754551,
0.01823754608631134,
0.006830477621406317,
0.03706007078289986,
-0.005763752851635218,
0.014435190707445145,
0.02221195586025715,
0.0300059262663126,
0.03217378631234169,
-0.03504705801606178,
0.0034883609041571617,
-0.008486481383442879,
-0.03439326211810112,
0.06207647919654846,
0.03141675516963005,
-0.002600140869617462,
0.026255184784531593,
0.018151521682739258,
0.03657832369208336,
0.03301684185862541,
0.001189311733469367,
0.014349164441227913,
-0.052235089242458344,
-0.037163302302360535,
-0.04067317023873329,
-0.04222164303064346,
0.015708377584815025,
0.01476208958774805,
-0.036922428756952286,
-0.020336585119366646,
-0.04555945843458176,
0.016654664650559425,
-0.0000033856001664389623,
-0.051237184554338455,
0.057947225868701935,
0.06252381950616837,
0.008413358591496944,
-0.047417622059583664,
-0.010082266293466091,
-0.054540589451789856,
-0.009196196682751179,
-0.023123832419514656,
-0.025859465822577477,
-0.016147110611200333,
0.03850531205534935,
0.015544927679002285,
0.003621701616793871,
0.012929732911288738,
0.04418303817510605,
-0.024414226412773132,
-0.030298415571451187,
0.016413792967796326,
-0.06365936249494553,
-0.012060868553817272,
-0.08010756224393845,
-0.038333259522914886,
0.0014473901828750968,
-0.010400563478469849,
-0.045146532356739044,
0.020577458664774895,
-0.024930382147431374,
0.005660521797835827,
0.013523313216865063,
-0.005221788305789232,
-0.07253726571798325,
-0.07501481473445892,
-0.024121737107634544,
-0.029025228694081306,
-0.027321910485625267,
-0.02013012208044529,
-0.03695683926343918,
0.003428142750635743,
-0.02627239003777504,
0.04012260213494301,
0.006851984187960625,
0.0034023348707705736,
-0.08010756224393845,
0.031072650104761124,
0.04170548543334007,
0.030814573168754578,
0.021334489807486534,
0.020302174612879753,
-0.05474705249071121,
0.023605579510331154,
0.01696435920894146,
-0.0014839513460174203,
0.0006312169716693461,
-0.05980538949370384,
0.0133512606844306,
-0.06362494826316833,
-0.021867850795388222,
0.05082425847649574,
-0.031864091753959656,
0.015811609104275703,
-0.010237113572657108,
0.008323031477630138,
-0.05887630581855774,
-0.027459552511572838,
-0.08705847710371017,
0.0186676774173975,
0.0005175011465325952,
-0.02059466391801834,
-0.06352172046899796,
-0.03561483323574066,
0.05192539468407631,
0.008920913562178612,
-0.008735956624150276,
0.026427237316966057,
0.03138234466314316,
-0.060872115194797516,
-0.04163666442036629,
0.008047747425734997,
0.03585570678114891,
0.08905428647994995,
0.0025463744532316923,
-0.04428626969456673,
-0.026255184784531593,
-0.04074199125170708,
0.03774828091263771,
0.052888885140419006,
0.07494599372148514,
0.0387461856007576,
0.016560036689043045,
0.019218245521187782,
-0.05536644160747528,
0.059082768857479095,
-0.040707580745220184,
0.00014113668294157833,
0.030246799811720848,
-0.019631171599030495,
-0.033859897404909134,
-0.006628315895795822,
-0.013617942109704018,
0.044010985642671585,
-0.00043416328844614327,
0.06961237639188766,
-0.037335354834795,
0.012628640979528427,
-0.062248531728982925,
0.07811176031827927,
0.04315072298049927,
0.05447176843881607,
0.06169796735048294,
0.0076606301590800285,
0.000647346896585077,
-0.03184688463807106,
0.0019022535998374224,
0.021816235035657883,
-0.07023175805807114,
0.00044007759424857795,
0.07824940234422684,
0.0021775374189019203,
-0.03038444183766842,
0.01596645638346672,
0.015037373639643192,
-0.021764619275927544,
-0.042256053537130356,
0.0401570126414299,
-0.00773805333301425,
-0.0019323626765981317,
0.042049590498209,
-0.02854348160326481,
0.004632508847862482,
0.03626863285899162,
-0.008929516188800335,
0.08919192850589752,
-0.008168184198439121,
-0.03320610150694847,
-0.0081466780975461,
0.029025228694081306,
0.040982864797115326,
0.03723212331533432,
0.011295235715806484,
0.06014949455857277,
-0.02943815290927887,
-0.00991881638765335,
0.012534012086689472,
-0.01077047549188137,
0.0006543365307152271,
-0.012232921086251736,
0.04125814884901047,
0.03358461335301399,
0.01648261398077011,
-0.02838863432407379,
-0.013506107963621616,
-0.042049590498209,
-0.031021034345030785,
0.008404755964875221,
-0.007570302579551935,
0.06279910355806351,
0.010039253160357475,
-0.006942311301827431,
0.042049590498209,
-0.04576592147350311,
-0.019596761092543602,
-0.0029055336490273476,
0.015656761825084686,
-0.022762523964047432,
-0.04500889033079147,
0.009789777919650078,
-0.016886936500668526,
-0.009652135893702507,
-0.01053820550441742,
-0.02173020876944065,
-0.05450617894530296,
-0.012482396326959133,
-0.026995010673999786,
-0.03246627375483513,
-0.06290233135223389,
0.004312061704695225,
0.06159473583102226,
-0.012534012086689472,
-0.00017433740140404552,
-0.08010756224393845,
0.053645916283130646,
-0.023141037672758102,
0.01301575917750597,
0.04955106973648071,
0.007634822279214859,
0.01615571416914463,
-0.011604929342865944,
0.02443143166601658,
0.006464866455644369,
-0.011871610768139362,
-0.035511601716279984,
0.022968987002968788,
-0.01823754608631134,
-0.01988924853503704,
-0.0013344809412956238,
-0.061112988740205765,
0.020629074424505234,
0.06410669535398483,
0.10557130724191666,
-0.016465408727526665,
-0.009006939828395844,
0.056914910674095154,
0.049069326370954514,
0.07831822335720062,
0.03902146965265274,
-0.0015011565992608666,
0.01673208922147751,
-0.008254210464656353,
-0.014056675136089325,
0.06403787434101105,
-0.01538147870451212,
0.01813431642949581,
0.03950321674346924,
0.013067374937236309,
0.031588807702064514,
-0.030126363039016724,
0.03341256082057953,
-0.05378355830907822,
-0.017652569338679314,
0.022194750607013702,
0.007617617025971413,
0.044630374759435654,
0.011088772676885128,
-0.0007532666204497218,
0.008641328662633896,
-0.0486564002931118,
0.029747847467660904,
-0.04418303817510605,
0.0358901172876358,
-0.033567409962415695,
-0.025911081582307816,
-0.037300944328308105,
0.0467638224363327,
-0.03650950267910957,
-0.10316257923841476,
0.04077640175819397,
-0.050721026957035065,
-0.027235884219408035,
-0.05268242210149765,
-0.013721173629164696,
0.012817898765206337,
0.06954355537891388,
-0.028663918375968933,
0.00010645738075254485,
-0.06400346755981445,
-0.04163666442036629,
0.008912310935556889,
-0.009781175293028355,
-0.0034840595908463,
0.006120761856436729,
0.07074791938066483,
-0.022504445165395737,
-0.09717515856027603,
-0.06741010397672653,
-0.003589441766962409,
0.03315448388457298,
-0.007849887944757938,
-0.0122845359146595,
-0.02892199717462063,
-0.041499022394418716,
-0.0300059262663126,
-0.03296522796154022,
0.025119639933109283,
0.01734287478029728,
0.027511168271303177,
0.015863224864006042,
-0.0675477460026741,
0.009394057095050812,
0.027012215927243233,
-0.04758967459201813,
0.018547240644693375,
-0.08375507593154907,
-0.03126190975308418,
-0.03723212331533432,
0.03379107639193535,
0.037920333445072174,
0.02183344028890133,
-0.048828452825546265,
-0.06369376927614212,
0.015080386772751808,
-0.03850531205534935,
0.0496198907494545,
0.04229046404361725,
0.026306800544261932,
-0.003660413436591625,
0.03251789137721062,
0.03127911314368248,
-0.008280018344521523,
0.06217971071600914,
0.03330932930111885,
0.012112484313547611,
0.0128781171515584,
0.05361150577664375,
0.040225833654403687,
0.02443143166601658,
0.04081081226468086,
-0.029076844453811646,
0.05316416919231415,
0.025859465822577477,
0.04975753277540207,
0.018117111176252365,
-0.04184312745928764,
0.028990818187594414,
0.023330295458436012,
-0.0486564002931118,
0.06269586831331253,
-0.010400563478469849,
-0.04480242729187012,
0.036784786731004715,
0.05361150577664375,
0.05192539468407631,
0.014409382827579975,
-0.009746764786541462,
0.06555193662643433,
-0.00211409293115139,
0.008387550711631775,
0.00373783684335649,
0.03145116567611694,
-0.045937974005937576,
0.05113395303487778,
-0.009514493867754936,
-0.04208400100469589,
-0.0035012648440897465,
0.00390988914296031,
0.0067186434753239155,
0.02324426919221878,
0.07350075244903564,
-0.04342600703239441,
0.013342658057808876,
-0.028784355148673058,
-0.04500889033079147,
-0.018151521682739258,
-0.014271740801632404,
-0.031124265864491463,
0.10433253645896912,
0.00656809750944376,
-0.01853003539144993,
-0.025429334491491318,
0.0377826914191246,
-0.03657832369208336,
-0.00015538475417997688,
-0.009480083361268044,
-0.032104965299367905,
0.00633152574300766,
0.006808971054852009,
-0.033326536417007446,
-0.005183076485991478,
-0.020629074424505234,
0.010400563478469849,
0.06527665257453918,
0.0096865464001894,
-0.012766283005475998,
0.0278724767267704,
-0.020491432398557663,
0.0037636447232216597,
-0.013075977563858032,
-0.040569938719272614,
0.04738321155309677,
-0.0034840595908463,
-0.043357186019420624,
-0.02990269474685192,
-0.009376851841807365,
0.01202645804733038,
0.058601025491952896,
-0.04043229669332504,
0.034376055002212524,
-0.04758967459201813,
0.02394968457520008,
0.00784558616578579,
0.009488685987889767,
-0.04786495864391327,
-0.07811176031827927,
0.030986623838543892,
0.006060543470084667,
-0.033705051988363266,
0.010383358225226402,
-0.01630195789039135,
-0.02735632099211216,
-0.010632834397256374,
-0.025119639933109283,
0.030935008078813553,
0.0434604175388813,
0.009299428202211857,
0.045662689954042435,
0.01010807417333126,
-0.027511168271303177,
-0.00505403708666563,
0.04026024416089058,
0.028268197551369667,
-0.04074199125170708,
0.014512614347040653,
-0.01853003539144993,
0.0046067009679973125,
-0.08650790899991989,
-0.06080329418182373,
0.00429915776476264,
0.01481370534747839,
0.012052265927195549,
0.004778753500431776,
0.012792090885341167,
0.011716763488948345,
-0.024121737107634544,
0.004688425920903683,
0.0022560362704098225,
-0.010047855786979198,
0.03571806475520134,
-0.02026776410639286,
-0.03884941712021828,
0.01538147870451212,
-0.0020807578694075346,
0.004705631174147129,
-0.05399002134799957,
0.0198376327753067,
-0.027425142005085945,
-0.0065336874686181545,
-0.12181305140256882,
-0.04153343290090561,
-0.02919728122651577,
-0.005178775172680616,
-0.025240076705813408,
-0.055435262620449066,
0.06496696174144745,
-0.06004626303911209,
-0.023020600900053978,
-0.030625315383076668,
-0.01743750274181366,
0.004778753500431776,
-0.0015033072559162974,
0.05739665776491165,
-0.032018937170505524,
0.0021925917826592922,
0.016697678714990616,
0.05013604834675789,
-0.01625034213066101,
0.004426046274602413,
-0.00914458092302084,
0.023089421913027763,
-0.002094737021252513,
-0.007824080064892769,
-0.08141516149044037,
-0.012568422593176365,
0.005097050219774246,
0.03169203922152519,
-0.004174419678747654,
-0.005041133146733046,
-0.009394057095050812,
0.04218723252415657,
-0.03798915445804596,
-0.004084092099219561,
-0.024861561134457588,
-0.009772572666406631,
0.06348730623722076,
0.054162073880434036,
-0.008206896483898163,
-0.03537395969033241,
0.020611869171261787,
-0.00013347496860660613,
0.006658425088971853,
0.04937901720404625,
0.001259207958355546,
-0.022659292444586754,
0.05082425847649574,
-0.05650198459625244,
-0.05595141649246216,
0.013850213028490543,
0.006064844783395529,
-0.05540085211396217,
0.026341211050748825,
0.043873343616724014,
0.01329964492470026,
-0.03468574956059456,
-0.031915705651044846,
0.05581377446651459,
0.006125063169747591,
0.026065928861498833,
0.023605579510331154,
0.003918491769582033,
0.02135169506072998,
0.028887586668133736,
-0.02191946655511856,
0.02324426919221878,
-0.0022775428369641304,
0.0023936780635267496,
-0.03396312892436981,
-0.027287499979138374,
-0.03203614428639412,
-0.05980538949370384,
0.015321260318160057,
-0.033859897404909134,
0.057293426245450974,
-0.043873343616724014,
-0.012749077752232552,
0.01619872637093067,
-0.0717802345752716,
-0.02116243727505207,
0.05536644160747528,
0.04900050535798073,
0.04043229669332504,
-0.03504705801606178,
0.04937901720404625,
-0.02281413972377777,
-0.0036905223969370127,
0.01065003965049982,
0.03296522796154022,
0.017962263897061348,
0.0034453480038791895,
0.02310662716627121,
-0.01945911906659603,
-0.02892199717462063,
-0.025257281959056854,
-0.026117544621229172,
0.006821874994784594,
0.004447552841156721,
-0.04067317023873329,
-0.022642087191343307,
0.019768813624978065,
0.020732305943965912,
0.02873273938894272,
0.03310286998748779,
0.02725308947265148,
0.06940591335296631,
0.009755367413163185,
0.0011409219587221742,
-0.029696231707930565,
0.108668252825737,
-0.060355957597494125,
0.0005699233151972294,
0.05725901573896408,
-0.002462499076500535,
-0.005346526391804218,
0.0150029631331563,
0.0014054524945095181,
0.054024431854486465,
-0.0907059907913208,
0.0038969852030277252,
0.006064844783395529,
0.005509975831955671,
-0.004208830185234547,
0.011845802888274193,
-0.03723212331533432,
-0.06183560565114021,
-0.07529009878635406,
-0.027425142005085945,
0.019407503306865692,
-0.015742788091301918,
0.011880213394761086,
0.02716706320643425,
0.030109157785773277
]
|
30,094 | networkx.classes.digraph | predecessors | Returns an iterator over predecessor nodes of n.
A predecessor of n is a node m such that there exists a directed
edge from m to n.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
successors
| def predecessors(self, n):
"""Returns an iterator over predecessor nodes of n.
A predecessor of n is a node m such that there exists a directed
edge from m to n.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
successors
"""
try:
return iter(self._pred[n])
except KeyError as err:
raise NetworkXError(f"The node {n} is not in the digraph.") from err
| (self, n) | [
-0.051921166479587555,
0.023255985230207443,
-0.022295141592621803,
-0.02414565533399582,
-0.02040904015302658,
0.03421672433614731,
0.009555060416460037,
0.021174157038331032,
0.07878921180963516,
0.008540836162865162,
-0.009697407484054565,
0.005555992014706135,
0.029554851353168488,
0.058397967368364334,
-0.004350488539785147,
-0.0415298156440258,
-0.010444730520248413,
0.016031861305236816,
-0.0536649227142334,
0.02273997664451599,
-0.021174157038331032,
0.026565559208393097,
-0.009474989958107471,
-0.031974755227565765,
-0.0126600107178092,
0.023309364914894104,
-0.0007590000750496984,
-0.0035275432746857405,
-0.02364744059741497,
0.0263342447578907,
0.010257899761199951,
0.03179682046175003,
-0.030266588553786278,
-0.052775248885154724,
0.048576004803180695,
0.06893166899681091,
-0.02065814845263958,
0.005395851098001003,
-0.064305379986763,
0.05476811155676842,
0.012633319944143295,
-0.028238140046596527,
0.0033540576696395874,
0.00360094103962183,
0.025177674368023872,
-0.023309364914894104,
0.013789892196655273,
-0.00015388517931569368,
-0.023771993815898895,
-0.03094273805618286,
0.00626772828400135,
0.02718832902610302,
0.047579575330019,
-0.056191585958004,
-0.018193760886788368,
-0.0084207309409976,
0.011049706488847733,
-0.012829047627747059,
-0.009377126581966877,
0.054554592818021774,
0.015222261659801006,
0.0007973671308718622,
-0.00913691520690918,
0.005636062007397413,
0.005244607105851173,
-0.057543884962797165,
0.011209847405552864,
-0.06291749328374863,
-0.03443024680018425,
-0.03128081187605858,
0.007700097747147083,
0.028682975098490715,
0.006525732576847076,
-0.007544405292719603,
-0.0012955826241523027,
-0.0065791127271950245,
0.02419903688132763,
0.03169006109237671,
0.02192148007452488,
-0.00001417043404217111,
-0.013131535612046719,
-0.005956343375146389,
-0.06202782317996025,
-0.039821647107601166,
0.01789127290248871,
-0.03327367454767227,
0.03857611119747162,
-0.03362954407930374,
-0.07757925987243652,
0.07942977547645569,
-0.0835578441619873,
-0.009492783807218075,
-0.038255829364061356,
-0.004906532354652882,
0.02562250941991806,
0.05547984689474106,
0.030693629756569862,
-0.006703666877001524,
0.009457197040319443,
-0.03722381219267845,
0.027668749913573265,
0.07053307443857193,
-0.03501742705702782,
0.0060986909084022045,
-0.0028647389262914658,
-0.005760616157203913,
-0.06316660344600677,
0.005849583074450493,
0.004048000555485487,
0.008002585731446743,
-0.07352236658334732,
-0.03012424148619175,
-0.017161741852760315,
-0.04540877789258957,
0.047010187059640884,
-0.04064014554023743,
0.019928617402911186,
0.009172501973807812,
0.03733057156205177,
0.0052045718766748905,
0.021352089941501617,
0.026690112426877022,
-0.03832700103521347,
0.05580012872815132,
-0.076938696205616,
0.006436765659600496,
0.09160047024488449,
0.01681477203965187,
0.007277504075318575,
-0.06394951045513153,
0.047579575330019,
0.002198598114773631,
-0.0008824418764561415,
0.06850462406873703,
-0.01728629693388939,
-0.01711726002395153,
-0.013941136188805103,
0.004586250986903906,
0.01780230551958084,
-0.033593956381082535,
0.014323693700134754,
-0.0390031524002552,
-0.004813116975128651,
0.03928784653544426,
-0.09231220185756683,
-0.022651009261608124,
-0.025444574654102325,
0.023255985230207443,
0.018256036564707756,
0.010106655769050121,
0.005173433572053909,
-0.006934980861842632,
0.06288190931081772,
-0.037401746958494186,
-0.025088706985116005,
0.01349630020558834,
-0.0031027256045490503,
-0.0399995818734169,
-0.01237531565129757,
-0.024074481800198555,
-0.0029937410727143288,
0.02905663661658764,
0.015898410230875015,
-0.02307805046439171,
-0.037401746958494186,
-0.015382401645183563,
-0.00013400660827755928,
-0.04145864397287369,
0.001423472655005753,
0.02161899209022522,
0.04241948574781418,
-0.01437707431614399,
0.012784563936293125,
-0.009225882589817047,
-0.049892719835042953,
-0.006361143663525581,
0.03375409543514252,
0.003676563035696745,
-0.014750735834240913,
0.04572905972599983,
0.011120880953967571,
-0.009341539815068245,
-0.0022364091128110886,
-0.060889046639204025,
0.012028343975543976,
0.012330831959843636,
0.009377126581966877,
0.01419914048165083,
0.05209910124540329,
0.004795323591679335,
0.008184968493878841,
-0.03736615926027298,
-0.0010503671364858747,
0.06750819087028503,
-0.0007690088823437691,
-0.05786416679620743,
-0.001132661709561944,
0.020017584785819054,
-0.024163449183106422,
-0.01862969808280468,
0.024038895964622498,
0.047366052865982056,
-0.005106708500534296,
0.05281083658337593,
-0.012499869801104069,
0.019732890650629997,
-0.06135167181491852,
0.00596079183742404,
-0.005582681857049465,
-0.003080483991652727,
-0.0008190528606064618,
-0.03939460590481758,
0.05914529040455818,
-0.0082294512540102,
-0.04419882595539093,
-0.014563905075192451,
0.02562250941991806,
0.00898567121475935,
0.012490972876548767,
-0.03768644109368324,
0.003932343330234289,
-0.01637883298099041,
0.03199254721403122,
-0.01662794128060341,
-0.00943940319120884,
-0.017464229837059975,
-0.03553343564271927,
0.0031627784483134747,
-0.029287951067090034,
-0.035711370408535004,
-0.0029203433077782393,
0.040533386170864105,
-0.010133346542716026,
-0.04106718674302101,
0.07142274081707001,
0.014643975533545017,
-0.02364744059741497,
0.006347798742353916,
-0.020070964470505714,
0.02800682559609413,
-0.04320239648222923,
0.0034207827411592007,
0.0321526899933815,
-0.020070964470505714,
0.031049497425556183,
0.03768644109368324,
0.04996389150619507,
0.01038245391100645,
-0.040996015071868896,
0.04967919737100601,
0.014964256435632706,
-0.05138736590743065,
-0.03170785307884216,
-0.03142315894365311,
0.04014192894101143,
-0.018042515963315964,
-0.03708146512508392,
-0.020088758319616318,
0.03686794266104698,
0.04644079878926277,
-0.015391298569738865,
-0.05523074045777321,
0.026672320440411568,
0.0237897876650095,
0.05590689182281494,
0.0034029893577098846,
-0.018042515963315964,
0.025747062638401985,
0.0018360574031248689,
-0.013656441122293472,
0.094162717461586,
0.0007328659994527698,
0.01618310436606407,
0.019430402666330338,
0.028291519731283188,
-0.06636941432952881,
-0.0795009508728981,
0.02603175677359104,
-0.016058551147580147,
0.02323819138109684,
-0.020640354603528976,
-0.010320177301764488,
-0.055978063493967056,
-0.006850462406873703,
-0.032330624759197235,
-0.03615620732307434,
0.004590699449181557,
-0.02460828423500061,
0.01514219120144844,
-0.005346919409930706,
0.08526601642370224,
0.009626233950257301,
-0.02329157292842865,
-0.07679635286331177,
0.018469559028744698,
-0.04106718674302101,
0.008496352471411228,
0.011690269224345684,
-0.008523043245077133,
0.05903853103518486,
0.1083262711763382,
-0.08313080668449402,
-0.05942998453974724,
-0.05074680224061012,
-0.07886038720607758,
0.043166808784008026,
0.05099590867757797,
0.076938696205616,
-0.03195696324110031,
-0.02556912787258625,
-0.024786219000816345,
-0.018718665465712547,
-0.07309532165527344,
-0.050355348736047745,
-0.017579887062311172,
-0.12035461515188217,
-0.004590699449181557,
0.008754356764256954,
-0.004414989612996578,
0.04451910778880119,
-0.01878983899950981,
0.06362923234701157,
-0.01455500815063715,
0.04441234841942787,
-0.06334453821182251,
0.051921166479587555,
0.017962446436285973,
0.010160036385059357,
-0.020266693085432053,
0.029003256931900978,
0.050960320979356766,
-0.027508610859513283,
-0.04615610092878342,
0.05220586061477661,
-0.08177850395441055,
0.026102930307388306,
0.05928763747215271,
0.04512408375740051,
0.01566709578037262,
-0.004475042223930359,
0.025586921721696854,
0.008460765704512596,
-0.028985463082790375,
-0.03338043391704559,
-0.014848599210381508,
0.036583248525857925,
-0.008291728794574738,
-0.02035566046833992,
0.01815817318856716,
0.020337866619229317,
0.0005994154489599168,
0.09693849086761475,
0.005462576635181904,
-0.015195570886135101,
0.024590490385890007,
0.025355607271194458,
-0.01174364984035492,
-0.03499963507056236,
-0.005164537113159895,
0.005591578781604767,
0.04729488119482994,
0.04416324198246002,
-0.01048031821846962,
-0.036725595593452454,
-0.0058050998486578465,
-0.039714887738227844,
-0.012117311358451843,
0.036476489156484604,
-0.0253200214356184,
0.027579784393310547,
-0.033949822187423706,
0.014572801999747753,
-0.055622197687625885,
-0.0225264560431242,
-0.030960531905293465,
-0.055195152759552,
0.043415918946266174,
0.006846013944596052,
0.024288002401590347,
0.056120410561561584,
-0.029287951067090034,
0.012482075951993465,
-0.013718717731535435,
0.025480160489678383,
-0.0607466958463192,
-0.027312882244586945,
0.030907150357961655,
0.00535581586882472,
0.033949822187423706,
0.015435782261192799,
-0.028825322166085243,
-0.04679666459560394,
0.011192054487764835,
-0.01629876159131527,
0.023113638162612915,
-0.06014171987771988,
0.10156477987766266,
-0.006214348133653402,
0.011254331097006798,
-0.06654734909534454,
0.03583592548966408,
0.014163553714752197,
-0.007304194383323193,
0.08384254574775696,
0.02282894402742386,
-0.0536649227142334,
-0.006783736869692802,
0.003329591592773795,
0.0501418262720108,
0.02450152300298214,
-0.005791754461824894,
-0.009394919499754906,
0.01761547476053238,
-0.028060205280780792,
-0.0046129412949085236,
-0.04441234841942787,
-0.056333933025598526,
0.007633372209966183,
0.011788133531808853,
0.00928815919905901,
0.0125354565680027,
-0.04822013899683952,
0.006276624742895365,
0.04672549292445183,
0.016192002221941948,
-0.029448091983795166,
0.057188015431165695,
-0.011521232314407825,
-0.006681425031274557,
0.06391392648220062,
0.04800661653280258,
-0.016823668032884598,
0.07234799861907959,
-0.01980406418442726,
0.006837117485702038,
-0.004813116975128651,
-0.02090725488960743,
0.016423316672444344,
-0.017401954159140587,
0.030960531905293465,
0.03489287570118904,
0.044376760721206665,
0.047472815960645676,
-0.06039083003997803,
0.01574716717004776,
0.011734752915799618,
0.044376760721206665,
-0.00002934869917226024,
0.027615370228886604,
-0.03893197700381279,
-0.03960812836885452,
-0.024270210415124893,
0.02243748866021633,
-0.042704179883003235,
-0.0004642967542167753,
0.04515967145562172,
-0.048682767897844315,
-0.005458128172904253,
-0.0703551396727562,
0.05028417333960533,
0.036832354962825775,
0.040426623076200485,
-0.04106718674302101,
-0.015400195494294167,
0.0020373451989144087,
-0.027401849627494812,
0.026512179523706436,
0.049180980771780014,
-0.03822024166584015,
-0.037544094026088715,
0.024181243032217026,
-0.022366315126419067,
-0.04266859591007233,
-0.03711704909801483,
-0.018069205805659294,
0.03147653862833977,
-0.053593747317790985,
-0.03508860245347023,
0.0845542773604393,
0.01144116185605526,
-0.019572749733924866,
-0.010907359421253204,
0.029430298134684563,
-0.006334453355520964,
0.011912686750292778,
-0.04825572296977043,
-0.05224144831299782,
0.0024554904084652662,
-0.020889461040496826,
-0.01096074003726244,
0.05576454475522041,
-0.038647282868623734,
0.018718665465712547,
0.018309418112039566,
0.0048753940500319,
0.04106718674302101,
0.041138362139463425,
-0.011832617223262787,
0.10206299275159836,
-0.000049696434871293604,
0.0021796924993395805,
0.02773992344737053,
0.018309418112039566,
0.03624517470598221,
-0.024234622716903687,
0.06750819087028503,
-0.03174344077706337,
0.04889628663659096,
0.017740027979016304,
0.037437330931425095,
0.07857569307088852,
0.009688511490821838,
0.036173999309539795,
0.03140536695718765,
-0.034910667687654495,
-0.017321882769465446,
-0.03067583590745926,
0.03193916752934456,
-0.004339367616921663,
0.04021310433745384,
0.05352257192134857,
0.016111930832266808,
0.025960583239793777,
0.009510576725006104,
-0.037650853395462036,
0.02268659695982933,
-0.035978272557258606,
-0.07814864814281464,
0.004826462361961603,
-0.03483949601650238,
-0.0026979255490005016,
-0.026974808424711227,
0.0225264560431242,
-0.008500801399350166,
-0.0496080219745636,
-0.022917911410331726,
0.05953674763441086,
0.04128070920705795,
0.016227588057518005,
0.04003516957163811,
0.04729488119482994,
-0.035675786435604095,
-0.003547560889273882,
0.053380224853754044,
0.014216933399438858,
0.01747312769293785,
-0.008990120142698288,
0.003979051019996405,
-0.044483523815870285,
0.001959499204531312,
-0.005796202924102545,
-0.018772047013044357,
-0.03254414349794388,
0.008069311268627644,
0.04789985716342926,
0.014937566593289375,
0.042241550981998444,
-0.012775667943060398,
0.0075088185258209705,
0.05234820768237114,
-0.026102930307388306,
-0.04672549292445183,
-0.01298918854445219,
-0.0399995818734169,
-0.0005643846816383302,
0.0035942685790359974,
0.01698380894958973,
-0.023985514417290688,
0.034198932349681854,
-0.005120053421705961,
0.0876147449016571,
0.040889251977205276,
-0.017241813242435455,
0.04846924543380737,
-0.02120974287390709,
0.0007678968249820173,
0.01098742987960577,
-0.06647617369890213,
-0.013380642980337143,
-0.036120619624853134,
-0.012161795049905777,
-0.06626265496015549,
0.04273976758122444,
0.025177674368023872,
-0.02211720682680607,
0.04434117302298546,
-0.08441193401813507,
0.04583582282066345,
-0.0048531522043049335,
0.0010503671364858747,
-0.03701028972864151,
-0.0526684895157814,
-0.0181047935038805,
0.003712149802595377,
-0.013843271881341934,
-0.023433919996023178,
0.058647073805332184,
-0.05234820768237114,
-0.04967919737100601,
0.04064014554023743,
-0.01270449347794056,
0.00895898137241602,
0.05423431098461151,
-0.0016792529495432973,
0.008140484802424908,
-0.060070548206567764,
-0.006494594272226095,
-0.013665338046848774,
-0.008007033728063107,
-0.02247307449579239,
0.017401954159140587,
0.0082872798666358,
-0.00493767112493515,
-0.024537110701203346,
-0.044483523815870285,
-0.01389665249735117,
-0.014563905075192451,
0.039821647107601166,
-0.04469704255461693,
0.06373599171638489,
0.03152992203831673,
-0.03286442533135414,
0.017553197219967842,
0.047579575330019,
-0.03256193920969963,
-0.03345160931348801,
0.058042097836732864,
-0.10597754269838333,
0.003769978415220976,
-0.03147653862833977,
0.009074638597667217,
0.019519370049238205,
-0.0059696887619793415,
-0.01648559235036373,
-0.03234841674566269,
-0.031672269105911255,
0.05473252385854721,
-0.0430244617164135,
-0.04227713868021965,
-0.05021299794316292,
-0.11103086918592453,
0.04871835187077522,
-0.031049497425556183,
-0.06626265496015549,
0.00043705059215426445,
0.0344124510884285,
-0.022188380360603333,
-0.03989282250404358,
0.048326898366212845,
-0.03434127941727638,
0.02409227564930916,
0.03574695810675621,
0.01374540850520134,
0.03366512805223465,
0.016583457589149475,
0.00010912364086834714,
-0.021690165624022484,
-0.0006844901945441961,
0.013727614656090736,
0.017811201512813568,
0.07302414625883102,
0.0006405627354979515,
0.027010394260287285,
-0.021085189655423164,
0.028878701850771904,
0.042205967009067535,
0.0062276930548250675,
-0.04256183281540871,
-0.05960791930556297,
0.011610199697315693,
-0.03964371606707573,
0.042917702347040176,
0.011040810495615005,
-0.034501418471336365,
0.02612072415649891,
-0.013780995272099972,
-0.02466166391968727,
-0.02384316734969616,
-0.018700873479247093,
-0.01862969808280468,
-0.02414565533399582,
0.027401849627494812,
0.04120953381061554,
-0.014279210940003395,
-0.016992704942822456,
-0.029750579968094826,
-0.010391350835561752,
-0.056476280093193054,
0.0062098996713757515,
0.06679645925760269,
0.020088758319616318,
0.04537319391965866,
0.03259752318263054,
0.03145874664187431,
-0.016138622537255287,
0.014999843202531338,
-0.01128991786390543,
-0.025693682953715324,
-0.012010551057755947,
-0.008193864487111568,
0.02546236850321293,
-0.009070189669728279,
0.003400765359401703,
0.0125265596434474,
-0.030871564522385597,
0.007824651896953583,
-0.011841513216495514,
-0.04060455784201622,
-0.03558681905269623,
0.07437644898891449,
-0.04789985716342926,
-0.04668990522623062,
0.0018316090572625399,
-0.04120953381061554,
0.0007067319820635021,
0.03786437213420868,
0.028771942481398582,
-0.01761547476053238,
-0.011690269224345684,
0.028166966512799263,
0.062098994851112366,
-0.047508399933576584,
-0.026441005989909172,
0.12391329556703568,
-0.0364409014582634,
-0.011031913571059704,
-0.024875186383724213,
-0.06772171705961227,
-0.09686731547117233,
-0.010640458203852177,
-0.01862969808280468,
0.006516836117953062,
-0.009786374866962433,
-0.0073976097628474236,
0.02537340112030506,
-0.01939481496810913,
0.012295245192945004,
0.047508399933576584,
-0.018647491931915283,
0.012731184251606464,
0.01989303156733513,
-0.004764185287058353,
-0.019021153450012207,
-0.020070964470505714,
0.08341550081968307,
0.024074481800198555,
0.013211606070399284,
-0.02370082028210163,
0.007931412197649479,
-0.029323536902666092,
0.02886090986430645,
0.0000772901184973307,
0.03907432407140732,
-0.017570991069078445,
-0.02870076894760132,
-0.010320177301764488,
0.014394868165254593,
0.019661717116832733,
-0.05305994674563408,
-0.017126156017184258,
-0.06708115339279175,
0.027561990544199944,
-0.021796924993395805,
0.01772223599255085,
0.02014213800430298,
0.02293570339679718,
0.08519484102725983,
-0.0029737234581261873
]
|
30,095 | networkx.classes.digraph | remove_edge | Remove the edge between u and v.
Parameters
----------
u, v : nodes
Remove the edge between nodes u and v.
Raises
------
NetworkXError
If there is not an edge between u and v.
See Also
--------
remove_edges_from : remove a collection of edges
Examples
--------
>>> G = nx.Graph() # or DiGraph, etc
>>> nx.add_path(G, [0, 1, 2, 3])
>>> G.remove_edge(0, 1)
>>> e = (1, 2)
>>> G.remove_edge(*e) # unpacks e from an edge tuple
>>> e = (2, 3, {"weight": 7}) # an edge with attribute data
>>> G.remove_edge(*e[:2]) # select first part of edge tuple
| def remove_edge(self, u, v):
"""Remove the edge between u and v.
Parameters
----------
u, v : nodes
Remove the edge between nodes u and v.
Raises
------
NetworkXError
If there is not an edge between u and v.
See Also
--------
remove_edges_from : remove a collection of edges
Examples
--------
>>> G = nx.Graph() # or DiGraph, etc
>>> nx.add_path(G, [0, 1, 2, 3])
>>> G.remove_edge(0, 1)
>>> e = (1, 2)
>>> G.remove_edge(*e) # unpacks e from an edge tuple
>>> e = (2, 3, {"weight": 7}) # an edge with attribute data
>>> G.remove_edge(*e[:2]) # select first part of edge tuple
"""
try:
del self._succ[u][v]
del self._pred[v][u]
except KeyError as err:
raise NetworkXError(f"The edge {u}-{v} not in graph.") from err
nx._clear_cache(self)
| (self, u, v) | [
-0.005785389803349972,
0.029338141903281212,
-0.008118671365082264,
0.04941966012120247,
-0.04150180518627167,
-0.027100486680865288,
-0.02790374867618084,
0.0944022610783577,
0.06280733644962311,
-0.015596645884215832,
0.005536761600524187,
0.044064588844776154,
0.030409157276153564,
0.00970606692135334,
0.0029094296041876078,
0.06655588746070862,
0.020597901195287704,
0.013856247998774052,
0.019077442586421967,
0.01068145502358675,
-0.016208654269576073,
-0.048195645213127136,
-0.00008419594814768061,
0.04383508488535881,
-0.01836024597287178,
0.012861734256148338,
-0.004982129205018282,
-0.026564979925751686,
0.020330145955085754,
-0.041960809379816055,
-0.005479385610669851,
-0.020444897934794426,
-0.04295532405376434,
-0.005044286139309406,
0.051829442381858826,
0.043337829411029816,
0.005249882582575083,
0.03802100941538811,
-0.09325474500656128,
-0.012421853840351105,
-0.04314657673239708,
-0.00471915677189827,
0.030657785013318062,
0.02379181794822216,
0.05982379987835884,
0.004468137864023447,
0.042802322655916214,
-0.017499608919024467,
-0.010480640456080437,
-0.002997883828356862,
0.00012498653086367995,
0.03157579526305199,
0.03475058823823929,
0.016696348786354065,
-0.006143988575786352,
-0.01089183334261179,
-0.04211381450295448,
0.02811412513256073,
0.0025436589494347572,
0.0712224543094635,
-0.004558982793241739,
0.0007907098042778671,
-0.026966610923409462,
0.0171362292021513,
0.005656294524669647,
0.0072771599516272545,
-0.006794246844947338,
-0.020024143159389496,
-0.04842514544725418,
-0.01762392371892929,
0.007358442060649395,
0.003566860221326351,
-0.017317919060587883,
0.02168804034590721,
0.032206930220127106,
0.02241479977965355,
0.022166172042489052,
0.04188431054353714,
0.048080891370773315,
-0.03503746911883354,
0.0706869438290596,
-0.04276407137513161,
-0.0038322231266647577,
-0.06196582689881325,
0.027521243318915367,
0.017805613577365875,
-0.01687803864479065,
-0.012316664680838585,
-0.007238909136503935,
-0.017279667779803276,
-0.038537390530109406,
-0.018494121730327606,
-0.07653927057981491,
0.020750902593135834,
0.009548284113407135,
0.04173130914568901,
0.037064746022224426,
-0.02721523866057396,
-0.00024250226852018386,
-0.06927167624235153,
0.04811914265155792,
0.014649946242570877,
-0.08002007007598877,
0.03126979246735573,
-0.03192005306482315,
-0.0316331721842289,
0.033258818089962006,
-0.03771500289440155,
-0.028075875714421272,
-0.02679448388516903,
-0.025340963155031204,
0.029950151219964027,
0.018341120332479477,
0.021018655970692635,
-0.02526446245610714,
0.03769587725400925,
-0.034941840916872025,
-0.041960809379816055,
0.04341433197259903,
0.04601536691188812,
-0.0016483579529449344,
0.026832733303308487,
-0.05125568434596062,
-0.03553472459316254,
0.039704032242298126,
-0.05515723675489426,
0.0117333447560668,
-0.016906725242733955,
-0.0027325209230184555,
-0.043070074170827866,
0.0066173383966088295,
-0.03142279386520386,
0.009270967915654182,
0.007430161815136671,
-0.0028496631421148777,
-0.0527474544942379,
-0.021114282310009003,
-0.0025795188266783953,
0.0796375647187233,
-0.006559962872415781,
-0.010002508759498596,
-0.003975662402808666,
0.03775325417518616,
0.02585734613239765,
0.013387679122388363,
-0.05041417479515076,
-0.002006956608965993,
-0.05091143026947975,
0.016266029328107834,
0.021439410746097565,
-0.027827246114611626,
0.02120990864932537,
0.02685185894370079,
-0.01531932968646288,
-0.01179071981459856,
0.015357580035924911,
-0.026469353586435318,
-0.02757861837744713,
-0.039053771644830704,
0.013760621659457684,
0.02394481934607029,
0.006426085717976093,
0.05316821113228798,
-0.013282489962875843,
0.028917387127876282,
0.014726446941494942,
0.10243486613035202,
0.014171814545989037,
-0.0035477348137646914,
0.04245806857943535,
-0.05997680127620697,
-0.03920677304267883,
-0.04092804715037346,
0.000990927335806191,
-0.030237028375267982,
-0.002133661415427923,
0.03417683020234108,
0.0023751177359372377,
-0.008276454173028469,
-0.00294050807133317,
0.034157708287239075,
-0.01618952862918377,
0.02421257272362709,
-0.050299420952796936,
0.021917542442679405,
-0.0171362292021513,
-0.003791581839323044,
-0.0009867436019703746,
0.006646026391535997,
-0.031728800386190414,
-0.01593133807182312,
-0.05443047732114792,
0.004272103775292635,
0.08629315346479416,
0.04842514544725418,
-0.05481298267841339,
0.013770184479653835,
0.036529239267110825,
-0.031671423465013504,
-0.006512149702757597,
0.012259288690984249,
0.002005761256441474,
0.010844020172953606,
0.04245806857943535,
-0.01994764246046543,
-0.010949208401143551,
0.051982443779706955,
-0.02579996921122074,
0.05179119110107422,
0.013961436226963997,
0.03576422855257988,
-0.022032294422388077,
0.07324972748756409,
0.02384919300675392,
0.012986048124730587,
-0.031996551901102066,
-0.0912657231092453,
0.07887255400419235,
-0.00045153533574193716,
0.04215206205844879,
-0.041807807981967926,
0.00933312438428402,
0.04896065592765808,
-0.026545854285359383,
0.06739740073680878,
-0.04066029191017151,
-0.038269635289907455,
-0.03012227825820446,
0.04574761167168617,
-0.05576924607157707,
0.06020630523562431,
-0.00891715008765459,
0.05079668015241623,
-0.027941998094320297,
0.01068145502358675,
0.06613513082265854,
-0.050452426075935364,
0.044179338961839676,
0.021439410746097565,
0.01360761933028698,
0.02184104174375534,
-0.04066029191017151,
-0.014018812216818333,
0.014315254054963589,
0.022013168781995773,
0.015481894835829735,
0.026870984584093094,
0.03184355050325394,
-0.024289075285196304,
-0.026966610923409462,
-0.01495594996958971,
-0.016858913004398346,
0.000004440458724275231,
0.03842264041304588,
0.053933221846818924,
-0.013091237284243107,
-0.003540562931448221,
-0.0765010192990303,
-0.011800282634794712,
0.0490754060447216,
0.005742358043789864,
0.00716240843757987,
0.005178162828087807,
0.03962752968072891,
0.05580749735236168,
-0.019813764840364456,
-0.009027120657265186,
0.050567176192998886,
-0.006808591075241566,
-0.0100216343998909,
-0.044064588844776154,
-0.039742279797792435,
0.0337752029299736,
0.005139912478625774,
-0.008166484534740448,
0.016629409044981003,
-0.06510236859321594,
0.009055808186531067,
0.024078696966171265,
0.011216962710022926,
-0.024556828662753105,
-0.04356733337044716,
-0.020712651312351227,
0.06112431734800339,
-0.022548675537109375,
0.0014606914483010769,
0.03498009219765663,
-0.022376548498868942,
0.04685687646269798,
0.0016447720117866993,
0.045173853635787964,
-0.040163036435842514,
-0.030466532334685326,
0.0077122594229876995,
0.03461671248078346,
0.07458849996328354,
0.04601536691188812,
0.015271516516804695,
0.012259288690984249,
0.029567645862698555,
0.07309672981500626,
-0.018102053552865982,
-0.06150682270526886,
-0.041272301226854324,
0.032991066575050354,
-0.02721523866057396,
0.06452861428260803,
-0.0048123924061656,
0.003875254886224866,
0.013272927142679691,
-0.052097197622060776,
-0.015730522572994232,
-0.044064588844776154,
0.014143126085400581,
-0.0008325462695211172,
0.026832733303308487,
0.013234676793217659,
0.0026918796356767416,
0.03582160547375679,
-0.0203110221773386,
-0.01239316537976265,
0.02184104174375534,
-0.014783822931349277,
-0.004604405257850885,
-0.005661075469106436,
0.027827246114611626,
0.00195794808678329,
0.04398808628320694,
-0.024652455002069473,
0.0606653094291687,
0.0013782137539237738,
0.0057184514589607716,
-0.010136385448276997,
0.013664995320141315,
-0.07324972748756409,
0.02706223726272583,
0.0569550096988678,
0.04337608069181442,
0.04031603783369064,
0.025455715134739876,
0.06781815737485886,
0.07917855679988861,
-0.003975662402808666,
0.011427340097725391,
0.0031006820499897003,
0.011609029956161976,
-0.05955604463815689,
-0.03411945700645447,
-0.012460104189813137,
0.02379181794822216,
0.02436557598412037,
0.07156670838594437,
-0.013760621659457684,
-0.011197837069630623,
0.015376705676317215,
0.03260856121778488,
-0.04268756881356239,
-0.035266973078250885,
0.04257281869649887,
-0.02943376824259758,
0.00032094569178298116,
0.017317919060587883,
0.012421853840351105,
-0.023830069229006767,
-0.05886753648519516,
-0.005029942374676466,
-0.04861639812588692,
-0.002390656853094697,
-0.014210064895451069,
0.001518067205324769,
0.001926869503222406,
-0.05014641955494881,
0.035745102912187576,
0.01052845362573862,
-0.0022782960440963507,
0.0643756091594696,
-0.0025532215368002653,
0.03012227825820446,
0.01989026553928852,
0.01289998460561037,
0.016476407647132874,
0.013454617001116276,
0.004929534625262022,
0.010165072977542877,
0.010126822628080845,
-0.010279824957251549,
0.011857658624649048,
0.0013949483400210738,
0.002394242910668254,
0.05473648011684418,
-0.045173853635787964,
0.0012407510075718164,
0.038212262094020844,
-0.03176704794168472,
-0.05052892491221428,
-0.06724439561367035,
0.04119580239057541,
0.027712495997548103,
-0.01603652723133564,
-0.07003668695688248,
0.02363881655037403,
0.050567176192998886,
-0.05244145169854164,
0.02115253359079361,
0.03886251896619797,
-0.03039003163576126,
-0.014602133072912693,
0.04023953899741173,
0.03392820432782173,
-0.05423922464251518,
-0.00297397724352777,
0.0052116322331130505,
-0.022280922159552574,
0.008448581211268902,
0.009337905794382095,
-0.02648847922682762,
0.05408622324466705,
-0.03756200149655342,
0.03308669105172157,
-0.016734598204493523,
-0.010509327985346317,
0.03174792602658272,
-0.011561216786503792,
-0.06231008470058441,
-0.0032321682665497065,
-0.028343629091978073,
0.015845274552702904,
-0.0028401005547493696,
-0.01645728200674057,
0.07244646549224854,
-0.02954852022230625,
-0.08644615858793259,
0.045020852237939835,
-0.030849037691950798,
-0.01347374264150858,
0.004174087196588516,
-0.018063804134726524,
-0.014028375037014484,
0.03981878235936165,
0.028783509507775307,
-0.057949524372816086,
-0.01857062242925167,
0.02352406457066536,
-0.01350243017077446,
-0.0332205705344677,
-0.001978268614038825,
-0.08254460245370865,
0.010165072977542877,
0.007501881569623947,
-0.012909547425806522,
-0.020597901195287704,
-0.02754036895930767,
0.001421245513483882,
-0.0649111196398735,
-0.043796833604574203,
-0.029510268941521645,
-0.0569550096988678,
-0.01657203398644924,
-0.02115253359079361,
0.02241479977965355,
0.031881801784038544,
0.008749804459512234,
-0.0691186711192131,
-0.06181282550096512,
-0.03939802572131157,
0.05871453508734703,
0.13854335248470306,
-0.04884590208530426,
-0.04674212634563446,
-0.0138466851785779,
0.003043306292966008,
-0.08636965602636337,
-0.033469196408987045,
-0.014372630044817924,
0.012058474123477936,
0.016275592148303986,
-0.017700424417853355,
0.0008612341480329633,
0.04785139113664627,
-0.05882928520441055,
-0.012613106518983841,
-0.013253802433609962,
-0.004967784974724054,
0.014066625386476517,
0.04743063449859619,
0.012507917359471321,
-0.03017965331673622,
-0.009452657774090767,
0.0023990243207663298,
0.019928516820073128,
0.023294560611248016,
-0.052938707172870636,
-0.038900770246982574,
0.006406960543245077,
0.06624988466501236,
-0.004740672651678324,
-0.032933689653873444,
-0.03117416612803936,
0.04192256182432175,
-0.026335477828979492,
0.006928123999387026,
-0.00043061707401648164,
-0.03501834347844124,
-0.06296034157276154,
0.05676375702023506,
0.022357424721121788,
-0.0037628940772265196,
0.04804264381527901,
-0.007454068399965763,
-0.0018168992828577757,
0.03561122715473175,
0.05886753648519516,
0.06231008470058441,
0.10557141155004501,
0.061851076781749725,
0.025092335417866707,
-0.013492868281900883,
0.02874526008963585,
0.029625020921230316,
-0.007047656923532486,
0.039321526885032654,
0.022491300478577614,
0.03714124485850334,
0.0638018548488617,
-0.04498260095715523,
0.031212417408823967,
-0.04245806857943535,
0.0021025827154517174,
0.020846528932452202,
0.012670481577515602,
0.016581596806645393,
0.028018498793244362,
-0.0332205705344677,
0.019852016121149063,
0.009964258410036564,
0.0192495696246624,
-0.01639990694820881,
0.018082929775118828,
0.01421962771564722,
0.01421962771564722,
0.016132153570652008,
0.004570936318486929,
-0.019699012860655785,
0.05607524886727333,
-0.03144191950559616,
0.012307101860642433,
0.02996927499771118,
0.013234676793217659,
0.00612008199095726,
-0.018905315548181534,
-0.06720615178346634,
0.018073366954922676,
0.026928359642624855,
0.00828601699322462,
0.017528297379612923,
0.00891715008765459,
-0.02304593287408352,
0.05986205115914345,
0.0037748473696410656,
0.00006406213651644066,
-0.0406220443546772,
-0.03792538121342659,
0.037485502660274506,
0.017222292721271515,
-0.03369870036840439,
0.0432613268494606,
0.010480640456080437,
-0.08338611572980881,
0.04035428911447525,
-0.015300204046070576,
-0.060435809195041656,
0.0210951566696167,
-0.013884935528039932,
-0.018647124990820885,
-0.08499263972043991,
0.02673710696399212,
0.011331713758409023,
-0.014152688905596733,
0.012488791719079018,
-0.017002351582050323,
-0.09103621542453766,
-0.015376705676317215,
0.03476971387863159,
0.027157863602042198,
-0.04842514544725418,
-0.006961592938750982,
0.00507775554433465,
-0.015290642157196999,
-0.03545822575688362,
0.05041417479515076,
0.0390155203640461,
-0.08866468816995621,
0.03159492090344429,
0.008080420084297657,
-0.0051112244836986065,
-0.008343392983078957,
-0.008118671365082264,
0.0009395281667821109,
-0.027043111622333527,
-0.0015670756110921502,
-0.010375451296567917,
-0.06827716529369354,
0.09983383119106293,
0.018293306231498718,
-0.06097131595015526,
0.031518422067165375,
-0.019077442586421967,
-0.053933221846818924,
-0.023447563871741295,
-0.0559222474694252,
-0.0015814196085557342,
0.06246308609843254,
-0.021821916103363037,
0.004205165430903435,
-0.03102116473019123,
-0.0009449071367271245,
0.0070285312831401825,
0.0035620788112282753,
-0.08675216138362885,
-0.005704107694327831,
0.0003544148930814117,
-0.06774165481328964,
-0.017920363694429398,
-0.009983383119106293,
-0.00799435656517744,
0.053206462413072586,
0.03981878235936165,
0.02907038852572441,
-0.04609186574816704,
0.07351747900247574,
-0.05580749735236168,
-0.09577927738428116,
0.0011833751341328025,
0.06617338210344315,
-0.012813921086490154,
-0.06238658353686333,
0.03792538121342659,
0.020923029631376266,
-0.02826712839305401,
0.04505910351872444,
0.040698543190956116,
0.0021252939477562904,
-0.051982443779706955,
-0.0000800123016233556,
-0.032780688256025314,
0.021611539646983147,
-0.02289293147623539,
-0.008964963257312775,
-0.0022424361668527126,
0.00994513276964426,
0.08040257543325424,
0.026870984584093094,
0.003521437756717205,
-0.045824114233255386,
0.027176987379789352,
0.0659056305885315,
0.022185295820236206,
0.0030624314676970243,
0.012708731926977634,
0.01730835624039173,
-0.014372630044817924,
0.006110519170761108,
0.06315159052610397,
-0.013798872008919716,
-0.021190783008933067,
0.07133720070123672,
-0.01202978566288948,
-0.06108606606721878,
-0.026354601606726646,
-0.03201567754149437,
0.04119580239057541,
-0.008534645661711693,
-0.024269949644804,
-0.03350744768977165,
-0.04743063449859619,
-0.029931025579571724,
0.02568521909415722,
-0.0379827581346035,
-0.047086380422115326,
-0.02637372724711895,
-0.0038800362963229418,
0.058676283806562424,
0.017078854143619537,
-0.03664398938417435,
-0.014181377366185188,
-0.017537860199809074,
-0.04842514544725418,
0.017576109617948532,
-0.040545541793107986,
-0.03951277956366539,
-0.04467659816145897,
-0.06636463850736618,
-0.017078854143619537,
-0.03343094512820244,
-0.014994200319051743,
-0.05913529172539711,
-0.00013044022489339113,
-0.09700329601764679,
0.04287882149219513,
0.034253332763910294,
0.04299357533454895,
0.025245336815714836,
-0.007764854002743959,
-0.007970450446009636,
-0.011197837069630623,
-0.02337106317281723,
0.006660370156168938,
-0.03528609499335289,
-0.002942898776382208,
0.018637562170624733,
-0.015242828987538815,
-0.034941840916872025,
0.011341276578605175,
-0.03419595584273338,
0.07179620862007141,
0.06735914945602417,
-0.038747768849134445,
-0.05251795053482056,
-0.05553974211215973,
0.027655119076371193,
-0.04421759024262428,
0.007468412164598703,
0.019641637802124023,
0.02736824005842209,
-0.0189818162471056,
-0.04563286155462265,
-0.008878899738192558,
-0.044714849442243576,
-0.02838187851011753,
0.05458347871899605,
-0.036414485424757004,
0.038747768849134445,
-0.0028401005547493696,
0.04700987786054611,
0.008348174393177032,
0.01751873455941677,
-0.0026536292862147093,
0.026335477828979492,
0.07669227570295334,
-0.004582889378070831,
-0.0041908216662704945,
0.0011331713758409023,
-0.02457595430314541,
-0.02193666808307171,
0.021114282310009003,
-0.004147789906710386,
-0.023925695568323135,
0.07917855679988861,
-0.030141402035951614,
-0.027023985981941223,
0.007975231856107712,
-0.03069603443145752,
-0.019020067527890205,
0.036165859550237656,
-0.006942467764019966,
-0.028018498793244362,
0.010222448967397213,
-0.0023524065036326647,
-0.03475058823823929,
-0.05898228660225868,
-0.022720804437994957,
0.0240021962672472,
-0.0553867407143116,
-0.00594795448705554,
-0.023983070626854897,
0.042496319860219955,
0.061583321541547775,
0.033832576125860214
]
|
30,096 | networkx.classes.digraph | remove_edges_from | Remove all edges specified in ebunch.
Parameters
----------
ebunch: list or container of edge tuples
Each edge given in the list or container will be removed
from the graph. The edges can be:
- 2-tuples (u, v) edge between u and v.
- 3-tuples (u, v, k) where k is ignored.
See Also
--------
remove_edge : remove a single edge
Notes
-----
Will fail silently if an edge in ebunch is not in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> ebunch = [(1, 2), (2, 3)]
>>> G.remove_edges_from(ebunch)
| def remove_edges_from(self, ebunch):
"""Remove all edges specified in ebunch.
Parameters
----------
ebunch: list or container of edge tuples
Each edge given in the list or container will be removed
from the graph. The edges can be:
- 2-tuples (u, v) edge between u and v.
- 3-tuples (u, v, k) where k is ignored.
See Also
--------
remove_edge : remove a single edge
Notes
-----
Will fail silently if an edge in ebunch is not in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> ebunch = [(1, 2), (2, 3)]
>>> G.remove_edges_from(ebunch)
"""
for e in ebunch:
u, v = e[:2] # ignore edge data
if u in self._succ and v in self._succ[u]:
del self._succ[u][v]
del self._pred[v][u]
nx._clear_cache(self)
| (self, ebunch) | [
-0.026349367573857307,
0.020291615277528763,
-0.021610941737890244,
0.007242359686642885,
-0.1224929690361023,
-0.02419384941458702,
-0.03536166995763779,
0.044113822281360626,
0.06496290117502213,
0.010851926170289516,
-0.02306034229695797,
0.019808480516076088,
-0.006113499402999878,
0.02800317108631134,
0.0015562479384243488,
0.02924817055463791,
0.03318756818771362,
-0.008603496477007866,
0.039802782237529755,
0.009049465879797935,
-0.031663838773965836,
-0.0373685322701931,
0.011994723230600357,
0.07365930825471878,
-0.04392800107598305,
0.01677960529923439,
-0.0040276627987623215,
-0.04206979647278786,
-0.009978569112718105,
0.011474424973130226,
0.012078342027962208,
-0.037758756428956985,
-0.0245469082146883,
-0.02430534176528454,
0.04478277638554573,
0.012338491156697273,
0.0370340570807457,
0.03302032873034477,
-0.06711842119693756,
0.011260731145739555,
-0.0037930640392005444,
0.0210163164883852,
0.04600919410586357,
0.021164972335100174,
0.08324765413999557,
0.03242570534348488,
0.04797889292240143,
0.0015783141134306788,
0.008069261908531189,
0.00011628308129729703,
-0.00803674291819334,
0.0180524755269289,
-0.006076335441321135,
0.03073473647236824,
0.03673674166202545,
0.0023134672082960606,
-0.061692457646131516,
0.028411976993083954,
0.03857636824250221,
0.04953978583216667,
-0.025996308773756027,
-0.013592780567705631,
0.034767042845487595,
-0.023209000006318092,
0.006605924107134342,
-0.0037558998446911573,
-0.06325335055589676,
0.003971916623413563,
-0.05634082108736038,
-0.02668384462594986,
-0.05344201996922493,
0.00039777232450433075,
-0.028690708801150322,
0.027612948790192604,
0.037052638828754425,
0.004345880355685949,
-0.0190837811678648,
0.07982855290174484,
-0.02571757882833481,
-0.04374217987060547,
0.04377934709191322,
-0.01086121704429388,
-0.026906829327344894,
-0.02410093881189823,
0.06109783053398132,
0.039431143552064896,
0.006155309267342091,
0.03212838992476463,
0.015255874954164028,
-0.03328047692775726,
0.014168825000524521,
-0.04459695518016815,
-0.07551751285791397,
-0.019046615809202194,
0.043853674083948135,
0.06210125982761383,
-0.04675247520208359,
0.01750430464744568,
-0.015423114411532879,
-0.06808468699455261,
0.05043172463774681,
-0.04582337290048599,
-0.06031738221645355,
0.017662253230810165,
-0.014661249704658985,
-0.004378398880362511,
-0.0015353431226685643,
-0.05396231636404991,
0.01736493967473507,
-0.01016438938677311,
-0.0612836517393589,
0.06808468699455261,
0.028857946395874023,
-0.03824188932776451,
-0.04311038926243782,
0.005416671745479107,
0.019139526411890984,
-0.07685542106628418,
0.0039649480022490025,
0.012552184984087944,
-0.014698413200676441,
0.0436306893825531,
-0.015636807307600975,
0.04708695411682129,
0.050580382347106934,
-0.011232858523726463,
0.004473632201552391,
0.025736160576343536,
0.007469990290701389,
-0.09915389865636826,
0.03913382813334465,
-0.05325619876384735,
-0.026107801124453545,
-0.02482563816010952,
-0.01962266117334366,
-0.013815765269100666,
-0.0035468516871333122,
-0.03861353173851967,
0.07588915526866913,
0.03197973221540451,
-0.034599803388118744,
0.02818899229168892,
0.03569614514708519,
0.04478277638554573,
-0.03318756818771362,
-0.051286499947309494,
-0.013499869965016842,
-0.029173841699957848,
-0.0006968274246901274,
0.05176963284611702,
-0.07403095066547394,
0.04232994467020035,
-0.013351214118301868,
-0.036439429968595505,
-0.0210163164883852,
-0.002075384370982647,
-0.050394561141729355,
0.038502037525177,
-0.04697545990347862,
0.013546325266361237,
-0.007474635727703571,
0.018879378214478493,
0.011288604699075222,
-0.034395404160022736,
-0.030270183458924294,
-0.038502037525177,
0.054817091673612595,
0.03995143994688988,
-0.03372644633054733,
0.0333733893930912,
-0.04586053639650345,
-0.006341129541397095,
-0.03002861700952053,
0.0011637018760666251,
-0.01722557470202446,
-0.011446552351117134,
0.030084364116191864,
0.011976140551269054,
-0.0024017319083213806,
-0.0202172864228487,
-0.02419384941458702,
-0.019548332318663597,
0.007228423375636339,
-0.036885399371385574,
0.04701262339949608,
0.006647733971476555,
-0.031570930033922195,
-0.0019534395541995764,
-0.0032448931597173214,
-0.06009439751505852,
-0.05333052575588226,
-0.037145547568798065,
0.017309194430708885,
0.05608067288994789,
0.045786209404468536,
-0.023617804050445557,
-0.014977144077420235,
0.029099514707922935,
-0.04887083172798157,
-0.01656591147184372,
-0.031124958768486977,
-0.005653593223541975,
0.046232178807258606,
0.019102362915873528,
0.02809608168900013,
0.0011997045949101448,
0.03110637702047825,
-0.03393084928393364,
0.07640945166349411,
0.03796315938234329,
0.023357655853033066,
-0.05202978104352951,
0.07339915633201599,
-0.025866234675049782,
0.025122951716184616,
-0.02439825050532818,
-0.0644797682762146,
0.026906829327344894,
0.01899087056517601,
0.0020858368370682,
-0.03145943582057953,
-0.027334216982126236,
0.02828190289437771,
-0.05273590236902237,
0.010870507918298244,
0.01254289411008358,
-0.030678989365696907,
-0.010768306441605091,
0.04240427166223526,
-0.00839909352362156,
0.05255008116364479,
-0.06042887642979622,
0.0500229187309742,
-0.04065755754709244,
0.06942259520292282,
0.0718754306435585,
-0.07384512573480606,
0.013704272918403149,
0.03632793575525284,
0.01562751643359661,
-0.02304176054894924,
-0.005978779401630163,
-0.012775169685482979,
-0.020867658779025078,
0.0561549998819828,
0.013518452644348145,
0.031143540516495705,
-0.02772444114089012,
-0.046232178807258606,
-0.008180754259228706,
0.033875104039907455,
-0.024807056412100792,
0.0474957600235939,
-0.01665882207453251,
0.03673674166202545,
-0.01748572289943695,
-0.00770691130310297,
-0.017374230548739433,
0.009532599709928036,
0.0020370588172227144,
0.06637513637542725,
-0.03339197114109993,
0.02077474817633629,
0.053479183465242386,
0.043073225766420364,
0.04140084236860275,
-0.007391016464680433,
0.01281233411282301,
-0.046418000012636185,
-0.0019348575733602047,
0.03374503180384636,
-0.06760155409574509,
0.03673674166202545,
0.04779307171702385,
-0.028504887595772743,
0.05210411176085472,
-0.06663528829813004,
0.017550760880112648,
-0.0180524755269289,
0.004146123304963112,
0.0023785042576491833,
-0.01604561321437359,
-0.0018431085627526045,
0.05043172463774681,
-0.0021357762161642313,
-0.007121576461941004,
0.024361087009310722,
-0.06537170708179474,
0.051026351749897,
0.003565433667972684,
0.0741424411535263,
-0.05028306692838669,
-0.03957979753613472,
-0.03500860929489136,
0.03435823693871498,
0.053144704550504684,
0.022149821743369102,
-0.02385937236249447,
-0.0072702327743172646,
0.06938543170690536,
0.07611213624477386,
-0.05113784223794937,
-0.018154677003622055,
-0.010526739992201328,
0.018935123458504677,
-0.004515441600233316,
0.05756723880767822,
0.0014308190438896418,
-0.007024020422250032,
0.0009436205145902932,
-0.06139514222741127,
-0.023729296401143074,
-0.0741424411535263,
-0.06745289266109467,
0.014893525280058384,
0.018935123458504677,
0.035658981651067734,
0.005593201611191034,
0.02595914527773857,
0.004445759113878012,
-0.013880802318453789,
0.03049316816031933,
-0.020050048828125,
0.023097507655620575,
0.01533020380884409,
0.017560051754117012,
-0.007669747341424227,
0.03842771053314209,
-0.02287452295422554,
0.02755720168352127,
-0.02162952348589897,
-0.018201133236289024,
-0.0053051793947815895,
0.044299643486738205,
0.006136727053672075,
0.030623242259025574,
0.04504292458295822,
0.03790741413831711,
-0.01809893175959587,
-0.022725865244865417,
0.05299605056643486,
0.063550665974617,
0.005751149263232946,
-0.00310320477001369,
0.042887404561042786,
0.025754742324352264,
-0.05864499881863594,
0.0037930640392005444,
-0.0067778080701828,
0.05169530585408211,
-0.006048462353646755,
0.0673414021730423,
0.0083433473482728,
-0.010424538515508175,
0.04337054118514061,
0.07745004445314407,
-0.03164525702595711,
-0.023822207003831863,
0.020254451781511307,
-0.015358076430857182,
0.04210695996880531,
0.0009894949616864324,
0.01941825821995735,
-0.05425962805747986,
0.037944577634334564,
-0.004975347779691219,
-0.034413985908031464,
-0.023896535858511925,
-0.007339915726333857,
-0.021332209929823875,
-0.015320912934839725,
-0.014958562329411507,
-0.00900301057845354,
-0.028337650001049042,
-0.016101358458399773,
0.0157204270362854,
0.008543104864656925,
0.02932249940931797,
0.0015736686764284968,
0.11149238795042038,
-0.013964422047138214,
0.028207574039697647,
-0.0008419998339377344,
0.02103489823639393,
0.03675532341003418,
-0.03145943582057953,
-0.0330389104783535,
0.024156684055924416,
0.041289348155260086,
0.0022925622761249542,
0.009671964682638645,
-0.023357655853033066,
0.04838769882917404,
0.01152088027447462,
-0.04318471997976303,
-0.0686049833893776,
0.026033472269773483,
0.031124958768486977,
-0.027538619935512543,
-0.040694721043109894,
0.011409387923777103,
0.015757590532302856,
-0.024156684055924416,
0.05964842811226845,
0.02252146229147911,
-0.03504577651619911,
-0.0378330834209919,
-0.0032077289652079344,
0.05730708688497543,
-0.030511749908328056,
0.07856497168540955,
0.0015748300356790423,
-0.015878373757004738,
0.031032048165798187,
0.014763450250029564,
-0.029991453513503075,
-0.0008739377371966839,
-0.03755435347557068,
0.04901948943734169,
0.011204984970390797,
0.04251576587557793,
0.03171958401799202,
0.0031473373528569937,
-0.060280218720436096,
0.027445709332823753,
0.013332631438970566,
-0.009309615008533001,
-0.004436468239873648,
-0.031329359859228134,
0.07269303500652313,
-0.028690708801150322,
-0.04901948943734169,
-0.014958562329411507,
-0.021332209929823875,
-0.014763450250029564,
0.011901812627911568,
-0.04322188347578049,
-0.008115717209875584,
0.04028591886162758,
-0.0052029783837497234,
-0.051286499947309494,
-0.008199336007237434,
0.01275658793747425,
-0.07217273861169815,
-0.016668112948536873,
-0.007140158675611019,
-0.04868501052260399,
-0.007525736466050148,
0.028765035793185234,
0.01364852674305439,
-0.0378330834209919,
-0.04206979647278786,
-0.025940563529729843,
-0.07915959507226944,
-0.060726188123226166,
0.011279313825070858,
-0.002856992417946458,
0.021518031135201454,
-0.06890229880809784,
0.04593486338853836,
0.06566901504993439,
-0.052438586950302124,
-0.04407665878534317,
-0.022298477590084076,
-0.01109349261969328,
0.020700421184301376,
0.08495720475912094,
0.004845273680984974,
0.003221665509045124,
0.002880220068618655,
0.003911524545401335,
-0.10086344927549362,
-0.014772742055356503,
-0.01127002201974392,
0.018572773784399033,
0.045005761086940765,
-0.04574904590845108,
-0.022317059338092804,
0.046789638698101044,
-0.004606029484421015,
-0.007075121160596609,
-0.028932275250554085,
0.022948849946260452,
0.008403738960623741,
0.014475428499281406,
-0.01254289411008358,
-0.05017157644033432,
-0.062064096331596375,
-0.026089219376444817,
-0.031496599316596985,
0.011539462022483349,
-0.09343062341213226,
-0.03207264468073845,
0.015450987033545971,
0.09841061383485794,
0.030846228823065758,
-0.026144964620471,
0.0005653012776747346,
0.03365211933851242,
-0.04478277638554573,
-0.019455421715974808,
0.04311038926243782,
0.01448471937328577,
-0.027427127584815025,
0.03359637409448624,
0.023636387661099434,
0.025327354669570923,
0.04080621525645256,
-0.012765878811478615,
-0.035566072911024094,
0.032555777579545975,
0.019306765869259834,
0.013620654121041298,
0.03842771053314209,
0.02058892883360386,
-0.02692541293799877,
-0.01413166057318449,
0.01917669177055359,
0.008078552782535553,
0.036160700023174286,
0.036792490631341934,
0.01581333763897419,
0.00017478755034971982,
0.10510016232728958,
-0.016984008252620697,
-0.0018454312812536955,
0.01757863350212574,
0.005147232208400965,
0.035027191042900085,
-0.005356280133128166,
0.041289348155260086,
0.03707122057676315,
0.021759597584605217,
0.04838769882917404,
0.056303657591342926,
0.03075331822037697,
-0.001571345841512084,
-0.024676982313394547,
0.04459695518016815,
0.06280738115310669,
0.009802039712667465,
-0.004157736897468567,
0.01731848530471325,
0.06775020807981491,
-0.06953408569097519,
0.040843378752470016,
0.002638653153553605,
0.0235806405544281,
0.015107219107449055,
0.01496785320341587,
-0.03277876228094101,
0.012645095586776733,
0.029211007058620453,
0.009829912334680557,
0.02536451816558838,
-0.062064096331596375,
-0.010601067915558815,
0.06262155622243881,
0.02906234934926033,
-0.005713984835892916,
-0.0840652659535408,
-0.019232437014579773,
0.013657817617058754,
0.023171834647655487,
-0.008250436745584011,
0.04099203646183014,
-0.046863969415426254,
-0.05050605162978172,
0.03558465465903282,
0.026702428236603737,
-0.02924817055463791,
0.028913693502545357,
-0.003474846249446273,
-0.01727202907204628,
-0.044039495289325714,
0.0018210423877462745,
-0.015469568781554699,
-0.0006399198900908232,
0.034228164702653885,
-0.04240427166223526,
-0.01422457117587328,
-0.053144704550504684,
0.008947264403104782,
-0.019678406417369843,
-0.027427127584815025,
0.027761604636907578,
-0.021778179332613945,
-0.004696616902947426,
-0.03012152761220932,
0.010935544967651367,
0.06611498445272446,
-0.03437681868672371,
0.03478562459349632,
0.0030753316823393106,
-0.0500229187309742,
-0.02772444114089012,
0.011074910871684551,
-0.017206992954015732,
-0.07436542212963104,
0.021926837041974068,
-0.03461838886141777,
-0.023078924044966698,
0.10086344927549362,
-0.023301908746361732,
-0.023171834647655487,
-0.008111071772873402,
-0.011585917323827744,
-0.016863223165273666,
0.03315040469169617,
0.012923826463520527,
0.05723275989294052,
0.11253298819065094,
0.0176529623568058,
0.04110352694988251,
-0.03983994573354721,
-0.009597636759281158,
0.012384946458041668,
0.0015725072007626295,
-0.06306752562522888,
0.01223628968000412,
0.009086629375815392,
-0.08005153387784958,
0.0032448931597173214,
0.0030381677206605673,
-0.04979993402957916,
0.011623081751167774,
0.02852346934378147,
0.0593511164188385,
-0.02640511468052864,
0.0095418905839324,
-0.016575202345848083,
-0.08183541148900986,
-0.00728881498798728,
0.0006457267445512116,
-0.018043184652924538,
-0.102052703499794,
0.014298899099230766,
-0.012970281764864922,
-0.04560038819909096,
0.01585979200899601,
0.05124933645129204,
-0.021239301189780235,
-0.05385082587599754,
-0.026702428236603737,
-0.06596633046865463,
0.015534606762230396,
-0.01409449614584446,
-0.030065780505537987,
-0.01727202907204628,
0.011149238795042038,
0.05946260690689087,
0.027315635234117508,
-0.001591089298017323,
-0.032109808176755905,
-0.04745859280228615,
0.06455409526824951,
0.005309825297445059,
-0.001901177573017776,
0.005031093955039978,
0.004780236165970564,
0.03487853705883026,
-0.01860993728041649,
0.044039495289325714,
0.007832339964807034,
0.01687251590192318,
0.04957694932818413,
0.03549174591898918,
0.017829490825533867,
-0.012394237332046032,
0.02828190289437771,
-0.04407665878534317,
-0.020886240527033806,
-0.01795956678688526,
-0.04786739870905876,
-0.05240142345428467,
-0.007363143377006054,
-0.029564065858721733,
-0.009370006620883942,
-0.019474003463983536,
-0.03872502222657204,
-0.04890799522399902,
0.06109783053398132,
0.013657817617058754,
-0.04508008807897568,
-0.020904822275042534,
0.04240427166223526,
-0.05124933645129204,
0.008770735003054142,
-0.04366785287857056,
-0.019269602373242378,
-0.021127808839082718,
-0.03872502222657204,
0.0010771790985018015,
0.02410093881189823,
-0.019381094723939896,
0.021146390587091446,
-0.019325347617268562,
-0.03368928283452988,
0.017290610820055008,
0.003946366254240274,
0.0606146976351738,
0.03558465465903282,
-0.010117934085428715,
-0.016101358458399773,
0.00938858836889267,
0.009049465879797935,
-0.0176529623568058,
0.007562900427728891,
-0.042181286960840225,
0.07611213624477386,
-0.029489737004041672,
-0.00014466428547166288,
0.009193476289510727,
0.004694294184446335,
0.07730139046907425,
0.0015527638606727123,
-0.023562058806419373,
-0.02729705348610878,
-0.02976846881210804,
0.006573405582457781,
-0.036959726363420486,
0.027241308242082596,
-0.009439689107239246,
-0.0018431085627526045,
-0.011892521753907204,
-0.04389083757996559,
0.022484298795461655,
0.018043184652924538,
-0.021332209929823875,
0.010359501466155052,
-0.0503573976457119,
0.03655092045664787,
0.0020173154771327972,
0.052773065865039825,
-0.0059230332262814045,
-0.024268176406621933,
-0.002506256103515625,
0.03125503286719322,
0.060912009328603745,
-0.013258303515613079,
-0.00713551277294755,
-0.044559791684150696,
-0.04054606705904007,
0.030233019962906837,
0.0072655873373150826,
-0.03329906240105629,
-0.006187827792018652,
0.021164972335100174,
-0.01731848530471325,
-0.02906234934926033,
0.031217869371175766,
0.01687251590192318,
0.01776445470750332,
-0.011762446723878384,
-0.009523307904601097,
-0.0577530562877655,
0.005337698385119438,
-0.03887367993593216,
-0.03549174591898918,
-0.049502622336149216,
-0.01422457117587328,
-0.005560683086514473,
-0.05362784117460251,
-0.01023871824145317,
0.013425542041659355,
0.039170991629362106,
0.046232178807258606,
-0.004025339614599943
]
|
30,097 | networkx.classes.digraph | remove_node | Remove node n.
Removes the node n and all adjacent edges.
Attempting to remove a nonexistent node will raise an exception.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
remove_nodes_from
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> list(G.edges)
[(0, 1), (1, 2)]
>>> G.remove_node(1)
>>> list(G.edges)
[]
| def remove_node(self, n):
"""Remove node n.
Removes the node n and all adjacent edges.
Attempting to remove a nonexistent node will raise an exception.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
remove_nodes_from
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> list(G.edges)
[(0, 1), (1, 2)]
>>> G.remove_node(1)
>>> list(G.edges)
[]
"""
try:
nbrs = self._succ[n]
del self._node[n]
except KeyError as err: # NetworkXError if n not in self
raise NetworkXError(f"The node {n} is not in the digraph.") from err
for u in nbrs:
del self._pred[u][n] # remove all edges n-u in digraph
del self._succ[n] # remove node from succ
for u in self._pred[n]:
del self._succ[u][n] # remove all edges n-u in digraph
del self._pred[n] # remove node from pred
nx._clear_cache(self)
| (self, n) | [
-0.04765158146619797,
0.04252045601606369,
-0.013629560358822346,
0.01719493977725506,
-0.04161496087908745,
0.01391252689063549,
-0.07308085262775421,
0.049198467284440994,
0.04289774224162102,
-0.027145933359861374,
-0.013969119638204575,
0.07145851105451584,
0.041426315903663635,
0.040558554232120514,
-0.000278397899819538,
-0.0120921079069376,
0.011111157014966011,
0.029296480119228363,
-0.009866103529930115,
0.001522124744951725,
-0.04044536501169205,
0.012922143563628197,
-0.0038624946027994156,
0.013544670306146145,
-0.02146773599088192,
0.010847054421901703,
0.05749882385134697,
-0.0020267486106604338,
-0.020864073187112808,
0.02303348481655121,
0.002888617804273963,
0.001011605723761022,
-0.021430008113384247,
-0.003544157138094306,
0.03067358396947384,
0.043312761932611465,
-0.002274344442412257,
0.02088293805718422,
-0.1300891935825348,
0.021807296201586723,
-0.004975496791303158,
-0.016685599461197853,
0.042294081300497055,
-0.0012320838868618011,
0.027843918651342392,
-0.02305234968662262,
0.04104902967810631,
0.03208841755986214,
-0.05319773033261299,
-0.012808957137167454,
-0.008809695020318031,
0.004999077413231134,
-0.0008194242254830897,
0.0059658801183104515,
0.02146773599088192,
-0.01794951781630516,
0.0007610623724758625,
-0.002428797073662281,
0.0400303490459919,
0.027466628700494766,
0.027560951188206673,
0.028315529227256775,
-0.02954171784222126,
-0.03039061836898327,
-0.02437286078929901,
-0.020675430074334145,
0.004871742334216833,
-0.04584059491753578,
-0.04191679134964943,
-0.025448134168982506,
0.019562426954507828,
0.021222498267889023,
0.013591831550002098,
0.03533310070633888,
0.035238780081272125,
-0.016657304018735886,
0.034371014684438705,
0.05463142693042755,
0.0065931230783462524,
0.002217750996351242,
0.05082080885767937,
-0.029749225825071335,
-0.01914740912616253,
-0.034088049083948135,
0.024599233642220497,
-0.023297587409615517,
0.06379954516887665,
-0.028315529227256775,
-0.04210543632507324,
0.011290369555354118,
-0.06078123673796654,
-0.045312393456697464,
-0.03572925552725792,
-0.0052961925975978374,
0.0602153018116951,
0.02363714762032032,
0.032182738184928894,
-0.049085281789302826,
0.011686522513628006,
-0.07519367337226868,
0.03716295212507248,
0.04897209256887436,
-0.0965859517455101,
0.029862413182854652,
-0.003784678876399994,
0.0015115134883672,
-0.01066784281283617,
0.009696323424577713,
-0.05553692206740379,
0.008328652009367943,
-0.08292809128761292,
0.029466260224580765,
0.026523407548666,
0.0020267486106604338,
0.03735159710049629,
0.012714634649455547,
-0.07741967588663101,
-0.022976892068982124,
0.008880436420440674,
0.011346962302923203,
-0.01810043305158615,
0.020109497010707855,
-0.0830790102481842,
0.0036384793929755688,
0.02725912071764469,
0.016468659043312073,
0.05474461242556572,
0.01626114919781685,
0.002780147362500429,
-0.07047756016254425,
0.0026268737856298685,
-0.010243392549455166,
0.0035724539775401354,
0.06568598747253418,
-0.010337715037167072,
0.010290553793311119,
-0.00964916218072176,
-0.02739117108285427,
0.030315160751342773,
0.0032069552689790726,
0.0067864833399653435,
-0.005772519391030073,
0.05429186671972275,
0.03863437846302986,
0.03348438814282417,
-0.024693556129932404,
-0.03548401594161987,
-0.0498775877058506,
-0.0239389780908823,
-0.017289262264966965,
-0.030220838263630867,
-0.008927597664296627,
0.07198671251535416,
-0.05319773033261299,
-0.02133568562567234,
0.05085853859782219,
-0.014799155294895172,
-0.03184318169951439,
-0.07545777410268784,
-0.03614427149295807,
-0.016374336555600166,
0.048783451318740845,
0.04580286890268326,
-0.04999077320098877,
-0.048179786652326584,
-0.05432959645986557,
0.06885521858930588,
-0.02105271816253662,
-0.01623285375535488,
0.020260412245988846,
-0.03518218547105789,
-0.034088049083948135,
-0.023127807304263115,
0.0010475660674273968,
-0.06711968779563904,
0.013167381286621094,
0.00331542594358325,
-0.016251718625426292,
-0.03489921987056732,
-0.0044637988321483135,
0.01971334218978882,
-0.043576862663030624,
-0.0027070476207882166,
-0.03237138316035271,
0.027711866423487663,
0.013846500776708126,
-0.023693740367889404,
-0.0017944801365956664,
0.016836514696478844,
0.002603293163701892,
0.02678750827908516,
-0.021807296201586723,
0.0016034776344895363,
0.08224897086620331,
0.06444093585014343,
-0.06930796056985855,
0.021411143243312836,
0.03591790050268173,
0.009771781042218208,
0.021675245836377144,
0.05316000059247017,
0.06142262741923332,
0.04859480634331703,
0.030654719099402428,
-0.03008878603577614,
-0.008460702374577522,
0.002553774043917656,
0.0034073900897055864,
0.007333552464842796,
0.03367302939295769,
0.02463696338236332,
0.004475588910281658,
0.10639546066522598,
0.007706124801188707,
-0.031352702528238297,
-0.05176403000950813,
-0.04063400998711586,
0.03889848291873932,
0.0023946051951497793,
-0.021392278373241425,
-0.006828928366303444,
0.009361479431390762,
0.04146404564380646,
-0.046783819794654846,
0.006701593287289143,
-0.02663659304380417,
-0.030654719099402428,
0.01332772895693779,
0.05693288892507553,
-0.06662921607494354,
0.04693473502993584,
0.021297955885529518,
0.04097357019782066,
-0.027749596163630486,
0.04829297587275505,
0.0223543643951416,
-0.03965305909514427,
-0.003364945063367486,
0.0054895528592169285,
-0.009370911866426468,
-0.09281305968761444,
-0.04123767092823982,
-0.0066732969135046005,
-0.013516373001039028,
0.02548586204648018,
0.038257092237472534,
0.05459369719028473,
0.06761016696691513,
-0.05365047603845596,
-0.014365273527801037,
0.02869281731545925,
-0.08375813066959381,
0.0016789354849606752,
0.020392462611198425,
0.04312411695718765,
-0.007300539407879114,
-0.05289589986205101,
-0.05595193803310394,
0.003970965277403593,
0.036087680608034134,
0.017817465588450432,
-0.06036621704697609,
-0.011809141375124454,
0.01911911368370056,
0.08994566649198532,
-0.0009178730542771518,
0.016808219254016876,
0.06730833649635315,
0.022976892068982124,
-0.023278722539544106,
0.021411143243312836,
0.00340503198094666,
0.04983985796570778,
0.008437122218310833,
0.0020856999326497316,
-0.0027518505230545998,
-0.025542456656694412,
-0.021505465731024742,
0.03701203688979149,
0.021147040650248528,
-0.027410035952925682,
-0.04497283324599266,
0.008083414286375046,
0.02365601249039173,
-0.008488999679684639,
-0.002184738405048847,
0.023957842960953712,
-0.004242141731083393,
0.03159794211387634,
0.048179786652326584,
0.058291129767894745,
-0.023316452279686928,
-0.04006807878613472,
0.014865181408822536,
0.018402263522148132,
0.021958211436867714,
-0.038106173276901245,
0.035955630242824554,
0.013544670306146145,
0.07915520668029785,
0.06874202936887741,
-0.055838752537965775,
-0.06493141502141953,
-0.07391088455915451,
0.030428346246480942,
-0.023995570838451385,
0.05697061866521835,
0.041275400668382645,
-0.025184031575918198,
0.05863068997859955,
-0.044595543295145035,
-0.025334946811199188,
-0.048066601157188416,
0.013374890200793743,
0.044444628059864044,
-0.06444093585014343,
-0.0008553845691494644,
-0.01491234265267849,
-0.005371650215238333,
0.018091000616550446,
-0.023429637774825096,
0.00601775711402297,
-0.058592960238456726,
0.04052082449197769,
-0.06429002434015274,
-0.0040393490344285965,
-0.009130390360951424,
0.077721506357193,
-0.03484262526035309,
0.03433328494429588,
0.01470483373850584,
-0.004242141731083393,
-0.030956551432609558,
-0.007691976614296436,
-0.10488630086183548,
0.0018498944118618965,
0.05493325740098953,
0.01382763683795929,
0.01604420877993107,
0.03142816200852394,
0.011196047067642212,
0.06674239784479141,
-0.01844942569732666,
-0.013091923668980598,
-0.027598680928349495,
0.017374152317643166,
-0.01491234265267849,
-0.023108942434191704,
-0.018628638237714767,
0.018006110563874245,
0.038106173276901245,
0.0967368632555008,
-0.02825893647968769,
-0.011111157014966011,
0.011063995771110058,
0.03716295212507248,
0.009715188294649124,
0.01001701969653368,
-0.0064280591905117035,
-0.07251492142677307,
-0.012695769779384136,
0.0014737845631316304,
-0.004202054813504219,
-0.03223933279514313,
0.037955258041620255,
-0.02061883546411991,
-0.031333841383457184,
0.020637700334191322,
0.029315344989299774,
-0.020279277116060257,
-0.007880620658397675,
-0.07621234655380249,
-0.06696877628564835,
0.018987061455845833,
0.003244684310629964,
0.05478234216570854,
0.034521929919719696,
0.029051242396235466,
0.0012804240686818957,
0.024089893326163292,
-0.022410959005355835,
-0.001747319009155035,
0.007187352981418371,
-0.01593102142214775,
-0.02893805503845215,
0.005371650215238333,
0.026862967759370804,
0.028900327160954475,
0.028617359697818756,
0.0023604135494679213,
-0.0382004976272583,
-0.003959175199270248,
0.012525990605354309,
-0.015280199237167835,
-0.029315344989299774,
-0.022675059735774994,
0.08360721170902252,
-0.014374705962836742,
-0.03576698526740074,
-0.046897005289793015,
0.0249387938529253,
0.05376366153359413,
-0.03342779353260994,
0.05648014321923256,
0.05508417263627052,
-0.010507495142519474,
-0.00024759580264799297,
-0.010516926646232605,
0.04482191801071167,
-0.029768090695142746,
0.015582029707729816,
0.010799894109368324,
0.015534868463873863,
0.0019854826387017965,
0.0670442283153534,
-0.023542825132608414,
-0.00038318400038406253,
0.012724067084491253,
0.052103590220212936,
-0.025014251470565796,
-0.0072769587859511375,
-0.02795710414648056,
-0.02161865122616291,
0.014195493422448635,
0.008404109627008438,
-0.031201789155602455,
0.04210543632507324,
-0.02765527367591858,
-0.02320326492190361,
0.10277348756790161,
0.004876458551734686,
-0.04508601874113083,
0.03614427149295807,
-0.0034073900897055864,
-0.007116611115634441,
-0.017553364858031273,
-0.03231479227542877,
-0.027919376268982887,
-0.0032470421865582466,
0.048934366554021835,
-0.03054153360426426,
0.011667657643556595,
0.05255633965134621,
-0.03227706253528595,
-0.007974943146109581,
0.021580923348665237,
-0.0004091226146556437,
0.0021246077958494425,
0.01303532999008894,
-0.036238595843315125,
-0.002361592371016741,
-0.03831368312239647,
-0.04067173972725868,
-0.07074166089296341,
-0.05334864556789398,
-0.04165269061923027,
-0.06715741753578186,
-0.0066308518871665,
-0.0237691979855299,
0.018128730356693268,
-0.02405216544866562,
0.07508048415184021,
-0.054857801645994186,
-0.030503803864121437,
0.002789579564705491,
-0.010677274316549301,
0.08564457297325134,
-0.010064180009067059,
-0.015138715505599976,
-0.031220654025673866,
-0.037238411605358124,
-0.046029239892959595,
-0.04138858988881111,
-0.01810043305158615,
0.008342799730598927,
0.026598865166306496,
-0.03893620893359184,
-0.003600750584155321,
0.04463327303528786,
-0.041577231138944626,
0.03027743101119995,
-0.02233550138771534,
0.03980397433042526,
0.011601632460951805,
0.019486969336867332,
-0.0027377023361623287,
-0.03814390301704407,
0.006734606344252825,
0.04248272627592087,
0.004567553289234638,
-0.0067864833399653435,
-0.10767824202775955,
-0.033805083483457565,
-0.01816645823419094,
0.01858147606253624,
0.014148332178592682,
-0.06168672814965248,
-0.06244130805134773,
0.053046815097332,
-0.02882486954331398,
-0.020128360018134117,
0.030220838263630867,
0.012544854544103146,
-0.0057206423953175545,
0.03776661679148674,
0.05478234216570854,
-0.021995941177010536,
0.07613689452409744,
0.004105374217033386,
-0.01468596886843443,
0.025259489193558693,
0.0542164109647274,
0.053688205778598785,
0.05791383981704712,
0.04074719548225403,
0.02405216544866562,
-0.055272817611694336,
0.02797596901655197,
0.015940453857183456,
0.011875166557729244,
0.02105271816253662,
0.030918821692466736,
0.03776661679148674,
0.06866656988859177,
-0.02407102845609188,
0.008630482479929924,
-0.0217695664614439,
-0.03735159710049629,
-0.0012544854544103146,
0.01821362040936947,
0.026768645271658897,
0.021505465731024742,
-0.01651581935584545,
0.005748939234763384,
-0.00007870009721955284,
-0.005178289487957954,
0.0024759580846875906,
0.004400131292641163,
0.05463142693042755,
0.01556316576898098,
-0.0007557567441836,
-0.05059443786740303,
0.006385614164173603,
0.061460357159376144,
-0.06093215197324753,
0.011695954948663712,
0.039539873600006104,
-0.0006973948911763728,
0.0026598863769322634,
0.02350509539246559,
-0.023844655603170395,
-0.021147040650248528,
0.016666734591126442,
-0.018722958862781525,
0.08715372532606125,
0.005649900529533625,
-0.0023274007253348827,
0.011545038782060146,
0.024297403171658516,
0.001947753713466227,
-0.0942467600107193,
-0.035634931176900864,
0.04123767092823982,
-0.0066308518871665,
0.02018495462834835,
0.04595378413796425,
0.014091739431023598,
-0.07308085262775421,
0.06036621704697609,
0.006305439863353968,
0.018223052844405174,
0.04667063057422638,
-0.006611987482756376,
-0.004034632816910744,
-0.07885336875915527,
-0.006791199557483196,
0.00001352197341475403,
-0.03501240536570549,
-0.01671389676630497,
-0.031786587089300156,
-0.05131128430366516,
-0.006847792770713568,
0.03763456270098686,
0.031164059415459633,
-0.03657815605401993,
0.0542164109647274,
-0.05927208065986633,
-0.018223052844405174,
0.008847423829138279,
0.010799894109368324,
0.02263733185827732,
-0.07817424833774567,
0.07342041283845901,
-0.01629887893795967,
-0.012582583352923393,
0.01973220705986023,
-0.005197153892368078,
-0.022675059735774994,
-0.04825524613261223,
0.015582029707729816,
0.010130206122994423,
-0.06636510789394379,
0.08994566649198532,
0.027598680928349495,
-0.013695585541427135,
0.077721506357193,
-0.01694970205426216,
-0.041577231138944626,
-0.025334946811199188,
-0.05002850294113159,
-0.00040971211274154484,
0.030522668734192848,
-0.01196948904544115,
-0.00908322911709547,
-0.04248272627592087,
-0.027145933359861374,
0.027296848595142365,
0.010847054421901703,
-0.08345629274845123,
0.002608009148389101,
0.0063761817291378975,
-0.03701203688979149,
-0.02865508943796158,
0.030466075986623764,
-0.02780618891119957,
0.006762902718037367,
0.038257092237472534,
0.007111894898116589,
-0.05534827709197998,
0.021128175780177116,
-0.044746458530426025,
-0.07594824582338333,
-0.02595747448503971,
0.0253538116812706,
-0.05033033341169357,
-0.08360721170902252,
0.0388607531785965,
0.004459082614630461,
-0.01799667812883854,
0.06474276632070541,
0.026032932102680206,
-0.010347147472202778,
-0.04606696963310242,
-0.00994156114757061,
-0.06134716793894768,
0.013025897555053234,
0.0028603211976587772,
-0.051235828548669815,
0.027051610872149467,
-0.023278722539544106,
0.014997231774032116,
0.03233365714550018,
0.016572413966059685,
-0.04304865747690201,
0.04482191801071167,
-0.001326406141743064,
0.018477721139788628,
0.005399947054684162,
-0.009493530727922916,
-0.01626114919781685,
0.028466444462537766,
-0.014355841092765331,
0.05474461242556572,
0.012261888012290001,
0.033220283687114716,
0.03946441411972046,
0.00980951078236103,
-0.05142447352409363,
-0.02133568562567234,
-0.010743300430476665,
-0.002789579564705491,
-0.027900511398911476,
-0.00626771105453372,
-0.03227706253528595,
-0.024410588666796684,
-0.0063903299160301685,
-0.013148516416549683,
0.01102626696228981,
-0.05229223519563675,
-0.013403186574578285,
-0.025429269298911095,
0.03859664872288704,
0.020788615569472313,
-0.04327503219246864,
-0.0026905410923063755,
0.014751994051039219,
-0.040256720036268234,
-0.008055116981267929,
-0.044482357800006866,
-0.0040393490344285965,
-0.03384280949831009,
-0.02231663651764393,
-0.012412803247570992,
-0.006229982245713472,
0.0024853902868926525,
-0.04274682700634003,
0.013657856732606888,
-0.028164613991975784,
0.040407635271549225,
-0.028579631820321083,
0.03748364746570587,
-0.023542825132608414,
0.028881462290883064,
-0.0017767947865650058,
-0.011422419920563698,
0.014827452600002289,
0.0021788431331515312,
-0.03642724081873894,
-0.03848346322774887,
0.05866841971874237,
0.008319219574332237,
-0.008941746316850185,
0.004673665855079889,
0.017817465588450432,
0.017817465588450432,
0.07892882823944092,
-0.007993808016180992,
-0.05157538875937462,
-0.06825155764818192,
-0.00304424948990345,
0.012582583352923393,
-0.05116036906838417,
0.004159609787166119,
0.08111710846424103,
-0.004918903578072786,
-0.013044762425124645,
-0.015242470428347588,
-0.0792306587100029,
-0.011837437748908997,
0.02678750827908516,
-0.047349750995635986,
0.030767906457185745,
0.018987061455845833,
0.0335221141576767,
0.031503621488809586,
0.0030466075986623764,
0.030484940856695175,
0.05244315043091774,
0.062026288360357285,
-0.005824396852403879,
0.008328652009367943,
0.017977815121412277,
-0.0061969696544110775,
-0.028277799487113953,
0.055046446621418,
0.02405216544866562,
-0.023278722539544106,
0.050669893622398376,
0.02724025584757328,
-0.03589903563261032,
0.05912116542458534,
-0.015449978411197662,
-0.006942115258425474,
0.03429555892944336,
0.019864259287714958,
-0.012544854544103146,
0.003614899003878236,
0.0066072712652385235,
-0.01245053205639124,
-0.02437286078929901,
-0.029805820435285568,
0.015836700797080994,
-0.02220344915986061,
-0.01576124131679535,
0.001391252619214356,
0.010120773687958717,
0.046180155128240585,
0.007045869715511799
]
|
30,098 | networkx.classes.digraph | remove_nodes_from | Remove multiple nodes.
Parameters
----------
nodes : iterable container
A container of nodes (list, dict, set, etc.). If a node
in the container is not in the graph it is silently ignored.
See Also
--------
remove_node
Notes
-----
When removing nodes from an iterator over the graph you are changing,
a `RuntimeError` will be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.remove_nodes_from`.
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = list(G.nodes)
>>> e
[0, 1, 2]
>>> G.remove_nodes_from(e)
>>> list(G.nodes)
[]
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.DiGraph([(0, 1), (1, 2), (3, 4)])
>>> # this command will fail, as the graph's dict is modified during iteration
>>> # G.remove_nodes_from(n for n in G.nodes if n < 2)
>>> # this command will work, since the dictionary underlying graph is not modified
>>> G.remove_nodes_from(list(n for n in G.nodes if n < 2))
| def remove_nodes_from(self, nodes):
"""Remove multiple nodes.
Parameters
----------
nodes : iterable container
A container of nodes (list, dict, set, etc.). If a node
in the container is not in the graph it is silently ignored.
See Also
--------
remove_node
Notes
-----
When removing nodes from an iterator over the graph you are changing,
a `RuntimeError` will be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.remove_nodes_from`.
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = list(G.nodes)
>>> e
[0, 1, 2]
>>> G.remove_nodes_from(e)
>>> list(G.nodes)
[]
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.DiGraph([(0, 1), (1, 2), (3, 4)])
>>> # this command will fail, as the graph's dict is modified during iteration
>>> # G.remove_nodes_from(n for n in G.nodes if n < 2)
>>> # this command will work, since the dictionary underlying graph is not modified
>>> G.remove_nodes_from(list(n for n in G.nodes if n < 2))
"""
for n in nodes:
try:
succs = self._succ[n]
del self._node[n]
for u in succs:
del self._pred[u][n] # remove all edges n-u in digraph
del self._succ[n] # now remove node
for u in self._pred[n]:
del self._succ[u][n] # remove all edges n-u in digraph
del self._pred[n] # now remove node
except KeyError:
pass # silent failure on remove
nx._clear_cache(self)
| (self, nodes) | [
-0.030931277200579643,
0.02363506704568863,
-0.0421084500849247,
-0.004283613059669733,
-0.09050406515598297,
0.026274122297763824,
-0.04940466210246086,
0.0567396841943264,
0.147709459066391,
-0.0016275789821520448,
0.0025978197809308767,
0.013554263859987259,
0.004198716953396797,
0.0320761613547802,
-0.008829191327095032,
-0.01835695654153824,
-0.011342114768922329,
0.01618361659348011,
0.03514212369918823,
-0.006743173580616713,
-0.02720555290579796,
0.012787774205207825,
0.00928520504385233,
0.03977987542748451,
-0.021539345383644104,
0.000012942860848852433,
0.045252032577991486,
0.0012376634404063225,
-0.013030334375798702,
0.020801963284611702,
-0.01364158559590578,
0.01996755599975586,
-0.028660913929343224,
-0.03205675631761551,
0.017590466886758804,
0.04921061545610428,
-0.004972484428435564,
0.051422763615846634,
-0.07994784414768219,
0.007179782260209322,
-0.0348704531788826,
-0.015174566768109798,
0.044941555708646774,
-0.014369266107678413,
0.04362202808260918,
0.005544926505535841,
0.04109939932823181,
0.05495443940162659,
-0.04001273214817047,
-0.014262540265917778,
0.030271513387560844,
-0.006000939290970564,
0.005908766761422157,
0.04466988891363144,
-0.001015114481560886,
0.025439715012907982,
-0.022160300984978676,
0.040284398943185806,
0.05945635586977005,
0.02124827355146408,
0.05025847628712654,
0.003936752211302519,
-0.00951321143656969,
-0.03031032346189022,
-0.016571713611483574,
-0.025226261466741562,
-0.019986961036920547,
-0.034482359886169434,
-0.05751587450504303,
0.008392582647502422,
-0.049559902399778366,
0.0014699148014187813,
0.02159756049513817,
0.01722177490592003,
0.04389369487762451,
-0.0018252655863761902,
-0.013922955840826035,
0.07098282128572464,
0.0006215605535544455,
-0.04564012959599495,
0.04059487581253052,
0.002556584542617202,
-0.004157481715083122,
0.006626744754612446,
0.07346663624048233,
-0.005506116431206465,
0.02082136832177639,
0.03292997181415558,
-0.0002904658322222531,
-0.018774159252643585,
-0.041681546717882156,
-0.019346602261066437,
-0.02353804185986519,
0.008096659556031227,
0.040827732533216476,
0.07641616463661194,
-0.014767065644264221,
-0.07292330265045166,
0.01333110872656107,
-0.06485089659690857,
0.07148734480142593,
0.009212436154484749,
-0.06065945699810982,
0.009260948747396469,
0.018609218299388885,
-0.021869227290153503,
-0.03310461714863777,
-0.029689369723200798,
0.016377665102481842,
-0.0030635353177785873,
-0.0927550196647644,
0.04362202808260918,
0.05751587450504303,
0.003805769607424736,
0.018250230699777603,
-0.0152133759111166,
-0.06042659655213356,
-0.06190136447548866,
-0.014796172268688679,
0.0005509148468263447,
-0.038149867206811905,
0.04362202808260918,
-0.03646165132522583,
0.04121582955121994,
0.044087741523981094,
0.014223730191588402,
0.06236708164215088,
0.031008897349238396,
-0.0003644467215053737,
-0.07272925227880478,
0.004967633169144392,
-0.005996088031679392,
-0.006127070635557175,
0.03444354981184006,
0.044941555708646774,
-0.031358182430267334,
-0.035995934158563614,
-0.030155085027217865,
0.041254639625549316,
0.0057826354168355465,
-0.03147461265325546,
-0.005224746651947498,
0.03411366790533066,
0.05472158268094063,
-0.0010981913655996323,
-0.025847215205430984,
-0.01542682945728302,
-0.042884644120931625,
-0.051500383764505386,
0.002884040819481015,
-0.04463107883930206,
0.024081377312541008,
0.046649180352687836,
-0.0026754389982670546,
-0.06147445738315582,
0.03562724217772484,
-0.054217055439949036,
-0.023227564990520477,
-0.06395827233791351,
0.009367675520479679,
-0.031765684485435486,
0.023906733840703964,
0.00871761329472065,
-0.01805618219077587,
-0.011885450221598148,
-0.052276574075222015,
0.05169443041086197,
-0.023673875257372856,
-0.07012900710105896,
0.028719129040837288,
-0.005802039988338947,
-0.018890589475631714,
0.006025195587426424,
-0.005118020344525576,
-0.04218607023358345,
0.02881615236401558,
0.03032972849905491,
-0.014689446426928043,
-0.048162754625082016,
0.005176234990358353,
-0.030446156859397888,
-0.030601395294070244,
-0.01937570981681347,
-0.024741141125559807,
0.021830419078469276,
0.03261949494481087,
-0.019298089668154716,
0.009125115349888802,
0.016367962583899498,
-0.024081377312541008,
0.014524505473673344,
-0.03170746937394142,
0.02470233105123043,
0.09702408313751221,
0.042923454195261,
-0.033065807074308395,
-0.010168123990297318,
0.00032078588264994323,
-0.03617057949304581,
0.049132995307445526,
-0.011798128485679626,
0.0038251744117587805,
0.030679015442728996,
0.007892909459769726,
-0.008314963430166245,
-0.0009241543593816459,
-0.0018907567718997598,
-0.007985081523656845,
0.004957930650562048,
0.024100782349705696,
0.003577762981876731,
-0.034676406532526016,
0.11285841464996338,
0.00014000272494740784,
-0.01689189299941063,
-0.028777342289686203,
-0.05208252742886543,
0.03774236887693405,
-0.0073107643984258175,
-0.06073707342147827,
-0.008188832551240921,
-0.006030046846717596,
0.012021283619105816,
-0.09787789732217789,
0.020239222794771194,
-0.021985657513141632,
0.0041914405301213264,
-0.0068304953165352345,
0.05347967520356178,
-0.047308944165706635,
0.08856358379125595,
-0.016435880213975906,
0.042884644120931625,
-0.009372525848448277,
0.06302684545516968,
-0.009600533172488213,
-0.015514150261878967,
-0.037043794989585876,
0.020879581570625305,
0.013311703689396381,
-0.09298788011074066,
-0.04886132851243019,
0.004472810309380293,
-0.0015705773839727044,
0.03203735128045082,
0.062173031270504,
0.01902642287313938,
0.025090428069233894,
-0.02825341187417507,
0.01288479845970869,
-0.002619650214910507,
-0.05588587000966072,
0.029378892853856087,
0.012011581100523472,
0.03147461265325546,
0.016435880213975906,
-0.022412562742829323,
-0.043854884803295135,
0.0052004908211529255,
0.006228946149349213,
0.03031032346189022,
-0.03031032346189022,
-0.007014841306954622,
0.061978984624147415,
0.08165546506643295,
0.004511619918048382,
0.03904249146580696,
0.0648120865225792,
-0.042651787400245667,
0.026274122297763824,
0.017192667350172997,
-0.0024959444999694824,
0.06461803615093231,
0.0015814924845471978,
0.0007185846334323287,
0.024333639070391655,
-0.05134514346718788,
-0.006898412015289068,
0.011846640147268772,
0.01542682945728302,
0.018046479672193527,
-0.04218607023358345,
-0.029728177934885025,
0.009518062695860863,
-0.023246970027685165,
-0.008116064593195915,
0.026701027527451515,
-0.01089580450206995,
0.014068491756916046,
0.02763245813548565,
0.04187559336423874,
-0.029417701065540314,
-0.0063550774939358234,
-0.020472081378102303,
0.005346026737242937,
0.02406197227537632,
-0.0427682138979435,
0.0031120474450290203,
0.013408727943897247,
0.06360898911952972,
0.07183662801980972,
-0.06411351263523102,
-0.039547014981508255,
-0.05736063793301582,
0.06291041523218155,
-0.009115412831306458,
0.06170731782913208,
0.012448189780116081,
-0.016697844490408897,
0.02685626596212387,
-0.04152630642056465,
-0.022684229537844658,
-0.044281791895627975,
-0.04820156469941139,
0.015223078429698944,
-0.04824037477374077,
0.024081377312541008,
-0.015523852780461311,
0.025323284789919853,
0.060698267072439194,
-0.03977987542748451,
-0.0013534859754145145,
-0.06752876192331314,
0.061784934252500534,
-0.06065945699810982,
0.01722177490592003,
0.021830419078469276,
0.09585979580879211,
0.0020738898310810328,
0.02373209036886692,
-0.011827236041426659,
0.00901353731751442,
-0.012748964130878448,
-0.0031023449264466763,
-0.003672361606732011,
-0.015679091215133667,
0.0595339760184288,
0.00962963979691267,
0.030446156859397888,
-0.017231477424502373,
-0.00655397679656744,
0.025420309975743294,
-0.026817455887794495,
-0.007262252736836672,
-0.028001150116324425,
0.024294830858707428,
0.009129965677857399,
-0.0035704863257706165,
0.013563966378569603,
0.00558373611420393,
0.019201066344976425,
0.12209510803222656,
-0.0025711380876600742,
0.028854962438344955,
0.02103482186794281,
0.02373209036886692,
-0.013816229067742825,
0.029281867668032646,
0.009246394969522953,
-0.04626108333468437,
0.02006457932293415,
0.0179300494492054,
0.03797522559762001,
-0.01117717381566763,
0.06310446560382843,
-0.03578248247504234,
-0.020122794434428215,
-0.010012885555624962,
-0.001366826705634594,
-0.06970210373401642,
-0.012108605355024338,
-0.031765684485435486,
-0.07579521089792252,
0.013563966378569603,
-0.026798050850629807,
0.04513560235500336,
-0.0015257037011906505,
0.02868031896650791,
-0.01888088695704937,
0.07587283104658127,
-0.026681622490286827,
-0.022296134382486343,
0.022684229537844658,
0.011933961883187294,
0.018308443948626518,
-0.040206778794527054,
0.021190060302615166,
-0.010915209539234638,
0.041487496346235275,
0.018347254022955894,
-0.04521322250366211,
-0.04478631541132927,
0.010012885555624962,
0.014728255569934845,
-0.05553658306598663,
-0.025827810168266296,
0.06997376680374146,
-0.02256780117750168,
-0.04998680576682091,
-0.0766490250825882,
0.015766413882374763,
0.0023783028591424227,
-0.010022588074207306,
0.06601518392562866,
0.02375149540603161,
-0.025400904938578606,
0.0016979214269667864,
0.014146110974252224,
0.048512041568756104,
0.015834329649806023,
0.041371069848537445,
-0.00976062286645174,
0.008654547855257988,
0.020103389397263527,
0.02881615236401558,
-0.030155085027217865,
0.007805587258189917,
0.020142199471592903,
0.08313023298978806,
0.020258627831935883,
0.03444354981184006,
-0.028525080531835556,
0.022199109196662903,
-0.005350877996534109,
0.03875141963362694,
-0.02957293950021267,
0.009576276876032352,
-0.04649394005537033,
-0.014611826278269291,
0.06877066940069199,
-0.02718614786863327,
-0.07513544708490372,
0.0028136984910815954,
-0.039857491850852966,
-0.0035243998281657696,
0.005758379120379686,
-0.04183678328990936,
-0.0027651863638311625,
0.03304640203714371,
0.03399723768234253,
-0.05406181886792183,
0.02051089145243168,
0.03475402668118477,
-0.09003835171461105,
-0.01805618219077587,
0.00754847377538681,
-0.031086515635252,
0.007136121392250061,
0.012554916553199291,
0.018424872308969498,
-0.007436895743012428,
-0.01625153422355652,
0.0008113638614304364,
-0.08064641803503036,
-0.03391961753368378,
-0.004339402075856924,
-0.03347330912947655,
0.02481875941157341,
-0.042147260159254074,
0.005297515075653791,
0.06663613766431808,
0.02126767858862877,
-0.03981868177652359,
0.005578884854912758,
0.0027967190835624933,
-0.004659581463783979,
0.06520017981529236,
-0.007378681562840939,
-0.00929975789040327,
0.0020181008148938417,
0.04350559785962105,
-0.05708897113800049,
-0.03562724217772484,
-0.039973922073841095,
0.012535511516034603,
0.03399723768234253,
-0.059728026390075684,
-0.02868031896650791,
-0.017260584980249405,
-0.0491718053817749,
-0.03298818692564964,
-0.05363491177558899,
0.08344071358442307,
0.010274849832057953,
0.011235388927161694,
-0.01656201109290123,
-0.0146797439083457,
-0.04459226876497269,
0.008795233443379402,
0.010643541812896729,
-0.01073086354881525,
-0.12675225734710693,
-0.025924835354089737,
-0.0322314016520977,
0.05254824459552765,
-0.016746357083320618,
-0.06376422941684723,
-0.04777465760707855,
0.041177019476890564,
-0.027671268209815025,
-0.005321770906448364,
0.047658227384090424,
0.042030833661556244,
0.011128662154078484,
0.07323377579450607,
0.026021858677268028,
0.02633233554661274,
0.0401291586458683,
-0.0074271936900913715,
-0.03254187852144241,
-0.0068838587030768394,
0.019055530428886414,
0.032192591577768326,
0.028350437059998512,
0.02134529873728752,
-0.036422841250896454,
-0.055187296122312546,
0.062095411121845245,
0.046028222888708115,
-0.0153783168643713,
0.008188832551240921,
0.0241784006357193,
-0.0013595499331131577,
0.06880947947502136,
-0.01954065077006817,
-0.007975379936397076,
-0.009319162927567959,
-0.05258705094456673,
0.03304640203714371,
0.001902884803712368,
0.018725648522377014,
0.026487573981285095,
-0.017066536471247673,
0.007097311783581972,
0.019676484167575836,
-0.017503144219517708,
0.02512923814356327,
-0.03822748735547066,
0.024644115939736366,
0.04222488030791283,
0.04812394455075264,
0.012380273081362247,
0.025866620242595673,
0.047192513942718506,
-0.035200335085392,
0.03972166031599045,
0.021733393892645836,
0.0014262540498748422,
-0.008630292490124702,
0.04121582955121994,
-0.06403589248657227,
-0.04284583404660225,
-0.001280717900954187,
0.022509587928652763,
0.08693357557058334,
-0.0348704531788826,
-0.005884510464966297,
-0.0013571243034675717,
0.023576851934194565,
0.009032942354679108,
-0.06174612417817116,
-0.020588509738445282,
-0.002828252036124468,
-0.0040459041483700275,
0.01656201109290123,
0.028660913929343224,
-0.002617224585264921,
-0.04789108783006668,
0.028525080531835556,
0.053363244980573654,
-0.00655397679656744,
0.04583417624235153,
0.007868653163313866,
-0.0014480843674391508,
-0.05619634687900543,
-0.010080802254378796,
-0.0002249745884910226,
-0.03752891346812248,
-0.009416187182068825,
-0.05666206404566765,
-0.03246425837278366,
-0.01838606409728527,
0.05778754502534866,
-0.0040483297780156136,
0.03380319103598595,
0.04812394455075264,
-0.03615117445588112,
0.0009381016134284437,
0.01753225177526474,
0.033395688980817795,
0.0554201565682888,
-0.06162969768047333,
0.05728301778435707,
-0.006131921894848347,
-0.048512041568756104,
0.011749615892767906,
0.020627319812774658,
-0.0293594878166914,
-0.08095689117908478,
0.015329805202782154,
-0.02396494895219803,
-0.02848627045750618,
0.11355698853731155,
0.06252232193946838,
-0.014970815740525723,
0.002350408351048827,
-0.008052999153733253,
-0.03461819142103195,
0.022393157705664635,
-0.00904749520123005,
-0.00655397679656744,
0.05146157369017601,
0.03184330463409424,
-0.03324044868350029,
0.005409092642366886,
-0.0003941603354178369,
-0.002035080222412944,
0.02914603427052498,
-0.02072434313595295,
-0.038673799484968185,
-0.012758666649460793,
-0.061319220811128616,
-0.041487496346235275,
-0.014165516011416912,
-0.024197805672883987,
0.014388671144843102,
0.0052101933397352695,
0.010129313915967941,
-0.05126752331852913,
0.03488985821604729,
-0.007824991829693317,
-0.0981883704662323,
0.019249577075242996,
0.009886753745377064,
-0.038809631019830704,
-0.059378739446401596,
0.01283628586679697,
-0.006651000585407019,
-0.05623515695333481,
0.016144806519150734,
0.05883540213108063,
-0.035995934158563614,
-0.05413943901658058,
-0.011070447973906994,
-0.08910691738128662,
-0.06318208575248718,
-0.018822671845555305,
-0.02924305759370327,
0.05153919383883476,
0.0034880158491432667,
0.02512923814356327,
0.0560799203813076,
0.020996011793613434,
-0.031882114708423615,
-0.00832951720803976,
0.01630004495382309,
0.001279505086131394,
-0.005578884854912758,
0.016455283388495445,
-0.028544485569000244,
0.03735427185893059,
0.010750268585979939,
0.06108636036515236,
0.04420417174696922,
0.026177097111940384,
-0.03952760994434357,
0.041914403438568115,
-0.015203673392534256,
0.01786213368177414,
0.029495321214199066,
-0.04075011610984802,
-0.0483568012714386,
-0.013418430462479591,
-0.017755407840013504,
-0.040206778794527054,
0.006549125537276268,
-0.011303305625915527,
0.002884040819481015,
-0.011070447973906994,
-0.005040401127189398,
-0.040827732533216476,
0.0546051524579525,
-0.028001150116324425,
-0.022897683084011078,
-0.01861892081797123,
0.029475916177034378,
-0.0427682138979435,
0.014728255569934845,
-0.03516152873635292,
0.0063162678852677345,
-0.025497928261756897,
-0.04296226426959038,
0.02728317119181156,
-0.01741582341492176,
-0.02644876390695572,
0.020996011793613434,
-0.00555947981774807,
-0.043001074343919754,
0.031882114708423615,
-0.00700999004766345,
0.03368676081299782,
0.01835695654153824,
-0.009624788537621498,
-0.004293315578252077,
-0.009115412831306458,
0.008028742857277393,
-0.029301272705197334,
-0.002132104244083166,
-0.025109833106398582,
0.05778754502534866,
-0.006505464669317007,
0.013816229067742825,
0.030931277200579643,
0.02664281241595745,
0.021713988855481148,
0.014495397917926311,
-0.0008338007028214633,
-0.04847323149442673,
-0.007029394619166851,
-0.012603428214788437,
0.0037402783054858446,
-0.022509587928652763,
0.025206856429576874,
0.046765606850385666,
-0.039314158260822296,
-0.005865105893462896,
0.040284398943185806,
-0.04792989790439606,
0.007145823445171118,
0.008222791366279125,
-0.030679015442728996,
0.07672664523124695,
-0.02569197677075863,
0.005603140685707331,
-0.013816229067742825,
-0.04567893594503403,
-0.01305944100022316,
0.04362202808260918,
0.026565194129943848,
-0.007558175828307867,
-0.02503221295773983,
-0.008421690203249454,
-0.020549699664115906,
0.02891317568719387,
-0.00300774653442204,
-0.04668798670172691,
-0.008455649018287659,
0.05223776400089264,
0.011439139023423195,
-0.05557539314031601,
0.05751587450504303,
0.025071023032069206,
-0.032832950353622437,
-0.0348704531788826,
0.05320800468325615,
-0.018851779401302338,
-0.013525157235562801,
-0.03357033059000969,
-0.05468277260661125,
-0.06135803088545799,
-0.029301272705197334,
0.027923529967665672,
-0.0016215150244534016,
0.020996011793613434,
0.012855690903961658,
0.031125325709581375,
0.040944162756204605,
0.017784513533115387
]
|
30,099 | networkx.classes.digraph | reverse | Returns the reverse of the graph.
The reverse is a graph with the same nodes and edges
but with the directions of the edges reversed.
Parameters
----------
copy : bool optional (default=True)
If True, return a new DiGraph holding the reversed edges.
If False, the reverse graph is created using a view of
the original graph.
| def reverse(self, copy=True):
"""Returns the reverse of the graph.
The reverse is a graph with the same nodes and edges
but with the directions of the edges reversed.
Parameters
----------
copy : bool optional (default=True)
If True, return a new DiGraph holding the reversed edges.
If False, the reverse graph is created using a view of
the original graph.
"""
if copy:
H = self.__class__()
H.graph.update(deepcopy(self.graph))
H.add_nodes_from((n, deepcopy(d)) for n, d in self.nodes.items())
H.add_edges_from((v, u, deepcopy(d)) for u, v, d in self.edges(data=True))
return H
return nx.reverse_view(self)
| (self, copy=True) | [
-0.0019969248678535223,
-0.0008605316979810596,
0.02928823232650757,
-0.0306105799973011,
-0.08119934797286987,
0.006254350766539574,
-0.06440194696187973,
0.04592480510473251,
0.10657414048910141,
-0.017833834514021873,
-0.00941726565361023,
0.01634172536432743,
-0.026232535019516945,
0.03638245165348053,
0.012160245329141617,
0.06561707705259323,
-0.017172660678625107,
-0.0076794493943452835,
-0.002488338155671954,
0.023838011547923088,
0.013866789638996124,
-0.05132141709327698,
-0.003174083074554801,
-0.0023342131171375513,
-0.012204919010400772,
-0.01660083420574665,
-0.024409838020801544,
-0.026429099962115288,
-0.0205678790807724,
0.01910257525742054,
-0.014099094085395336,
-0.048962634056806564,
-0.010784287936985493,
0.013848919421434402,
0.023194707930088043,
0.0014909926103428006,
-0.03293362632393837,
0.0682617723941803,
-0.058040376752614975,
-0.009604896418750286,
0.018209096044301987,
-0.0889904797077179,
0.03075353614985943,
0.03568553924560547,
0.0511784590780735,
0.007188036106526852,
0.02991366758942604,
-0.03552471473813057,
-0.014233116060495377,
-0.06329403072595596,
0.04220793396234512,
0.01093617919832468,
-0.033237408846616745,
0.06257925182580948,
-0.019602922722697258,
-0.02791227400302887,
0.02533905580639839,
0.07962682098150253,
0.009372591972351074,
0.013697028160095215,
-0.04185054078698158,
-0.06790438294410706,
-0.029502667486667633,
-0.03209375590085983,
-0.01019459217786789,
0.034863539040088654,
-0.052679505199193954,
-0.02221188135445118,
0.010123114101588726,
-0.03223671019077301,
-0.03924158588051796,
0.028591318055987358,
0.012723136693239212,
-0.003375115804374218,
0.022319097071886063,
-0.01335750613361597,
0.03405940905213356,
0.05132141709327698,
-0.03180784359574318,
-0.044388022273778915,
-0.044995587319135666,
-0.009470874443650246,
-0.009408330544829369,
0.03827662765979767,
0.0031115396413952112,
-0.019996052607893944,
0.06440194696187973,
-0.008398699574172497,
0.013929332606494427,
-0.062186118215322495,
-0.02653631754219532,
-0.005584241822361946,
-0.04120723903179169,
0.028376882895827293,
0.04252958670258522,
-0.035471104085445404,
-0.047068458050489426,
-0.04521002247929573,
0.0007711838115938008,
-0.015850313007831573,
-0.03173636272549629,
0.05703968182206154,
-0.10900440067052841,
0.02142561972141266,
-0.00838529784232378,
-0.03422023355960846,
-0.008184265345335007,
-0.020067531615495682,
-0.03670410439372063,
-0.03498862683773041,
-0.05671802908182144,
0.06815455853939056,
0.05446645990014076,
0.009864005260169506,
0.04467393457889557,
0.00391343655064702,
0.007456079591065645,
-0.009479808621108532,
0.018289508298039436,
0.023784402757883072,
-0.02739405632019043,
0.037561845034360886,
-0.02160431444644928,
0.0028345612809062004,
-0.05253654718399048,
0.03688279911875725,
0.01712798699736595,
-0.0021354141645133495,
-0.022283358499407768,
-0.049999069422483444,
0.007925156503915787,
-0.018039334565401077,
-0.04399489238858223,
0.08441586792469025,
0.027626361697912216,
0.0333624929189682,
0.010828961618244648,
0.03724019229412079,
0.017923181876540184,
0.09799674153327942,
-0.016314921900629997,
-0.011034461669623852,
0.08741795271635056,
0.08584543317556381,
-0.008465711027383804,
-0.03974193334579468,
-0.0015468349447473884,
0.040742628276348114,
-0.0005698718596249819,
-0.0013915931340306997,
0.00847464520484209,
0.030020885169506073,
0.021193314343690872,
-0.011347179301083088,
-0.012312136590480804,
0.021729402244091034,
-0.08634578436613083,
0.018780922517180443,
-0.05625341832637787,
0.017994660884141922,
-0.05314411222934723,
0.04313715174794197,
0.02273009903728962,
-0.06100672483444214,
0.0017165959579870105,
-0.030628450214862823,
0.1145082339644432,
-0.06368716061115265,
-0.003587316954508424,
0.056646548211574554,
-0.0426725409924984,
-0.054931070655584335,
-0.04052819311618805,
-0.004605882801115513,
-0.02696518786251545,
0.00604885071516037,
0.032111626118421555,
0.031146667897701263,
-0.01736029051244259,
0.03103945031762123,
0.005624448414891958,
-0.035739149898290634,
-0.04167184606194496,
-0.033934321254491806,
0.04946298152208328,
-0.04020654037594795,
-0.029413318261504173,
0.024052446708083153,
0.02394522912800312,
-0.026250403374433517,
0.029681362211704254,
0.026661405339837074,
0.05739707127213478,
-0.02124692313373089,
0.04406636953353882,
-0.08455882221460342,
-0.024677881971001625,
0.042565327137708664,
0.019084705039858818,
0.06797585636377335,
0.010060570202767849,
-0.00993548333644867,
0.08212856203317642,
-0.008403167128562927,
-0.025106752291321754,
0.0301638413220644,
-0.019602922722697258,
-0.05607472360134125,
0.009971221908926964,
-0.0014530197950080037,
0.02507101185619831,
0.01892387866973877,
0.058219071477651596,
-0.046032022684812546,
-0.050785329192876816,
0.01953144371509552,
-0.08127082139253616,
0.01547505147755146,
0.04331584647297859,
-0.038169410079717636,
-0.028573449701070786,
-0.003480099607259035,
-0.03654327988624573,
-0.009738917462527752,
-0.003917904105037451,
-0.019120443612337112,
-0.021407749503850937,
-0.03863402083516121,
-0.0010459284530952573,
-0.04453098028898239,
0.04764028266072273,
-0.006022046320140362,
0.007223775144666433,
-0.03509584441781044,
0.046711064875125885,
-0.026125317439436913,
-0.055181246250867844,
0.0063168941996991634,
0.02471362054347992,
0.049320023506879807,
-0.06400881707668304,
0.009524483233690262,
-0.004527703393250704,
0.0010252668289467692,
0.00847464520484209,
0.024052446708083153,
0.002973050344735384,
0.004601415246725082,
0.00808598194271326,
0.004458458628505468,
-0.029681362211704254,
-0.043959151953458786,
-0.024606402963399887,
0.0306105799973011,
0.059005334973335266,
-0.0063928402960300446,
-0.04370897635817528,
-0.08727499842643738,
-0.01006950531154871,
0.043172892183065414,
0.0242132730782032,
-0.00035850831773132086,
-0.04449523985385895,
-0.02455279417335987,
0.0335233211517334,
-0.012767810374498367,
-0.014358202926814556,
0.002434729365631938,
-0.0019924575462937355,
0.016904616728425026,
0.1163666695356369,
-0.0005564697203226388,
-0.02600022964179516,
0.015501855872571468,
0.020174749195575714,
0.03195079788565636,
0.010605592280626297,
0.004909665323793888,
-0.023462750017642975,
-0.030556971207261086,
-0.025017403066158295,
-0.012187049724161625,
-0.0036632625851780176,
-0.007701786234974861,
-0.003305871272459626,
0.012437223456799984,
-0.00572719844058156,
-0.012687397189438343,
0.014661985449492931,
0.01468878984451294,
0.1310197114944458,
0.03286214545369148,
0.007380133960396051,
-0.011784983798861504,
0.00800110213458538,
-0.02696518786251545,
-0.014000811614096165,
-0.020532140508294106,
0.012687397189438343,
0.10900440067052841,
0.014277789741754532,
-0.036775581538677216,
0.05571733042597771,
0.007192503660917282,
0.009685308672487736,
0.03034253604710102,
0.035917844623327255,
0.04120723903179169,
0.018253769725561142,
0.007652644999325275,
-0.06911951303482056,
0.011481201276183128,
-0.049212805926799774,
0.03180784359574318,
-0.04685402289032936,
-0.02844836190342903,
-0.013536202721297741,
-0.05421628803014755,
0.050785329192876816,
0.026572056114673615,
-0.06257925182580948,
0.027447665110230446,
-0.05410907045006752,
0.002072870498523116,
-0.027644231915473938,
0.05678950622677803,
-0.025017403066158295,
0.06540264189243317,
0.021800879389047623,
0.019728010520339012,
0.04724715277552605,
-0.003987148869782686,
0.004543339367955923,
0.06047063693404198,
-0.052679505199193954,
0.020281966775655746,
0.06572429090738297,
0.030056623741984367,
-0.023909490555524826,
-0.018387790769338608,
0.028162449598312378,
0.0536087229847908,
-0.01926340162754059,
-0.041278716176748276,
0.014081224799156189,
0.04106428101658821,
-0.01753898710012436,
-0.022068923339247704,
-0.03155766800045967,
0.06215037778019905,
-0.023391272872686386,
0.03942028060555458,
-0.01236574538052082,
0.03329101577401161,
-0.015010442584753036,
0.03604293242096901,
0.006415177136659622,
0.0015915089752525091,
-0.012338940985500813,
-0.06997725367546082,
-0.03500649705529213,
0.022712228819727898,
-0.03774053975939751,
-0.03204014524817467,
0.022247619926929474,
-0.034005798399448395,
-0.007487351540476084,
0.030038753524422646,
-0.020424922928214073,
-0.012660592794418335,
-0.026393361389636993,
-0.050427939742803574,
0.012142375111579895,
0.02610744722187519,
-0.023998837918043137,
0.019156184047460556,
-0.045245762914419174,
-0.011811788193881512,
0.06050637736916542,
0.0039804475381970406,
0.013187745586037636,
-0.00838529784232378,
-0.017735552042722702,
0.022247619926929474,
0.0335233211517334,
-0.014027616009116173,
0.04710419848561287,
0.032880015671253204,
0.06100672483444214,
-0.04492411017417908,
-0.05714689940214157,
-0.040063586086034775,
-0.005427883006632328,
0.008854374289512634,
-0.04220793396234512,
-0.01865583471953869,
0.030485494062304497,
0.025803664699196815,
-0.025714317336678505,
-0.026929447427392006,
0.01831631362438202,
0.01465305034071207,
0.029592014849185944,
0.02843049168586731,
0.010006961412727833,
0.010784287936985493,
0.02669714391231537,
0.06125690042972565,
0.050427939742803574,
-0.061149682849645615,
0.013321767561137676,
-0.010980852879583836,
-0.04460245743393898,
-0.004456224851310253,
0.04889115318655968,
-0.008832036517560482,
0.06976281851530075,
0.020174749195575714,
0.0463179349899292,
0.011892201378941536,
0.02678649127483368,
0.06143559515476227,
0.009372591972351074,
-0.013348571956157684,
0.057432811707258224,
-0.005034752655774355,
-0.011534810066223145,
0.0426725409924984,
-0.07340820878744125,
0.10207100957632065,
0.007013808004558086,
-0.050606634467840195,
0.02505314350128174,
-0.028466232120990753,
0.03727593272924423,
-0.005539568141102791,
0.056217681616544724,
-0.04571036994457245,
-0.027197491377592087,
0.09327917546033859,
-0.012383614666759968,
-0.014742398634552956,
-0.002760849194601178,
-0.0761958658695221,
-0.016877813264727592,
0.011391852982342243,
0.02369505539536476,
-0.013464723713696003,
0.04224367439746857,
-0.052929677069187164,
0.013697028160095215,
0.0063436985947191715,
0.018620096147060394,
-0.050785329192876816,
-0.07526664435863495,
-0.014724529348313808,
-0.025714317336678505,
-0.0180572047829628,
-0.050249241292476654,
0.0323081910610199,
0.01997818425297737,
-0.005503828637301922,
-0.013026919215917587,
-0.013187745586037636,
-0.01729774847626686,
-0.03498862683773041,
0.04320862889289856,
-0.04624645784497261,
-0.04824785143136978,
-0.0026268274523317814,
0.049820370972156525,
-0.05210767686367035,
-0.017789160832762718,
-0.050427939742803574,
0.02653631754219532,
0.016699116677045822,
-0.014992572367191315,
-0.03952749818563461,
-0.04581758752465248,
-0.07390855997800827,
-0.040671151131391525,
-0.009390461258590221,
-0.03745462745428085,
0.0451028048992157,
0.024910185486078262,
0.024052446708083153,
-0.0015468349447473884,
0.017503248527646065,
-0.006750231608748436,
-0.0022828381042927504,
0.013303898274898529,
-0.01746750809252262,
-0.07240751385688782,
0.013026919215917587,
0.006723427213728428,
0.04160036891698837,
-0.06354420632123947,
-0.017664073035120964,
-0.026589926332235336,
-0.053215593099594116,
-0.008103852160274982,
-0.04149315133690834,
0.02437409944832325,
0.0026134252548217773,
-0.021300531923770905,
0.0594342015683651,
-0.00644198153167963,
0.015877116471529007,
0.024606402963399887,
0.005182176362723112,
0.009774656966328621,
0.0027876535896211863,
0.012347876094281673,
0.05157158896327019,
0.03752610459923744,
0.015189138241112232,
-0.04492411017417908,
0.017601530998945236,
0.04206497594714165,
-0.015769898891448975,
0.02255140244960785,
0.024999534711241722,
-0.012866092845797539,
-0.00890351552516222,
-0.009729983285069466,
0.037383150309324265,
-0.014161637052893639,
-0.004281996749341488,
0.060291942209005356,
0.0012564543867483735,
0.03041401505470276,
0.013455789536237717,
0.03148619085550308,
0.05750428885221481,
0.029323970898985863,
-0.011481201276183128,
-0.004873926285654306,
0.008912449702620506,
-0.06368716061115265,
-0.015439311973750591,
-0.016976095736026764,
0.044638194143772125,
-0.035578321665525436,
-0.01737816073000431,
-0.021461358293890953,
0.028895100578665733,
0.04828358814120293,
-0.03268345072865486,
0.021497096866369247,
-0.03195079788565636,
-0.0791979506611824,
0.002608957700431347,
0.023623576387763023,
-0.024677881971001625,
0.022426314651966095,
0.004391447640955448,
-0.057968899607658386,
0.04088558629155159,
0.05593176558613777,
-0.005133035127073526,
-0.024409838020801544,
-0.001418397412635386,
0.039706192910671234,
-0.000436408503446728,
-0.00391343655064702,
0.04903411120176315,
0.027429796755313873,
0.004199349787086248,
0.004552274011075497,
0.04656811058521271,
0.002680436009541154,
-0.009193895384669304,
0.07197864353656769,
0.0231589674949646,
0.0010509543353691697,
0.004281996749341488,
0.06161428987979889,
0.003705702954903245,
0.02532118558883667,
-0.01439394149929285,
-0.024606402963399887,
-0.001616079593077302,
-0.023641446605324745,
0.009738917462527752,
-0.04839080572128296,
0.006750231608748436,
0.008689080365002155,
0.07172846794128418,
0.0408141054213047,
-0.062186118215322495,
-0.006267752964049578,
-0.015510790050029755,
0.03455975651741028,
0.01080215722322464,
-0.014751333743333817,
-0.03455975651741028,
-0.034863539040088654,
-0.018441399559378624,
-0.0008549474296160042,
0.010534114204347134,
0.024606402963399887,
0.02265862002968788,
0.08748943358659744,
0.0037347408942878246,
-0.017047572880983353,
-0.021711532026529312,
0.0005243603372946382,
-0.05600324645638466,
0.011311440728604794,
-0.03745462745428085,
0.03143258020281792,
0.017074378207325935,
-0.008005568757653236,
-0.03277279809117317,
0.01132931001484394,
-0.03942028060555458,
-0.0193527489900589,
0.004976676311343908,
-0.08620282262563705,
0.01987096667289734,
0.01573416031897068,
-0.02324831672012806,
-0.031075188890099525,
0.002237047301605344,
-0.07462333887815475,
0.014778138138353825,
0.03164701536297798,
0.03572127968072891,
-0.023873750120401382,
0.04764028266072273,
0.017592595890164375,
-0.09099186956882477,
-0.011874332092702389,
0.03881271556019783,
-0.03670410439372063,
-0.08448734879493713,
0.023373402655124664,
0.035488974303007126,
0.0012006120523437858,
0.015850313007831573,
-0.01876305229961872,
-0.027358317747712135,
-0.02203318476676941,
0.010149918496608734,
-0.08706056326627731,
-0.020961010828614235,
0.04120723903179169,
-0.055538635700941086,
-0.012285332195460796,
-0.04821211099624634,
-0.033237408846616745,
0.061399854719638824,
0.04270828142762184,
0.004308801144361496,
-0.010364352725446224,
0.028287535533308983,
0.03379136323928833,
0.0010425779037177563,
0.027179623022675514,
-0.03534601628780365,
0.013500463217496872,
0.0017065443098545074,
0.02566070854663849,
-0.039205845445394516,
0.04285123944282532,
0.05253654718399048,
0.00872928649187088,
0.01987096667289734,
0.00004760566298500635,
-0.026643535122275352,
-0.013580876402556896,
-0.012088767252862453,
-0.03041401505470276,
-0.0010442532366141677,
-0.04102854058146477,
-0.03257623314857483,
-0.008541656658053398,
-0.007759862579405308,
0.013625550083816051,
-0.05332281067967415,
-0.0016618703957647085,
0.045853327959775925,
-0.0027831862680613995,
-0.05964863672852516,
-0.007031677290797234,
0.04217219352722168,
-0.01677953079342842,
0.00027460508863441646,
-0.0205678790807724,
-0.017333487048745155,
-0.023391272872686386,
-0.03632884472608566,
0.02912740595638752,
-0.009310048073530197,
0.05543141812086105,
-0.005217915400862694,
-0.04020654037594795,
-0.055181246250867844,
0.0038843986112624407,
-0.0321473628282547,
0.028841491788625717,
-0.019156184047460556,
0.033487580716609955,
0.01456370297819376,
0.040242280811071396,
0.001971237361431122,
-0.011865396983921528,
-0.01608261652290821,
-0.054252028465270996,
0.04260106384754181,
0.011731375008821487,
-0.00773752573877573,
0.03361266851425171,
0.01366128958761692,
0.06150707229971886,
0.001520030666142702,
0.004847121890634298,
-0.01045370101928711,
-0.07926943153142929,
0.040063586086034775,
-0.003636458422988653,
-0.014376072213053703,
-0.010766418650746346,
0.02844836190342903,
0.02835901454091072,
0.015260616317391396,
-0.031182406470179558,
-0.05750428885221481,
-0.046032022684812546,
-0.03663262724876404,
-0.04571036994457245,
0.0180572047829628,
0.05593176558613777,
-0.002331979339942336,
-0.023301923647522926,
0.015671616420149803,
0.008483580313622952,
0.031772103160619736,
0.0010425779037177563,
0.056932464241981506,
0.0038397246971726418,
0.024320490658283234,
-0.02617892622947693,
0.06579577177762985,
-0.001735582365654409,
-0.048462286591529846,
-0.0029172080103307962,
0.010435830801725388,
-0.016145160421729088,
-0.06325829029083252,
0.06247203052043915,
0.0013301664730533957,
0.0059773726388812065,
-0.03405940905213356,
0.02376653254032135,
0.020424922928214073,
0.0018774220952764153,
0.009837200865149498,
-0.04806915298104286,
-0.04828358814120293,
-0.002624593675136566,
-0.014840681105852127,
-0.008689080365002155,
-0.02038918435573578,
-0.012991180643439293,
0.03023531846702099,
0.06129263713955879,
0.01236574538052082
]
|
30,100 | networkx.classes.graph | size | Returns the number of edges or total of all edge weights.
Parameters
----------
weight : string or None, optional (default=None)
The edge attribute that holds the numerical value used
as a weight. If None, then each edge has weight 1.
Returns
-------
size : numeric
The number of edges or
(if weight keyword is provided) the total weight sum.
If weight is None, returns an int. Otherwise a float
(or more general numeric if the weights are more general).
See Also
--------
number_of_edges
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.size()
3
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edge("a", "b", weight=2)
>>> G.add_edge("b", "c", weight=4)
>>> G.size()
2
>>> G.size(weight="weight")
6.0
| def size(self, weight=None):
"""Returns the number of edges or total of all edge weights.
Parameters
----------
weight : string or None, optional (default=None)
The edge attribute that holds the numerical value used
as a weight. If None, then each edge has weight 1.
Returns
-------
size : numeric
The number of edges or
(if weight keyword is provided) the total weight sum.
If weight is None, returns an int. Otherwise a float
(or more general numeric if the weights are more general).
See Also
--------
number_of_edges
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.size()
3
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edge("a", "b", weight=2)
>>> G.add_edge("b", "c", weight=4)
>>> G.size()
2
>>> G.size(weight="weight")
6.0
"""
s = sum(d for v, d in self.degree(weight=weight))
# If `weight` is None, the sum of the degrees is guaranteed to be
# even, so we can perform integer division and hence return an
# integer. Otherwise, the sum of the weighted degrees is not
# guaranteed to be an integer, so we perform "real" division.
return s // 2 if weight is None else s / 2
| (self, weight=None) | [
-0.021003635600209236,
-0.031080203130841255,
-0.015993084758520126,
0.012138104066252708,
0.008763840422034264,
0.041304685175418854,
-0.01304407138377428,
0.0021643820218741894,
0.03080286644399166,
0.016224199905991554,
0.005800960119813681,
-0.01143551804125309,
0.04651861637830734,
-0.0065359026193618774,
-0.01703771948814392,
0.04810867831110954,
0.003963604103773832,
0.0046893018297851086,
0.013182739727199078,
0.05043830722570419,
-0.01021523680537939,
-0.039012033492326736,
0.05014248192310333,
-0.03165336698293686,
-0.024220742285251617,
0.004453565925359726,
0.040454186499118805,
-0.014430754818022251,
0.05376634746789932,
0.006970396731048822,
-0.07632306963205338,
-0.04707328975200653,
-0.045963943004608154,
0.05528245493769646,
0.03583190590143204,
0.07059144228696823,
0.00479792570695281,
0.04662954807281494,
-0.06641290336847305,
0.012359973974525928,
-0.02381398156285286,
0.03557305783033371,
0.0654514729976654,
0.021817157045006752,
0.005056773312389851,
0.009762252680957317,
0.006891817785799503,
0.008417169563472271,
-0.06456398963928223,
-0.058610495179891586,
0.03511083126068115,
0.009965633042156696,
0.0007378312875516713,
0.030248193070292473,
0.014042483642697334,
0.009836209937930107,
0.008588193915784359,
-0.006443456746637821,
-0.006628348026424646,
0.028584172949194908,
0.020855722948908806,
-0.01650153659284115,
0.05620691180229187,
-0.05879538878798485,
-0.059460997581481934,
-0.01339536439627409,
-0.02074478752911091,
0.019062278792262077,
-0.02499728463590145,
0.0022938058245927095,
0.05665064975619316,
-0.003432042198255658,
0.010353905148804188,
0.018433649092912674,
0.01081613264977932,
0.03731103613972664,
0.014652623794972897,
0.023647578433156013,
0.02614361047744751,
-0.03180127963423729,
0.03566550463438034,
0.012600332498550415,
0.0313020721077919,
-0.02614361047744751,
0.07099820673465729,
-0.0007661427371203899,
0.013626478612422943,
0.032226528972387314,
-0.012951625511050224,
-0.002331939758732915,
-0.02251974307000637,
0.02301894873380661,
0.011546452529728413,
0.025422533974051476,
-0.005066017620265484,
-0.030636465176939964,
-0.045520201325416565,
-0.07994693517684937,
0.02856568433344364,
-0.014957694336771965,
-0.06752225011587143,
0.014227374456822872,
0.034408245235681534,
0.001821177895180881,
-0.044928550720214844,
-0.07414135336875916,
0.01783275231719017,
-0.05210232734680176,
-0.018341202288866043,
0.008287746459245682,
-0.01930263638496399,
0.007950319908559322,
0.02425771951675415,
0.02873208560049534,
0.026125119999051094,
0.02166924439370632,
0.02549649029970169,
-0.011195159517228603,
0.008629795163869858,
0.015678770840168,
-0.01688980683684349,
0.07314293831586838,
0.009679052047431469,
-0.009780742228031158,
0.06186458095908165,
0.01535521075129509,
-0.013839103281497955,
-0.06437910348176956,
0.006253943312913179,
-0.007811651565134525,
0.0732908546924591,
0.0015322854742407799,
0.01650153659284115,
0.05188046023249626,
0.023684557527303696,
0.03322494029998779,
-0.017259590327739716,
0.010575774125754833,
0.032318975776433945,
0.04008440300822258,
0.00872224010527134,
0.011241381987929344,
0.025311598554253578,
0.0017229544464498758,
-0.02078176662325859,
0.022057514637708664,
0.011306094005703926,
-0.04086094722151756,
0.002396651543676853,
0.0022290940396487713,
-0.017675595358014107,
-0.00923993531614542,
0.01155569776892662,
-0.00022548054403159767,
0.0014097950188443065,
0.014449244365096092,
-0.001139391795732081,
0.009406337514519691,
-0.040750011801719666,
-0.03860527276992798,
-0.03348378837108612,
0.04489157348871231,
0.0105665298178792,
-0.025219153612852097,
-0.023000460118055344,
0.022612188011407852,
0.03496291860938072,
0.014569423161447048,
-0.05036435276269913,
0.017971420660614967,
0.002888924442231655,
-0.04666652902960777,
-0.04100885987281799,
0.009928654879331589,
0.03474104776978493,
0.057168345898389816,
0.018322713673114777,
-0.015299743041396141,
-0.0006534747080877423,
-0.021521329879760742,
0.0453353114426136,
-0.06796599179506302,
-0.02375851385295391,
0.012480152770876884,
0.04052814096212387,
0.020264070481061935,
0.013561766594648361,
0.027345402166247368,
-0.010455595329403877,
0.024719947949051857,
0.006304788403213024,
-0.03226350620388985,
0.007173777092248201,
0.043782226741313934,
0.008019654080271721,
-0.04141562059521675,
0.016834339126944542,
-0.022704634815454483,
-0.06541448831558228,
0.039418794214725494,
0.011407784186303616,
-0.05217628553509712,
0.029582584276795387,
0.026273032650351524,
0.029582584276795387,
0.019635440781712532,
0.03389054909348488,
-0.013940793462097645,
-0.03695974126458168,
-0.004509033169597387,
-0.053359586745500565,
-0.014458488672971725,
0.036294132471084595,
0.023185351863503456,
0.01688980683684349,
-0.02107759192585945,
-0.03993649035692215,
-0.018840409815311432,
0.006794750224798918,
-0.034352775663137436,
0.038568295538425446,
0.06970396637916565,
0.04674048349261284,
-0.002212916035205126,
0.04152655228972435,
-0.08260937035083771,
0.0024243853986263275,
-0.011611164547502995,
0.012563354335725307,
0.005745492875576019,
0.05391426011919975,
-0.01959846355021,
0.03047006204724312,
0.017814263701438904,
0.0076498715206980705,
0.01304407138377428,
-0.045520201325416565,
-0.017675595358014107,
-0.01791595295071602,
-0.02216845005750656,
-0.04356035590171814,
-0.024442611262202263,
-0.05824071541428566,
0.0011590364156290889,
-0.0454462468624115,
-0.02475692518055439,
-0.0033488410990685225,
0.005440422333776951,
-0.03228199481964111,
-0.032078616321086884,
-0.06264112144708633,
-0.061531778424978256,
-0.004862637259066105,
-0.053655412048101425,
-0.002160915406420827,
0.00662372587248683,
-0.03407543897628784,
0.00638798950240016,
-0.042598921805620193,
-0.0048718820326030254,
0.05302678421139717,
-0.007811651565134525,
-0.005056773312389851,
0.05557828024029732,
0.008292368613183498,
0.019875800237059593,
0.014171906746923923,
0.001457173377275467,
-0.10871600359678268,
0.030192725360393524,
0.09666109830141068,
-0.03250386565923691,
0.05195441469550133,
-0.0290279109030962,
-0.036589961498975754,
-0.0830531045794487,
-0.00845877081155777,
0.0737345963716507,
-0.05025341734290123,
0.004691612906754017,
-0.06319579482078552,
-0.007571293041110039,
-0.06027451530098915,
0.018405914306640625,
-0.0654514729976654,
0.03695974126458168,
0.01788822002708912,
-0.02693864144384861,
-0.038864120841026306,
0.014208885841071606,
0.05494965240359306,
-0.013829858973622322,
-0.025588935241103172,
0.01895134337246418,
-0.008218412287533283,
-0.009669807739555836,
-0.0022591387387365103,
-0.021207015961408615,
0.05927610397338867,
0.08386662602424622,
-0.00009519005834590644,
-0.02470145933330059,
-0.003314174013212323,
-0.034297309815883636,
0.010658974759280682,
0.028806041926145554,
0.09496010094881058,
-0.005029039457440376,
0.038975056260824203,
0.0164738018065691,
-0.059017255902290344,
0.04825659096240997,
-0.03993649035692215,
0.03209710493683815,
0.036589961498975754,
0.024239230901002884,
-0.011740588583052158,
-0.0060967858880758286,
-0.04315359517931938,
0.054986629635095596,
0.007196888327598572,
0.08889567106962204,
-0.015373699367046356,
-0.001416728482581675,
-0.06230831891298294,
0.043486401438713074,
0.0053525990806519985,
0.03233746439218521,
0.08874775469303131,
-0.02873208560049534,
-0.04651861637830734,
-0.02157679758965969,
0.040306273847818375,
0.017989909276366234,
-0.08889567106962204,
0.035055361688137054,
0.0936288833618164,
0.05480173975229263,
-0.06045940890908241,
-0.00663759233430028,
0.03398299589753151,
0.01021523680537939,
0.0037093788851052523,
0.03786570951342583,
-0.0033904416486620903,
-0.028750574216246605,
0.015466145239770412,
-0.049291983246803284,
0.047738898545503616,
0.011990191414952278,
-0.013561766594648361,
0.04940291866660118,
0.004765569698065519,
-0.014319820329546928,
0.0033927527256309986,
0.016409089788794518,
0.005260153207927942,
0.011278360150754452,
0.028158923611044884,
0.04633372277021408,
-0.0828312411904335,
0.02917582541704178,
0.009762252680957317,
0.004647701513022184,
0.005814827047288418,
-0.009863942861557007,
0.02490483969449997,
0.03751441463828087,
0.006438834592700005,
-0.028214391320943832,
-0.011749832890927792,
-0.06877951323986053,
-0.07957715541124344,
-0.01856307126581669,
0.028898488730192184,
0.06970396637916565,
-0.029693519696593285,
0.0019737130496650934,
0.048145655542612076,
0.00714142108336091,
-0.03555456921458244,
0.02623605541884899,
0.021022124215960503,
0.010705198161303997,
0.015595569275319576,
-0.02629152312874794,
-0.01889587566256523,
0.00870837364345789,
-0.009753008373081684,
0.001127836061641574,
-0.0470363087952137,
0.011796055361628532,
-0.03686729818582535,
-0.013746657408773899,
-0.05376634746789932,
0.00008428436558460817,
0.043634314090013504,
-0.005514378659427166,
-0.054986629635095596,
0.00453907810151577,
0.02296348102390766,
-0.02466448023915291,
-0.04326453059911728,
0.06326975673437119,
-0.03533269837498665,
0.0074187577702105045,
-0.04097187891602516,
0.04674048349261284,
0.031431496143341064,
-0.03701521083712578,
0.021262483671307564,
-0.003963604103773832,
-0.04836752638220787,
0.02782611921429634,
-0.04518739879131317,
-0.023832470178604126,
0.050734132528305054,
0.023924915120005608,
0.05173254385590553,
-0.03522176668047905,
0.03298458084464073,
0.028695108368992805,
0.04097187891602516,
0.03642355650663376,
0.07721054553985596,
-0.027456337586045265,
-0.008306235074996948,
-0.03011876903474331,
0.022002046927809715,
0.035794928669929504,
-0.04489157348871231,
-0.0164738018065691,
-0.002630076603963971,
-0.015438411384820938,
0.011306094005703926,
-0.011823789216578007,
-0.005324865225702524,
-0.022760100662708282,
0.012387707829475403,
-0.026679793372750282,
0.016279665753245354,
-0.0006858306587673724,
-0.021059103310108185,
-0.008532727137207985,
-0.007534314412623644,
-0.11936572939157486,
0.00227647228166461,
-0.03000783547759056,
-0.02142888493835926,
-0.06970396637916565,
0.006993507966399193,
-0.07070238143205643,
0.04330150783061981,
-0.015327476896345615,
-0.09991518408060074,
0.011093469336628914,
0.017499947920441628,
-0.01889587566256523,
-0.007857874035835266,
-0.028103455901145935,
0.04788681119680405,
0.01842440292239189,
-0.016409089788794518,
-0.03309551626443863,
-0.06922324746847153,
-0.02679072879254818,
-0.00449516624212265,
-0.006669948343187571,
0.02272312343120575,
0.005546734668314457,
0.07839385420084,
0.0005330065614543855,
-0.07558350265026093,
-0.0330030731856823,
0.0830531045794487,
0.028214391320943832,
-0.0327812023460865,
-0.031579408794641495,
-0.03740347921848297,
-0.058610495179891586,
0.011870012618601322,
0.021946581080555916,
0.03860527276992798,
-0.0004688724293373525,
0.006928795948624611,
0.006013584788888693,
-0.058721430599689484,
-0.01096404530107975,
0.031523942947387695,
0.011574186384677887,
-0.01267428882420063,
-0.0024983417242765427,
-0.010150524787604809,
-0.03960368409752846,
0.025977207347750664,
0.01582668349146843,
0.03670089319348335,
0.0035915107000619173,
0.0008880553650669754,
0.015096362680196762,
-0.029508627951145172,
-0.01818404532968998,
0.05417310819029808,
-0.009956388734281063,
-0.027807630598545074,
0.035351190716028214,
-0.03204163908958435,
0.008246145211160183,
0.06230831891298294,
0.03392752632498741,
-0.0013785946648567915,
0.05413613095879555,
0.02163226529955864,
0.06341766566038132,
0.057723019272089005,
-0.00031171494629234076,
0.015789704397320747,
0.065562404692173,
0.025977207347750664,
-0.011731344275176525,
0.03392752632498741,
0.016751138493418694,
-0.017869729548692703,
0.044078052043914795,
-0.05894330143928528,
0.04326453059911728,
-0.03446371108293533,
-0.054247066378593445,
0.051177870482206345,
0.055541303008794785,
0.06038545072078705,
0.06800296902656555,
-0.047406092286109924,
0.03923390433192253,
0.011306094005703926,
-0.018766451627016068,
-0.01842440292239189,
-0.014476977288722992,
-0.07136798650026321,
0.017000742256641388,
-0.010751420632004738,
-0.04352337867021561,
-0.03507385402917862,
0.013774391263723373,
0.008098232559859753,
0.045520201325416565,
0.058610495179891586,
-0.02758575975894928,
0.04788681119680405,
-0.0786157175898552,
-0.05014248192310333,
0.011306094005703926,
-0.004656945820897818,
-0.015466145239770412,
0.09562570601701736,
-0.003963604103773832,
-0.003757912665605545,
-0.07207057625055313,
-0.0054450444877147675,
-0.016224199905991554,
-0.025274621322751045,
-0.0654514729976654,
-0.01302558183670044,
0.01788822002708912,
0.05225023999810219,
-0.005653047002851963,
0.009350869804620743,
-0.043856181204319,
-0.012267528101801872,
0.01939508318901062,
-0.05343354493379593,
0.03501838445663452,
0.03091380186378956,
-0.006762394215911627,
0.007354045752435923,
-0.024331675842404366,
-0.04600092023611069,
0.009244557470083237,
0.019783353433012962,
-0.040750011801719666,
-0.04588998481631279,
-0.03204163908958435,
0.01562330313026905,
0.04821961373090744,
-0.018932854756712914,
0.025718359276652336,
-0.050771113485097885,
-0.013127272017300129,
-0.07003676891326904,
0.06485981494188309,
-0.04796076565980911,
-0.10279948264360428,
0.022797079756855965,
0.02222391776740551,
-0.037976644933223724,
-0.014819025993347168,
-0.006998130120337009,
-0.019635440781712532,
0.007686849683523178,
-0.004643079359084368,
-0.042487986385822296,
0.03522176668047905,
0.031191138550639153,
0.06108803674578667,
0.0022753167431801558,
0.019561484456062317,
0.01554934587329626,
0.03904901072382927,
0.012535620480775833,
-0.06445305794477463,
-0.0002943814033642411,
-0.007224622182548046,
0.010067323222756386,
-0.053211674094200134,
-0.05099298059940338,
-0.005421933252364397,
0.011167425662279129,
0.02619907632470131,
-0.01842440292239189,
0.01282220147550106,
-0.01862778328359127,
-0.03960368409752846,
-0.012258283793926239,
-0.003344218712300062,
-0.019117746502161026,
0.062086451798677444,
-0.01389457006007433,
-0.002886613132432103,
-0.040897924453020096,
0.004858015105128288,
0.013589500449597836,
-0.056132953613996506,
0.017342790961265564,
-0.04137863963842392,
0.03879016637802124,
-0.06097710505127907,
-0.006466567981988192,
0.004032938275486231,
-0.022908015176653862,
0.010788398794829845,
0.008056632243096828,
0.10413070023059845,
-0.03949275240302086,
-0.007210755255073309,
0.0017714883433654904,
0.021410396322607994,
-0.005338732153177261,
-0.04182238131761551,
0.028454748913645744,
0.0034204863477498293,
-0.010353905148804188,
-0.008810063824057579,
0.02529310993850231,
-0.03620168939232826,
0.050882045179605484,
0.03736650198698044,
0.017610883340239525,
-0.03407543897628784,
-0.0359613299369812,
-0.07772824168205261,
-0.023444198071956635,
0.006092163734138012,
0.04182238131761551,
0.011740588583052158,
0.021354928612709045,
0.011047246865928173,
-0.011546452529728413,
-0.008056632243096828,
-0.0055513568222522736,
-0.10139431059360504,
-0.005921139381825924,
0.06596916168928146,
0.026901664212346077,
-0.004682368598878384,
-0.07994693517684937,
0.06045940890908241,
-0.016806606203317642,
-0.04111979156732559,
0.03938181698322296,
-0.0020615363027900457,
0.005528245586901903,
0.021891113370656967,
-0.04367129132151604,
-0.018812675029039383,
0.040417205542325974,
-0.03000783547759056,
-0.07317992299795151,
0.007224622182548046,
0.026032675057649612,
0.0039705378003418446,
-0.042746834456920624,
-0.07447415590286255,
0.0328366681933403,
-0.0015045517357066274,
0.0015946861822158098,
-0.03287364915013313,
-0.037089165300130844,
0.000029539251045207493,
0.05506058782339096,
-0.02237183041870594,
0.033169474452733994,
0.015632547438144684,
-0.002484475029632449,
-0.027215978130698204,
-0.006351011339575052,
-0.05165858939290047,
-0.06297393143177032,
0.03823549300432205,
0.026568859815597534,
0.03030366078019142,
-0.05376634746789932,
-0.03923390433192253,
-0.01473582535982132,
-0.03446371108293533,
-0.009133622981607914,
0.07706263661384583,
0.03244839981198311,
0.027622738853096962,
-0.051177870482206345,
0.02107759192585945,
-0.026864685118198395,
-0.005976606626063585,
0.04126770794391632,
0.021613776683807373,
-0.04662954807281494,
0.001032501575537026,
0.051621612161397934,
-0.0016120197251439095,
-0.007663738448172808,
0.00837094709277153,
-0.01004883460700512,
-0.031080203130841255,
0.00851885974407196,
0.020911190658807755,
-0.01021523680537939,
0.04400409385561943,
0.018091600388288498,
-0.00022374719264917076,
0.031967680901288986,
-0.013774391263723373,
0.05110391601920128,
0.02788158692419529,
-0.013931548222899437,
-0.03109869174659252,
0.06755922734737396,
-0.05432102084159851,
0.011768322438001633,
0.0579448901116848,
0.02782611921429634,
-0.015410677529871464,
-0.006258565466850996,
0.00375097943469882,
0.05313771963119507,
-0.05402519553899765,
0.010982534848153591,
-0.03477802500128746,
0.0029328360687941313,
-0.09614340215921402,
-0.0047794366255402565,
-0.014837515540421009,
-0.0008545438176952302,
-0.034556157886981964,
0.0009556561708450317,
0.024387143552303314,
-0.006785505451261997,
0.03867923095822334,
0.017398258671164513,
0.03328040987253189
]
|
30,101 | networkx.classes.graph | subgraph | Returns a SubGraph view of the subgraph induced on `nodes`.
The induced subgraph of the graph contains the nodes in `nodes`
and the edges between those nodes.
Parameters
----------
nodes : list, iterable
A container of nodes which will be iterated through once.
Returns
-------
G : SubGraph View
A subgraph view of the graph. The graph structure cannot be
changed but node/edge attributes can and are shared with the
original graph.
Notes
-----
The graph, edge and node attributes are shared with the original graph.
Changes to the graph structure is ruled out by the view, but changes
to attributes are reflected in the original graph.
To create a subgraph with its own copy of the edge/node attributes use:
G.subgraph(nodes).copy()
For an inplace reduction of a graph to a subgraph you can remove nodes:
G.remove_nodes_from([n for n in G if n not in set(nodes)])
Subgraph views are sometimes NOT what you want. In most cases where
you want to do more than simply look at the induced edges, it makes
more sense to just create the subgraph as its own graph with code like:
::
# Create a subgraph SG based on a (possibly multigraph) G
SG = G.__class__()
SG.add_nodes_from((n, G.nodes[n]) for n in largest_wcc)
if SG.is_multigraph():
SG.add_edges_from(
(n, nbr, key, d)
for n, nbrs in G.adj.items()
if n in largest_wcc
for nbr, keydict in nbrs.items()
if nbr in largest_wcc
for key, d in keydict.items()
)
else:
SG.add_edges_from(
(n, nbr, d)
for n, nbrs in G.adj.items()
if n in largest_wcc
for nbr, d in nbrs.items()
if nbr in largest_wcc
)
SG.graph.update(G.graph)
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> H = G.subgraph([0, 1, 2])
>>> list(H.edges)
[(0, 1), (1, 2)]
| def subgraph(self, nodes):
"""Returns a SubGraph view of the subgraph induced on `nodes`.
The induced subgraph of the graph contains the nodes in `nodes`
and the edges between those nodes.
Parameters
----------
nodes : list, iterable
A container of nodes which will be iterated through once.
Returns
-------
G : SubGraph View
A subgraph view of the graph. The graph structure cannot be
changed but node/edge attributes can and are shared with the
original graph.
Notes
-----
The graph, edge and node attributes are shared with the original graph.
Changes to the graph structure is ruled out by the view, but changes
to attributes are reflected in the original graph.
To create a subgraph with its own copy of the edge/node attributes use:
G.subgraph(nodes).copy()
For an inplace reduction of a graph to a subgraph you can remove nodes:
G.remove_nodes_from([n for n in G if n not in set(nodes)])
Subgraph views are sometimes NOT what you want. In most cases where
you want to do more than simply look at the induced edges, it makes
more sense to just create the subgraph as its own graph with code like:
::
# Create a subgraph SG based on a (possibly multigraph) G
SG = G.__class__()
SG.add_nodes_from((n, G.nodes[n]) for n in largest_wcc)
if SG.is_multigraph():
SG.add_edges_from(
(n, nbr, key, d)
for n, nbrs in G.adj.items()
if n in largest_wcc
for nbr, keydict in nbrs.items()
if nbr in largest_wcc
for key, d in keydict.items()
)
else:
SG.add_edges_from(
(n, nbr, d)
for n, nbrs in G.adj.items()
if n in largest_wcc
for nbr, d in nbrs.items()
if nbr in largest_wcc
)
SG.graph.update(G.graph)
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> H = G.subgraph([0, 1, 2])
>>> list(H.edges)
[(0, 1), (1, 2)]
"""
induced_nodes = nx.filters.show_nodes(self.nbunch_iter(nodes))
# if already a subgraph, don't make a chain
subgraph = nx.subgraph_view
if hasattr(self, "_NODE_OK"):
return subgraph(
self._graph, filter_node=induced_nodes, filter_edge=self._EDGE_OK
)
return subgraph(self, filter_node=induced_nodes)
| (self, nodes) | [
0.0008770495187491179,
-0.05474080145359039,
-0.018928876146674156,
-0.0017243054462596774,
-0.07567577809095383,
0.015969377011060715,
-0.021411677822470665,
0.005884238984435797,
0.08707680553197861,
-0.03714270517230034,
0.008183312602341175,
0.03140246868133545,
0.0071306051686406136,
0.039685092866420746,
-0.0354742631316185,
0.03052852302789688,
-0.011659234762191772,
-0.019773028790950775,
0.037798166275024414,
0.05704484134912491,
-0.02613893151283264,
-0.06332135945558548,
0.019306261092424393,
0.026575904339551926,
-0.02615879289805889,
0.03054838627576828,
0.009826927445828915,
-0.00041835199226625264,
-0.0005446645081974566,
-0.01553240418434143,
-0.04663693904876709,
-0.05704484134912491,
-0.03162095695734024,
-0.028780631721019745,
0.01965385489165783,
0.05299290642142296,
-0.0021761751268059015,
0.04294252768158913,
-0.02403351478278637,
0.0436973012983799,
-0.017588162794709206,
-0.06407613307237625,
0.04147271066904068,
-0.04822592809796333,
0.03666600584983826,
0.00830745231360197,
0.03225655108690262,
0.06248714029788971,
-0.025761544704437256,
-0.03571261093020439,
0.045683540403842926,
-0.04465069621801376,
-0.018730251118540764,
0.018978532403707504,
-0.030230587348341942,
0.02319929376244545,
0.007885376922786236,
0.05485997349023819,
0.06689659506082535,
0.00011001912935171276,
-0.0003817306715063751,
-0.07126632332801819,
0.0005241814069449902,
-0.01963399164378643,
-0.04337950050830841,
-0.00024409039178863168,
-0.06733356416225433,
-0.0653473287820816,
-0.06570485234260559,
0.027946410700678825,
-0.03410375863313675,
0.03140246868133545,
0.01722070947289467,
-0.027688197791576385,
-0.004893600940704346,
-0.019177155569195747,
-0.02478828653693199,
0.013814305886626244,
-0.015115293674170971,
-0.0464780367910862,
0.041909683495759964,
0.0033021254930645227,
-0.0163368321955204,
-0.005482024978846312,
0.08485221117734909,
-0.005477059166878462,
0.017945686355233192,
0.014350591227412224,
-0.027370400726795197,
-0.015721097588539124,
-0.013397195376455784,
-0.0022879012394696474,
0.01526426151394844,
0.042704179883003235,
0.01962406001985073,
-0.0022320381831377745,
-0.04874235391616821,
-0.05899135395884514,
0.003339367685839534,
-0.0628843903541565,
-0.001550509361550212,
0.01378451194614172,
-0.0736498162150383,
0.019792890176177025,
-0.021669888868927956,
-0.042386382818222046,
-0.029932651668787003,
-0.0015455437824130058,
0.0023325916845351458,
-0.0627652108669281,
-0.04604106396436691,
0.070948526263237,
0.034520868211984634,
0.057442087680101395,
0.003590130480006337,
0.007259710691869259,
0.0038880666252225637,
-0.034759216010570526,
0.008004550822079182,
-0.02423213981091976,
-0.048702627420425415,
0.04548491910099983,
-0.0218089260160923,
0.05259566009044647,
-0.007949929684400558,
-0.0000739021270419471,
0.046239688992500305,
0.018948739394545555,
0.02071649208664894,
-0.06753218919038773,
0.03108466975390911,
-0.018928876146674156,
-0.04067821428179741,
0.023596541956067085,
0.026377279311418533,
-0.03867211192846298,
-0.006817772053182125,
0.00029064289992675185,
-0.0012525732163339853,
0.06121594458818436,
-0.06169264391064644,
-0.017866237089037895,
0.03215724229812622,
0.0792112872004509,
-0.03501742705702782,
-0.014012929983437061,
0.011351366527378559,
-0.01884942688047886,
-0.01962406001985073,
-0.009439609944820404,
-0.053588781505823135,
0.011947238817811012,
0.014757770113646984,
-0.007805926725268364,
-0.00006129415123723447,
-0.030468935146927834,
-0.06093787029385567,
0.03025044873356819,
-0.011957170441746712,
-0.0013444367796182632,
-0.05756126344203949,
0.021908236667513847,
-0.017260434105992317,
-0.017925824970006943,
-0.022583559155464172,
-0.014449902810156345,
0.06578429788351059,
-0.04465069621801376,
-0.04774923250079155,
0.018432315438985825,
-0.016694355756044388,
-0.005298297852277756,
-0.06522814929485321,
-0.028721043840050697,
-0.028184758499264717,
0.04576298967003822,
0.05938860401511192,
0.007696683518588543,
-0.021769201382994652,
0.04973547160625458,
0.015433091670274734,
-0.056647591292858124,
-0.013615681789815426,
0.0064751454629004,
0.0191374309360981,
0.03873169794678688,
0.006653907243162394,
0.006678735371679068,
0.05680648982524872,
-0.03767899051308632,
0.01773713156580925,
-0.006499973591417074,
0.0231794323772192,
0.03245517611503601,
0.021193191409111023,
-0.048980701714754105,
-0.03746050223708153,
0.016019033268094063,
-0.05068887025117874,
0.0873946025967598,
-0.012443799525499344,
-0.003359230002388358,
0.05509832501411438,
-0.009439609944820404,
0.01993192732334137,
0.04385619983077049,
0.002547353971749544,
-0.02705260179936886,
-0.03297159820795059,
0.03960564360022545,
-0.04020151495933533,
-0.0129502909258008,
0.10066269338130951,
-0.014658458530902863,
-0.049298498779535294,
-0.036447521299123764,
-0.056846216320991516,
0.010666114278137684,
-0.007339160423725843,
-0.04040013998746872,
0.02014048397541046,
-0.019167225807905197,
-0.017617957666516304,
-0.027370400726795197,
0.010944187641143799,
-0.07758256793022156,
0.01962406001985073,
-0.021054154261946678,
0.02423213981091976,
-0.05311208218336105,
0.040757663547992706,
-0.015224536880850792,
0.035891372710466385,
-0.035077016800642014,
-0.023914340883493423,
0.05271483585238457,
-0.03680504485964775,
0.005571405868977308,
0.05120529234409332,
0.033388711512088776,
-0.0682075172662735,
-0.05950777977705002,
-0.02020006999373436,
0.008520973846316338,
-0.015194742940366268,
-0.006033206824213266,
0.015731027349829674,
0.01582040823996067,
-0.015721097588539124,
0.01827341690659523,
-0.03626875951886177,
-0.05211896076798439,
0.0019576887134462595,
0.01799534261226654,
0.02349722944200039,
0.03851321339607239,
-0.07297449558973312,
-0.05239703506231308,
0.005273469723761082,
-0.00995603296905756,
0.031283292919397354,
0.055495571345090866,
-0.031481917947530746,
0.054542176425457,
0.011649303138256073,
-0.012463661842048168,
0.019028188660740852,
0.019514817744493484,
-0.06689659506082535,
0.022027412429451942,
0.0355139896273613,
0.051840890198946,
0.024629388004541397,
0.015711165964603424,
0.007840686477720737,
-0.008486214093863964,
-0.021153466776013374,
0.0021376917138695717,
-0.021371953189373016,
-0.0068624624982476234,
-0.04206858202815056,
0.004685045685619116,
-0.05680648982524872,
0.025721820071339607,
-0.00007735477265669033,
-0.04616023972630501,
0.01939564198255539,
-0.01257290504872799,
-0.0038508246652781963,
-0.01911756955087185,
0.05152308940887451,
-0.06073924899101257,
0.027112189680337906,
0.033924996852874756,
0.018054930493235588,
0.04699445888400078,
-0.012811253778636456,
-0.01542316097766161,
0.012066413648426533,
0.055495571345090866,
0.07964826375246048,
-0.03112439624965191,
0.03060797229409218,
0.0017267882358282804,
0.06773081421852112,
-0.0022903841454535723,
0.008208140730857849,
0.0018993428675457835,
0.024152690544724464,
0.01990213431417942,
-0.08477276563644409,
-0.013049602508544922,
0.005710442550480366,
-0.013287952169775963,
-0.053588781505823135,
-0.05533667281270027,
-0.016972428187727928,
-0.05807768553495407,
0.03162095695734024,
0.06685686856508255,
-0.028820356354117393,
0.03974468261003494,
-0.05537639558315277,
0.04798758029937744,
-0.03436196967959404,
0.02617865614593029,
0.024132827296853065,
0.07670862227678299,
0.013357470743358135,
-0.004960636608302593,
-0.04755060747265816,
0.012066413648426533,
0.010229140520095825,
0.041353534907102585,
-0.07480183243751526,
0.009995757602155209,
0.07448403537273407,
0.02756902389228344,
-0.01161950919777155,
-0.03732146695256233,
0.049497123807668686,
0.057998236268758774,
-0.023417780175805092,
-0.005685614887624979,
0.02290135808289051,
0.007229917217046022,
0.018054930493235588,
-0.01966378465294838,
-0.028284071013331413,
-0.021471263840794563,
-0.013417057693004608,
0.05041079595685005,
-0.04421372339129448,
0.010129828937351704,
-0.009558784775435925,
0.018462110310792923,
-0.014459834434092045,
-0.007205089088529348,
0.008362074382603168,
-0.006827703211456537,
0.01968364790081978,
0.05104639381170273,
-0.01036817766726017,
-0.02889980562031269,
0.041591886430978775,
-0.02840324491262436,
-0.02540402114391327,
0.06506925076246262,
-0.018740182742476463,
-0.10153663903474808,
-0.015582060441374779,
-0.0545818991959095,
0.007815858349204063,
0.04030082747340202,
-0.012761598452925682,
0.04018165543675423,
-0.05748181417584419,
-0.0026863908860832453,
0.02786695957183838,
0.04504794627428055,
0.028025859966874123,
-0.003910411614924669,
0.0326935276389122,
0.007354056928306818,
0.07317311316728592,
-0.04314115270972252,
0.023298606276512146,
-0.010755494236946106,
0.049258776009082794,
-0.010239072144031525,
-0.03785775229334831,
0.008684838190674782,
0.016724148765206337,
0.027489574626088142,
-0.0245499387383461,
-0.03245517611503601,
0.0846933126449585,
0.0003460404113866389,
-0.01719091460108757,
-0.025225259363651276,
0.002971912967041135,
0.011301711201667786,
-0.008009516634047031,
0.05267510935664177,
0.028760768473148346,
-0.029356641694903374,
0.05382712930440903,
0.04318087920546532,
0.04333977773785591,
-0.053310707211494446,
0.029594989493489265,
-0.02782723493874073,
-0.0599447526037693,
0.035295501351356506,
0.03567288815975189,
0.004970567766577005,
0.023874616250395775,
0.057164013385772705,
0.06522814929485321,
0.011361298151314259,
0.05621061846613884,
0.03620917350053787,
0.05891190469264984,
-0.00846635177731514,
0.04985464736819267,
-0.05227786302566528,
-0.0626460388302803,
-0.015691302716732025,
-0.010005688294768333,
0.05267510935664177,
-0.010646251030266285,
-0.0900164395570755,
0.014797494746744633,
-0.013089328072965145,
0.001981275388970971,
-0.028005996719002724,
0.013834168203175068,
0.0015070602530613542,
0.0010707080364227295,
0.045921891927719116,
0.005899135489016771,
0.005412506405264139,
-0.008759322576224804,
-0.10741590708494186,
0.027171775698661804,
-0.04723281040787697,
-0.018074791878461838,
0.020676767453551292,
-0.001557957730256021,
-0.041591886430978775,
0.062328241765499115,
-0.013913617469370365,
0.010616458021104336,
-0.02671494148671627,
-0.06852531433105469,
0.006961774546653032,
0.04206858202815056,
0.0191374309360981,
-0.035613298416137695,
0.027708061039447784,
0.026417003944516182,
0.015284123830497265,
0.002649148926138878,
0.014718045480549335,
-0.01010500080883503,
-0.014012929983437061,
0.08477276563644409,
-0.01693270355463028,
-0.03708311915397644,
-0.017051879316568375,
0.048186205327510834,
-0.028562145307660103,
-0.061811819672584534,
-0.06391723453998566,
0.08326321840286255,
0.009543887339532375,
-0.06316246092319489,
-0.036109860986471176,
-0.042664457112550735,
-0.07666890323162079,
-0.023636266589164734,
0.0018583766650408506,
0.013923549093306065,
0.01611834578216076,
-0.011808202601969242,
0.030349761247634888,
0.01666456088423729,
0.02071649208664894,
-0.05092721804976463,
-0.007870479486882687,
0.0016001653857529163,
-0.03855293616652489,
-0.09581626206636429,
0.016773805022239685,
0.016227588057518005,
0.03865224868059158,
-0.016475869342684746,
-0.0327531136572361,
0.04063848778605461,
-0.052555933594703674,
0.016177931800484657,
-0.03378595784306526,
0.05922970548272133,
0.013198571279644966,
0.02377530373632908,
0.04584244266152382,
0.0004304556641727686,
0.048662904649972916,
0.029813475906848907,
-0.026814252138137817,
0.016694355756044388,
-0.023020531982183456,
-0.017518645152449608,
0.023318469524383545,
0.026536179706454277,
-0.011301711201667786,
-0.042664457112550735,
0.024172551929950714,
0.08413716405630112,
-0.04042000323534012,
0.03839403763413429,
0.015462885610759258,
0.021669888868927956,
0.03676531836390495,
0.016992291435599327,
0.005308229010552168,
-0.009926239028573036,
0.0011234675766900182,
0.0047495984472334385,
0.01721077784895897,
0.006991568021476269,
0.04465069621801376,
0.00015214916493277997,
0.08238927274942398,
0.01721077784895897,
-0.04469042271375656,
-0.01241400558501482,
-0.017856305465102196,
-0.02266300842165947,
-0.0004670769558288157,
0.017320020124316216,
0.049298498779535294,
-0.006584388669580221,
0.0381755493581295,
-0.02347736805677414,
0.021987687796354294,
0.07464293390512466,
-0.027410125359892845,
0.035851649940013885,
-0.021650025621056557,
-0.04198913276195526,
0.03573247417807579,
0.03420306742191315,
0.03106480836868286,
0.042108308523893356,
-0.028621731325984,
-0.056091442704200745,
-0.010338383726775646,
-0.017925824970006943,
0.004071793984621763,
-0.02131236530840397,
0.00968292448669672,
0.001611337997019291,
-0.01514508668333292,
0.023656129837036133,
0.039704956114292145,
0.015641646459698677,
0.026853976771235466,
0.0026019755750894547,
0.03460031747817993,
-0.016694355756044388,
0.01310919038951397,
0.002634251955896616,
0.001723063993267715,
-0.0354742631316185,
0.010646251030266285,
-0.017081672325730324,
0.021947963163256645,
0.00941974762827158,
-0.022464385256171227,
-0.030349761247634888,
-0.02101442962884903,
0.03895018622279167,
0.019177155569195747,
0.03164081647992134,
0.048146478831768036,
-0.018352866172790527,
0.04969574883580208,
-0.005839548539370298,
-0.025046497583389282,
0.03295173868536949,
-0.02675466611981392,
0.05474080145359039,
0.008252831175923347,
-0.02182878740131855,
0.0017714786808937788,
-0.042148031294345856,
0.0018993428675457835,
-0.022444522008299828,
-0.024192415177822113,
-0.06050089746713638,
0.03307091072201729,
0.07849624007940292,
0.04806702956557274,
-0.016744012013077736,
-0.006321211811155081,
0.0491396002471447,
-0.015919720754027367,
0.02017027698457241,
-0.028423108160495758,
0.005169191863387823,
0.06252686679363251,
0.010407902300357819,
-0.04687528684735298,
-0.02427186444401741,
-0.043538402765989304,
-0.06077897176146507,
0.033984582871198654,
-0.02292122133076191,
-0.036149583756923676,
0.0035305432975292206,
0.00930057279765606,
-0.024986911565065384,
-0.010924325324594975,
-0.05573391914367676,
0.055773645639419556,
0.04067821428179741,
-0.018074791878461838,
-0.024986911565065384,
0.02262328378856182,
0.033110637217760086,
-0.09676966071128845,
0.004896083846688271,
0.029594989493489265,
0.019216880202293396,
-0.10503242164850235,
0.015631716698408127,
0.027072463184595108,
-0.020011376589536667,
0.04234665632247925,
-0.023834891617298126,
-0.021709613502025604,
-0.029892925173044205,
-0.013834168203175068,
-0.04608079046010971,
-0.054383277893066406,
-0.006509904749691486,
-0.0409960113465786,
0.012066413648426533,
0.013764649629592896,
0.018621008843183517,
0.056091442704200745,
0.020398695021867752,
-0.02349722944200039,
-0.005194019991904497,
0.04500821977853775,
0.05783933773636818,
-0.03245517611503601,
0.047073911875486374,
-0.01584027148783207,
0.05915025621652603,
-0.01803506724536419,
0.03753995522856712,
-0.0032003307715058327,
0.08004550635814667,
0.001385403098538518,
0.017568301409482956,
-0.010035482235252857,
0.01035824604332447,
-0.01586013473570347,
-0.010407902300357819,
-0.04564381763339043,
-0.053350429981946945,
0.01884942688047886,
-0.0790523886680603,
-0.020229864865541458,
-0.004002275411039591,
-0.0030439142137765884,
-0.00046490452950820327,
-0.029793614521622658,
0.032574351876974106,
0.06050089746713638,
-0.028621731325984,
-0.060381725430488586,
-0.013585887849330902,
-0.01715118996798992,
-0.05621061846613884,
-0.018144311383366585,
0.007622199598699808,
-0.06514870375394821,
0.02097470499575138,
-0.0627254918217659,
0.008277659304440022,
0.01910763792693615,
-0.012255106121301651,
0.050331346690654755,
0.004121449775993824,
-0.014022860676050186,
0.009598509408533573,
-0.03736119344830513,
0.02155071496963501,
0.01935591734945774,
-0.019038120284676552,
0.04290280491113663,
-0.003935239743441343,
-0.003992344252765179,
-0.061295393854379654,
0.00620700279250741,
0.0038781354669481516,
0.010993843898177147,
-0.020418556407094002,
-0.013019809499382973,
0.039109084755182266,
0.010144725441932678,
0.02423213981091976,
-0.03626875951886177,
-0.004342419095337391,
0.004439248703420162,
-0.04306170344352722,
0.02701287716627121,
0.005809754598885775,
-0.001251331763342023,
0.053032632917165756,
0.04619996249675751,
-0.021391814574599266,
0.05203951150178909,
0.070948526263237,
-0.03444141894578934,
0.009965963661670685,
-0.0381755493581295,
-0.03485852852463722,
0.059626951813697815,
0.006991568021476269,
0.01269207987934351,
-0.013566025532782078,
-0.0012960222084075212,
-0.04147271066904068,
0.005402575246989727,
-0.016177931800484657,
0.008228003047406673,
0.006400661543011665,
-0.0078009613789618015,
-0.04536574333906174,
0.027231363579630852,
-0.06622127443552017,
-0.023338330909609795,
0.03444141894578934,
0.051960062235593796,
0.024947186931967735,
-0.008024413138628006,
0.04413427412509918,
0.019494954496622086,
0.006331142969429493,
-0.023656129837036133,
0.03636807203292847,
0.010139759629964828,
-0.00730936648324132,
-0.046517763286828995,
-0.045723266899585724,
-0.0900164395570755,
-0.026099205017089844,
0.034222930669784546,
0.01990213431417942,
0.019475093111395836,
-0.013963273726403713,
0.05323125794529915,
0.03654683381319046,
0.033428434282541275
]
|
30,103 | networkx.classes.graph | to_directed | Returns a directed representation of the graph.
Returns
-------
G : DiGraph
A directed graph with the same name, same nodes, and with
each edge (u, v, data) replaced by two directed edges
(u, v, data) and (v, u, data).
Notes
-----
This returns a "deepcopy" of the edge, node, and
graph attributes which attempts to completely copy
all of the data and references.
This is in contrast to the similar D=DiGraph(G) which returns a
shallow copy of the data.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Warning: If you have subclassed Graph to use dict-like objects
in the data structure, those changes do not transfer to the
DiGraph created by this method.
Examples
--------
>>> G = nx.Graph() # or MultiGraph, etc
>>> G.add_edge(0, 1)
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1), (1, 0)]
If already directed, return a (deep) copy
>>> G = nx.DiGraph() # or MultiDiGraph, etc
>>> G.add_edge(0, 1)
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1)]
| def to_directed(self, as_view=False):
"""Returns a directed representation of the graph.
Returns
-------
G : DiGraph
A directed graph with the same name, same nodes, and with
each edge (u, v, data) replaced by two directed edges
(u, v, data) and (v, u, data).
Notes
-----
This returns a "deepcopy" of the edge, node, and
graph attributes which attempts to completely copy
all of the data and references.
This is in contrast to the similar D=DiGraph(G) which returns a
shallow copy of the data.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Warning: If you have subclassed Graph to use dict-like objects
in the data structure, those changes do not transfer to the
DiGraph created by this method.
Examples
--------
>>> G = nx.Graph() # or MultiGraph, etc
>>> G.add_edge(0, 1)
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1), (1, 0)]
If already directed, return a (deep) copy
>>> G = nx.DiGraph() # or MultiDiGraph, etc
>>> G.add_edge(0, 1)
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1)]
"""
graph_class = self.to_directed_class()
if as_view is True:
return nx.graphviews.generic_graph_view(self, graph_class)
# deepcopy when not a view
G = graph_class()
G.graph.update(deepcopy(self.graph))
G.add_nodes_from((n, deepcopy(d)) for n, d in self._node.items())
G.add_edges_from(
(u, v, deepcopy(data))
for u, nbrs in self._adj.items()
for v, data in nbrs.items()
)
return G
| (self, as_view=False) | [
-0.013653498142957687,
-0.005256363656371832,
0.015834329649806023,
-0.019664766266942024,
-0.004051780328154564,
0.009329114109277725,
-0.03754013031721115,
-0.0022670398466289043,
0.07392460852861404,
-0.018630268052220345,
-0.024194184690713882,
-0.0073859370313584805,
0.011826818808913231,
0.05192989110946655,
0.0034739533439278603,
0.058863818645477295,
-0.049469467252492905,
0.01627236045897007,
0.03336486220359802,
0.0826852098107338,
0.004827653523534536,
-0.07560216635465622,
-0.01137014850974083,
-0.034185003489255905,
-0.023858672007918358,
-0.007716789375990629,
-0.005894769914448261,
-0.008350535295903683,
-0.006915287114679813,
0.03293615207076073,
-0.0235977191478014,
-0.06341187655925751,
-0.0027260398492217064,
0.039404090493917465,
0.03299207240343094,
0.05118430778384209,
-0.02553623542189598,
0.06464209407567978,
-0.06091417372226715,
-0.03970232233405113,
-0.015564056113362312,
-0.011649742722511292,
0.012022534385323524,
-0.0012208929983898997,
0.02503296732902527,
0.0131502291187644,
0.01851843111217022,
0.037689246237277985,
-0.039888717234134674,
-0.07254527509212494,
0.018108360469341278,
0.0001923663803609088,
-0.036831825971603394,
0.05651523172855377,
0.005307622719556093,
0.008122200146317482,
0.02387731336057186,
0.04037334769964218,
0.005885450169444084,
0.02754931151866913,
-0.03547113761305809,
-0.017381416633725166,
0.03435276076197624,
-0.06490304321050644,
-0.030960356816649437,
0.03183641657233238,
-0.05856558680534363,
-0.03880762308835983,
0.009142718277871609,
-0.010466128587722778,
-0.0224793441593647,
-0.0069991652853786945,
0.01608596369624138,
0.031892336905002594,
0.0625171810388565,
0.0404479056596756,
0.03847210854291916,
0.0045154402032494545,
0.011714980937540531,
-0.04365391656756401,
-0.009473570622503757,
-0.04067158326506615,
-0.02926415391266346,
-0.025238001719117165,
0.034725554287433624,
-0.009608707390725613,
-0.010531367734074593,
0.015452218241989613,
0.01431520376354456,
-0.08596578240394592,
0.006850048433989286,
0.0030452427454292774,
-0.019944358617067337,
0.0445113368332386,
-0.009110098704695702,
-0.0025699331890791655,
-0.03043844737112522,
-0.05364473536610603,
0.016160523518919945,
0.019534287974238396,
-0.03996327891945839,
0.013485741801559925,
-0.09401807934045792,
0.009296494536101818,
-0.0557323694229126,
-0.07019668817520142,
-0.009683266282081604,
0.009100778959691525,
-0.023672277107834816,
-0.03534065932035446,
-0.0647539272904396,
0.057745445519685745,
0.05677618458867073,
0.03815523535013199,
0.017381416633725166,
-0.006696272175759077,
0.03314118832349777,
-0.04123076796531677,
-0.019086938351392746,
0.013662817887961864,
-0.053160104900598526,
0.07366365194320679,
-0.011183752678334713,
0.009408332407474518,
-0.006603074260056019,
0.002211121143773198,
-0.0006605404196307063,
-0.03936681151390076,
0.010689803399145603,
-0.007991723716259003,
-0.0069479066878557205,
-0.010512727312743664,
-0.04261009767651558,
0.08283433318138123,
0.055135902017354965,
0.011211711913347244,
-0.041827235370874405,
0.0012465224135667086,
0.007111002691090107,
0.07228432595729828,
-0.03735373541712761,
-0.06676700711250305,
0.07806259393692017,
0.07489386200904846,
0.016794268041849136,
-0.02117457240819931,
-0.006826749071478844,
0.013066351413726807,
-0.054912228137254715,
-0.039441369473934174,
0.0373164564371109,
0.03047572635114193,
0.05155710130929947,
0.0015109715750440955,
-0.014762554317712784,
0.01762373000383377,
-0.08544386923313141,
0.004874252248555422,
-0.02643093653023243,
0.005633815657347441,
-0.06870552152395248,
-0.04171539843082428,
0.04887299984693527,
0.018099039793014526,
0.009944220073521137,
-0.023523161187767982,
0.07504298537969589,
-0.036794546991586685,
-0.009701905772089958,
0.05096063390374184,
-0.0377638041973114,
-0.03582528978586197,
-0.059273891150951385,
0.00432671420276165,
-0.013001113198697567,
0.028388092294335365,
0.03614216297864914,
0.033830851316452026,
0.006211642641574144,
0.0008778080809861422,
0.023448601365089417,
-0.045965224504470825,
-0.04891027882695198,
0.01355098094791174,
0.018453191965818405,
-0.01914285682141781,
-0.016831548884510994,
-0.0059134094044566154,
0.02548031695187092,
0.02212519198656082,
0.0638219490647316,
0.025275280699133873,
0.032656557857990265,
0.003233968513086438,
0.025946306064724922,
-0.09476366639137268,
-0.03903129696846008,
-0.005428779870271683,
-0.03521018102765083,
0.10676755756139755,
0.04961858317255974,
-0.03228376805782318,
0.06639420986175537,
0.023355403915047646,
-0.033551257103681564,
0.044213104993104935,
-0.025275280699133873,
-0.0526009164750576,
0.027661148458719254,
-0.009990819729864597,
0.005596536211669445,
-0.007264779414981604,
0.032619278877973557,
0.007185561116784811,
-0.04078342020511627,
-0.025182083249092102,
-0.029525108635425568,
0.03196689486503601,
0.002530324039980769,
-0.006682292558252811,
-0.003480943152680993,
-0.01780080609023571,
-0.05640339478850365,
0.014464320614933968,
-0.0018569689709693193,
-0.050140492618083954,
-0.0013758345739915967,
-0.05793184041976929,
0.024827931076288223,
-0.08067213743925095,
0.04734455421566963,
-0.03524746000766754,
0.0014142787549644709,
0.004573688842356205,
0.04756822809576988,
0.0017276568105444312,
-0.024622896686196327,
-0.00246741552837193,
-0.0036859784740954638,
0.04100709408521652,
-0.05345834046602249,
-0.0224793441593647,
-0.006537835579365492,
0.028033940121531487,
0.02206927165389061,
0.007343997713178396,
-0.007535053417086601,
0.006444637663662434,
0.01568521372973919,
-0.013923772610723972,
-0.042274586856365204,
-0.06453025341033936,
-0.038956739008426666,
0.014044929295778275,
0.021062735468149185,
-0.019534287974238396,
-0.05740993097424507,
-0.034725554287433624,
-0.01833203434944153,
-0.005251703783869743,
-0.00829461682587862,
0.0015319411177188158,
-0.041379887610673904,
0.011248991824686527,
0.027046041563153267,
-0.00804298184812069,
-0.01568521372973919,
-0.003816455602645874,
-0.008234038017690182,
0.026729170233011246,
0.09200500696897507,
0.042498260736465454,
0.03312254697084427,
0.012796076945960522,
-0.004629607778042555,
-0.007945124059915543,
-0.020130755379796028,
0.035359300673007965,
-0.02620726078748703,
-0.012973153032362461,
-0.05241452157497406,
-0.011873417533934116,
-0.0368504673242569,
-0.001900073024444282,
-0.04369119554758072,
0.010857559740543365,
-0.009860342368483543,
0.010233134031295776,
0.011006676591932774,
0.001151577103883028,
0.08678591996431351,
0.0009546963847242296,
0.009571428410708904,
-0.006165043916553259,
0.02242342382669449,
0.052079010754823685,
-0.021677840501070023,
0.004182257689535618,
0.014324523508548737,
0.08231242001056671,
0.034315481781959534,
-0.015759771689772606,
0.04059702157974243,
0.039665043354034424,
0.005442759953439236,
0.0006186013342812657,
0.021882876753807068,
-0.01343914307653904,
0.021193211898207664,
0.016831548884510994,
-0.06531311571598053,
-0.0014585477765649557,
0.015256502665579319,
0.05107247084379196,
-0.026580052450299263,
-0.04261009767651558,
-0.01878870464861393,
-0.04395214840769768,
0.05233996361494064,
0.043355681002140045,
-0.07918097078800201,
0.08097036927938461,
-0.061212409287691116,
-0.027903463691473007,
-0.012022534385323524,
0.05606788024306297,
0.06415746361017227,
0.06303908675909042,
0.054278481751680374,
0.03662678971886635,
0.015554736368358135,
0.005801571998745203,
0.008234038017690182,
0.03409180790185928,
-0.08522019535303116,
0.018509110435843468,
0.05002865567803383,
-0.011826818808913231,
0.008392474614083767,
-0.026263179257512093,
0.02454833686351776,
0.04995409771800041,
-0.02130504883825779,
-0.024119626730680466,
0.006705591920763254,
0.008900403045117855,
-0.03291751444339752,
-0.019757963716983795,
-0.015368340536952019,
0.014268605038523674,
-0.02404506877064705,
0.04439949989318848,
-0.03302935138344765,
0.03397997096180916,
-0.02710196189582348,
0.024212824180722237,
0.018825983628630638,
-0.0025000348687171936,
-0.01842523366212845,
-0.019273335114121437,
-0.02063402347266674,
0.02548031695187092,
0.029972458258271217,
-0.032619278877973557,
0.060839615762233734,
-0.005531297996640205,
-0.021062735468149185,
0.009515509940683842,
0.015303102321922779,
-0.020112115889787674,
-0.018853943794965744,
-0.041827235370874405,
-0.013905133120715618,
0.0009657636401243508,
-0.013811934739351273,
-0.0011212876997888088,
-0.01977660320699215,
0.010755042545497417,
-0.0006057866266928613,
0.03936681151390076,
0.017605090513825417,
-0.002630511997267604,
0.015880929306149483,
0.05726081505417824,
0.06717707216739655,
-0.03276839479804039,
0.09588204324245453,
0.025815829634666443,
0.004662226885557175,
-0.05021505057811737,
-0.055806927382946014,
-0.020354431122541428,
0.010382250882685184,
0.04984225705265999,
-0.027530672028660774,
-0.03200417384505272,
0.028127139434218407,
0.027120601385831833,
-0.04615161940455437,
-0.022553902119398117,
0.01923605427145958,
-0.021286409348249435,
0.021118653938174248,
0.01563861407339573,
-0.01690610684454441,
0.02356044016778469,
0.038546670228242874,
0.023355403915047646,
0.022237028926610947,
-0.015256502665579319,
0.059907637536525726,
0.016962025314569473,
-0.043803032487630844,
0.007353317458182573,
0.06915286928415298,
0.00786590576171875,
0.03828571364283562,
0.0029613645747303963,
0.048574768006801605,
0.042721934616565704,
0.01951564848423004,
0.030867157503962517,
0.009580748155713081,
0.01929197460412979,
0.051445264369249344,
-0.030550284311175346,
-0.030680762603878975,
0.06180887296795845,
-0.016486715525388718,
0.06184615194797516,
0.051855333149433136,
-0.01892850175499916,
0.03556433320045471,
-0.019795242697000504,
0.027120601385831833,
0.013401864096522331,
0.05748448893427849,
0.011025316081941128,
-0.015526777133345604,
0.08410181850194931,
-0.011109194718301296,
-0.027847545221447945,
-0.004864932503551245,
-0.07493114471435547,
-0.0075769927352666855,
-0.029953818768262863,
-0.010028098709881306,
0.013989010825753212,
0.02607678435742855,
-0.037111420184373856,
0.0602431483566761,
0.022945333272218704,
0.06512672454118729,
-0.011435387656092644,
-0.13726192712783813,
0.023429961875081062,
0.008555570617318153,
-0.02993517927825451,
-0.007856586016714573,
0.06378467381000519,
0.03703686222434044,
-0.031985532492399216,
-0.0400005578994751,
-0.0020748190581798553,
-0.016328278928995132,
-0.024566976353526115,
0.03629127889871597,
-0.022460704669356346,
-0.05614243820309639,
-0.0073206983506679535,
0.07895729690790176,
-0.033103909343481064,
0.009133398532867432,
-0.05975852161645889,
0.005927389021962881,
0.00993490032851696,
-0.01712046191096306,
-0.017064543440937996,
-0.04436222091317177,
-0.04518236219882965,
-0.033644456416368484,
-0.03744693100452423,
0.008420433849096298,
0.04145444557070732,
0.011267631314694881,
0.04697176069021225,
0.020969536155462265,
0.029413269832730293,
-0.006826749071478844,
0.02697148360311985,
-0.003215329023078084,
-0.012078452855348587,
-0.08760606497526169,
-0.023840032517910004,
0.029599666595458984,
0.0804484635591507,
-0.04462317377328873,
-0.0436166375875473,
-0.018099039793014526,
-0.0395532064139843,
-0.0021517074201256037,
-0.05502406507730484,
-0.008434413932263851,
0.0066916123032569885,
0.0015296111814677715,
0.022628460079431534,
-0.0009244070970453322,
0.04283377528190613,
0.009543469175696373,
0.012087772600352764,
-0.0038863541558384895,
0.019310614094138145,
0.01929197460412979,
0.0276425089687109,
0.040075115859508514,
0.008639449253678322,
-0.06065322086215019,
0.0050280289724469185,
0.001297781360335648,
-0.07261983305215836,
0.010643204674124718,
0.028164418414235115,
-0.010326331481337547,
0.01402628980576992,
-0.05938572809100151,
0.05334649980068207,
0.0008714007562957704,
0.0132620669901371,
0.040708862245082855,
-0.005675754509866238,
0.022982612252235413,
0.02426874451339245,
0.03204145282506943,
0.07366365194320679,
0.02480929158627987,
-0.02288941480219364,
0.004513110499829054,
0.020391710102558136,
-0.11519265174865723,
-0.009543469175696373,
-0.013131589628756046,
0.008024342358112335,
-0.07094227522611618,
-0.027810266241431236,
0.01923605427145958,
0.009888301603496075,
0.04324384406208992,
-0.0337190143764019,
0.023392682895064354,
-0.08111948519945145,
-0.051407985389232635,
0.016980664804577827,
0.011659062467515469,
0.025461677461862564,
0.05330922082066536,
0.0028285575099289417,
-0.02165920101106167,
0.019161496311426163,
0.052526358515024185,
-0.009343093261122704,
-0.03925497457385063,
-0.027940742671489716,
0.017912644892930984,
-0.02197607420384884,
0.011221031658351421,
0.03394268825650215,
0.026691889390349388,
0.019161496311426163,
-0.020168034359812737,
-0.004715815652161837,
-0.0034180344082415104,
-0.014035609550774097,
0.015927528962492943,
0.01375601626932621,
0.0008900403627194464,
0.02760522998869419,
0.001323410775512457,
0.036831825971603394,
0.017334816977381706,
-0.04343023896217346,
-0.05357017740607262,
0.035135623067617416,
0.011221031658351421,
0.02206927165389061,
-0.015303102321922779,
-0.011631103232502937,
0.004172937944531441,
0.018313394859433174,
0.05043872445821762,
-0.06031770631670952,
0.007334677968174219,
-0.035359300673007965,
0.016067324206233025,
-0.00005417130159912631,
-0.0059227291494607925,
-0.027400193735957146,
-0.0147252744063735,
0.0059879678301513195,
0.04384031146764755,
0.0018255147151648998,
-0.01951564848423004,
0.011920016258955002,
0.026263179257512093,
0.004827653523534536,
-0.00020139492698945105,
0.010279732756316662,
0.0066170538775622845,
-0.04257281869649887,
0.050811517983675,
-0.05871470272541046,
-0.022237028926610947,
0.059944916516542435,
-0.009683266282081604,
-0.07127778232097626,
-0.008634788915514946,
-0.05677618458867073,
-0.058230072259902954,
0.030513005331158638,
-0.06863096356391907,
0.019925719127058983,
0.042274586856365204,
-0.02948782779276371,
-0.03677590936422348,
-0.011165113188326359,
-0.05002865567803383,
-0.004666886758059263,
0.015470858663320541,
-0.0010939108906313777,
-0.014389761723577976,
0.02009347639977932,
0.02948782779276371,
-0.07381276786327362,
-0.008825845085084438,
0.030811239033937454,
-0.012842676602303982,
-0.07530393451452255,
-0.0115751838311553,
0.037465572357177734,
0.008331895805895329,
0.07198608666658401,
-0.024939769878983498,
-0.02732563577592373,
-0.020913617685437202,
-0.02715788036584854,
-0.0480901375412941,
-0.07422284036874771,
0.030047016218304634,
-0.06244261935353279,
-0.005177145823836327,
-0.029599666595458984,
-0.033327583223581314,
0.058901097625494,
0.04462317377328873,
-0.037428293377161026,
0.010466128587722778,
0.059944916516542435,
0.014846432022750378,
-0.00861149001866579,
-0.002200636314228177,
-0.017241619527339935,
0.006318820174783468,
0.01977660320699215,
0.041827235370874405,
-0.033868130296468735,
0.06583502888679504,
0.07612407952547073,
-0.013252747245132923,
0.009701905772089958,
0.00852295197546482,
-0.028015300631523132,
-0.0543903186917305,
0.018732786178588867,
-0.019981639459729195,
0.024343302473425865,
-0.0346137136220932,
-0.04615161940455437,
0.05043872445821762,
0.0017428015125915408,
0.006649672985076904,
-0.06557407230138779,
-0.017325496301054955,
0.06300181150436401,
-0.010484768077731133,
-0.034222282469272614,
-0.07001029700040817,
-0.02548031695187092,
0.00019542443624231964,
-0.05226540565490723,
0.005251703783869743,
-0.06423202157020569,
-0.004995409864932299,
-0.021416887640953064,
0.013280706480145454,
0.008275977335870266,
0.021696479991078377,
-0.0191055778414011,
-0.033607177436351776,
-0.03133314847946167,
-0.029525108635425568,
-0.03992599621415138,
0.047269996255636215,
-0.0011195403058081865,
0.03478147089481354,
0.043355681002140045,
0.04950674623250961,
-0.019366532564163208,
-0.038322992622852325,
0.03384949266910553,
-0.015275142155587673,
-0.0023509180173277855,
0.008303936570882797,
0.03655223175883293,
0.015722492709755898,
-0.0027982681058347225,
0.03880762308835983,
-0.06359827518463135,
0.009296494536101818,
-0.01060592569410801,
-0.06799721717834473,
0.02958102710545063,
-0.0016938726184889674,
-0.034371402114629745,
0.007884546183049679,
0.05357017740607262,
-0.0008917878149077296,
0.014054249040782452,
-0.012134372256696224,
-0.04141716659069061,
0.01256308238953352,
-0.05916205421090126,
-0.01843455247581005,
0.059944916516542435,
0.038994017988443375,
0.00127797678578645,
-0.051407985389232635,
0.015834329649806023,
-0.012087772600352764,
0.05278731510043144,
-0.006905967369675636,
0.052526358515024185,
-0.010960077866911888,
-0.00961802713572979,
-0.02958102710545063,
0.002949714893475175,
-0.024697454646229744,
-0.07317902147769928,
0.028667686507105827,
0.021882876753807068,
-0.028425371274352074,
-0.04085797816514969,
0.06415746361017227,
0.009767143987119198,
-0.0001630963961360976,
-0.020783141255378723,
0.06464209407567978,
-0.0028262275736778975,
0.005661774892359972,
-0.02229294739663601,
0.012255528941750526,
-0.09476366639137268,
-0.020578105002641678,
-0.030904436483979225,
0.016151202842593193,
-0.017502574250102043,
-0.040746141225099564,
0.040932536125183105,
0.0310162752866745,
0.023653637617826462
]
|
30,104 | networkx.classes.graph | to_directed_class | Returns the class to use for empty directed copies.
If you subclass the base classes, use this to designate
what directed class to use for `to_directed()` copies.
| def to_directed_class(self):
"""Returns the class to use for empty directed copies.
If you subclass the base classes, use this to designate
what directed class to use for `to_directed()` copies.
"""
return nx.DiGraph
| (self) | [
-0.03750886023044586,
0.02878049574792385,
0.011385983787477016,
-0.03644225746393204,
-0.04344628378748894,
0.012550357729196548,
-0.045081738382577896,
0.004861930385231972,
0.08504378795623779,
-0.010372711345553398,
-0.020265450701117516,
-0.005888535641133785,
0.0106749152764678,
0.053756773471832275,
0.012905891984701157,
0.019696595147252083,
-0.03917987272143364,
0.05169467628002167,
0.031020361930131912,
0.04792601242661476,
-0.004755270201712847,
-0.03000708855688572,
0.018505556508898735,
-0.014274698682129383,
-0.004608612507581711,
0.009821632876992226,
-0.0008121734717860818,
-0.010781574994325638,
-0.045437272638082504,
0.02310972474515438,
-0.062076274305582047,
-0.05301015451550484,
-0.009714972227811813,
0.049845896661281586,
0.05887646600604057,
0.06751594692468643,
-0.03190919756889343,
0.0917278304696083,
-0.093932144343853,
-0.01499465573579073,
-0.060263052582740784,
-0.009528317488729954,
-0.025971775874495506,
-0.007457330357283354,
0.0469660721719265,
0.022380879148840904,
0.014621345326304436,
-0.0041553061455488205,
-0.05429007485508919,
-0.051623567938804626,
-0.013296980410814285,
-0.004724160768091679,
-0.0070084682665765285,
0.07192457467317581,
-0.012043721973896027,
0.039855387061834335,
-0.00116770772729069,
0.03871767595410347,
-0.017038976773619652,
0.047286052256822586,
-0.027713892981410027,
0.005221908912062645,
0.041561949998140335,
-0.07324004918336868,
-0.018052250146865845,
0.018016695976257324,
-0.0712135061621666,
0.004548615776002407,
-0.009741637855768204,
0.03644225746393204,
-0.007532881572842598,
-0.02693171799182892,
-0.0004727494088001549,
0.02574067749083042,
0.0662715807557106,
-0.011305988766252995,
0.06036971136927605,
-0.001145486836321652,
0.015483515337109566,
-0.040210921317338943,
-0.028016095981001854,
-0.03473569452762604,
-0.04006870836019516,
0.0039642066694796085,
0.025385143235325813,
-0.028513845056295395,
-0.012674795463681221,
0.01044381782412529,
-0.04102864861488342,
-0.07864417135715485,
-0.029420457780361176,
-0.012568134814500809,
-0.008719476871192455,
0.04561503976583481,
-0.017572278156876564,
0.03146477788686752,
-0.02570512518286705,
-0.07164014875888824,
0.04582836106419563,
-0.016239026561379433,
-0.03576674312353134,
0.0252784825861454,
-0.08276836574077606,
0.0035531201865524054,
-0.038006607443094254,
-0.07007579505443573,
-0.0091372299939394,
0.011288211680948734,
-0.03829103708267212,
-0.027500571683049202,
-0.07601321488618851,
0.05795207992196083,
0.028389407321810722,
0.04220191389322281,
0.03669113293290138,
-0.013643626123666763,
0.00380643829703331,
-0.004959702491760254,
0.0022554202005267143,
-0.004697496071457863,
-0.05429007485508919,
0.06652045249938965,
-0.028993815183639526,
0.032389167696237564,
0.015865715220570564,
0.009963846765458584,
0.00489303981885314,
-0.02430076338350773,
0.008283947594463825,
-0.027287252247333527,
0.006150742061436176,
0.0009466098854318261,
-0.05542778596282005,
0.056849922984838486,
0.03839769586920738,
0.03393574059009552,
-0.05620995908975601,
0.02488739602267742,
0.003577563213184476,
0.06492055207490921,
0.001434358418919146,
-0.029402680695056915,
0.09044791013002396,
0.046788305044174194,
0.001459912396967411,
0.03173143044114113,
-0.02136760763823986,
0.007208456285297871,
-0.04486842080950737,
-0.01791003718972206,
0.03094925358891487,
0.021687587723135948,
0.03921542316675186,
0.0013521411456167698,
-0.05930310860276222,
0.007563990540802479,
-0.05873425304889679,
-0.0012332593323662877,
-0.004870818927884102,
-0.0157146118581295,
-0.07000468671321869,
-0.052014656364917755,
0.04906372353434563,
-0.010150502435863018,
-0.0027820554096251726,
-0.03358020633459091,
0.04312629997730255,
-0.05308125913143158,
0.000879391678608954,
0.02008768357336521,
-0.04230857267975807,
-0.042450785636901855,
-0.03821992874145508,
-0.024282988160848618,
-0.024905173107981682,
0.026327310130000114,
0.03967761993408203,
0.06620047241449356,
0.012043721973896027,
0.048103779554367065,
0.05269017070531845,
-0.032353613525629044,
-0.0486726351082325,
0.008741697296500206,
0.05578332021832466,
-0.016212360933423042,
0.0026776171289384365,
0.014248033985495567,
0.011581527069211006,
0.034593481570482254,
0.05514335632324219,
0.026416193693876266,
0.008017296902835369,
0.01740339957177639,
0.04387292265892029,
-0.09542538225650787,
0.005457450170069933,
-0.006079635117202997,
-0.0573832243680954,
0.11284656077623367,
0.022878626361489296,
0.005741877481341362,
0.05962308868765831,
0.009608312509953976,
0.0010554922046139836,
0.031109243631362915,
-0.026291755959391594,
-0.028887156397104263,
-0.0035797851160168648,
-0.018096692860126495,
-0.01502132136374712,
-0.0010821572504937649,
0.04188193008303642,
-0.00018818315584212542,
-0.026878386735916138,
-0.026807280257344246,
-0.020229896530508995,
-0.0008538376423530281,
-0.0013499190099537373,
-0.010834905318915844,
-0.003599784104153514,
-0.02264752984046936,
-0.02085208147764206,
0.010177167132496834,
-0.02565179392695427,
-0.04476175829768181,
-0.012523693032562733,
-0.059836409986019135,
0.020709868520498276,
-0.060796353965997696,
0.04387292265892029,
-0.05830761417746544,
0.023145277053117752,
0.029829321429133415,
0.07007579505443573,
-0.023660803213715553,
-0.01567905955016613,
-0.01921662501990795,
-0.024282988160848618,
0.03814882040023804,
-0.06595160067081451,
-0.023643026128411293,
-0.012612576596438885,
0.0026509519666433334,
0.05884091556072235,
0.037686627358198166,
-0.011599304154515266,
0.016247913241386414,
0.003817548742517829,
-0.010248273611068726,
-0.013350309804081917,
-0.07082241773605347,
-0.04234412685036659,
-0.01832778938114643,
0.0452595055103302,
-0.03694000467658043,
-0.08753252774477005,
-0.07629764080047607,
0.009803855791687965,
0.006390727590769529,
-0.026753950864076614,
0.03343799337744713,
-0.03302912786602974,
0.0416686125099659,
0.016612336039543152,
-0.008772807195782661,
-0.04437066987156868,
0.02042544074356556,
-0.02401633746922016,
0.020656539127230644,
0.135600745677948,
0.0409930944442749,
0.022807519882917404,
0.03573118895292282,
-0.022860851138830185,
-0.028069427236914635,
-0.06527608633041382,
0.03139367327094078,
-0.010248273611068726,
-0.02830052375793457,
-0.04661053791642189,
-0.017696715891361237,
-0.05962308868765831,
-0.024069666862487793,
-0.05528557300567627,
0.014701340347528458,
0.03011374920606613,
0.015581287443637848,
0.0024709629360586405,
0.003955318126827478,
0.07295562326908112,
0.025100715458393097,
-0.0033198008313775063,
0.0033642426133155823,
0.00716845877468586,
-0.0018987749936059117,
-0.03183808922767639,
-0.012505915947258472,
0.04277076572179794,
0.0679781436920166,
0.03468236327171326,
-0.04753492400050163,
-0.0024509639479219913,
0.022487539798021317,
-0.028887156397104263,
0.019909916445612907,
0.034184616059064865,
0.012745901942253113,
0.031980302184820175,
0.021883131936192513,
-0.05361456051468849,
0.015919044613838196,
-0.023749686777591705,
0.05624551326036453,
0.015376855619251728,
0.0038597683887928724,
-0.015190199948847294,
-0.036833345890045166,
0.03836214169859886,
0.0756576806306839,
-0.08582596480846405,
0.08831470459699631,
-0.07231566309928894,
-0.006928473245352507,
-0.05471671745181084,
0.05628106743097305,
0.017314516007900238,
0.07878638058900833,
0.03626449033617973,
0.03669113293290138,
0.035482317209243774,
0.02008768357336521,
0.0008249505190178752,
0.017216743901371956,
-0.09258110821247101,
0.007688427809625864,
0.08504378795623779,
-0.009626088663935661,
0.030327068641781807,
-0.0217764712870121,
0.012834785506129265,
0.05165912210941315,
-0.0014699117746204138,
0.008523932658135891,
0.010843793861567974,
0.021598704159259796,
-0.027287252247333527,
-0.0034353493247181177,
-0.004653054289519787,
0.011857066303491592,
-0.032886914908885956,
0.08120401948690414,
-0.018007809296250343,
0.03917987272143364,
0.019003303721547127,
0.03553564473986626,
-0.006777371279895306,
0.03832658752799034,
-0.03694000467658043,
-0.02351858839392662,
0.005501891952008009,
0.012452586553990841,
0.015821272507309914,
-0.006048526149243116,
0.07213789224624634,
0.022487539798021317,
0.012017056345939636,
0.007310672663152218,
0.040246475487947464,
-0.049810346215963364,
-0.035073451697826385,
-0.05190799757838249,
-0.06214738264679909,
-0.03164254501461983,
-0.008043961599469185,
0.027927212417125702,
-0.02744724228978157,
0.009928293526172638,
0.018505556508898735,
0.028833825141191483,
-0.015750166028738022,
-0.005386343691498041,
0.0015476848930120468,
0.03708222135901451,
0.0391087643802166,
-0.01822112873196602,
0.07302673161029816,
0.05222797766327858,
0.02385634556412697,
-0.015510180965065956,
-0.04045979306101799,
-0.034237947314977646,
0.0018387786112725735,
-0.003817548742517829,
-0.01966104283928871,
-0.03539343178272247,
0.01022160891443491,
0.0036197828594595194,
-0.028513845056295395,
-0.014639121480286121,
0.007821752689778805,
-0.012319261208176613,
0.06264512985944748,
0.05752543732523918,
0.010257162153720856,
0.025545133277773857,
0.04412179812788963,
0.008359498344361782,
0.022025344893336296,
-0.039393190294504166,
0.06303621828556061,
0.028460513800382614,
-0.06748039275407791,
-0.006795147899538279,
0.0469660721719265,
0.012257042340934277,
0.037224434316158295,
0.012257042340934277,
0.06790703535079956,
-0.005541889928281307,
0.022807519882917404,
0.014523573219776154,
0.051161374896764755,
-0.0064440579153597355,
0.04582836106419563,
-0.01064824964851141,
-0.00016304577002301812,
0.037722181528806686,
-0.03279803320765495,
0.04572170227766037,
0.015936821699142456,
-0.023731909692287445,
0.0018132245168089867,
-0.04412179812788963,
0.02565179392695427,
-0.005168578587472439,
0.033313557505607605,
0.0007721759029664099,
-0.008017296902835369,
0.06221848726272583,
-0.020301004871726036,
-0.01658567227423191,
-0.010692691430449486,
-0.05603219196200371,
0.01737673580646515,
-0.04483286663889885,
-0.001604348188266158,
-0.008892799727618694,
0.017314516007900238,
-0.026202872395515442,
0.0006266290438361466,
-0.038930997252464294,
0.07171124964952469,
0.00433751754462719,
-0.10822461545467377,
-0.00063940609106794,
0.0009005015017464757,
-0.039002105593681335,
-0.005968530662357807,
0.004804156254976988,
0.009368326514959335,
-0.024638522416353226,
-0.03045150637626648,
0.007870638743042946,
-0.008963906206190586,
0.0007032911526039243,
0.024922948330640793,
-0.02136760763823986,
-0.029313797131180763,
-0.004981923382729292,
0.08675035089254379,
-0.011083779856562614,
0.0026042882818728685,
-0.07608432322740555,
-0.0008877245127223432,
0.03953540697693825,
-0.022931957617402077,
-0.018523333594202995,
-0.01023049745708704,
-0.04789045825600624,
-0.04106420278549194,
-0.03528677299618721,
0.019341060891747475,
0.028104979544878006,
-0.0069195847027003765,
0.02172314189374447,
-0.020620984956622124,
0.019412169232964516,
-0.003304246114566922,
0.032193623483181,
-0.02476295828819275,
0.007875083014369011,
-0.038077715784311295,
-0.033811304718256,
0.036353375762701035,
0.07430665194988251,
-0.03231805935502052,
-0.017287852242588997,
-0.017198968678712845,
-0.027696115896105766,
0.02879827283322811,
-0.0391087643802166,
-0.061649635434150696,
0.008386163040995598,
0.024674074724316597,
-0.000031716848752694204,
-0.030273739248514175,
0.03276247903704643,
-0.004564170725643635,
0.031073691323399544,
0.03907321020960808,
0.029260465875267982,
0.029420457780361176,
0.03558897599577904,
0.03797105327248573,
0.009017236530780792,
-0.04351738840341568,
0.022914180532097816,
0.010354934260249138,
-0.03141145035624504,
0.026469523087143898,
0.025527358055114746,
-0.020123237743973732,
0.03128701075911522,
-0.050699181854724884,
0.050272539258003235,
0.0032064742408692837,
0.004933037329465151,
0.03135811910033226,
0.012354814447462559,
0.03169587627053261,
0.025545133277773857,
0.002753168111667037,
0.09549649059772491,
0.024905173107981682,
0.005026365164667368,
-0.007972855120897293,
0.0331357903778553,
-0.051125820726156235,
-0.016025705263018608,
0.0065951598808169365,
-0.03608672320842743,
-0.009519428946077824,
-0.002575400983914733,
0.024478530511260033,
0.0041375295259058475,
-0.0013765840558335185,
-0.005293015856295824,
0.020318780094385147,
-0.031998079270124435,
-0.033331334590911865,
-0.009706084616482258,
-0.035464540123939514,
0.011839289218187332,
0.057276561856269836,
-0.021029848605394363,
-0.01921662501990795,
0.03352687880396843,
0.04323296248912811,
0.03665557876229286,
-0.0573832243680954,
-0.03917987272143364,
0.04451288655400276,
-0.014914660714566708,
0.03644225746393204,
0.00300204218365252,
0.010372711345553398,
0.027571678161621094,
-0.013563630171120167,
-0.0036308933049440384,
-0.004764158744364977,
-0.026736173778772354,
-0.0065284972079098225,
0.0187011007219553,
0.00998162291944027,
0.04572170227766037,
0.018843313679099083,
0.002236532513052225,
-0.00955498218536377,
-0.0690091922879219,
-0.04042424261569977,
0.05439673736691475,
0.01918107084929943,
0.02570512518286705,
-0.01572350040078163,
-0.057205457240343094,
-0.031500332057476044,
-0.03701111301779747,
0.01957215927541256,
-0.07352447509765625,
-0.004933037329465151,
-0.024496307596564293,
0.032353613525629044,
-0.008355054073035717,
-0.022825296968221664,
-0.023767462000250816,
-0.006146297790110111,
-0.02085208147764206,
0.03388241305947304,
-0.013181431218981743,
-0.021936461329460144,
0.06143631413578987,
0.03164254501461983,
0.0347534716129303,
0.05532112345099449,
-0.01175929419696331,
-0.007946189492940903,
-0.04522395506501198,
0.003673112951219082,
-0.059800855815410614,
-0.01000828854739666,
0.04230857267975807,
-0.00728845177218318,
-0.04401513561606407,
0.004821932874619961,
-0.0401398129761219,
-0.04757047817111015,
0.027073930948972702,
-0.08362165093421936,
0.007052910048514605,
0.02575845457613468,
-0.041597504168748856,
-0.029438233003020287,
0.0008332833531312644,
-0.03821992874145508,
0.025989551097154617,
0.004210858605802059,
-0.030664827674627304,
0.017074530944228172,
0.01836334355175495,
0.019732149317860603,
-0.048957061022520065,
0.003237583441659808,
-0.032851360738277435,
-0.04693051800131798,
-0.055534444749355316,
-0.001082712784409523,
0.0401398129761219,
0.019856587052345276,
0.048139333724975586,
-0.053259026259183884,
0.0061063002794981,
-0.025171823799610138,
-0.029349349439144135,
-0.045081738382577896,
-0.10893568396568298,
0.032353613525629044,
-0.03002486564218998,
-0.02479851245880127,
-0.02876271866261959,
-0.022896403446793556,
0.0522635318338871,
0.02270086109638214,
0.01244369801133871,
0.028567174449563026,
0.02968710847198963,
-0.009279442951083183,
0.025989551097154617,
0.014221369288861752,
-0.059409767389297485,
0.010079395025968552,
0.02654062956571579,
0.04707273095846176,
0.0024598524905741215,
0.04661053791642189,
0.044690653681755066,
-0.005799652077257633,
-0.05016588047146797,
-0.02385634556412697,
-0.04426401108503342,
-0.04917038232088089,
0.03279803320765495,
-0.002475406974554062,
-0.04515284672379494,
-0.06584493815898895,
-0.04735715687274933,
0.03564230725169182,
-0.007483995519578457,
0.01111044455319643,
-0.04145529121160507,
-0.019856587052345276,
0.026629513129591942,
-0.038575462996959686,
-0.03871767595410347,
-0.012728124856948853,
-0.02129649929702282,
-0.006435169372707605,
-0.04625500366091728,
-0.011910396628081799,
-0.04664608836174011,
-0.022043121978640556,
0.010577143169939518,
0.012959222309291363,
0.011181551031768322,
0.013554742559790611,
-0.021989792585372925,
-0.07643985748291016,
-0.02302084118127823,
-0.0029775991570204496,
-0.04536616802215576,
0.04956147074699402,
0.003690889570862055,
0.004768602550029755,
0.02737613581120968,
0.07921302318572998,
-0.012381479144096375,
-0.029473787173628807,
0.023838570341467857,
0.0013088103150948882,
0.02780277654528618,
-0.003724220907315612,
0.0095638707280159,
-0.001267701736651361,
0.009848297573626041,
-0.015065763145685196,
-0.05574776604771614,
0.017163414508104324,
0.01862999238073826,
-0.07508882880210876,
0.011430425569415092,
-0.008883911184966564,
-0.07028911262750626,
0.02920713648200035,
0.05535667762160301,
0.01919884793460369,
0.03160699084401131,
-0.004410846624523401,
-0.0375799685716629,
0.002624287037178874,
-0.004875263199210167,
0.013670290820300579,
0.06495610624551773,
-0.001367695746012032,
0.055072251707315445,
-0.014274698682129383,
0.02878049574792385,
0.009097231552004814,
0.03226473182439804,
-0.02179424837231636,
0.05301015451550484,
-0.021492043510079384,
-0.03294024616479874,
-0.004408624488860369,
0.005977419205009937,
-0.009723860770463943,
-0.06289400160312653,
0.037615519016981125,
0.06858254969120026,
-0.006457390263676643,
-0.03921542316675186,
0.051196929067373276,
-0.004090865608304739,
0.010328269563615322,
-0.04056645557284355,
0.022807519882917404,
-0.005288571584969759,
0.021563149988651276,
-0.03011374920606613,
-0.008266170509159565,
-0.07146237790584564,
-0.020549878478050232,
-0.04771269112825394,
0.019749926403164864,
-0.03725998476147652,
0.0038642126601189375,
0.04973923787474632,
0.0426996611058712,
0.009474987164139748
]
|
30,105 | networkx.classes.digraph | to_undirected | Returns an undirected representation of the digraph.
Parameters
----------
reciprocal : bool (optional)
If True only keep edges that appear in both directions
in the original digraph.
as_view : bool (optional, default=False)
If True return an undirected view of the original directed graph.
Returns
-------
G : Graph
An undirected graph with the same name and nodes and
with edge (u, v, data) if either (u, v, data) or (v, u, data)
is in the digraph. If both edges exist in digraph and
their edge data is different, only one edge is created
with an arbitrary choice of which edge data to use.
You must check and correct for this manually if desired.
See Also
--------
Graph, copy, add_edge, add_edges_from
Notes
-----
If edges in both directions (u, v) and (v, u) exist in the
graph, attributes for the new undirected edge will be a combination of
the attributes of the directed edges. The edge data is updated
in the (arbitrary) order that the edges are encountered. For
more customized control of the edge attributes use add_edge().
This returns a "deepcopy" of the edge, node, and
graph attributes which attempts to completely copy
all of the data and references.
This is in contrast to the similar G=DiGraph(D) which returns a
shallow copy of the data.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Warning: If you have subclassed DiGraph to use dict-like objects
in the data structure, those changes do not transfer to the
Graph created by this method.
Examples
--------
>>> G = nx.path_graph(2) # or MultiGraph, etc
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1), (1, 0)]
>>> G2 = H.to_undirected()
>>> list(G2.edges)
[(0, 1)]
| def to_undirected(self, reciprocal=False, as_view=False):
"""Returns an undirected representation of the digraph.
Parameters
----------
reciprocal : bool (optional)
If True only keep edges that appear in both directions
in the original digraph.
as_view : bool (optional, default=False)
If True return an undirected view of the original directed graph.
Returns
-------
G : Graph
An undirected graph with the same name and nodes and
with edge (u, v, data) if either (u, v, data) or (v, u, data)
is in the digraph. If both edges exist in digraph and
their edge data is different, only one edge is created
with an arbitrary choice of which edge data to use.
You must check and correct for this manually if desired.
See Also
--------
Graph, copy, add_edge, add_edges_from
Notes
-----
If edges in both directions (u, v) and (v, u) exist in the
graph, attributes for the new undirected edge will be a combination of
the attributes of the directed edges. The edge data is updated
in the (arbitrary) order that the edges are encountered. For
more customized control of the edge attributes use add_edge().
This returns a "deepcopy" of the edge, node, and
graph attributes which attempts to completely copy
all of the data and references.
This is in contrast to the similar G=DiGraph(D) which returns a
shallow copy of the data.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Warning: If you have subclassed DiGraph to use dict-like objects
in the data structure, those changes do not transfer to the
Graph created by this method.
Examples
--------
>>> G = nx.path_graph(2) # or MultiGraph, etc
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1), (1, 0)]
>>> G2 = H.to_undirected()
>>> list(G2.edges)
[(0, 1)]
"""
graph_class = self.to_undirected_class()
if as_view is True:
return nx.graphviews.generic_graph_view(self, graph_class)
# deepcopy when not a view
G = graph_class()
G.graph.update(deepcopy(self.graph))
G.add_nodes_from((n, deepcopy(d)) for n, d in self._node.items())
if reciprocal is True:
G.add_edges_from(
(u, v, deepcopy(d))
for u, nbrs in self._adj.items()
for v, d in nbrs.items()
if v in self._pred[u]
)
else:
G.add_edges_from(
(u, v, deepcopy(d))
for u, nbrs in self._adj.items()
for v, d in nbrs.items()
)
return G
| (self, reciprocal=False, as_view=False) | [
-0.02366364188492298,
0.005089457146823406,
0.016659801825881004,
0.00466455752030015,
-0.028613021597266197,
-0.01383958850055933,
-0.04482457786798477,
-0.021123582497239113,
0.0821036845445633,
-0.0016529062995687127,
-0.01686524786055088,
0.008801492862403393,
-0.0022143807727843523,
0.06316529959440231,
-0.0005317081813700497,
0.08083365857601166,
-0.04336778074502945,
0.03434683382511139,
0.02695077657699585,
0.03092895820736885,
0.014941525645554066,
-0.044338978826999664,
-0.01228940486907959,
0.01183182094246149,
-0.037503231316804886,
-0.03246046602725983,
-0.04303159564733505,
-0.013372665271162987,
-0.03221766650676727,
-0.0029229361098259687,
0.020395182073116302,
-0.015361756086349487,
0.005813187453895807,
-0.002122163539752364,
0.04116390272974968,
0.036644093692302704,
-0.006382833234965801,
0.055134229362010956,
-0.0701504647731781,
-0.031732067465782166,
-0.004092577379196882,
-0.031041020527482033,
0.0028599014040082693,
0.0026497861836105585,
0.051286786794662476,
0.027623146772384644,
0.035766277462244034,
0.004361058119684458,
-0.06394973397254944,
-0.046131961047649384,
0.025718102231621742,
0.017659015953540802,
-0.029210682958364487,
0.06331471353769302,
-0.015763310715556145,
-0.021571828052401543,
-0.016557078808546066,
0.05745016783475876,
-0.009240400046110153,
0.019592076539993286,
-0.04960586503148079,
-0.008306554518640041,
0.022281549870967865,
-0.044936638325452805,
-0.003079355228692293,
0.03462698683142662,
-0.04400279372930527,
-0.03305812552571297,
-0.0002786944678518921,
0.016108833253383636,
-0.08255193382501602,
0.006826409604400396,
-0.009459853172302246,
0.0114022521302104,
0.08793088048696518,
0.017388200387358665,
0.0807589441537857,
0.019349277019500732,
-0.0017462908290326595,
-0.020918136462569237,
0.009693315252661705,
-0.02088078297674656,
-0.024765579029917717,
0.011206144466996193,
0.05195915699005127,
-0.0007996050990186632,
0.006919794250279665,
-0.015725955367088318,
-0.012009251862764359,
-0.07657532393932343,
-0.011523651890456676,
-0.028762437403202057,
-0.00395483523607254,
0.03655070811510086,
0.04220981150865555,
0.0004275260725989938,
-0.033842556178569794,
-0.024186594411730766,
-0.0014789776178076863,
-0.037503231316804886,
-0.0075127859599888325,
-0.0051735034212470055,
-0.09323512017726898,
-0.006770378910005093,
-0.02560603991150856,
-0.06757304817438126,
-0.00039571698289364576,
-0.002404651837423444,
-0.02577413246035576,
-0.03208692744374275,
-0.045646362006664276,
0.024952348321676254,
0.04945645108819008,
0.04658020660281181,
0.0009110828978009522,
-0.026820039376616478,
0.019059784710407257,
-0.028911853209137917,
0.006672325078397989,
0.022393612191081047,
-0.05879490450024605,
0.06040111929178238,
-0.03477640077471733,
0.006625632755458355,
0.002382473088800907,
-0.029098622500896454,
0.002778189955279231,
-0.00788632407784462,
0.025120440870523453,
0.02015238255262375,
0.004870003554970026,
-0.00876413844525814,
-0.049942050129175186,
0.04120125621557236,
0.009455184452235699,
0.0001656116364756599,
-0.02413056418299675,
0.016613109037280083,
0.04250864312052727,
0.08098307251930237,
-0.03701763227581978,
-0.06734892725944519,
0.04456309974193573,
0.09599930793046951,
0.016827894374728203,
0.006392171606421471,
-0.005458326078951359,
0.03305812552571297,
-0.03135852888226509,
0.002269244287163019,
0.015333740971982479,
0.015371094457805157,
0.05961668863892555,
0.0038661197759211063,
-0.006308125331997871,
-0.02383173443377018,
-0.07687415182590485,
0.010160237550735474,
-0.03937092050909996,
0.01709870807826519,
-0.044189564883708954,
-0.05416303128004074,
0.0512494333088398,
0.010150899179279804,
0.007498778402805328,
-0.05524629354476929,
0.11781392991542816,
-0.028351545333862305,
0.026558563113212585,
0.04885879158973694,
-0.013708850368857384,
-0.027903299778699875,
-0.04885879158973694,
0.007419401314109564,
-0.038586489856243134,
0.010692529380321503,
0.04930703714489937,
0.005355603061616421,
-0.0156699251383543,
0.008507330901920795,
0.07145784795284271,
-0.04127596691250801,
-0.02235625870525837,
-0.027921976521611214,
0.02543794736266136,
-0.0025914208963513374,
-0.01737886294722557,
-0.03331960365176201,
0.013269943185150623,
0.010076191276311874,
0.036177169531583786,
-0.0047579421661794186,
0.04277011752128601,
0.02947215922176838,
0.0844196230173111,
-0.05916844308376312,
-0.043442487716674805,
0.03554215654730797,
-0.012457497417926788,
0.04897085204720497,
0.022244196385145187,
-0.03158264979720116,
0.061633795499801636,
0.012784343212842941,
-0.05815989151597023,
0.039146799594163895,
-0.045496948063373566,
-0.035915691405534744,
0.04635608568787575,
-0.002170023275539279,
0.009273084811866283,
-0.01570727862417698,
0.04945645108819008,
-0.009945453144609928,
-0.060475826263427734,
-0.046991098672151566,
-0.03645732253789902,
0.049942050129175186,
-0.022412288933992386,
-0.00785363931208849,
-0.04052888974547386,
-0.01095400657504797,
-0.04590784013271332,
-0.014381218701601028,
-0.0029182666912674904,
-0.03981916606426239,
-0.03158264979720116,
-0.0029626244213432074,
0.026857392862439156,
-0.04945645108819008,
0.056927215307950974,
-0.030611451715230942,
0.0156699251383543,
-0.0005156577681191266,
0.050987958908081055,
-0.008810831233859062,
-0.05610543116927147,
0.010972683317959309,
0.06503298878669739,
0.044749870896339417,
-0.03952033445239067,
-0.03556083142757416,
-0.005612410604953766,
0.024336010217666626,
0.04900820553302765,
0.014932187274098396,
-0.018266014754772186,
0.01191586721688509,
0.01936795376241207,
-0.02203875035047531,
-0.05539570748806,
-0.04067830368876457,
-0.04161214828491211,
0.011411590501666069,
0.035131264477968216,
0.013951649889349937,
-0.06906720250844955,
-0.02502705529332161,
-0.02207610383629799,
0.008189823478460312,
0.02517647109925747,
0.022169489413499832,
-0.03445889428257942,
0.016445016488432884,
0.014474603347480297,
-0.038399722427129745,
-0.0017976523377001286,
-0.003691023914143443,
-0.02414924092590809,
0.01741621643304825,
0.015464479103684425,
0.035728923976421356,
0.003317485796287656,
0.0006957147852517664,
0.0040715658105909824,
0.033805202692747116,
0.0066536483354866505,
0.014997556805610657,
0.0030373320914804935,
0.0011853999458253384,
-0.0479249432682991,
-0.024634841829538345,
-0.015548525378108025,
0.024336010217666626,
-0.023719672113656998,
0.021665211766958237,
-0.0008270367980003357,
-0.04127596691250801,
0.021422412246465683,
-0.014857480302453041,
0.12416408210992813,
0.013073835521936417,
0.0199842918664217,
0.02840757556259632,
0.010038837790489197,
0.04572106897830963,
-0.005108134355396032,
-0.02472822554409504,
0.012102635577321053,
0.06828277558088303,
0.017864461988210678,
-0.0113182058557868,
0.04762611538171768,
0.024055857211351395,
0.001322558498941362,
-0.00800305511802435,
0.024242626503109932,
0.0031470588874071836,
0.024055857211351395,
0.009571915492415428,
-0.10078059136867523,
-0.017360186204314232,
0.0020357829052954912,
0.05494746193289757,
-0.035915691405534744,
-0.036924246698617935,
-0.004736930597573519,
-0.03828766196966171,
0.040790364146232605,
0.0422845184803009,
-0.054237738251686096,
0.09958527237176895,
-0.04870937392115593,
0.006130694877356291,
-0.03793279826641083,
0.02088078297674656,
0.05416303128004074,
0.05031558871269226,
0.03005114383995533,
0.04855995997786522,
-0.011486298404633999,
-0.0014719737228006124,
-0.026128994300961494,
0.04781288281083107,
-0.07784534990787506,
0.02900523692369461,
0.052332695573568344,
-0.006905786693096161,
0.024690872058272362,
-0.0414627343416214,
0.0059439255855977535,
0.057039275765419006,
-0.023327456787228584,
-0.0471031591296196,
0.016379646956920624,
0.007503447588533163,
-0.02945348247885704,
-0.0078069474548101425,
0.0023101000115275383,
0.0028552322182804346,
-0.006210071500390768,
0.05715133622288704,
-0.03225501999258995,
0.02695077657699585,
-0.007368039805442095,
0.015427125617861748,
0.0015688602579757571,
-0.017659015953540802,
0.013587450608611107,
-0.012476174160838127,
0.0037517237942665815,
0.04082772135734558,
-0.008876199834048748,
-0.03922150656580925,
0.04926968365907669,
-0.027623146772384644,
-0.01428783405572176,
-0.0012711969902738929,
-0.04579577594995499,
-0.015725955367088318,
-0.020451214164495468,
-0.054237738251686096,
0.01613684743642807,
0.00790967047214508,
0.004538488574326038,
0.02456013299524784,
0.011859836056828499,
-0.0032824664376676083,
0.025195147842168808,
0.05102531239390373,
-0.006242756266146898,
0.021422412246465683,
0.007592163048684597,
0.05304241552948952,
0.05999022722244263,
-0.015800664201378822,
0.09301099926233292,
0.040790364146232605,
0.03378652408719063,
-0.03556083142757416,
-0.039146799594163895,
-0.01686524786055088,
0.03933356702327728,
0.04041682928800583,
-0.013344650156795979,
-0.009259076789021492,
0.029565544798970222,
0.040939781814813614,
-0.002843559253960848,
-0.019722813740372658,
0.006625632755458355,
0.018088584765791893,
-0.005747818388044834,
0.049082912504673004,
-0.0027898631524294615,
0.005859879776835442,
0.035299353301525116,
0.06155908852815628,
0.030984990298748016,
-0.03141455724835396,
0.04015535116195679,
0.009982806630432606,
-0.052631523460149765,
0.0198161993175745,
0.07792005687952042,
-0.00022587385319638997,
0.03746587783098221,
0.018751615658402443,
0.034701693803071976,
0.026913423091173172,
0.023757025599479675,
0.04310630261898041,
0.002682470716536045,
0.005640426184982061,
0.03802618384361267,
-0.01236411277204752,
-0.02385041117668152,
0.03285267949104309,
-0.043890733271837234,
0.11617036163806915,
0.01953604444861412,
-0.023420842364430428,
0.03225501999258995,
-0.022374935448169708,
0.01678120158612728,
0.012485512532293797,
0.061185549944639206,
0.020040322095155716,
-0.012410804629325867,
0.07657532393932343,
-0.03630790859460831,
-0.015006895177066326,
-0.006116687320172787,
-0.05999022722244263,
0.010384360328316689,
-0.02780991606414318,
-0.03120911307632923,
0.006247425451874733,
0.03313283249735832,
-0.040192704647779465,
0.03018188290297985,
-0.011504975147545338,
0.04213510453701019,
-0.02414924092590809,
-0.1275259256362915,
0.005864548962563276,
-0.02177727408707142,
-0.000602913904003799,
-0.03524332493543625,
0.06660185009241104,
0.030854251235723495,
-0.033525049686431885,
-0.044637810438871384,
0.022580381482839584,
-0.01737886294722557,
-0.00946919247508049,
0.04501134529709816,
-0.04471251741051674,
-0.07717297971248627,
-0.016743848100304604,
0.04291953146457672,
-0.024336010217666626,
0.01375554222613573,
-0.029677605256438255,
-0.009982806630432606,
-0.01435320358723402,
-0.014848140999674797,
-0.046131961047649384,
-0.04512340947985649,
-0.06424856185913086,
-0.02088078297674656,
-0.014932187274098396,
-0.0384744293987751,
0.03049938939511776,
0.013008465990424156,
0.030723512172698975,
0.009025615639984608,
0.032796651124954224,
-0.0022447307128459215,
-0.0054629952646791935,
0.011747774668037891,
-0.03268458694219589,
-0.06895514577627182,
-0.012634928338229656,
0.01806056872010231,
0.058085180819034576,
-0.06058788672089577,
-0.06790923327207565,
0.017864461988210678,
-0.048933498561382294,
0.013550096191465855,
-0.05352801829576492,
0.0037680661771446466,
0.002691809320822358,
0.01966678351163864,
0.07074812799692154,
0.002684805542230606,
0.05434980243444443,
0.016921278089284897,
0.00442409235984087,
0.013456711545586586,
0.026390470564365387,
0.0228045042604208,
0.04489928483963013,
0.060289058834314346,
0.02385041117668152,
-0.0369802750647068,
-0.009954791516065598,
-0.0009262578678317368,
-0.04325571656227112,
0.005990617908537388,
0.041126549243927,
-0.020227091386914253,
0.020469890907406807,
-0.04105184227228165,
0.055881306529045105,
-0.030910281464457512,
0.005341595504432917,
0.04960586503148079,
-0.03289003297686577,
0.005182841792702675,
0.01281235832720995,
0.02086210623383522,
0.07149520516395569,
0.036177169531583786,
-0.015492495149374008,
0.005822525825351477,
-0.00018341306713409722,
-0.10257357358932495,
0.001342402771115303,
-0.003084024414420128,
0.013578111305832863,
-0.05599336698651314,
0.013568772934377193,
0.0033735164906829596,
-0.006233417894691229,
0.03789544478058815,
-0.014764095656573772,
0.0001987339637707919,
-0.0746329203248024,
-0.08957444876432419,
0.0198161993175745,
0.02265508845448494,
0.025101764127612114,
0.04407750070095062,
0.018816983327269554,
-0.01878896914422512,
0.08718380331993103,
0.05080118775367737,
0.002953286049887538,
-0.04553430154919624,
-0.04841054230928421,
-0.011617036536335945,
-0.026539886370301247,
-0.021497121080756187,
0.03006982058286667,
0.0013715854147449136,
0.006116687320172787,
-0.008736123330891132,
0.030107174068689346,
-0.027940653264522552,
-0.01086996030062437,
-0.012149328365921974,
0.004781288094818592,
-0.017360186204314232,
0.015062925405800343,
0.023999826982617378,
0.011878512799739838,
0.021833304315805435,
-0.049942050129175186,
-0.03359975665807724,
-0.000042935000237775967,
-0.006527578923851252,
0.01531506422907114,
-0.018452784046530724,
-0.016762524843215942,
0.03386123478412628,
0.052631523460149765,
0.04904555901885033,
-0.09644754976034164,
0.002435001777485013,
-0.0500914640724659,
0.053789492696523666,
0.01279368158429861,
-0.028183452785015106,
-0.019059784710407257,
0.007195278536528349,
0.022879211232066154,
0.02840757556259632,
0.00396417360752821,
-0.009721330367028713,
0.0275297611951828,
0.033375632017850876,
0.02248699590563774,
0.00008207625069189817,
-0.019013091921806335,
0.0033875240478664637,
-0.06051317974925041,
0.009100323542952538,
-0.07732239365577698,
0.01585669443011284,
0.06798394024372101,
-0.02084342949092388,
0.007106563076376915,
0.0014369545970112085,
-0.042545996606349945,
-0.03625187650322914,
0.013167220167815685,
-0.06869366765022278,
0.03139588236808777,
0.012149328365921974,
-0.04008064419031143,
-0.022711118683218956,
-0.009599930606782436,
-0.06772246956825256,
0.012634928338229656,
0.034720372408628464,
0.024242626503109932,
-0.007087886333465576,
0.04930703714489937,
0.032030895352363586,
-0.08240251243114471,
-0.038997381925582886,
0.05401361733675003,
-0.025867516174912453,
-0.059280503541231155,
-0.002647451590746641,
0.004048219881951809,
0.02799668349325657,
0.08120719343423843,
-0.030555421486496925,
-0.02829551510512829,
-0.010132222436368465,
-0.018798306584358215,
-0.030611451715230942,
-0.03238575905561447,
0.026409147307276726,
-0.05636690557003021,
-0.0346643403172493,
-0.016771862283349037,
-0.02370099537074566,
0.05285564810037613,
0.06480886787176132,
-0.0539015531539917,
-0.02370099537074566,
0.05479804798960686,
-0.0000331952833221294,
-0.023906441405415535,
0.0109446682035923,
0.009548569098114967,
0.0006134196883067489,
-0.005229534115642309,
0.05061442032456398,
-0.021571828052401543,
0.033543724566698074,
0.0995105654001236,
0.015632571652531624,
-0.022374935448169708,
-0.017883138731122017,
-0.04542223736643791,
-0.04430162534117699,
0.009973468258976936,
-0.009543899446725845,
0.017957845702767372,
-0.037223078310489655,
-0.058533426374197006,
0.04661756008863449,
0.012709635309875011,
0.00399685837328434,
-0.051436204463243484,
-0.04770082235336304,
0.06193262338638306,
-0.019909583032131195,
-0.05659103021025658,
-0.06607890129089355,
-0.0482611283659935,
-0.007825624197721481,
-0.055582474917173386,
-0.004146273247897625,
-0.05524629354476929,
0.004134600516408682,
-0.014577326364815235,
0.016771862283349037,
0.014596003107726574,
0.014567987993359566,
-0.04060359671711922,
0.005640426184982061,
-0.009964129887521267,
-0.007227963302284479,
0.001542012207210064,
0.05520894005894661,
-0.02607296220958233,
0.023719672113656998,
0.034421540796756744,
0.014147757552564144,
0.006831078790128231,
-0.006947809364646673,
0.012644266709685326,
-0.016230233013629913,
0.014175772666931152,
-0.0012233374873176217,
-0.014549311250448227,
0.020469890907406807,
-0.02159050479531288,
0.06316529959440231,
-0.043890733271837234,
-0.024933671578764915,
0.01288706623017788,
-0.06480886787176132,
-0.002427997998893261,
-0.00014576742250937968,
-0.019498690962791443,
-0.019442660734057426,
0.04250864312052727,
-0.002404651837423444,
-0.0010879298206418753,
-0.0313398502767086,
-0.05375213921070099,
0.0044147539883852005,
-0.05670309066772461,
-0.032516494393348694,
0.061334963887929916,
0.033805202692747116,
0.00983339175581932,
-0.03843707591295242,
0.00419530039653182,
-0.012270728126168251,
0.02648385427892208,
-0.015520510263741016,
0.03246046602725983,
-0.02962157502770424,
-0.01748158596456051,
-0.0524074025452137,
-0.006065325811505318,
-0.04867202043533325,
-0.04191097989678383,
0.020451214164495468,
-0.008101108483970165,
-0.014259818941354752,
-0.0248776413500309,
0.07889125496149063,
-0.011589021421968937,
-0.004300357773900032,
-0.02665194682776928,
0.0535653717815876,
0.02131035178899765,
0.01436254195868969,
-0.023476872593164444,
0.002280917251482606,
-0.10720545053482056,
-0.016613109037280083,
-0.02500837855041027,
-0.01863955333828926,
-0.0017019332153722644,
-0.010169575922191143,
0.06279176473617554,
0.03163868188858032,
0.023757025599479675
]
|
30,106 | networkx.classes.graph | to_undirected_class | Returns the class to use for empty undirected copies.
If you subclass the base classes, use this to designate
what directed class to use for `to_directed()` copies.
| def to_undirected_class(self):
"""Returns the class to use for empty undirected copies.
If you subclass the base classes, use this to designate
what directed class to use for `to_directed()` copies.
"""
return Graph
| (self) | [
-0.04529338702559471,
0.016823507845401764,
-0.001399048836901784,
-0.019521204754710197,
-0.06704957783222198,
-0.008014519698917866,
-0.04082341492176056,
0.007302991114556789,
0.0736846923828125,
-0.011855902150273323,
-0.030469143763184547,
-0.013331341557204723,
-0.01728621870279312,
0.04183614253997803,
0.004088016226887703,
0.05287138372659683,
-0.020341863855719566,
0.03495657816529274,
0.03404861316084862,
0.028111932799220085,
-0.000802652386482805,
-0.013942470774054527,
0.011113816872239113,
0.006072002928704023,
-0.020900610834360123,
-0.019905343651771545,
-0.027937324717640877,
-0.0021564122289419174,
-0.03956623375415802,
-0.0025187244173139334,
-0.034642282873392105,
-0.03172632306814194,
0.006530349608510733,
0.028897669166326523,
0.054407939314842224,
0.04602674022316933,
-0.037575699388980865,
0.07340531796216965,
-0.09338050335645676,
-0.03390892595052719,
-0.03830905631184578,
-0.016290951520204544,
-0.04354730248451233,
0.00882644858211279,
0.07983089983463287,
0.035864539444446564,
0.03600422665476799,
-0.030661212280392647,
-0.05129991099238396,
-0.06422092020511627,
-0.006748609710484743,
0.003516174154356122,
-0.01222257874906063,
0.06862105429172516,
-0.027640489861369133,
0.03558516502380371,
-0.021826034411787987,
0.019660891965031624,
-0.02439277619123459,
0.06338280439376831,
-0.021773651242256165,
0.007713320665061474,
0.055036526173353195,
-0.06184624880552292,
0.007023617625236511,
0.006058907136321068,
-0.07284656912088394,
0.010965399444103241,
-0.006971235387027264,
0.05028718337416649,
-0.031691402196884155,
-0.02674998715519905,
0.02400863729417324,
0.05660800263285637,
0.06561779230833054,
-0.021372051909565926,
0.05182373523712158,
0.01272894348949194,
0.0036340346559882164,
-0.01894499734044075,
-0.01759178377687931,
-0.031866010278463364,
-0.022891145199537277,
0.010581261478364468,
0.02212286740541458,
-0.041382160037755966,
-0.002970523200929165,
-0.016020309180021286,
-0.061392270028591156,
-0.06195101514458656,
-0.03431052714586258,
0.0004556184576358646,
-0.022192711010575294,
0.036074068397283554,
0.0053473785519599915,
0.01516472827643156,
-0.03055644780397415,
-0.053360287100076675,
0.02442769706249237,
-0.027902401983737946,
-0.019713273271918297,
0.026278546079993248,
-0.08590727299451828,
0.005246978718787432,
-0.007687129080295563,
-0.0630335882306099,
0.0004297000414226204,
-0.012475761584937572,
-0.0403694324195385,
-0.005465238820761442,
-0.043652068823575974,
0.049693513661623,
0.02568487636744976,
0.043686989694833755,
0.038832880556583405,
-0.03310572728514671,
0.003507443703711033,
0.004136033356189728,
0.006892661564052105,
-0.003297913819551468,
-0.05109038203954697,
0.050426870584487915,
-0.036737579852342606,
0.035689931362867355,
0.0020472819451242685,
0.006709322798997164,
0.006918852683156729,
-0.037366170436143875,
0.0056922296062111855,
-0.02229747734963894,
0.009629646316170692,
-0.012135274708271027,
-0.04770297929644585,
0.035864539444446564,
0.0182814858853817,
0.02275145798921585,
-0.049588751047849655,
0.022053025662899017,
0.006923218257725239,
0.057585809379816055,
0.003961425274610519,
-0.02779763750731945,
0.09268207103013992,
0.047039467841386795,
-0.004229885526001453,
0.024462619796395302,
-0.017163993790745735,
0.02648807503283024,
-0.02444515749812126,
-0.001489626825787127,
0.01814180053770542,
0.016535403206944466,
0.05391903594136238,
0.020306942984461784,
-0.05290630832314491,
-0.00998759362846613,
-0.05583972483873367,
-0.0012353535275906324,
-0.022768918424844742,
-0.012240040116012096,
-0.052557092159986496,
-0.05849377065896988,
0.031062811613082886,
-0.030207231640815735,
-0.005914855282753706,
-0.053569819778203964,
0.08793272823095322,
-0.042394887655973434,
-0.004284450318664312,
0.011515415273606777,
-0.04316316545009613,
-0.05772549659013748,
-0.02315305732190609,
0.009725680574774742,
-0.03733124956488609,
0.03240729495882988,
0.037366170436143875,
0.06904011219739914,
0.02420070767402649,
0.046410880982875824,
0.06914487481117249,
-0.023484813049435616,
-0.04885539412498474,
-0.0206561591476202,
0.06065891310572624,
-0.03153425455093384,
-0.010773330926895142,
0.009472498670220375,
0.018997380509972572,
0.03321049362421036,
0.03392638638615608,
0.014073426835238934,
0.034223221242427826,
0.029613563790917397,
0.07347515970468521,
-0.07207829505205154,
-0.018351329490542412,
0.013898818753659725,
-0.05810963362455368,
0.10350778698921204,
0.03073105588555336,
-0.009865367785096169,
0.06299866735935211,
-0.0007917393813841045,
-0.005618021357804537,
0.04022974520921707,
-0.018071956932544708,
-0.011401920579373837,
0.005823186133056879,
-0.026994438841938972,
-0.013741671107709408,
-0.00009719406079966575,
0.033367641270160675,
0.0015627440297976136,
-0.03235491365194321,
-0.054407939314842224,
-0.025737259536981583,
0.000971258501522243,
-0.029124660417437553,
-0.0008812261512503028,
-0.01346229761838913,
-0.013959931209683418,
-0.04211551696062088,
-0.006456140894442797,
-0.04696962609887123,
-0.04508385807275772,
-0.04148692637681961,
-0.0702623724937439,
0.00190541276242584,
-0.048541098833084106,
0.049134768545627594,
-0.06167164072394371,
-0.000924332533031702,
0.03659789264202118,
0.06062399223446846,
-0.004753710236400366,
-0.03977576643228531,
-0.015924274921417236,
-0.005644212476909161,
0.033315259963274,
-0.054826997220516205,
-0.037540778517723083,
-0.003088383935391903,
0.018456093966960907,
0.08569774031639099,
0.043477460741996765,
-0.015260763466358185,
0.007071635220199823,
0.01814180053770542,
-0.01126223336905241,
-0.027186507359147072,
-0.06373202055692673,
-0.042813949286937714,
-0.01896245777606964,
0.05088084936141968,
-0.022402241826057434,
-0.0833929106593132,
-0.07270688563585281,
0.0024772549513727427,
0.03404861316084862,
-0.033315259963274,
0.05304599180817604,
-0.016256030648946762,
0.06526857614517212,
0.008119285106658936,
-0.01978311687707901,
-0.05325552448630333,
0.016072692349553108,
-0.03010246716439724,
0.01768781803548336,
0.1014823317527771,
0.03010246716439724,
0.007831181399524212,
0.030189771205186844,
-0.016491752117872238,
-0.03684234619140625,
-0.0673987939953804,
0.02633092738687992,
-0.013671827502548695,
-0.0365629717707634,
-0.029211964458227158,
-0.02336258627474308,
-0.034013692289590836,
-0.02524835616350174,
-0.04780774563550949,
0.033385101705789566,
0.01918944902718067,
-0.027727793902158737,
0.01178605854511261,
-0.008040711283683777,
0.07808481901884079,
0.010607453063130379,
0.017871156334877014,
0.006739879492670298,
0.01124477293342352,
-0.012414648197591305,
-0.024532463401556015,
-0.012606717646121979,
0.04920461028814316,
0.05678261071443558,
0.04571244493126869,
-0.06037954241037369,
0.02311813458800316,
0.03553278371691704,
-0.02233239822089672,
0.005417221691459417,
0.012283692136406898,
0.01759178377687931,
0.025946790352463722,
0.01643063873052597,
-0.06876073777675629,
0.0061374809592962265,
-0.0070192525163292885,
0.07382437586784363,
-0.015933005139231682,
-0.001677330699749291,
-0.019224371761083603,
-0.0500776544213295,
0.039880529046058655,
0.08639617264270782,
-0.07801497727632523,
0.0702623724937439,
-0.0403694324195385,
0.006089463364332914,
-0.04658548906445503,
0.033350180834531784,
0.005116022191941738,
0.06079860031604767,
0.025143591687083244,
0.020673619583249092,
0.02145935595035553,
0.006975600495934486,
0.0014514313079416752,
0.021197443827986717,
-0.0931011289358139,
0.02086568810045719,
0.0653034970164299,
-0.0032870008144527674,
0.025388043373823166,
-0.03677250072360039,
0.02001010812819004,
0.043931443244218826,
-0.004723154008388519,
0.010284427553415298,
0.013601984828710556,
0.039461471140384674,
-0.029351651668548584,
-0.009795524179935455,
0.0003587654500734061,
-0.0039046774618327618,
-0.026278546079993248,
0.06446537375450134,
-0.03280889615416527,
0.0342756025493145,
0.01911960542201996,
0.018403712660074234,
0.021197443827986717,
0.01265036966651678,
-0.045817211270332336,
-0.023030830547213554,
0.039042409509420395,
0.02652299590408802,
-0.0010290974751114845,
-0.0206561591476202,
0.07270688563585281,
0.037575699388980865,
0.009437576867640018,
-0.00832008384168148,
0.0030207231175154448,
-0.04372191056609154,
-0.03939162567257881,
-0.05154436081647873,
-0.02271653711795807,
-0.015400449745357037,
-0.005674768704921007,
0.03733124956488609,
-0.020481551066040993,
0.01850847713649273,
0.0378899946808815,
0.03513118624687195,
-0.010214583948254585,
0.010441575199365616,
-0.004461241420358419,
0.03031199611723423,
0.05727151408791542,
-0.01443137414753437,
0.05657308176159859,
0.05374442785978317,
0.01739971525967121,
-0.0013848618837073445,
-0.04424573481082916,
-0.03553278371691704,
0.00022003370395395905,
-0.027727793902158737,
-0.00848159659653902,
-0.013680558651685715,
0.0046009281650185585,
0.027692873030900955,
0.004552910570055246,
-0.012030510231852531,
0.00814111065119505,
-0.015662362799048424,
0.03666773810982704,
0.05912236124277115,
-0.007922850549221039,
0.019014840945601463,
0.04022974520921707,
0.026278546079993248,
0.028513530269265175,
-0.03869319334626198,
0.06635114550590515,
0.026400770992040634,
-0.0729164183139801,
0.014544868841767311,
0.05929696932435036,
-0.01581951044499874,
0.03431052714586258,
-0.0009597998578101397,
0.06334788352251053,
-0.010310618206858635,
0.028548453003168106,
0.059646185487508774,
0.06121766194701195,
-0.026208702474832535,
0.048750631511211395,
-0.015121076256036758,
-0.01767035759985447,
0.03438036888837814,
-0.04763313755393028,
0.06533841788768768,
0.012484491802752018,
-0.030678674578666687,
0.002538367873057723,
-0.036143913865089417,
0.005670403596013784,
0.01660524681210518,
0.04253457486629486,
0.013200385496020317,
-0.00790975522249937,
0.06935440748929977,
-0.021826034411787987,
-0.009149473160505295,
-0.021529199555516243,
-0.03396131098270416,
0.03266920894384384,
-0.06394155323505402,
-0.028338922187685966,
-0.013994853012263775,
0.03448513522744179,
-0.01654413342475891,
-0.018473556265234947,
-0.0180894173681736,
0.05203326418995857,
0.005194596014916897,
-0.11370490491390228,
0.004535450134426355,
0.0038828514516353607,
-0.052766621112823486,
-0.004253894090652466,
0.024881679564714432,
0.0022218902595341206,
-0.034432750195264816,
-0.02482929639518261,
0.011724945157766342,
-0.005207691807299852,
-0.010441575199365616,
0.03621375560760498,
-0.02734365500509739,
-0.03342002257704735,
-0.02381656877696514,
0.09603454917669296,
0.00031484055216424167,
-0.0006924309418536723,
-0.07612920552492142,
-0.010415383614599705,
0.02124982699751854,
-0.03621375560760498,
-0.03879795968532562,
-0.008119285106658936,
-0.046201348304748535,
-0.037785232067108154,
-0.014492486603558064,
0.0003170231357216835,
0.021983182057738304,
-0.012257500551640987,
0.02587694674730301,
-0.02376418560743332,
0.0071371132507920265,
0.009114552289247513,
0.0316040962934494,
-0.023030830547213554,
0.011000321246683598,
-0.036143913865089417,
-0.028042089194059372,
0.01712034083902836,
0.06551302224397659,
-0.04298855736851692,
-0.004513623658567667,
-0.01852593757212162,
-0.02907227724790573,
0.03792491555213928,
-0.03539309650659561,
-0.059262048453092575,
-0.01677112467586994,
0.027186507359147072,
-0.0027435324154794216,
-0.016692550852894783,
0.03535817563533783,
0.003668956458568573,
0.04127739742398262,
0.043477460741996765,
0.024148324504494667,
0.020359324291348457,
0.04256949573755264,
0.035061340779066086,
0.006613288540393114,
-0.0269420575350523,
0.020306942984461784,
0.019224371761083603,
-0.02041170746088028,
0.01776639185845852,
0.03029453568160534,
-0.025108668953180313,
0.016840968281030655,
-0.05908744037151337,
0.04085833579301834,
-0.020306942984461784,
0.013313881121575832,
0.04103294387459755,
0.00416004192084074,
0.03415337949991226,
0.030853282660245895,
0.0013968661660328507,
0.11056195944547653,
0.023694342002272606,
0.019940264523029327,
-0.004666406195610762,
0.049379218369722366,
-0.036108989268541336,
-0.02297844924032688,
-0.0009123282507061958,
-0.028373844921588898,
0.0037278865929692984,
0.03680742532014847,
0.017984652891755104,
-0.013034507632255554,
-0.002564558992162347,
0.005910490173846483,
-0.007298626005649567,
-0.017067959532141685,
-0.03879795968532562,
-0.003232435556128621,
-0.027308734133839607,
0.011890823021531105,
0.05556035414338112,
-0.0074208518490195274,
-0.0033961308654397726,
0.0563635490834713,
0.0483664907515049,
0.03537563607096672,
-0.05583972483873367,
-0.0365629717707634,
0.02613885886967182,
-0.02460230514407158,
0.016657629981637,
0.002148773055523634,
0.010022514499723911,
0.044106051325798035,
-0.01677112467586994,
0.018997380509972572,
0.0029028626158833504,
-0.02124982699751854,
-0.000349762209225446,
0.0022677250672131777,
0.029194504022598267,
0.036982033401727676,
0.009839176200330257,
0.03279143199324608,
-0.00846413616091013,
-0.06582731753587723,
-0.017661627382040024,
0.040544040501117706,
-0.001315018511377275,
0.016273491084575653,
-0.036947112530469894,
-0.07431328296661377,
-0.02587694674730301,
-0.026662683114409447,
0.019870420917868614,
-0.06125258281826973,
0.008158572018146515,
-0.0046009281650185585,
0.03076597861945629,
0.003610026091337204,
-0.016675090417265892,
-0.03624867647886276,
0.005709690507501364,
-0.019102144986391068,
0.015906814485788345,
0.005473969504237175,
-0.012353535741567612,
0.06883057951927185,
0.03284381702542305,
0.04585213214159012,
0.055455587804317474,
-0.02212286740541458,
-0.014265496283769608,
-0.047039467841386795,
-0.007246243301779032,
-0.05699213966727257,
-0.011943206191062927,
0.06069383770227432,
-0.004382667597383261,
-0.003450696123763919,
0.0168496984988451,
-0.03478196635842323,
-0.06467490643262863,
0.01938151754438877,
-0.08688507974147797,
0.02571979910135269,
0.02273399755358696,
-0.037540778517723083,
-0.019084684550762177,
0.0019687083549797535,
-0.050636399537324905,
0.03553278371691704,
0.004463423974812031,
-0.02655791863799095,
0.0178973488509655,
0.019678352400660515,
0.013497219420969486,
-0.07396406680345535,
-0.009297890588641167,
-0.03628360107541084,
-0.05098561570048332,
-0.05301107093691826,
-0.018229104578495026,
0.02926434576511383,
0.03286127746105194,
0.06670036166906357,
-0.07347515970468521,
0.020167255774140358,
-0.03116757608950138,
-0.02168634720146656,
-0.04857602342963219,
-0.08402150124311447,
0.0115677984431386,
-0.017033036798238754,
-0.04354730248451233,
-0.030835820361971855,
-0.02212286740541458,
0.05500160530209541,
0.048506177961826324,
-0.0012200752971693873,
0.010136010125279427,
0.033821623772382736,
-0.011655102483928204,
0.012397187761962414,
0.027483342215418816,
-0.042848870158195496,
-0.005255708936601877,
0.012135274708271027,
0.04696962609887123,
0.007032348308712244,
0.03603914752602577,
0.0702623724937439,
-0.0077657029032707214,
-0.03076597861945629,
-0.022053025662899017,
-0.0630335882306099,
-0.04889031499624252,
0.03869319334626198,
0.0009843541774898767,
-0.056084178388118744,
-0.08583742380142212,
-0.043652068823575974,
0.03984560817480087,
-0.01240591797977686,
0.015609979629516602,
-0.053604740649461746,
-0.019416440278291702,
0.03011992760002613,
-0.054233331233263016,
-0.03431052714586258,
-0.023275282233953476,
0.0002203065378125757,
-0.02530073933303356,
-0.04595689848065376,
-0.007516886107623577,
-0.05213803052902222,
-0.016631437465548515,
0.024130864068865776,
0.01829894632101059,
0.018892616033554077,
0.018683085218071938,
-0.01282497774809599,
-0.05290630832314491,
-0.01198685821145773,
0.017338601872324944,
-0.020533932372927666,
0.05049671232700348,
-0.012781325727701187,
-0.006412488874047995,
0.02172126993536949,
0.0647447481751442,
0.003994164057075977,
0.00019602506654337049,
0.036318521946668625,
0.01326149795204401,
0.04089325666427612,
-0.009516150690615177,
-0.002994531998410821,
0.018211642280220985,
0.0258944071829319,
-0.006639479659497738,
-0.04288379102945328,
-0.00007973323226906359,
0.019137067720294,
-0.07822450995445251,
-0.011113816872239113,
-0.009324082173407078,
-0.04613150656223297,
0.016648899763822556,
0.04483940452337265,
0.034188300371170044,
0.04435050114989281,
0.0071371132507920265,
-0.05049671232700348,
0.002276455285027623,
-0.014771860092878342,
0.008739144541323185,
0.048296649008989334,
-0.00674424460157752,
0.0445600301027298,
-0.005827551241964102,
0.028757981956005096,
-0.0010078171035274863,
0.017146533355116844,
-0.02629600651562214,
0.06876073777675629,
-0.04497909173369408,
-0.0115677984431386,
-0.0057882643304765224,
0.018595781177282333,
-0.030032623559236526,
-0.07361485064029694,
0.03163902088999748,
0.06470982730388641,
-0.0011720580514520407,
-0.02294352650642395,
0.05996048077940941,
-0.006818453315645456,
0.017871156334877014,
-0.029177041724324226,
0.021005375310778618,
-0.0017766391392797232,
0.02606901526451111,
-0.03310572728514671,
-0.010764599777758121,
-0.08590727299451828,
-0.025929328054189682,
-0.05563019588589668,
0.011000321246683598,
-0.031708862632513046,
0.006565270945429802,
0.06813214719295502,
0.04539814963936806,
0.009874098002910614
]
|
30,107 | networkx.classes.graph | update | Update the graph using nodes/edges/graphs as input.
Like dict.update, this method takes a graph as input, adding the
graph's nodes and edges to this graph. It can also take two inputs:
edges and nodes. Finally it can take either edges or nodes.
To specify only nodes the keyword `nodes` must be used.
The collections of edges and nodes are treated similarly to
the add_edges_from/add_nodes_from methods. When iterated, they
should yield 2-tuples (u, v) or 3-tuples (u, v, datadict).
Parameters
----------
edges : Graph object, collection of edges, or None
The first parameter can be a graph or some edges. If it has
attributes `nodes` and `edges`, then it is taken to be a
Graph-like object and those attributes are used as collections
of nodes and edges to be added to the graph.
If the first parameter does not have those attributes, it is
treated as a collection of edges and added to the graph.
If the first argument is None, no edges are added.
nodes : collection of nodes, or None
The second parameter is treated as a collection of nodes
to be added to the graph unless it is None.
If `edges is None` and `nodes is None` an exception is raised.
If the first parameter is a Graph, then `nodes` is ignored.
Examples
--------
>>> G = nx.path_graph(5)
>>> G.update(nx.complete_graph(range(4, 10)))
>>> from itertools import combinations
>>> edges = (
... (u, v, {"power": u * v})
... for u, v in combinations(range(10, 20), 2)
... if u * v < 225
... )
>>> nodes = [1000] # for singleton, use a container
>>> G.update(edges, nodes)
Notes
-----
It you want to update the graph using an adjacency structure
it is straightforward to obtain the edges/nodes from adjacency.
The following examples provide common cases, your adjacency may
be slightly different and require tweaks of these examples::
>>> # dict-of-set/list/tuple
>>> adj = {1: {2, 3}, 2: {1, 3}, 3: {1, 2}}
>>> e = [(u, v) for u, nbrs in adj.items() for v in nbrs]
>>> G.update(edges=e, nodes=adj)
>>> DG = nx.DiGraph()
>>> # dict-of-dict-of-attribute
>>> adj = {1: {2: 1.3, 3: 0.7}, 2: {1: 1.4}, 3: {1: 0.7}}
>>> e = [(u, v, {"weight": d}) for u, nbrs in adj.items() for v, d in nbrs.items()]
>>> DG.update(edges=e, nodes=adj)
>>> # dict-of-dict-of-dict
>>> adj = {1: {2: {"weight": 1.3}, 3: {"color": 0.7, "weight": 1.2}}}
>>> e = [(u, v, {"weight": d}) for u, nbrs in adj.items() for v, d in nbrs.items()]
>>> DG.update(edges=e, nodes=adj)
>>> # predecessor adjacency (dict-of-set)
>>> pred = {1: {2, 3}, 2: {3}, 3: {3}}
>>> e = [(v, u) for u, nbrs in pred.items() for v in nbrs]
>>> # MultiGraph dict-of-dict-of-dict-of-attribute
>>> MDG = nx.MultiDiGraph()
>>> adj = {
... 1: {2: {0: {"weight": 1.3}, 1: {"weight": 1.2}}},
... 3: {2: {0: {"weight": 0.7}}},
... }
>>> e = [
... (u, v, ekey, d)
... for u, nbrs in adj.items()
... for v, keydict in nbrs.items()
... for ekey, d in keydict.items()
... ]
>>> MDG.update(edges=e)
See Also
--------
add_edges_from: add multiple edges to a graph
add_nodes_from: add multiple nodes to a graph
| def update(self, edges=None, nodes=None):
"""Update the graph using nodes/edges/graphs as input.
Like dict.update, this method takes a graph as input, adding the
graph's nodes and edges to this graph. It can also take two inputs:
edges and nodes. Finally it can take either edges or nodes.
To specify only nodes the keyword `nodes` must be used.
The collections of edges and nodes are treated similarly to
the add_edges_from/add_nodes_from methods. When iterated, they
should yield 2-tuples (u, v) or 3-tuples (u, v, datadict).
Parameters
----------
edges : Graph object, collection of edges, or None
The first parameter can be a graph or some edges. If it has
attributes `nodes` and `edges`, then it is taken to be a
Graph-like object and those attributes are used as collections
of nodes and edges to be added to the graph.
If the first parameter does not have those attributes, it is
treated as a collection of edges and added to the graph.
If the first argument is None, no edges are added.
nodes : collection of nodes, or None
The second parameter is treated as a collection of nodes
to be added to the graph unless it is None.
If `edges is None` and `nodes is None` an exception is raised.
If the first parameter is a Graph, then `nodes` is ignored.
Examples
--------
>>> G = nx.path_graph(5)
>>> G.update(nx.complete_graph(range(4, 10)))
>>> from itertools import combinations
>>> edges = (
... (u, v, {"power": u * v})
... for u, v in combinations(range(10, 20), 2)
... if u * v < 225
... )
>>> nodes = [1000] # for singleton, use a container
>>> G.update(edges, nodes)
Notes
-----
It you want to update the graph using an adjacency structure
it is straightforward to obtain the edges/nodes from adjacency.
The following examples provide common cases, your adjacency may
be slightly different and require tweaks of these examples::
>>> # dict-of-set/list/tuple
>>> adj = {1: {2, 3}, 2: {1, 3}, 3: {1, 2}}
>>> e = [(u, v) for u, nbrs in adj.items() for v in nbrs]
>>> G.update(edges=e, nodes=adj)
>>> DG = nx.DiGraph()
>>> # dict-of-dict-of-attribute
>>> adj = {1: {2: 1.3, 3: 0.7}, 2: {1: 1.4}, 3: {1: 0.7}}
>>> e = [(u, v, {"weight": d}) for u, nbrs in adj.items() for v, d in nbrs.items()]
>>> DG.update(edges=e, nodes=adj)
>>> # dict-of-dict-of-dict
>>> adj = {1: {2: {"weight": 1.3}, 3: {"color": 0.7, "weight": 1.2}}}
>>> e = [(u, v, {"weight": d}) for u, nbrs in adj.items() for v, d in nbrs.items()]
>>> DG.update(edges=e, nodes=adj)
>>> # predecessor adjacency (dict-of-set)
>>> pred = {1: {2, 3}, 2: {3}, 3: {3}}
>>> e = [(v, u) for u, nbrs in pred.items() for v in nbrs]
>>> # MultiGraph dict-of-dict-of-dict-of-attribute
>>> MDG = nx.MultiDiGraph()
>>> adj = {
... 1: {2: {0: {"weight": 1.3}, 1: {"weight": 1.2}}},
... 3: {2: {0: {"weight": 0.7}}},
... }
>>> e = [
... (u, v, ekey, d)
... for u, nbrs in adj.items()
... for v, keydict in nbrs.items()
... for ekey, d in keydict.items()
... ]
>>> MDG.update(edges=e)
See Also
--------
add_edges_from: add multiple edges to a graph
add_nodes_from: add multiple nodes to a graph
"""
if edges is not None:
if nodes is not None:
self.add_nodes_from(nodes)
self.add_edges_from(edges)
else:
# check if edges is a Graph object
try:
graph_nodes = edges.nodes
graph_edges = edges.edges
except AttributeError:
# edge not Graph-like
self.add_edges_from(edges)
else: # edges is Graph-like
self.add_nodes_from(graph_nodes.data())
self.add_edges_from(graph_edges.data())
self.graph.update(edges.graph)
elif nodes is not None:
self.add_nodes_from(nodes)
else:
raise NetworkXError("update needs nodes or edges input")
| (self, edges=None, nodes=None) | [
0.020160268992185593,
-0.022056879475712776,
-0.02942255325615406,
0.02326107770204544,
-0.050736844539642334,
-0.010566831566393375,
-0.051539644598960876,
-0.0011214087717235088,
0.09159927070140839,
-0.014380122534930706,
-0.036728017032146454,
-0.017802050337195396,
0.027556048706173897,
0.09954697638750076,
-0.031750667840242386,
-0.0073355683125555515,
-0.01872526854276657,
0.051700204610824585,
0.012182462960481644,
0.015052465721964836,
-0.012312917038798332,
-0.06815756857395172,
0.020692123100161552,
0.040320537984371185,
-0.00030575323035009205,
-0.04555879905819893,
0.0561557337641716,
0.0014889397425577044,
0.03329605609178543,
0.03417913243174553,
-0.0063521405681967735,
-0.050134748220443726,
-0.01913670264184475,
-0.014500542543828487,
0.03417913243174553,
-0.00870534311980009,
-0.009036497212946415,
0.027997586876153946,
-0.09810193628072739,
-0.007004414219409227,
0.010556796565651894,
-0.038634661585092545,
0.007240236271172762,
-0.02651241049170494,
0.1003497764468193,
0.0537874773144722,
-0.027254998683929443,
0.06478581577539444,
-0.00859997607767582,
-0.058202870190143585,
0.005724954418838024,
-0.05178048461675644,
0.033536896109580994,
0.03911634162068367,
-0.011008369736373425,
0.0487699918448925,
-0.03682836517691612,
0.017089566215872765,
0.017802050337195396,
0.01616634801030159,
0.04415389895439148,
-0.05366705730557442,
-0.03070703148841858,
-0.017641490325331688,
-0.04130396619439125,
-0.021394571289420128,
-0.05996902659535408,
-0.041223686188459396,
-0.055393073707818985,
-0.0026341816410422325,
-0.017781980335712433,
0.013426799327135086,
0.007902544923126698,
-0.04018004983663559,
0.0046913521364331245,
0.05049600452184677,
-0.019086526706814766,
0.031971439719200134,
0.010070099495351315,
-0.011861342936754227,
0.01913670264184475,
-0.011118754744529724,
0.000754504872020334,
-0.03128905966877937,
0.06470553576946259,
0.027315208688378334,
-0.008790640160441399,
0.030787311494350433,
-0.006377228070050478,
-0.04744537174701691,
-0.015473934821784496,
-0.03889557346701622,
0.004277409054338932,
0.015413724817335606,
0.0492115281522274,
0.01697918213903904,
-0.006076178979128599,
-0.11367622017860413,
-0.008022964000701904,
0.001812567817978561,
-0.001431238604709506,
-0.0676758885383606,
-0.01205200795084238,
-0.002912652213126421,
-0.016487468034029007,
-0.09689774364233017,
-0.015905439853668213,
-0.018143238499760628,
-0.012563792057335377,
-0.04724467173218727,
-0.05322552099823952,
-0.014028898440301418,
0.05800217017531395,
-0.01451057754456997,
0.01260393112897873,
-0.009021444246172905,
-0.006648172624409199,
-0.01669820211827755,
0.03243304789066315,
0.01660788804292679,
-0.05105796456336975,
0.08782612532377243,
-0.0014023880939930677,
0.04355180263519287,
0.020631913095712662,
-0.056516993790864944,
0.021775901317596436,
0.03154996782541275,
0.022819537669420242,
-0.05350650101900101,
-0.00015695331967435777,
-0.03873501345515251,
-0.01703939214348793,
0.05186076462268829,
0.04941222816705704,
-0.056958530098199844,
-0.052984680980443954,
-0.020411143079400063,
0.015393655747175217,
-0.0037606076803058386,
0.0026065853890031576,
-0.02739548869431019,
0.036005500704050064,
0.01036613155156374,
-0.04664257541298866,
-0.037249837070703506,
-0.03486151248216629,
-0.03279430791735649,
-0.04792705178260803,
-0.02336142770946026,
-0.036286476999521255,
-0.015142780728638172,
0.009182004258036613,
0.009322494268417358,
-0.04483627900481224,
-0.017109636217355728,
-0.062297139316797256,
-0.007646652869880199,
-0.016878832131624222,
-0.008213629014790058,
-0.038032565265893936,
-0.03658752888441086,
0.046482015401124954,
0.0013221083208918571,
-0.023782895877957344,
-0.004079218488186598,
0.014741381630301476,
-0.019929464906454086,
-0.02336142770946026,
0.026974018663167953,
0.028057796880602837,
-0.028760245069861412,
-0.03223234787583351,
-0.0037831864319741726,
0.0418257862329483,
0.03205171599984169,
0.04495669901371002,
-0.025528982281684875,
-0.0017209986690431833,
0.034440040588378906,
0.03552382066845894,
-0.016427258029580116,
-0.0020697140134871006,
0.019467856734991074,
0.00654280511662364,
0.016437292098999023,
-0.018624918535351753,
0.012312917038798332,
0.03042605146765709,
-0.012282812036573887,
0.03323584422469139,
-0.04587991535663605,
-0.0013961162185296416,
0.06964274495840073,
0.02998451329767704,
0.012292847037315369,
-0.019247086718678474,
-0.006086213979870081,
0.031911227852106094,
0.09906529635190964,
0.011028439737856388,
-0.06141406297683716,
0.07429897040128708,
0.05117838457226753,
0.011299384757876396,
-0.01061700563877821,
0.03849417343735695,
-0.027656396850943565,
-0.0034896633587777615,
-0.019879290834069252,
-0.0033090338110923767,
0.0030531417578458786,
0.04672285541892052,
-0.016377083957195282,
-0.028398986905813217,
-0.0007463514339178801,
0.0009809189941734076,
0.023241007700562477,
-0.046040475368499756,
-0.05699867010116577,
-0.011299384757876396,
0.0008824508404359221,
0.032131996005773544,
-0.056797973811626434,
0.030345771461725235,
-0.06627099215984344,
0.001934241852723062,
0.011690748855471611,
0.023180797696113586,
-0.024304715916514397,
0.06867938488721848,
-0.016587818041443825,
0.025308212265372276,
-0.0004509467980824411,
0.06687308847904205,
-0.03496186062693596,
-0.02851940505206585,
-0.006296948529779911,
0.06261825561523438,
0.024224435910582542,
-0.025227932259440422,
-0.039477601647377014,
-0.029041225090622902,
0.0007576408097520471,
-0.015865299850702286,
-0.005443975329399109,
0.05117838457226753,
-0.014028898440301418,
-0.03317563608288765,
0.0032312627881765366,
-0.005423905327916145,
-0.012894946150481701,
0.0038885537069290876,
0.04174550622701645,
-0.022839607670903206,
0.020611843094229698,
-0.002328114816918969,
0.01258386205881834,
0.008916077204048634,
-0.023903315886855125,
0.007711879909038544,
0.0070445542223751545,
-0.048890408128499985,
0.07943688333034515,
-0.0009614762966521084,
0.013216065242886543,
0.056236013770103455,
0.01785222440958023,
-0.06582944840192795,
0.010080134496092796,
0.033476684242486954,
0.027435628697276115,
0.040762078016996384,
0.01860484853386879,
0.013356555253267288,
0.02998451329767704,
0.004036569502204657,
-0.019688624888658524,
-0.008840815164148808,
-0.03686850517988205,
0.015774983912706375,
-0.04893054813146591,
-0.0326538160443306,
0.027335278689861298,
-0.01616634801030159,
0.0007425883086398244,
-0.029181715101003647,
0.02739548869431019,
-0.031088359653949738,
-0.01084781065583229,
0.10010893642902374,
-0.03879522159695625,
-0.002310553565621376,
0.03710934519767761,
-0.026251500472426414,
0.038975853472948074,
-0.029041225090622902,
0.0016043420182541013,
0.02819828689098358,
0.03893571346998215,
0.07823268324136734,
-0.0022553610615432262,
0.035162560641765594,
-0.012172427959740162,
0.028118006885051727,
-0.02976374328136444,
0.06815756857395172,
0.02723492868244648,
-0.016015823930501938,
0.015032395720481873,
-0.032473187893629074,
0.020932963117957115,
-0.030907729640603065,
0.035162560641765594,
-0.03610584884881973,
-0.0654681921005249,
-0.019899360835552216,
-0.03670794889330864,
0.017902400344610214,
0.04455529898405075,
-0.06659211218357086,
0.0696026012301445,
0.004608563147485256,
0.027897236868739128,
-0.09031479805707932,
0.004909612704068422,
0.11174950748682022,
0.07393771409988403,
0.04198634624481201,
-0.015253165736794472,
-0.02151499129831791,
-0.029121505096554756,
0.032312627881765366,
0.024465274065732956,
-0.06936176121234894,
0.04130396619439125,
0.019437750801444054,
-0.02773667685687542,
0.026713110506534576,
-0.016648028045892715,
0.023381497710943222,
0.061895739287137985,
-0.015774983912706375,
-0.011028439737856388,
0.009227161295711994,
-0.025308212265372276,
0.033998504281044006,
-0.002349439077079296,
0.009924592450261116,
0.01732037030160427,
-0.048448871821165085,
0.08405297249555588,
-0.007977806963026524,
-0.007491110824048519,
0.01757124625146389,
-0.005484115332365036,
-0.01823355443775654,
-0.08814723789691925,
0.035282980650663376,
-0.018845686689019203,
-0.020461319014430046,
0.0238631758838892,
0.017089566215872765,
0.03126898780465126,
0.006517717614769936,
-0.0009652393637225032,
-0.031690459698438644,
0.04636159539222717,
0.025067374110221863,
-0.058804966509342194,
0.02623143047094345,
-0.05250300094485283,
-0.017139742150902748,
0.039417389780282974,
-0.020100058987736702,
0.04672285541892052,
-0.033476684242486954,
0.051539644598960876,
0.01378805935382843,
0.004716439172625542,
0.0394575297832489,
-0.02948276326060295,
-0.014059003442525864,
0.031008079648017883,
0.06209643930196762,
-0.05446985736489296,
0.09673718363046646,
-0.017250126227736473,
0.012915016151964664,
-0.016778482124209404,
-0.009131829254329205,
0.027214858680963516,
0.016216523945331573,
0.024465274065732956,
-0.07630597054958344,
-0.006281896028667688,
0.07967772334814072,
-0.02617122046649456,
-0.05442971736192703,
-0.08581912517547607,
-0.0018439270788803697,
-0.04411375895142555,
0.035282980650663376,
0.06346119940280914,
0.055553633719682693,
-0.06462525576353073,
0.01409914344549179,
0.020521529018878937,
0.04415389895439148,
0.04848901182413101,
0.03855438157916069,
0.01910659670829773,
-0.07008428126573563,
0.06045070290565491,
0.012142322957515717,
-0.010305921547114849,
0.027816956862807274,
-0.03215206786990166,
0.0561557337641716,
0.04712425544857979,
0.06755546480417252,
0.012634036131203175,
-0.008324014022946358,
0.036567457020282745,
0.016678132116794586,
-0.07943688333034515,
-0.011199034750461578,
-0.03130912780761719,
-0.035563960671424866,
0.07710876315832138,
-0.00006934325938345864,
-0.06261825561523438,
0.023301217705011368,
-0.01471127662807703,
-0.0054188878275454044,
0.0005889277090318501,
0.04483627900481224,
-0.006969291716814041,
0.01660788804292679,
-0.000963984988629818,
-0.02548884227871895,
0.009683753363788128,
0.005040067248046398,
-0.08064107596874237,
-0.04214690625667572,
-0.03845403343439102,
0.0058453744277358055,
-0.029944373294711113,
-0.013737884350121021,
0.010817705653607845,
0.00953824631869793,
-0.014129248447716236,
0.031088359653949738,
0.007656687870621681,
-0.054550137370824814,
0.014771486632525921,
0.018775442615151405,
0.007852369919419289,
-0.027596188709139824,
0.0250473041087389,
-0.006337088067084551,
-0.034600600600242615,
-0.02554905228316784,
0.04339124262332916,
-0.02510751411318779,
0.012764491140842438,
0.044916559010744095,
0.0020408635027706623,
-0.050736844539642334,
-0.0046386681497097015,
0.04214690625667572,
-0.06193587929010391,
-0.037289977073669434,
-0.011359594762325287,
-0.0006105656502768397,
-0.018243588507175446,
-0.01428980752825737,
-0.018143238499760628,
-0.0468432754278183,
-0.06410343199968338,
0.010627040639519691,
-0.0056296223774552345,
0.05322552099823952,
-0.010200554504990578,
0.03048626147210598,
-0.03128905966877937,
0.021053383126854897,
-0.026371920481324196,
-0.0036075743846595287,
0.0313291996717453,
-0.0053938003256917,
-0.08605996519327164,
0.018655022606253624,
-0.029462693259119987,
-0.008158436976373196,
-0.0004271137295290828,
-0.04214690625667572,
-0.021936461329460144,
0.04571935534477234,
-0.0496530681848526,
-0.0012945120688527822,
-0.016898902133107185,
0.030185211449861526,
-0.014390157535672188,
0.01638711802661419,
0.016086068004369736,
-0.02476632408797741,
0.061614762991666794,
0.06426399201154709,
0.023521987721323967,
0.021314291283488274,
-0.021093523129820824,
0.039758581668138504,
0.026853598654270172,
0.04154480621218681,
-0.02683352865278721,
0.01446040254086256,
0.045920055359601974,
0.0326538160443306,
-0.05406845733523369,
0.02757611870765686,
0.012453407049179077,
0.023742755874991417,
0.02767646685242653,
-0.042347606271505356,
0.04652215540409088,
0.028218356892466545,
-0.06478581577539444,
0.02036096900701523,
-0.02498709410429001,
0.011168929748237133,
0.07441939413547516,
-0.020973103120923042,
0.011620503850281239,
0.008880955167114735,
-0.007877456955611706,
0.08702332526445389,
0.012734386138617992,
-0.11086642742156982,
-0.009202074259519577,
0.02880038507282734,
0.0483284518122673,
0.002614111639559269,
-0.008770570158958435,
0.03574458882212639,
-0.005047593731433153,
0.019367506727576256,
-0.03321577608585358,
0.025508912280201912,
-0.04636159539222717,
-0.0908767580986023,
0.021876251325011253,
0.015323410741984844,
0.0834910124540329,
0.01700928620994091,
-0.05515223741531372,
-0.007139886263757944,
-0.03070703148841858,
0.014520612545311451,
0.023441707715392113,
-0.06085210293531418,
-0.06434427201747894,
-0.0032613675575703382,
-0.012794596143066883,
0.04864957183599472,
0.014370087534189224,
-0.022518489509820938,
0.0048544201999902725,
-0.017972644418478012,
0.062176719307899475,
-0.03907620161771774,
0.062457699328660965,
0.004573441110551357,
-0.06318021565675735,
-0.02191639132797718,
-0.03439990431070328,
-0.03670794889330864,
0.00009031479567056522,
0.018655022606253624,
-0.07221169769763947,
-0.02633178047835827,
0.03921668976545334,
0.05430929735302925,
0.018093064427375793,
0.06936176121234894,
0.015012325718998909,
-0.03441997244954109,
0.07835310697555542,
0.007049571722745895,
0.015473934821784496,
-0.053988177329301834,
-0.04583977535367012,
0.011048509739339352,
-0.003773151431232691,
-0.01036613155156374,
0.004741526674479246,
-0.008569871075451374,
-0.023742755874991417,
-0.0024121575988829136,
-0.03183094784617424,
-0.05587475374341011,
0.012383162043988705,
0.03209185600280762,
-0.0032839463092386723,
-0.012122252956032753,
-0.01631687395274639,
0.015845229849219322,
0.017330406233668327,
0.002596550388261676,
-0.053386081010103226,
0.037069205194711685,
0.026351850479841232,
0.021615341305732727,
-0.03201157599687576,
-0.015393655747175217,
-0.0403406098484993,
-0.022558629512786865,
0.052824120968580246,
0.00897127017378807,
-0.02520786225795746,
-0.01657778210937977,
-0.04527781903743744,
-0.04893054813146591,
-0.026432130485773087,
-0.017581280320882797,
0.032031647861003876,
0.008986322209239006,
0.0006942949839867651,
-0.03307528421282768,
0.003065685508772731,
0.014861801639199257,
-0.06181545928120613,
0.01785222440958023,
0.02870003506541252,
0.022056879475712776,
-0.04616089537739754,
0.03189115971326828,
-0.010050029493868351,
-0.02735534869134426,
0.03209185600280762,
0.02548884227871895,
0.032412976026535034,
-0.004663755651563406,
0.002059679012745619,
-0.014269737526774406,
0.04764607176184654,
-0.01120906975120306,
-0.05218188092112541,
0.030666891485452652,
-0.004008973482996225,
0.011720853857696056,
0.008579906076192856,
-0.03608577698469162,
-0.01174092385917902,
0.026070870459079742,
0.049010828137397766,
-0.027094438672065735,
-0.052703700959682465,
-0.001818839693441987,
-0.015062500722706318,
-0.01247347705066204,
-0.0005450246972031891,
0.04146452620625496,
-0.02516772411763668,
0.010827740654349327,
0.018213484436273575,
-0.008088191971182823,
-0.011128789745271206,
0.08180513232946396,
-0.004844385199248791,
-0.03419920429587364,
-0.03076724149286747,
0.0021311782766133547,
0.002724496414884925,
-0.026753250509500504,
-0.03937724977731705,
0.006482595577836037,
-0.01266414113342762,
0.028178216889500618,
0.0009934627451002598,
0.048729851841926575,
0.046040475368499756,
-0.02823842689394951,
-0.016377083957195282,
-0.05515223741531372,
0.015714773908257484,
0.004982366226613522,
-0.007049571722745895,
-0.009949680417776108,
0.0031484742648899555,
-0.007134868763387203,
-0.051981184631586075,
0.01247347705066204,
-0.021595271304249763,
-0.0034620671067386866,
-0.07726932317018509,
0.0031585090328007936,
-0.022819537669420242,
-0.0010875406442210078,
-0.04925166815519333,
0.02370261587202549,
0.023401567712426186,
-0.01829376444220543,
0.00591060146689415,
0.05430929735302925,
0.013045470230281353,
-0.07987841963768005,
0.04905096814036369,
0.007757037412375212,
0.04579963535070419,
-0.025930382311344147,
0.00623673852533102,
-0.002227765042334795,
-0.02398359589278698,
0.07004414498806,
0.0468432754278183,
0.03343654423952103,
-0.022036809474229813,
-0.052021320909261703,
-0.0003396212705411017,
-0.029001085087656975,
0.015413724817335606,
-0.0054640453308820724,
0.022658979520201683,
0.0006331443437375128,
-0.022779399529099464,
0.02992430329322815,
-0.053988177329301834,
-0.024806464090943336,
-0.0008579905843362212,
-0.008625063113868237,
0.06687308847904205,
0.017109636217355728,
0.005900566931813955,
-0.012714316137135029,
-0.03624633699655533,
-0.01588536985218525,
0.015453864820301533,
-0.004819297697395086,
0.08228681236505508,
-0.022157229483127594,
-0.015032395720481873,
-0.04579963535070419,
0.000519310066010803,
0.013908478431403637,
-0.055674053728580475,
0.003730502910912037,
0.023742755874991417,
-0.003311542561277747,
-0.002955300733447075,
0.06667239218950272,
0.03542346879839897,
-0.026131080463528633,
0.018655022606253624,
0.06374217569828033,
-0.04375250265002251,
-0.0003954408166464418,
-0.025990592315793037,
0.030626751482486725,
-0.06193587929010391,
-0.008083174005150795,
0.021173803135752678,
0.03817305341362953,
0.010180484503507614,
-0.018474392592906952,
0.05234244093298912,
-0.0005180556909181178,
0.046040475368499756
]
|
30,108 | networkx.algorithms.tree.mst | EdgePartition |
An enum to store the state of an edge partition. The enum is written to the
edges of a graph before being pasted to `kruskal_mst_edges`. Options are:
- EdgePartition.OPEN
- EdgePartition.INCLUDED
- EdgePartition.EXCLUDED
| class EdgePartition(Enum):
"""
An enum to store the state of an edge partition. The enum is written to the
edges of a graph before being pasted to `kruskal_mst_edges`. Options are:
- EdgePartition.OPEN
- EdgePartition.INCLUDED
- EdgePartition.EXCLUDED
"""
OPEN = 0
INCLUDED = 1
EXCLUDED = 2
| (value, names=None, *, module=None, qualname=None, type=None, start=1) | [
0.02481725625693798,
-0.035246435552835464,
-0.08057324588298798,
0.011519183404743671,
0.002541894093155861,
-0.06951622664928436,
0.015094403177499771,
-0.03535107523202896,
-0.04708826169371605,
-0.047262661159038544,
0.009025249630212784,
0.02223612368106842,
-0.00942637212574482,
0.016943054273724556,
-0.03332802280783653,
0.015146723948419094,
-0.040112219750881195,
0.001236066804267466,
0.024468455463647842,
0.08336365967988968,
0.0011815665056928992,
-0.03857749328017235,
0.012094707228243351,
0.011440703645348549,
0.010594858787953854,
0.03791476786136627,
0.00896420981734991,
-0.0030236768070608377,
-0.02143387869000435,
-0.05629663169384003,
-0.0656794011592865,
-0.03348498418927193,
-0.04433272406458855,
0.0028841558378189802,
-0.021817561239004135,
0.008685167878866196,
-0.011641263961791992,
0.056401271373033524,
-0.07331816852092743,
0.015469365753233433,
-0.04534425213932991,
0.002655254676938057,
-0.00317845749668777,
-0.01655937172472477,
0.03965877741575241,
0.008279685862362385,
0.04080982506275177,
-0.04046102240681648,
0.028043674305081367,
-0.04304215684533119,
0.02455565519630909,
-0.032926902174949646,
-0.0014813181478530169,
-0.001006620586849749,
-0.05765695869922638,
0.016132088378071785,
0.009513572789728642,
-0.03767060860991478,
-0.05831968039274216,
0.07227175682783127,
-0.056122228503227234,
0.0007079588831402361,
0.054099179804325104,
0.03195025771856308,
0.00692807836458087,
-0.0059470729902386665,
-0.03575219586491585,
0.024084772914648056,
-0.05458750203251839,
0.07603882253170013,
0.038926295936107635,
-0.007102479226887226,
0.018102819100022316,
0.00471318606287241,
-0.031514253467321396,
-0.002609474351629615,
-0.0025636942591518164,
0.04604185372591019,
-0.010167576372623444,
-0.008240445517003536,
0.013219593092799187,
0.017910979688167572,
0.033223383128643036,
0.024695176631212234,
0.053192295134067535,
0.032926902174949646,
0.04830906540155411,
-0.03222929686307907,
-0.010202456265687943,
0.007303040474653244,
-0.00028394657419994473,
0.03111313097178936,
-0.05622687190771103,
-0.02370109036564827,
0.016672732308506966,
-0.00827096588909626,
-0.037531089037656784,
-0.010455337353050709,
-0.03749620541930199,
-0.08308462053537369,
-0.02143387869000435,
0.003267838153988123,
-0.030607368797063828,
0.002971356501802802,
-0.010594858787953854,
-0.08141037076711655,
0.009740293957293034,
-0.021189717575907707,
-0.024974217638373375,
-0.024363813921809196,
0.008532566949725151,
0.05831968039274216,
-0.010254777036607265,
0.03156657516956329,
0.00633947504684329,
0.05448286235332489,
0.00871132779866457,
-0.03289202228188515,
-0.004891946911811829,
-0.0036035599187016487,
-0.00839304644614458,
0.058040641248226166,
-0.034915074706077576,
0.040984224528074265,
0.002626914530992508,
0.015373445115983486,
0.054866544902324677,
0.034409310668706894,
-0.02882847934961319,
0.010952380485832691,
0.06491203606128693,
-0.004272823687642813,
-0.006609796546399593,
-0.042902637273073196,
-0.02881103940308094,
0.020213071256875992,
0.042902637273073196,
0.028933119028806686,
-0.0041529228910803795,
0.012059826403856277,
0.0157222468405962,
0.007372800726443529,
0.0028776158578693867,
0.014457839541137218,
0.015478085726499557,
0.026160145178437233,
-0.045274488627910614,
-0.023265087977051735,
0.025166058912873268,
0.074294812977314,
0.013934637419879436,
-0.013376553542912006,
-0.04673945903778076,
0.0018203100189566612,
0.02684030868113041,
-0.04346071928739548,
-0.0285145565867424,
-0.05301789194345474,
-0.02938656322658062,
0.0027250151615589857,
-0.03334546461701393,
-0.03515923395752907,
0.011519183404743671,
0.0017494596540927887,
-0.007773922756314278,
0.026718227192759514,
0.0023827531840652227,
-0.03672884404659271,
-0.014736881479620934,
-0.0285668782889843,
0.022079162299633026,
-0.02338716946542263,
-0.03404306620359421,
-0.024869577959179878,
-0.03172353655099869,
0.06009857356548309,
0.026090383529663086,
0.04687897861003876,
0.016637852415442467,
-0.04827418550848961,
-0.0012992871925234795,
0.016201850026845932,
-0.03177585452795029,
-0.01240862812846899,
0.03512435406446457,
-0.037775248289108276,
0.01794585958123207,
0.0048221866600215435,
0.03257809951901436,
-0.02167803980410099,
-0.03794965147972107,
-0.03343266621232033,
0.020962996408343315,
0.048378828912973404,
-0.03512435406446457,
-0.028095996007323265,
-0.011196541599929333,
0.008763648569583893,
-0.02764255180954933,
0.06473764032125473,
-0.017300575971603394,
0.04028662294149399,
0.02366621047258377,
0.026979828253388405,
0.0011052661575376987,
0.0456581711769104,
0.014353198930621147,
-0.043216560035943985,
0.050611160695552826,
-0.015425764955580235,
-0.0768759474158287,
-0.034356988966464996,
0.015879208222031593,
0.05308765172958374,
0.04984379559755325,
-0.041263267397880554,
-0.03568243607878685,
0.07757354527711868,
-0.012321428395807743,
0.027904154732823372,
-0.007281240075826645,
0.014100317843258381,
0.07666666060686111,
-0.04443736374378204,
0.05797088146209717,
-0.07575977593660355,
0.013577114790678024,
-0.08036396652460098,
-0.05221564695239067,
0.02371853031218052,
-0.02854943834245205,
-0.06686533242464066,
-0.020771155133843422,
-0.038647253066301346,
0.007930884137749672,
0.1341492235660553,
-0.03289202228188515,
-0.03456627205014229,
-0.022358203306794167,
0.0343046709895134,
-0.0059470729902386665,
-0.025863662362098694,
-0.013210873119533062,
0.00857616774737835,
0.01100470032542944,
0.016620412468910217,
0.07478313148021698,
0.030049286782741547,
-0.005511070601642132,
-0.006090953480452299,
-0.04053078219294548,
-0.09550196677446365,
-0.006670836824923754,
0.0030236768070608377,
0.07924779504537582,
-0.0072638001292943954,
-0.05765695869922638,
-0.010202456265687943,
0.018887624144554138,
0.01880042441189289,
-0.036380041390657425,
-0.003847721265628934,
-0.008497687056660652,
0.06826053559780121,
0.03746132552623749,
-0.010682059451937675,
0.02507885918021202,
0.014161358587443829,
-0.023858051747083664,
-0.03843797370791435,
0.06714437156915665,
0.037810128182172775,
-0.04604185372591019,
0.03756596893072128,
0.0099931750446558,
-0.01569608598947525,
-0.013969517312943935,
0.018678342923521996,
-0.02481725625693798,
-0.02164315991103649,
-0.02541022002696991,
-0.007394600659608841,
-0.05563390627503395,
0.07848042994737625,
-0.04157719016075134,
0.02199196070432663,
-0.011580224148929119,
-0.09919926524162292,
-0.004595465492457151,
-0.02877615951001644,
0.003876061411574483,
0.035787079483270645,
0.04087958484888077,
-0.010891339741647243,
0.10659386962652206,
0.010054215788841248,
0.06410979479551315,
-0.022201241925358772,
0.05095996335148811,
0.06888838112354279,
0.07562025636434555,
-0.013603274710476398,
0.0571337565779686,
0.006662116851657629,
-0.043251439929008484,
0.012059826403856277,
0.05451774224638939,
0.00190533057320863,
0.04482104629278183,
-0.002125511644408107,
-0.0684698149561882,
0.027485592290759087,
-0.0314096137881279,
0.022462844848632812,
-0.017806338146328926,
-0.03686836361885071,
0.0014104677829891443,
-0.03395586833357811,
-0.004486464895308018,
0.050332117825746536,
-0.052948132157325745,
0.06212162226438522,
-0.03172353655099869,
0.018033059313893318,
-0.04471640661358833,
-0.025793902575969696,
0.028322717174887657,
0.03055504895746708,
0.029473762959241867,
-0.04593721404671669,
-0.051518045365810394,
-0.06690020859241486,
0.0075472015887498856,
0.03540339693427086,
-0.10331512987613678,
0.01513800397515297,
0.06131937727332115,
0.045483771711587906,
-0.023230208083987236,
0.01972474902868271,
0.0626099482178688,
-0.006108393892645836,
-0.04046102240681648,
0.040391262620687485,
0.05019259825348854,
0.03937973827123642,
0.0023936531506478786,
0.003692940343171358,
0.024416135624051094,
0.0800849199295044,
-0.020404912531375885,
0.06616772711277008,
-0.0021364118438214064,
0.01497232262045145,
0.09103730320930481,
-0.03756596893072128,
0.00912117026746273,
-0.08517742902040482,
0.0075472015887498856,
0.010202456265687943,
0.08106156438589096,
-0.037252046167850494,
0.0033441383857280016,
0.020631633698940277,
-0.04028662294149399,
-0.03390354663133621,
-0.02682286873459816,
-0.007154799532145262,
0.06372611224651337,
-0.016925614327192307,
-0.008781088516116142,
-0.06913254410028458,
-0.0006038633291609585,
0.008458446711301804,
0.06491203606128693,
0.03456627205014229,
-0.043181680142879486,
0.023526689037680626,
0.068365179002285,
0.07778283208608627,
0.00585115235298872,
0.01170230470597744,
0.03287458047270775,
0.07234151661396027,
0.005711631383746862,
0.017204655334353447,
0.04994843527674675,
-0.0060560735873878,
0.053192295134067535,
0.009400212205946445,
-0.053227175027132034,
0.07680618762969971,
0.028723837807774544,
-0.02680542878806591,
-0.00741640105843544,
0.0048221866600215435,
-0.036345161497592926,
-0.06222626194357872,
0.0029124959837645292,
-0.04108886793255806,
0.023631330579519272,
0.01269639004021883,
-0.02654382586479187,
0.026875188574194908,
0.01709129475057125,
-0.006574916187673807,
0.00956589262932539,
0.049215950071811676,
-0.0026617946568876505,
-0.047506824135780334,
0.007682362571358681,
-0.012626629322767258,
-0.03385122865438461,
0.018451621755957603,
-0.03308386355638504,
-0.0484485886991024,
0.0543084591627121,
0.0013265373418107629,
0.03944949805736542,
-0.011187821626663208,
0.013420154340565205,
-0.023788291960954666,
0.06219138205051422,
0.05518046393990517,
0.018748102709650993,
-0.05361085757613182,
0.0006289334851317108,
0.026596147567033768,
0.006439755670726299,
0.009609493426978588,
0.02169547975063324,
-0.0228290855884552,
-0.00014851332525722682,
-0.06899302452802658,
0.030450407415628433,
-0.025741582736372948,
-0.005166628398001194,
-0.017195934429764748,
-0.010716939345002174,
-0.010054215788841248,
0.013646875508129597,
-0.005031467881053686,
0.009278131648898125,
-0.017501136288046837,
0.06655140966176987,
-0.05654079094529152,
-0.05476190149784088,
-0.0033681185450404882,
0.028305277228355408,
-0.03372914716601372,
-0.027241431176662445,
-0.0010540358489379287,
0.0005000402452424169,
-0.013542234897613525,
-0.02223612368106842,
0.00014306328375823796,
-0.04192599281668663,
-0.009095010347664356,
-0.03283970057964325,
0.011022141203284264,
0.06341218948364258,
0.01595768891274929,
-0.07813163101673126,
0.035787079483270645,
0.055738549679517746,
0.020492112264037132,
0.039798300713300705,
-0.006984758656471968,
0.03787988796830177,
-0.014361918903887272,
0.014327039010822773,
-0.0046652257442474365,
0.006413595285266638,
-0.007303040474653244,
0.014248558320105076,
0.016925614327192307,
-0.002069921465590596,
-0.017536016181111336,
-0.06989990919828415,
-0.028758719563484192,
0.012940551154315472,
-0.022393083199858665,
-0.00762132229283452,
0.006526955869048834,
0.009949575178325176,
-0.021032756194472313,
-0.06501667946577072,
0.059749770909547806,
-0.021189717575907707,
-0.023579010739922523,
-0.02309068664908409,
-0.035787079483270645,
-0.0042750034481287,
-0.0018889803905040026,
0.05675007402896881,
0.04415832459926605,
-0.0003384468727745116,
0.033275704830884933,
0.011318622156977654,
-0.0456930510699749,
0.018137700855731964,
0.004224863369017839,
-0.019620107486844063,
-0.021625719964504242,
0.010525098070502281,
-0.009469971992075443,
0.014187518507242203,
-0.006413595285266638,
0.027607671916484833,
0.016315210610628128,
0.03444419056177139,
-0.002951736329123378,
0.0943160429596901,
0.014920002780854702,
0.0009128800593316555,
0.02396269328892231,
0.01100470032542944,
0.022724445909261703,
0.05005307495594025,
0.0227942056953907,
-0.0028841558378189802,
-0.043251439929008484,
0.0654701218008995,
0.009365331381559372,
-0.03878677263855934,
0.023788291960954666,
-0.040077339857816696,
-0.053192295134067535,
0.018939943984150887,
0.04077494516968727,
0.0007657292298972607,
0.006871398072689772,
0.01413519773632288,
0.07241127640008926,
-0.015216483734548092,
-0.012521988712251186,
-0.03843797370791435,
0.0457279309630394,
-0.006391795352101326,
0.021311797201633453,
0.013673035427927971,
-0.00981877464801073,
-0.007429481018334627,
0.01630648970603943,
0.013446314260363579,
0.03686836361885071,
0.05824992060661316,
-0.042344555258750916,
0.06355170905590057,
-0.03599635884165764,
0.06735365092754364,
0.03317106142640114,
-0.014231118373572826,
-0.09473460167646408,
0.024730056524276733,
0.019062025472521782,
0.008571807295084,
-0.03222929686307907,
0.05877312645316124,
-0.03767060860991478,
-0.08071276545524597,
-0.0034574992023408413,
-0.014457839541137218,
-0.028706397861242294,
0.0715043917298317,
-0.023317409679293633,
-0.037007883191108704,
-0.037217166274785995,
0.02827039547264576,
0.019341066479682922,
0.04314679652452469,
-0.01799817942082882,
0.05563390627503395,
-0.008066044189035892,
0.010185016319155693,
0.009478691965341568,
0.020736275240778923,
0.007381520699709654,
-0.005393349565565586,
-0.01342887431383133,
-0.05005307495594025,
-0.006295874714851379,
-0.053750377148389816,
-0.02314300835132599,
-0.02340460941195488,
0.03906581550836563,
0.015757126733660698,
-0.023334849625825882,
-0.023823171854019165,
0.013952077366411686,
-0.006566196214407682,
-0.03756596893072128,
0.029229601845145226,
0.02799135446548462,
-0.028148315846920013,
-0.0427282378077507,
0.04346071928739548,
-0.032979223877191544,
-0.01796329952776432,
-0.0185213815420866,
-0.03826357051730156,
0.045483771711587906,
0.01255686953663826,
0.011745904572308064,
0.06930693984031677,
0.002637814497575164,
0.008602327667176723,
-0.012609189376235008,
-0.006226114463061094,
-0.0012829371262341738,
-0.001336347428150475,
0.021503638476133347,
-0.04754170402884483,
-0.024311494082212448,
0.047227781265974045,
-0.013908476568758488,
0.007294320501387119,
-0.017065133899450302,
-0.042100392282009125,
-0.00224541244097054,
-0.04401880130171776,
0.021451318636536598,
-0.036659084260463715,
0.004242303315550089,
-0.06512132287025452,
-0.009574612602591515,
-0.004909387324005365,
-0.014379359781742096,
-0.0010736559052020311,
-0.07834091037511826,
0.001717849518172443,
0.02284652553498745,
-0.029473762959241867,
-0.06111009791493416,
0.02056187391281128,
-0.068574458360672,
0.017597056925296783,
-0.04157719016075134,
0.021259477362036705,
0.017248256132006645,
-0.07624810189008713,
0.10108280181884766,
0.002644354710355401,
-0.012260387651622295,
-0.022689566016197205,
0.04311191663146019,
-0.0314444936811924,
-0.0157222468405962,
-0.024102212861180305,
-0.004992227535694838,
-0.00755592156201601,
0.0626099482178688,
0.016341369599103928,
-0.006199954077601433,
-0.03378146514296532,
0.09096754342317581,
0.03542083501815796,
0.0029735364951193333,
0.060656655579805374,
-0.04363512247800827,
-0.04482104629278183,
0.006718797143548727,
-0.009731573984026909,
-0.003520719474181533,
-0.006744957063347101,
0.06735365092754364,
-0.0066795567981898785,
-0.0039000415708869696,
0.045483771711587906,
-0.04248407483100891,
0.0007444741204380989,
0.01799817942082882,
0.04984379559755325,
-0.03658932074904442,
-0.06627236306667328,
-0.008589247241616249,
0.012783590704202652,
0.0006845237803645432,
0.030398087576031685,
-0.027485592290759087,
-0.03920533508062363,
0.06362146884202957,
-0.023177888244390488,
-0.0007711792713962495,
0.06201698258519173,
0.036100998520851135,
-0.0599939301609993,
-0.042902637273073196,
-0.0019794509280472994,
-0.037810128182172775,
-0.029892325401306152,
-0.018713222816586494,
-0.03899605572223663,
0.02078859508037567,
-0.022183801978826523,
-0.002657434670254588,
-0.026683347299695015,
-0.029177282005548477,
-0.0299795251339674,
-0.019288746640086174,
0.03481043130159378,
0.009766453877091408,
-0.02371853031218052,
0.008484606631100178,
-0.0009052500245161355,
0.015329844318330288,
-0.053506214171648026,
-0.018434181809425354,
0.041786469519138336,
-0.015120563097298145,
-0.023299967870116234,
0.02453821524977684,
-0.04621625691652298,
-0.03085152991116047,
0.01339399442076683,
0.006260994356125593,
0.0025179139338433743,
0.01014141645282507,
-0.04904155060648918,
0.019184105098247528,
-0.021451318636536598,
-0.028095996007323265,
0.0029757164884358644,
0.047855623066425323,
-0.06686533242464066,
-0.0007815342978574336,
-0.0018399301916360855,
0.021032756194472313,
-0.03161889314651489,
-0.019236426800489426,
-0.013298073783516884,
-0.01654193177819252,
-0.02343948930501938,
0.049739155918359756,
0.021329237148165703,
0.00939149223268032,
0.044053684920072556,
0.034130267798900604,
0.014248558320105076,
0.053506214171648026,
0.03756596893072128,
-0.0034138988703489304,
-0.03175841644406319,
-0.040356382727622986,
-0.027311190962791443,
0.012443508952856064,
-0.006117113865911961,
0.022637244313955307,
0.004336043726652861,
0.01911434531211853,
-0.00047551511670462787,
-0.044088564813137054,
0.027904154732823372,
0.005545950494706631,
-0.03364194557070732,
-0.020910674706101418,
-0.013420154340565205,
-0.021852441132068634,
-0.04789050295948982,
-0.03644980117678642,
-0.04680921882390976,
-0.032403700053691864,
0.014231118373572826,
-0.01650705188512802,
-0.00857616774737835,
0.006117113865911961,
0.03301410377025604,
-0.039554137736558914
]
|
30,109 | networkx.exception | ExceededMaxIterations | Raised if a loop iterates too many times without breaking.
This may occur, for example, in an algorithm that computes
progressively better approximations to a value but exceeds an
iteration bound specified by the user.
| class ExceededMaxIterations(NetworkXException):
"""Raised if a loop iterates too many times without breaking.
This may occur, for example, in an algorithm that computes
progressively better approximations to a value but exceeds an
iteration bound specified by the user.
"""
| null | [
0.013484356924891472,
0.008691019378602505,
-0.0001213102659676224,
0.0739569291472435,
-0.03013726882636547,
-0.016949962824583054,
-0.07222862541675568,
-0.02839096263051033,
0.0595904178917408,
-0.07431699335575104,
0.04356761649250984,
0.032153621315956116,
-0.0050678858533501625,
0.0032630704808980227,
-0.011486007831990719,
0.03393593057990074,
-0.010774883441627026,
0.03867075964808464,
-0.014384514652192593,
0.05807815119624138,
-0.025204405188560486,
0.038814786821603775,
-0.010936912149190903,
0.0069987233728170395,
0.032099612057209015,
0.06999623775482178,
0.009883727878332138,
0.021369734779000282,
0.016841944307088852,
-0.010171778500080109,
-0.12198932468891144,
-0.024106213822960854,
-0.04655613750219345,
-0.0021626281086355448,
0.037590570747852325,
0.00802940409630537,
-0.009820716455578804,
0.0403270497918129,
-0.12191731482744217,
-0.027832865715026855,
-0.03173954784870148,
-0.04835645481944084,
-0.03224363550543785,
-0.0066476622596383095,
0.03236965835094452,
-0.05894230306148529,
0.026428619399666786,
0.03512414172291756,
-0.061714787036180496,
-0.06866400688886642,
-0.028498981148004532,
-0.03579025715589523,
0.06045456975698471,
0.03359387442469597,
-0.023728147149086,
0.09498460590839386,
-0.028372960165143013,
0.06844796240329742,
0.02003750205039978,
-0.05602579563856125,
-0.054297491908073425,
-0.01946140266954899,
0.03377390280365944,
-0.008218436501920223,
-0.01852523908019066,
0.003620882984250784,
-0.07132846862077713,
-0.004014702048152685,
-0.0384187176823616,
0.012314152903854847,
0.053829409182071686,
0.040399063378572464,
-0.04317154735326767,
0.018489232286810875,
0.014699569903314114,
0.014114467427134514,
-0.04183931276202202,
0.018408218398690224,
-0.013268319889903069,
-0.010594852268695831,
0.019317377358675003,
0.0028489979449659586,
0.004518790170550346,
-0.0177961103618145,
0.05379340425133705,
-0.07712548226118088,
-0.008506487123668194,
-0.01678793504834175,
-0.01151301246136427,
-0.012845245189964771,
-0.031451497226953506,
0.02576250396668911,
0.002356161829084158,
-0.006562147289514542,
-0.018849294632673264,
0.03494410961866379,
0.02027154341340065,
-0.06445126980543137,
0.014564545825123787,
-0.08713523298501968,
0.04126321151852608,
0.005612480919808149,
0.00888905394822359,
0.010720874182879925,
-0.004354511387646198,
-0.055125635117292404,
-0.0034993616864085197,
-0.04958066716790199,
-0.003456604201346636,
-0.03733852878212929,
-0.053361326456069946,
0.04137123376131058,
0.0005620357696898282,
0.007124745287001133,
-0.006022052839398384,
0.06149875000119209,
-0.00016287222388200462,
0.00029283243929967284,
0.042379409074783325,
0.01641887053847313,
0.04608805850148201,
0.030875397846102715,
-0.06794387847185135,
0.028841041028499603,
0.012422171421349049,
0.01892130821943283,
0.022269893437623978,
0.01732802949845791,
0.02675267681479454,
-0.03530417010188103,
-0.00048495977534912527,
-0.02248593047261238,
-0.03060534968972206,
0.014816590584814548,
0.0007701971335336566,
0.022593948990106583,
-0.020127518102526665,
0.020073508843779564,
-0.004743829369544983,
-0.057105984538793564,
-0.003573624650016427,
0.042919501662254333,
0.004453528672456741,
0.04976069927215576,
0.017084985971450806,
0.01215212419629097,
-0.01060385350137949,
0.004449027590453625,
0.008740527555346489,
-0.03985896706581116,
-0.005954540800303221,
-0.018849294632673264,
-0.007228263653814793,
-0.02453828975558281,
-0.0008877802174538374,
0.059446390718221664,
-0.010990921407938004,
-0.023278068751096725,
-0.025618478655815125,
-0.04464780539274216,
-0.07035630196332932,
-0.013043279759585857,
0.000573006400372833,
-0.01827319525182247,
-0.0025271917693316936,
-0.026914704591035843,
-0.0030897902324795723,
-0.010612855665385723,
-0.042271390557289124,
0.04878852888941765,
0.009766707196831703,
-0.02014552243053913,
-0.03240566328167915,
-0.049040574580430984,
-0.024862347170710564,
0.020937660709023476,
0.02570849470794201,
0.02407020702958107,
0.011170952580869198,
0.03359387442469597,
0.010504836216568947,
-0.041443243622779846,
0.002497936598956585,
-0.04702422022819519,
0.022972015663981438,
0.0018048154888674617,
0.03867075964808464,
0.016175827011466026,
0.012332155369222164,
-0.03220763057470322,
0.022737974300980568,
-0.04403569921851158,
0.00280399015173316,
0.036132317036390305,
-0.008695520460605621,
-0.07046432048082352,
0.03154151514172554,
0.036834437400102615,
0.07554120570421219,
0.06211085617542267,
-0.045836012810468674,
0.10672265291213989,
0.03404395282268524,
-0.05602579563856125,
-0.005229914095252752,
-0.016976967453956604,
-0.03240566328167915,
-0.05577374994754791,
-0.022575946524739265,
0.016868948936462402,
-0.04353161156177521,
0.0024506784975528717,
0.07554120570421219,
0.07626133412122726,
0.026428619399666786,
0.003931437153369188,
0.026302598416805267,
0.0020917407236993313,
0.0089655676856637,
0.0027634832076728344,
-0.001496511627919972,
-0.02435825765132904,
0.008848547004163265,
-0.07003223896026611,
0.04637610539793968,
-0.03182956576347351,
0.007120244670659304,
0.019947487860918045,
0.03411596268415451,
-0.046124063432216644,
0.04158727079629898,
0.014780583791434765,
-0.009721699170768261,
0.0012928510550409555,
0.02086564712226391,
0.010522839613258839,
-0.0042937505058944225,
-0.026716670021414757,
-0.001565148588269949,
-0.015059632249176502,
-0.05375739932060242,
-0.0336298793554306,
-0.06304702162742615,
-0.019965490326285362,
0.027598824352025986,
0.010441825725138187,
0.01951541192829609,
0.05901431664824486,
-0.014753579162061214,
0.051020920276641846,
0.003168553812429309,
-0.0672597587108612,
-0.07294875383377075,
-0.037878621369600296,
0.026428619399666786,
-0.02290000393986702,
-0.08756730705499649,
-0.04713223874568939,
0.04598003625869751,
0.04324356094002724,
0.019965490326285362,
0.036240335553884506,
-0.07899781316518784,
0.05004874989390373,
0.020577596500515938,
0.005652988329529762,
-0.051200952380895615,
0.029831215739250183,
0.013655386865139008,
0.03985896706581116,
0.11255567520856857,
0.034566041082143784,
-0.012458178214728832,
-0.007246266584843397,
-0.04558396711945534,
0.027472803369164467,
0.000679618795402348,
0.04720425233244896,
-0.044899847358465195,
0.01610381528735161,
0.013133295811712742,
-0.02698671817779541,
-0.06135472655296326,
-0.010171778500080109,
-0.05433349683880806,
0.019839467480778694,
0.0089655676856637,
-0.006026553455740213,
-0.029687190428376198,
0.01557272206991911,
0.061534758657217026,
-0.002331407507881522,
0.030569344758987427,
0.00802940409630537,
0.011963090859353542,
-0.035952284932136536,
0.014879601076245308,
-0.04036305472254753,
0.027436796575784683,
0.045944031327962875,
0.06664764881134033,
-0.02027154341340065,
-0.04770833998918533,
-0.030713368207216263,
-0.0006261719390749931,
-0.0040529584512114525,
0.05404544621706009,
0.016301849856972694,
0.016373861581087112,
0.02716674841940403,
-0.013367337174713612,
0.005198408849537373,
-0.007021227385848761,
-0.018903303891420364,
0.05066085606813431,
0.02068561688065529,
0.05649387463927269,
-0.053181298077106476,
-0.028552992269396782,
0.05264120176434517,
-0.02396218851208687,
0.046700164675712585,
-0.019659437239170074,
-0.051561012864112854,
-0.06232689693570137,
-0.0026464625261723995,
0.06023852899670601,
0.044071704149246216,
-0.03008325956761837,
-0.04007500410079956,
0.01608581282198429,
-0.06175079569220543,
-0.00969469454139471,
-0.008790036663413048,
-0.0764053538441658,
0.050264786928892136,
0.07546919584274292,
0.030857393518090248,
0.051561012864112854,
-0.016931960359215736,
0.029021073132753372,
0.038634754717350006,
-0.020109515637159348,
0.020883651450276375,
0.05696195736527443,
-0.02815692126750946,
0.02027154341340065,
-0.02471832185983658,
0.018849294632673264,
0.007718849461525679,
-0.03136148303747177,
0.09397643059492111,
-0.009946738369762897,
0.027886874973773956,
0.012062108144164085,
0.011386990547180176,
-0.008191431872546673,
-0.03143349662423134,
0.011621031910181046,
0.017652085050940514,
-0.0594823993742466,
-0.0032923256512731314,
0.022359909489750862,
0.029705192893743515,
-0.0167609304189682,
0.0002903007552959025,
-0.007372288964688778,
0.010828892700374126,
0.04345959797501564,
-0.0032405664678663015,
-0.049148593097925186,
-0.059086330235004425,
-0.04479182884097099,
0.0014695068821310997,
-0.012341157533228397,
0.045367930084466934,
-0.09361636638641357,
0.023170050233602524,
-0.005535967648029327,
0.04399969056248665,
0.03528616949915886,
-0.047528307884931564,
-0.0007685093441978097,
-0.035718243569135666,
0.0299032274633646,
-0.017265018075704575,
0.028480978682637215,
-0.02120770700275898,
0.08216636627912521,
0.014672565273940563,
-0.018408218398690224,
-0.03471006825566292,
0.016490882262587547,
0.010729875415563583,
-0.040507081896066666,
-0.007142748683691025,
0.0572500079870224,
0.005094890482723713,
-0.013808414340019226,
-0.037122488021850586,
-0.047528307884931564,
0.09476856887340546,
0.005265920422971249,
0.06765582412481308,
0.021711794659495354,
-0.022161874920129776,
0.062074851244688034,
-0.007592827547341585,
-0.000731377862393856,
0.03697846457362175,
-0.03715849667787552,
0.01892130821943283,
-0.037410538643598557,
-0.010702870786190033,
-0.008830543607473373,
-0.008682018145918846,
-0.02154976688325405,
-0.01756207086145878,
0.032099612057209015,
-0.028643006458878517,
0.05051683261990547,
-0.024268241599202156,
0.08663114160299301,
0.01991148106753826,
-0.03690645098686218,
-0.04525991156697273,
-0.015230662189424038,
-0.0761893168091774,
-0.01951541192829609,
0.0008979069534689188,
-0.07467705756425858,
-0.001229839981533587,
0.021585773676633835,
-0.029579170048236847,
0.0299032274633646,
-0.06531541794538498,
-0.08036605268716812,
-0.042559441179037094,
-0.0033350829035043716,
-0.003101042006164789,
0.027850868180394173,
-0.00558097567409277,
0.05192107707262039,
0.004464780446141958,
0.04605204984545708,
-0.04918459802865982,
0.026392614468932152,
-0.023530112579464912,
-0.01667991653084755,
0.008799037896096706,
-0.0010048006661236286,
-0.0694921463727951,
0.059734441339969635,
0.013826416805386543,
-0.026590649038553238,
-0.029057079926133156,
-0.067151740193367,
0.018435223028063774,
-0.008159926161170006,
-0.011404993943870068,
-0.0131422970443964,
0.04007500410079956,
-0.024844342842698097,
0.005054383538663387,
-0.044827837496995926,
-0.006292100064456463,
0.020901653915643692,
0.03199159353971481,
0.034782081842422485,
-0.002828744472935796,
-0.005891529843211174,
-0.004023703280836344,
-0.011909081600606441,
-0.05112893879413605,
0.048104409128427505,
-0.004761832300573587,
-0.019551418721675873,
0.028787031769752502,
0.048104409128427505,
-0.05562972649931908,
0.05454953759908676,
-0.027526812627911568,
0.05264120176434517,
-0.019965490326285362,
-0.017454050481319427,
-0.02471832185983658,
-0.04353161156177521,
-0.01150401122868061,
-0.011098939925432205,
-0.0006514888955280185,
-0.028246937319636345,
-0.004223988391458988,
-0.009568672627210617,
0.0668276846408844,
0.05606180056929588,
-0.019425395876169205,
-0.033791907131671906,
0.004041706677526236,
0.018282195553183556,
-0.03685244172811508,
0.0006604904774576426,
-0.002159252529963851,
-0.004075462464243174,
-0.07273271679878235,
0.04986871778964996,
0.04720425233244896,
-0.015554719604551792,
0.025078384205698967,
0.07269670814275742,
-0.020019499585032463,
0.02248593047261238,
-0.01177405845373869,
0.0406511053442955,
0.05274922028183937,
0.04155126214027405,
-0.029075082391500473,
0.029777204617857933,
0.010198783129453659,
0.06596352905035019,
0.012989270500838757,
0.03762657940387726,
0.02167578972876072,
-0.01121596060693264,
0.022539939731359482,
0.0000241741472564172,
-0.013331330381333828,
0.021711794659495354,
-0.05451352894306183,
0.018741276115179062,
0.08483082801103592,
0.03148750588297844,
0.027850868180394173,
0.054837584495544434,
0.0310734324157238,
-0.026896702125668526,
-0.01706698350608349,
0.003310328582301736,
0.012458178214728832,
-0.020721621811389923,
0.01001875102519989,
-0.030119264498353004,
0.004507537931203842,
0.016976967453956604,
-0.02605055458843708,
-0.026320600882172585,
0.01863325759768486,
-0.0028377461712807417,
0.05328931659460068,
-0.0015167650999501348,
-0.02342209406197071,
0.00270947371609509,
0.049148593097925186,
-0.034908100962638855,
-0.027148745954036713,
0.04129922017455101,
-0.007102241739630699,
-0.0027297271881252527,
0.033161796629428864,
0.03073137253522873,
0.04036305472254753,
-0.033089783042669296,
-0.0336298793554306,
0.037590570747852325,
-0.05670991539955139,
0.012035103514790535,
0.019443398341536522,
-0.023260066285729408,
-0.0641632154583931,
-0.017679089680314064,
0.05609780550003052,
0.006737677846103907,
0.023764153942465782,
0.0037784106098115444,
-0.009829718619585037,
-0.02243192121386528,
-0.0002572480880189687,
-0.039642930030822754,
0.009550669230520725,
-0.005846521817147732,
-0.06232689693570137,
-0.005504462402313948,
-0.016067808493971825,
0.026302598416805267,
-0.03236965835094452,
0.030011245980858803,
0.06286699324846268,
-0.07104042172431946,
-0.04461180046200752,
-0.02248593047261238,
0.06315504014492035,
-0.018435223028063774,
-0.0003414971870370209,
-0.021351732313632965,
-0.044251736253499985,
0.0035421191714704037,
0.08144623786211014,
-0.009325630031526089,
0.00427349703386426,
0.03083939105272293,
0.012224136851727962,
-0.05508963018655777,
0.05876227095723152,
0.012701219879090786,
0.0550176165997982,
0.027202755212783813,
-0.014735575765371323,
-0.008767533116042614,
-0.006859199143946171,
0.0023201555013656616,
-0.002596953883767128,
0.014582549221813679,
0.014942612498998642,
-0.01522166095674038,
-0.031037425622344017,
-0.0926802009344101,
-0.016346856951713562,
0.01915534771978855,
0.04137123376131058,
0.007070736028254032,
-0.021531764417886734,
0.0002592171949800104,
0.02810291200876236,
-0.04770833998918533,
-0.023584123700857162,
-0.009406644850969315,
0.04468381032347679,
0.012692218646407127,
0.011873075738549232,
-0.041911326348781586,
-0.0009699195506982505,
-0.021567771211266518,
0.02279198355972767,
-0.017310025170445442,
-0.06880802661180496,
-0.03719450160861015,
-0.01910133846104145,
0.059086330235004425,
0.03849072754383087,
-0.021711794659495354,
-0.013007273897528648,
-0.018129169940948486,
0.04281148314476013,
-0.05901431664824486,
-0.009415646083652973,
-0.0454399436712265,
0.0003817229880951345,
0.012881251983344555,
-0.019893476739525795,
0.02646462619304657,
-0.0028534987941384315,
0.03008325956761837,
0.018102165311574936,
-0.01738203875720501,
-0.04428774118423462,
-0.002515939762815833,
-0.030533337965607643,
-0.0310194231569767,
0.03985896706581116,
0.02651863545179367,
-0.06974419206380844,
-0.013466354459524155,
-0.011900080367922783,
0.025798510760068893,
-0.01220613345503807,
0.016283847391605377,
0.019713446497917175,
0.014150473289191723,
-0.06326305866241455,
-0.004649312701076269,
-0.01311529241502285,
-0.000350498768966645,
-0.021243713796138763,
0.016715921461582184,
-0.0004284186288714409,
-0.01247618068009615,
-0.005346934776753187,
-0.049220602959394455,
-0.012341157533228397,
-0.0335758700966835,
0.016877951100468636,
0.03606030344963074,
0.012773232534527779,
-0.08029403537511826,
-0.03220763057470322,
0.010216785594820976,
0.009856723248958588,
-0.03802264854311943,
0.049508653581142426,
0.015833767130970955,
0.005369438789784908,
-0.056349851191043854,
0.018669264391064644,
0.005072386935353279,
0.05084088817238808,
-0.06041856110095978,
-0.03528616949915886,
-0.02518640272319317,
0.004739328287541866,
0.04943664371967316,
-0.05181305855512619,
0.03299976885318756,
0.03173954784870148,
-0.02477233111858368,
0.015842769294977188,
0.013160300441086292,
0.0065396432764828205,
-0.054009441286325455,
-0.01644587516784668,
0.020109515637159348,
0.011558020487427711,
0.024574296548962593,
0.033089783042669296,
-0.010873900726437569,
-0.0249523613601923,
-0.03440401330590248,
0.044431768357753754,
0.04223538190126419,
0.03669041395187378,
-0.07633334398269653,
0.028552992269396782,
-0.01302527729421854,
0.03220763057470322,
0.0030807885341346264,
0.015455701388418674,
-0.09692894667387009,
-0.005661989562213421,
0.0042262389324605465,
-0.053433340042829514,
0.035664234310388565,
0.06146274507045746,
0.04864450544118881,
0.030281294137239456,
-0.014681566506624222,
0.03773459792137146,
-0.008691019378602505,
0.01758907549083233,
-0.008587501011788845,
0.026068557053804398,
0.03389992564916611,
0.04007500410079956,
0.025744499638676643,
-0.020703619346022606,
-0.01273722667247057,
-0.03766258433461189,
0.00857399869710207,
-0.008587501011788845,
-0.015176652930676937,
0.10477831959724426,
-0.009024077095091343,
-0.007295775227248669,
0.013979443348944187,
-0.018723273649811745,
0.034259989857673645,
0.01790413074195385,
0.03674442321062088,
-0.012080111540853977,
0.02687869966030121,
-0.05858224257826805,
-0.020811637863516808,
-0.042667459696531296,
0.008673015981912613,
-0.03389992564916611,
0.02342209406197071,
-0.009118594229221344,
-0.034440021961927414,
-0.008497485890984535,
0.038634754717350006,
0.03137948736548424
]
|
30,110 | networkx.classes.graph | Graph |
Base class for undirected graphs.
A Graph stores nodes and edges with optional data, or attributes.
Graphs hold undirected edges. Self loops are allowed but multiple
(parallel) edges are not.
Nodes can be arbitrary (hashable) Python objects with optional
key/value attributes, except that `None` is not allowed as a node.
Edges are represented as links between nodes with optional
key/value attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be any format that is supported
by the to_networkx_graph() function, currently including edge list,
dict of dicts, dict of lists, NetworkX graph, 2D NumPy array, SciPy
sparse matrix, or PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
DiGraph
MultiGraph
MultiDiGraph
Examples
--------
Create an empty graph structure (a "null graph") with no nodes and
no edges.
>>> G = nx.Graph()
G can be grown in several ways.
**Nodes:**
Add one node at a time:
>>> G.add_node(1)
Add the nodes from any container (a list, dict, set or
even the lines from a file or the nodes from another graph).
>>> G.add_nodes_from([2, 3])
>>> G.add_nodes_from(range(100, 110))
>>> H = nx.path_graph(10)
>>> G.add_nodes_from(H)
In addition to strings and integers any hashable Python object
(except None) can represent a node, e.g. a customized node object,
or even another Graph.
>>> G.add_node(H)
**Edges:**
G can also be grown by adding edges.
Add one edge,
>>> G.add_edge(1, 2)
a list of edges,
>>> G.add_edges_from([(1, 2), (1, 3)])
or a collection of edges,
>>> G.add_edges_from(H.edges)
If some edges connect nodes not yet in the graph, the nodes
are added automatically. There are no errors when adding
nodes or edges that already exist.
**Attributes:**
Each graph, node, and edge can hold key/value attribute pairs
in an associated attribute dictionary (the keys must be hashable).
By default these are empty, but can be added or changed using
add_edge, add_node or direct manipulation of the attribute
dictionaries named graph, node and edge respectively.
>>> G = nx.Graph(day="Friday")
>>> G.graph
{'day': 'Friday'}
Add node attributes using add_node(), add_nodes_from() or G.nodes
>>> G.add_node(1, time="5pm")
>>> G.add_nodes_from([3], time="2pm")
>>> G.nodes[1]
{'time': '5pm'}
>>> G.nodes[1]["room"] = 714 # node must exist already to use G.nodes
>>> del G.nodes[1]["room"] # remove attribute
>>> list(G.nodes(data=True))
[(1, {'time': '5pm'}), (3, {'time': '2pm'})]
Add edge attributes using add_edge(), add_edges_from(), subscript
notation, or G.edges.
>>> G.add_edge(1, 2, weight=4.7)
>>> G.add_edges_from([(3, 4), (4, 5)], color="red")
>>> G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})])
>>> G[1][2]["weight"] = 4.7
>>> G.edges[1, 2]["weight"] = 4
Warning: we protect the graph data structure by making `G.edges` a
read-only dict-like structure. However, you can assign to attributes
in e.g. `G.edges[1, 2]`. Thus, use 2 sets of brackets to add/change
data attributes: `G.edges[1, 2]['weight'] = 4`
(For multigraphs: `MG.edges[u, v, key][name] = value`).
**Shortcuts:**
Many common graph features allow python syntax to speed reporting.
>>> 1 in G # check if node in graph
True
>>> [n for n in G if n < 3] # iterate through nodes
[1, 2]
>>> len(G) # number of nodes in graph
5
Often the best way to traverse all edges of a graph is via the neighbors.
The neighbors are reported as an adjacency-dict `G.adj` or `G.adjacency()`
>>> for n, nbrsdict in G.adjacency():
... for nbr, eattr in nbrsdict.items():
... if "weight" in eattr:
... # Do something useful with the edges
... pass
But the edges() method is often more convenient:
>>> for u, v, weight in G.edges.data("weight"):
... if weight is not None:
... # Do something useful with the edges
... pass
**Reporting:**
Simple graph information is obtained using object-attributes and methods.
Reporting typically provides views instead of containers to reduce memory
usage. The views update as the graph is updated similarly to dict-views.
The objects `nodes`, `edges` and `adj` provide access to data attributes
via lookup (e.g. `nodes[n]`, `edges[u, v]`, `adj[u][v]`) and iteration
(e.g. `nodes.items()`, `nodes.data('color')`,
`nodes.data('color', default='blue')` and similarly for `edges`)
Views exist for `nodes`, `edges`, `neighbors()`/`adj` and `degree`.
For details on these and other miscellaneous methods, see below.
**Subclasses (Advanced):**
The Graph class uses a dict-of-dict-of-dict data structure.
The outer dict (node_dict) holds adjacency information keyed by node.
The next dict (adjlist_dict) represents the adjacency information and holds
edge data keyed by neighbor. The inner dict (edge_attr_dict) represents
the edge data and holds edge attribute values keyed by attribute names.
Each of these three dicts can be replaced in a subclass by a user defined
dict-like object. In general, the dict-like features should be
maintained but extra features can be added. To replace one of the
dicts create a new graph class by changing the class(!) variable
holding the factory for that dict-like structure.
node_dict_factory : function, (default: dict)
Factory function to be used to create the dict containing node
attributes, keyed by node id.
It should require no arguments and return a dict-like object
node_attr_dict_factory: function, (default: dict)
Factory function to be used to create the node attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object
adjlist_outer_dict_factory : function, (default: dict)
Factory function to be used to create the outer-most dict
in the data structure that holds adjacency info keyed by node.
It should require no arguments and return a dict-like object.
adjlist_inner_dict_factory : function, (default: dict)
Factory function to be used to create the adjacency list
dict which holds edge data keyed by neighbor.
It should require no arguments and return a dict-like object
edge_attr_dict_factory : function, (default: dict)
Factory function to be used to create the edge attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
graph_attr_dict_factory : function, (default: dict)
Factory function to be used to create the graph attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
Typically, if your extension doesn't impact the data structure all
methods will inherit without issue except: `to_directed/to_undirected`.
By default these methods create a DiGraph/Graph class and you probably
want them to create your extension of a DiGraph/Graph. To facilitate
this we define two class variables that you can set in your subclass.
to_directed_class : callable, (default: DiGraph or MultiDiGraph)
Class to create a new graph structure in the `to_directed` method.
If `None`, a NetworkX class (DiGraph or MultiDiGraph) is used.
to_undirected_class : callable, (default: Graph or MultiGraph)
Class to create a new graph structure in the `to_undirected` method.
If `None`, a NetworkX class (Graph or MultiGraph) is used.
**Subclassing Example**
Create a low memory graph class that effectively disallows edge
attributes by using a single attribute dict for all edges.
This reduces the memory used, but you lose edge attributes.
>>> class ThinGraph(nx.Graph):
... all_edge_dict = {"weight": 1}
...
... def single_edge_dict(self):
... return self.all_edge_dict
...
... edge_attr_dict_factory = single_edge_dict
>>> G = ThinGraph()
>>> G.add_edge(2, 1)
>>> G[2][1]
{'weight': 1}
>>> G.add_edge(2, 2)
>>> G[2][1] is G[2][2]
True
| class Graph:
"""
Base class for undirected graphs.
A Graph stores nodes and edges with optional data, or attributes.
Graphs hold undirected edges. Self loops are allowed but multiple
(parallel) edges are not.
Nodes can be arbitrary (hashable) Python objects with optional
key/value attributes, except that `None` is not allowed as a node.
Edges are represented as links between nodes with optional
key/value attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be any format that is supported
by the to_networkx_graph() function, currently including edge list,
dict of dicts, dict of lists, NetworkX graph, 2D NumPy array, SciPy
sparse matrix, or PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
DiGraph
MultiGraph
MultiDiGraph
Examples
--------
Create an empty graph structure (a "null graph") with no nodes and
no edges.
>>> G = nx.Graph()
G can be grown in several ways.
**Nodes:**
Add one node at a time:
>>> G.add_node(1)
Add the nodes from any container (a list, dict, set or
even the lines from a file or the nodes from another graph).
>>> G.add_nodes_from([2, 3])
>>> G.add_nodes_from(range(100, 110))
>>> H = nx.path_graph(10)
>>> G.add_nodes_from(H)
In addition to strings and integers any hashable Python object
(except None) can represent a node, e.g. a customized node object,
or even another Graph.
>>> G.add_node(H)
**Edges:**
G can also be grown by adding edges.
Add one edge,
>>> G.add_edge(1, 2)
a list of edges,
>>> G.add_edges_from([(1, 2), (1, 3)])
or a collection of edges,
>>> G.add_edges_from(H.edges)
If some edges connect nodes not yet in the graph, the nodes
are added automatically. There are no errors when adding
nodes or edges that already exist.
**Attributes:**
Each graph, node, and edge can hold key/value attribute pairs
in an associated attribute dictionary (the keys must be hashable).
By default these are empty, but can be added or changed using
add_edge, add_node or direct manipulation of the attribute
dictionaries named graph, node and edge respectively.
>>> G = nx.Graph(day="Friday")
>>> G.graph
{'day': 'Friday'}
Add node attributes using add_node(), add_nodes_from() or G.nodes
>>> G.add_node(1, time="5pm")
>>> G.add_nodes_from([3], time="2pm")
>>> G.nodes[1]
{'time': '5pm'}
>>> G.nodes[1]["room"] = 714 # node must exist already to use G.nodes
>>> del G.nodes[1]["room"] # remove attribute
>>> list(G.nodes(data=True))
[(1, {'time': '5pm'}), (3, {'time': '2pm'})]
Add edge attributes using add_edge(), add_edges_from(), subscript
notation, or G.edges.
>>> G.add_edge(1, 2, weight=4.7)
>>> G.add_edges_from([(3, 4), (4, 5)], color="red")
>>> G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})])
>>> G[1][2]["weight"] = 4.7
>>> G.edges[1, 2]["weight"] = 4
Warning: we protect the graph data structure by making `G.edges` a
read-only dict-like structure. However, you can assign to attributes
in e.g. `G.edges[1, 2]`. Thus, use 2 sets of brackets to add/change
data attributes: `G.edges[1, 2]['weight'] = 4`
(For multigraphs: `MG.edges[u, v, key][name] = value`).
**Shortcuts:**
Many common graph features allow python syntax to speed reporting.
>>> 1 in G # check if node in graph
True
>>> [n for n in G if n < 3] # iterate through nodes
[1, 2]
>>> len(G) # number of nodes in graph
5
Often the best way to traverse all edges of a graph is via the neighbors.
The neighbors are reported as an adjacency-dict `G.adj` or `G.adjacency()`
>>> for n, nbrsdict in G.adjacency():
... for nbr, eattr in nbrsdict.items():
... if "weight" in eattr:
... # Do something useful with the edges
... pass
But the edges() method is often more convenient:
>>> for u, v, weight in G.edges.data("weight"):
... if weight is not None:
... # Do something useful with the edges
... pass
**Reporting:**
Simple graph information is obtained using object-attributes and methods.
Reporting typically provides views instead of containers to reduce memory
usage. The views update as the graph is updated similarly to dict-views.
The objects `nodes`, `edges` and `adj` provide access to data attributes
via lookup (e.g. `nodes[n]`, `edges[u, v]`, `adj[u][v]`) and iteration
(e.g. `nodes.items()`, `nodes.data('color')`,
`nodes.data('color', default='blue')` and similarly for `edges`)
Views exist for `nodes`, `edges`, `neighbors()`/`adj` and `degree`.
For details on these and other miscellaneous methods, see below.
**Subclasses (Advanced):**
The Graph class uses a dict-of-dict-of-dict data structure.
The outer dict (node_dict) holds adjacency information keyed by node.
The next dict (adjlist_dict) represents the adjacency information and holds
edge data keyed by neighbor. The inner dict (edge_attr_dict) represents
the edge data and holds edge attribute values keyed by attribute names.
Each of these three dicts can be replaced in a subclass by a user defined
dict-like object. In general, the dict-like features should be
maintained but extra features can be added. To replace one of the
dicts create a new graph class by changing the class(!) variable
holding the factory for that dict-like structure.
node_dict_factory : function, (default: dict)
Factory function to be used to create the dict containing node
attributes, keyed by node id.
It should require no arguments and return a dict-like object
node_attr_dict_factory: function, (default: dict)
Factory function to be used to create the node attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object
adjlist_outer_dict_factory : function, (default: dict)
Factory function to be used to create the outer-most dict
in the data structure that holds adjacency info keyed by node.
It should require no arguments and return a dict-like object.
adjlist_inner_dict_factory : function, (default: dict)
Factory function to be used to create the adjacency list
dict which holds edge data keyed by neighbor.
It should require no arguments and return a dict-like object
edge_attr_dict_factory : function, (default: dict)
Factory function to be used to create the edge attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
graph_attr_dict_factory : function, (default: dict)
Factory function to be used to create the graph attribute
dict which holds attribute values keyed by attribute name.
It should require no arguments and return a dict-like object.
Typically, if your extension doesn't impact the data structure all
methods will inherit without issue except: `to_directed/to_undirected`.
By default these methods create a DiGraph/Graph class and you probably
want them to create your extension of a DiGraph/Graph. To facilitate
this we define two class variables that you can set in your subclass.
to_directed_class : callable, (default: DiGraph or MultiDiGraph)
Class to create a new graph structure in the `to_directed` method.
If `None`, a NetworkX class (DiGraph or MultiDiGraph) is used.
to_undirected_class : callable, (default: Graph or MultiGraph)
Class to create a new graph structure in the `to_undirected` method.
If `None`, a NetworkX class (Graph | (incoming_graph_data=None, **attr) | [
0.0276139285415411,
-0.01190255582332611,
-0.01669531874358654,
0.018716108053922653,
-0.016282696276903152,
-0.011733274906873703,
-0.06775463372468948,
0.0158489141613245,
0.06538470834493637,
-0.05031871423125267,
-0.026513604447245598,
0.012167057022452354,
0.041177552193403244,
0.06817784160375595,
-0.015214111655950546,
0.03671277314424515,
-0.00034881100873462856,
0.016769379377365112,
0.011669795028865337,
0.02136112004518509,
-0.03281931206583977,
-0.04007722809910774,
0.011743854731321335,
0.012389237992465496,
0.011722695082426071,
0.012219957076013088,
0.0004618852981366217,
0.01387044508010149,
0.03552780672907829,
0.005972438026219606,
-0.054846975952386856,
-0.07558387517929077,
-0.054593056440353394,
-0.007681115996092558,
0.030153140425682068,
0.012547939084470272,
-0.03197291120886803,
0.04854126647114754,
-0.07769988477230072,
0.01615573652088642,
0.030703304335474968,
-0.0029835740569978952,
0.0034041309263557196,
-0.02185838297009468,
0.0498955138027668,
0.04553653299808502,
0.03307323530316353,
0.0627608522772789,
-0.033961959183216095,
-0.10918611288070679,
0.006427380256354809,
-0.03580288589000702,
-0.00015638636250514537,
0.06470758467912674,
-0.01669531874358654,
0.0222815852612257,
-0.010051047429442406,
0.06246461346745491,
0.010320838540792465,
0.020546456798911095,
0.01211415696889162,
-0.001505012041889131,
0.011574573814868927,
-0.05408521369099617,
-0.050826556980609894,
0.0028328082989901304,
-0.06788159906864166,
-0.046171337366104126,
-0.023783951997756958,
0.00045990152284502983,
-0.002488956553861499,
0.006088818423449993,
0.05019175633788109,
0.01362710352987051,
0.04047926887869835,
0.02901049517095089,
0.0005567751359194517,
0.004044224042445421,
-0.013415502384305,
-0.01544687245041132,
0.020620517432689667,
0.00352051155641675,
-0.024566875770688057,
-0.023445390164852142,
0.06610415130853653,
-0.00484037259593606,
-0.034935325384140015,
0.028629614040255547,
0.01773216389119625,
-0.03654349222779274,
-0.06737375259399414,
-0.008442879654467106,
0.01013568788766861,
0.04985319450497627,
0.0010976801859214902,
-0.03273467347025871,
0.0010718912817537785,
-0.0891263410449028,
0.040098387748003006,
0.027148406952619553,
-0.039315465837717056,
-0.010363158769905567,
-0.05590498074889183,
0.009331603534519672,
-0.0638611763715744,
-0.0997910276055336,
-0.07071705162525177,
-0.01505541056394577,
-0.005781996995210648,
-0.017192579805850983,
-0.0900573804974556,
0.005454015452414751,
0.04921839013695717,
0.025455599650740623,
0.03521040454506874,
0.023381909355521202,
-0.02283174730837345,
-0.01754172146320343,
0.009432113729417324,
-0.015108310617506504,
-0.03910386189818382,
0.05074191838502884,
-0.01387044508010149,
0.04083899036049843,
0.026915645226836205,
-0.025180518627166748,
0.016610678285360336,
-0.020789796486496925,
0.014896709471940994,
-0.07465282827615738,
0.029116297140717506,
-0.00686116237193346,
-0.024249473586678505,
0.06525774300098419,
0.04418228566646576,
0.007072763051837683,
-0.03322135657072067,
0.014970770105719566,
-0.021646780893206596,
0.043060801923274994,
0.020176153630018234,
-0.05607426166534424,
0.05539713799953461,
0.018726687878370285,
-0.06284549087285995,
-0.040521588176488876,
-0.0456634946167469,
-0.05692066624760628,
-0.06360726058483124,
-0.0381304994225502,
0.005781996995210648,
-0.026132723316550255,
0.012928820215165615,
0.006998702883720398,
-0.025772999972105026,
0.004163249395787716,
-0.07795380800962448,
-0.005676196422427893,
-0.009067102335393429,
0.014991930685937405,
-0.0552278570830822,
-0.038384418934583664,
0.054593056440353394,
-0.02293754741549492,
0.0016028775135055184,
0.00039575996925123036,
0.043547485023736954,
-0.07291769981384277,
-0.006596660707145929,
0.03705133497714996,
-0.011447614058852196,
-0.08045069873332977,
-0.04119871184229851,
0.03491416200995445,
-0.004671091679483652,
0.03937894478440285,
0.04790646582841873,
0.006771231535822153,
0.025392118841409683,
0.03186710923910141,
0.033411797136068344,
-0.03322135657072067,
-0.05823259428143501,
0.00789271667599678,
0.024503394961357117,
-0.021339960396289825,
0.009992856532335281,
0.013669423758983612,
0.06013699993491173,
0.018864227458834648,
0.02264130674302578,
-0.027846690267324448,
0.008030257187783718,
0.048964470624923706,
0.032332632690668106,
-0.033284835517406464,
0.013553043827414513,
-0.010178008116781712,
0.0009793158387765288,
0.1137566938996315,
0.04866822808980942,
-0.014325386844575405,
0.0671621561050415,
-0.008215408772230148,
0.0013317636912688613,
0.023889752104878426,
-0.008860791102051735,
-0.042447157204151154,
-0.03764381632208824,
-0.03121114708483219,
-0.005319119896739721,
-0.02992038056254387,
0.04951463267207146,
0.03089374490082264,
-0.02336074970662594,
-0.04794878512620926,
-0.013066361658275127,
0.027169566601514816,
-0.02985689975321293,
-0.009580234996974468,
0.03040706180036068,
-0.005001718644052744,
-0.0432300828397274,
-0.035781726241111755,
0.017689842730760574,
-0.052053842693567276,
0.023170309141278267,
-0.02871425449848175,
0.03425820171833038,
-0.04887982830405235,
0.07812308520078659,
-0.002479699207469821,
0.030512863770127296,
0.03738989681005478,
0.04629829525947571,
-0.022979868575930595,
-0.007707566022872925,
0.026132723316550255,
0.002084269654005766,
0.0027957779821008444,
-0.0050202333368361,
-0.030385902151465416,
-0.020408915355801582,
0.0023209983482956886,
0.025180518627166748,
0.00834765937179327,
0.023783951997756958,
0.027635090053081512,
-0.01735128089785576,
-0.03925198316574097,
-0.041621915996074677,
-0.016229795292019844,
0.0008464039419777691,
0.014007985591888428,
-0.014960190281271935,
-0.0052291895262897015,
-0.06098340451717377,
-0.020895598456263542,
0.011098472401499748,
-0.007749886251986027,
0.0022046177182346582,
0.012346917763352394,
-0.01917104981839657,
0.08565608412027359,
0.06640039384365082,
0.007855686359107494,
0.01590181514620781,
0.010908030904829502,
-0.06995528936386108,
-0.015796013176441193,
0.09682861715555191,
0.026090402156114578,
0.05772475153207779,
0.01947787217795849,
-0.004025708884000778,
-0.03884994238615036,
-0.03040706180036068,
0.0124738784506917,
-0.02835453301668167,
-0.019879912957549095,
-0.051630642265081406,
-0.022789426147937775,
-0.034448642283678055,
-0.00004347739013610408,
-0.016526037827134132,
-0.02300102822482586,
-0.0300473403185606,
0.0241648331284523,
-0.014579308219254017,
-0.01229401770979166,
0.06644271314144135,
-0.03597216680645943,
-0.01250561885535717,
0.022069983184337616,
0.022302744910120964,
0.017689842730760574,
-0.033961959183216095,
0.0314650684595108,
0.0487951897084713,
0.026365483179688454,
0.08298990875482559,
-0.018038984388113022,
0.08861849457025528,
-0.005998888052999973,
-0.011447614058852196,
0.00427963025867939,
0.05929059907793999,
0.01387044508010149,
0.0057661267928779125,
0.027825530618429184,
-0.0257306806743145,
0.019096989184617996,
0.008696801029145718,
0.061702847480773926,
-0.027846690267324448,
-0.04157959297299385,
-0.014177266508340836,
-0.07901181280612946,
0.04587509483098984,
0.06585022807121277,
-0.05662442371249199,
0.040458109229803085,
-0.049133751541376114,
-0.016293276101350784,
-0.014399447478353977,
0.041791196912527084,
0.08675640821456909,
0.06343797594308853,
0.058528833091259,
0.0014560793060809374,
-0.022175783291459084,
-0.005118099041283131,
-0.0023606736212968826,
0.021265899762511253,
-0.06800855696201324,
0.04329356178641319,
0.0058454773388803005,
0.006469700485467911,
0.020599355921149254,
-0.01850450597703457,
0.022535504773259163,
0.027571609243750572,
-0.02744464948773384,
0.007078052964061499,
0.013754064217209816,
-0.041050590574741364,
0.01924511045217514,
-0.012526778504252434,
-0.0014111141208559275,
0.014547567814588547,
-0.02744464948773384,
0.050953518599271774,
-0.026852166280150414,
0.009299863129854202,
0.007522415369749069,
-0.04115639254450798,
-0.011638054624199867,
-0.05603194236755371,
-0.015351652167737484,
0.004142089281231165,
-0.010712300427258015,
0.015827754512429237,
0.013045201078057289,
0.013489563018083572,
-0.017859123647212982,
-0.010421348735690117,
0.008977171964943409,
0.027042606845498085,
0.05433913320302963,
-0.058063313364982605,
0.033284835517406464,
-0.06233765184879303,
-0.046594537794589996,
-0.0036950823850929737,
-0.009024782106280327,
0.00573438685387373,
0.021202418953180313,
0.047737184911966324,
-0.0014388867421075702,
0.010992671363055706,
0.02427063323557377,
-0.004512391053140163,
0.006284549366682768,
0.05311184749007225,
0.046340618282556534,
-0.031951747834682465,
0.10021422803401947,
0.010601209476590157,
0.008331788703799248,
-0.006310999393463135,
-0.07956197112798691,
-0.016483716666698456,
0.0059883082285523415,
0.017319541424512863,
-0.06403046101331711,
-0.032332632690668106,
0.07905413210391998,
0.0016055224696174264,
-0.03034358285367489,
-0.058359552174806595,
0.012971140444278717,
-0.03920966386795044,
0.03322135657072067,
0.046044375747442245,
0.046636857092380524,
0.024545714259147644,
0.03880762308835983,
0.046171337366104126,
0.03557012602686882,
0.03108418546617031,
0.055989623069763184,
0.0006923319888301194,
-0.07520299404859543,
0.031041866168379784,
0.04714469984173775,
-0.0020035968627780676,
0.0421297587454319,
0.014272486791014671,
0.06953208893537521,
0.020303115248680115,
0.018895968794822693,
0.01892770826816559,
0.02877773530781269,
0.021212998777627945,
0.01755230315029621,
-0.001186949317343533,
-0.034448642283678055,
-0.0022138752974569798,
-0.051799923181533813,
0.06572327017784119,
0.013203902170062065,
-0.023953232914209366,
0.012823020108044147,
-0.022789426147937775,
0.0199645534157753,
-0.017986083403229713,
0.0031740148551762104,
-0.03980214521288872,
-0.01423016656190157,
0.008665060624480247,
-0.02300102822482586,
-0.02293754741549492,
0.015044830739498138,
-0.03417355939745903,
-0.039780985563993454,
-0.027762049809098244,
-0.021593881770968437,
0.02520167827606201,
0.04426692798733711,
-0.021752581000328064,
0.024714995175600052,
0.001590974978171289,
0.05167296156287193,
0.022006502375006676,
-0.11274100840091705,
-0.014378286898136139,
-0.0004777553549502045,
-0.022493185475468636,
-0.013542463071644306,
0.0367974117398262,
-0.01104557141661644,
-0.019160469993948936,
-0.05074191838502884,
-0.01992223411798477,
-0.04388604685664177,
0.019636571407318115,
0.07207129895687103,
-0.015764273703098297,
-0.05306952819228172,
-0.007194433826953173,
0.05916363745927811,
-0.01183907501399517,
-0.048964470624923706,
-0.07050544768571854,
0.02888353541493416,
0.02101197838783264,
-0.014378286898136139,
-0.04303964227437973,
-0.07503370940685272,
-0.08595231920480728,
0.020440654829144478,
-0.031655509024858475,
0.04375908523797989,
-0.007929746992886066,
0.035485487431287766,
0.0026622049044817686,
0.053154170513153076,
-0.019932813942432404,
-0.011521673761308193,
0.0034014859702438116,
-0.035548966377973557,
-0.034321680665016174,
-0.015309331938624382,
0.001356891356408596,
0.03430052101612091,
0.07444123178720474,
-0.026682885363698006,
-0.0421297587454319,
-0.025899961590766907,
-0.04794878512620926,
-0.00998227670788765,
-0.03971750661730766,
-0.007517124991863966,
0.00393313355743885,
0.03768613561987877,
-0.004205569624900818,
-0.0483296662569046,
0.06208373233675957,
0.05129208043217659,
-0.004261115100234747,
0.02932789735496044,
0.02465151622891426,
0.05827491357922554,
0.007432484999299049,
0.03561244532465935,
-0.011966035701334476,
-0.03231147304177284,
0.029602978378534317,
0.00882905162870884,
-0.06441134214401245,
0.04930303245782852,
0.027084926143288612,
0.02556139975786209,
0.023339590057730675,
-0.03840557858347893,
0.05912131816148758,
-0.00834765937179327,
-0.02640780434012413,
0.020133834332227707,
0.02513819746673107,
0.01675879769027233,
0.03277699276804924,
-0.013277961872518063,
0.07744596153497696,
0.017160840332508087,
-0.00009067432984011248,
0.05717458948493004,
0.008300049230456352,
-0.030851423740386963,
-0.012981721200048923,
0.04047926887869835,
0.018832487985491753,
-0.04574813321232796,
-0.0011591766960918903,
0.00813605822622776,
-0.04151611402630806,
0.022620145231485367,
-0.02391091175377369,
0.0046102567575871944,
-0.06525774300098419,
-0.02093791775405407,
0.002032692078500986,
0.005427565425634384,
0.013256802223622799,
0.07778452336788177,
-0.04329356178641319,
0.012103577144443989,
0.007400744594633579,
0.03271351382136345,
0.01979527249932289,
-0.051630642265081406,
-0.017509981989860535,
-0.05251936614513397,
-0.03212102875113487,
0.03379267826676369,
-0.002084269654005766,
0.013817545026540756,
0.02234506420791149,
-0.041177552193403244,
-0.0050440384075045586,
-0.017203161492943764,
0.03664929047226906,
0.0198481734842062,
-0.017033880576491356,
-0.03622609004378319,
0.009373923763632774,
-0.05649746581912041,
0.05958683788776398,
0.006871742196381092,
-0.06593486666679382,
-0.030999545007944107,
0.035591285675764084,
0.0058825076557695866,
0.01620863564312458,
0.01669531874358654,
0.008220698684453964,
-0.020250214263796806,
0.04693309962749481,
0.0037162424996495247,
-0.045494213700294495,
-0.02076863683760166,
-0.05027639493346214,
0.04358980432152748,
-0.01547861285507679,
-0.021149519830942154,
0.04138915240764618,
-0.009093552827835083,
-0.012569098733365536,
0.03385615721344948,
-0.011881395243108273,
-0.04579045623540878,
0.016652997583150864,
0.037918899208307266,
0.0009409631602466106,
0.0013430049875751138,
0.03197291120886803,
-0.012812440283596516,
-0.0035972169134765863,
-0.017277220264077187,
-0.06889728456735611,
0.003689792240038514,
0.04265876114368439,
-0.00956436526030302,
-0.05539713799953461,
-0.019255690276622772,
-0.058909714221954346,
-0.046044375747442245,
0.07765756547451019,
-0.025265159085392952,
-0.006734201684594154,
0.030364742502570152,
-0.04587509483098984,
-0.02877773530781269,
0.007612345740199089,
-0.034512121230363846,
0.010960930958390236,
0.004128864500671625,
-0.030914904549717903,
-0.03296743333339691,
-0.005628586281090975,
0.027952490374445915,
-0.054169852286577225,
-0.0021596525330096483,
0.006855871994048357,
-0.004073319025337696,
-0.07059009373188019,
0.03290395438671112,
0.004433040972799063,
-0.0009455919498577714,
0.04128335416316986,
-0.035358525812625885,
0.001568492385558784,
-0.02979341894388199,
-0.006512020714581013,
-0.023276109248399734,
-0.004001903813332319,
0.036331892013549805,
-0.049810875207185745,
0.03514692559838295,
-0.02130821906030178,
-0.004314015153795481,
0.0052053844556212425,
-0.001251090900041163,
-0.029772259294986725,
0.01566905342042446,
0.05251936614513397,
-0.018599726259708405,
-0.018948867917060852,
-0.004184409510344267,
-0.012420978397130966,
-0.011606314219534397,
0.021837221458554268,
0.07325626164674759,
-0.01620863564312458,
0.027889011427760124,
0.032565392553806305,
-0.020853277295827866,
0.0005630570231005549,
0.06618878990411758,
0.004877402912825346,
-0.032078709453344345,
0.006400929763913155,
0.03245959058403969,
0.0005151161458343267,
-0.04177003726363182,
-0.02215462364256382,
0.01463220827281475,
0.008358239196240902,
0.014833229593932629,
-0.03825746104121208,
0.027106087654829025,
0.08485199511051178,
-0.029666459187865257,
-0.036691613495349884,
-0.015753693878650665,
0.02744464948773384,
-0.024059033021330833,
-0.03199407085776329,
-0.009024782106280327,
-0.03072446398437023,
-0.025180518627166748,
-0.04540957137942314,
0.05201152339577675,
-0.00713095348328352,
0.0024082837626338005,
-0.0649615079164505,
-0.033961959183216095,
-0.006369189824908972,
0.01307694148272276,
-0.05048799514770508,
0.016039354726672173,
0.009670165367424488,
-0.011479353532195091,
0.050530318170785904,
0.05006479471921921,
-0.006162879057228565,
-0.0746951475739479,
0.028608454391360283,
0.024714995175600052,
-0.014917870052158833,
-0.02956065908074379,
0.0165154580026865,
0.04405532777309418,
-0.025180518627166748,
0.033284835517406464,
0.007083343341946602,
0.04680613800883293,
0.0024770540185272694,
-0.07152113318443298,
0.013605943880975246,
0.011183111928403378,
-0.0001215052543557249,
0.059459879994392395,
0.03322135657072067,
0.002250905614346266,
-0.0030153142288327217,
0.0054328553378582,
-0.09166555106639862,
-0.0005475175566971302,
-0.023022187873721123,
-0.007400744594633579,
0.07126721739768982,
-0.0029782839119434357,
0.0456634946167469,
-0.043674442917108536,
-0.03624724969267845,
-0.0072050136514008045,
0.02975109964609146,
-0.01572195440530777,
0.07774220407009125,
-0.029222097247838974,
-0.02202766388654709,
-0.04401300475001335,
-0.0034041309263557196,
-0.006316289771348238,
-0.0399291068315506,
0.030131980776786804,
0.05141904205083847,
-0.011310072615742683,
0.002970348810777068,
0.05785170942544937,
-0.006660141050815582,
-0.02615388296544552,
0.0028989335987716913,
0.06309941411018372,
-0.00995053630322218,
-0.0022403255570679903,
-0.026005761697888374,
0.030237780883908272,
-0.11096356064081192,
-0.025688359513878822,
-0.017139680683612823,
0.030936064198613167,
-0.02422831393778324,
0.00352051155641675,
0.0498955138027668,
0.006385060027241707,
0.07367946207523346
]
|
30,113 | networkx.classes.graph | __init__ | Initialize a graph with edges, name, or graph attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be an edge list, or any
NetworkX graph object. If the corresponding optional Python
packages are installed the data can also be a 2D NumPy array, a
SciPy sparse array, or a PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
convert
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G = nx.Graph(name="my graph")
>>> e = [(1, 2), (2, 3), (3, 4)] # list of edges
>>> G = nx.Graph(e)
Arbitrary graph attribute pairs (key=value) may be assigned
>>> G = nx.Graph(e, day="Friday")
>>> G.graph
{'day': 'Friday'}
| def __init__(self, incoming_graph_data=None, **attr):
"""Initialize a graph with edges, name, or graph attributes.
Parameters
----------
incoming_graph_data : input graph (optional, default: None)
Data to initialize graph. If None (default) an empty
graph is created. The data can be an edge list, or any
NetworkX graph object. If the corresponding optional Python
packages are installed the data can also be a 2D NumPy array, a
SciPy sparse array, or a PyGraphviz graph.
attr : keyword arguments, optional (default= no attributes)
Attributes to add to graph as key=value pairs.
See Also
--------
convert
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G = nx.Graph(name="my graph")
>>> e = [(1, 2), (2, 3), (3, 4)] # list of edges
>>> G = nx.Graph(e)
Arbitrary graph attribute pairs (key=value) may be assigned
>>> G = nx.Graph(e, day="Friday")
>>> G.graph
{'day': 'Friday'}
"""
self.graph = self.graph_attr_dict_factory() # dictionary for graph attributes
self._node = self.node_dict_factory() # empty node attribute dict
self._adj = self.adjlist_outer_dict_factory() # empty adjacency dict
self.__networkx_cache__ = {}
# attempt to load graph with data
if incoming_graph_data is not None:
convert.to_networkx_graph(incoming_graph_data, create_using=self)
# load graph attributes (must be after convert)
self.graph.update(attr)
| (self, incoming_graph_data=None, **attr) | [
0.033107489347457886,
0.028172820806503296,
0.004843739792704582,
-0.008198232389986515,
-0.023513395339250565,
-0.005524468142539263,
-0.04954327270388603,
0.027347100898623466,
0.08807692676782608,
-0.04494282603263855,
0.002198236994445324,
0.05355392023921013,
0.003885313170030713,
0.05135199427604675,
-0.02703253924846649,
0.026658998802304268,
-0.008566857315599918,
0.02180297300219536,
0.005030510015785694,
0.02306121401488781,
-0.03145604580640793,
-0.035112813115119934,
-0.013781680725514889,
0.03882855549454689,
0.04848163202404976,
0.015570743009448051,
-0.01730082556605339,
0.011166896671056747,
0.01624901406466961,
0.010065934620797634,
-0.030885905027389526,
-0.04521806538105011,
-0.04918939247727394,
0.018657367676496506,
0.06822030246257782,
0.016347313299775124,
-0.04097149893641472,
0.02744540013372898,
-0.12574554979801178,
-0.004666799213737249,
0.08040951937437057,
-0.04576854780316353,
-0.0070825256407260895,
-0.007908246479928493,
0.034149471670389175,
0.024751976132392883,
0.019925439730286598,
0.023788634687662125,
-0.04301614314317703,
-0.08076339960098267,
-0.0038214181549847126,
-0.0166618749499321,
0.004543924238532782,
0.05237431824207306,
-0.0469481498003006,
0.07962311804294586,
0.0012594705913215876,
0.08674004673957825,
0.0038730257656425238,
0.0300012044608593,
-0.023808294907212257,
0.017743175849318504,
0.02223549224436283,
-0.04785250872373581,
-0.049700554460287094,
0.010449305176734924,
-0.07010766118764877,
-0.05284615606069565,
-0.029116502031683922,
0.0022056095767766237,
0.022196171805262566,
0.023100534453988075,
0.017055075615644455,
0.001597377355210483,
0.056778162717819214,
0.03021746501326561,
-0.035958193242549896,
0.018106887117028236,
-0.0016121224034577608,
0.02000407874584198,
0.023572374135255814,
0.0017399125499650836,
-0.04871755093336105,
-0.052217036485672,
0.051587916910648346,
-0.01675034500658512,
-0.01743844524025917,
0.03786521404981613,
0.012375988066196442,
-0.04388118535280228,
-0.05528400093317032,
0.005431083030998707,
0.003759980434551835,
0.038651615381240845,
0.01931597851216793,
-0.028113842010498047,
0.003885313170030713,
-0.061299968510866165,
0.07836487889289856,
0.017458105459809303,
-0.04757726937532425,
-0.017536746338009834,
-0.09806422144174576,
-0.02313985489308834,
-0.05524468049407005,
-0.07517994940280914,
-0.02465367689728737,
-0.04230838268995285,
-0.012857658788561821,
-0.03912345692515373,
-0.07057950645685196,
-0.01218921784311533,
0.04203314334154129,
0.02980460412800312,
0.0273667611181736,
0.029706303030252457,
-0.002936716889962554,
-0.018509916961193085,
0.0455719456076622,
-0.016376804560422897,
-0.04730203002691269,
0.06660817563533783,
-0.017821816727519035,
0.07482606917619705,
0.017949607223272324,
-0.012779018841683865,
0.03180992603302002,
-0.07289938628673553,
0.023238154128193855,
-0.04702679067850113,
0.062479570508003235,
-0.026147838681936264,
-0.03021746501326561,
0.04454962536692619,
0.018726177513599396,
-0.03188856691122055,
-0.03173128515481949,
0.017055075615644455,
-0.024299796670675278,
0.04911075159907341,
0.023513395339250565,
-0.051784515380859375,
0.022589372470974922,
0.017664536833763123,
-0.04057829827070236,
0.004787216894328594,
-0.014558251015841961,
-0.043448664247989655,
-0.03625309467315674,
-0.042465660721063614,
0.016966605558991432,
-0.020023738965392113,
-0.00846855714917183,
0.031495366245508194,
0.0026467314455658197,
-0.0021699757780879736,
-0.0883914902806282,
-0.011884487234055996,
0.003474910045042634,
0.02243209257721901,
-0.06436693668365479,
-0.0003185539098922163,
0.022137193009257317,
-0.034405048936605453,
-0.022117532789707184,
-0.009107508696615696,
0.034464031457901,
-0.09334582090377808,
-0.024850277230143547,
0.000159584145876579,
-0.043370023369789124,
-0.09995158761739731,
-0.06098540872335434,
-0.0023456872440874577,
-0.013663720339536667,
0.019994249567389488,
0.03523077070713043,
0.030040524899959564,
0.004686459433287382,
0.04077490046620369,
0.018519748002290726,
-0.02064303122460842,
-0.041443340480327606,
0.005204992834478617,
0.0007593686459586024,
-0.001577717368490994,
0.011383157223463058,
0.01869668811559677,
0.06350189447402954,
0.005848858505487442,
0.0636591762304306,
0.01233666855841875,
-0.0005206835921853781,
0.06004172936081886,
0.05854756757616997,
-0.04844231158494949,
0.01945359818637371,
0.013182049617171288,
-0.0653892531991005,
0.10026615113019943,
0.06975378096103668,
0.00015512992104049772,
0.04529670625925064,
0.0025705487933009863,
0.004792131949216127,
0.015275842510163784,
-0.019266828894615173,
0.0028752791695296764,
-0.0293720830231905,
-0.016347313299775124,
-0.021429430693387985,
-0.027622340247035027,
0.06531061977148056,
0.03002086468040943,
-0.05316071957349777,
-0.0032242448069155216,
-0.011068596504628658,
0.0370984748005867,
0.002966206753626466,
-0.031023526564240456,
0.04675154760479927,
-0.011029276065528393,
-0.018047906458377838,
-0.048953473567962646,
0.00505262752994895,
-0.04297682270407677,
0.00917140394449234,
-0.017104225233197212,
0.0014314958825707436,
0.007505216170102358,
0.031436387449502945,
-0.019895948469638824,
0.03300919011235237,
0.008955143392086029,
0.032203126698732376,
-0.01819535717368126,
0.02764200046658516,
0.018519748002290726,
-0.026658998802304268,
-0.008822438307106495,
-0.005563788115978241,
-0.004703661892563105,
-0.048874832689762115,
-0.04612242802977562,
0.03682323545217514,
-0.01661272533237934,
0.008045867085456848,
0.021763652563095093,
-0.04392050579190254,
-0.027268460020422935,
-0.05544128268957138,
-0.001601063646376133,
-0.009372918866574764,
0.0035461776424199343,
-0.007785371504724026,
-0.018215017393231392,
-0.061850450932979584,
-0.057210683822631836,
0.04061761870980263,
0.0006690553855150938,
0.006207654252648354,
0.017526915296912193,
-0.02827112190425396,
0.08689732849597931,
0.07596635073423386,
-0.024575036019086838,
-0.012661058455705643,
0.016160544008016586,
-0.056660205125808716,
-0.0019045652588829398,
0.11882521212100983,
0.00456849904730916,
0.07836487889289856,
0.021920932456851006,
0.016622554510831833,
-0.04777387157082558,
-0.027347100898623466,
-0.0175170861184597,
-0.016298163682222366,
0.02709151990711689,
-0.038376376032829285,
-0.0021847207099199295,
-0.039280738681554794,
0.020859289914369583,
-0.00604545883834362,
-0.013113238848745823,
-0.00823263730853796,
-0.003966410644352436,
-0.026580359786748886,
-0.026285458356142044,
0.057210683822631836,
-0.005735813640058041,
-0.008950227871537209,
0.02528279647231102,
0.01646527461707592,
0.00030764873372390866,
-0.01045913528650999,
0.04384186491370201,
0.027052199468016624,
0.03475893288850784,
0.08540316671133041,
-0.043645262718200684,
0.0653892531991005,
-0.008222807198762894,
-0.010645905509591103,
0.001913166604936123,
0.011471627280116081,
0.04297682270407677,
0.010862166061997414,
0.031357746571302414,
-0.005789878312498331,
0.04604378715157509,
0.02522381767630577,
0.04348798468708992,
-0.038867875933647156,
0.011471627280116081,
0.0030620493926107883,
-0.06299073249101639,
0.06291209161281586,
0.04230838268995285,
-0.02180297300219536,
0.04427438601851463,
-0.036371052265167236,
-0.020190849900245667,
-0.04950395226478577,
0.06361985206604004,
0.049975793808698654,
0.06700138002634048,
0.03825841471552849,
0.03049270436167717,
-0.005106692668050528,
0.018382126465439796,
-0.016298163682222366,
0.020171189680695534,
-0.05634564161300659,
0.03228176757693291,
0.0014339534100145102,
-0.011196386069059372,
0.004448081366717815,
-0.05717136338353157,
0.009426984004676342,
0.020721670240163803,
-0.029273783788084984,
-0.023434754461050034,
-0.003347120014950633,
-0.047970470041036606,
0.0013639144599437714,
-0.05111607536673546,
-0.042819544672966,
0.01874583773314953,
-0.045689906924963,
0.055323321372270584,
-0.031141486018896103,
0.033166468143463135,
0.015806663781404495,
-0.018106887117028236,
-0.018500087782740593,
-0.036017172038555145,
-0.00705303531140089,
0.017408955842256546,
0.006355104502290487,
0.04541466757655144,
0.007544536143541336,
-0.023297134786844254,
0.0035240601282566786,
-0.025184497237205505,
0.013565420173108578,
0.05980580672621727,
0.027602680027484894,
-0.043802544474601746,
0.016337484121322632,
-0.07325326651334763,
-0.06224365159869194,
0.006325614172965288,
0.005735813640058041,
0.014784341678023338,
-0.0026639339048415422,
0.015472442843019962,
0.00043897159048356116,
-0.027248799800872803,
-0.03806181624531746,
0.0013602282851934433,
0.023316795006394386,
0.04285886138677597,
0.0350341722369194,
-0.04270158335566521,
0.06196841225028038,
0.025617018342018127,
0.04950395226478577,
0.005214822478592396,
-0.06350189447402954,
-0.051430635154247284,
0.03269462659955025,
0.02056439034640789,
-0.0043522389605641365,
-0.04061761870980263,
0.09712054580450058,
0.0006672122399322689,
-0.03743269667029381,
-0.04537534713745117,
-0.02223549224436283,
-0.06153589114546776,
0.019148867577314377,
0.054772838950157166,
0.03530941158533096,
0.02152773179113865,
0.04572922736406326,
0.031239785254001617,
0.04008679836988449,
0.03173128515481949,
0.08917789161205292,
-0.018647536635398865,
-0.04415642470121384,
-0.029155822470784187,
0.017143545672297478,
0.017841476947069168,
0.06452421844005585,
-0.031436387449502945,
0.06385577470064163,
-0.013732530176639557,
0.011648567393422127,
0.03523077070713043,
0.05941260606050491,
-0.0024452160578221083,
0.052217036485672,
0.009043613448739052,
-0.03285190835595131,
-0.005961903836578131,
-0.03523077070713043,
0.03487689048051834,
-0.026108518242836,
0.026088858023285866,
0.027150500565767288,
-0.026796620339155197,
0.03180992603302002,
-0.019325807690620422,
0.01765470579266548,
-0.024476736783981323,
-0.013948790729045868,
0.015669042244553566,
-0.0052000777795910835,
-0.0246733371168375,
0.04160062223672867,
-0.04596514627337456,
-0.10034478455781937,
-0.010547605343163013,
-0.02827112190425396,
0.04285886138677597,
0.024614356458187103,
-0.013191879726946354,
0.005322952754795551,
0.007814861834049225,
0.05398644134402275,
-0.028880583122372627,
-0.0821002796292305,
0.0004663113213609904,
0.03188856691122055,
-0.01742861606180668,
-0.0003031945088878274,
0.06440625339746475,
-0.006330529227852821,
-0.015472442843019962,
-0.050880156457424164,
-0.020996911451220512,
-0.04458894580602646,
0.015895133838057518,
0.07781439274549484,
0.00737742567434907,
-0.0444316640496254,
-0.00930902361869812,
0.03849433735013008,
0.020190849900245667,
-0.013093579560518265,
-0.043802544474601746,
0.0018763040425255895,
-0.024575036019086838,
-0.028507042676210403,
-0.0338938906788826,
-0.04160062223672867,
-0.08445948362350464,
-0.0074609811417758465,
-0.003585497848689556,
0.0482063926756382,
0.047262709587812424,
0.010714715346693993,
0.009928314946591854,
0.04348798468708992,
-0.04411710426211357,
-0.023375773802399635,
0.02848738245666027,
-0.05378983914852142,
-0.005416337866336107,
-0.023041553795337677,
0.01445012167096138,
0.06570381671190262,
0.0547335222363472,
-0.017251675948500633,
-0.007972141727805138,
-0.010016785003244877,
-0.05312139913439751,
-0.02821214124560356,
-0.0365283340215683,
-0.03550601378083229,
-0.024476736783981323,
0.04297682270407677,
0.027740301564335823,
-0.047066111117601395,
0.024280136451125145,
0.051155395805835724,
-0.01087199617177248,
0.013476950116455555,
-0.006232229061424732,
0.02813350223004818,
0.024555375799536705,
0.005131267476826906,
-0.008493132889270782,
-0.03745235502719879,
0.025715317577123642,
-0.007456066086888313,
-0.02895922213792801,
0.056227684020996094,
0.043999142944812775,
0.020230170339345932,
-0.006035628728568554,
-0.052059758454561234,
0.034346070140600204,
0.019129207357764244,
-0.029273783788084984,
0.019139038398861885,
0.013349159620702267,
0.01890311762690544,
0.011923807673156261,
-0.03236040845513344,
0.0703042671084404,
0.01959121972322464,
0.01701575517654419,
0.0677877813577652,
0.03346136957406998,
-0.045532628893852234,
-0.024712655693292618,
0.024850277230143547,
0.013575250282883644,
-0.021213172003626823,
0.016101563349366188,
0.03967393934726715,
-0.02591191790997982,
0.008910908363759518,
0.022255152463912964,
0.03277326747775078,
-0.0626368522644043,
-0.038101136684417725,
-0.014155221171677113,
-0.04215110093355179,
-0.00488060200586915,
0.042622942477464676,
-0.028231801465153694,
-0.010665565729141235,
-0.0293720830231905,
0.02612817846238613,
0.020122040063142776,
-0.04038169980049133,
0.013919300399720669,
-0.028389081358909607,
-0.005858688615262508,
0.005996308755129576,
-0.01475485134869814,
0.009844759479165077,
-0.01917835883796215,
-0.028467722237110138,
0.02319883368909359,
0.01420437078922987,
-0.011176726780831814,
0.03827807679772377,
0.012926468625664711,
-0.009825099259614944,
0.013516269624233246,
-0.026423078030347824,
0.03216380625963211,
0.020584050565958023,
-0.046436987817287445,
-0.007175910752266645,
0.010282195173203945,
-0.02459469623863697,
0.02717016078531742,
-0.016131054610013962,
0.00550480792298913,
-0.04222974181175232,
0.0376686155796051,
0.02229447290301323,
-0.032891228795051575,
0.0021650607232004404,
-0.046161748468875885,
0.027661660686135292,
0.03639071434736252,
-0.04867823049426079,
-0.0038902282249182463,
0.030040524899959564,
-0.02396557480096817,
0.00520990788936615,
-0.03874991834163666,
-0.06786642223596573,
0.04085354134440422,
0.008950227871537209,
0.03758997470140457,
0.006994055118411779,
0.013358989730477333,
-0.0172909963876009,
0.017143545672297478,
-0.00861600786447525,
-0.03703949600458145,
0.01563955284655094,
0.045689906924963,
-0.030551685020327568,
-0.01575751230120659,
0.02481095679104328,
-0.04773455113172531,
-0.06169316917657852,
0.035604313015937805,
-0.015619892627000809,
0.008517707698047161,
0.015128392726182938,
-0.060199007391929626,
-0.031711626797914505,
0.005514638032764196,
-0.041915182024240494,
0.024614356458187103,
0.018785158172249794,
-0.04258362203836441,
-0.03833705559372902,
0.0025951238349080086,
0.059216007590293884,
-0.07679207623004913,
-0.010577095672488213,
-0.012808509171009064,
-0.00567683344706893,
-0.062479570508003235,
0.04356662556529045,
0.030256785452365875,
0.011982787400484085,
0.06208636984229088,
-0.04038169980049133,
-0.007200485561043024,
-0.035525672137737274,
-0.033520348370075226,
-0.010832675732672215,
-0.0495825931429863,
0.022176513448357582,
-0.06071016937494278,
0.03780623525381088,
-0.000982387107796967,
0.01445012167096138,
0.006325614172965288,
0.03658731281757355,
0.007146420422941446,
0.01867702789604664,
0.05343595892190933,
-0.03454267233610153,
-0.026796620339155197,
0.013044429011642933,
-0.031849246472120285,
-0.032753609120845795,
0.038101136684417725,
0.0508408360183239,
0.027818940579891205,
0.04222974181175232,
-0.002504196250811219,
-0.016632383689284325,
-0.01756623573601246,
0.011579756624996662,
0.016013093292713165,
-0.036921534687280655,
0.020662689581513405,
0.039850879460573196,
0.008222807198762894,
-0.060395609587430954,
-0.005814453586935997,
0.013152559287846088,
0.0068072848953306675,
0.03141672536730766,
-0.0007292642258107662,
0.018156036734580994,
0.042269062250852585,
0.004644681699573994,
-0.041915182024240494,
-0.0338938906788826,
0.017271336168050766,
-0.019610878080129623,
-0.027071859687566757,
0.01826416701078415,
-0.015344652347266674,
-0.013329499401152134,
0.0006189837004058063,
0.03668561577796936,
-0.0064878095872700214,
-0.018785158172249794,
-0.07659547030925751,
-0.05390780046582222,
-0.03487689048051834,
0.00020750546536874026,
-0.047616589814424515,
0.05272819846868515,
0.018362466245889664,
-0.008144167251884937,
0.025793958455324173,
0.015806663781404495,
-0.018313316628336906,
-0.07242754846811295,
0.041993822902441025,
0.0027548614889383316,
0.00059256557142362,
-0.009515454061329365,
-0.0024022096768021584,
0.025951238349080086,
0.003315172391012311,
0.04863891005516052,
0.03806181624531746,
0.025715317577123642,
-0.0044112191535532475,
-0.09334582090377808,
-0.012149898335337639,
0.025931578129529953,
-0.013103409670293331,
0.03304850682616234,
0.03627275303006172,
-0.0028089266270399094,
-0.03232108801603317,
-0.008640582673251629,
-0.07867943495512009,
0.05017239227890968,
-0.053317997604608536,
-0.020859289914369583,
0.05249227583408356,
-0.0006481665768660605,
0.043448664247989655,
-0.03104318492114544,
-0.030649984255433083,
-0.0052344826981425285,
0.032635647803545,
0.03293054923415184,
0.08178572356700897,
-0.03694119304418564,
-0.008660242892801762,
-0.04403846338391304,
0.04093217849731445,
-0.0246733371168375,
-0.045257385820150375,
0.021822631359100342,
0.02402455545961857,
0.002081505488604307,
0.021999571472406387,
0.021291811019182205,
-0.011127576231956482,
-0.026698319241404533,
0.02563667856156826,
0.033520348370075226,
-0.0383567176759243,
0.0020827343687415123,
-0.010061020031571388,
-0.008055697195231915,
-0.09609822183847427,
-0.022805633023381233,
-0.025440078228712082,
0.03485723212361336,
-0.04977919161319733,
-0.004138436168432236,
0.03953631967306137,
0.049150072038173676,
0.05264955759048462
]
|
30,117 | networkx.classes.graph | add_edge | Add an edge between u and v.
The nodes u and v will be automatically added if they are
not already in the graph.
Edge attributes can be specified with keywords or by directly
accessing the edge's attribute dictionary. See examples below.
Parameters
----------
u_of_edge, v_of_edge : nodes
Nodes can be, for example, strings or numbers.
Nodes must be hashable (and not None) Python objects.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edges_from : add a collection of edges
Notes
-----
Adding an edge that already exists updates the edge data.
Many NetworkX algorithms designed for weighted graphs use
an edge attribute (by default `weight`) to hold a numerical value.
Examples
--------
The following all add the edge e=(1, 2) to graph G:
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = (1, 2)
>>> G.add_edge(1, 2) # explicit two-node form
>>> G.add_edge(*e) # single edge as tuple of two nodes
>>> G.add_edges_from([(1, 2)]) # add edges from iterable container
Associate data to edges using keywords:
>>> G.add_edge(1, 2, weight=3)
>>> G.add_edge(1, 3, weight=7, capacity=15, length=342.7)
For non-string attribute keys, use subscript notation.
>>> G.add_edge(1, 2)
>>> G[1][2].update({0: 5})
>>> G.edges[1, 2].update({0: 5})
| def add_edge(self, u_of_edge, v_of_edge, **attr):
"""Add an edge between u and v.
The nodes u and v will be automatically added if they are
not already in the graph.
Edge attributes can be specified with keywords or by directly
accessing the edge's attribute dictionary. See examples below.
Parameters
----------
u_of_edge, v_of_edge : nodes
Nodes can be, for example, strings or numbers.
Nodes must be hashable (and not None) Python objects.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edges_from : add a collection of edges
Notes
-----
Adding an edge that already exists updates the edge data.
Many NetworkX algorithms designed for weighted graphs use
an edge attribute (by default `weight`) to hold a numerical value.
Examples
--------
The following all add the edge e=(1, 2) to graph G:
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = (1, 2)
>>> G.add_edge(1, 2) # explicit two-node form
>>> G.add_edge(*e) # single edge as tuple of two nodes
>>> G.add_edges_from([(1, 2)]) # add edges from iterable container
Associate data to edges using keywords:
>>> G.add_edge(1, 2, weight=3)
>>> G.add_edge(1, 3, weight=7, capacity=15, length=342.7)
For non-string attribute keys, use subscript notation.
>>> G.add_edge(1, 2)
>>> G[1][2].update({0: 5})
>>> G.edges[1, 2].update({0: 5})
"""
u, v = u_of_edge, v_of_edge
# add nodes
if u not in self._node:
if u is None:
raise ValueError("None cannot be a node")
self._adj[u] = self.adjlist_inner_dict_factory()
self._node[u] = self.node_attr_dict_factory()
if v not in self._node:
if v is None:
raise ValueError("None cannot be a node")
self._adj[v] = self.adjlist_inner_dict_factory()
self._node[v] = self.node_attr_dict_factory()
# add the edge
datadict = self._adj[u].get(v, self.edge_attr_dict_factory())
datadict.update(attr)
self._adj[u][v] = datadict
self._adj[v][u] = datadict
nx._clear_cache(self)
| (self, u_of_edge, v_of_edge, **attr) | [
-0.018624629825353622,
0.0038063188549131155,
0.007947784848511219,
0.05140206217765808,
-0.01527315378189087,
-0.005046364851295948,
-0.03795785456895828,
0.05017637833952904,
0.028324756771326065,
-0.045158740133047104,
-0.018777839839458466,
0.0031192663591355085,
0.05063600838184357,
0.032595496624708176,
-0.011308836750686169,
0.07108958810567856,
0.01534975878894329,
0.014133651740849018,
-0.0001957022468559444,
0.026543688029050827,
-0.03362966328859329,
-0.03948995843529701,
0.01693931594491005,
0.013156935572624207,
0.01511036790907383,
0.020951511338353157,
-0.015464666299521923,
0.00355256418697536,
0.053891729563474655,
-0.020204611122608185,
-0.03075697086751461,
-0.0881725400686264,
-0.058947671204805374,
0.011634408496320248,
0.0535087026655674,
0.010657692328095436,
-0.006535377819091082,
0.022272950038313866,
-0.08250375837087631,
0.032844461500644684,
0.04213283583521843,
-0.03240398317575455,
0.04094545543193817,
0.00512296985834837,
0.05373851954936981,
0.0387239083647728,
-0.007713181897997856,
0.03529582545161247,
-0.046958960592746735,
-0.06825519353151321,
-0.0026045753620564938,
-0.03096763603389263,
0.0782521665096283,
0.015225275419652462,
-0.026773503050208092,
0.0357554592192173,
-0.02909080870449543,
0.038647301495075226,
-0.034319110214710236,
0.07714139670133591,
0.0022634430788457394,
-0.005261817015707493,
-0.001893583801575005,
-0.023460330441594124,
-0.04715047404170036,
0.03569800406694412,
-0.08326980471611023,
-0.02010885439813137,
-0.01484224945306778,
0.03723010793328285,
0.03370627015829086,
0.006363016087561846,
0.022272950038313866,
0.010131032206118107,
0.05197659879922867,
0.057760290801525116,
-0.0109545374289155,
0.03215501457452774,
0.015991326421499252,
0.0011640393640846014,
0.020472727715969086,
-0.014823097735643387,
-0.003997831605374813,
-0.016221141442656517,
0.06679970026016235,
0.02916741371154785,
-0.09376471489667892,
0.0092740124091506,
0.01191210187971592,
-0.039911288768053055,
-0.041443392634391785,
-0.03627254441380501,
-0.04366493970155716,
0.036923687905073166,
0.02330712042748928,
-0.012352582067251205,
0.03535328060388565,
-0.07763932645320892,
0.04787822440266609,
0.02075999788939953,
-0.021315384656190872,
-0.02296239696443081,
-0.01415280345827341,
-0.000738521630410105,
-0.052819255739450455,
-0.1389617621898651,
-0.041979625821113586,
-0.011059870012104511,
-0.03523837402462959,
-0.00900589395314455,
-0.04029431194067001,
-0.001238849014043808,
0.01758088357746601,
0.03881966322660446,
-0.03341900184750557,
0.034185051918029785,
0.007306217215955257,
-0.016096659004688263,
0.02083660289645195,
0.011988706886768341,
0.013855958357453346,
0.02510734088718891,
-0.013731474988162518,
-0.004464644473046064,
0.016575440764427185,
-0.06863822042942047,
-0.013453780673444271,
-0.01178761851042509,
0.0030737819615751505,
-0.056687816977500916,
0.01580938883125782,
-0.017954334616661072,
-0.04320530965924263,
0.03948995843529701,
0.019802434369921684,
-0.04021770879626274,
-0.023556087166070938,
0.030603760853409767,
0.04014110192656517,
0.008201539516448975,
0.009824611246585846,
-0.039106935262680054,
0.03301682323217392,
-0.0006427651387639344,
-0.06702951341867447,
-0.011289685033261776,
-0.04607800394296646,
-0.03209756314754486,
-0.03043139912188053,
0.009939519688487053,
0.002018067054450512,
0.005783689673990011,
-0.022885791957378387,
0.005549086257815361,
0.01793518289923668,
-0.009767157956957817,
-0.05266604572534561,
-0.03723010793328285,
0.009159103967249393,
0.013693172484636307,
-0.0185480248183012,
-0.013061179779469967,
0.03728755936026573,
0.0009324284037575126,
0.02089405618607998,
0.05546213313937187,
0.041443392634391785,
-0.011615256778895855,
-0.007895119488239288,
0.0537768229842186,
-0.027731066569685936,
-0.0801289975643158,
-0.03795785456895828,
0.03240398317575455,
-0.005395875778049231,
-0.010533208958804607,
0.02043442614376545,
-0.011308836750686169,
0.013990016654133797,
0.00428031338378787,
0.03336154669523239,
0.0028918448369950056,
0.03422335535287857,
-0.03140811622142792,
0.010485331527888775,
-0.01388468500226736,
0.016039205715060234,
0.008096207864582539,
0.01978328265249729,
-0.011232231743633747,
0.032442282885313034,
-0.05021468177437782,
-0.019936492666602135,
0.05320228263735771,
0.0207025445997715,
-0.023613540455698967,
0.0038063188549131155,
0.01447837520390749,
0.012314279563724995,
0.06986390799283981,
0.04040922224521637,
-0.023594388738274574,
0.026735199615359306,
0.026850108057260513,
0.03523837402462959,
-0.027443798258900642,
0.009537342004477978,
-0.029914313927292824,
-0.011758891865611076,
-0.034951101988554,
0.034989405423402786,
0.0014291650149971247,
0.03786209970712662,
0.05982862785458565,
-0.018816141411662102,
-0.011366290040314198,
-0.07465172559022903,
0.05446626618504524,
-0.03836003318428993,
0.023670993745326996,
0.003437656443566084,
0.0018253573216497898,
-0.005520359147340059,
-0.022387858480215073,
0.05519401654601097,
-0.07549438625574112,
0.009460736997425556,
-0.02342202700674534,
0.034395717084407806,
0.009623522870242596,
0.031848594546318054,
0.010111880488693714,
0.021928226575255394,
0.03194434940814972,
0.01524442620575428,
0.06185866519808769,
0.003064206335693598,
0.04102206230163574,
0.015052913688123226,
0.0003318559320177883,
0.001382483751513064,
-0.008278144523501396,
-0.024379592388868332,
0.0012687729904428124,
0.033055126667022705,
0.007248762995004654,
0.04067733883857727,
0.06304604560136795,
-0.055806856602430344,
-0.016230717301368713,
-0.030910180881619453,
-0.0024070776998996735,
-0.012237673625349998,
0.031388964504003525,
0.0025782424490898848,
-0.031523022800683975,
-0.020798301324248314,
-0.018030939623713493,
-0.0014148015761747956,
-0.01567533053457737,
0.010849205777049065,
0.018509721383452415,
0.018136272206902504,
0.06469305604696274,
-0.0018648568075150251,
-0.031791139394044876,
0.011758891865611076,
-0.0009982609190046787,
-0.05936899781227112,
-0.0003423292946536094,
-0.028343908488750458,
-0.011337563395500183,
0.06591873615980148,
-0.003952347207814455,
-0.0005999740096740425,
-0.03433826193213463,
-0.03960486873984337,
0.020262064412236214,
-0.030603760853409767,
-0.018136272206902504,
-0.05756877735257149,
-0.014468799345195293,
-0.03887711837887764,
0.05117224529385567,
-0.05879445746541023,
-0.015483818016946316,
0.0015452697407454252,
0.013492083176970482,
-0.011691862717270851,
-0.04642272740602493,
0.027003318071365356,
-0.016604168340563774,
-0.005970414727926254,
0.05944560468196869,
0.01325269229710102,
0.06159054860472679,
0.030144130811095238,
0.043971359729766846,
0.03753652796149254,
0.022981546819210052,
0.04967844486236572,
0.01431558933109045,
0.016326474025845528,
-0.046154607087373734,
-0.021679259836673737,
-0.033916935324668884,
0.07928633689880371,
-0.0019701889250427485,
-0.012697304598987103,
-0.032595496624708176,
-0.03579375892877579,
0.026064904406666756,
-0.025203097611665726,
0.046499330550432205,
-0.01038957480341196,
0.010408725589513779,
-0.0038374396972358227,
-0.03956656530499458,
0.019017230719327927,
0.0286311786621809,
-0.04347342625260353,
0.0338786318898201,
-0.036310844123363495,
-0.02828645519912243,
0.00239989603869617,
0.031312357634305954,
0.07541777938604355,
0.010552360676229,
0.04634612053632736,
0.036521509289741516,
-0.0011125702876597643,
-0.017734093591570854,
-0.003894893452525139,
0.04155829921364784,
-0.11161371320486069,
0.0272905882447958,
0.019486436620354652,
0.05032958835363388,
0.007694030646234751,
0.02384335547685623,
0.011356715112924576,
0.06679970026016235,
-0.04446929320693016,
-0.007066825870424509,
0.024590255692601204,
-0.05906257778406143,
0.012984574772417545,
-0.04209453612565994,
-0.010523634031414986,
0.06672309339046478,
-0.010399150662124157,
0.041903022676706314,
-0.011758891865611076,
-0.020932359620928764,
0.031388964504003525,
0.012122766114771366,
-0.0197641309350729,
-0.06940427422523499,
0.04102206230163574,
-0.013329297304153442,
-0.03554479405283928,
-0.010772600769996643,
0.05071261525154114,
0.0053479974158108234,
-0.053163979202508926,
0.011797194369137287,
0.012716456316411495,
0.03960486873984337,
0.037249259650707245,
-0.033782873302698135,
0.020300367847085,
-0.05224471911787987,
0.023460330441594124,
0.05117224529385567,
-0.020721696317195892,
0.013262268155813217,
-0.020262064412236214,
0.03855154663324356,
0.005328846164047718,
-0.01866293139755726,
0.013492083176970482,
0.006865737494081259,
0.0005628683720715344,
0.03780464455485344,
0.05400663614273071,
-0.046231213957071304,
0.11222656071186066,
0.018078817054629326,
0.034587230533361435,
0.03520007058978081,
-0.04607800394296646,
0.029052507132291794,
0.0586029477417469,
0.021621806547045708,
-0.0790565237402916,
-0.08426567167043686,
0.06898294389247894,
-0.006147563923150301,
-0.05710914731025696,
-0.07672006636857986,
0.028535421937704086,
0.021104721352458,
-0.012027010321617126,
0.04898899793624878,
0.0268884114921093,
0.015589149668812752,
-0.028209850192070007,
0.04312870278954506,
0.028803540393710136,
0.017724517732858658,
0.006750829517841339,
-0.007957360707223415,
-0.0400644987821579,
-0.0070333112962543964,
0.015866843983530998,
-0.02043442614376545,
0.05772198736667633,
-0.02549036592245102,
0.026064904406666756,
-0.001597935683093965,
0.028056640177965164,
0.011241806671023369,
0.014976308681070805,
0.06205017864704132,
0.023594388738274574,
-0.0427456796169281,
-0.0008121343562379479,
-0.00040157861076295376,
-0.022866640239953995,
0.03960486873984337,
0.004414372146129608,
-0.006669436581432819,
0.05952220782637596,
-0.03956656530499458,
0.004553219303488731,
-0.017082950100302696,
0.004495765082538128,
-0.06388869881629944,
0.02782682329416275,
0.009752794168889523,
-0.036636415868997574,
-0.030642064288258553,
-0.019879039376974106,
-0.02196653001010418,
-0.08480191230773926,
-0.051287151873111725,
-0.04151999577879906,
0.001626662677153945,
0.03581291064620018,
-0.04366493970155716,
0.03508516401052475,
-0.0007427109521813691,
0.025471216067671776,
0.016786105930805206,
-0.07047674804925919,
-0.011088596656918526,
-0.009130377322435379,
-0.042439259588718414,
0.008100995793938637,
0.004560400731861591,
0.02049187943339348,
-0.0053863003849983215,
-0.04592479392886162,
0.001554845366626978,
-0.059215787798166275,
0.06599534302949905,
0.09567984193563461,
-0.04979335144162178,
-0.0419413261115551,
-0.014602858573198318,
0.029339775443077087,
-0.038302578032016754,
-0.02922486886382103,
-0.057224053889513016,
0.04887409135699272,
0.0011652362300083041,
-0.005266604479402304,
-0.033859480172395706,
-0.03841748833656311,
-0.09468397498130798,
0.01798306033015251,
-0.024551954120397568,
0.027597008273005486,
0.01415280345827341,
0.037249259650707245,
0.030373945832252502,
0.01790645532310009,
0.008713836781680584,
-0.0015500575536862016,
0.02995261736214161,
0.0002705119550228119,
-0.04201792925596237,
-0.03339985013008118,
0.028343908488750458,
0.03903032839298248,
0.04726538434624672,
-0.022387858480215073,
-0.04726538434624672,
-0.009360193274915218,
-0.03290191665291786,
-0.01191210187971592,
-0.04718877747654915,
-0.027980033308267593,
-0.008608505129814148,
0.017647912725806236,
0.024283835664391518,
-0.044239480048418045,
0.04228604584932327,
0.010772600769996643,
0.003854196984320879,
0.029263170436024666,
0.026677746325731277,
0.05936899781227112,
0.08035881072282791,
0.058143313974142075,
0.010475755669176579,
-0.02382420375943184,
0.04106036573648453,
0.010590663179755211,
-0.029914313927292824,
0.05373851954936981,
0.0338786318898201,
0.03355306014418602,
-0.00762221310287714,
-0.0527043491601944,
0.07407718896865845,
-0.05917748436331749,
-0.028937598690390587,
0.027309739962220192,
0.050559405237436295,
-0.021315384656190872,
0.03274870663881302,
-0.00841699168086052,
0.04588649049401283,
-0.010341696441173553,
0.0408688522875309,
0.05370021611452103,
0.0535087026655674,
-0.028573723509907722,
-0.02830560691654682,
0.027175679802894592,
0.03606187924742699,
-0.05959881469607353,
-0.02549036592245102,
-0.020338669419288635,
0.008914925158023834,
0.02575848437845707,
-0.053087376058101654,
0.029454683884978294,
-0.09744176268577576,
-0.05979032814502716,
0.04546516016125679,
0.00010937181650660932,
0.08510833233594894,
0.0424775592982769,
-0.03347645327448845,
-0.012630275450646877,
-0.03416590020060539,
0.0025471216067671776,
0.022943245247006416,
-0.0432819128036499,
-0.013472932390868664,
-0.0046178544871509075,
0.0053863003849983215,
-0.0025423336774110794,
0.02608405612409115,
0.0031767201144248247,
-0.03355306014418602,
0.006650285329669714,
-0.01997479423880577,
-0.04500553011894226,
0.0010413513518869877,
-0.016786105930805206,
-0.043626636266708374,
-0.08418907225131989,
-0.004744731821119785,
-0.05737726390361786,
0.0021233991719782352,
0.010849205777049065,
-0.03587036579847336,
-0.0970587357878685,
0.00175593385938555,
0.02556697092950344,
0.009106438606977463,
0.015684906393289566,
0.015761511400341988,
0.022272950038313866,
0.05910088121891022,
-0.021736713126301765,
-0.0010024503571912646,
-0.03753652796149254,
-0.08687025308609009,
-0.006295986473560333,
0.0069471304304897785,
-0.014162378385663033,
-0.0019103410886600614,
-0.0021114295814186335,
0.025069037452340126,
0.025949997827410698,
-0.019725827500224113,
-0.033112578094005585,
-0.014976308681070805,
0.028860993683338165,
0.007038098759949207,
-0.029607893899083138,
0.02543291263282299,
-0.005970414727926254,
-0.023517783731222153,
-0.048222947865724564,
-0.055155713111162186,
0.026984166353940964,
0.043167006224393845,
0.0011113733053207397,
-0.024188078939914703,
-0.04240095615386963,
-0.018701234832406044,
-0.0588710643351078,
0.05917748436331749,
0.006142775993794203,
0.04454590007662773,
-0.005180424079298973,
-0.05446626618504524,
-0.02535630762577057,
-0.011414168402552605,
-0.04845276102423668,
0.012793061323463917,
0.032921068370342255,
-0.013942139223217964,
-0.02556697092950344,
0.00642525777220726,
-0.017427673563361168,
-0.03753652796149254,
0.03428080677986145,
0.0109545374289155,
0.0440862700343132,
-0.04952523484826088,
0.056955933570861816,
0.03094848431646824,
0.019553467631340027,
0.010657692328095436,
-0.014114500023424625,
0.015694482252001762,
-0.03215501457452774,
-0.015292304567992687,
0.025203097611665726,
0.09361150115728378,
0.013089906424283981,
-0.06090110167860985,
0.014382618479430676,
-0.003899681381881237,
0.04481401666998863,
0.012410035356879234,
-0.017006345093250275,
-0.01643180660903454,
0.029320623725652695,
0.07193224132061005,
-0.007009372115135193,
-0.022541068494319916,
-0.0008815578185021877,
-0.010839629918336868,
-0.0267543513327837,
0.010600239038467407,
0.06833180040121078,
-0.056955933570861816,
-0.002755391877144575,
0.03621508926153183,
0.013472932390868664,
-0.03290191665291786,
0.03188689798116684,
0.005620903335511684,
-0.003466383321210742,
-0.006554529070854187,
-0.005869870074093342,
0.030603760853409767,
-0.0033012034837156534,
-0.05228302255272865,
0.02256021834909916,
-0.038972873240709305,
-0.008464870043098927,
-0.013396327383816242,
0.006473136134445667,
0.06139903515577316,
0.011691862717270851,
-0.05906257778406143,
-0.022675126791000366,
0.021123873069882393,
-0.022004831582307816,
0.019017230719327927,
0.0015680118231102824,
-0.05638139694929123,
-0.0037297136150300503,
-0.0720471516251564,
-0.004514916334301233,
-0.021143022924661636,
-0.03546818718314171,
-0.06940427422523499,
-0.022579370066523552,
-0.033265791833400726,
0.012343006208539009,
-0.002328078728169203,
0.019859887659549713,
0.03215501457452774,
-0.01511036790907383,
0.03452977538108826,
0.02336457371711731,
-0.027060771360993385,
-0.0672210231423378,
0.0032030532602220774,
0.010849205777049065,
-0.014918854460120201,
-0.025279702618718147,
0.00147704326082021,
0.01701592095196247,
-0.05339379608631134,
0.03778549283742905,
0.038053613156080246,
0.01798306033015251,
0.014756068587303162,
-0.07357925176620483,
0.03407014533877373,
-0.010801327414810658,
-0.00512296985834837,
0.054159846156835556,
-0.0077227577567100525,
-0.013262268155813217,
-0.07323452830314636,
-0.029531288892030716,
-0.05837313085794449,
-0.0013142572715878487,
-0.03029734082520008,
0.005017637740820646,
0.08265696465969086,
0.056879330426454544,
0.05611328035593033,
-0.030910180881619453,
-0.015263577923178673,
-0.01181634608656168,
0.018126696348190308,
0.011634408496320248,
0.06971069425344467,
-0.04052412882447243,
-0.011988706886768341,
-0.028995051980018616,
-0.023594388738274574,
0.015464666299521923,
-0.03215501457452774,
0.022732580080628395,
0.07763932645320892,
-0.013712323270738125,
0.001376498956233263,
0.039375051856040955,
-0.004438311327248812,
-0.0197641309350729,
0.037632282823324203,
0.04014110192656517,
-0.03866645321249962,
0.03740246966481209,
-0.006377379409968853,
0.016632895916700363,
-0.09897386282682419,
-0.027213983237743378,
0.016154112294316292,
0.004998486489057541,
0.0074498518370091915,
-0.026869259774684906,
0.06438663601875305,
0.028918446972966194,
0.08587438613176346
]
|
30,118 | networkx.classes.graph | add_edges_from | Add all the edges in ebunch_to_add.
Parameters
----------
ebunch_to_add : container of edges
Each edge given in the container will be added to the
graph. The edges must be given as 2-tuples (u, v) or
3-tuples (u, v, d) where d is a dictionary containing edge data.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edge : add a single edge
add_weighted_edges_from : convenient way to add weighted edges
Notes
-----
Adding the same edge twice has no effect but any edge data
will be updated when each duplicate edge is added.
Edge attributes specified in an ebunch take precedence over
attributes specified via keyword arguments.
When adding edges from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_edges)`, and pass this
object to `G.add_edges_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edges_from([(0, 1), (1, 2)]) # using a list of edge tuples
>>> e = zip(range(0, 3), range(1, 4))
>>> G.add_edges_from(e) # Add the path graph 0-1-2-3
Associate data to edges
>>> G.add_edges_from([(1, 2), (2, 3)], weight=3)
>>> G.add_edges_from([(3, 4), (1, 4)], label="WN2898")
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.Graph([(1, 2), (2, 3), (3, 4)])
>>> # Grow graph by one new node, adding edges to all existing nodes.
>>> # wrong way - will raise RuntimeError
>>> # G.add_edges_from(((5, n) for n in G.nodes))
>>> # correct way - note that there will be no self-edge for node 5
>>> G.add_edges_from(list((5, n) for n in G.nodes))
| def add_edges_from(self, ebunch_to_add, **attr):
"""Add all the edges in ebunch_to_add.
Parameters
----------
ebunch_to_add : container of edges
Each edge given in the container will be added to the
graph. The edges must be given as 2-tuples (u, v) or
3-tuples (u, v, d) where d is a dictionary containing edge data.
attr : keyword arguments, optional
Edge data (or labels or objects) can be assigned using
keyword arguments.
See Also
--------
add_edge : add a single edge
add_weighted_edges_from : convenient way to add weighted edges
Notes
-----
Adding the same edge twice has no effect but any edge data
will be updated when each duplicate edge is added.
Edge attributes specified in an ebunch take precedence over
attributes specified via keyword arguments.
When adding edges from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_edges)`, and pass this
object to `G.add_edges_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edges_from([(0, 1), (1, 2)]) # using a list of edge tuples
>>> e = zip(range(0, 3), range(1, 4))
>>> G.add_edges_from(e) # Add the path graph 0-1-2-3
Associate data to edges
>>> G.add_edges_from([(1, 2), (2, 3)], weight=3)
>>> G.add_edges_from([(3, 4), (1, 4)], label="WN2898")
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.Graph([(1, 2), (2, 3), (3, 4)])
>>> # Grow graph by one new node, adding edges to all existing nodes.
>>> # wrong way - will raise RuntimeError
>>> # G.add_edges_from(((5, n) for n in G.nodes))
>>> # correct way - note that there will be no self-edge for node 5
>>> G.add_edges_from(list((5, n) for n in G.nodes))
"""
for e in ebunch_to_add:
ne = len(e)
if ne == 3:
u, v, dd = e
elif ne == 2:
u, v = e
dd = {} # doesn't need edge_attr_dict_factory
else:
raise NetworkXError(f"Edge tuple {e} must be a 2-tuple or 3-tuple.")
if u not in self._node:
if u is None:
raise ValueError("None cannot be a node")
self._adj[u] = self.adjlist_inner_dict_factory()
self._node[u] = self.node_attr_dict_factory()
if v not in self._node:
if v is None:
raise ValueError("None cannot be a node")
self._adj[v] = self.adjlist_inner_dict_factory()
self._node[v] = self.node_attr_dict_factory()
datadict = self._adj[u].get(v, self.edge_attr_dict_factory())
datadict.update(attr)
datadict.update(dd)
self._adj[u][v] = datadict
self._adj[v][u] = datadict
nx._clear_cache(self)
| (self, ebunch_to_add, **attr) | [
-0.005170237272977829,
-0.001166440430097282,
-0.026529796421527863,
0.030012473464012146,
-0.06404026597738266,
0.012250824831426144,
-0.022596420720219612,
0.015866661444306374,
0.03320834040641785,
-0.025218671187758446,
-0.01103188842535019,
0.021449187770485878,
0.032327428460121155,
0.05584573373198509,
0.0018988266820088029,
0.059574246406555176,
0.018099671229720116,
0.0053418101742863655,
0.0029193018563091755,
0.03863721713423729,
-0.037715330719947815,
-0.04181259870529175,
0.008844972588121891,
0.02196134440600872,
0.0001041921932483092,
0.037346579134464264,
-0.008640109561383724,
0.009541507810354233,
0.024071436375379562,
0.02331344224512577,
-0.028004812076687813,
-0.10202191770076752,
-0.06170482560992241,
-0.03966153413057327,
0.02857843041419983,
0.02700098231434822,
-0.03093435801565647,
-0.022145722061395645,
-0.06821947544813156,
0.041157037019729614,
0.07686470448970795,
-0.024255814030766487,
0.04634007811546326,
-0.004084461834281683,
0.07497996836900711,
0.03941569849848747,
-0.014278971590101719,
0.024255814030766487,
-0.03828895092010498,
-0.08055225014686584,
0.009177875705063343,
-0.01830453611910343,
0.0666625127196312,
0.029152046889066696,
0.0028245525900274515,
0.025444021448493004,
-0.05510822683572769,
0.02476797252893448,
-0.0009110014652833343,
0.06686738133430481,
0.005326445680111647,
-0.018478669226169586,
-0.0046427142806351185,
-0.03830943629145622,
-0.04658591374754906,
0.0040793404914438725,
-0.10947894304990768,
-0.06367151439189911,
-0.023764142766594887,
0.0061766281723976135,
0.009961477480828762,
0.009797587059438229,
-0.00613053422421217,
0.006939744111150503,
0.017823107540607452,
0.030852412804961205,
-0.004494188353419304,
0.036977823823690414,
-0.008127951063215733,
-0.013930704444646835,
0.008542799390852451,
0.02773848921060562,
-0.022534962743520737,
-0.00577202346175909,
0.08366616815328598,
0.036137886345386505,
-0.06957157701253891,
0.05191235989332199,
0.014237998984754086,
-0.042529620230197906,
0.00045454042265191674,
-0.04732342064380646,
-0.025341589003801346,
0.021654050797224045,
0.059820082038640976,
-0.00294490996748209,
0.0034032915718853474,
-0.04707758501172066,
0.04453727975487709,
0.0033700012136250734,
-0.019666876643896103,
-0.05191235989332199,
0.00012379825056996197,
-0.0006907734205015004,
-0.05310056731104851,
-0.12422910332679749,
-0.04025563597679138,
-0.05547697842121124,
-0.018939612433314323,
-0.04183308407664299,
-0.06592500954866409,
0.023477332666516304,
0.05486239120364189,
0.015118910931050777,
-0.04277545586228371,
0.03435557335615158,
0.048265792429447174,
-0.022350585088133812,
0.01496526412665844,
0.0014289214741438627,
0.0030294160824269056,
0.07067783921957016,
0.009213726967573166,
0.04367685317993164,
0.01545693539083004,
-0.027451680973172188,
0.003226596862077713,
0.0025031734257936478,
0.01950298622250557,
-0.10021912306547165,
0.0362812876701355,
-0.04367685317993164,
-0.04929010942578316,
0.031139221042394638,
0.012353256344795227,
-0.05051928758621216,
-0.03091387078166008,
0.0012592690763995051,
0.018673289567232132,
0.024583594873547554,
-0.01098067220300436,
-0.023374902084469795,
0.048511628061532974,
0.023620737716555595,
-0.07952792942523956,
-0.011871827766299248,
-0.055395033210515976,
0.0018885835306718946,
-0.02857843041419983,
0.008481340482831001,
-0.01718803122639656,
0.007892358116805553,
-0.048757463693618774,
0.010704107582569122,
0.004947448614984751,
0.0010294381063431501,
-0.08686203509569168,
0.031098248437047005,
-0.020793624222278595,
-0.009782222099602222,
-0.05043734237551689,
-0.008465975522994995,
0.019810279831290245,
-0.009367373771965504,
-0.007375078741461039,
-0.001932116923853755,
0.008133072406053543,
-0.01645052246749401,
-0.02761557139456272,
0.038493812084198,
-0.0035057230852544308,
-0.058836739510297775,
0.0034954799339175224,
0.01103188842535019,
-0.015600339509546757,
0.0040050772950053215,
0.04535673186182976,
0.0027554112020879984,
-0.0010448028333485126,
-0.013152223080396652,
0.0010652891360223293,
-0.006473680026829243,
0.009054957889020443,
-0.017095841467380524,
0.013152223080396652,
-0.011359669268131256,
-0.010847511701285839,
0.006494166329503059,
0.029971500858664513,
-0.024747485294938087,
0.024071436375379562,
-0.03005344606935978,
-0.002001258311793208,
0.060188837349414825,
-0.004501870833337307,
-0.01814064383506775,
-0.037715330719947815,
0.029377397149801254,
-0.008665717206895351,
0.0796918198466301,
-0.005521066021174192,
-0.026099583134055138,
0.038227491080760956,
0.003252204740419984,
0.03880110755562782,
-0.039067428559064865,
-0.033679526299238205,
-0.049863725900650024,
0.020199520513415337,
-0.0006360365077853203,
0.009275185875594616,
-0.019820524379611015,
0.06256525218486786,
0.03892402723431587,
-0.020547788590192795,
-0.012650308199226856,
-0.05744366720318794,
0.011687451042234898,
-0.003946179058402777,
-0.01496526412665844,
0.014801372773945332,
-0.006878285203129053,
-0.0182635635137558,
-0.06158190593123436,
0.03812506049871445,
-0.05359223857522011,
0.002062717219814658,
-0.0022342903539538383,
0.040542446076869965,
0.05916452035307884,
0.04732342064380646,
-0.027799949049949646,
0.02749265357851982,
-0.013848758302628994,
0.08555091172456741,
0.07121048122644424,
-0.028557943180203438,
0.030360739678144455,
0.031815268099308014,
0.01226106844842434,
-0.015436449088156223,
-0.0017631046939641237,
-0.03142603114247322,
-0.015190613456070423,
0.032921530306339264,
-0.016511982306838036,
0.04148481786251068,
0.026570769026875496,
-0.06236038729548454,
0.01043266337364912,
0.014739913865923882,
0.008522313088178635,
0.014022892341017723,
0.0091317817568779,
-0.008614501915872097,
-0.030975330621004105,
-0.020578518509864807,
-0.02870134823024273,
0.02698049508035183,
-0.03126213699579239,
0.07116951048374176,
0.005920549388974905,
0.028435025364160538,
0.04257059097290039,
-0.027799949049949646,
0.020670706406235695,
0.014074108563363552,
-0.0006581233465112746,
-0.07313619554042816,
0.006222722586244345,
-0.005259864963591099,
-0.018109915778040886,
0.05703394114971161,
0.03695733845233917,
0.008081857115030289,
-0.008588893339037895,
-0.022801285609602928,
0.013172709383070469,
-0.05764853209257126,
-0.019666876643896103,
-0.024501649662852287,
0.003554378170520067,
-0.03421217203140259,
0.027164872735738754,
-0.06481874734163284,
-0.005541552323848009,
-0.004658079240471125,
0.02687806449830532,
0.0007906442624516785,
-0.037489984184503555,
0.05437071993947029,
-0.04707758501172066,
0.002783579984679818,
0.005449363496154547,
0.02710341475903988,
0.05510822683572769,
0.013172709383070469,
0.020793624222278595,
0.018376236781477928,
0.059943001717329025,
0.07416051626205444,
-0.012670794501900673,
0.03310590982437134,
-0.00683731259778142,
-0.036875393241643906,
-0.02074240893125534,
0.06502360850572586,
0.015129154548048973,
-0.01705486886203289,
-0.0190010704100132,
-0.03876013681292534,
0.061540935188531876,
-0.01355170737951994,
-0.006330275908112526,
0.002911619609221816,
-0.018365994095802307,
-0.005633740685880184,
-0.016522224992513657,
0.006560747046023607,
0.027308277785778046,
-0.062483303248882294,
0.04867551848292351,
-0.04457825422286987,
-0.01764897257089615,
0.015364747494459152,
0.052936676889657974,
0.09882605075836182,
0.029029129073023796,
0.052322085946798325,
0.004891111049801111,
-0.004929522983729839,
-0.017567027360200882,
-0.004742585122585297,
0.07272647321224213,
-0.05793533846735954,
0.03939521312713623,
0.019697606563568115,
0.010704107582569122,
-0.014258485287427902,
-0.03163089230656624,
0.0162968747317791,
0.06871114671230316,
-0.03370001167058945,
-0.014289215207099915,
0.027308277785778046,
-0.04662688449025154,
0.014371160417795181,
-0.00300636887550354,
-0.029910041019320488,
0.061295099556446075,
-0.023600252345204353,
0.04207891970872879,
-0.03386390209197998,
-0.0009391701896674931,
0.04080876708030701,
0.022616907954216003,
-0.04000980034470558,
-0.05875479429960251,
0.04929010942578316,
0.003416095394641161,
-0.0034673111513257027,
-0.0004708654887508601,
0.04134141281247139,
-0.0020550349727272987,
-0.005057562608271837,
0.0009916663402691483,
-0.024686027318239212,
0.020998487249016762,
0.054165855050086975,
-0.0362812876701355,
0.020291708409786224,
-0.022493990138173103,
0.010960185900330544,
0.028783293440937996,
-0.02894718386232853,
-0.0069192578084766865,
-0.014955020509660244,
0.045807432383298874,
-0.010319988243281841,
0.05371515452861786,
-0.005577403120696545,
0.010622161440551281,
-0.007856507785618305,
0.04847065731883049,
0.08661620318889618,
-0.07711054384708405,
0.12644162774085999,
-0.01704462617635727,
0.06985838711261749,
-0.014371160417795181,
-0.010888484306633472,
0.012978089973330498,
0.052936676889657974,
0.06719516217708588,
-0.06408123672008514,
-0.09497462213039398,
0.048511628061532974,
-0.015446692705154419,
-0.03892402723431587,
-0.05375612899661064,
0.011400642804801464,
0.001277834759093821,
0.028127729892730713,
0.06871114671230316,
0.02685757726430893,
-0.026652714237570763,
-0.030729494988918304,
0.01743386685848236,
0.021776968613266945,
0.01030974555760622,
0.03202013298869133,
-0.007385321892797947,
-0.024706512689590454,
0.008517191745340824,
0.0033034207299351692,
-0.01903180032968521,
0.007656765636056662,
-0.03525697439908981,
0.05166652426123619,
0.016962680965662003,
0.06543333828449249,
0.021633563563227654,
0.007856507785618305,
0.02464505471289158,
0.020424870774149895,
-0.02010733261704445,
-0.017024138942360878,
0.015344261191785336,
-0.05617351457476616,
0.036998309195041656,
0.010048544965684414,
-0.01889863982796669,
0.04453727975487709,
-0.021899886429309845,
0.005139507818967104,
-0.021510645747184753,
-0.013940947130322456,
-0.04773314669728279,
0.038821592926979065,
-0.015467179007828236,
-0.020773138850927353,
-0.029766635969281197,
0.0073136198334395885,
-0.07981473952531815,
-0.048265792429447174,
-0.05830409377813339,
-0.038575757294893265,
0.007887236773967743,
0.03818651661276817,
-0.02552596665918827,
0.042283784598112106,
-0.03351563587784767,
0.022534962743520737,
0.0052496218122541904,
-0.06080342456698418,
0.016614412888884544,
0.049617890268564224,
-0.036260802298784256,
-0.03839138150215149,
0.031016303226351738,
0.016716845333576202,
-0.03679344803094864,
-0.04527478665113449,
0.025915207341313362,
-0.02134675532579422,
0.021449187770485878,
0.07346397638320923,
-0.020209763199090958,
-0.029664205387234688,
0.0005044758436270058,
0.037469495087862015,
-0.055272117257118225,
0.0016337847337126732,
-0.06436804682016373,
0.04037855565547943,
0.006381491664797068,
-0.010693863965570927,
-0.032081592828035355,
-0.03583059087395668,
-0.0669083520770073,
0.0411980077624321,
-0.03927229344844818,
0.065679170191288,
0.0036235195584595203,
0.002425069222226739,
0.024481164291501045,
0.014483834616839886,
-0.009285428561270237,
-0.03167186677455902,
0.03206110745668411,
-0.02933642454445362,
-0.06612987071275711,
-0.026529796421527863,
0.05691102147102356,
0.06104926019906998,
0.029008641839027405,
-0.002179233357310295,
-0.035625725984573364,
0.03550281003117561,
-0.06240135803818703,
-0.003649127436801791,
-0.01619444414973259,
0.02761557139456272,
0.014063864946365356,
0.011677207425236702,
0.05854992941021919,
-0.028250647708773613,
0.04236572980880737,
0.008363544009625912,
-0.015262315049767494,
0.03550281003117561,
0.005946157034486532,
0.03263472393155098,
0.040296610444784164,
0.02405095100402832,
-0.021510645747184753,
-0.013930704444646835,
0.04064487665891647,
0.013305870816111565,
-0.00908568687736988,
0.07534871995449066,
0.041423358023166656,
0.018560614436864853,
0.00841476023197174,
-0.04136189818382263,
0.029623232781887054,
0.002152344910427928,
-0.055272117257118225,
0.02550547942519188,
0.026447851210832596,
0.005241939332336187,
0.05457558110356331,
0.042488645762205124,
0.03128262609243393,
0.029520800337195396,
0.011789882555603981,
0.06920281797647476,
0.01974882185459137,
-0.057238806039094925,
-0.007620914373546839,
0.03962055966258049,
0.02073216624557972,
-0.027697516605257988,
0.0033418324310332537,
-0.04441436380147934,
0.025075268000364304,
0.009480048902332783,
-0.029377397149801254,
0.039927855134010315,
-0.08374811708927155,
-0.055026281625032425,
0.04953594505786896,
-0.012947360053658485,
0.07637303322553635,
0.043103236705064774,
-0.08055225014686584,
-0.0019922954961657524,
-0.007031932473182678,
0.018314778804779053,
0.013090764172375202,
-0.05396099016070366,
-0.01903180032968521,
-0.04576646164059639,
-0.00847621913999319,
0.0022150843869894743,
0.013295628130435944,
-0.04351296275854111,
-0.03177429735660553,
-0.0166656281799078,
0.011748909950256348,
-0.02749265357851982,
-0.0003521087928675115,
-0.02528013102710247,
-0.048265792429447174,
-0.05211722105741501,
-0.029602745547890663,
-0.08374811708927155,
0.006740002427250147,
0.02820967510342598,
-0.05629643425345421,
-0.06555625796318054,
-0.005679834634065628,
0.03068852238357067,
-0.013029305264353752,
0.026099583134055138,
0.04025563597679138,
-0.028885724022984505,
0.06207357719540596,
-0.014934534206986427,
0.0037874102126806974,
-0.020045872777700424,
-0.06358956545591354,
0.004665761720389128,
-0.003672174643725157,
-0.039804939180612564,
-0.00908056553453207,
0.010591432452201843,
-0.003385365940630436,
-0.05387904495000839,
-0.011165049858391285,
-0.026468338444828987,
0.01915471814572811,
0.05375612899661064,
0.03595350682735443,
-0.024112408980727196,
0.0061151692643761635,
0.009510778822004795,
-0.02464505471289158,
-0.022371072322130203,
-0.02159259095788002,
0.04687272012233734,
0.0683833658695221,
0.013418545946478844,
-0.021776968613266945,
-0.04916718974709511,
-0.06768683344125748,
-0.05953327193856239,
0.07178410142660141,
0.024870403110980988,
0.008460854180157185,
0.008506948128342628,
-0.04502895101904869,
-0.014627239666879177,
0.0026068855077028275,
-0.056009624153375626,
-0.003587668528780341,
0.018243076279759407,
0.0006971753900870681,
-0.011923043988645077,
-0.01829429157078266,
-0.002929545007646084,
-0.02884475141763687,
0.025710344314575195,
-0.03140554204583168,
0.030032958835363388,
-0.07112853229045868,
0.07313619554042816,
0.015262315049767494,
-0.009526142850518227,
0.0008316169260069728,
0.024952350184321404,
0.0019449208630248904,
-0.06035272777080536,
-0.02185891382396221,
-0.015446692705154419,
0.04916718974709511,
0.01802797056734562,
-0.0779709666967392,
0.017864080145955086,
-0.0017195713007822633,
0.053182512521743774,
0.010570946149528027,
-0.028127729892730713,
-0.012066448107361794,
0.021817941218614578,
0.06330275535583496,
-0.011912800371646881,
0.004535160958766937,
-0.005915427580475807,
-0.009182997047901154,
0.01226106844842434,
0.0012887181947007775,
0.053182512521743774,
-0.036629557609558105,
0.01190255768597126,
0.031016303226351738,
0.01655295491218567,
0.003807896515354514,
0.05064220726490021,
0.028742320835590363,
-0.06145898997783661,
-0.03425314277410507,
-0.03384341672062874,
0.03646566718816757,
-0.0188781525939703,
-0.030463172122836113,
-0.03175381198525429,
-0.012097177095711231,
0.010939699597656727,
-0.017126571387052536,
-0.03126213699579239,
0.06731808185577393,
-0.012803955934941769,
-0.033556606620550156,
-0.04842968285083771,
0.01715730130672455,
0.010104881599545479,
-0.00901398528367281,
0.006632449105381966,
-0.03806360065937042,
0.01680903322994709,
-0.041177522391080856,
0.027185359969735146,
0.024112408980727196,
-0.032716669142246246,
-0.017341677099466324,
-0.023477332666516304,
-0.03484724462032318,
-0.0045274789445102215,
-0.016757817938923836,
0.028557943180203438,
0.048511628061532974,
-0.008465975522994995,
0.03966153413057327,
0.04371782764792442,
-0.02476797252893448,
-0.07706957310438156,
0.036260802298784256,
-0.013992163352668285,
0.03398682177066803,
-0.034539952874183655,
0.022657880559563637,
0.022596420720219612,
-0.020680949091911316,
0.03140554204583168,
-0.0015889708884060383,
0.05064220726490021,
0.0075031183660030365,
-0.06473679840564728,
0.005603011231869459,
0.0009026788757182658,
0.01742362231016159,
0.048265792429447174,
-0.008102343417704105,
-0.033781956881284714,
-0.044455334544181824,
-0.003930814564228058,
-0.031016303226351738,
-0.004937205463647842,
-0.028762806206941605,
-0.010325109586119652,
0.056870050728321075,
0.044086579233407974,
0.06281108409166336,
-0.009602966718375683,
-0.0404605008661747,
-0.04379977285861969,
0.057115886360406876,
-0.00007074185850797221,
0.032081592828035355,
-0.017597757279872894,
-0.027697516605257988,
-0.046790774911642075,
0.013049791567027569,
-0.025669371709227562,
-0.036977823823690414,
0.036260802298784256,
0.048388708382844925,
-0.01368486788123846,
-0.011789882555603981,
0.05629643425345421,
0.011400642804801464,
0.010340474545955658,
0.03304444998502731,
0.011206022463738918,
-0.04277545586228371,
0.030237821862101555,
-0.04281643033027649,
0.006166385021060705,
-0.08202726393938065,
-0.008419881574809551,
-0.011513317003846169,
0.03238888829946518,
0.008793757297098637,
0.0031676986254751682,
0.057730477303266525,
0.024214841425418854,
0.05670616030693054
]
|
30,119 | networkx.classes.graph | add_node | Add a single node `node_for_adding` and update node attributes.
Parameters
----------
node_for_adding : node
A node can be any hashable Python object except None.
attr : keyword arguments, optional
Set or change node attributes using key=value.
See Also
--------
add_nodes_from
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_node(1)
>>> G.add_node("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_node(K3)
>>> G.number_of_nodes()
3
Use keywords set/change node attributes:
>>> G.add_node(1, size=10)
>>> G.add_node(3, weight=0.4, UTM=("13S", 382871, 3972649))
Notes
-----
A hashable object is one that can be used as a key in a Python
dictionary. This includes strings, numbers, tuples of strings
and numbers, etc.
On many platforms hashable items also include mutables such as
NetworkX Graphs, though one should be careful that the hash
doesn't change on mutables.
| def add_node(self, node_for_adding, **attr):
"""Add a single node `node_for_adding` and update node attributes.
Parameters
----------
node_for_adding : node
A node can be any hashable Python object except None.
attr : keyword arguments, optional
Set or change node attributes using key=value.
See Also
--------
add_nodes_from
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_node(1)
>>> G.add_node("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_node(K3)
>>> G.number_of_nodes()
3
Use keywords set/change node attributes:
>>> G.add_node(1, size=10)
>>> G.add_node(3, weight=0.4, UTM=("13S", 382871, 3972649))
Notes
-----
A hashable object is one that can be used as a key in a Python
dictionary. This includes strings, numbers, tuples of strings
and numbers, etc.
On many platforms hashable items also include mutables such as
NetworkX Graphs, though one should be careful that the hash
doesn't change on mutables.
"""
if node_for_adding not in self._node:
if node_for_adding is None:
raise ValueError("None cannot be a node")
self._adj[node_for_adding] = self.adjlist_inner_dict_factory()
attr_dict = self._node[node_for_adding] = self.node_attr_dict_factory()
attr_dict.update(attr)
else: # update attr even if node already exists
self._node[node_for_adding].update(attr)
nx._clear_cache(self)
| (self, node_for_adding, **attr) | [
-0.013624663464725018,
0.029897034168243408,
0.03524761274456978,
0.04129688814282417,
0.011666462756693363,
0.022137779742479324,
-0.0668913945555687,
0.050049033015966415,
0.04052463918924332,
-0.04317234829068184,
-0.01481980923563242,
0.01684236340224743,
0.05302770435810089,
0.058580536395311356,
-0.019324589520692825,
-0.005539041478186846,
0.002198379021137953,
0.019067173823714256,
-0.03379505127668381,
0.014654328115284443,
-0.021365532651543617,
0.048578083515167236,
0.03120250254869461,
0.017485903576016426,
0.01810186356306076,
0.003024638630449772,
0.03864917904138565,
0.00060619181022048,
0.009253187105059624,
0.0125582255423069,
-0.006113631185144186,
-0.09583231806755066,
-0.05512380599975586,
-0.014663521200418472,
0.0297683272510767,
0.01950845867395401,
-0.018258152529597282,
0.04129688814282417,
-0.06979652494192123,
-0.005630976054817438,
0.040782056748867035,
-0.009372701868414879,
0.01650220714509487,
-0.02108972892165184,
0.029566071927547455,
0.022229714319109917,
0.024730326607823372,
0.07222358882427216,
-0.0746874287724495,
-0.06284628808498383,
-0.005198884755373001,
-0.04512135684490204,
0.04107624664902687,
0.033831823617219925,
-0.031625401228666306,
-0.006086050998419523,
-0.015426576137542725,
-0.0047116330824792385,
-0.021291984245181084,
0.0775190070271492,
0.03131282329559326,
0.010921794921159744,
-0.01998651772737503,
-0.06137533858418465,
-0.04776906222105026,
0.004895501770079136,
-0.08619759976863861,
-0.02074037864804268,
-0.0008256849250756204,
0.037729837000370026,
0.019471684470772743,
-0.004716229625046253,
0.04008335620164871,
0.00240638037212193,
0.07347389310598373,
0.028554793447256088,
-0.013560310006141663,
0.021236823871731758,
-0.006936443038284779,
0.027635451406240463,
0.010324222035706043,
0.006541125476360321,
-0.00988293718546629,
0.006793945096433163,
0.020335868000984192,
0.006876685656607151,
-0.04390782117843628,
-0.0009928904473781586,
-0.013413215056061745,
-0.04817357286810875,
-0.04975484311580658,
-0.018561536446213722,
0.008890046738088131,
0.025539349764585495,
0.05696249380707741,
-0.020666830241680145,
0.04008335620164871,
-0.0502329021692276,
0.06446433067321777,
0.030816378071904182,
-0.013734985142946243,
0.015141579322516918,
-0.004762196913361549,
-0.013155798427760601,
-0.021770043298602104,
-0.08759500086307526,
-0.03886982426047325,
0.0023385786917060614,
-0.020299093797802925,
0.03429149463772774,
-0.0651630312204361,
-0.025281932204961777,
0.011721623130142689,
0.01823057234287262,
0.006761767901480198,
0.0269551370292902,
-0.006568705663084984,
0.003704952308908105,
-0.0022374510299414396,
0.0079569136723876,
-0.004148535430431366,
0.024711940437555313,
0.0033831822220236063,
0.005391946993768215,
0.011933072470128536,
-0.03425472229719162,
0.018138637766242027,
-0.007428291719406843,
-0.009570361115038395,
-0.07788673788309097,
0.0004901247448287904,
-0.007060554344207048,
-0.028812211006879807,
0.07457710802555084,
0.023332925513386726,
-0.03511890396475792,
-0.0291247870773077,
0.024730326607823372,
0.014424491673707962,
0.06865653395652771,
0.011841137893497944,
-0.04901937022805214,
0.0424368754029274,
-0.009414072148501873,
-0.06527335196733475,
-0.0072536165826022625,
-0.09546457976102829,
-0.023222604766488075,
-0.04148075729608536,
-0.03328021615743637,
-0.0030292351730167866,
-0.031055407598614693,
0.00777304545044899,
0.03791370615363121,
-0.024969356134533882,
0.030025742948055267,
-0.037490807473659515,
-0.03912723809480667,
-0.013918853364884853,
-0.0023650098592042923,
-0.004288735333830118,
-0.0036245097871869802,
0.07553322613239288,
-0.0162355974316597,
-0.006384837441146374,
-0.005920568946748972,
0.0014778438489884138,
-0.02769061177968979,
-0.03997303545475006,
0.036884043365716934,
-0.03412601351737976,
-0.08347634971141815,
-0.006329676602035761,
0.03339053690433502,
0.003569349180907011,
-0.013238539919257164,
0.0023178935516625643,
-0.0269551370292902,
-0.005778071004897356,
-0.004412846639752388,
0.0046357871033251286,
-0.007993687875568867,
0.01139065995812416,
0.03145991638302803,
-0.00786957610398531,
0.001191698363982141,
-0.01365224365144968,
0.02805834822356701,
0.025778377428650856,
0.006338870152831078,
0.059426333755254745,
0.004654174204915762,
-0.028720276430249214,
0.05677862465381622,
0.019434912130236626,
-0.03429149463772774,
0.00846714898943901,
-0.013523535802960396,
0.013670630753040314,
0.13245894014835358,
0.0387595035135746,
-0.0014399209758266807,
0.04063495993614197,
0.04390782117843628,
0.028922531753778458,
-0.04839421808719635,
-0.012788061052560806,
0.014525619335472584,
-0.040303997695446014,
-0.00022839927987661213,
0.009616328403353691,
0.005998713430017233,
0.06876685470342636,
0.09987742453813553,
-0.041517529636621475,
-0.03741725906729698,
-0.07042167335748672,
0.042253006249666214,
-0.02669772133231163,
-0.016750430688261986,
0.0448271669447422,
-0.007267406675964594,
0.01036099623888731,
-0.05071096122264862,
0.026054181158542633,
-0.044091690331697464,
0.03357440605759621,
-0.01371659804135561,
0.02048296295106411,
0.0048035671934485435,
0.02561289630830288,
0.02145746536552906,
0.02769061177968979,
0.023480020463466644,
0.026899976655840874,
-0.007989090867340565,
0.03157024085521698,
0.028591567650437355,
0.0038060802035033703,
-0.02632998488843441,
-0.04622456803917885,
0.011409047059714794,
-0.012162907980382442,
-0.0010905707022175193,
0.017917996272444725,
0.030522188171744347,
0.009551974013447762,
0.07185585051774979,
-0.09642069786787033,
-0.044312331825494766,
-0.0026959734968841076,
0.018331699073314667,
0.009225606918334961,
0.040303997695446014,
0.0026614980306476355,
-0.0020260021556168795,
-0.05567541345953941,
-0.029805101454257965,
-0.009745036251842976,
0.0012342180125415325,
0.021861977875232697,
0.0007245572051033378,
0.02500613033771515,
0.04640843719244003,
0.018193798139691353,
-0.029658006504178047,
0.0028499632608145475,
0.053689632564783096,
-0.04607747122645378,
0.012907575815916061,
-0.006063067354261875,
0.010075999423861504,
0.07229713350534439,
-0.004123253282159567,
0.023443246260285378,
-0.059794068336486816,
-0.01974748820066452,
0.03850208595395088,
-0.045672960579395294,
0.001700784545391798,
-0.04839421808719635,
-0.01187791209667921,
-0.019471684470772743,
0.007552403025329113,
-0.05335867032408714,
-0.03342731297016144,
0.01421304326504469,
0.07700417190790176,
-0.03208507224917412,
-0.029308656230568886,
0.0035785427317023277,
0.004256558138877153,
-0.042473647743463516,
0.059095367789268494,
0.026054181158542633,
0.04839421808719635,
-0.05696249380707741,
0.07248100638389587,
0.022229714319109917,
0.04997548833489418,
0.04692326858639717,
0.00938649196177721,
-0.03813434764742851,
-0.08803629130125046,
-0.004927678499370813,
0.006177985109388828,
0.0389801450073719,
0.02438097633421421,
-0.030044129118323326,
0.03563373535871506,
-0.024289041757583618,
0.038538858294487,
-0.003401569090783596,
0.0461142472922802,
-0.013146605342626572,
0.001041156006976962,
0.019839422777295113,
-0.04692326858639717,
0.019195882603526115,
0.04791615903377533,
-0.05460897460579872,
-0.025999020785093307,
-0.07862221449613571,
-0.00019334933313075453,
-0.017982348799705505,
-0.024417750537395477,
0.0677739679813385,
0.03344569727778435,
0.012953543104231358,
0.04927678406238556,
-0.031000247225165367,
0.002417872194200754,
-0.007699497975409031,
0.03635082393884659,
-0.12179456651210785,
-0.00484953448176384,
0.01231919601559639,
-0.011087276972830296,
-0.008490133099257946,
0.020464574918150902,
-0.0018651171121746302,
0.04111301898956299,
-0.059683747589588165,
-0.004291033372282982,
-0.0016260879347100854,
-0.06361853331327438,
0.022487130016088486,
-0.0007417948800139129,
-0.01881895214319229,
0.011565335094928741,
-0.025061290711164474,
0.05442510545253754,
-0.025686444714665413,
-0.004486394114792347,
0.056741852313280106,
0.01915910840034485,
-0.006260726135224104,
-0.04111301898956299,
0.0018122548935934901,
-0.019177494570612907,
-0.036148566752672195,
-0.007791432086378336,
0.038575634360313416,
0.004222082905471325,
-0.04486393928527832,
0.020795539021492004,
0.021439079195261,
0.06586173176765442,
0.07042167335748672,
-0.0816376581788063,
0.03304118663072586,
-0.06656043231487274,
-0.022873254492878914,
0.03169894590973854,
-0.029713166877627373,
0.02342486009001732,
-0.011988232843577862,
0.01456239353865385,
-0.0424368754029274,
-0.0363692082464695,
0.025171611458063126,
-0.003622211515903473,
-0.004619698505848646,
0.02509806491434574,
0.015748346224427223,
-0.02107134275138378,
0.10885021090507507,
0.008329248055815697,
0.027948027476668358,
0.020942633971571922,
-0.044680070132017136,
0.015757540240883827,
0.02717578038573265,
0.04354008659720421,
-0.07641579210758209,
-0.0558592826128006,
0.06784751266241074,
-0.032838933169841766,
-0.08134347200393677,
-0.07424614578485489,
0.05107869952917099,
-0.010094386525452137,
0.03344569727778435,
0.053689632564783096,
0.03190120309591293,
0.036755334585905075,
-0.0480632521212101,
0.003852047258988023,
0.01340402103960514,
0.031110567972064018,
-0.01005761232227087,
-0.023314539343118668,
-0.023737436160445213,
-0.015215126797556877,
0.03122088871896267,
-0.008329248055815697,
0.049938712269067764,
-0.0019110842840746045,
0.018138637766242027,
-0.02292841486632824,
0.016208017244935036,
-0.01952684484422207,
-0.02013361267745495,
0.09443491697311401,
0.037729837000370026,
-0.020409414544701576,
0.037729837000370026,
-0.016208017244935036,
-0.0446065217256546,
0.055270902812480927,
-0.003369392128661275,
0.018175411969423294,
0.07527580857276917,
-0.01414868887513876,
0.02463839203119278,
-0.05424124002456665,
0.004518570844084024,
-0.0855356752872467,
-0.008329248055815697,
0.017458323389291763,
-0.008490133099257946,
-0.01949007250368595,
-0.006633060052990913,
-0.015215126797556877,
-0.1041431799530983,
-0.017789287492632866,
-0.013358053751289845,
0.0021845889277756214,
0.0335560217499733,
-0.023351313546299934,
0.052365779876708984,
-0.023682275786995888,
-0.0008228120277635753,
0.02171488292515278,
-0.013339667581021786,
-0.03427310660481453,
-0.04313557595014572,
-0.06218436360359192,
0.012585805729031563,
-0.012631773017346859,
-0.02513483725488186,
0.05232900381088257,
-0.012006619945168495,
0.028812211006879807,
-0.04052463918924332,
0.018304118886590004,
0.07108360528945923,
-0.02842608653008938,
-0.009147463366389275,
0.005847021471709013,
0.010397769510746002,
-0.03048541396856308,
-0.025189999490976334,
-0.08516793698072433,
0.06479529291391373,
-0.003686565440148115,
-0.034438587725162506,
-0.04320912063121796,
-0.10245158523321152,
-0.08060799539089203,
0.008186749182641506,
-0.032986026257276535,
0.06472174823284149,
0.02377421036362648,
0.02537386678159237,
0.020078452304005623,
0.04924001172184944,
-0.007267406675964594,
0.03587276488542557,
0.03728855401277542,
-0.0337766632437706,
-0.06836234778165817,
-0.02254229038953781,
0.02644030563533306,
-0.006063067354261875,
0.030062517151236534,
-0.02644030563533306,
-0.06288306415081024,
-0.02107134275138378,
0.0001093156315619126,
-0.0407085083425045,
-0.016437852755188942,
0.02574160508811474,
0.02498774416744709,
0.04924001172184944,
0.03912723809480667,
-0.06836234778165817,
0.04909291863441467,
0.012723707593977451,
0.02743319608271122,
0.038722727447748184,
0.01554609090089798,
0.047621969133615494,
0.020924247801303864,
0.0619269460439682,
0.015113999135792255,
-0.026127729564905167,
0.010039226152002811,
0.013091444969177246,
-0.03122088871896267,
0.040671736001968384,
0.04607747122645378,
0.04854131117463112,
-0.02719416655600071,
-0.011473400518298149,
0.04523167759180069,
-0.03416278585791588,
-0.06942878663539886,
-0.021622948348522186,
0.06762687116861343,
-0.009023351594805717,
0.01864427700638771,
-0.028720276430249214,
0.031864430755376816,
-0.0023902917746454477,
0.035321157425642014,
0.06196371838450432,
0.05317480117082596,
-0.009326734580099583,
-0.0731797069311142,
0.02268938533961773,
-0.021420693024992943,
0.009533586911857128,
-0.0073455506935715675,
-0.019214268773794174,
0.029106400907039642,
0.028738662600517273,
-0.05060064047574997,
0.020795539021492004,
-0.05938955768942833,
-0.05306448042392731,
-0.010691959410905838,
-0.023866144940257072,
0.060639865696430206,
0.07299583405256271,
-0.03403407707810402,
-0.007023780606687069,
-0.04534199833869934,
0.007092731539160013,
0.014856583438813686,
-0.03061412274837494,
-0.023112284019589424,
0.004895501770079136,
0.010204707272350788,
0.011473400518298149,
-0.017007846385240555,
-0.029713166877627373,
-0.036019857972860336,
0.027764158323407173,
0.00968987587839365,
0.0039784568361938,
0.05060064047574997,
-0.021512627601623535,
-0.029437363147735596,
-0.0638759508728981,
-0.014985291287302971,
-0.04471684619784355,
0.02962123230099678,
-0.006168791558593512,
-0.041774947196245193,
-0.07093650847673416,
0.04376072809100151,
0.015288674272596836,
0.016493013128638268,
-0.007276600226759911,
0.032618291676044464,
-0.047364551573991776,
0.04960775002837181,
-0.030650896951556206,
-0.028683502227067947,
-0.03197475150227547,
-0.06968620419502258,
0.033703114837408066,
-0.007520225830376148,
-0.01987619698047638,
0.02061166986823082,
0.002518999855965376,
0.00017898459918797016,
0.018009928986430168,
-0.0017099779797717929,
-0.024105174466967583,
-0.03401569277048111,
0.0224135834723711,
0.03879627585411072,
-0.0064813680946826935,
0.04372395575046539,
-0.03342731297016144,
-0.006858299020677805,
-0.05545477196574211,
-0.03695758804678917,
0.012392743490636349,
0.018157023936510086,
-0.012144520878791809,
-0.017219293862581253,
-0.020170385017991066,
-0.0355050265789032,
-0.036645013839006424,
0.0016755026299506426,
0.025815151631832123,
-0.008393601514399052,
-0.0037026540376245975,
-0.03546825423836708,
-0.02256067842245102,
0.014102721586823463,
-0.03596469759941101,
-0.023719049990177155,
0.0337766632437706,
-0.01751348376274109,
-0.03945820406079292,
-0.02704707160592079,
-0.010563251562416553,
-0.02574160508811474,
0.03401569277048111,
-0.028812211006879807,
0.026991911232471466,
-0.036387596279382706,
0.048835501074790955,
0.04798970744013786,
0.017357196658849716,
0.030062517151236534,
-0.012484678067266941,
0.0052172718569636345,
-0.049423880875110626,
-0.04354008659720421,
0.008352231234312057,
0.00770869106054306,
0.03136798366904259,
-0.03131282329559326,
0.02097940817475319,
-0.027764158323407173,
-0.01187791209667921,
0.013689017854630947,
0.0039784568361938,
0.009726649150252342,
0.07935769110918045,
-0.011500981636345387,
-0.030393479391932487,
0.011491787619888783,
0.014856583438813686,
-0.04037754610180855,
-0.010011645033955574,
0.00649056164547801,
0.07597450911998749,
-0.012328390032052994,
0.014047561213374138,
-0.013836112804710865,
0.0192694291472435,
-0.04490071162581444,
0.0281502828001976,
0.025907086208462715,
-0.03210345655679703,
-0.01797315664589405,
0.005847021471709013,
0.013882079161703587,
0.0159138273447752,
-0.039789166301488876,
-0.0005992967053316534,
0.007244423031806946,
-0.010462123900651932,
-0.009207220748066902,
-0.000876823381986469,
0.04214268550276756,
-0.014461265876889229,
-0.040046580135822296,
-0.0339973047375679,
0.06825202703475952,
0.002709763590246439,
-0.0003410188073758036,
-0.012447904795408249,
-0.022965189069509506,
-0.007281196769326925,
-0.08818338066339493,
0.00017611164366826415,
0.005984922870993614,
-0.03184604272246361,
-0.027230940759181976,
-0.035431478172540665,
0.02208261936903,
0.03460407257080078,
-0.026513852179050446,
0.023976465687155724,
0.052623193711042404,
-0.006692816969007254,
0.007961510680615902,
0.018570728600025177,
-0.023204218596220016,
-0.06420691311359406,
0.012006619945168495,
0.005056386813521385,
0.007023780606687069,
-0.029566071927547455,
0.01797315664589405,
0.03232410177588463,
0.014010787941515446,
0.007386920973658562,
0.00946003943681717,
0.03447536379098892,
0.00023457611678168178,
-0.06376563012599945,
0.020666830241680145,
0.016373498365283012,
-0.027120620012283325,
0.059794068336486816,
0.037490807473659515,
0.002032897202298045,
-0.05490316450595856,
-0.004081883002072573,
-0.08252023160457611,
0.012006619945168495,
-0.02927188202738762,
0.007538612931966782,
0.07218681275844574,
0.02169649489223957,
0.03864917904138565,
0.01060921885073185,
-0.02708384580910206,
0.000013933792615716811,
0.04376072809100151,
0.011335499584674835,
0.04085560515522957,
-0.012052587233483791,
0.013983207754790783,
-0.001270991750061512,
-0.013928046450018883,
0.038722727447748184,
-0.041260115802288055,
0.015389801934361458,
0.045415546745061874,
-0.00032205734169110656,
0.01060921885073185,
0.04795293137431145,
-0.022744545713067055,
0.0017501992406323552,
0.0365898534655571,
0.08325570076704025,
-0.007193859200924635,
0.009225606918334961,
0.027028685435652733,
0.04780583828687668,
-0.08833047747612,
-0.007226035930216312,
-0.034935034811496735,
0.031294435262680054,
-0.016686076298356056,
-0.0008572873775847256,
0.036645013839006424,
-0.010664379224181175,
0.07693062722682953
]
|
30,120 | networkx.classes.graph | add_nodes_from | Add multiple nodes.
Parameters
----------
nodes_for_adding : iterable container
A container of nodes (list, dict, set, etc.).
OR
A container of (node, attribute dict) tuples.
Node attributes are updated using the attribute dict.
attr : keyword arguments, optional (default= no attributes)
Update attributes for all nodes in nodes.
Node attributes specified in nodes as a tuple take
precedence over attributes specified via keyword arguments.
See Also
--------
add_node
Notes
-----
When adding nodes from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.add_nodes_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_nodes_from("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_nodes_from(K3)
>>> sorted(G.nodes(), key=str)
[0, 1, 2, 'H', 'e', 'l', 'o']
Use keywords to update specific node attributes for every node.
>>> G.add_nodes_from([1, 2], size=10)
>>> G.add_nodes_from([3, 4], weight=0.4)
Use (node, attrdict) tuples to update attributes for specific nodes.
>>> G.add_nodes_from([(1, dict(size=11)), (2, {"color": "blue"})])
>>> G.nodes[1]["size"]
11
>>> H = nx.Graph()
>>> H.add_nodes_from(G.nodes(data=True))
>>> H.nodes[1]["size"]
11
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.Graph([(0, 1), (1, 2), (3, 4)])
>>> # wrong way - will raise RuntimeError
>>> # G.add_nodes_from(n + 1 for n in G.nodes)
>>> # correct way
>>> G.add_nodes_from(list(n + 1 for n in G.nodes))
| def add_nodes_from(self, nodes_for_adding, **attr):
"""Add multiple nodes.
Parameters
----------
nodes_for_adding : iterable container
A container of nodes (list, dict, set, etc.).
OR
A container of (node, attribute dict) tuples.
Node attributes are updated using the attribute dict.
attr : keyword arguments, optional (default= no attributes)
Update attributes for all nodes in nodes.
Node attributes specified in nodes as a tuple take
precedence over attributes specified via keyword arguments.
See Also
--------
add_node
Notes
-----
When adding nodes from an iterator over the graph you are changing,
a `RuntimeError` can be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.add_nodes_from`.
Examples
--------
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_nodes_from("Hello")
>>> K3 = nx.Graph([(0, 1), (1, 2), (2, 0)])
>>> G.add_nodes_from(K3)
>>> sorted(G.nodes(), key=str)
[0, 1, 2, 'H', 'e', 'l', 'o']
Use keywords to update specific node attributes for every node.
>>> G.add_nodes_from([1, 2], size=10)
>>> G.add_nodes_from([3, 4], weight=0.4)
Use (node, attrdict) tuples to update attributes for specific nodes.
>>> G.add_nodes_from([(1, dict(size=11)), (2, {"color": "blue"})])
>>> G.nodes[1]["size"]
11
>>> H = nx.Graph()
>>> H.add_nodes_from(G.nodes(data=True))
>>> H.nodes[1]["size"]
11
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.Graph([(0, 1), (1, 2), (3, 4)])
>>> # wrong way - will raise RuntimeError
>>> # G.add_nodes_from(n + 1 for n in G.nodes)
>>> # correct way
>>> G.add_nodes_from(list(n + 1 for n in G.nodes))
"""
for n in nodes_for_adding:
try:
newnode = n not in self._node
newdict = attr
except TypeError:
n, ndict = n
newnode = n not in self._node
newdict = attr.copy()
newdict.update(ndict)
if newnode:
if n is None:
raise ValueError("None cannot be a node")
self._adj[n] = self.adjlist_inner_dict_factory()
self._node[n] = self.node_attr_dict_factory()
self._node[n].update(newdict)
nx._clear_cache(self)
| (self, nodes_for_adding, **attr) | [
-0.034799423068761826,
-0.001973047386854887,
-0.027141554281115532,
0.01910478249192238,
-0.04038328304886818,
0.06565025448799133,
-0.05105244740843773,
0.03105025738477707,
0.07729659229516983,
-0.007807434536516666,
-0.016233082860708237,
0.004038328304886818,
0.051132217049598694,
0.0641346350312233,
-0.003918674308806658,
0.007308875676244497,
0.012972506694495678,
-0.004945705644786358,
-0.015405474230647087,
0.012573659420013428,
-0.021198730915784836,
0.025207145139575005,
0.021218672394752502,
0.03200748935341835,
0.012244610115885735,
-0.0032256769482046366,
0.037252333015203476,
0.0011566570028662682,
0.01035008579492569,
0.021298442035913467,
-0.02875688672065735,
-0.06724564731121063,
-0.04961659759283066,
-0.03316414728760719,
0.01402945164591074,
0.018586281687021255,
-0.0327453576028347,
0.013700402341783047,
-0.050015442073345184,
0.012892737053334713,
0.06365601718425751,
-0.017938153818249702,
0.023432275280356407,
-0.023272735998034477,
0.04140034317970276,
0.0344604030251503,
0.010559480637311935,
0.05496114864945412,
-0.05583861470222473,
-0.06959884613752365,
0.023551929742097855,
-0.04335469380021095,
0.04618651047348976,
0.020311295986175537,
-0.0204808060079813,
0.0163427647203207,
-0.028298212215304375,
0.008051728829741478,
0.016233082860708237,
0.05978720262646675,
0.028397923335433006,
-0.009188443422317505,
-0.019483687356114388,
-0.05292702838778496,
-0.04869924858212471,
-0.011905590072274208,
-0.09803665429353714,
-0.05815192684531212,
-0.015385531820356846,
0.022893831133842468,
0.0027869450859725475,
0.013022362254559994,
0.03471965342760086,
-0.0031932706478983164,
0.024708585813641548,
0.062220167368650436,
-0.012095042504370213,
0.05691549926996231,
-0.013022362254559994,
-0.0034375647082924843,
-0.008630056865513325,
0.040841955691576004,
-0.013481036759912968,
0.014099249616265297,
0.051610831171274185,
0.010006080381572247,
-0.07398616522550583,
0.025366684421896935,
0.01843671314418316,
-0.05452241748571396,
-0.04618651047348976,
-0.01114778034389019,
0.0034500285983085632,
0.014857059344649315,
0.03360287845134735,
0.01482714619487524,
0.013909797184169292,
-0.08004864305257797,
0.04207838326692581,
0.028098788112401962,
-0.003295475384220481,
-0.015016598626971245,
0.0018197405152022839,
-0.0002629898954182863,
-0.020899595692753792,
-0.0954042598605156,
-0.07023699581623077,
-0.030172793194651604,
0.006251930259168148,
0.01675158366560936,
-0.08184345066547394,
0.00509527325630188,
0.08902270346879959,
-0.00440227659419179,
-0.00038544845301657915,
0.021677346900105476,
0.009148558601737022,
-0.013441151939332485,
-0.00673553254455328,
-0.0005820677033625543,
-0.005534005351364613,
0.044790543615818024,
0.03130950778722763,
0.03958558663725853,
0.01192553248256445,
-0.016711698845028877,
0.03601590543985367,
0.008221238851547241,
0.00926821306347847,
-0.09875457733869553,
0.006650777533650398,
-0.019703052937984467,
-0.023033427074551582,
0.0524882972240448,
0.03872806578874588,
-0.04738305136561394,
-0.06780403107404709,
0.005013011395931244,
0.008121526800096035,
0.03089071810245514,
0.003051181323826313,
-0.0441523902118206,
0.04710385948419571,
0.01789826899766922,
-0.08060702681541443,
-0.012922650203108788,
-0.04359400272369385,
-0.019563456997275352,
-0.07613993436098099,
-0.017878327518701553,
-0.01933412067592144,
-0.007074553053826094,
0.01570460945367813,
0.03388207405805588,
-0.042915962636470795,
0.020231526345014572,
-0.06748495250940323,
-0.034061554819345474,
-0.021697290241718292,
-0.014119192026555538,
-0.03360287845134735,
0.010419883765280247,
0.033263858407735825,
-0.0012239624047651887,
-0.00014995720994193107,
0.0030137894209474325,
-0.010599365457892418,
-0.04032345488667488,
-0.05512068793177605,
0.025326799601316452,
0.020420977845788002,
-0.05882996693253517,
0.037790775299072266,
0.016203168779611588,
-0.0025601007509976625,
-0.01898512803018093,
0.03184795379638672,
-0.025486338883638382,
-0.008779624477028847,
0.012753140181303024,
-0.04058270528912544,
-0.0018471612129360437,
-0.004748775158077478,
-0.013650546781718731,
-0.013491007499396801,
0.00979169923812151,
-0.019832678139209747,
0.02175711654126644,
0.02630397491157055,
-0.03625521436333656,
0.06273867189884186,
0.00001828698987083044,
-0.009447693824768066,
0.0653710588812828,
-0.014817174524068832,
-0.008176368661224842,
-0.027460632845759392,
0.00944270845502615,
0.0008917974773794413,
0.13026350736618042,
0.022694407030940056,
-0.0033004609867930412,
0.02107907645404339,
0.015116310678422451,
0.018077751621603966,
-0.033204033970832825,
-0.05169060081243515,
-0.013221786357462406,
-0.02550628036260605,
-0.006610893178731203,
0.01795809715986252,
-0.017409682273864746,
0.06210051476955414,
0.06178143620491028,
-0.060305703431367874,
0.0036693946458399296,
-0.057792965322732925,
-0.0007808681111782789,
-0.022534869611263275,
-0.06365601718425751,
0.052408527582883835,
0.010165618732571602,
-0.020081957802176476,
-0.09213370829820633,
0.03671388700604439,
-0.04155988246202469,
0.02570570446550846,
-0.012683342210948467,
0.022554811090230942,
0.022654522210359573,
0.07769544422626495,
-0.013401267118752003,
0.02779965288937092,
0.02971411868929863,
0.05181025713682175,
-0.0074783856980502605,
0.017240172252058983,
-0.0006406483589671552,
0.02869705855846405,
0.0032755329739302397,
-0.06959884613752365,
-0.010679135099053383,
-0.028019018471240997,
-0.010389970615506172,
0.008729768916964531,
0.034759536385536194,
0.004150504246354103,
0.043075501918792725,
-0.06182132288813591,
0.02602478303015232,
0.005598817951977253,
0.010140690952539444,
0.023013485595583916,
0.02436956577003002,
-0.015485243871808052,
0.010848645120859146,
-0.05041429027915001,
-0.0361156165599823,
-7.497860678995494e-7,
-0.02869705855846405,
0.0475824773311615,
0.0021537751890718937,
-0.008515388704836369,
0.06429417431354523,
0.0004362391773611307,
-0.009318068623542786,
0.02736091986298561,
0.03591619431972504,
-0.07693763077259064,
0.015724552795290947,
-0.007687780540436506,
0.02582535892724991,
0.0654907152056694,
0.01939394697546959,
0.033463284373283386,
-0.017559248954057693,
-0.018785705789923668,
0.01624305360019207,
-0.04022374376654625,
-0.007637924514710903,
0.008585186675190926,
0.003415129380300641,
-0.05029463768005371,
-0.007787492126226425,
-0.03493901714682579,
-0.017339883372187614,
0.01050962507724762,
0.0657300278544426,
-0.025805415585637093,
-0.0477021299302578,
0.04379342496395111,
-0.03461993858218193,
-0.004980605095624924,
-0.00206652726046741,
0.016741612926125526,
0.02965429238975048,
-0.06461325287818909,
0.056516654789447784,
0.007827376946806908,
0.05300679802894592,
0.058231696486473083,
-0.03531792387366295,
-0.011287377215921879,
-0.040722303092479706,
0.0019094811286777258,
-0.0059926798567175865,
0.058909736573696136,
0.028038959950208664,
-0.03051181323826313,
0.009652103297412395,
-0.03140921890735626,
0.05875019729137421,
-0.0027271180879324675,
-0.024309739470481873,
-0.007772535551339388,
-0.04794143885374069,
0.002988861408084631,
-0.022654522210359573,
0.026642994955182076,
0.04937728866934776,
-0.062060631811618805,
0.015455330722033978,
-0.08248160779476166,
0.00855028722435236,
-0.021697290241718292,
0.0457477793097496,
0.09109670668840408,
0.06497221440076828,
0.030711237341165543,
0.004773702938109636,
-0.006989798042923212,
-0.003155878745019436,
-0.012583630159497261,
0.041480112820863724,
-0.05073336884379387,
0.013530892319977283,
0.025047605857253075,
-0.006700633559376001,
0.014418327249586582,
-0.014617751352488995,
-0.020500747486948967,
0.047183629125356674,
-0.07023699581623077,
-0.007249048445373774,
-0.0014645172050222754,
-0.03162858635187149,
0.04614662379026413,
0.006406483706086874,
-0.019403917714953423,
0.009597261436283588,
-0.031768184155225754,
0.07251042872667313,
-0.02401060424745083,
-0.0059178960509598255,
0.02347216010093689,
0.025805415585637093,
-0.014687549322843552,
-0.02748057432472706,
0.026702823117375374,
-0.014009509235620499,
-0.02029135264456272,
0.005543976556509733,
0.0589895062148571,
0.00977674312889576,
0.011028125882148743,
0.003205734770745039,
0.010165618732571602,
0.008241181261837482,
0.05902939289808273,
-0.05671607702970505,
0.028098788112401962,
-0.028298212215304375,
-0.04247723147273064,
0.03386212885379791,
-0.051610831171274185,
0.02123861573636532,
-0.03701302409172058,
0.012224667705595493,
-0.0344604030251503,
0.01637267880141735,
0.010559480637311935,
-0.01426875963807106,
0.010798788629472256,
0.04052288085222244,
0.05755365639925003,
-0.0657300278544426,
0.1298646628856659,
-0.02859734743833542,
0.032147087156772614,
-0.005623746197670698,
-0.04602697119116783,
-0.0003128458047285676,
0.019693082198500633,
0.06700633466243744,
-0.07729659229516983,
-0.0800885260105133,
0.07003757357597351,
-0.04140034317970276,
-0.06090397387742996,
-0.08982039988040924,
0.021537750959396362,
-0.02779965288937092,
0.034480344504117966,
0.05472183972597122,
0.016641901805996895,
-0.0007272729999385774,
-0.01611342839896679,
0.009696973487734795,
0.001471995608881116,
0.04335469380021095,
0.0012495135888457298,
-0.0011130330385640264,
-0.014946800656616688,
0.01050962507724762,
0.021517807617783546,
-0.018237289041280746,
0.011077982373535633,
0.007892189547419548,
0.04487031325697899,
0.009303111582994461,
0.04070236161351204,
-0.006501209922134876,
0.01216484047472477,
0.07785498350858688,
0.04730328172445297,
-0.018037866801023483,
0.015844207257032394,
-0.04010409116744995,
-0.03559711575508118,
0.031229738146066666,
0.00040944162174127996,
-0.015026569366455078,
0.05109233036637306,
-0.003838904667645693,
0.028397923335433006,
-0.033204033970832825,
-0.021856829524040222,
-0.06943930685520172,
0.008320950902998447,
0.002184934914112091,
-0.01955348625779152,
-0.008520374074578285,
0.022494984790682793,
-0.047981321811676025,
-0.07171273231506348,
-0.04518939182162285,
-0.024708585813641548,
0.01381008606404066,
0.00028371126973070204,
-0.017309969291090965,
0.03621532768011093,
-0.02474847063422203,
0.020022131502628326,
0.006177146453410387,
-0.005180028732866049,
0.007807434536516666,
-0.010798788629472256,
-0.03860841318964958,
-0.020520690828561783,
-0.007787492126226425,
0.021398155018687248,
0.005529019981622696,
-0.006999769248068333,
0.028238384053111076,
-0.019852621480822563,
0.009367924183607101,
0.059228815138339996,
-0.02762017212808132,
-0.01698092184960842,
0.010709048248827457,
0.048459939658641815,
-0.036614175885915756,
-0.017409682273864746,
-0.08806546777486801,
0.05085302144289017,
0.005249826703220606,
-0.034161265939474106,
-0.05149117857217789,
-0.08742731809616089,
-0.07705728709697723,
0.007877232506871223,
-0.034799423068761826,
0.10904483497142792,
0.009098703041672707,
0.0023457203060388565,
0.030172793194651604,
0.04634604975581169,
-0.013421209529042244,
-0.007902161218225956,
0.025306858122348785,
-0.009382881224155426,
-0.07757578790187836,
-0.010838673450052738,
0.03234650939702988,
0.020839767530560493,
-0.002722132485359907,
-0.019134696573019028,
-0.05376460775732994,
0.008271094411611557,
-0.00937789585441351,
-0.012015272863209248,
0.008525359444320202,
0.06309763342142105,
0.04239746183156967,
0.05228887125849724,
0.046385932713747025,
-0.022215791046619415,
0.03665406256914139,
0.008126512169837952,
0.009028904139995575,
0.04026363044977188,
0.011835792101919651,
0.03561705723404884,
0.00121648411732167,
0.03009302355349064,
-0.03408149629831314,
-0.03890754655003548,
0.04431192949414253,
0.034540172666311264,
-0.03442051634192467,
0.05535999685525894,
0.032884955406188965,
0.00673553254455328,
-0.016013717278838158,
-0.020520690828561783,
0.028896482661366463,
-0.019194522872567177,
-0.07215146720409393,
0.004162968136370182,
0.03665406256914139,
-0.0036644090432673693,
0.030212678015232086,
-0.0030412101186811924,
0.01675158366560936,
-0.006112333852797747,
-0.014986684545874596,
0.1049765944480896,
0.026702823117375374,
-0.010848645120859146,
-0.006022593472152948,
0.05137152597308159,
0.010629278607666492,
0.0011111635249108076,
0.009113659150898457,
-0.022794120013713837,
0.040303513407707214,
0.006022593472152948,
-0.04431192949414253,
0.02107907645404339,
-0.04774201288819313,
-0.058909736573696136,
-0.017858384177088737,
-0.034540172666311264,
0.08686892688274384,
0.07625959068536758,
-0.07741624861955643,
-0.006047521252185106,
-0.04618651047348976,
0.0024354609195142984,
0.017210258170962334,
-0.01952357217669487,
-0.005524034146219492,
-0.043554119765758514,
-0.0007814912823960185,
-0.003021267941221595,
-0.005234870128333569,
-0.031828008592128754,
-0.04558824002742767,
0.0033054465893656015,
0.032027434557676315,
0.0011660049203783274,
0.03932633623480797,
-0.026483455672860146,
-0.0491778627038002,
-0.04706397280097008,
-0.029913542792201042,
-0.06166178360581398,
0.01624305360019207,
0.011177693493664265,
-0.06018604710698128,
-0.055399879813194275,
0.029913542792201042,
0.04662524163722992,
-0.007273976691067219,
0.046585358679294586,
0.049098096787929535,
-0.06840229779481888,
0.04630616307258606,
-0.003096051746979356,
0.007652881555259228,
-0.023910891264677048,
-0.05149117857217789,
0.025586050003767014,
-0.014587837271392345,
-0.05073336884379387,
0.007722679525613785,
0.007578097749501467,
-0.0014408356510102749,
-0.028557462617754936,
-0.02789936400949955,
-0.024708585813641548,
0.018685992807149887,
0.03733210265636444,
0.0669664517045021,
-0.021138902753591537,
0.014179019257426262,
-0.0020727592054754496,
-0.019005071371793747,
-0.013082189485430717,
-0.0015430402709171176,
0.02949475310742855,
0.028098788112401962,
0.014408356510102749,
-0.05671607702970505,
-0.010499653406441212,
-0.03767112269997597,
-0.04738305136561394,
0.04965648055076599,
0.06485255807638168,
-0.03860841318964958,
-0.004556829575449228,
-0.03946593403816223,
-0.029893601313233376,
0.011407030746340752,
-0.03360287845134735,
-0.01949365809559822,
0.004831037018448114,
-0.025306858122348785,
-0.01723020151257515,
0.00004163747144048102,
0.01130731962621212,
-0.036514464765787125,
0.049417171627283096,
-0.027001958340406418,
0.01376022957265377,
-0.050374407321214676,
0.04997555911540985,
0.007149336859583855,
-0.019134696573019028,
-0.005120201501995325,
0.02213602140545845,
-0.022215791046619415,
-0.06433405727148056,
-0.033144205808639526,
-0.011227549985051155,
-0.020440921187400818,
0.018337002024054527,
-0.03906708583235741,
0.0542033389210701,
0.0014620244037359953,
0.026204263791441917,
0.012354292906820774,
-0.01850651204586029,
-0.002609956543892622,
0.03156875818967819,
-0.0013573269825428724,
-0.010738962329924107,
0.02560599334537983,
0.038967374712228775,
-0.024229969829320908,
-0.004858457949012518,
0.022893831133842468,
0.07865267246961594,
0.018257232382893562,
0.004671498201787472,
-0.018785705789923668,
0.028876539319753647,
-0.024130258709192276,
0.04937728866934776,
0.042796310037374496,
-0.06963872909545898,
-0.03394189849495888,
0.005082809366285801,
0.03402166813611984,
-0.006321728695183992,
-0.01006590761244297,
-0.0062170312739908695,
0.010679135099053383,
0.030950546264648438,
0.0001634338841540739,
-0.028019018471240997,
0.04873913154006004,
-0.03436068817973137,
-0.009318068623542786,
-0.056676194071769714,
0.030711237341165543,
0.002943991217762232,
-0.00212136865593493,
0.006571008358150721,
0.0029689192306250334,
-0.0045942217111587524,
-0.05468195676803589,
0.039765071123838425,
0.008325936272740364,
-0.03190777823328972,
0.0056137749925255775,
-0.01735982671380043,
-0.029853716492652893,
0.017030777409672737,
-0.019822707399725914,
0.025905128568410873,
0.04299573227763176,
-0.027540402486920357,
0.02614443562924862,
0.027301093563437462,
-0.03886766359210014,
-0.05719469487667084,
0.03388207405805588,
-0.0035746684297919273,
0.03805002570152283,
-0.031169911846518517,
0.01767890341579914,
0.02315308153629303,
0.0027321036905050278,
0.024888068437576294,
0.0034375647082924843,
0.08575215935707092,
-0.010429855436086655,
-0.044192273169755936,
0.014547953382134438,
0.021138902753591537,
-0.01698092184960842,
0.06433405727148056,
0.03527803719043732,
-0.028198499232530594,
-0.02710166946053505,
0.018606223165988922,
-0.06513175368309021,
0.005349538754671812,
-0.024509163573384285,
0.009088731370866299,
0.08140472322702408,
0.021836886182427406,
0.005449250340461731,
-0.01194547489285469,
-0.06828264892101288,
-0.02534674108028412,
0.061262935400009155,
-0.022116079926490784,
0.03402166813611984,
-0.02369152568280697,
0.006341671105474234,
-0.014498096890747547,
0.004708890337496996,
-0.009352968074381351,
-0.06692656874656677,
0.038708124309778214,
0.036454636603593826,
-0.012543745338916779,
-0.010330143384635448,
0.05611780658364296,
0.0018284652614966035,
-0.006361613515764475,
0.0029714119154959917,
0.06692656874656677,
-0.014557924121618271,
0.01520605105906725,
-0.018785705789923668,
0.008176368661224842,
-0.1102413758635521,
-0.0067504895851016045,
-0.01050962507724762,
0.048300400376319885,
0.009741843678057194,
0.000988393323495984,
0.042756423354148865,
0.019932391121983528,
0.075302354991436
]
|
30,123 | networkx.classes.graph | clear | Remove all nodes and edges from the graph.
This also removes the name, and all graph, node, and edge attributes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear()
>>> list(G.nodes)
[]
>>> list(G.edges)
[]
| def clear(self):
"""Remove all nodes and edges from the graph.
This also removes the name, and all graph, node, and edge attributes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear()
>>> list(G.nodes)
[]
>>> list(G.edges)
[]
"""
self._adj.clear()
self._node.clear()
self.graph.clear()
nx._clear_cache(self)
| (self) | [
-0.010801143012940884,
0.027401559054851532,
0.018367379903793335,
-0.0164735559374094,
-0.0727083683013916,
0.002059194492176175,
-0.08372697979211807,
-0.02232719585299492,
0.09431065618991852,
0.029721267521381378,
-0.02446567639708519,
-0.03193223848938942,
0.023523295298218727,
0.0650605782866478,
-0.013129913248121738,
-0.000763419724535197,
-0.013746085576713085,
-0.0012697232887148857,
0.039507538080215454,
-0.021402936428785324,
-0.03073613904416561,
-0.04026869311928749,
0.034469421952962875,
0.0011473949998617172,
-0.003576972521841526,
-0.00718565983697772,
0.03338205814361572,
-0.023378314450383186,
-0.007679504342377186,
0.042153455317020416,
-0.0424434170126915,
-0.014271644875407219,
-0.027383435517549515,
-0.00972284097224474,
0.01964503340423107,
0.011761647649109364,
0.0011456959182396531,
-0.00698630977421999,
-0.0500912070274353,
0.00742578599601984,
0.028507044538855553,
0.0011513592908158898,
0.0047708069905638695,
-0.027220331132411957,
0.060566142201423645,
-0.015340885147452354,
0.08503182232379913,
0.02268964983522892,
-0.006583079230040312,
-0.06067487969994545,
-0.006868512369692326,
0.03416133299469948,
-0.028688272461295128,
0.053317051380872726,
-0.02504560351371765,
-0.00722643593326211,
0.015159658156335354,
0.02223658189177513,
0.04066739231348038,
-0.002367280889302492,
0.033146463334560394,
-0.0028860438615083694,
-0.023305822163820267,
-0.029250076040625572,
-0.005812863819301128,
-0.0009225598769262433,
-0.0345962792634964,
0.03213158994913101,
-0.008549395017325878,
-0.019934996962547302,
-0.051323551684617996,
-0.004168226383626461,
-0.002299320651218295,
0.01097330916672945,
0.017533734440803528,
-0.007203782442957163,
0.005518369376659393,
0.03711533918976784,
-0.0032303754705935717,
-0.0658942237496376,
0.029540039598941803,
0.009405693970620632,
-0.07676785439252853,
0.0022336256224662066,
0.04197222739458084,
-0.015947997570037842,
0.013392692431807518,
0.0332551971077919,
0.01633763499557972,
-0.055455535650253296,
0.023396436125040054,
-0.00006137656600913033,
0.012423126958310604,
-0.00956879835575819,
0.033798880875110626,
0.028488921001553535,
-0.03517620638012886,
-0.05748527869582176,
-0.004240717273205519,
-0.023976363241672516,
-0.031823500990867615,
-0.00039558508433401585,
-0.07430316507816315,
0.02209160104393959,
-0.03289274498820305,
-0.027836503461003304,
0.025081848725676537,
-0.07100483030080795,
0.006583079230040312,
0.04545179009437561,
-0.05212095379829407,
0.04476312920451164,
0.0520484633743763,
0.03611858934164047,
0.06495184451341629,
0.031877871602773666,
-0.05248340964317322,
-0.008929972536861897,
0.022707773372530937,
0.012450311332941055,
-0.05447690561413765,
0.04878637194633484,
-0.015059983357787132,
-0.0018100070301443338,
0.057014089077711105,
0.023559540510177612,
-0.0007787107606418431,
-0.014987492933869362,
-0.017017237842082977,
-0.06814143806695938,
0.02749217115342617,
0.011698218062520027,
-0.0176605936139822,
0.05168600752949715,
0.010348075069487095,
-0.028253326192498207,
-0.008173348382115364,
-0.07821767777204514,
0.005418694578111172,
0.06288585066795349,
-0.07354201376438141,
-0.03820270299911499,
0.01854860782623291,
0.02394011802971363,
0.014878756366670132,
-0.0038442828226834536,
0.028724517673254013,
-0.06861263513565063,
-0.07800020277500153,
-0.04621294513344765,
-0.007144883740693331,
0.015377131290733814,
0.02143918164074421,
-0.06788772344589233,
-0.07035241276025772,
0.03296523541212082,
-0.04073988273739815,
0.04494435340166092,
-0.03483187407255173,
0.009369447827339172,
-0.029685022309422493,
0.02046055532991886,
0.03639042750000954,
-0.03709721565246582,
-0.028507044538855553,
-0.049982473254203796,
0.06009495258331299,
-0.01408135611563921,
-0.041790999472141266,
-0.014697529375553131,
-0.05770275369286537,
-0.07495558261871338,
-0.03954378142952919,
-0.024411309510469437,
0.011589481495320797,
0.021330446004867554,
-0.004834236577153206,
0.01964503340423107,
-0.009994681924581528,
0.021602286025881767,
-0.0022732692304998636,
-0.05284586176276207,
-0.04708283767104149,
0.012441249564290047,
0.03881887346506119,
-0.027474049478769302,
-0.021384814754128456,
-0.022290950641036034,
-0.009813454933464527,
-0.013718902133405209,
0.01023027766495943,
0.014362258836627007,
0.008295676670968533,
0.05578174442052841,
0.07553551346063614,
-0.03338205814361572,
0.012975869700312614,
-0.009084015153348446,
-0.006338422652333975,
0.019572541117668152,
0.005531961563974619,
0.0011134148808196187,
0.060638632625341415,
-0.025009358301758766,
-0.008141634054481983,
0.023323945701122284,
0.017089728266000748,
-0.04744528979063034,
-0.030645525082945824,
0.03423382341861725,
0.0011632522800937295,
0.006999901961535215,
0.0693012923002243,
-0.030138090252876282,
-0.023541418835520744,
-0.018720773980021477,
-0.056941598653793335,
0.02809022180736065,
-0.0024193834979087114,
-0.014942185953259468,
-0.02816271223127842,
-0.011861322447657585,
-0.017261894419789314,
-0.0465754009783268,
-0.021330446004867554,
-0.0011366346152499318,
-0.034849997609853745,
-0.014017926529049873,
0.0215841643512249,
-0.0787976011633873,
0.09112105518579483,
0.018158968538045883,
0.04545179009437561,
-0.015295579098165035,
0.016147347167134285,
-0.015639910474419594,
-0.018376441672444344,
0.002358219353482127,
-0.017678717151284218,
-0.0363541841506958,
-0.05454939976334572,
-0.06861263513565063,
-0.041863489896059036,
-0.005980498623102903,
0.015567420050501823,
0.037060968577861786,
-0.004875012673437595,
-0.006279523950070143,
0.03220408037304878,
-0.04019620269536972,
-0.05023619160056114,
-0.07194720953702927,
0.03611858934164047,
-0.012867134064435959,
0.02845267578959465,
-0.060638632625341415,
-0.06179848685860634,
-0.0345962792634964,
-0.005332611501216888,
0.038021475076675415,
0.015241210348904133,
0.010058111511170864,
-0.0260785985738039,
0.08930878341197968,
0.10163223743438721,
0.035792380571365356,
0.04440067335963249,
0.05364326387643814,
-0.051033589988946915,
-0.01973564550280571,
0.08597420156002045,
-0.03231281787157059,
0.05237467214465141,
-0.004748153500258923,
0.028434554114937782,
0.06136354058980942,
-0.04454565420746803,
0.034179456532001495,
0.0007532257004640996,
0.03089924342930317,
0.02801773138344288,
-0.018612036481499672,
0.012395942583680153,
0.002940411912277341,
-0.005717719439417124,
0.026404809206724167,
-0.007924160920083523,
-0.023559540510177612,
-0.012395942583680153,
0.018276765942573547,
0.05994997173547745,
0.008508618921041489,
-0.020369941368699074,
0.03524869680404663,
0.024193836376070976,
-0.011498868465423584,
0.023178962990641594,
0.0010080764768645167,
0.005405102390795946,
0.054948098957538605,
0.05063489079475403,
-0.04628543555736542,
-0.005409632809460163,
-0.01344706118106842,
0.05951502546668053,
0.004947503563016653,
0.02814459055662155,
0.045488037168979645,
0.05469438061118126,
0.039217572659254074,
-0.04900384321808815,
-0.0015585542423650622,
-0.04131980985403061,
0.03385324776172638,
0.022000987082719803,
-0.021475426852703094,
-0.014208215288817883,
-0.0390363484621048,
-0.0007351029780693352,
0.010619916021823883,
-0.02136669121682644,
0.025335567072033882,
-0.007158475928008556,
0.02076864056289196,
-0.10192219913005829,
0.01515059731900692,
0.008114449679851532,
0.1006898507475853,
-0.02216409146785736,
0.00391903892159462,
0.02312459610402584,
-0.003785383887588978,
0.023160841315984726,
-0.011208904907107353,
-0.0651693120598793,
0.025987986475229263,
0.024411309510469437,
-0.003531665774062276,
0.0028180836234241724,
-0.0021226240787655115,
0.031678520143032074,
0.054948098957538605,
-0.014606915414333344,
-0.013564858585596085,
-0.019228210672736168,
0.04976499825716019,
0.017678717151284218,
-0.015467744320631027,
0.005776618141680956,
-0.017406875267624855,
0.015839260071516037,
0.08329203724861145,
0.0425521545112133,
-0.015848321840167046,
0.060856107622385025,
0.020496800541877747,
0.0038737321738153696,
0.03791273757815361,
-0.0240126084536314,
-0.007910569198429585,
0.028108345344662666,
0.019463805481791496,
-0.03871013596653938,
-0.04465439170598984,
0.062269680202007294,
-0.03207721933722496,
0.025081848725676537,
0.03932631015777588,
0.02696661278605461,
-0.049185071140527725,
0.015630848705768585,
-0.1082289069890976,
-0.06277711689472198,
-0.011834139004349709,
-0.0030582095496356487,
0.060928598046302795,
0.02245405502617359,
0.029956862330436707,
0.03166039660573006,
0.013030238449573517,
0.00628405436873436,
0.0061979712918400764,
0.05077987164258957,
-0.025027481839060783,
0.02727469988167286,
-0.043204572051763535,
0.019862504675984383,
0.017624348402023315,
0.01341987680643797,
0.039652518928050995,
0.006401852238923311,
-0.029395058751106262,
-0.016219837591052055,
-0.017642471939325333,
-0.004573722369968891,
0.05005496367812157,
0.07267212122678757,
0.011951936408877373,
-0.05034492537379265,
-0.062197186052799225,
0.02491874434053898,
-0.030047476291656494,
0.025897372514009476,
0.03860140219330788,
0.04026869311928749,
-0.00953255221247673,
-0.003209987422451377,
-0.001107185147702694,
0.03820270299911499,
0.0036358714569360018,
0.0938757061958313,
0.02586112730205059,
0.0007753127720206976,
0.0308811217546463,
0.06828642636537552,
-0.00830926839262247,
0.056651633232831955,
0.01419009268283844,
0.1123608872294426,
0.049040090292692184,
-0.009174629114568233,
0.059986215084791183,
-0.006950064562261105,
0.02461065910756588,
0.02468314953148365,
-0.014072295278310776,
-0.04842391610145569,
-0.014117601327598095,
-0.009731902740895748,
0.03311021625995636,
-0.014235399663448334,
-0.04287836328148842,
-0.017696838825941086,
0.003703831695020199,
-0.0561804436147213,
0.02305210381746292,
-0.0016774846008047462,
-0.02129420079290867,
-0.010248400270938873,
0.005024525336921215,
-0.03968876600265503,
-0.0202430821955204,
0.004272432066500187,
-0.06016744300723076,
-0.0029902493115514517,
0.0065740179270505905,
-0.00004155483838985674,
0.04784398898482323,
-0.00004619170795194805,
-0.0014124397421255708,
-0.03289274498820305,
0.007362356409430504,
0.00879858247935772,
-0.053462035953998566,
-0.07517305761575699,
0.015349946916103363,
0.0198806282132864,
0.01522308774292469,
-0.04262464493513107,
0.04073988273739815,
0.008599231950938702,
0.02038806490600109,
-0.023994486778974533,
-0.02417571283876896,
0.007570767775177956,
0.0073487646877765656,
0.04646666347980499,
0.004458189941942692,
-0.01267684530466795,
-0.005042647942900658,
-0.011136413551867008,
-0.0610373318195343,
-0.06139978766441345,
-0.03207721933722496,
-0.020007487386465073,
0.008259431459009647,
-0.03929006680846214,
0.017923373728990555,
-0.0061118886806070805,
-0.05168600752949715,
-0.0006099429447203875,
-0.02446567639708519,
0.03867389261722565,
0.009274303913116455,
0.039869993925094604,
0.017606226727366447,
0.029739389196038246,
-0.018883878365159035,
-0.025516794994473457,
-0.025969862937927246,
-0.029612530022859573,
-0.08111730962991714,
-0.058355171233415604,
-0.05179474502801895,
0.04653915390372276,
0.032620903104543686,
-0.05795647203922272,
-0.014326012693345547,
-0.03564739599823952,
-0.027292821556329727,
-0.009931252337992191,
-0.009867822751402855,
-0.03925381973385811,
0.01714409701526165,
0.04302334785461426,
0.017624348402023315,
0.027093471959233284,
0.003135231090709567,
0.02314271777868271,
-0.01097330916672945,
-0.03267526999115944,
-0.0350131019949913,
0.011100168339908123,
0.039217572659254074,
0.026477299630641937,
-0.009695657528936863,
-0.04440067335963249,
0.008123510517179966,
0.016138285398483276,
-0.022055353969335556,
-0.02792711742222309,
0.03584674745798111,
-0.018050232902169228,
0.03276588395237923,
-0.04842391610145569,
0.0356292761862278,
-0.02247217670083046,
-0.0045555997639894485,
0.03983374685049057,
0.002559834625571966,
0.07350576668977737,
0.035520538687705994,
-0.025172462686896324,
0.07162100076675415,
0.02357766404747963,
-0.003105781739577651,
-0.016138285398483276,
-0.08118980377912521,
-0.01038432028144598,
0.012740274891257286,
-0.016092978417873383,
-0.015395253896713257,
0.03133418783545494,
0.03472314029932022,
0.017098790034651756,
0.0028475329745560884,
0.03733281046152115,
0.01108204573392868,
0.03740530088543892,
0.006691815797239542,
-0.048750124871730804,
-0.036245446652173996,
-0.031678520143032074,
-0.024592535570263863,
0.048677634447813034,
-0.04856890067458153,
0.0024443024303764105,
0.012133163399994373,
0.024302572011947632,
-0.016953807324171066,
-0.029884371906518936,
-0.0037921799812465906,
0.021982863545417786,
0.026694772765040398,
0.03838392719626427,
-0.00746656209230423,
0.006456220522522926,
0.002843002323061228,
0.05128730833530426,
0.04034118354320526,
-0.021928494796156883,
-0.0029132277704775333,
0.04059490188956261,
-0.05284586176276207,
0.005568206775933504,
0.011471684090793133,
-0.026803508400917053,
0.028778884559869766,
-0.00545040937140584,
-0.040087465196847916,
-0.012214715592563152,
0.011027676984667778,
-0.015929874032735825,
-0.015277456492185593,
0.0072989268228411674,
0.012803704477846622,
0.00006006691910442896,
-0.0118250772356987,
-0.014126663096249104,
-0.023378314450383186,
0.011661972850561142,
-0.0260785985738039,
0.0650605782866478,
0.017207525670528412,
-0.04472688212990761,
0.027310945093631744,
0.017234710976481438,
-0.0339801050722599,
-0.047336556017398834,
-0.02765527553856373,
0.01477908156812191,
-0.005726780742406845,
0.07325205206871033,
0.019010737538337708,
-0.05781148746609688,
0.08184222131967545,
-0.0021135625429451466,
0.040232446044683456,
0.051178570836782455,
-0.020714273676276207,
-0.011100168339908123,
0.0018281297525390983,
-0.004143307916820049,
0.0017465774435549974,
0.0031782726291567087,
-0.03258465602993965,
0.006130011286586523,
0.002709347289055586,
-0.056579142808914185,
-0.01090081874281168,
-0.011834139004349709,
-0.06781522929668427,
-0.06607545167207718,
0.004961095750331879,
-0.0005586895858868957,
0.06680035591125488,
-0.036172956228256226,
0.05027243494987488,
-0.03747779130935669,
0.08234965801239014,
0.025444304570555687,
-0.14621412754058838,
-0.05005496367812157,
0.05904383212327957,
-0.005287304520606995,
-0.08539427071809769,
-0.03445129841566086,
0.026277950033545494,
-0.005201221909373999,
0.0332551971077919,
0.0019142127130180597,
0.003398010740056634,
-0.020116223022341728,
-0.021747268736362457,
-0.06419068574905396,
-0.04088486358523369,
-0.05262839049100876,
-0.049402546137571335,
0.03080862946808338,
-0.016020487993955612,
-0.02040618658065796,
0.013809515163302422,
0.060856107622385025,
-0.020261205732822418,
0.008821235969662666,
0.004505762364715338,
-0.009188220836222172,
-0.03474126011133194,
-0.006922880653291941,
-0.028579534962773323,
-0.040449921041727066,
0.03452378883957863,
0.05005496367812157,
0.06560426205396652,
0.034179456532001495,
-0.024375062435865402,
-0.011879445053637028,
0.01552211306989193,
-0.0073759485967457294,
0.013093668036162853,
-0.05654289945960045,
0.007770117837935686,
0.020152468234300613,
-0.007339702919125557,
-0.07691284269094467,
0.039145082235336304,
0.02890574373304844,
0.009074954316020012,
-0.011671033687889576,
0.025408059358596802,
-0.0010828326921910048,
0.036843497306108475,
-0.01824958249926567,
-0.055093079805374146,
-0.02172914519906044,
0.02963065356016159,
-0.031751010566949844,
0.0019040186889469624,
-0.008218655362725258,
-0.007869793102145195,
-0.03095361217856407,
-0.057231560349464417,
0.07785522192716599,
-0.03494061157107353,
0.009142913855612278,
0.01915571838617325,
0.027528416365385056,
-0.06948252022266388,
0.043494537472724915,
-0.0651693120598793,
-0.002641387050971389,
0.021257955580949783,
-0.04628543555736542,
-0.000666010077111423,
0.02307022735476494,
0.029250076040625572,
-0.012704029679298401,
0.05255590006709099,
-0.07357826083898544,
0.05973249673843384,
0.03889136388897896,
0.018648283556103706,
-0.02557116374373436,
0.024701273068785667,
0.08756899833679199,
0.037876494228839874,
0.009124791249632835,
-0.05476687103509903,
-0.038093965500593185,
0.017633410170674324,
0.0198806282132864,
0.036100465804338455,
-0.008118980564177036,
0.021076727658510208,
0.041501037776470184,
0.03834768384695053,
-0.07618793100118637,
-0.0359373614192009,
0.056941598653793335,
0.012214715592563152,
-0.0576302595436573,
0.017116911709308624,
0.02047867700457573,
0.041066091507673264,
-0.027383435517549515,
0.004347188398241997,
0.040087465196847916,
0.04472688212990761,
0.03615483269095421,
-0.020786764100193977,
-0.03365389630198479,
-0.034541912376880646,
-0.024737518280744553,
0.019101351499557495,
0.004589579999446869,
-0.03358140587806702,
0.008703437633812428,
0.08517680317163467,
-0.04237092658877373,
-0.0026549790054559708,
0.03434256091713905,
-0.009052300825715065,
0.008726091124117374,
-0.007475623395293951,
0.04284211993217468,
0.015005615539848804,
-0.03073613904416561,
-0.01758810319006443,
-0.011661972850561142,
-0.018829509615898132,
-0.030989857390522957,
-0.03390761464834213,
-0.020967992022633553,
-0.03907259181141853,
0.01964503340423107,
0.021892249584197998,
0.047191571444272995,
-0.008159756660461426
]
|
30,124 | networkx.classes.graph | clear_edges | Remove all edges from the graph without altering nodes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear_edges()
>>> list(G.nodes)
[0, 1, 2, 3]
>>> list(G.edges)
[]
| def clear_edges(self):
"""Remove all edges from the graph without altering nodes.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.clear_edges()
>>> list(G.nodes)
[0, 1, 2, 3]
>>> list(G.edges)
[]
"""
for nbr_dict in self._adj.values():
nbr_dict.clear()
nx._clear_cache(self)
| (self) | [
0.0033610155805945396,
0.02139885351061821,
0.010950631462037563,
-0.00470774807035923,
-0.08261818438768387,
0.003958788234740496,
-0.06847633421421051,
0.0026748566888272762,
0.09154988080263138,
-0.01717490702867508,
-0.02389228530228138,
-0.007554725743830204,
0.013723177835345268,
0.04577494040131569,
0.0009356183581985533,
0.013983686454594135,
-0.025883309543132782,
-0.0027050941716879606,
0.03877844661474228,
0.017947126179933548,
-0.03855515271425247,
-0.06393605470657349,
0.034442853182554245,
0.007089533377438784,
-0.012643931433558464,
0.012830008752644062,
0.012532285414636135,
-0.03661995381116867,
0.010383096523582935,
0.05969350039958954,
-0.020728977397084236,
-0.0254739411175251,
-0.025325078517198563,
0.0011019246885553002,
0.028581425547599792,
0.010057461448013783,
0.014365144073963165,
0.010494742542505264,
-0.0664294883608818,
0.007680328097194433,
0.042611632496118546,
0.012402031570672989,
0.025287862867116928,
-0.006080065853893757,
0.0480450801551342,
-0.027855725958943367,
0.06940671801567078,
0.008257166482508183,
0.01849605329334736,
-0.06680163741111755,
0.007936183363199234,
0.008954955264925957,
0.013425455428659916,
0.05880032852292061,
0.01572350598871708,
-0.010131891816854477,
-0.008954955264925957,
-0.00010488637053640559,
0.035354629158973694,
0.011983358301222324,
-0.0004404791397973895,
-0.015751417726278305,
-0.01471868995577097,
-0.05143168196082115,
0.010820376686751842,
-0.0032912367023527622,
-0.046295955777168274,
0.037922490388154984,
-0.022757215425372124,
-0.015072236768901348,
-0.026478756219148636,
0.0007791974348947406,
-0.004049500450491905,
0.01765870675444603,
-0.011499558575451374,
-0.0007844308274798095,
-0.0001405026705469936,
0.06211249902844429,
-0.016923703253269196,
-0.02865585684776306,
0.03025611862540245,
-0.010755250230431557,
-0.047598496079444885,
0.015686290338635445,
0.03719679266214371,
-0.02720445580780506,
0.012095004320144653,
0.04730077087879181,
0.033624112606048584,
-0.05132003501057625,
0.0412718765437603,
-0.008294382132589817,
-0.025939133018255234,
-0.025641409680247307,
0.02277582325041294,
0.028581425547599792,
-0.012318297289311886,
-0.03304727375507355,
-0.001324635581113398,
-0.045737724751234055,
-0.011211139149963856,
-0.020133530721068382,
-0.07606827467679977,
0.03533602133393288,
-0.03360550478100777,
-0.024283047765493393,
0.03505690395832062,
-0.08566984534263611,
-0.0004015192680526525,
0.027874333783984184,
-0.04097415506839752,
0.07755689322948456,
0.035763997584581375,
0.0225711390376091,
0.042537201195955276,
0.04640760272741318,
-0.052510928362607956,
-0.045663293451070786,
0.03448006510734558,
0.03903895244002342,
-0.056195251643657684,
0.05746057629585266,
-0.026125209406018257,
0.021175561472773552,
0.05336688086390495,
0.02333405427634716,
-0.008224602788686752,
-0.010308665223419666,
-0.008875872939825058,
-0.07219786942005157,
0.03559652715921402,
-0.006014938931912184,
-0.013351024128496647,
0.06114489957690239,
-0.005828861612826586,
-0.050575725734233856,
-0.019007764756679535,
-0.0441746786236763,
0.06174034625291824,
0.04938483238220215,
-0.06654113531112671,
-0.02236645482480526,
0.020338214933872223,
0.04175567626953125,
-0.004009959287941456,
-0.009992334060370922,
0.03343803435564041,
-0.03287980332970619,
-0.05325523391366005,
-0.038406290113925934,
-0.0008728174143470824,
0.020059099420905113,
-0.00837811641395092,
-0.05061294138431549,
-0.04819394275546074,
0.050650157034397125,
-0.04112301394343376,
0.035894252359867096,
-0.05530208349227905,
0.026646224781870842,
-0.04376531019806862,
0.009759738110005856,
0.033326391130685806,
-0.08485110849142075,
-0.011304177343845367,
-0.03974604606628418,
0.05046407878398895,
-0.04134630784392357,
-0.025994956493377686,
0.0201521385461092,
-0.0470774807035923,
-0.07755689322948456,
-0.055078789591789246,
-0.04160681739449501,
0.04160681739449501,
0.022552531212568283,
0.01842162199318409,
0.014523309655487537,
-0.017119083553552628,
0.04231390729546547,
-0.013127732090651989,
-0.05541372671723366,
-0.037085145711898804,
0.0038029486313462257,
0.06475479155778885,
-0.01710047572851181,
-0.011601900681853294,
-0.030591057613492012,
-0.019091499969363213,
-0.039225030690431595,
0.0038238822016865015,
0.004051826428622007,
0.007805929984897375,
0.034926652908325195,
0.022831646725535393,
-0.04175567626953125,
-0.011499558575451374,
-0.005205503664910793,
-0.029753711074590683,
0.03598729148507118,
-0.0042588370852172375,
-0.005359017290174961,
0.04495619982481003,
0.0008733989088796079,
-0.010820376686751842,
0.026329893618822098,
0.026683440431952477,
-0.08633972704410553,
0.021231384947896004,
0.03235878795385361,
-0.012625323608517647,
-0.02740914188325405,
0.06211249902844429,
-0.029474595561623573,
-0.024748239666223526,
0.007075577508658171,
-0.05165497213602066,
0.05850260704755783,
-0.041160229593515396,
-0.014662867411971092,
-0.044621262699365616,
-0.01045752689242363,
-0.03501968830823898,
-0.0605122372508049,
-0.002252694685012102,
0.0007169779273681343,
-0.014486094005405903,
-0.004856609273701906,
0.016179393976926804,
-0.05422283709049225,
0.08284147828817368,
0.03033054992556572,
0.0469658337533474,
-0.03896452113986015,
0.02500874735414982,
0.041644029319286346,
-0.01305330079048872,
-0.008052482269704342,
-0.016812056303024292,
0.0017781982896849513,
-0.04302100092172623,
-0.05519043654203415,
-0.018644914031028748,
-0.026218248531222343,
0.011266961693763733,
0.03650830686092377,
0.021343031898140907,
-0.0038006226532161236,
0.010606388561427593,
-0.02381785586476326,
-0.020412646234035492,
-0.08150172233581543,
0.03200524300336838,
-0.0067545948550105095,
0.05124560371041298,
-0.05448334291577339,
-0.07327712327241898,
-0.013202162459492683,
0.0013688289327546954,
0.045179493725299835,
0.036936283111572266,
0.02242227829992771,
-0.021305816248059273,
0.05649297311902046,
0.10100258886814117,
0.07134191691875458,
0.01136000081896782,
0.06092160567641258,
-0.02020796202123165,
-0.026329893618822098,
0.06914620846509933,
-0.06940671801567078,
0.06743430346250534,
0.025306470692157745,
0.027055595070123672,
0.06896013021469116,
-0.03038637340068817,
0.04715190827846527,
-0.00845254771411419,
0.032433219254016876,
0.020803408697247505,
-0.026534579694271088,
0.022180378437042236,
0.021175561472773552,
-0.0016014251159504056,
0.029232695698738098,
-0.008796789683401585,
-0.023650385439395905,
0.011974054388701916,
0.011806584894657135,
0.0682530403137207,
0.0007169779273681343,
-0.009015430696308613,
0.023110762238502502,
0.031465619802474976,
-0.027799902483820915,
0.05939577519893646,
-0.02002188377082348,
0.02223620004951954,
0.0719001516699791,
0.04957091063261032,
-0.040676429867744446,
-0.040267061442136765,
-0.018030861392617226,
0.06401048600673676,
0.005321802105754614,
0.0244505163282156,
0.03559652715921402,
0.0403042770922184,
0.022831646725535393,
-0.062075283378362656,
0.000012701935702352785,
-0.05232485011219978,
-0.0037866667844355106,
0.024003932252526283,
-0.011601900681853294,
-0.004305356647819281,
-0.01471868995577097,
-0.0029097790829837322,
0.01343475840985775,
-0.025529762730002403,
0.05824209749698639,
-0.03730843588709831,
0.006517346482723951,
-0.09199646860361099,
0.035149943083524704,
0.0374014750123024,
0.10829681158065796,
-0.00725235091522336,
-0.0015269942814484239,
0.043244294822216034,
-0.02422722429037094,
0.00517294043675065,
-0.009927207604050636,
-0.03758755326271057,
0.0108017697930336,
0.03252625837922096,
0.009127076715230942,
-0.010811073705554008,
-0.021771008148789406,
0.024952923879027367,
0.06356389820575714,
-0.007312825880944729,
-0.01229038555175066,
-0.010876200161874294,
0.07379813492298126,
-0.005405536852777004,
-0.0051589845679700375,
-0.013490581884980202,
-0.046147093176841736,
0.00921546295285225,
0.0825437530875206,
0.027818510308861732,
-0.020245177671313286,
0.037420082837343216,
0.006252186838537455,
0.002812088467180729,
0.020784800872206688,
-0.025994956493377686,
-0.006452219560742378,
0.014011597260832787,
0.020859230309724808,
-0.04529114067554474,
-0.033140312880277634,
0.06616897881031036,
-0.014206978492438793,
0.012485765852034092,
0.015379263088107109,
0.03434981405735016,
-0.020170746371150017,
-0.0037471253890544176,
-0.08522326499223709,
-0.06594568490982056,
-0.01422558631747961,
-0.0075128586031496525,
0.03330778330564499,
-0.017779655754566193,
0.05195269733667374,
0.058688685297966,
0.05615803599357605,
0.0168213602155447,
-0.03196802735328674,
0.04060199856758118,
-0.005693955812603235,
0.03870401531457901,
-0.04789621755480766,
0.03088878095149994,
0.020673153921961784,
0.03621058166027069,
0.02915826439857483,
-0.020859230309724808,
-0.007945487275719643,
0.0005948648904450238,
-0.015565340407192707,
-0.013267289847135544,
0.015276920981705189,
0.07067204266786575,
0.02526925504207611,
-0.026571795344352722,
-0.05533929914236069,
0.011573988944292068,
0.0032958886586129665,
0.019575299695134163,
0.022068731486797333,
0.030088650062680244,
0.0006274283514358103,
-0.009006126783788204,
0.0014990827767178416,
0.062075283378362656,
-0.009508534334599972,
0.052883081138134,
0.04923597350716591,
0.018328582867980003,
0.012634627521038055,
0.061591483652591705,
-0.02472963184118271,
0.057013992220163345,
-0.02145467698574066,
0.10598945617675781,
0.03572678193449974,
0.0019189190352335572,
0.04439796879887581,
-0.006080065853893757,
-0.01578863337635994,
0.0033959050197154284,
-0.03937389329075813,
-0.02577166259288788,
0.014300016686320305,
-0.026627616956830025,
0.06754595041275024,
-0.0022678133100271225,
-0.06855076551437378,
-0.0001395577419316396,
-0.0036843244452029467,
-0.042127832770347595,
0.03340081870555878,
0.01606774888932705,
-0.02720445580780506,
0.006908108480274677,
0.008387420326471329,
-0.054669421166181564,
-0.0069453236646950245,
0.01974276825785637,
-0.07000216096639633,
0.003986699506640434,
0.010438919067382812,
-0.00036488534533418715,
0.03755033761262894,
0.031056249514222145,
0.0023236365523189306,
-0.049980279058218,
-0.007671024184674025,
-0.0039611137472093105,
-0.06951836496591568,
-0.0941549614071846,
0.006256838794797659,
0.014309320598840714,
0.02811623364686966,
-0.048007864505052567,
0.03615475818514824,
0.0206917617470026,
-0.0032470435835421085,
-0.06520137935876846,
-0.028488388285040855,
0.022478099912405014,
-0.020245177671313286,
0.04391416907310486,
0.023799248039722443,
-0.013099820353090763,
0.004454217851161957,
0.0026748566888272762,
-0.054594989866018295,
-0.05426005274057388,
-0.04369087889790535,
-0.01792851835489273,
0.03518715873360634,
-0.049124326556921005,
-0.0007210483308881521,
-0.0206917617470026,
-0.045737724751234055,
-0.0061870599165558815,
-0.010271449573338032,
0.02943737991154194,
-0.019445044919848442,
0.05440891161561012,
-0.015035021118819714,
-0.00555439805611968,
-0.009889991953969002,
-0.03358689695596695,
-0.018589092418551445,
-0.03187498822808266,
-0.08239489048719406,
-0.06337781995534897,
-0.028562817722558975,
0.07472851872444153,
0.040267061442136765,
-0.05682791396975517,
-0.006722031161189079,
0.0025376249104738235,
-0.02368760108947754,
-0.005335757974535227,
-0.006861588917672634,
-0.03247043490409851,
0.0036029156763106585,
0.041867323219776154,
0.016049141064286232,
0.002375970594584942,
0.03448006510734558,
0.021138345822691917,
0.004917084705084562,
0.013369631953537464,
-0.031819164752960205,
0.019445044919848442,
0.042202260345220566,
0.0216035395860672,
-0.005721867550164461,
-0.021584931761026382,
-0.0023306142538785934,
0.007554725743830204,
0.001047264551743865,
-0.04555164650082588,
0.03384740650653839,
-0.021361637860536575,
0.05035243555903435,
-0.04465847834944725,
0.04145795479416847,
-0.021994300186634064,
-0.012969566509127617,
0.03433120623230934,
-0.00692206434905529,
0.07100698351860046,
0.031540051102638245,
-0.0023957411758601665,
0.06799253076314926,
0.011704242788255215,
0.007317477837204933,
0.0008588616037741303,
-0.06888570636510849,
-0.0326751209795475,
0.02500874735414982,
-0.016505029052495956,
-0.003788992762565613,
0.028134841471910477,
0.028544209897518158,
-0.004058804363012314,
0.01842162199318409,
0.038108568638563156,
0.018858904018998146,
0.04555164650082588,
-0.007001146674156189,
-0.051766619086265564,
-0.0006902293534949422,
-0.002688812557607889,
-0.05641854554414749,
0.02839534915983677,
-0.055711451917886734,
0.0011839148355647922,
0.02562280185520649,
0.02595774084329605,
-0.010271449573338032,
-0.03580121323466301,
0.00865723192691803,
0.005456707905977964,
0.015676986426115036,
0.011778674088418484,
0.013574316166341305,
-0.014420966617763042,
0.0018014578381553292,
0.041234660893678665,
0.048231154680252075,
-0.027520786970853806,
-0.004268140997737646,
0.0369734987616539,
-0.07082090526819229,
-0.012057788670063019,
0.004865913186222315,
-0.033419426530599594,
-0.018793776631355286,
0.010401704348623753,
-0.04391416907310486,
-0.03386601433157921,
-0.017342375591397285,
-0.04893824830651283,
-0.015872366726398468,
0.003675020532682538,
0.026478756219148636,
-0.019426437094807625,
-0.003572678193449974,
-0.02526925504207611,
0.006238230969756842,
0.031205112114548683,
-0.03660134598612785,
0.049533694982528687,
0.026776479557156563,
-0.047524064779281616,
0.021715184673666954,
-0.005284586455672979,
-0.0297723188996315,
-0.06791809946298599,
-0.027260279282927513,
0.011239049956202507,
-0.024078363552689552,
0.07402142882347107,
0.00030964374309405684,
-0.06475479155778885,
0.06043780595064163,
0.012653235346078873,
0.006433612201362848,
0.040825292468070984,
0.0008187387720681727,
-0.04004376754164696,
0.05198991298675537,
0.025380901992321014,
-0.0018421622226014733,
-0.005321802105754614,
-0.03641526773571968,
0.009852776303887367,
0.022533923387527466,
-0.06274516135454178,
-0.009089861065149307,
-0.02188265509903431,
-0.04346758499741554,
-0.04060199856758118,
0.02071036957204342,
0.001607240061275661,
0.05839096009731293,
0.006052154116332531,
0.06188920885324478,
-0.0432070791721344,
0.07651486247777939,
-0.013546405360102654,
-0.12861642241477966,
-0.05061294138431549,
0.07807790488004684,
0.007447731681168079,
-0.10509628802537918,
-0.025101786479353905,
0.022198984399437904,
-0.00434489781036973,
0.0480450801551342,
-0.007187223993241787,
0.004772874992340803,
-0.0393366776406765,
-0.030237510800361633,
-0.06423377990722656,
-0.010159803554415703,
-0.06419656425714493,
-0.05705120414495468,
0.001130417687818408,
-0.02043125405907631,
0.01432792842388153,
-0.0035819821059703827,
0.038406290113925934,
-0.026906732469797134,
-0.00799665879458189,
0.027446355670690536,
-0.0013164947740733624,
-0.0383690744638443,
0.026329893618822098,
-0.026888124644756317,
-0.009610876441001892,
0.027092810720205307,
0.030758526176214218,
0.010206323117017746,
0.030907388776540756,
-0.00865723192691803,
-0.0211197379976511,
0.026125209406018257,
0.00973182637244463,
0.025939133018255234,
-0.041792891919612885,
-0.022310631349682808,
-0.003570352215319872,
-0.0470774807035923,
-0.07439358532428741,
0.034721966832876205,
0.017007436603307724,
0.016709713265299797,
0.002057313686236739,
0.029939787462353706,
-0.03302866593003273,
0.03786666691303253,
-0.023855069652199745,
-0.014309320598840714,
-0.01820763386785984,
0.0031005078926682472,
-0.0325634740293026,
0.023278232663869858,
-0.024543555453419685,
-0.011592596769332886,
-0.021994300186634064,
-0.052734218537807465,
0.062075283378362656,
-0.036675773561000824,
0.022533923387527466,
0.0037564293015748262,
0.016709713265299797,
-0.05731171369552612,
0.04521670937538147,
-0.042127832770347595,
0.012960262596607208,
0.0374014750123024,
-0.03903895244002342,
0.007429123856127262,
0.031465619802474976,
0.0033610155805945396,
-0.015909582376480103,
0.0254739411175251,
-0.08805163204669952,
0.06735987216234207,
-0.010504046455025673,
0.018319280818104744,
-0.02763243392109871,
0.01876586489379406,
0.06188920885324478,
0.047672923654317856,
-0.013071908615529537,
-0.06575960665941238,
-0.04015541449189186,
0.005014774855226278,
0.017277248203754425,
0.04789621755480766,
-0.037215396761894226,
0.04603544622659683,
0.010811073705554008,
0.027111418545246124,
-0.06293123960494995,
-0.006591777317225933,
0.028786111623048782,
0.023296838626265526,
-0.042686063796281815,
0.0069313677959144115,
0.026497364044189453,
0.04797064885497093,
-0.03550349175930023,
0.007973399013280869,
0.019407831132411957,
0.040341492742300034,
0.029790926724672318,
-0.013630139641463757,
-0.015035021118819714,
-0.06419656425714493,
-0.011750762350857258,
0.03900173678994179,
0.021491892635822296,
-0.024766847491264343,
0.0019782311283051968,
0.08552098274230957,
-0.036880459636449814,
-0.029809534549713135,
0.027111418545246124,
0.01771453022956848,
0.006000983063131571,
-0.012271777726709843,
0.03137258067727089,
0.015025717206299305,
-0.025176217779517174,
-0.031409796327352524,
-0.024283047765493393,
-0.02188265509903431,
-0.027520786970853806,
-0.01146234292536974,
-0.04521670937538147,
-0.036247797310352325,
-0.008847961202263832,
0.025083178654313087,
0.06367554515600204,
-0.0187007375061512
]
|
30,130 | networkx.classes.graph | is_directed | Returns True if graph is directed, False otherwise. | def is_directed(self):
"""Returns True if graph is directed, False otherwise."""
return False
| (self) | [
0.021615484729409218,
0.019967282190918922,
0.03040589578449726,
0.024259475991129875,
-0.0061936345882713795,
0.0015033406671136618,
-0.06335277110338211,
0.023366698995232582,
0.05724068731069565,
0.009228215552866459,
-0.01837058737874031,
-0.03425170108675957,
0.039076127111911774,
0.039453838020563126,
0.0056785717606544495,
-0.008902008645236492,
-0.033152900636196136,
0.05645092576742172,
0.007369695696979761,
0.020035957917571068,
-0.058888889849185944,
0.0005397432832978666,
0.04206349328160286,
-0.026594428345561028,
-0.00583738274872303,
0.03900745138525963,
-0.0008729248074814677,
-0.0022770084906369448,
-0.02223356068134308,
0.07588597387075424,
-0.08103660494089127,
-0.04123939201235771,
0.027761906385421753,
0.041754454374313354,
0.050373177975416183,
0.057687077671289444,
-0.03732491284608841,
0.069808229804039,
-0.12718626856803894,
-0.02759021706879139,
-0.0540129579603672,
0.018937155604362488,
-0.011194040067493916,
0.03260349854826927,
-0.005721493624150753,
-0.01659361831843853,
-0.0015537738800048828,
0.0048759314231574535,
-0.04807256534695625,
-0.05284548178315163,
0.032758019864559174,
-0.011322805657982826,
0.020224815234541893,
0.07904502749443054,
-0.02965047024190426,
0.010756236501038074,
0.019984452053904533,
0.04264723137021065,
-0.014044055715203285,
0.023675737902522087,
0.010670391842722893,
-0.001623522024601698,
0.02748720534145832,
-0.05287982150912285,
-0.01763232983648777,
0.015889698639512062,
-0.06960220634937286,
0.007172254845499992,
0.0004128553264308721,
0.058785878121852875,
-0.0379086509346962,
0.032895367592573166,
0.004242832772433758,
0.05675996467471123,
0.028482994064688683,
-0.0309896357357502,
0.019057337194681168,
0.020842889323830605,
-0.007232345640659332,
-0.03938516601920128,
-0.02238808013498783,
-0.01788986101746559,
0.008210965432226658,
-0.01235293224453926,
-0.0036762633826583624,
-0.023555556312203407,
-0.008107952773571014,
0.019520895555615425,
-0.009769031777977943,
-0.03608876094222069,
-0.01355474628508091,
-0.010189666412770748,
0.010266926139593124,
0.019314870238304138,
-0.035917073488235474,
0.04968642815947533,
0.01374360267072916,
-0.06568772345781326,
0.02467152662575245,
-0.04790087789297104,
-0.022645611315965652,
0.03622611239552498,
-0.021237771958112717,
0.013906706124544144,
-0.027555881068110466,
-0.07616067677736282,
-0.054905734956264496,
-0.02214771695435047,
-0.031916748732328415,
-0.033719468861818314,
-0.07794623076915741,
0.007953434251248837,
0.058648526668548584,
0.03938516601920128,
0.01849076896905899,
-0.04511953517794609,
0.022473923861980438,
-0.02916974574327469,
-0.03547068312764168,
0.006163589656352997,
-0.016284581273794174,
0.042612895369529724,
-0.013632006011903286,
-0.034835439175367355,
0.06706122308969498,
0.008069323375821114,
0.025203758850693703,
-0.007365403696894646,
-0.012370101176202297,
0.002753441920503974,
0.03353061154484749,
0.010361354798078537,
-0.020722709596157074,
0.0725208967924118,
0.01046436745673418,
0.00693189213052392,
-0.007944849319756031,
0.013709264807403088,
0.016207320615649223,
0.058545514941215515,
-0.015966959297657013,
-0.025220926851034164,
0.047969549894332886,
0.02164982259273529,
-0.03280952572822571,
0.03500712662935257,
-0.06661483645439148,
-0.012867995537817478,
-0.022920312359929085,
-0.022061873227357864,
0.08158601075410843,
-0.02566731534898281,
-0.0024594266433268785,
-0.009451409801840782,
-0.052090056240558624,
0.00784612912684679,
-0.058785878121852875,
-0.01544331107288599,
0.03110981546342373,
0.01216407585889101,
-0.0615328811109066,
-0.04659605026245117,
0.01719452627003193,
0.0230919998139143,
-0.013056851923465729,
-0.02918691374361515,
0.03828636184334755,
-0.030920960009098053,
-0.03650081157684326,
0.047351475805044174,
-0.01957240141928196,
-0.02492905780673027,
-0.07650405168533325,
0.0017737488960847259,
0.010687560774385929,
0.02128927782177925,
0.054528024047613144,
0.08268480747938156,
0.0014303734060376883,
0.023675737902522087,
0.028500162065029144,
-0.050029803067445755,
-0.0382176898419857,
-0.012764982879161835,
0.06321541965007782,
0.005103417672216892,
0.009039359167218208,
-0.006352446042001247,
0.03646647185087204,
0.04463880881667137,
-0.004970359615981579,
0.006648607086390257,
0.0039252107962965965,
0.010790573433041573,
0.02892938256263733,
-0.08790411800146103,
0.02079138346016407,
0.006661484017968178,
-0.03358212113380432,
0.061086494475603104,
0.06506964564323425,
-0.025564301759004593,
0.0006947987712919712,
0.017143020406365395,
0.001099874498322606,
0.07327631860971451,
-0.040209267288446426,
-0.00699198292568326,
0.013932459056377411,
-0.02759021706879139,
-0.057687077671289444,
-0.06287204474210739,
0.04999546706676483,
0.030423065647482872,
0.0032685052137821913,
-0.03656948730349541,
-0.025135083124041557,
0.025186588987708092,
-0.04755749925971031,
0.024465501308441162,
0.05439067259430885,
-0.020001620054244995,
0.014207159169018269,
-0.01957240141928196,
0.002214771695435047,
-0.023401036858558655,
-0.0004670442722272128,
-0.03904179111123085,
-0.02652575448155403,
-0.0675419494509697,
0.03900745138525963,
-0.014258665964007378,
0.025976352393627167,
0.04000324010848999,
0.04278458282351494,
-0.019314870238304138,
0.009511499665677547,
0.024173632264137268,
-0.038252025842666626,
0.01609572395682335,
-0.043093618005514145,
-0.0323459692299366,
-0.009211046621203423,
-0.018662456423044205,
0.016447683796286583,
0.01117687113583088,
0.023177843540906906,
0.008537172339856625,
-0.000695871829520911,
-0.03461224585771561,
-0.05243343114852905,
-0.07629802823066711,
-0.03222578763961792,
-0.021237771958112717,
0.0035131601616740227,
-0.0410677045583725,
-0.056828636676073074,
0.00017530926561448723,
0.03571104630827904,
0.015700843185186386,
-0.03026854619383812,
0.03014836460351944,
-0.054150309413671494,
0.10157045722007751,
0.024534177035093307,
-0.0058245062828063965,
-0.008502834476530552,
0.02844865620136261,
-0.010361354798078537,
-0.02357272431254387,
0.10273793339729309,
-0.003487406997010112,
-0.0060477000661194324,
0.002184726297855377,
0.0049059768207371235,
-0.023555556312203407,
-0.010618885979056358,
0.024122126400470734,
-0.035814061760902405,
-0.018645286560058594,
-0.02747003734111786,
-0.008786119520664215,
-0.046733397990465164,
-0.0033328880090266466,
-0.06520699709653854,
-0.009442824870347977,
-0.008833333849906921,
0.0015838192775845528,
-0.013537577353417873,
-0.0032878199126571417,
0.050132814794778824,
0.013966796919703484,
0.03064625896513462,
0.030474571511149406,
0.023555556312203407,
0.003757815109565854,
0.040071915835142136,
-0.03112698532640934,
0.020087463781237602,
0.01909167505800724,
0.04158276692032814,
-0.03694719821214676,
0.02649141661822796,
0.0034080015029758215,
-0.010378522798418999,
0.00284357788041234,
-0.007554260082542896,
0.012764982879161835,
0.0398658886551857,
-0.00011998021363979205,
-0.05576417222619057,
0.01946938782930374,
-0.01343456469476223,
0.06005636602640152,
0.010490120388567448,
-0.008743197657167912,
-0.030491741374135017,
-0.0355050228536129,
0.020602528005838394,
0.09429089725017548,
-0.06912147998809814,
0.07993780821561813,
-0.06029672920703888,
-0.0053437803871929646,
-0.06795400381088257,
0.029375771060585976,
0.057687077671289444,
0.020327826961874962,
0.04412374645471573,
0.07231487333774567,
0.042372532188892365,
-0.002914399141445756,
0.045771948993206024,
-0.003981009125709534,
-0.0681600272655487,
-0.010962261818349361,
0.02419080026447773,
-0.028517331928014755,
0.03380531445145607,
-0.0362604483962059,
0.02614804171025753,
-0.004695659503340721,
0.026165209710597992,
-0.006060576997697353,
0.02858600579202175,
0.0425785556435585,
-0.03917913883924484,
-0.0017801871290430427,
0.046527374535799026,
0.04714544862508774,
-0.03608876094222069,
0.10060901194810867,
-0.026577260345220566,
0.0374622605741024,
-0.03377097472548485,
0.019778426736593246,
0.0026633059605956078,
0.048209913074970245,
-0.01009523868560791,
0.032019760459661484,
0.023761581629514694,
-0.0004356575955171138,
0.004648445174098015,
0.013846615329384804,
0.02844865620136261,
0.004386621527373791,
0.023916101083159447,
0.002667597960680723,
0.0619792714715004,
-0.052570782601833344,
-0.035298995673656464,
-0.04161710664629936,
-0.04474182054400444,
-0.03832070156931877,
0.004592646844685078,
-0.003049603197723627,
0.020997408777475357,
0.023624232038855553,
0.06115517020225525,
0.04659605026245117,
-0.0067301588132977486,
0.02226789854466915,
0.006391075439751148,
0.03814901411533356,
0.027933593839406967,
-0.01921185664832592,
0.03560803458094597,
0.048450276255607605,
-0.03979721665382385,
-0.030062520876526833,
-0.027040816843509674,
-0.03188241273164749,
-0.02369290590286255,
-0.038114674389362335,
-0.07980045676231384,
-0.043093618005514145,
0.04292193055152893,
0.003671971382573247,
-0.0588202141225338,
-0.008339731022715569,
0.02226789854466915,
0.013726433739066124,
-0.008601555600762367,
0.029993845149874687,
0.0012565396027639508,
0.03650081157684326,
0.0307664405554533,
0.018902819603681564,
0.0117348562926054,
-0.008532879874110222,
0.07046063989400864,
0.010859249159693718,
-0.0859125405550003,
-0.00818521250039339,
0.03526465967297554,
-0.0050519113428890705,
0.037015873938798904,
0.037256237119436264,
0.08241011202335358,
0.030817946419119835,
0.042612895369529724,
0.03232879936695099,
0.046012312173843384,
-0.0007441589841619134,
0.009760447777807713,
-0.020894397050142288,
0.01263621635735035,
0.05662261322140694,
-0.03232879936695099,
0.039934564381837845,
0.003195537719875574,
-0.042132169008255005,
0.0540129579603672,
-0.0430249460041523,
0.017160188406705856,
-0.005566974636167288,
0.0010236881207674742,
-0.048587627708911896,
-0.008000648580491543,
0.04961775243282318,
0.016507774591445923,
-0.022199222818017006,
-0.0493430532515049,
-0.04144541919231415,
-0.009614512324333191,
-0.06788532435894012,
0.0019314868841320276,
-0.006459750700742006,
0.05727502703666687,
-0.018507936969399452,
-0.02226789854466915,
0.02539261430501938,
0.04817557707428932,
-0.022782960906624794,
-0.12313444167375565,
0.020894397050142288,
0.0007532798917964101,
-0.021014578640460968,
-0.001215763739310205,
0.02491188980638981,
0.008464205078780651,
-0.0002222551265731454,
-0.11503078043460846,
-0.007498461287468672,
0.010747651569545269,
0.0038543895352631807,
0.0023328070528805256,
0.023504050448536873,
-0.02807094343006611,
-0.0002296323364134878,
0.06156722083687782,
-0.04402073472738266,
-0.028620343655347824,
-0.05737803876399994,
-0.005275105591863394,
0.019040169194340706,
-0.05133463069796562,
0.007893343456089497,
-0.03126433491706848,
0.006112083327025175,
-0.08838484436273575,
-0.040174927562475204,
-0.011631843633949757,
0.02019047737121582,
0.014215744100511074,
-0.053806934505701065,
-0.03540201112627983,
0.004041099920868874,
0.006167881656438112,
-0.0019057338358834386,
0.020035957917571068,
-0.06568772345781326,
0.022336574271321297,
-0.04154843091964722,
0.04429543390870094,
0.03164204955101013,
-0.027075154706835747,
-0.014078393578529358,
-0.007189423777163029,
0.0048287175595760345,
-0.003588273422792554,
0.016962748020887375,
-0.038835763931274414,
-0.007670149207115173,
0.05851117894053459,
-0.0011041667312383652,
0.013297214172780514,
-0.012558957561850548,
-0.03078361041843891,
0.03615743666887283,
0.03808033838868141,
0.014001133851706982,
0.03342759981751442,
0.06067444384098053,
0.07746550440788269,
0.04250987991690636,
-0.0033543489407747984,
0.008451328612864017,
0.03842371329665184,
-0.03462941572070122,
0.05483705922961235,
-0.03330741822719574,
0.006288063246756792,
-0.0014550534542649984,
-0.0437803715467453,
0.0461839996278286,
-0.03267217427492142,
-0.0012297133216634393,
0.008279640227556229,
0.01161467470228672,
0.052090056240558624,
0.031676385551691055,
-0.011717687360942364,
0.07320764660835266,
-0.009520084597170353,
0.05700032413005829,
-0.007215176708996296,
0.05741237476468086,
-0.08206673711538315,
0.01859378069639206,
0.016524944454431534,
-0.033633626997470856,
-0.024860382080078125,
0.00984629150480032,
0.036638159304857254,
-0.02140945941209793,
0.03356495127081871,
-0.02419080026447773,
0.036432135850191116,
-0.008640184998512268,
-0.02542695216834545,
0.03280952572822571,
-0.031659215688705444,
-0.04776352643966675,
0.11310787498950958,
0.026079365983605385,
0.009554422460496426,
0.06757628917694092,
0.027607386931777,
0.025873340666294098,
-0.043230969458818436,
-0.05614188686013222,
-0.013108357787132263,
-0.022920312359929085,
-0.004416666924953461,
-0.01356333028525114,
0.03425170108675957,
-0.023538388311862946,
0.02079138346016407,
0.03392549604177475,
-0.014790898188948631,
-0.05408163368701935,
0.009391319006681442,
0.013632006011903286,
0.02041367068886757,
0.0367068350315094,
-0.011262714862823486,
0.02125493995845318,
-0.049171365797519684,
-0.05518043413758278,
-0.04467314854264259,
0.009588759392499924,
0.01520294789224863,
0.03602008521556854,
-0.008708859793841839,
-0.026216715574264526,
-0.015151442028582096,
-0.0074040330946445465,
0.00595756433904171,
-0.03420019522309303,
-0.046527374535799026,
-0.04752316325902939,
0.011082442477345467,
-0.04398639500141144,
0.0019829932134598494,
-0.013640590012073517,
0.01957240141928196,
-0.014971169643104076,
0.041033368557691574,
-0.005455377511680126,
-0.03838937729597092,
0.026079365983605385,
0.029736313968896866,
-0.03480110317468643,
0.013872368261218071,
0.00031950013362802565,
-0.009262552484869957,
-0.04412374645471573,
-0.027281180024147034,
-0.04560026153922081,
-0.020739877596497536,
0.04158276692032814,
-0.007472708355635405,
-0.05353223532438278,
0.039453838020563126,
-0.02918691374361515,
-0.030697764828801155,
0.03766828775405884,
-0.019126012921333313,
0.03547068312764168,
0.036672499030828476,
-0.019744088873267174,
-0.0011095319641754031,
-0.015554907731711864,
-0.05030450597405434,
0.020001620054244995,
0.0266287662088871,
-0.05315452069044113,
0.0033371802419424057,
-0.004144112579524517,
0.012249919585883617,
-0.04439844563603401,
-0.011048105545341969,
-0.038355037569999695,
-0.006408244371414185,
-0.09525234997272491,
-0.007584305480122566,
0.00449392618611455,
0.029513120651245117,
0.04632134735584259,
-0.08783543854951859,
0.030217040330171585,
-0.0341486893594265,
-0.01300534512847662,
-0.03344476968050003,
-0.01556349266320467,
-0.0013445295626297593,
-0.02566731534898281,
0.04130806773900986,
-0.033513445407152176,
-0.044570133090019226,
0.08522579073905945,
0.02333236299455166,
-0.02721250429749489,
0.029856495559215546,
0.03014836460351944,
-0.009331228211522102,
0.01809588633477688,
-0.0003651046718005091,
-0.06555037200450897,
0.02077421545982361,
-0.01160609070211649,
0.02673177979886532,
-0.008022109046578407,
0.02892938256263733,
0.06252866983413696,
-0.028173957020044327,
-0.01946938782930374,
-0.008103660307824612,
-0.06403952091932297,
-0.045291222631931305,
0.07169679552316666,
0.03574538603425026,
-0.013571915216743946,
-0.00511200213804841,
-0.014962585642933846,
-0.014636378735303879,
-0.038355037569999695,
-0.012661970220506191,
-0.027143830433487892,
-0.031676385551691055,
0.018027210608124733,
-0.050991255789995193,
-0.009502915665507317,
-0.012181243859231472,
-0.003457361599430442,
-0.030131196603178978,
-0.03564237058162689,
0.004596938844770193,
-0.023538388311862946,
-0.03996890410780907,
-0.022302236407995224,
0.0386640764772892,
0.02360706217586994,
0.07705345004796982,
-0.012181243859231472,
-0.04460447281599045,
0.041411079466342926,
-0.005644233897328377,
-0.0076787336729466915,
0.02676611766219139,
0.011477324180305004,
0.0026718901935964823,
0.02834564447402954,
0.028860706835985184,
-0.03523031994700432,
-0.03711888566613197,
0.02820829302072525,
0.014490444213151932,
0.0013316529802978039,
-0.04075866565108299,
0.018645286560058594,
0.01645626872777939,
-0.040552642196416855,
-0.016447683796286583,
-0.05456236004829407,
-0.016645126044750214,
0.011520246975123882,
-0.008000648580491543,
-0.008816164918243885,
-0.015117104165256023,
-0.04899967834353447,
-0.032758019864559174,
0.021066084504127502,
0.005781584419310093,
-0.007206592243164778,
-0.04824425280094147,
-0.030371559783816338,
0.0027019355911761522,
-0.011777778156101704,
-0.020241983234882355,
0.0449821837246418,
-0.0008621942833997309,
0.06403952091932297,
-0.07595465332269669,
0.03184807300567627,
0.014318756759166718,
0.05315452069044113,
-0.00972610991448164,
0.04714544862508774,
0.04872497543692589,
-0.005451085511595011,
0.007738824468106031,
-0.03965986520051956,
0.02175283432006836,
-0.02577032707631588,
0.00015103154873941094,
0.07458114624023438,
-0.0228688046336174,
-0.054528024047613144,
0.06771364063024521,
0.003777130041271448,
0.029135407879948616,
-0.04096469283103943,
0.014361678622663021,
0.034938450902700424,
0.004541140515357256,
-0.009322643280029297,
0.016284581273794174,
-0.07410041987895966,
-0.05167800560593605,
-0.006970521528273821,
0.01740913651883602,
-0.0023993360809981823,
-0.05092258006334305,
0.04316229373216629,
0.009811953641474247,
0.07671007513999939
]
|
30,133 | networkx.classes.graph | neighbors | Returns an iterator over all neighbors of node n.
This is identical to `iter(G[n])`
Parameters
----------
n : node
A node in the graph
Returns
-------
neighbors : iterator
An iterator over all neighbors of node n
Raises
------
NetworkXError
If the node n is not in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> [n for n in G.neighbors(0)]
[1]
Notes
-----
Alternate ways to access the neighbors are ``G.adj[n]`` or ``G[n]``:
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edge("a", "b", weight=7)
>>> G["a"]
AtlasView({'b': {'weight': 7}})
>>> G = nx.path_graph(4)
>>> [n for n in G[0]]
[1]
| def neighbors(self, n):
"""Returns an iterator over all neighbors of node n.
This is identical to `iter(G[n])`
Parameters
----------
n : node
A node in the graph
Returns
-------
neighbors : iterator
An iterator over all neighbors of node n
Raises
------
NetworkXError
If the node n is not in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> [n for n in G.neighbors(0)]
[1]
Notes
-----
Alternate ways to access the neighbors are ``G.adj[n]`` or ``G[n]``:
>>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> G.add_edge("a", "b", weight=7)
>>> G["a"]
AtlasView({'b': {'weight': 7}})
>>> G = nx.path_graph(4)
>>> [n for n in G[0]]
[1]
"""
try:
return iter(self._adj[n])
except KeyError as err:
raise NetworkXError(f"The node {n} is not in the graph.") from err
| (self, n) | [
0.0016828490188345313,
-0.0674065575003624,
-0.05081417039036751,
-0.018981240689754486,
-0.044147588312625885,
0.01825902797281742,
-0.016768306493759155,
0.0347958542406559,
0.05366598814725876,
-0.01691645197570324,
-0.01400908175855875,
0.0053841909393668175,
0.028832968324422836,
0.059777021408081055,
-0.015814615413546562,
0.007786938454955816,
-0.025555232539772987,
0.008661927655339241,
-0.02635151892900467,
0.029981102794408798,
-0.057851120829582214,
-0.015305361710488796,
0.020740477368235588,
-0.0295551810413599,
-0.0269255843013525,
0.04299945384263992,
0.04018467664718628,
0.01330538745969534,
0.021907130256295204,
0.026907065883278847,
-0.06544361263513565,
-0.04888826981186867,
-0.035481031984090805,
-0.021833056584000587,
0.02140713669359684,
0.04718458652496338,
-0.03142552822828293,
0.03348105773329735,
-0.05266600102186203,
0.031147753819823265,
0.035388439893722534,
-0.008615631610155106,
0.027851499617099762,
-0.010120241902768612,
0.007106391713023186,
-0.02275897189974785,
0.014768331311643124,
0.0024860796984285116,
-0.03525881469249725,
-0.05218452587723732,
0.020610850304365158,
0.012222067452967167,
0.026018189266324043,
-0.04644385725259781,
-0.011027637869119644,
0.004449017811566591,
0.016129424795508385,
0.008300821296870708,
0.012638729065656662,
0.029258888214826584,
-0.029629254713654518,
-0.03229588642716408,
0.04403647780418396,
-0.00882859155535698,
0.01970345340669155,
-0.031369972974061966,
-0.02762928046286106,
-0.058591850101947784,
-0.02722187712788582,
0.00853692926466465,
0.029036669060587883,
0.019444197416305542,
0.018212731927633286,
-0.009222105145454407,
-0.031314417719841,
0.013583160936832428,
0.013888712972402573,
0.10059131681919098,
0.04592534527182579,
-0.019203459843993187,
0.009198958054184914,
-0.0024860796984285116,
-0.054036352783441544,
-0.059554800391197205,
0.01400908175855875,
-0.004847161006182432,
0.011157265864312649,
-0.01938864402472973,
-0.010120241902768612,
0.058332595974206924,
-0.05051787942647934,
-0.030055174604058266,
-0.01899975910782814,
0.00039814310730434954,
-0.00009049364598467946,
0.004935122560709715,
-0.00781471561640501,
-0.036481019109487534,
0.012147994711995125,
-0.01829606480896473,
-0.03372179716825485,
0.019536789506673813,
-0.030444059520959854,
0.05192526802420616,
-0.025814488530158997,
-0.05844370275735855,
-0.05840666964650154,
-0.02324044704437256,
-0.0028194086626172066,
-0.01588868722319603,
-0.09451732039451599,
0.013851676136255264,
0.0004415453295223415,
-0.01089800987392664,
0.03229588642716408,
0.017564592882990837,
0.022314531728625298,
-0.013805381022393703,
0.03468474745750427,
-0.010027650743722916,
-0.00012875994434580207,
0.06273994594812393,
-0.017573852092027664,
0.019166424870491028,
-0.0011539205443114042,
0.017129411920905113,
0.03785137087106705,
0.006481399293988943,
-0.0007760318694636226,
-0.06625842303037643,
0.05051787942647934,
-0.0033865312580019236,
-0.0072823152877390385,
0.08348042517900467,
-0.015703504905104637,
0.02907370589673519,
-0.003224496264010668,
-0.013296128250658512,
-0.019462715834379196,
0.02714780531823635,
-0.009999873116612434,
-0.04451795667409897,
0.011046156287193298,
0.029962584376335144,
-0.03825877606868744,
-0.006689730100333691,
-0.030314430594444275,
-0.0032754214480519295,
0.01749051921069622,
-0.03418475389480591,
-0.015907205641269684,
0.0031689414754509926,
0.06533250957727432,
0.02214786782860756,
-0.05992516875267029,
0.006560102105140686,
-0.00583325931802392,
-0.018509024754166603,
0.007249908056110144,
-0.027610762044787407,
-0.030351467430591583,
0.02599967084825039,
-0.0017673387192189693,
-0.006023071706295013,
-0.01912938803434372,
0.025055238977074623,
-0.0028425566852092743,
-0.06414733827114105,
0.031888484954833984,
0.0138979721814394,
-0.007541571278125048,
-0.02487005479633808,
-0.02066640555858612,
-0.025981152430176735,
-0.05459190160036087,
0.06099922955036163,
0.013342423364520073,
0.01604609377682209,
0.011083193123340607,
0.00724527845159173,
0.015555358491837978,
-0.03038850426673889,
-0.03662916645407677,
-0.06188810616731644,
0.009314697235822678,
0.04348093271255493,
0.02018493041396141,
-0.005046232603490353,
0.01771273836493492,
0.012425768189132214,
0.03559214249253273,
-0.01221280824393034,
0.03529584780335426,
0.03336994722485542,
-0.015805356204509735,
-0.03542547672986984,
0.0020937235094606876,
0.04911049082875252,
-0.051851194351911545,
0.07985083758831024,
0.05003640428185463,
0.014323893003165722,
-0.03375883027911186,
0.043666113168001175,
-0.008786926046013832,
0.032555144280195236,
-0.030851460993289948,
-0.07336944341659546,
0.0030485724564641714,
-0.009407288394868374,
-0.01578683778643608,
-0.020684923976659775,
0.05574003607034683,
0.016703492030501366,
-0.013342423364520073,
0.038629140704870224,
-0.02298119105398655,
0.004916604608297348,
-0.004393463023006916,
-0.02775890752673149,
0.03870321437716484,
-0.02666632831096649,
0.005300858989357948,
-0.019166424870491028,
-0.007740642875432968,
-0.03199959546327591,
-0.014425743371248245,
0.0008697806624695659,
-0.0012951225508004427,
-0.053517840802669525,
0.02359229326248169,
0.07477682828903198,
0.023166373372077942,
0.003233755473047495,
0.059295546263456345,
0.02920333482325077,
-0.04040689766407013,
0.011583186686038971,
-0.0007031161221675575,
0.00819896999746561,
-0.049925293773412704,
-0.01771273836493492,
-0.01510166097432375,
-0.02201823890209198,
0.013323904946446419,
-0.013342423364520073,
-0.007962862029671669,
0.038592103868722916,
0.027129286900162697,
0.03555510565638542,
-0.037666190415620804,
-0.07025837153196335,
-0.013536865822970867,
-0.03253662586212158,
0.030888497829437256,
-0.028740376234054565,
-0.07696198672056198,
-0.02153676375746727,
0.02635151892900467,
0.030721833929419518,
0.005990664940327406,
0.0016955804312601686,
0.015536840073764324,
0.03662916645407677,
0.04118466377258301,
0.04996233060956001,
-0.004161984194070101,
0.016129424795508385,
-0.007208242081105709,
0.00004535532934824005,
0.06992504000663757,
0.06188810616731644,
0.0032846806570887566,
0.015749800950288773,
0.021518245339393616,
-0.04659200459718704,
0.009365621954202652,
0.032110705971717834,
-0.015333139337599277,
-0.027832981199026108,
-0.01585165038704872,
-0.008661927655339241,
-0.07829530537128448,
0.020296039059758186,
-0.031092198565602303,
-0.021240470930933952,
0.002289322903379798,
0.011870220303535461,
0.02009233832359314,
-0.022833043709397316,
0.08570262044668198,
-0.01842569187283516,
0.00015595866716466844,
-0.022388605400919914,
0.03446252644062042,
-0.007513793651014566,
-0.020981216803193092,
0.036184728145599365,
0.012833170592784882,
0.07036948204040527,
0.08896183967590332,
-0.045592013746500015,
-0.06136959418654442,
-0.012703542597591877,
-0.004511517006903887,
0.061925143003463745,
0.06444362550973892,
0.08177674561738968,
-0.006245291326195002,
0.020777514204382896,
-0.01983308233320713,
-0.06540657579898834,
0.003280051052570343,
-0.037629153579473495,
0.025055238977074623,
-0.1348871886730194,
-0.023962659761309624,
0.0012708172434940934,
-0.04766606166958809,
0.04688829556107521,
-0.035684734582901,
0.09259141981601715,
-0.014768331311643124,
0.031221827492117882,
-0.09073959290981293,
0.05622151121497154,
0.068702831864357,
0.07799901068210602,
-0.012925762683153152,
0.02490709163248539,
0.021777501329779625,
-0.05825852230191231,
-0.035351403057575226,
0.05418450012803078,
-0.03468474745750427,
0.03974023833870888,
0.05003640428185463,
0.04925863444805145,
0.020518258213996887,
-0.008291562087833881,
0.00676380330696702,
0.059554800391197205,
-0.02220342308282852,
-0.026295963674783707,
0.020388631150126457,
0.0037221750244498253,
-0.03192552179098129,
-0.01595350168645382,
-0.03235144168138504,
0.02057381346821785,
0.014259078539907932,
0.0862211287021637,
-0.009222105145454407,
-0.039073579013347626,
0.00281246448867023,
0.023925622925162315,
0.025536714121699333,
-0.025333013385534286,
-0.024721909314393997,
0.05348080396652222,
0.014286856167018414,
0.04566608741879463,
0.0008726741652935743,
-0.04544387012720108,
-0.017157189548015594,
-0.045369796454906464,
-0.010657272301614285,
0.0485919788479805,
0.014972032979130745,
-0.00003099642344750464,
-0.03585139662027359,
-0.010648013092577457,
-0.10570236295461655,
0.006495288107544184,
0.012073921039700508,
-0.01807384565472603,
0.04011060297489166,
0.03190700337290764,
0.02240712381899357,
0.021481210365891457,
-0.0017164134187623858,
-0.031666263937950134,
0.03874025121331215,
0.02233305014669895,
0.010564681142568588,
-0.06059182435274124,
0.08162859827280045,
0.010083205997943878,
0.008254525251686573,
-0.024351542815566063,
-0.0661102756857872,
-0.02307378128170967,
-0.007444350048899651,
0.03918468952178955,
-0.046036455780267715,
-0.06007331237196922,
0.12066514045000076,
-0.03870321437716484,
-0.0005289284745231271,
-0.07018429785966873,
0.025981152430176735,
0.01495351456105709,
-0.02464783564209938,
0.05555485188961029,
0.013823899440467358,
-0.010546162724494934,
-0.002629596274346113,
0.02372192218899727,
0.041036516427993774,
-0.050591953098773956,
-0.006916579324752092,
-0.01107393391430378,
-0.003247644053772092,
-0.0016573864268139005,
0.04722162336111069,
-0.014305374585092068,
0.02070344239473343,
0.05507337674498558,
0.019944192841649055,
0.03918468952178955,
0.016388680785894394,
-0.10607273131608963,
0.027166321873664856,
0.04396240785717964,
0.021258989349007607,
-0.08162859827280045,
0.02525893971323967,
-0.042221687734127045,
-0.006328623741865158,
0.04711051657795906,
-0.026999657973647118,
-0.04211057722568512,
0.02946259081363678,
-0.006814728491008282,
0.0005083847790956497,
-0.039295800030231476,
-0.012740579433739185,
-0.012601692229509354,
0.00862026121467352,
0.05585114657878876,
0.020110856741666794,
0.041962433606386185,
0.022388605400919914,
-0.07370276749134064,
-0.010462830774486065,
-0.013388719409704208,
0.04133281111717224,
0.011120229959487915,
0.08511003106832504,
-0.04233279824256897,
-0.02814779244363308,
-0.047480881214141846,
0.03055516816675663,
-0.043888334184885025,
-0.05477708578109741,
0.015990538522601128,
-0.05940665677189827,
-0.03242551535367966,
-0.03427734225988388,
0.04392537102103233,
-0.0018495136173442006,
0.037888407707214355,
-0.04407351464033127,
-0.05840666964650154,
-0.031666263937950134,
-0.0459623821079731,
0.05074009671807289,
0.004423554986715317,
-0.012518360279500484,
-0.027999645099043846,
0.02561078779399395,
0.002902741078287363,
-0.05129564553499222,
-0.06418437510728836,
0.0512215755879879,
0.004393463023006916,
-0.051851194351911545,
0.017925698310136795,
0.006800839677453041,
-0.04492535814642906,
-0.04059207811951637,
-0.02770335227251053,
0.03944394364953041,
-0.009323956444859505,
0.014129450544714928,
-0.01604609377682209,
-0.02294415421783924,
0.021444173529744148,
-0.049888256937265396,
-0.02503672055900097,
0.040555041283369064,
-0.013879453763365746,
-0.020240483805537224,
-0.038110628724098206,
0.04188835993409157,
0.06351771205663681,
0.019147906452417374,
-0.02285156212747097,
0.0564807653427124,
-0.018833095207810402,
0.004122633021324873,
0.03348105773329735,
0.037629153579473495,
0.024184878915548325,
-0.024610798805952072,
0.04418462514877319,
0.012481323443353176,
0.026333000510931015,
0.04759199172258377,
0.04014763981103897,
0.057851120829582214,
0.008435077965259552,
0.040999479591846466,
0.028184829279780388,
-0.012462805025279522,
-0.025777451694011688,
-0.0700361505150795,
-0.013925749808549881,
-0.00933784432709217,
0.021351581439375877,
0.05240674316883087,
0.011518373154103756,
0.04081429913640022,
0.004402722232043743,
-0.03685138374567032,
0.0267033651471138,
-0.0043309638276696205,
-0.034258823841810226,
-0.01800903119146824,
-0.007388795260339975,
0.014092414639890194,
0.04755495488643646,
0.009078588336706161,
0.01752755604684353,
-0.039073579013347626,
-0.015842391178011894,
0.06903616338968277,
0.03546251356601715,
-0.048443831503391266,
0.08414708077907562,
0.015286843292415142,
-0.05944369360804558,
-0.042480941861867905,
0.0058795553632080555,
-0.004699014592915773,
0.007064725272357464,
0.016120165586471558,
-0.04233279824256897,
0.01823125034570694,
-0.029629254713654518,
0.0330551378428936,
-0.015620172955095768,
-0.0059165917336940765,
-0.0069628749042749405,
0.06140663102269173,
0.042666126042604446,
-0.018981240689754486,
-0.03768470883369446,
-0.00026287283981218934,
0.03277736157178879,
-0.026888549327850342,
-0.014564630575478077,
-0.051554903388023376,
-0.0238515492528677,
-0.01858309842646122,
0.007393424864858389,
0.047480881214141846,
-0.025944115594029427,
0.026425590738654137,
0.03585139662027359,
0.0293329618871212,
0.027592243626713753,
-0.003145793452858925,
-0.007948973216116428,
-0.033518094569444656,
0.019407162442803383,
-0.025981152430176735,
-0.05551781505346298,
-0.0006244133692234755,
-0.04277723655104637,
-0.032406996935606,
-0.03422179073095322,
0.056369658559560776,
0.04022171348333359,
0.0025786710903048515,
0.06936949491500854,
-0.10740604996681213,
0.03472178429365158,
-0.005745297763496637,
0.015546099282801151,
0.0398513488471508,
-0.08207303285598755,
0.016805343329906464,
-0.02814779244363308,
-0.006180477328598499,
0.009888763539493084,
-0.047480881214141846,
-0.055184487253427505,
-0.007259167265146971,
-0.014175746589899063,
0.022092312574386597,
0.04133281111717224,
0.019555307924747467,
0.023610811680555344,
0.009573953226208687,
-0.0022615455090999603,
0.004511517006903887,
-0.014194265007972717,
0.010833196341991425,
-0.037758782505989075,
-0.028684822842478752,
0.013712788932025433,
0.0014988236362114549,
-0.04036986082792282,
-0.06299920380115509,
-0.003166626673191786,
0.0008234849665313959,
0.11570224165916443,
-0.06733248382806778,
0.03914765268564224,
-0.011231339536607265,
-0.02451820857822895,
-0.003199033671990037,
0.02849963866174221,
-0.007310092449188232,
-0.06111033633351326,
0.028610749170184135,
-0.06055478751659393,
0.020907143130898476,
0.03936987370252609,
-0.028573712334036827,
-0.005277710966765881,
-0.013981304131448269,
-0.013110945001244545,
-0.025684859603643417,
-0.06540657579898834,
0.0411476269364357,
-0.0455179437994957,
-0.04718458652496338,
0.050406768918037415,
-0.09229512512683868,
0.0705176293849945,
-0.03059220500290394,
-0.021907130256295204,
-0.013768344186246395,
0.03598102554678917,
0.01974049024283886,
-0.017629407346248627,
0.027073731645941734,
-0.06970281898975372,
0.02587004378437996,
0.04351796582341194,
-0.0071665761061012745,
-0.008490633219480515,
0.00029600318521261215,
0.03038850426673889,
-0.026518182829022408,
0.01298131700605154,
0.011722073890268803,
0.0020358539186418056,
0.042666126042604446,
0.01669423282146454,
0.021073807030916214,
-0.04477721080183983,
0.02233305014669895,
0.053999315947294235,
-0.002091408707201481,
-0.01330538745969534,
-0.016518309712409973,
-0.008226747624576092,
-0.03214774280786514,
0.025629304349422455,
-0.00665269372984767,
-0.01812940090894699,
-0.0464068204164505,
-0.024925610050559044,
-0.025777451694011688,
0.004053189419209957,
-0.03829581290483475,
-0.010629494674503803,
-0.021036770194768906,
0.041443921625614166,
0.0013402608456090093,
0.015268324874341488,
0.003291625063866377,
-0.0014768331311643124,
0.0007488331175409257,
-0.01999974623322487,
-0.0024606171064078808,
0.021592319011688232,
-0.007120280060917139,
-0.0037893038243055344,
0.06518436223268509,
0.05607336387038231,
0.027555206790566444,
0.01437944732606411,
0.02609226293861866,
-0.026999657973647118,
-0.004328649025410414,
-0.032944027334451675,
0.00978691317141056,
-0.003911987412720919,
-0.00013613831833936274,
0.04066615179181099,
0.008671186864376068,
-0.028184829279780388,
-0.011814665049314499,
-0.02609226293861866,
-0.028962597250938416,
0.09548027068376541,
-0.0464068204164505,
-0.039295800030231476,
0.016546087339520454,
-0.05299932882189751,
0.007745272479951382,
0.037018049508333206,
0.04722162336111069,
-0.03374031186103821,
-0.022444160655140877,
0.03564769774675369,
0.055665962398052216,
-0.07059169560670853,
0.012990576215088367,
0.0797026976943016,
-0.04811050370335579,
0.020018264651298523,
-0.03892543166875839,
-0.0011394531466066837,
-0.05174008756875992,
0.016583124175667763,
-0.03007369302213192,
-0.03829581290483475,
-0.0001802639162633568,
0.041740212589502335,
0.0005266137304715812,
-0.015027587302029133,
0.012592433020472527,
0.04362907633185387,
-0.04048096761107445,
0.005319376941770315,
0.03129589930176735,
0.02474042773246765,
-0.02731446921825409,
-0.022833043709397316,
0.02564782276749611,
-0.0009369094623252749,
-0.020462704822421074,
0.011999848298728466,
-0.0036295836325734854,
-0.021203435957431793,
0.071369469165802,
0.011823924258351326,
0.07296203821897507,
-0.025666341185569763,
0.03581435978412628,
0.002877278486266732,
0.029092224314808846,
-0.04311056435108185,
-0.047295697033405304,
0.001521971425972879,
-0.06196217983961105,
0.0468512587249279,
-0.005430486984550953,
0.012351695448160172,
-0.056443728506565094,
0.00890729483217001,
0.036221764981746674,
0.02468487247824669
]
|
30,137 | networkx.classes.graph | remove_edge | Remove the edge between u and v.
Parameters
----------
u, v : nodes
Remove the edge between nodes u and v.
Raises
------
NetworkXError
If there is not an edge between u and v.
See Also
--------
remove_edges_from : remove a collection of edges
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, etc
>>> G.remove_edge(0, 1)
>>> e = (1, 2)
>>> G.remove_edge(*e) # unpacks e from an edge tuple
>>> e = (2, 3, {"weight": 7}) # an edge with attribute data
>>> G.remove_edge(*e[:2]) # select first part of edge tuple
| def remove_edge(self, u, v):
"""Remove the edge between u and v.
Parameters
----------
u, v : nodes
Remove the edge between nodes u and v.
Raises
------
NetworkXError
If there is not an edge between u and v.
See Also
--------
remove_edges_from : remove a collection of edges
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, etc
>>> G.remove_edge(0, 1)
>>> e = (1, 2)
>>> G.remove_edge(*e) # unpacks e from an edge tuple
>>> e = (2, 3, {"weight": 7}) # an edge with attribute data
>>> G.remove_edge(*e[:2]) # select first part of edge tuple
"""
try:
del self._adj[u][v]
if u != v: # self-loop needs only one entry removed
del self._adj[v][u]
except KeyError as err:
raise NetworkXError(f"The edge {u}-{v} is not in the graph") from err
nx._clear_cache(self)
| (self, u, v) | [
0.009823412634432316,
0.027287257835268974,
-0.01091490313410759,
0.041897907853126526,
-0.047872383147478104,
-0.029891515150666237,
-0.02571704424917698,
0.09758306294679642,
0.0631149485707283,
-0.015682993456721306,
-0.0059888348914682865,
0.031174495816230774,
0.031978752464056015,
0.013174479827284813,
-0.0048039937391877174,
0.06977878510951996,
0.013442564755678177,
0.01318405382335186,
0.022997893393039703,
0.0074345809407532215,
-0.017080865800380707,
-0.054306432604789734,
0.006998942233622074,
0.042893655598163605,
-0.020259592682123184,
0.018574483692646027,
0.0038106415886431932,
-0.016956398263573647,
0.023265978321433067,
-0.043391529470682144,
-0.009320752695202827,
-0.01766490936279297,
-0.039255354553461075,
0.0007767294300720096,
0.05013195797801018,
0.04365961253643036,
-0.0028723429422825575,
0.030389389023184776,
-0.09038306027650833,
-0.00963671039789915,
-0.02497023530304432,
0.0006851734942756593,
0.040097907185554504,
0.021944699808955193,
0.059744734317064285,
0.011058520525693893,
0.05189366266131401,
-0.01016809418797493,
-0.012743628583848476,
-0.004286971874535084,
0.006338303443044424,
0.03316598758101463,
0.028646834194660187,
0.015912780538201332,
-0.007798411417752504,
-0.01057022251188755,
-0.04722131788730621,
0.029834069311618805,
0.0031739389523863792,
0.06200430914759636,
-0.006501069758087397,
0.002905853558331728,
-0.027804279699921608,
0.008865965530276299,
-0.0016336450353264809,
0.0064675589092075825,
-0.005897877737879753,
-0.022002147510647774,
-0.04400429502129555,
-0.02018299698829651,
0.0074345809407532215,
0.003102130489423871,
-0.01642022654414177,
0.01968512311577797,
0.029585132375359535,
0.024089382961392403,
0.019780868664383888,
0.05928516015410423,
0.04408089071512222,
-0.03393194451928139,
0.07326389849185944,
-0.036861736327409744,
-0.0076739429496228695,
-0.0597064346075058,
0.030734069645404816,
0.023304276168346405,
-0.022404275834560394,
0.003078194335103035,
0.0002080952690448612,
-0.02048937976360321,
-0.031634069979190826,
-0.01638192869722843,
-0.07537028193473816,
0.02885747328400612,
0.007357985246926546,
0.03333832696080208,
0.033472370356321335,
-0.03814471513032913,
-0.007386708632111549,
-0.056795794516801834,
0.039408545941114426,
0.00007296798139577731,
-0.0789702832698822,
0.029891515150666237,
-0.04235748574137688,
-0.04235748574137688,
0.029125558212399483,
-0.04048088565468788,
-0.018880868330597878,
-0.02182980626821518,
-0.03659364953637123,
0.02726810984313488,
0.020719166845083237,
0.029029812663793564,
-0.027746833860874176,
0.04162982478737831,
-0.03515747934579849,
-0.0438511036336422,
0.04714472219347954,
0.03929365053772926,
-0.001878991024568677,
0.02966172806918621,
-0.042395781725645065,
-0.03722556680440903,
0.04860004410147667,
-0.05867239087820053,
-0.004334844183176756,
-0.023706404492259026,
-0.011728733777999878,
-0.04745110496878624,
0.004480855073779821,
-0.02577449008822441,
0.00487340847030282,
0.009397348389029503,
-0.0018622357165440917,
-0.053119197487831116,
-0.029642580077052116,
-0.008257986046373844,
0.07445113360881805,
-0.0013523948146030307,
-0.016180865466594696,
-0.011125542223453522,
0.03998301550745964,
0.022691508755087852,
0.01604682207107544,
-0.04392769932746887,
-0.002999204909428954,
-0.05714047700166702,
-0.0006504660123027861,
0.014974481426179409,
-0.03146173059940338,
0.03090641088783741,
0.03442981839179993,
-0.018057463690638542,
-0.014658523723483086,
0.019330868497490883,
-0.03289790078997612,
-0.019292570650577545,
-0.03180641308426857,
0.019388314336538315,
0.02481704391539097,
0.006754793226718903,
0.055034089833498,
-0.012714904733002186,
0.024261724203824997,
0.01058937143534422,
0.0951320007443428,
0.003614364890381694,
-0.005366493947803974,
0.043736208230257034,
-0.061583034694194794,
-0.039906419813632965,
-0.0491362139582634,
-0.0010274610249325633,
-0.020719166845083237,
-0.0028125024400651455,
0.029125558212399483,
0.0026018640492111444,
-0.0010442163329571486,
-0.004184046294540167,
0.027325555682182312,
-0.014151076786220074,
0.023246828466653824,
-0.04377450793981552,
0.02577449008822441,
-0.014026608318090439,
-0.004150535445660353,
-0.0025970768183469772,
0.0036095776595175266,
-0.03280215710401535,
-0.0077409641817212105,
-0.052506428211927414,
0.008009050041437149,
0.07659581303596497,
0.056451115757226944,
-0.04473195597529411,
0.019254272803664207,
0.030963856726884842,
-0.03952343761920929,
0.007846283726394176,
0.02437661774456501,
-0.0064148991368710995,
0.012542564421892166,
0.03902556747198105,
-0.016027674078941345,
-0.004669950809329748,
0.056795794516801834,
-0.036306414753198624,
0.040902163833379745,
0.016650015488266945,
0.03622981905937195,
-0.02129363641142845,
0.07242134213447571,
0.02328512631356716,
0.007956390269100666,
-0.029968110844492912,
-0.09658732265233994,
0.07521709054708481,
-0.005648941267281771,
0.04300854727625847,
-0.04473195597529411,
0.013452139683067799,
0.036459606140851974,
-0.03584684059023857,
0.06594899296760559,
-0.03783833235502243,
-0.0369957759976387,
-0.027057470753788948,
0.04342982545495033,
-0.0475660003721714,
0.06583409756422043,
-0.007985113188624382,
0.05576175078749657,
-0.014246821403503418,
0.00721436832100153,
0.05882558599114418,
-0.05377025902271271,
0.03550215810537338,
0.01940746419131756,
0.0076069217175245285,
0.022155338898301125,
-0.045038338750600815,
-0.010579796507954597,
0.016085119917988777,
0.023017041385173798,
0.007372347172349691,
0.018153207376599312,
0.031327687203884125,
-0.015051077120006084,
-0.03435322269797325,
-0.025295767933130264,
-0.017885122448205948,
0.0009335114737041295,
0.03914045915007591,
0.04530642181634903,
-0.02248087152838707,
-0.007717028260231018,
-0.07383836060762405,
-0.02207874320447445,
0.0522383451461792,
0.007075538393110037,
0.006515431217849255,
0.005146281328052282,
0.04791067913174629,
0.06430218368768692,
-0.008516496978700161,
-0.006845750845968723,
0.04829366132616997,
-0.015309588052332401,
-0.014897885732352734,
-0.03241917863488197,
-0.04247237741947174,
0.04465536028146744,
0.009526603855192661,
-0.0062281969003379345,
0.021561721339821815,
-0.062387291342020035,
0.011527669616043568,
0.021963849663734436,
0.013337246142327785,
-0.026291511952877045,
-0.04120854660868645,
-0.014648948796093464,
0.06200430914759636,
-0.018957464024424553,
0.0029489388689398766,
0.031136197969317436,
-0.029087260365486145,
0.04082556813955307,
0.013069160282611847,
0.0422808900475502,
-0.04097875952720642,
-0.027631940320134163,
0.016841504722833633,
0.02282555215060711,
0.07142559438943863,
0.04442557319998741,
0.021465975791215897,
0.018794696778059006,
0.021542571485042572,
0.07291921228170395,
-0.014629799872636795,
-0.061391543596982956,
-0.03963833302259445,
0.03448726609349251,
-0.025200022384524345,
0.06097026541829109,
-0.003331917803734541,
0.0068266019225120544,
0.01644895039498806,
-0.05618302896618843,
-0.01921597495675087,
-0.03737875819206238,
0.021695764735341072,
0.005419153720140457,
0.025238320231437683,
0.013452139683067799,
0.002251198748126626,
0.03259151801466942,
-0.017310652881860733,
-0.01629575900733471,
0.02571704424917698,
-0.014696821570396423,
-0.009564901702105999,
-0.009627136401832104,
0.028838323429226875,
0.004021279979497194,
0.04936600103974342,
-0.017061717808246613,
0.06388090550899506,
0.007401070557534695,
0.009832987561821938,
-0.006864899769425392,
0.005816494580358267,
-0.06614048779010773,
0.02925959974527359,
0.04706812649965286,
0.04434897378087044,
0.03441067039966583,
0.02064257115125656,
0.06598729640245438,
0.08417879790067673,
-0.0054478771053254604,
0.007994688116014004,
0.00184787402395159,
0.012293628416955471,
-0.05040004476904869,
-0.03598088398575783,
-0.01620001532137394,
0.02288299985229969,
0.026731938123703003,
0.08172773569822311,
-0.020374486222863197,
-0.024759596213698387,
0.006496282294392586,
0.02577449008822441,
-0.03778088465332985,
-0.03324258327484131,
0.036612797528505325,
-0.016094695776700974,
-0.0011369690764695406,
0.02248087152838707,
0.017272355034947395,
-0.025410661473870277,
-0.06066388264298439,
-0.005830856040120125,
-0.045383017510175705,
-0.009268092922866344,
-0.011010647751390934,
0.005969685968011618,
0.004777663853019476,
-0.05105111002922058,
0.03393194451928139,
0.01209256425499916,
-0.002489364007487893,
0.06154473498463631,
0.0024343107361346483,
0.03615322336554527,
0.021600019186735153,
0.013653203845024109,
0.02282555215060711,
0.00994788110256195,
0.022270232439041138,
0.007889368571341038,
0.005040961783379316,
-0.02148512564599514,
0.02158086933195591,
0.00394947174936533,
-0.0019125017570331693,
0.055953241884708405,
-0.05633622035384178,
0.0012817831011489034,
0.03584684059023857,
-0.025161724537611008,
-0.05288941040635109,
-0.057446859776973724,
0.04997876659035683,
0.026406407356262207,
-0.01822022907435894,
-0.06782559305429459,
0.02428087219595909,
0.041055355221033096,
-0.06315324455499649,
0.01915852725505829,
0.03768514096736908,
-0.018392570316791534,
-0.013088309206068516,
0.037608545273542404,
0.03255322203040123,
-0.055608559399843216,
0.007889368571341038,
0.01397873554378748,
-0.02117874287068844,
0.006946282926946878,
0.019857464358210564,
-0.02881917543709278,
0.05641281604766846,
-0.03289790078997612,
0.039561737328767776,
-0.007875006645917892,
-0.012571287341415882,
0.030695771798491478,
-0.017559589818120003,
-0.06150643900036812,
-0.0021159593015909195,
-0.03657450154423714,
0.013164904899895191,
-0.004215163178741932,
-0.018880868330597878,
0.06843835860490799,
-0.02916385605931282,
-0.07663410902023315,
0.04396599531173706,
-0.029776621609926224,
-0.015118098817765713,
0.007439368404448032,
-0.012245755642652512,
-0.01744469627737999,
0.040097907185554504,
0.025640448555350304,
-0.05652771145105362,
-0.02142767794430256,
0.023514915257692337,
-0.01638192869722843,
-0.031040452420711517,
-0.0037699502427130938,
-0.08402560651302338,
0.016123417764902115,
0.009852136485278606,
-0.011958520859479904,
-0.023591510951519012,
-0.024587256833910942,
0.0003835774550680071,
-0.0708894282579422,
-0.05671919882297516,
-0.03442981839179993,
-0.05403834581375122,
-0.014495757408440113,
-0.021217040717601776,
0.020968103781342506,
0.027325555682182312,
0.010378732345998287,
-0.06112345680594444,
-0.0721532553434372,
-0.03508088365197182,
0.05453621968626976,
0.14047671854496002,
-0.0544213242828846,
-0.04599578678607941,
-0.011805329471826553,
0.012370224110782146,
-0.0898468866944313,
-0.03609577566385269,
-0.016841504722833633,
0.015165970660746098,
0.014840438961982727,
-0.019196825101971626,
0.004363567568361759,
0.04162982478737831,
-0.06322984397411346,
-0.014122352935373783,
-0.01664043962955475,
0.003884843783453107,
0.01865108124911785,
0.0472596175968647,
0.007788836490362883,
-0.024740448221564293,
-0.006850537844002247,
-0.0049021318554878235,
0.013557459227740765,
0.020106401294469833,
-0.056106433272361755,
-0.04293195158243179,
0.005309047177433968,
0.07295750826597214,
-0.000011921345503651537,
-0.04036599397659302,
-0.03458300977945328,
0.029546834528446198,
-0.026253214105963707,
0.010646818205714226,
0.004121812060475349,
-0.03758939355611801,
-0.06954899430274963,
0.0594000518321991,
0.024702150374650955,
0.002719151321798563,
0.049174513667821884,
-0.0026808534748852253,
-0.0022906935773789883,
0.02770853601396084,
0.060587286949157715,
0.05920856446027756,
0.10455328226089478,
0.06407240033149719,
0.02587023563683033,
-0.03634471446275711,
0.021446827799081802,
0.03523407503962517,
-0.013777671381831169,
0.031078750267624855,
0.02217448689043522,
0.037014927715063095,
0.05851919949054718,
-0.04699153080582619,
0.03205534815788269,
-0.04331493377685547,
0.007176070008426905,
0.02317023277282715,
0.019914912059903145,
0.019608527421951294,
0.03515747934579849,
-0.03060002811253071,
0.02043193392455578,
0.010809584520757198,
0.020163847133517265,
-0.021753210574388504,
0.016324482858181,
-0.0060271332040429115,
0.019177677109837532,
0.00954575277864933,
0.0007198809762485325,
-0.01784682460129261,
0.04212769865989685,
-0.029431940987706184,
0.011403202079236507,
0.030236197635531425,
0.0020022625103592873,
0.007305325474590063,
-0.02493193745613098,
-0.06246388703584671,
0.012188308872282505,
0.026597896590828896,
0.01579788699746132,
0.017157461494207382,
-0.003420481691136956,
-0.025793639943003654,
0.057446859776973724,
0.0073148999363183975,
-0.0040715462528169155,
-0.0385468415915966,
-0.02546810731291771,
0.03240003064274788,
0.01642022654414177,
-0.029087260365486145,
0.04182131215929985,
0.006735644303262234,
-0.07537028193473816,
0.04595748707652092,
-0.00378191820345819,
-0.06694474071264267,
0.00970373209565878,
-0.007290964014828205,
-0.027785131707787514,
-0.08601709455251694,
0.03015960194170475,
0.0023493370972573757,
-0.007956390269100666,
0.0071138362400233746,
-0.022806404158473015,
-0.09337029606103897,
-0.008995220996439457,
0.034927692264318466,
0.02542980946600437,
-0.03634471446275711,
-0.008746284060180187,
0.013969161547720432,
-0.01576916314661503,
-0.04132344201207161,
0.05074472725391388,
0.03881492838263512,
-0.10133626312017441,
0.04335322976112366,
0.009861710481345654,
-0.006611176300793886,
-0.0013057192554697394,
-0.009785114787518978,
-0.00911011453717947,
-0.019819166511297226,
0.0018047888297587633,
-0.00482792966067791,
-0.06771069765090942,
0.0985788106918335,
0.02571704424917698,
-0.06548941880464554,
0.04699153080582619,
-0.008880327455699444,
-0.06169792637228966,
-0.016535121947526932,
-0.05361706763505936,
-0.006362239830195904,
0.06426388770341873,
-0.021944699808955193,
0.003726864932104945,
-0.03194045275449753,
0.00162646418903023,
0.0029489388689398766,
0.007372347172349691,
-0.07747666537761688,
-0.003947077784687281,
-0.0038633013609796762,
-0.0668681412935257,
-0.026253214105963707,
-0.014026608318090439,
-0.009722881019115448,
0.05671919882297516,
0.03540641441941261,
0.032227687537670135,
-0.04994047060608864,
0.08180432766675949,
-0.04771919175982475,
-0.10953201353549957,
0.0009724077535793185,
0.07537028193473816,
-0.02357236109673977,
-0.06162133067846298,
0.03515747934579849,
0.0097946897149086,
-0.023189382627606392,
0.0643787831068039,
0.04419578239321709,
-0.0014984055887907743,
-0.05568515509366989,
0.004351599607616663,
-0.027995768934488297,
0.01953193172812462,
-0.019953209906816483,
-0.016391504555940628,
-0.010991498827934265,
0.007937241345643997,
0.07314900308847427,
0.0276702381670475,
0.00003336106601636857,
-0.05308089777827263,
0.02462555468082428,
0.07471921294927597,
0.023112786933779716,
-0.001002926379442215,
0.0051941536366939545,
0.014371288940310478,
-0.018852144479751587,
0.009919158183038235,
0.06414899230003357,
-0.008741497062146664,
-0.015108523890376091,
0.06365112215280533,
-0.010014902800321579,
-0.05426813289523125,
-0.020604273304343224,
-0.027344705536961555,
0.039906419813632965,
-0.006711707916110754,
-0.028455344960093498,
-0.027880875393748283,
-0.05457451567053795,
-0.023400021716952324,
0.02282555215060711,
-0.027727684006094933,
-0.04660855233669281,
-0.02742130123078823,
-0.002814896171912551,
0.06135324761271477,
0.010062774643301964,
-0.03594258427619934,
-0.013729799538850784,
-0.014198948629200459,
-0.04450216889381409,
0.02188725396990776,
-0.038355354219675064,
-0.044234082102775574,
-0.04473195597529411,
-0.06989368051290512,
-0.016180865466594696,
-0.03310853987932205,
-0.01116384007036686,
-0.061889417469501495,
0.00974681694060564,
-0.090153269469738,
0.04331493377685547,
0.03215109184384346,
0.04128514230251312,
0.025506405159831047,
-0.006142026744782925,
0.0025061191990971565,
-0.0006016960251145065,
-0.034621305763721466,
0.00825319904834032,
-0.02542980946600437,
-0.005423941183835268,
0.024012787267565727,
-0.011671287007629871,
-0.03519577533006668,
0.018229803070425987,
-0.03180641308426857,
0.07602134346961975,
0.06805537641048431,
-0.040251098573207855,
-0.0597064346075058,
-0.052621323615312576,
0.020795762538909912,
-0.04442557319998741,
0.01697554625570774,
0.014447885565459728,
0.024242574349045753,
-0.009210646152496338,
-0.04201280325651169,
-0.02033618837594986,
-0.03494684025645256,
-0.023744702339172363,
0.055034089833498,
-0.03640215843915939,
0.028474492952227592,
-0.0028603749815374613,
0.04595748707652092,
0.009842561557888985,
0.020968103781342506,
-0.002922608982771635,
0.036459606140851974,
0.06411069631576538,
0.005189366172999144,
-0.008650539442896843,
-0.0015211449936032295,
-0.03709152340888977,
-0.017760654911398888,
0.01859363354742527,
-0.007262240629643202,
-0.026080874726176262,
0.08440858870744705,
-0.035272371023893356,
-0.02881917543709278,
0.01074256282299757,
-0.029987260699272156,
-0.021465975791215897,
0.03251492232084274,
-0.0000058718469517771155,
-0.023265978321433067,
0.004303727298974991,
-0.01036915834993124,
-0.03230428323149681,
-0.053119197487831116,
-0.02621491625905037,
0.029546834528446198,
-0.05304260179400444,
0.002532449085265398,
-0.02941279299557209,
0.039446841925382614,
0.05468941107392311,
0.03588513657450676
]
|
30,138 | networkx.classes.graph | remove_edges_from | Remove all edges specified in ebunch.
Parameters
----------
ebunch: list or container of edge tuples
Each edge given in the list or container will be removed
from the graph. The edges can be:
- 2-tuples (u, v) edge between u and v.
- 3-tuples (u, v, k) where k is ignored.
See Also
--------
remove_edge : remove a single edge
Notes
-----
Will fail silently if an edge in ebunch is not in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> ebunch = [(1, 2), (2, 3)]
>>> G.remove_edges_from(ebunch)
| def remove_edges_from(self, ebunch):
"""Remove all edges specified in ebunch.
Parameters
----------
ebunch: list or container of edge tuples
Each edge given in the list or container will be removed
from the graph. The edges can be:
- 2-tuples (u, v) edge between u and v.
- 3-tuples (u, v, k) where k is ignored.
See Also
--------
remove_edge : remove a single edge
Notes
-----
Will fail silently if an edge in ebunch is not in the graph.
Examples
--------
>>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> ebunch = [(1, 2), (2, 3)]
>>> G.remove_edges_from(ebunch)
"""
adj = self._adj
for e in ebunch:
u, v = e[:2] # ignore edge data if present
if u in adj and v in adj[u]:
del adj[u][v]
if u != v: # self loop needs only one entry removed
del adj[v][u]
nx._clear_cache(self)
| (self, ebunch) | [
-0.0012073834659531713,
0.014469955116510391,
-0.01886128820478916,
0.006642939988523722,
-0.11717680096626282,
-0.030618125572800636,
-0.03130805864930153,
0.051055073738098145,
0.06507750600576401,
0.00803213007748127,
-0.03099106252193451,
0.01169157400727272,
-0.008241907693445683,
0.02823133021593094,
-0.005081266164779663,
0.032259050756692886,
0.02645987831056118,
-0.007542650680989027,
0.0422164648771286,
0.014330103993415833,
-0.024874897673726082,
-0.04956332594156265,
0.01658637262880802,
0.06996297836303711,
-0.042626697570085526,
0.018740084022283554,
0.0042608049698174,
-0.035466305911540985,
-0.002424090402200818,
0.010246443562209606,
0.005780523177236319,
-0.041657060384750366,
-0.020660709589719772,
-0.02123876102268696,
0.038710858672857285,
0.016931338235735893,
0.030972415581345558,
0.029462020844221115,
-0.0648537427186966,
0.010526146739721298,
0.00462674954906106,
0.022842390462756157,
0.06108707934617996,
0.023271268233656883,
0.08092732727527618,
0.03587653860449791,
0.05761876329779625,
0.0008595032268203795,
0.000694595102686435,
-0.0027620645705610514,
-0.00035691235098056495,
0.024613840505480766,
-0.005636010318994522,
0.03037571720778942,
0.02985360473394394,
-0.0039274925366044044,
-0.06642007827758789,
0.030562186613678932,
0.03923296928405762,
0.04150788486003876,
-0.027895687147974968,
-0.013742728158831596,
0.030319776386022568,
-0.026907403022050858,
-0.0007033358560875058,
-0.0024823618587106466,
-0.06395868957042694,
0.005496158730238676,
-0.05571678653359413,
-0.026981990784406662,
-0.05075672268867493,
0.0004521860973909497,
-0.02726169303059578,
0.0284177977591753,
0.035932477563619614,
0.012120451778173447,
-0.017453450709581375,
0.09241378307342529,
-0.02936878800392151,
-0.040650129318237305,
0.04139600694179535,
-0.008708078414201736,
-0.027019284665584564,
-0.01998942159116268,
0.06108707934617996,
0.047996990382671356,
0.0023506684228777885,
0.050271905958652496,
0.022003281861543655,
-0.039344850927591324,
0.020865824073553085,
-0.03798362985253334,
-0.07719795405864716,
-0.007463401183485985,
0.038710858672857285,
0.04773593321442604,
-0.0437828004360199,
0.006796776317059994,
-0.01801285706460476,
-0.05896133556962013,
0.040165312588214874,
-0.05985638499259949,
-0.05728312209248543,
0.014898832887411118,
-0.024259550496935844,
-0.012390831485390663,
-0.0018238949123769999,
-0.055269259959459305,
0.02936878800392151,
-0.008060100488364697,
-0.07014944404363632,
0.06559961289167404,
0.030002780258655548,
-0.025266479700803757,
-0.04557289928197861,
0.013118058443069458,
0.019131667912006378,
-0.0763774961233139,
0.011449165642261505,
0.009715008549392223,
-0.014479278586804867,
0.05127883329987526,
-0.007906263694167137,
0.039195675402879715,
0.05150259658694267,
-0.015420944429934025,
-0.009845536202192307,
0.013537612743675709,
0.005230441223829985,
-0.09875371307134628,
0.03779716417193413,
-0.048146165907382965,
-0.029816310852766037,
-0.02370014600455761,
-0.021499816328287125,
-0.021220114082098007,
-0.004058020655065775,
-0.043894682079553604,
0.07689960300922394,
0.040538251399993896,
-0.04091118648648262,
0.019747013226151466,
0.039680495858192444,
0.04087389260530472,
-0.030636772513389587,
-0.05232305824756622,
-0.017826387658715248,
-0.03375079855322838,
-0.009770949371159077,
0.04415573924779892,
-0.07921181619167328,
0.04561019316315651,
-0.011971277184784412,
-0.03975508362054825,
-0.01819932460784912,
0.0036804217379540205,
-0.05437421053647995,
0.04314880818128586,
-0.03859897702932358,
0.018954522907733917,
-0.007109111174941063,
0.015402297489345074,
0.019597837701439857,
-0.03345244750380516,
-0.03100970946252346,
-0.040985774248838425,
0.05385209992527962,
0.029499314725399017,
-0.03518660366535187,
0.03621217980980873,
-0.044715143740177155,
-0.005897066090255976,
-0.04273857921361923,
-0.004612764343619347,
-0.008596197701990604,
-0.00023862140369601548,
0.02907043695449829,
0.011486459523439407,
0.007640546653419733,
-0.020530181005597115,
-0.028697500005364418,
-0.02239486575126648,
0.010535470210015774,
-0.02940608188509941,
0.048146165907382965,
0.008950487710535526,
-0.028660207986831665,
-0.004743292462080717,
-0.010805848985910416,
-0.060341205447912216,
-0.04150788486003876,
-0.03600706532597542,
0.01900113932788372,
0.044715143740177155,
0.04281316697597504,
-0.014069047756493092,
-0.014880185946822166,
0.025061365216970444,
-0.062429651618003845,
0.002076792763546109,
-0.023550970479846,
-0.020977705717086792,
0.04564748704433441,
0.023103445768356323,
0.03004007413983345,
0.005011340603232384,
0.037256404757499695,
-0.05288246273994446,
0.07496033608913422,
0.04314880818128586,
0.02810080163180828,
-0.05112966150045395,
0.07264812290668488,
-0.023998495191335678,
0.02064206264913082,
-0.025098659098148346,
-0.07921181619167328,
0.028343209996819496,
0.012204363010823727,
0.00519780907779932,
-0.03783445805311203,
-0.024893542751669884,
0.018292559310793877,
-0.05161447823047638,
0.005188485607504845,
0.010069298557937145,
-0.029462020844221115,
-0.010209149681031704,
0.04094848036766052,
-0.004365693777799606,
0.0568728893995285,
-0.05888674780726433,
0.05310622602701187,
-0.0283805038779974,
0.057693351060152054,
0.06731512397527695,
-0.07223789393901825,
0.011244050227105618,
0.03647323697805405,
0.013668140396475792,
-0.01819932460784912,
-0.008899209089577198,
-0.009780272841453552,
-0.020362358540296555,
0.056089721620082855,
0.005346984136849642,
0.02370014600455761,
-0.024091729894280434,
-0.042925044894218445,
-0.016763517633080482,
0.023103445768356323,
-0.025415655225515366,
0.05262140929698944,
-0.009234852157533169,
0.03623082861304283,
-0.028865322470664978,
-0.015122594311833382,
-0.015831174328923225,
-0.007985512726008892,
0.0037736562080681324,
0.06701677292585373,
-0.044081151485443115,
0.02079123631119728,
0.05329269543290138,
0.05247223377227783,
0.05277058482170105,
-0.011234726756811142,
0.014973419718444347,
-0.05232305824756622,
-0.0034753065556287766,
0.03460855036973953,
-0.06992568075656891,
0.04665441811084747,
0.047474879771471024,
-0.026702288538217545,
0.05344187095761299,
-0.06612172722816467,
0.016269376501441002,
-0.018273912370204926,
0.00796220451593399,
-0.0029298861045390368,
-0.013425731100142002,
0.0038039572536945343,
0.055791374295949936,
-0.002682815305888653,
-0.003321469994261861,
0.015775233507156372,
-0.06522668153047562,
0.045684780925512314,
0.014544541947543621,
0.06873228400945663,
-0.05001084879040718,
-0.03803957253694534,
-0.025117306038737297,
0.02370014600455761,
0.056723713874816895,
0.027075225487351418,
-0.015243799425661564,
0.0007878293981775641,
0.06753888726234436,
0.07719795405864716,
-0.04255210980772972,
-0.01852564513683319,
-0.00943064410239458,
0.022674567997455597,
0.001569831627421081,
0.05418774485588074,
0.004174563568085432,
-0.004988031927496195,
0.006116166710853577,
-0.06556232273578644,
-0.024595193564891815,
-0.06776265054941177,
-0.06254152953624725,
0.018255265429615974,
0.016791487112641335,
0.032557398080825806,
0.006642939988523722,
0.022003281861543655,
0.00475028483197093,
-0.019057080149650574,
0.03197934478521347,
-0.024744369089603424,
0.019206253811717033,
0.010693968273699284,
0.018134061247110367,
0.004118622746318579,
0.04370821267366409,
-0.01518785860389471,
0.03526119142770767,
-0.01819932460784912,
-0.012717151083052158,
-0.0027597337029874325,
0.040351781994104385,
0.006554367486387491,
0.029480667784810066,
0.038897328078746796,
0.03641729801893234,
-0.018451057374477386,
-0.02502407133579254,
0.04933956265449524,
0.07070884853601456,
0.0032025964464992285,
-0.0011933983769267797,
0.043447159230709076,
0.026851462200284004,
-0.05418774485588074,
-0.000029955142963444814,
-0.007468062918633223,
0.05012273043394089,
-0.0022912316489964724,
0.07193954288959503,
-0.0046617123298347,
-0.018068796023726463,
0.03639864921569824,
0.06929168850183487,
-0.0325014591217041,
-0.023122092708945274,
0.014656423591077328,
-0.002827328396961093,
0.03102835640311241,
0.004286444280296564,
0.022637274116277695,
-0.05814087390899658,
0.03166234865784645,
-0.006433162838220596,
-0.033359214663505554,
-0.026012355461716652,
-0.0018565269419923425,
-0.01706186681985855,
-0.01592440903186798,
-0.0194859579205513,
-0.010181179270148277,
-0.022599980235099792,
-0.013528289273381233,
0.014507248997688293,
0.004186217673122883,
0.034030500799417496,
0.006018270738422871,
0.10479529201984406,
-0.006013609003275633,
0.025098659098148346,
0.00883394479751587,
0.0170711912214756,
0.03389997035264969,
-0.03636135533452034,
-0.021835461258888245,
0.023308562114834785,
0.036939408630132675,
0.000022179552615853027,
-0.0035871875006705523,
-0.014591159299015999,
0.04840721935033798,
0.018078120425343513,
-0.051353421062231064,
-0.06134813278913498,
0.03278116136789322,
0.02468842826783657,
-0.028660207986831665,
-0.04266399145126343,
0.018059473484754562,
0.01072193868458271,
-0.02892126329243183,
0.054970912635326385,
0.02112687937915325,
-0.02923825941979885,
-0.0357460081577301,
-0.005118560045957565,
0.05291975662112236,
-0.03997884318232536,
0.08711808174848557,
0.008624168112874031,
-0.016791487112641335,
0.025900473818182945,
0.01963513158261776,
-0.024408726021647453,
0.010526146739721298,
-0.035130664706230164,
0.051390714943408966,
0.013481671921908855,
0.03524254634976387,
0.02826862409710884,
-0.007761750835925341,
-0.059669915586709976,
0.02565806359052658,
0.005095251370221376,
-0.015542148612439632,
-0.00022143132810015231,
-0.036790233105421066,
0.06884416937828064,
-0.028492385521531105,
-0.046206891536712646,
-0.009155603125691414,
-0.01605493761599064,
-0.011924659833312035,
0.012521359138190746,
-0.033210039138793945,
-0.014619129709899426,
0.03945673257112503,
-0.003314477391541004,
-0.05206200107932091,
-0.010246443562209606,
0.017397509887814522,
-0.0763029083609581,
-0.015784557908773422,
-0.007607914507389069,
-0.05295705050230026,
0.0017248335061594844,
0.03721911087632179,
0.01364949345588684,
-0.02888396941125393,
-0.04091118648648262,
-0.0227491557598114,
-0.08070356398820877,
-0.07734712958335876,
0.0013285879977047443,
-0.0014835899928584695,
0.020511534065008163,
-0.0665319561958313,
0.04296233877539635,
0.06108707934617996,
-0.05053295940160751,
-0.04281316697597504,
-0.02951796166598797,
-0.015579442493617535,
0.011961953714489937,
0.08711808174848557,
-0.005346984136849642,
0.004689682740718126,
0.005160515662282705,
0.0170432198792696,
-0.10524281859397888,
-0.01722968928515911,
-0.013006177730858326,
0.028660207986831665,
0.04176894202828407,
-0.040538251399993896,
-0.018413763493299484,
0.03794633969664574,
-0.013015500269830227,
-0.013201968744397163,
-0.029126377776265144,
0.026068294420838356,
0.006325943395495415,
0.0178357120603323,
-0.011896689422428608,
-0.04639336094260216,
-0.05925968661904335,
-0.03440343588590622,
-0.03468313813209534,
0.0011724206851795316,
-0.08465669304132462,
-0.032203108072280884,
0.011943306773900986,
0.1071075052022934,
0.038561683148145676,
-0.03018924966454506,
-0.0005081266281194985,
0.02823133021593094,
-0.04464055597782135,
-0.014964096248149872,
0.04232834652066231,
0.015439591370522976,
-0.030245188623666763,
0.028194036334753036,
0.020325064659118652,
0.028212683275341988,
0.04150788486003876,
-0.004764270037412643,
-0.03050624579191208,
0.024968130514025688,
0.022003281861543655,
0.01772383041679859,
0.03979237750172615,
0.020679356530308723,
-0.019896188750863075,
-0.03233363479375839,
0.019896188750863075,
0.01032103132456541,
0.027839746326208115,
0.030897829681634903,
0.021070940420031548,
0.0060555641539394855,
0.09756031632423401,
-0.019914835691452026,
0.005911051295697689,
0.020362358540296555,
0.010861789807677269,
0.0340491458773613,
-0.0025103320367634296,
0.04303692653775215,
0.042626697570085526,
0.019560545682907104,
0.043745506554841995,
0.06086331605911255,
0.03431020304560661,
-0.011430518701672554,
-0.01061938051134348,
0.0178543571382761,
0.06220588833093643,
0.004932091571390629,
-0.0028529679402709007,
0.014143635518848896,
0.05448609218001366,
-0.0730956494808197,
0.040538251399993896,
0.007966866716742516,
0.018292559310793877,
0.019262194633483887,
0.003072068328037858,
-0.03037571720778942,
0.014395367354154587,
0.03524254634976387,
0.01128134410828352,
0.026031000539660454,
-0.07324482500553131,
-0.01900113932788372,
0.05470985546708107,
0.033023569732904434,
-0.011803455650806427,
-0.07596725970506668,
-0.007794382981956005,
0.01289429608732462,
0.026553113013505936,
-0.003139663254842162,
0.03755475580692291,
-0.04840721935033798,
-0.040202606469392776,
0.03815145418047905,
0.03201663866639137,
-0.04031448811292648,
0.024240903556346893,
-0.00022463625646196306,
-0.024427372962236404,
-0.04176894202828407,
0.0035732025280594826,
-0.01801285706460476,
0.006270003039389849,
0.030282482504844666,
-0.04956332594156265,
-0.0219100471585989,
-0.051353421062231064,
0.010246443562209606,
-0.017583979293704033,
-0.021965987980365753,
0.03162505477666855,
-0.0081207025796175,
-0.000560279528144747,
-0.03761069476604462,
0.015514178201556206,
0.06873228400945663,
-0.04758675768971443,
0.0503091998398304,
0.009593803435564041,
-0.047810520976781845,
-0.02226433716714382,
0.012633239850401878,
-0.02403578907251358,
-0.061944831162691116,
0.019075727090239525,
-0.026049647480249405,
-0.02709387242794037,
0.09838077425956726,
-0.016511784866452217,
-0.02500542439520359,
-0.0013157683424651623,
-0.007234977558255196,
-0.02936878800392151,
0.03673429414629936,
0.012288273312151432,
0.04900391772389412,
0.11053851991891861,
0.011635634116828442,
0.041806235909461975,
-0.0389346219599247,
-0.004694344475865364,
0.012055188417434692,
0.003391395788639784,
-0.05620160326361656,
0.009715008549392223,
0.006256017833948135,
-0.07522138953208923,
0.001808744389563799,
0.00048773165326565504,
-0.048146165907382965,
0.011980600655078888,
0.025266479700803757,
0.06791182607412338,
-0.03151317685842514,
0.017984885722398758,
-0.01225097943097353,
-0.09122038632631302,
-0.006195415742695332,
0.00891785603016615,
-0.02774651162326336,
-0.10084216296672821,
0.009789595380425453,
-0.020492887124419212,
-0.04430491477251053,
0.04169435426592827,
0.0584019310772419,
-0.021331995725631714,
-0.05653724819421768,
-0.02189140021800995,
-0.06067684665322304,
0.009547187015414238,
-0.007519342005252838,
-0.036790233105421066,
-0.026851462200284004,
0.005733906291425228,
0.05437421053647995,
0.021667638793587685,
-0.007761750835925341,
-0.03830062970519066,
-0.04978708550333977,
0.07358046621084213,
0.002920562634244561,
-0.006987906526774168,
-0.0029298861045390368,
0.00722565408796072,
0.035652775317430496,
-0.013267233036458492,
0.03964320197701454,
0.003990425728261471,
0.023084798827767372,
0.040650129318237305,
0.0324641652405262,
0.02129470184445381,
-0.004298098850995302,
0.03539171814918518,
-0.04005343094468117,
-0.02892126329243183,
-0.02011995017528534,
-0.04452867433428764,
-0.0568728893995285,
-0.00677812984213233,
-0.03425426036119461,
-0.0021781851537525654,
-0.016166817396879196,
-0.03859897702932358,
-0.04609500989317894,
0.06533855944871902,
0.00918357353657484,
-0.0422164648771286,
-0.02468842826783657,
0.04031448811292648,
-0.04478973150253296,
0.013211292214691639,
-0.04613230377435684,
-0.030748654156923294,
-0.019672425463795662,
-0.04598312824964523,
0.00012615758168976754,
0.027653276920318604,
-0.011784808710217476,
0.00909966230392456,
-0.01079652551561594,
-0.02843644469976425,
0.019094374030828476,
0.004890136420726776,
0.05814087390899658,
0.041619766503572464,
-0.008642814122140408,
-0.0024380756076425314,
0.017742477357387543,
-0.0028040199540555477,
-0.01915031485259533,
0.014525895938277245,
-0.040650129318237305,
0.07727254182100296,
-0.03492555022239685,
-0.00003702055255416781,
0.020903117954730988,
0.0004076084587723017,
0.08294118195772171,
0.007039185613393784,
-0.024968130514025688,
-0.03363891690969467,
-0.033396508544683456,
0.0033028230536729097,
-0.04236564040184021,
0.03227769583463669,
-0.008391082286834717,
-0.004652388859540224,
-0.005953006446361542,
-0.04370821267366409,
0.013090088032186031,
0.021462522447109222,
-0.019224900752305984,
0.011411871761083603,
-0.05448609218001366,
0.027951626107096672,
0.00559871643781662,
0.05411315709352493,
-0.0020756274461746216,
-0.01315535232424736,
-0.008456345647573471,
0.04023990035057068,
0.05083131045103073,
-0.0047829169780015945,
-0.004640734754502773,
-0.04154517874121666,
-0.05474714934825897,
0.030002780258655548,
0.011010964401066303,
-0.03231498971581459,
-0.01485221553593874,
0.028305916115641594,
-0.024763016030192375,
-0.03227769583463669,
0.03373214974999428,
0.016288023442029953,
0.020362358540296555,
-0.008470331318676472,
-0.0075146802701056,
-0.053814806044101715,
-0.0008577550761401653,
-0.039046503603458405,
-0.03673429414629936,
-0.046169597655534744,
-0.014572512358427048,
-0.0034216968342661858,
-0.0568728893995285,
-0.0037270388565957546,
-0.000643316307105124,
0.03697670251131058,
0.040799304842948914,
-0.0015733279287815094
]
|
30,139 | networkx.classes.graph | remove_node | Remove node n.
Removes the node n and all adjacent edges.
Attempting to remove a nonexistent node will raise an exception.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
remove_nodes_from
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> list(G.edges)
[(0, 1), (1, 2)]
>>> G.remove_node(1)
>>> list(G.edges)
[]
| def remove_node(self, n):
"""Remove node n.
Removes the node n and all adjacent edges.
Attempting to remove a nonexistent node will raise an exception.
Parameters
----------
n : node
A node in the graph
Raises
------
NetworkXError
If n is not in the graph.
See Also
--------
remove_nodes_from
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> list(G.edges)
[(0, 1), (1, 2)]
>>> G.remove_node(1)
>>> list(G.edges)
[]
"""
adj = self._adj
try:
nbrs = list(adj[n]) # list handles self-loops (allows mutation)
del self._node[n]
except KeyError as err: # NetworkXError if n not in self
raise NetworkXError(f"The node {n} is not in the graph.") from err
for u in nbrs:
del adj[u][n] # remove all edges n-u in graph
del adj[n] # now remove node
nx._clear_cache(self)
| (self, n) | [
-0.0299557875841856,
0.03882390633225441,
-0.004848281387239695,
0.0044905440881848335,
-0.039652351289987564,
0.01066621858626604,
-0.06518349051475525,
0.068158358335495,
0.03656451404094696,
-0.034982938319444656,
-0.02500395104289055,
0.06653913110494614,
0.04488661140203476,
0.03532184660434723,
-0.00886811874806881,
-0.008317391388118267,
0.0009961335454136133,
0.028939060866832733,
-0.005803816486150026,
0.0028101203497499228,
-0.039501722902059555,
-0.00408102897927165,
0.0010767420753836632,
-0.0019204842392355204,
-0.02374245598912239,
0.027978818863630295,
0.06488224118947983,
0.007088846061378717,
-0.012718500569462776,
0.01848936825990677,
-0.002626544563099742,
-0.003756241174414754,
-0.024683870375156403,
0.00964007806032896,
0.015618055127561092,
0.044058166444301605,
-0.013273934833705425,
0.015495671890676022,
-0.1259988248348236,
0.023008154705166817,
0.002967806998640299,
-0.005488442722707987,
0.06250987946987152,
0.003205514047294855,
0.01414944976568222,
-0.023780113086104393,
0.0485769547522068,
0.02265041694045067,
-0.05076103284955025,
-0.01746322587132454,
0.005417836830019951,
0.010863916017115116,
0.0027065647300332785,
0.000024289212888106704,
0.021219467744231224,
-0.013481046073138714,
-0.00441287737339735,
-0.003537362441420555,
0.045150209218263626,
0.020918214693665504,
0.02174665965139866,
0.03146205097436905,
-0.03127376735210419,
-0.03665865585207939,
-0.028581323102116585,
-0.024627385661005974,
0.01172060240060091,
-0.03957703709602356,
-0.03426746279001236,
-0.027037404477596283,
0.02735748514533043,
0.016088763251900673,
0.012266621924936771,
0.0417611189186573,
0.0322904959321022,
-0.008359754458069801,
0.029541565105319023,
0.07629217952489853,
0.002320585073903203,
0.009884845465421677,
0.04507489502429962,
-0.02519223466515541,
-0.01239841990172863,
-0.027884677052497864,
0.02199142798781395,
-0.022518618032336235,
0.05433840677142143,
-0.013867026194930077,
-0.0322904959321022,
0.0038221401628106833,
-0.05106228590011597,
-0.04925477132201195,
-0.041497521102428436,
-0.002807766664773226,
0.04379457235336304,
0.009089350700378418,
0.03758123889565468,
-0.056786082684993744,
0.002384130610153079,
-0.05994923412799835,
0.023968396708369255,
0.0352277047932148,
-0.08826696127653122,
0.0326482318341732,
-0.01605110615491867,
-0.011842985637485981,
-0.006363957654684782,
0.0027301001828163862,
-0.04006657376885414,
0.01677599363029003,
-0.08879414945840836,
0.023610658943653107,
0.022311508655548096,
0.007648987229913473,
0.03159384801983833,
0.02458972856402397,
-0.07779844105243683,
-0.02219853736460209,
0.020221568644046783,
0.0026077162474393845,
-0.0162864588201046,
0.01999562978744507,
-0.07248886674642563,
-0.012341935187578201,
0.03535950183868408,
0.008105573244392872,
0.027677565813064575,
-0.009800118394196033,
0.0031725645530968904,
-0.06977759301662445,
0.0076772295869886875,
-0.010110784322023392,
0.00054219551384449,
0.0697399377822876,
-0.014328318648040295,
0.009903673082590103,
-0.006057998165488243,
-0.029089687392115593,
0.029880475252866745,
0.0037232916802167892,
0.006542826071381569,
-0.011852400377392769,
0.06540942937135696,
0.02784702181816101,
0.04808741807937622,
-0.021558376029133797,
-0.03189510107040405,
-0.05554341524839401,
-0.04172345995903015,
-0.031838614493608475,
-0.031179625540971756,
-0.0030643020290881395,
0.0698152482509613,
-0.05554341524839401,
-0.014638985507190228,
0.05757686868309975,
-0.01698310486972332,
-0.021859629079699516,
-0.07128385454416275,
-0.023234093561768532,
-0.009517693892121315,
0.054526690393686295,
0.041949398815631866,
-0.04552677273750305,
-0.049970246851444244,
-0.05656014382839203,
0.06684038043022156,
-0.0246462132781744,
-0.02265041694045067,
0.02265041694045067,
-0.0431920662522316,
-0.03688459470868111,
-0.029428595677018166,
-0.0025983022060245275,
-0.048162732273340225,
0.022424478083848953,
-0.004775321576744318,
-0.011654702946543694,
-0.02600185014307499,
-0.0024735648185014725,
0.014535429887473583,
-0.045715056359767914,
-0.006114482879638672,
-0.029767505824565887,
0.030125241726636887,
0.015439187176525593,
-0.020918214693665504,
-0.001272085472010076,
0.012332521378993988,
0.000835504790302366,
0.04172345995903015,
-0.023008154705166817,
0.000597503618337214,
0.06115424260497093,
0.06138018146157265,
-0.06111658737063408,
0.017001934349536896,
0.02965453639626503,
-0.012379592284560204,
0.03426746279001236,
0.06507052481174469,
0.05561872944235802,
0.03972766548395157,
0.02724451571702957,
-0.02174665965139866,
0.005276624578982592,
0.012963268905878067,
-0.024985123425722122,
-0.004678826779127121,
0.037185847759246826,
0.02645372785627842,
0.006175674963742495,
0.09444263577461243,
0.014394217170774937,
-0.034399259835481644,
-0.03957703709602356,
-0.05829234421253204,
0.03976532071828842,
-0.0008460956742055714,
-0.0147801972925663,
-0.005770866759121418,
0.022029083222150803,
0.02609599195420742,
-0.047710854560136795,
0.007220644038170576,
-0.020767590031027794,
-0.029918132349848747,
0.008350340649485588,
0.048162732273340225,
-0.058028750121593475,
0.048915863037109375,
0.021859629079699516,
0.046807095408439636,
-0.012407834641635418,
0.029541565105319023,
0.016550054773688316,
-0.038390856236219406,
-0.008157351054251194,
-0.012793813832104206,
-0.015241489745676517,
-0.0879657119512558,
-0.040744390338659286,
-0.009357653558254242,
-0.012492561712861061,
0.0204475075006485,
0.030482979491353035,
0.04202471300959587,
0.07388215512037277,
-0.05068572238087654,
-0.027413969859480858,
0.018508195877075195,
-0.08088627457618713,
0.001336807617917657,
0.028280071914196014,
0.03234697878360748,
-0.021765487268567085,
-0.05245557799935341,
-0.05132588371634483,
-0.015768682584166527,
0.03871093690395355,
0.01828225702047348,
-0.0704554095864296,
-0.013085652142763138,
0.013264521025121212,
0.10107018798589706,
0.012040683068335056,
0.003290241351351142,
0.06887383759021759,
0.010637976229190826,
-0.022330336272716522,
0.04338034987449646,
-0.003695049323141575,
0.06635084748268127,
0.0070511894300580025,
0.005832058843225241,
-0.0070182401686906815,
-0.02684912271797657,
-0.018470538780093193,
0.029164999723434448,
0.025474658235907555,
-0.02639724314212799,
-0.03743061423301697,
0.016597125679254532,
0.028543667867779732,
-0.007912583649158478,
-0.0032243423629552126,
0.019411953166127205,
-0.0019357821438461542,
0.03272354602813721,
0.06081533432006836,
0.04774850979447365,
-0.015363873913884163,
-0.03236580640077591,
0.02219853736460209,
0.011522904969751835,
0.020673448219895363,
-0.035190049558877945,
0.043756913393735886,
0.030445322394371033,
0.07192401587963104,
0.06876086443662643,
-0.046355217695236206,
-0.07787375152111053,
-0.0804343968629837,
0.034531060606241226,
-0.025361688807606697,
0.04567739740014076,
0.03976532071828842,
-0.021313609555363655,
0.06604959070682526,
-0.04202471300959587,
-0.01963789202272892,
-0.045715056359767914,
0.013556359335780144,
0.052568547427654266,
-0.05881953611969948,
0.0017474994529038668,
-0.012577288784086704,
-0.0023311760742217302,
0.012436076998710632,
-0.025587627664208412,
0.004226948134601116,
-0.0515894778072834,
0.031028999015688896,
-0.07241354882717133,
-0.0002968395419884473,
-0.013819955289363861,
0.0818653479218483,
-0.028920233249664307,
0.03743061423301697,
0.01750088296830654,
0.0011920653050765395,
-0.02455207332968712,
-0.02344120480120182,
-0.09911204874515533,
0.005963856820017099,
0.0485016405582428,
0.014507187530398369,
0.014846095815300941,
0.026773808524012566,
0.0020287467632442713,
0.07614155113697052,
-0.011438177898526192,
-0.0017392620211467147,
-0.033589646220207214,
0.010280239395797253,
-0.006589896976947784,
-0.029635706916451454,
-0.01199361216276884,
0.017020761966705322,
0.040857359766960144,
0.09173136204481125,
-0.03409801051020622,
-0.026190131902694702,
0.007263007573783398,
0.03170681744813919,
0.013744642026722431,
0.014140035957098007,
-0.01993914507329464,
-0.061945028603076935,
-0.029729848727583885,
-0.008689249865710735,
-0.0010873329592868686,
-0.03991594538092613,
0.01958140730857849,
-0.02054164931178093,
-0.02059813402593136,
0.019261326640844345,
0.04424645006656647,
-0.0032596453092992306,
-0.00306900916621089,
-0.07998251914978027,
-0.06360191851854324,
0.03031352534890175,
0.0002946331223938614,
0.053434647619724274,
0.03330722078680992,
0.03526536375284195,
0.0009690678562037647,
0.011955955997109413,
-0.020165083929896355,
-0.012793813832104206,
0.02024039812386036,
-0.020673448219895363,
-0.032836515456438065,
0.007545432075858116,
0.0345122292637825,
0.02784702181816101,
0.014751954935491085,
0.0020640497095882893,
-0.05829234421253204,
0.002678322372958064,
0.002638312289491296,
-0.015081449411809444,
-0.03871093690395355,
-0.0200897715985775,
0.09030041843652725,
-0.01282205618917942,
-0.03652685508131981,
-0.04563974216580391,
0.029277971014380455,
0.046920064836740494,
-0.04887820780277252,
0.04454770311713219,
0.04612927883863449,
0.008877532556653023,
-0.00766310840845108,
-0.017453812062740326,
0.03611263632774353,
-0.05030915513634682,
0.027169203385710716,
0.019713206216692924,
0.018649408593773842,
0.001246196567080915,
0.07764781266450882,
-0.01553332805633545,
0.020748760551214218,
0.012577288784086704,
0.05053509399294853,
-0.023460032418370247,
-0.02283869870007038,
-0.034888796508312225,
-0.03526536375284195,
0.013339834287762642,
0.014008237980306149,
-0.04428410530090332,
0.038597967475652695,
-0.03278002887964249,
-0.025512315332889557,
0.09572295844554901,
-0.009597714059054852,
-0.04021719843149185,
0.026585526764392853,
-0.0017981004202738404,
-0.007983189076185226,
-0.008656300604343414,
-0.01924249902367592,
-0.03125493973493576,
-0.013095065951347351,
0.05290745571255684,
-0.027413969859480858,
0.0072159371338784695,
0.05900781974196434,
-0.028863748535513878,
-0.0077713713981211185,
0.02148306369781494,
-0.004099857062101364,
0.021012356504797935,
0.0149778937920928,
-0.039840634912252426,
0.007926704362034798,
-0.03236580640077591,
-0.033890899270772934,
-0.07279011607170105,
-0.07248886674642563,
-0.051664792001247406,
-0.06356426328420639,
-0.007625452242791653,
-0.016399428248405457,
0.009357653558254242,
-0.03375909850001335,
0.0939154401421547,
-0.043003782629966736,
-0.05313339829444885,
0.0038574431091547012,
-0.008877532556653023,
0.08661007136106491,
-0.01767975091934204,
-0.010139026679098606,
-0.026886779814958572,
-0.020428679883480072,
-0.04944305494427681,
-0.04402051120996475,
-0.02223619446158409,
0.02169017493724823,
0.02244330570101738,
-0.03441809117794037,
0.0046317558735609055,
0.03569841384887695,
-0.053622931241989136,
0.026660839095711708,
-0.027978818863630295,
0.051024630665779114,
0.01640884391963482,
0.019769690930843353,
-0.008948138915002346,
-0.031292594969272614,
0.001074388506822288,
0.0383155420422554,
-0.0014486005529761314,
-0.0161075908690691,
-0.0924091786146164,
-0.029277971014380455,
-0.03144322335720062,
0.036489199846982956,
0.017962176352739334,
-0.06446801871061325,
-0.05456434562802315,
0.040405482053756714,
-0.01565571129322052,
-0.015665126964449883,
0.041309237480163574,
0.016032276675105095,
-0.019656721502542496,
0.03842851147055626,
0.04948071017861366,
-0.015768682584166527,
0.06699100881814957,
0.005945028271526098,
-0.010553249157965183,
0.021916113793849945,
0.07113322615623474,
0.05253089219331741,
0.058932505548000336,
0.04394519701600075,
0.03326956555247307,
-0.08269379287958145,
0.028016475960612297,
0.023422375321388245,
0.006001512985676527,
0.01625821739435196,
0.02980516105890274,
0.04145986586809158,
0.057237960398197174,
-0.02072993293404579,
0.010383795015513897,
-0.02265041694045067,
-0.024081366136670113,
0.002338236663490534,
0.031179625540971756,
0.028167102485895157,
0.03893687576055527,
-0.02679263800382614,
0.0074889468960464,
-0.004201059229671955,
0.0009078759467229247,
-0.009560057893395424,
0.02059813402593136,
0.03302479535341263,
0.014083551242947578,
-0.01470488402992487,
-0.041346896439790726,
0.0079643614590168,
0.041346896439790726,
-0.05851828306913376,
0.010694460943341255,
0.03901218995451927,
-0.0011644111946225166,
0.004288140218704939,
0.01540153007954359,
-0.015081449411809444,
-0.025512315332889557,
0.014422459527850151,
-0.017519710585474968,
0.09165605157613754,
-0.0030996049754321575,
-0.0123231066390872,
0.001811044872738421,
0.02123829536139965,
-0.008190300315618515,
-0.08442599326372147,
-0.01921425573527813,
0.03761889785528183,
-0.0012744389241561294,
0.019807346165180206,
0.044208794832229614,
0.022462133318185806,
-0.06096595898270607,
0.06623787432909012,
0.0069099776446819305,
0.005055392161011696,
0.03278002887964249,
0.005206018686294556,
-0.020409852266311646,
-0.08163940906524658,
-0.000019582143067964353,
-0.011805329471826553,
-0.0280541330575943,
-0.02003328688442707,
-0.03500176593661308,
-0.056221235543489456,
-0.010346137918531895,
0.028939060866832733,
0.028637809678912163,
-0.03422980755567551,
0.051627133041620255,
-0.04793679341673851,
-0.020861729979515076,
-0.002265277085825801,
0.030821889638900757,
0.03462520241737366,
-0.09926267713308334,
0.0893966555595398,
-0.006057998165488243,
-0.008420947007834911,
0.03101017139852047,
-0.012737329117953777,
-0.026980919763445854,
-0.03462520241737366,
0.01144759263843298,
0.02549348585307598,
-0.0712461993098259,
0.08661007136106491,
0.04228831082582474,
-0.01239841990172863,
0.09662671387195587,
-0.01490258052945137,
-0.04563974216580391,
-0.01527914684265852,
-0.04684475064277649,
-0.021068841218948364,
0.0311043132096529,
-0.016427671536803246,
-0.006429856643080711,
-0.0386732816696167,
-0.014083551242947578,
0.03276120126247406,
0.003817433025687933,
-0.07764781266450882,
0.00016518871416337788,
-0.0032831807620823383,
-0.026265446096658707,
-0.029372110962867737,
0.025719426572322845,
-0.019807346165180206,
0.00690056337043643,
0.02554997056722641,
0.01114633958786726,
-0.06247222051024437,
0.035736069083213806,
-0.047673195600509644,
-0.09112885594367981,
-0.02199142798781395,
0.03255409002304077,
-0.057087335735559464,
-0.07621686160564423,
0.02784702181816101,
-0.004248130135238171,
-0.013113894499838352,
0.08465193212032318,
0.03311893716454506,
-0.0054602003656327724,
-0.05599529296159744,
0.0015874591190367937,
-0.05335933715105057,
0.0014274186687543988,
0.0035161806736141443,
-0.046807095408439636,
0.020070942118763924,
-0.03155619278550148,
0.006938220001757145,
0.023968396708369255,
0.00849155243486166,
-0.03916281461715698,
0.045413803309202194,
0.014789611101150513,
0.017698580399155617,
0.0007731360965408385,
-0.014036480337381363,
-0.029240313917398453,
0.021313609555363655,
-0.005121291149407625,
0.05430075153708458,
0.02153954841196537,
0.03426746279001236,
0.030840717256069183,
-0.005521391984075308,
-0.04744725674390793,
-0.016484156250953674,
-0.0013473985018208623,
0.002800706075504422,
-0.032177526503801346,
-0.002600655658170581,
-0.029390940442681313,
-0.0295603945851326,
0.006566361524164677,
-0.017491469159722328,
0.009343531914055347,
-0.05143885314464569,
-0.0076442803256213665,
-0.022311508655548096,
0.038899220526218414,
0.01963789202272892,
-0.041610490530729294,
-0.005253089126199484,
0.018997730687260628,
-0.03050180897116661,
0.007126502692699432,
-0.043907541781663895,
-0.013368076644837856,
-0.027978818863630295,
-0.024024881422519684,
-0.013509288430213928,
-0.01046852208673954,
0.025211062282323837,
-0.04507489502429962,
0.01750088296830654,
-0.01879061944782734,
0.0500079020857811,
-0.019807346165180206,
0.03583021089434624,
-0.01810338720679283,
0.027131546288728714,
0.012680844403803349,
-0.0029913424514234066,
-0.009560057893395424,
0.01022375375032425,
-0.029842818155884743,
-0.04217534139752388,
0.05430075153708458,
0.011052198708057404,
-0.013932924717664719,
0.02039102278649807,
0.02024039812386036,
0.019713206216692924,
0.07990720868110657,
-0.010769774205982685,
-0.0553174763917923,
-0.0698905661702156,
0.00224291835911572,
0.012115996330976486,
-0.04808741807937622,
0.005615533329546452,
0.06706631928682327,
-0.0003539127646945417,
-0.013829369097948074,
-0.03070891834795475,
-0.06126721203327179,
-0.005865008104592562,
0.03351433202624321,
-0.04914180189371109,
0.01114633958786726,
0.02775288000702858,
0.03230932354927063,
0.039351098239421844,
0.016182903200387955,
0.01948726549744606,
0.05979860574007034,
0.05550576001405716,
-0.0013815248385071754,
0.010882743634283543,
0.02283869870007038,
-0.014309490099549294,
-0.027225688099861145,
0.05780280753970146,
0.029277971014380455,
-0.03641388565301895,
0.06273581832647324,
0.019073044881224632,
-0.03631974384188652,
0.048313356935977936,
-0.018329327926039696,
-0.0043305037543177605,
0.03842851147055626,
0.023968396708369255,
-0.014535429887473583,
-0.008797512389719486,
-0.0012944439658895135,
-0.013829369097948074,
-0.01840464025735855,
-0.029522737488150597,
0.01798100396990776,
-0.027639910578727722,
-0.010590905323624611,
-0.019468437880277634,
0.003600907977670431,
0.04100798815488815,
0.011089854873716831
]
|
30,140 | networkx.classes.graph | remove_nodes_from | Remove multiple nodes.
Parameters
----------
nodes : iterable container
A container of nodes (list, dict, set, etc.). If a node
in the container is not in the graph it is silently
ignored.
See Also
--------
remove_node
Notes
-----
When removing nodes from an iterator over the graph you are changing,
a `RuntimeError` will be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.remove_nodes_from`.
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = list(G.nodes)
>>> e
[0, 1, 2]
>>> G.remove_nodes_from(e)
>>> list(G.nodes)
[]
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.Graph([(0, 1), (1, 2), (3, 4)])
>>> # this command will fail, as the graph's dict is modified during iteration
>>> # G.remove_nodes_from(n for n in G.nodes if n < 2)
>>> # this command will work, since the dictionary underlying graph is not modified
>>> G.remove_nodes_from(list(n for n in G.nodes if n < 2))
| def remove_nodes_from(self, nodes):
"""Remove multiple nodes.
Parameters
----------
nodes : iterable container
A container of nodes (list, dict, set, etc.). If a node
in the container is not in the graph it is silently
ignored.
See Also
--------
remove_node
Notes
-----
When removing nodes from an iterator over the graph you are changing,
a `RuntimeError` will be raised with message:
`RuntimeError: dictionary changed size during iteration`. This
happens when the graph's underlying dictionary is modified during
iteration. To avoid this error, evaluate the iterator into a separate
object, e.g. by using `list(iterator_of_nodes)`, and pass this
object to `G.remove_nodes_from`.
Examples
--------
>>> G = nx.path_graph(3) # or DiGraph, MultiGraph, MultiDiGraph, etc
>>> e = list(G.nodes)
>>> e
[0, 1, 2]
>>> G.remove_nodes_from(e)
>>> list(G.nodes)
[]
Evaluate an iterator over a graph if using it to modify the same graph
>>> G = nx.Graph([(0, 1), (1, 2), (3, 4)])
>>> # this command will fail, as the graph's dict is modified during iteration
>>> # G.remove_nodes_from(n for n in G.nodes if n < 2)
>>> # this command will work, since the dictionary underlying graph is not modified
>>> G.remove_nodes_from(list(n for n in G.nodes if n < 2))
"""
adj = self._adj
for n in nodes:
try:
del self._node[n]
for u in list(adj[n]): # list handles self-loops
del adj[u][n] # (allows mutation of dict in loop)
del adj[n]
except KeyError:
pass
nx._clear_cache(self)
| (self, nodes) | [
-0.02469582110643387,
0.022341102361679077,
-0.03817322850227356,
-0.008461669087409973,
-0.09326979517936707,
0.027873732149600983,
-0.044261038303375244,
0.07056495547294617,
0.14434611797332764,
-0.002749563893303275,
-0.006504190154373646,
0.009466730989515781,
0.0038000934291630983,
0.02927124872803688,
-0.013515697792172432,
-0.017478514462709427,
-0.0164447370916605,
0.014654767699539661,
0.03265974298119545,
-0.010117628611624241,
-0.01922062411904335,
0.007724623195827007,
0.013238108716905117,
0.04330383613705635,
-0.027222834527492523,
0.0008381503284908831,
0.043801579624414444,
0.004802762996405363,
-0.016109716147184372,
0.01680847257375717,
-0.010280353017151356,
0.017066918313503265,
-0.02890751138329506,
-0.03139623627066612,
0.010079341009259224,
0.04697949066758156,
-0.01341040525585413,
0.0458691380918026,
-0.07703564316034317,
0.00889240950345993,
-0.02339402586221695,
-0.011764016933739185,
0.05567089095711708,
-0.011764016933739185,
0.0412362776696682,
0.010222921147942543,
0.046520035713911057,
0.05214838311076164,
-0.035550497472286224,
-0.013850717805325985,
0.03824980556964874,
-0.002061574487015605,
0.00986875593662262,
0.03958988934755325,
-0.007657618727535009,
0.028869222849607468,
-0.021422188729047775,
0.03836467117071152,
0.06635326892137527,
0.021383900195360184,
0.043839868158102036,
0.003223378909751773,
-0.015583254396915436,
-0.03625882416963577,
-0.014980216510593891,
-0.0303433146327734,
-0.01867501810193062,
-0.0342678427696228,
-0.05433080717921257,
0.00784905906766653,
-0.044261038303375244,
0.0010481366189196706,
0.020771291106939316,
0.021135028451681137,
0.04387815669178963,
0.008648322895169258,
-0.01347740925848484,
0.08653109520673752,
-0.0016834796406328678,
-0.044261038303375244,
0.03315749019384384,
0.0009189142729155719,
-0.0009566040826030076,
0.01569811813533306,
0.06478345394134521,
0.005336403381079435,
0.015554537996649742,
0.04131285473704338,
0.004510816186666489,
-0.022475112229585648,
-0.037675485014915466,
-0.02056070603430271,
-0.03227686509490013,
0.009021632373332977,
0.033291496336460114,
0.06926316022872925,
-0.010385645553469658,
-0.07856716960668564,
0.007112013641744852,
-0.04609886556863785,
0.0681145191192627,
-0.0008632768876850605,
-0.05961456149816513,
0.007729409262537956,
0.01783267967402935,
-0.028505485504865646,
-0.030190162360668182,
-0.03187483921647072,
0.028084317222237587,
0.007073725573718548,
-0.08821576833724976,
0.04104483872652054,
0.05720241367816925,
0.0022889100946485996,
0.01791882887482643,
-0.008466455154120922,
-0.05452224612236023,
-0.05938483402132988,
-0.013486981391906738,
-0.0016954446909949183,
-0.030783627182245255,
0.04288266599178314,
-0.02904151938855648,
0.03581851348280907,
0.03677571564912796,
0.012568066827952862,
0.052837569266557693,
0.020445842295885086,
-0.0005115050007589161,
-0.07358971983194351,
0.006891856901347637,
-0.006374967750161886,
-0.007078511640429497,
0.03788606822490692,
0.04460563138127327,
-0.03204713389277458,
-0.03292776271700859,
-0.029520120471715927,
0.04238491877913475,
0.005781502462923527,
-0.030037010088562965,
-0.01139070838689804,
0.03849867731332779,
0.05138262361288071,
-0.00018755183555185795,
-0.021805070340633392,
-0.015765123069286346,
-0.036794859915971756,
-0.059537988156080246,
0.0014525545993819833,
-0.046902917325496674,
0.028237469494342804,
0.047170933336019516,
0.0004029223637189716,
-0.0630222037434578,
0.03570364788174629,
-0.05693439766764641,
-0.019660936668515205,
-0.0583510547876358,
0.01769867166876793,
-0.02505955845117569,
0.0294052567332983,
0.00764326099306345,
-0.019756656140089035,
-0.014606907963752747,
-0.051995232701301575,
0.04839615151286125,
-0.02659108117222786,
-0.07523610442876816,
0.030649619176983833,
-0.007528396788984537,
-0.021230747923254967,
0.006647770293056965,
-0.009595953859388828,
-0.03116650879383087,
0.030534755438566208,
0.02639964036643505,
-0.01801454834640026,
-0.04058538004755974,
0.008389879018068314,
-0.03311920166015625,
-0.026801666244864464,
-0.01703820191323757,
-0.024848973378539085,
0.021039307117462158,
0.03409554809331894,
-0.017248786985874176,
0.01074938289821148,
0.014549476094543934,
-0.028180036693811417,
0.028850078582763672,
-0.027433419600129128,
0.023336593061685562,
0.08507614582777023,
0.03802007809281349,
-0.023930059745907784,
-0.014166594482958317,
-0.0044629559852182865,
-0.05379477143287659,
0.06198842450976372,
-0.006805708631873131,
-0.0020412339363247156,
0.026055049151182175,
0.0051736789755523205,
0.0016212614718824625,
0.005580489989370108,
0.004297838546335697,
-0.0203884094953537,
-0.0014381965156644583,
0.027950309216976166,
0.008791903965175152,
-0.036201395094394684,
0.10621117055416107,
-0.0036469409242272377,
-0.02417893148958683,
-0.022628264501690865,
-0.06731046736240387,
0.038613542914390564,
-0.008016569539904594,
-0.06309878081083298,
-0.010950394906103611,
-0.0019574789330363274,
0.0027543497271835804,
-0.10115714371204376,
0.021824214607477188,
-0.019191907718777657,
0.0028213539626449347,
-0.015095081180334091,
0.04223176836967468,
-0.03830723837018013,
0.09150854498147964,
-0.018320852890610695,
0.04081510752439499,
-0.005575703922659159,
0.05433080717921257,
-0.013496553525328636,
-0.010797242633998394,
-0.04479707032442093,
0.017995404079556465,
0.010395217686891556,
-0.08974729478359222,
-0.042078614234924316,
0.006451543886214495,
-0.0021178103052079678,
0.030132729560136795,
0.06313706934452057,
0.00887326616793871,
0.026342209428548813,
-0.026763377711176872,
0.014980216510593891,
-0.0017205711919814348,
-0.0509614534676075,
0.03112822026014328,
0.0173732228577137,
0.02747170813381672,
0.011668296530842781,
-0.020503275096416473,
-0.04146600514650345,
-0.007810771465301514,
0.005164106842130423,
0.02890751138329506,
-0.03869011998176575,
-0.008528673090040684,
0.05314387381076813,
0.08400408178567886,
0.01445375569164753,
0.03181740641593933,
0.06635326892137527,
-0.04881732165813446,
0.02982642501592636,
0.01067280676215887,
-0.011428995989263058,
0.07198161631822586,
0.0010744596365839243,
0.008504742756485939,
0.019421635195612907,
-0.04893218353390694,
-0.012405342422425747,
0.011524716392159462,
0.019909808412194252,
0.019948096945881844,
-0.03719688206911087,
-0.025346718728542328,
0.01016548927873373,
-0.024561813101172447,
-0.00945237372070551,
0.027873732149600983,
-0.0048889112658798695,
0.01063451822847128,
0.029979577288031578,
0.03503360599279404,
-0.019517356529831886,
-0.0027136686258018017,
-0.015305665321648121,
-0.0019395312992855906,
0.025212710723280907,
-0.04146600514650345,
0.006006444804370403,
0.015774695202708244,
0.06455373018980026,
0.07251764833927155,
-0.06129923835396767,
-0.04923848807811737,
-0.05716412514448166,
0.06738704442977905,
-0.01373585406690836,
0.05429251864552498,
0.016329871490597725,
-0.015994850546121597,
0.02904151938855648,
-0.041159700602293015,
-0.01856972649693489,
-0.04521824046969414,
-0.056896109133958817,
0.020177826285362244,
-0.04341869801282883,
0.023470601066946983,
-0.011591720394790173,
0.028486343100667,
0.06359652429819107,
-0.03978132829070091,
-0.006422827951610088,
-0.07496809214353561,
0.06443886458873749,
-0.06845911592245102,
0.021422188729047775,
0.026744233444333076,
0.09740491211414337,
0.006800922565162182,
0.022015653550624847,
-0.015956563875079155,
0.012376626953482628,
-0.0142431715503335,
-0.011524716392159462,
0.003503360552713275,
-0.017803963273763657,
0.053756482899188995,
0.012022461742162704,
0.027873732149600983,
-0.01686590537428856,
-0.017641238868236542,
0.025691311806440353,
-0.02668680250644684,
-0.005312473047524691,
-0.02672508917748928,
0.02375776320695877,
0.009069492109119892,
-0.0028022099286317825,
0.014405895955860615,
0.002897930098697543,
0.014769632369279861,
0.12152641266584396,
-0.0039628176018595695,
0.02306857705116272,
0.01630115695297718,
0.02042669802904129,
-0.009294435381889343,
0.03271717578172684,
0.003149195807054639,
-0.04372500255703926,
0.010203776881098747,
0.019057899713516235,
0.04100655019283295,
-0.01774653233587742,
0.057547006756067276,
-0.034995317459106445,
-0.01445375569164753,
-0.012711646966636181,
-0.0016547635896131396,
-0.06260103732347488,
-0.010433505289256573,
-0.029864713549613953,
-0.07247935980558395,
0.02033097855746746,
-0.031434524804353714,
0.04544796794652939,
-0.0035344697535037994,
0.02528928592801094,
-0.019153619185090065,
0.07025865465402603,
-0.0227048397064209,
-0.030630474910140038,
0.031472813338041306,
0.011457712389528751,
0.016837188974022865,
-0.03978132829070091,
0.027395131066441536,
-0.015363098122179508,
0.03821151703596115,
0.015382242389023304,
-0.05341189354658127,
-0.04284437745809555,
0.005886794533580542,
0.01866544596850872,
-0.05980600416660309,
-0.025461582466959953,
0.07117756456136703,
-0.026437928900122643,
-0.04372500255703926,
-0.07994554191827774,
0.021517908200621605,
-0.0013161532115191221,
-0.015439674258232117,
0.06141410395503044,
0.02006296068429947,
-0.01819641701877117,
-0.0010882194619625807,
0.0052646128460764885,
0.047592099756002426,
0.006169169209897518,
0.039168719202280045,
-0.0036636919248849154,
0.013582701794803143,
0.013822002336382866,
0.033655233681201935,
-0.03576108068227768,
0.01135241985321045,
0.025212710723280907,
0.07684420794248581,
0.016971196979284286,
0.02728026732802391,
-0.037216026335954666,
0.014109162613749504,
-0.005082744639366865,
0.04854930192232132,
-0.04085339605808258,
0.009366225451231003,
-0.05172721669077873,
-0.015592826530337334,
0.06382625550031662,
-0.02789287641644478,
-0.072249636054039,
0.0029362181667238474,
-0.04058538004755974,
0.00218840385787189,
0.009136496111750603,
-0.032449159771203995,
-0.004532353021204472,
0.026897385716438293,
0.040279075503349304,
-0.049774523824453354,
0.019622648134827614,
0.036660850048065186,
-0.0908193588256836,
-0.022589975968003273,
0.01109397504478693,
-0.03683314844965935,
0.014980216510593891,
0.0162054356187582,
0.020369267091155052,
0.003276025177910924,
-0.013831574469804764,
0.00499181030318141,
-0.08147706836462021,
-0.04131285473704338,
-0.007360886316746473,
-0.03298519179224968,
0.024580957368016243,
-0.0421551913022995,
-0.003149195807054639,
0.06317535787820816,
0.025729600340127945,
-0.03210456669330597,
-0.002519835252314806,
0.004092040006071329,
-0.0033573873806744814,
0.06662128120660782,
-0.0130849564447999,
-0.007293881848454475,
0.00778205506503582,
0.0551348552107811,
-0.05808303877711296,
-0.03486131131649017,
-0.0490853376686573,
0.023930059745907784,
0.028869222849607468,
-0.05846592038869858,
-0.028486343100667,
-0.023087721318006516,
-0.05145920068025589,
-0.03669913858175278,
-0.05666637793183327,
0.08967071771621704,
0.011046115309000015,
0.008949842303991318,
-0.015736406669020653,
-0.01236705482006073,
-0.04502679780125618,
0.006073448807001114,
0.009595953859388828,
-0.015248233452439308,
-0.11892282217741013,
-0.026973962783813477,
-0.03220028802752495,
0.05578575283288956,
-0.014884497039020061,
-0.06443886458873749,
-0.048166424036026,
0.03989619389176369,
-0.016157574951648712,
-0.006097379140555859,
0.054407380521297455,
0.04709435626864433,
0.008672253228724003,
0.06868883967399597,
0.0280268844217062,
0.025672167539596558,
0.03717774152755737,
-0.004532353021204472,
-0.028428910300135612,
-0.006446757819503546,
0.029864713549613953,
0.028046028688549995,
0.03099421225488186,
0.016224579885601997,
-0.03317663446068764,
-0.07309196889400482,
0.06401769071817398,
0.047324083745479584,
-0.019469495862722397,
0.004728579893708229,
0.022111374884843826,
0.004498851019889116,
0.0639411211013794,
-0.013573129661381245,
-0.011572576127946377,
-0.012510634958744049,
-0.05360333248972893,
0.031702540814876556,
0.002952969167381525,
0.016291584819555283,
0.02965412847697735,
-0.02098187617957592,
0.0026897385250777006,
0.018320852890610695,
-0.015296094119548798,
0.02580617554485798,
-0.030094442889094353,
0.009490661323070526,
0.040508802980184555,
0.046252019703388214,
0.01303709577769041,
0.02806517295539379,
0.03838381543755531,
-0.0347273014485836,
0.0412362776696682,
0.01584169827401638,
-0.0003942477342206985,
-0.011840593069791794,
0.039398450404405594,
-0.0593082569539547,
-0.052875857800245285,
-0.000975149916484952,
0.025863608345389366,
0.08193652331829071,
-0.047821830958127975,
-0.012271334417164326,
-0.0035775438882410526,
0.020235257223248482,
0.009686888195574284,
-0.05295243486762047,
-0.010912107303738594,
-0.003690015058964491,
-0.00155784678645432,
0.010864246636629105,
0.025921039283275604,
-0.0021345613058656454,
-0.04039394110441208,
0.0319514162838459,
0.06011230871081352,
-0.009069492109119892,
0.040470514446496964,
0.008772759698331356,
-0.009753892198204994,
-0.05666637793183327,
-0.004730972461402416,
-0.00222429889254272,
-0.033789243549108505,
-0.011610864661633968,
-0.057968173176050186,
-0.0370628759264946,
-0.017258359119296074,
0.05582404136657715,
-0.0020819150377064943,
0.03997277095913887,
0.051535774022340775,
-0.030726196244359016,
0.0031228726729750633,
0.011524716392159462,
0.04112141206860542,
0.06076320633292198,
-0.06891857087612152,
0.06979919970035553,
-0.0004603545239660889,
-0.049161914736032486,
0.012347910553216934,
0.01931634359061718,
-0.0319514162838459,
-0.0713307186961174,
0.01456862036138773,
-0.01556411013007164,
-0.030611330643296242,
0.11203096061944962,
0.07381944358348846,
-0.014539903961122036,
0.0031420167069882154,
-0.007413532119244337,
-0.03836467117071152,
0.02237939089536667,
-0.0051736789755523205,
-0.010605801828205585,
0.05092316493391991,
0.033750955015420914,
-0.02741427533328533,
0.010806814767420292,
0.00603516073897481,
0.0001555453782202676,
0.026476217433810234,
-0.013936866074800491,
-0.044261038303375244,
-0.017449799925088882,
-0.0560537688434124,
-0.04066195711493492,
-0.01616714708507061,
-0.020254401490092278,
0.008772759698331356,
0.00398435490205884,
0.009433229453861713,
-0.05226324871182442,
0.04571598395705223,
-0.009059919975697994,
-0.10475622862577438,
0.02052241936326027,
0.01243405882269144,
-0.044261038303375244,
-0.05099974200129509,
0.005460839252918959,
-0.009562451392412186,
-0.05314387381076813,
0.0291755273938179,
0.06294562667608261,
-0.037866923958063126,
-0.05984429270029068,
-0.009284863248467445,
-0.08760315924882889,
-0.0727473795413971,
-0.01811983995139599,
-0.02519356645643711,
0.03882412612438202,
0.002343949396163225,
0.024255508556962013,
0.04893218353390694,
0.014444183558225632,
-0.02682081051170826,
-0.007274738047271967,
0.019536500796675682,
0.002771100727841258,
-0.006279247347265482,
0.016234152019023895,
-0.0315111018717289,
0.03826894983649254,
0.019660936668515205,
0.06286904960870743,
0.04609886556863785,
0.028888367116451263,
-0.049315065145492554,
0.03876669704914093,
-0.012625498697161674,
0.026763377711176872,
0.03639283403754234,
-0.03681400418281555,
-0.054407380521297455,
-0.016138432547450066,
-0.013563557527959347,
-0.04108312353491783,
0.009533735923469067,
-0.015200373716652393,
0.0028309260960668325,
-0.007633688859641552,
-0.002495905151590705,
-0.041810598224401474,
0.057087548077106476,
-0.025116989389061928,
-0.020024674013257027,
-0.02486811764538288,
0.03130051866173744,
-0.03507189452648163,
0.022398535162210464,
-0.0370437316596508,
0.0036995871923863888,
-0.01685633324086666,
-0.04594571515917778,
0.02728026732802391,
-0.012606355361640453,
-0.02000552974641323,
0.023011144250631332,
0.0015506678028032184,
-0.040279075503349304,
0.03625882416963577,
0.00036373690818436444,
0.028007740154862404,
0.027663148939609528,
-0.008528673090040684,
0.004764474928379059,
-0.004549104254692793,
-0.0062553174793720245,
-0.021651918068528175,
0.0008375520701520145,
-0.02469582110643387,
0.057968173176050186,
-0.009820896200835705,
0.01398472674190998,
0.035684503614902496,
0.029768994078040123,
0.020771291106939316,
0.016109716147184372,
-0.0034076403826475143,
-0.05230153724551201,
-0.005747999995946884,
-0.009409299120306969,
-0.0005097102839499712,
-0.023240873590111732,
0.028448054566979408,
0.042078614234924316,
-0.033463794738054276,
-0.008533459156751633,
0.03321492299437523,
-0.03970475494861603,
0.0015410957857966423,
0.008834977634251118,
-0.03093677945435047,
0.0727090910077095,
-0.02414064295589924,
0.0020412339363247156,
-0.005800646264106035,
-0.0375031903386116,
-0.02218795008957386,
0.050042539834976196,
0.022723983973264694,
-0.0025916253216564655,
-0.024561813101172447,
-0.003733089193701744,
-0.02283884771168232,
0.03306176885962486,
-0.0017672348767518997,
-0.04544796794652939,
-0.01779439114034176,
0.05345017835497856,
0.006240959279239178,
-0.059040240943431854,
0.05341189354658127,
0.026323065161705017,
-0.03279375284910202,
-0.035282477736473083,
0.055556025356054306,
-0.01922062411904335,
-0.020445842295885086,
-0.03549306467175484,
-0.05792988836765289,
-0.06329022347927094,
-0.03130051866173744,
0.029864713549613953,
-0.00020774282165803015,
0.029941290616989136,
-0.0013640134129673243,
0.0319705605506897,
0.03656512871384621,
0.018732450902462006
]
|
30,145 | networkx.classes.graph | to_undirected | Returns an undirected copy of the graph.
Parameters
----------
as_view : bool (optional, default=False)
If True return a view of the original undirected graph.
Returns
-------
G : Graph/MultiGraph
A deepcopy of the graph.
See Also
--------
Graph, copy, add_edge, add_edges_from
Notes
-----
This returns a "deepcopy" of the edge, node, and
graph attributes which attempts to completely copy
all of the data and references.
This is in contrast to the similar `G = nx.DiGraph(D)` which returns a
shallow copy of the data.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Warning: If you have subclassed DiGraph to use dict-like objects
in the data structure, those changes do not transfer to the
Graph created by this method.
Examples
--------
>>> G = nx.path_graph(2) # or MultiGraph, etc
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1), (1, 0)]
>>> G2 = H.to_undirected()
>>> list(G2.edges)
[(0, 1)]
| def to_undirected(self, as_view=False):
"""Returns an undirected copy of the graph.
Parameters
----------
as_view : bool (optional, default=False)
If True return a view of the original undirected graph.
Returns
-------
G : Graph/MultiGraph
A deepcopy of the graph.
See Also
--------
Graph, copy, add_edge, add_edges_from
Notes
-----
This returns a "deepcopy" of the edge, node, and
graph attributes which attempts to completely copy
all of the data and references.
This is in contrast to the similar `G = nx.DiGraph(D)` which returns a
shallow copy of the data.
See the Python copy module for more information on shallow
and deep copies, https://docs.python.org/3/library/copy.html.
Warning: If you have subclassed DiGraph to use dict-like objects
in the data structure, those changes do not transfer to the
Graph created by this method.
Examples
--------
>>> G = nx.path_graph(2) # or MultiGraph, etc
>>> H = G.to_directed()
>>> list(H.edges)
[(0, 1), (1, 0)]
>>> G2 = H.to_undirected()
>>> list(G2.edges)
[(0, 1)]
"""
graph_class = self.to_undirected_class()
if as_view is True:
return nx.graphviews.generic_graph_view(self, graph_class)
# deepcopy when not a view
G = graph_class()
G.graph.update(deepcopy(self.graph))
G.add_nodes_from((n, deepcopy(d)) for n, d in self._node.items())
G.add_edges_from(
(u, v, deepcopy(d))
for u, nbrs in self._adj.items()
for v, d in nbrs.items()
)
return G
| (self, as_view=False) | [
-0.0382271446287632,
0.017160426825284958,
0.004937369842082262,
0.013999056071043015,
-0.03786376863718033,
0.01614297367632389,
-0.03808179125189781,
-0.013081531971693039,
0.07841651886701584,
0.0014341991627588868,
-0.017033245414495468,
-0.011382749304175377,
-0.03021470457315445,
0.05218077823519707,
-0.007921594195067883,
0.06428119540214539,
-0.038408830761909485,
0.011809716001152992,
0.05904858186841011,
0.04767491668462753,
0.014108068309724331,
-0.05352526903152466,
0.0016045316588133574,
-0.0032612986396998167,
-0.03561083599925041,
-0.053561605513095856,
-0.03270382806658745,
-0.014971086755394936,
-0.02763473615050316,
0.004033472388982773,
-0.004737513139843941,
-0.03294002264738083,
0.01590677909553051,
0.005214443895965815,
0.04738421365618706,
0.02994217351078987,
-0.01838682033121586,
0.06122883781790733,
-0.05893956869840622,
-0.059738993644714355,
-0.01282716915011406,
-0.04018937423825264,
-0.0003838157863356173,
0.009016264230012894,
0.07710836082696915,
0.01823238469660282,
0.03710067644715309,
0.015716006979346275,
-0.04694816470146179,
-0.050000522285699844,
0.028761200606822968,
0.023873794823884964,
-0.041751887649297714,
0.04171555116772652,
-0.02834331803023815,
0.003688265336677432,
0.012845337390899658,
0.03190440312027931,
-0.012745409272611141,
0.03771841526031494,
-0.05755874142050743,
-0.0240554828196764,
0.024582378566265106,
-0.0530528798699379,
0.0033725823741406202,
0.0044127460569143295,
-0.05497877299785614,
-0.024982092902064323,
-0.006445379927754402,
0.01761464588344097,
-0.08415785431861877,
-0.0007119896472431719,
0.009702135808765888,
0.019149908795952797,
0.07409234344959259,
0.018913714215159416,
0.06017504632472992,
0.033612269908189774,
-0.014516866765916348,
-0.003983508329838514,
-0.020894113928079605,
-0.03462972119450569,
-0.033612269908189774,
0.03622857481241226,
0.04614873602986336,
0.007244806736707687,
0.012363864108920097,
-0.006100172642618418,
0.010565154254436493,
-0.08037874847650528,
0.003472510725259781,
0.004149298183619976,
-0.014734892174601555,
0.026817141100764275,
0.02614489570260048,
-0.0048828632570803165,
-0.04226061701774597,
-0.017478380352258682,
-0.007808039430528879,
-0.025690674781799316,
-0.033485088497400284,
-0.0036133190151304007,
-0.10094582289457321,
-0.014689469709992409,
-0.016969654709100723,
-0.06686116009950638,
0.005105431191623211,
-0.020149191841483116,
-0.021421007812023163,
-0.02861585095524788,
-0.029796821996569633,
0.02676263451576233,
0.05526947230100632,
0.05192641541361809,
0.014444191008806229,
-0.019277090206742287,
0.024437028914690018,
-0.04095246270298958,
0.009225205518305302,
0.013453992083668709,
-0.049382783472537994,
0.06391781568527222,
0.001626107026822865,
0.00552331330254674,
-0.007013154681771994,
0.0017214932013303041,
0.008948131464421749,
-0.025181949138641357,
0.01552523486316204,
-0.0058185565285384655,
-0.023855626583099365,
-0.02218409813940525,
-0.04774758964776993,
0.04048007354140282,
0.007499170023947954,
-0.010001921094954014,
-0.05472440645098686,
-0.00437867920845747,
0.037900105118751526,
0.07652696222066879,
-0.05632326379418373,
-0.053198229521512985,
0.058757878839969635,
0.11162906885147095,
0.008434862829744816,
0.0003926162899006158,
0.005477891303598881,
0.04545832425355911,
-0.03906290605664253,
-0.024128159508109093,
0.0036224033683538437,
0.02452787198126316,
0.03931726887822151,
0.009356928989291191,
-0.02538180537521839,
0.003647385397925973,
-0.0813235193490982,
0.009429603815078735,
-0.04553099721670151,
0.009329675696790218,
-0.05239880084991455,
-0.03108680620789528,
0.03982599824666977,
0.012463793158531189,
-0.0023869252763688564,
-0.059484630823135376,
0.11925996840000153,
-0.036791808903217316,
-0.006427210755646229,
0.059230268001556396,
-0.03350325673818588,
-0.02182072214782238,
-0.015388968400657177,
-0.0022041017655283213,
-0.042224276810884476,
0.0321042574942112,
0.032231442630290985,
0.022638317197561264,
-0.009393266402184963,
0.007140336092561483,
0.028924720361828804,
-0.04171555116772652,
-0.026726296171545982,
0.0039948634803295135,
0.011219230480492115,
-0.011364581063389778,
-0.025963207706809044,
-0.018523085862398148,
0.020439893007278442,
0.015734175220131874,
0.04992784559726715,
0.024491535499691963,
0.055305808782577515,
0.02367393858730793,
0.06638877093791962,
-0.06424485892057419,
-0.04244230315089226,
0.012064079754054546,
-0.01699690707027912,
0.0986202135682106,
0.03190440312027931,
-0.0480382926762104,
0.0677332654595375,
0.016824303194880486,
-0.03214059770107269,
0.03869953006505966,
-0.048510681837797165,
-0.028452331200242043,
0.025599831715226173,
0.006159221287816763,
0.008830034174025059,
-0.005368878599256277,
0.05359794199466705,
0.009356928989291191,
-0.06769692897796631,
-0.03252214193344116,
-0.06711552292108536,
0.025054767727851868,
0.007912510074675083,
-0.0027389456517994404,
-0.030160197988152504,
0.00029978511156514287,
-0.05497877299785614,
-0.014480529353022575,
-0.01115563977509737,
-0.03626491501927376,
-0.017896262928843498,
-0.036065056920051575,
0.026453765109181404,
-0.048147305846214294,
0.06667947769165039,
-0.03873587027192116,
0.0031341169960796833,
0.0028456873260438442,
0.03844516724348068,
-0.016833387315273285,
-0.046548452228307724,
-0.007817124016582966,
0.05119966343045235,
0.053307242691516876,
-0.05933928117156029,
-0.04967348277568817,
0.0018112016841769218,
0.040734436362981796,
0.053307242691516876,
0.025200117379426956,
-0.03165004029870033,
0.001494383323006332,
0.04578536003828049,
0.012045910581946373,
-0.04353243112564087,
-0.036791808903217316,
-0.05559651181101799,
0.019567791372537613,
0.042224276810884476,
0.007376530673354864,
-0.06413584202528,
-0.044949598610401154,
-0.05239880084991455,
0.007331108674407005,
0.006549850106239319,
0.018786532804369926,
-0.025545325130224228,
0.013790114782750607,
0.0067497072741389275,
-0.03986233472824097,
-0.010465225204825401,
-0.0020326338708400726,
-0.0060002440586686134,
0.03430268168449402,
0.056650299578905106,
0.029306264594197273,
0.018050696700811386,
0.013735608197748661,
-0.0011650739470496774,
0.004505861084908247,
-0.015625163912773132,
0.037791091948747635,
-0.014262503013014793,
-0.014271588064730167,
-0.026435595005750656,
0.00006965887587284669,
-0.027035165578126907,
-0.01275449339300394,
-0.039498958736658096,
0.010247199796140194,
0.002602679654955864,
-0.033485088497400284,
0.00613651005551219,
-0.01761464588344097,
0.10327142477035522,
0.0021212068386375904,
0.031759053468704224,
0.002866127295419574,
0.00563686853274703,
0.04018937423825264,
-0.03019653633236885,
-0.016597192734479904,
0.01103754248470068,
0.09447772800922394,
0.03873587027192116,
-0.006690658628940582,
0.02194790355861187,
0.033830296248197556,
0.03355776146054268,
-0.0016147515270859003,
0.013826452195644379,
0.0075082541443407536,
0.0004533681785687804,
0.028506837785243988,
-0.08452123403549194,
-0.01554340310394764,
-0.01213675457984209,
0.03512027859687805,
-0.0554874986410141,
-0.019931167364120483,
-0.0030727973207831383,
-0.05079994723200798,
0.02725319191813469,
0.040770772844552994,
-0.06191924959421158,
0.071512371301651,
-0.056032560765743256,
0.0012093603145331144,
-0.029669640585780144,
0.04306004196405411,
0.042006250470876694,
0.07016788423061371,
0.013226882554590702,
0.03528379648923874,
-0.01504376158118248,
0.019022727385163307,
-0.02329239435493946,
0.03931726887822151,
-0.07423769682645798,
0.01898638904094696,
0.04767491668462753,
-0.015325377695262432,
0.023637602105736732,
-0.03492042422294617,
0.00564595265313983,
0.07431036978960037,
-0.017460212111473083,
-0.04643943905830383,
0.008303139358758926,
0.0265082698315382,
-0.03686448186635971,
0.006163763348013163,
-0.019531453028321266,
-0.009647630155086517,
-0.013799198903143406,
0.06827832758426666,
-0.04004402086138725,
0.038517843931913376,
-0.02391013316810131,
0.041243162006139755,
0.01653360202908516,
-0.006926852744072676,
-0.0004630203766282648,
-0.020621581003069878,
0.00906622875481844,
0.022492967545986176,
0.009565870277583599,
-0.04091612622141838,
0.0800880417227745,
-0.005155395250767469,
-0.00985657051205635,
0.004732971079647541,
-0.05526947230100632,
-0.03281284123659134,
-0.03428451344370842,
-0.060720108449459076,
-0.002352858893573284,
0.019422441720962524,
-0.008448489010334015,
0.02614489570260048,
-0.02192973531782627,
-0.001589769497513771,
0.0160430446267128,
0.057013675570487976,
0.014689469709992409,
-0.011228314600884914,
0.014753061346709728,
0.036918990314006805,
0.08219562470912933,
-0.025327298790216446,
0.07863453775644302,
0.024437028914690018,
0.020385386422276497,
-0.040625423192977905,
-0.025926869362592697,
-0.018550338223576546,
0.022274941205978394,
0.028452331200242043,
-0.00887545570731163,
-0.021003125235438347,
0.02599954418838024,
0.03884488344192505,
0.0024482449516654015,
-0.023837458342313766,
0.023110706359148026,
0.015061930753290653,
0.0007755804108455777,
0.03428451344370842,
-0.018523085862398148,
0.006854177452623844,
0.01418074406683445,
0.053706955164670944,
0.02725319191813469,
-0.032231442630290985,
0.059157595038414,
0.00515085319057107,
-0.04164287447929382,
0.016715290024876595,
0.08909976482391357,
-0.01737845130264759,
0.06548033654689789,
0.0006438566488213837,
0.02899739518761635,
0.03670096397399902,
0.03343058004975319,
0.05076361075043678,
0.01973131112754345,
0.0016306493198499084,
0.05250781401991844,
-0.04349609464406967,
-0.05879421904683113,
0.028216136619448662,
-0.03379395604133606,
0.10436155647039413,
0.024836741387844086,
-0.039644308388233185,
0.029288096353411674,
-0.019204415380954742,
0.0080124381929636,
0.022965356707572937,
0.05439737066626549,
0.027798255905508995,
-0.008462116122245789,
0.0899718701839447,
-0.03833615407347679,
-0.01862301491200924,
-0.003951712511479855,
-0.06217361241579056,
0.0240373145788908,
-0.04131583869457245,
-0.020022010430693626,
0.008353102952241898,
0.00887545570731163,
-0.014998340047895908,
0.019386103376746178,
0.002818434266373515,
0.04454988241195679,
-0.03139567747712135,
-0.10378015041351318,
0.012491046451032162,
-0.020548906177282333,
-0.009257000871002674,
-0.020058348774909973,
0.06838734447956085,
0.05029122158885002,
-0.03621040657162666,
-0.018341397866606712,
0.012600058689713478,
-0.007921594195067883,
-0.04331440478563309,
0.04400482028722763,
-0.03170454502105713,
-0.056541286408901215,
-0.009429603815078735,
0.05686832591891289,
-0.02209325321018696,
0.009820233099162579,
-0.05094530060887337,
0.0037745670415461063,
-0.01651543378829956,
-0.019894829019904137,
-0.04127950221300125,
-0.041243162006139755,
-0.06736988574266434,
-0.04178822785615921,
-0.03528379648923874,
0.005686832591891289,
0.04454988241195679,
-0.008471200242638588,
0.04266032949090004,
0.01814154163002968,
0.02107580192387104,
0.011082964017987251,
0.0031159482896327972,
0.00589123135432601,
-0.023637602105736732,
-0.08299504965543747,
-0.018913714215159416,
0.02587236277759075,
0.04524029791355133,
-0.08357645571231842,
-0.041134148836135864,
0.013181460089981556,
-0.028506837785243988,
0.0028456873260438442,
-0.040625423192977905,
0.0107922637835145,
0.018659351393580437,
0.022511135786771774,
0.05941195785999298,
0.018550338223576546,
0.038881219923496246,
0.024927586317062378,
0.0036042346619069576,
-0.0017646441701799631,
0.022402122616767883,
0.003420275403186679,
0.045567337423563004,
0.052071765065193176,
-0.008094198070466518,
-0.03859052062034607,
-0.0020144651643931866,
0.02972414717078209,
-0.054942432790994644,
0.016806134954094887,
0.008607466705143452,
-0.02147551439702511,
-0.006572561338543892,
-0.054797083139419556,
0.041388511657714844,
-0.008194126188755035,
0.0203490499407053,
0.030886949971318245,
-0.010828601196408272,
0.034448035061359406,
0.039898671209812164,
0.014135321602225304,
0.07449205964803696,
0.03143201395869255,
-0.02292901836335659,
0.00789434090256691,
0.007458290085196495,
-0.09098932147026062,
-0.013826452195644379,
-0.011973235756158829,
0.01823238469660282,
-0.044077493250370026,
0.022002410143613815,
0.009057143703103065,
0.021184813231229782,
0.022165928035974503,
-0.027798255905508995,
0.004478607792407274,
-0.05835816636681557,
-0.06697017699480057,
0.021112138405442238,
-0.009375098161399364,
0.030251042917370796,
0.0616285502910614,
0.017432957887649536,
-0.026235738769173622,
0.04633042588829994,
0.0492737703025341,
-0.0020087873563170433,
-0.031377509236335754,
-0.04356876760721207,
0.00036252420977689326,
-0.01738753542304039,
-0.023365069180727005,
0.01651543378829956,
-0.0001745907502481714,
0.020058348774909973,
-0.02231127955019474,
0.03301269933581352,
-0.00625460734590888,
-0.02440069057047367,
-0.018677519634366035,
-0.00931150745600462,
-0.001142362947575748,
0.022256772965192795,
0.03188623487949371,
0.03671913221478462,
0.018305059522390366,
-0.03244946524500847,
-0.016197480261325836,
0.019549623131752014,
0.02503659762442112,
0.013081531971693039,
-0.009584038518369198,
-0.010801347903907299,
0.005309829954057932,
0.029378939419984818,
0.05312555283308029,
-0.0875009149312973,
0.02033087983727455,
-0.02997850999236107,
0.05167204886674881,
0.01263639610260725,
-0.021784383803606033,
-0.02082143723964691,
-0.017069581896066666,
0.0013853705022484064,
0.03230411559343338,
-0.0010112070012837648,
0.017896262928843498,
0.03602872043848038,
0.023728445172309875,
0.030650755390524864,
-0.004517216235399246,
-0.018477663397789,
0.01250921469181776,
-0.05744972825050354,
0.038299817591905594,
-0.05574186146259308,
-0.0017078666714951396,
0.04578536003828049,
-0.021057631820440292,
-0.032867349684238434,
-0.006481717340648174,
-0.030650755390524864,
-0.06424485892057419,
0.00588668929412961,
-0.06155587360262871,
0.021003125235438347,
0.015361715108156204,
-0.04792927950620651,
-0.04269666597247124,
-0.02254747413098812,
-0.04694816470146179,
-0.0031409303192049265,
0.015752345323562622,
0.027580229565501213,
-0.014852989464998245,
0.06551667302846909,
0.030414560809731483,
-0.09542250633239746,
-0.010310790501534939,
0.029524290934205055,
-0.013054278679192066,
-0.07703568786382675,
-0.012908928096294403,
0.017805417999625206,
0.004112960770726204,
0.07732638716697693,
-0.03537464141845703,
-0.022256772965192795,
-0.017968937754631042,
-0.04044373705983162,
-0.055196795612573624,
-0.07252983003854752,
0.015134605579078197,
-0.04375045746564865,
-0.022129591554403305,
-0.023637602105736732,
-0.02908824011683464,
0.059848006814718246,
0.07165772467851639,
-0.02047623135149479,
-0.03599238023161888,
0.052725840359926224,
0.02122115157544613,
-0.020185530185699463,
0.020185530185699463,
-0.011573522351682186,
-0.006122883874922991,
0.00850299559533596,
0.03859052062034607,
0.0024323472753167152,
0.053815968334674835,
0.08001536875963211,
0.015025592409074306,
-0.022038746625185013,
0.006086545996367931,
-0.026599114760756493,
-0.05883055552840233,
-0.002172306412830949,
-0.02503659762442112,
0.019931167364120483,
-0.04905574396252632,
-0.05399765819311142,
0.0542520210146904,
-0.0039153750985860825,
-0.0004985062987543643,
-0.05130867660045624,
-0.022601980715990067,
0.06319106370210648,
-0.02710784040391445,
-0.04545832425355911,
-0.073910653591156,
-0.010283537209033966,
0.00040198458009399474,
-0.038299817591905594,
-0.0020031095482409,
-0.04476790875196457,
0.007976100780069828,
-0.012491046451032162,
0.029778653755784035,
0.0283796563744545,
0.006122883874922991,
-0.0029024649411439896,
-0.0031068637035787106,
-0.014108068309724331,
-0.009007180109620094,
-0.019149908795952797,
0.04894673079252243,
-0.018913714215159416,
0.012436539866030216,
0.038517843931913376,
0.029142746701836586,
0.009020806290209293,
-0.010110934264957905,
0.020567074418067932,
-0.019803985953330994,
0.01810520328581333,
0.0046784644946455956,
-0.0009992836276069283,
0.03808179125189781,
0.009411435574293137,
0.06460823118686676,
-0.052689503878355026,
-0.014089900068938732,
-0.006018413230776787,
-0.05897590517997742,
0.0004491098807193339,
0.002459600567817688,
-0.02071242593228817,
-0.03782742843031883,
0.039389945566654205,
-0.0013036109739914536,
0.0172512698918581,
-0.020185530185699463,
-0.05163571238517761,
0.02147551439702511,
-0.04356876760721207,
-0.020894113928079605,
0.05930294468998909,
0.04760223999619484,
0.020149191841483116,
-0.02096678875386715,
0.016551772132515907,
-0.006935937330126762,
0.04207892715930939,
-0.010692335665225983,
0.02578151971101761,
-0.013390401378273964,
-0.02047623135149479,
-0.014207997359335423,
0.017314860597252846,
-0.057776764035224915,
-0.07311122864484787,
0.019386103376746178,
0.012045910581946373,
-0.02576334960758686,
-0.024000976234674454,
0.07594555616378784,
-0.005800387356430292,
-0.0024391605984419584,
-0.04553099721670151,
0.04909208044409752,
0.006572561338543892,
0.009134361520409584,
-0.03720968961715698,
-0.0052825771272182465,
-0.10385283082723618,
-0.027434879913926125,
-0.0283796563744545,
-0.0038881220389157534,
-0.000588782480917871,
-0.013517582789063454,
0.06177389994263649,
0.033721283078193665,
0.027035165578126907
]
|
30,148 | networkx.readwrite.graphml | GraphMLReader | Read a GraphML document. Produces NetworkX graph objects. | class GraphMLReader(GraphML):
"""Read a GraphML document. Produces NetworkX graph objects."""
def __init__(self, node_type=str, edge_key_type=int, force_multigraph=False):
self.construct_types()
self.node_type = node_type
self.edge_key_type = edge_key_type
self.multigraph = force_multigraph # If False, test for multiedges
self.edge_ids = {} # dict mapping (u,v) tuples to edge id attributes
def __call__(self, path=None, string=None):
from xml.etree.ElementTree import ElementTree, fromstring
if path is not None:
self.xml = ElementTree(file=path)
elif string is not None:
self.xml = fromstring(string)
else:
raise ValueError("Must specify either 'path' or 'string' as kwarg")
(keys, defaults) = self.find_graphml_keys(self.xml)
for g in self.xml.findall(f"{{{self.NS_GRAPHML}}}graph"):
yield self.make_graph(g, keys, defaults)
def make_graph(self, graph_xml, graphml_keys, defaults, G=None):
# set default graph type
edgedefault = graph_xml.get("edgedefault", None)
if G is None:
if edgedefault == "directed":
G = nx.MultiDiGraph()
else:
G = nx.MultiGraph()
# set defaults for graph attributes
G.graph["node_default"] = {}
G.graph["edge_default"] = {}
for key_id, value in defaults.items():
key_for = graphml_keys[key_id]["for"]
name = graphml_keys[key_id]["name"]
python_type = graphml_keys[key_id]["type"]
if key_for == "node":
G.graph["node_default"].update({name: python_type(value)})
if key_for == "edge":
G.graph["edge_default"].update({name: python_type(value)})
# hyperedges are not supported
hyperedge = graph_xml.find(f"{{{self.NS_GRAPHML}}}hyperedge")
if hyperedge is not None:
raise nx.NetworkXError("GraphML reader doesn't support hyperedges")
# add nodes
for node_xml in graph_xml.findall(f"{{{self.NS_GRAPHML}}}node"):
self.add_node(G, node_xml, graphml_keys, defaults)
# add edges
for edge_xml in graph_xml.findall(f"{{{self.NS_GRAPHML}}}edge"):
self.add_edge(G, edge_xml, graphml_keys)
# add graph data
data = self.decode_data_elements(graphml_keys, graph_xml)
G.graph.update(data)
# switch to Graph or DiGraph if no parallel edges were found
if self.multigraph:
return G
G = nx.DiGraph(G) if G.is_directed() else nx.Graph(G)
# add explicit edge "id" from file as attribute in NX graph.
nx.set_edge_attributes(G, values=self.edge_ids, name="id")
return G
def add_node(self, G, node_xml, graphml_keys, defaults):
"""Add a node to the graph."""
# warn on finding unsupported ports tag
ports = node_xml.find(f"{{{self.NS_GRAPHML}}}port")
if ports is not None:
warnings.warn("GraphML port tag not supported.")
# find the node by id and cast it to the appropriate type
node_id = self.node_type(node_xml.get("id"))
# get data/attributes for node
data = self.decode_data_elements(graphml_keys, node_xml)
G.add_node(node_id, **data)
# get child nodes
if node_xml.attrib.get("yfiles.foldertype") == "group":
graph_xml = node_xml.find(f"{{{self.NS_GRAPHML}}}graph")
self.make_graph(graph_xml, graphml_keys, defaults, G)
def add_edge(self, G, edge_element, graphml_keys):
"""Add an edge to the graph."""
# warn on finding unsupported ports tag
ports = edge_element.find(f"{{{self.NS_GRAPHML}}}port")
if ports is not None:
warnings.warn("GraphML port tag not supported.")
# raise error if we find mixed directed and undirected edges
directed = edge_element.get("directed")
if G.is_directed() and directed == "false":
msg = "directed=false edge found in directed graph."
raise nx.NetworkXError(msg)
if (not G.is_directed()) and directed == "true":
msg = "directed=true edge found in undirected graph."
raise nx.NetworkXError(msg)
source = self.node_type(edge_element.get("source"))
target = self.node_type(edge_element.get("target"))
data = self.decode_data_elements(graphml_keys, edge_element)
# GraphML stores edge ids as an attribute
# NetworkX uses them as keys in multigraphs too if no key
# attribute is specified
edge_id = edge_element.get("id")
if edge_id:
# self.edge_ids is used by `make_graph` method for non-multigraphs
self.edge_ids[source, target] = edge_id
try:
edge_id = self.edge_key_type(edge_id)
except ValueError: # Could not convert.
pass
else:
edge_id = data.get("key")
if G.has_edge(source, target):
# mark this as a multigraph
self.multigraph = True
# Use add_edges_from to avoid error with add_edge when `'key' in data`
# Note there is only one edge here...
G.add_edges_from([(source, target, edge_id, data)])
def decode_data_elements(self, graphml_keys, obj_xml):
"""Use the key information to decode the data XML if present."""
data = {}
for data_element in obj_xml.findall(f"{{{self.NS_GRAPHML}}}data"):
key = data_element.get("key")
try:
data_name = graphml_keys[key]["name"]
data_type = graphml_keys[key]["type"]
except KeyError as err:
raise nx.NetworkXError(f"Bad GraphML data: no key {key}") from err
text = data_element.text
# assume anything with subelements is a yfiles extension
if text is not None and len(list(data_element)) == 0:
if data_type == bool:
# Ignore cases.
# http://docs.oracle.com/javase/6/docs/api/java/lang/
# Boolean.html#parseBoolean%28java.lang.String%29
data[data_name] = self.convert_bool[text.lower()]
else:
data[data_name] = data_type(text)
elif len(list(data_element)) > 0:
# Assume yfiles as subelements, try to extract node_label
node_label = None
# set GenericNode's configuration as shape type
gn = data_element.find(f"{{{self.NS_Y}}}GenericNode")
if gn is not None:
data["shape_type"] = gn.get("configuration")
for node_type in ["GenericNode", "ShapeNode", "SVGNode", "ImageNode"]:
pref = f"{{{self.NS_Y}}}{node_type}/{{{self.NS_Y}}}"
geometry = data_element.find(f"{pref}Geometry")
if geometry is not None:
data["x"] = geometry.get("x")
data["y"] = geometry.get("y")
if node_label is None:
node_label = data_element.find(f"{pref}NodeLabel")
shape = data_element.find(f"{pref}Shape")
if shape is not None:
data["shape_type"] = shape.get("type")
if node_label is not None:
data["label"] = node_label.text
# check all the different types of edges available in yEd.
for edge_type in [
"PolyLineEdge",
"SplineEdge",
"QuadCurveEdge",
"BezierEdge",
"ArcEdge",
]:
pref = f"{{{self.NS_Y}}}{edge_type}/{{{self.NS_Y}}}"
edge_label = data_element.find(f"{pref}EdgeLabel")
if edge_label is not None:
break
if edge_label is not None:
data["label"] = edge_label.text
| (node_type=<class 'str'>, edge_key_type=<class 'int'>, force_multigraph=False) | [
0.03593616560101509,
-0.004610020201653242,
-0.047242648899555206,
0.05209134891629219,
0.003228891408070922,
0.019952617585659027,
-0.06148838996887207,
0.047886282205581665,
0.05732623115181923,
-0.03876814991235733,
0.017860811203718185,
-0.00845304410904646,
-0.0017136724200099707,
0.069426529109478,
-0.02477986365556717,
0.017313722521066666,
-0.029628563672304153,
0.052048441022634506,
0.029542746022343636,
0.025380587205290794,
-0.06607963889837265,
-0.061874568462371826,
-0.006312965415418148,
-0.020381705835461617,
0.048873186111450195,
-0.02630312740802765,
0.023320963606238365,
0.003657979890704155,
-0.011059757322072983,
0.01332319900393486,
-0.1004067212343216,
-0.09431366622447968,
-0.042865946888923645,
-0.010684304870665073,
0.022570056840777397,
0.018740441650152206,
-0.029242385178804398,
0.04883027821779251,
-0.07783666253089905,
-0.02598131075501442,
0.01614445634186268,
-0.018815532326698303,
0.04462520778179169,
-0.012679566629230976,
-0.00803468283265829,
0.029199475422501564,
-0.0408492311835289,
0.04168595373630524,
-0.03421981260180473,
-0.05646805465221405,
0.020038435235619545,
-0.060758937150239944,
-0.01533991564065218,
0.11757026612758636,
-0.019716618582606316,
0.02239842154085636,
-0.05642514303326607,
0.08521698415279388,
0.03692306950688362,
0.014074104838073254,
0.018579533323645592,
-0.0017874219920486212,
-0.0036338437348604202,
0.01359137985855341,
-0.040441595017910004,
0.010823758319020271,
-0.05350734293460846,
-0.057283319532871246,
-0.062303658574819565,
0.02184060774743557,
-0.018182627856731415,
0.00455906568095088,
0.05960039794445038,
0.007718230132013559,
0.0428444929420948,
0.0038752059917896986,
-0.03638670966029167,
-0.0031725734006613493,
-0.014363739639520645,
0.025702403858304024,
-0.016863180324435234,
0.05372188612818718,
0.012089570052921772,
-0.030293650925159454,
0.05719750374555588,
0.008973314426839352,
0.07479013502597809,
0.07238724082708359,
-0.010625305585563183,
-0.060673121362924576,
-0.02317078225314617,
0.01501809898763895,
0.0028909840621054173,
0.04771464690566063,
0.025380587205290794,
-0.04792919009923935,
-0.034691810607910156,
-0.06822507828474045,
0.015640277415513992,
-0.013966832309961319,
-0.04792919009923935,
-0.0035077990032732487,
-0.04074195772409439,
-0.007905956357717514,
-0.04616992920637131,
-0.04170740768313408,
-0.04762882739305496,
-0.0017311041010543704,
-0.009461402893066406,
-0.03130200877785683,
-0.10607068985700607,
-0.06865416467189789,
0.0766352117061615,
0.025402043014764786,
0.02041388861835003,
-0.0009674605680629611,
-0.0323103666305542,
0.007954228669404984,
0.024479500949382782,
-0.014438829384744167,
-0.013838105835020542,
0.04822955280542374,
-0.02707548812031746,
0.04990299791097641,
-0.0023653507232666016,
-0.023986050859093666,
0.07569122314453125,
0.008989404886960983,
0.03349035978317261,
-0.06509273499250412,
0.02488713525235653,
-0.00802395585924387,
-0.0066991448402404785,
0.02250569500029087,
0.02568094991147518,
-0.036086346954107285,
-0.05518078804016113,
-0.0024377594236284494,
-0.021926425397396088,
0.03288963809609413,
0.038725242018699646,
-0.02771911956369877,
0.042865946888923645,
-0.0012597771128639579,
-0.08856387436389923,
-0.012057388201355934,
-0.031151829287409782,
-0.04501139000058174,
-0.06504982709884644,
-0.052048441022634506,
-0.01726008765399456,
-0.05724041163921356,
-0.04917354881763458,
-0.0066723269410431385,
0.028362752869725227,
0.000885665591340512,
-0.07779375463724136,
0.054751697927713394,
-0.03207436949014664,
0.03201000764966011,
-0.04968845471739769,
-0.04348812624812126,
0.018643897026777267,
-0.008624679408967495,
-0.0020448751747608185,
-0.0034917080774903297,
0.010351761244237423,
-0.04621283710002899,
0.0010666872840374708,
0.04016268998384476,
0.007037052419036627,
-0.03486344590783119,
-0.0939703956246376,
-0.013044292107224464,
0.005535242147743702,
0.032589275389909744,
0.0552666038274765,
0.01737808622419834,
0.03048674203455448,
0.07152906060218811,
-0.017882265150547028,
-0.018536625429987907,
-0.0252304058521986,
0.00046127018867991865,
0.020596250891685486,
0.02904929406940937,
0.023084964603185654,
-0.004918427672237158,
0.041879042983055115,
-0.017882265150547028,
0.004454475361853838,
-0.027890754863619804,
0.015039553865790367,
0.07479013502597809,
0.049302276223897934,
-0.037824153900146484,
0.0293711107224226,
0.02696821466088295,
-0.0007173824124038219,
0.07054215669631958,
0.033897995948791504,
0.002815893618389964,
0.08577480167150497,
-0.0013341972371563315,
-0.04608410969376564,
0.0044839754700660706,
-0.006055511999875307,
-0.0005749115953221917,
-0.0428444929420948,
-0.008372589945793152,
-0.01457828376442194,
-0.011070484295487404,
0.03724488615989685,
0.02030661515891552,
0.004304294474422932,
-0.024415139108896255,
-0.08727660775184631,
0.04160013422369957,
-0.03355472534894943,
-0.04338085278868675,
-0.0005299914046190679,
0.022634420543909073,
-0.029027840122580528,
-0.05895676836371422,
0.04402448609471321,
-0.07054215669631958,
0.05560987442731857,
-0.0018759215017780662,
0.03821033611893654,
0.0012953110272064805,
0.06024403125047684,
-0.0027917574625462294,
0.05252043902873993,
0.030722741037607193,
0.05033208802342415,
-0.027247123420238495,
0.0216260626912117,
0.03975505381822586,
-0.01626245677471161,
0.02718275971710682,
-0.02720421366393566,
-0.04346666857600212,
-0.053335707634687424,
-0.04305903613567352,
0.0027756665367633104,
0.017721356824040413,
0.07745048403739929,
0.033039819449186325,
-0.04488266259431839,
-0.025380587205290794,
0.004803109914064407,
-0.017774993553757668,
0.0076753213070333,
0.020274434238672256,
-0.0019067622488364577,
-0.052262984216213226,
-0.05612478405237198,
-0.0667661800980568,
0.05316407233476639,
-0.04235104098916054,
0.028019482269883156,
0.03449871763586998,
-0.030207833275198936,
0.0985187292098999,
0.0299074724316597,
-0.0025597813073545694,
0.01812899112701416,
-0.00595360342413187,
-0.05243461951613426,
-0.0391114205121994,
0.15129661560058594,
0.020692795515060425,
-0.0009111427352763712,
0.01737808622419834,
0.006806416902691126,
0.0037277068477123976,
-0.02357841655611992,
-0.009075222536921501,
0.007793320808559656,
0.01288338378071785,
-0.02851293422281742,
-0.012089570052921772,
-0.015876276418566704,
0.023320963606238365,
0.00012151921691838652,
-0.028319844976067543,
-0.03482053428888321,
-0.027268577367067337,
-0.029864562675356865,
-0.02720421366393566,
0.0038564333226531744,
-0.02859875187277794,
-0.019030077382922173,
0.02619585581123829,
0.009751037694513798,
-0.023750051856040955,
-0.003572162240743637,
-0.01769990287721157,
0.010973939672112465,
0.04271576553583145,
0.042415402829647064,
0.009305858053267002,
0.10890267044305801,
-0.038725242018699646,
-0.04026995971798897,
-0.012100297026336193,
0.04737137630581856,
-0.013291018083691597,
-0.005291198380291462,
0.02019934356212616,
-0.014084831811487675,
0.022226786240935326,
-0.018761897459626198,
0.004280158318579197,
-0.05861349403858185,
-0.0023733959533274174,
0.02129351906478405,
0.0030465286690741777,
0.09208240360021591,
0.026517672464251518,
-0.04990299791097641,
0.0058248769491910934,
-0.011660481803119183,
-0.029993290081620216,
0.013398289680480957,
0.027654757723212242,
0.06805344671010971,
0.04750010371208191,
0.02982165478169918,
-0.01780717447400093,
0.009311221539974213,
-0.01887989602982998,
-0.029757291078567505,
0.04380993917584419,
-0.02422204799950123,
0.025402043014764786,
0.010829122737050056,
-0.020724976435303688,
0.06732399016618729,
-0.017335178330540657,
-0.011681935749948025,
0.02621730975806713,
-0.04029141366481781,
-0.006007239688187838,
0.027869300916790962,
-0.01109193917363882,
0.01429937593638897,
-0.03398381173610687,
-0.005242925602942705,
0.07551958411931992,
-0.017614085227251053,
0.059128403663635254,
-0.008941132575273514,
0.0075626857578754425,
0.004424975719302893,
-0.043724123388528824,
-0.013945377431809902,
-0.028019482269883156,
0.00006834408122813329,
0.025723857805132866,
-0.027547484263777733,
0.009504311718046665,
-0.009026950225234032,
0.03690161556005478,
-0.019491346552968025,
-0.02960710972547531,
0.0016359001165255904,
0.0526062548160553,
0.05951458215713501,
-0.04237249493598938,
0.0034434355329722166,
-0.059900760650634766,
-0.04398157820105553,
-0.01606936566531658,
0.003365663345903158,
0.030207833275198936,
-0.007337414193898439,
0.015028826892375946,
0.03145219013094902,
-0.005798059049993753,
0.012164660729467869,
0.03273945674300194,
-0.027976572513580322,
0.04303758218884468,
0.0166164543479681,
-0.05243461951613426,
0.061874568462371826,
0.00524560734629631,
0.006184238940477371,
-0.02926383912563324,
0.03908996656537056,
0.015511550940573215,
0.03756670281291008,
0.021443700417876244,
-0.027826393023133278,
-0.03964778035879135,
0.029757291078567505,
0.02019934356212616,
-0.006747417617589235,
-0.02675367146730423,
-0.030508195981383324,
-0.013763015158474445,
-0.002390827750787139,
0.07702139765024185,
0.028427116572856903,
0.00971885584294796,
0.0453975684940815,
0.01562955044209957,
0.014546101912856102,
0.05380770564079285,
0.042222313582897186,
-0.002122647361829877,
-0.02477986365556717,
0.012475749477744102,
-0.005138335283845663,
0.04224376752972603,
0.03213873133063316,
0.017013361677527428,
0.06393419206142426,
0.019266076385974884,
-0.004816519096493721,
0.04260849207639694,
0.04835828021168709,
0.014760646037757397,
-0.016187366098165512,
0.012239750474691391,
-0.044925570487976074,
0.011070484295487404,
-0.09448529779911041,
0.07131451368331909,
0.0066723269410431385,
-0.04848700761795044,
0.0025222362019121647,
-0.048658642917871475,
0.0013181064277887344,
-0.028555842116475105,
-0.025530768558382988,
-0.040999412536621094,
0.008973314426839352,
-0.018933532759547234,
-0.011735571548342705,
0.005084699485450983,
0.029456928372383118,
-0.02771911956369877,
-0.036300890147686005,
-0.03454162925481796,
-0.05088990181684494,
0.05938585475087166,
-0.03383363038301468,
-0.007777229882776737,
-0.04009832441806793,
0.027783483266830444,
0.06041566655039787,
-0.016455546021461487,
-0.07702139765024185,
-0.014320829883217812,
0.05024626851081848,
-0.017002634704113007,
0.004634156357496977,
-0.00518660806119442,
0.02073570340871811,
-0.03166673332452774,
-0.04026995971798897,
0.008903587237000465,
-0.013355380855500698,
0.014159922488033772,
0.028577297925949097,
-0.0014454920310527086,
-0.048873186111450195,
-0.009901218116283417,
0.019952617585659027,
-0.037738338112831116,
-0.010469760745763779,
-0.059772033244371414,
0.01660572737455368,
0.012025206349790096,
-0.005964330863207579,
0.015264824964106083,
-0.01457828376442194,
-0.06234656646847725,
0.027590394020080566,
-0.04728555679321289,
0.035013627260923386,
-0.0032530275639146566,
0.019351894035935402,
0.007031688466668129,
0.05887094885110855,
-0.05938585475087166,
-0.04342376068234444,
-0.004856746178120375,
-0.04256558418273926,
-0.013065746054053307,
-0.0079756835475564,
0.0009258926147595048,
0.02239842154085636,
0.016959724947810173,
0.010571668855845928,
-0.011971570551395416,
0.015125371515750885,
-0.0814410075545311,
-0.009488220326602459,
-0.03570016846060753,
-0.018000265583395958,
-0.026281673461198807,
0.04466811940073967,
0.054751697927713394,
-0.03906851261854172,
0.05397934094071388,
0.026732217520475388,
-0.002772984793409705,
-0.012014479376375675,
-0.030851466581225395,
0.059772033244371414,
0.013773742131888866,
0.030744194984436035,
-0.002325123641639948,
0.04389575868844986,
0.06101639196276665,
-0.006736690178513527,
-0.009482856839895248,
0.02445804700255394,
-0.00632905587553978,
0.03078710287809372,
-0.001804853673093021,
-0.011628299951553345,
0.06796762347221375,
-0.042093586176633835,
-0.018729714676737785,
0.03252491354942322,
0.008624679408967495,
0.03492780774831772,
0.007192596793174744,
0.010823758319020271,
0.026346037164330482,
0.02293478325009346,
-0.014996645040810108,
0.08461625874042511,
0.024050412699580193,
-0.04368121549487114,
-0.029435474425554276,
0.011649753898382187,
-0.0033442089334130287,
-0.03366199508309364,
0.02032807096838951,
0.018096810206770897,
0.0007938138442113996,
0.05535242334008217,
0.004545656964182854,
0.06470655649900436,
-0.03361908718943596,
-0.02675367146730423,
0.04207213222980499,
0.0075787766836583614,
0.005733695812523365,
0.04556920379400253,
-0.06668036431074142,
0.020134979858994484,
-0.020574795082211494,
0.010008490644395351,
-0.01424574013799429,
-0.027976572513580322,
0.02207660675048828,
-0.027139849960803986,
-0.03863942250609398,
0.069426529109478,
0.008705133572220802,
-0.020606977865099907,
-0.029950380325317383,
-0.04368121549487114,
0.009209313429892063,
-0.011403027921915054,
0.010212307795882225,
0.02128279209136963,
-0.04303758218884468,
-0.005578150972723961,
0.0028561207000166178,
-0.02750457637012005,
0.014524647034704685,
0.011681935749948025,
-0.0638054683804512,
-0.007932774722576141,
0.028899114578962326,
0.07238724082708359,
0.0028427117504179478,
0.04719974100589752,
-0.015372097492218018,
-0.0014401284279301763,
0.07586285471916199,
0.015093189664185047,
-0.007374959532171488,
-0.024522410705685616,
-0.027332941070199013,
0.00797032006084919,
-0.014320829883217812,
-0.011392300948500633,
0.022870419546961784,
0.031602371484041214,
-0.01647699996829033,
-0.0023063509725034237,
-0.048744458705186844,
-0.04072050377726555,
0.023320963606238365,
0.0008937109960243106,
0.025745313614606857,
-0.01141375582665205,
-0.006189602427184582,
0.004687792621552944,
-0.014460284262895584,
-0.005980421788990498,
-0.01759263128042221,
0.01845080778002739,
0.016294637694954872,
-0.022419877350330353,
-0.05518078804016113,
-0.025938402861356735,
-0.031602371484041214,
-0.029242385178804398,
0.05942876264452934,
-0.010072853416204453,
-0.025916948914527893,
0.028534388169646263,
-0.03211727738380432,
-0.023213690146803856,
-0.00628078356385231,
-0.03143073618412018,
0.0343056283891201,
0.00045288956607691944,
-0.0076753213070333,
-0.02992892637848854,
0.007283777929842472,
0.008276045322418213,
-0.05719750374555588,
0.040033962577581406,
-0.02304205484688282,
0.01683099754154682,
-0.029178021475672722,
0.04629865288734436,
0.023192236199975014,
-0.020918067544698715,
0.0011947434395551682,
-0.03273945674300194,
0.009321948513388634,
-0.027375848963856697,
-0.011703390628099442,
-0.057583682239055634,
0.03246054798364639,
0.04462520778179169,
-0.02370714209973812,
0.037609610706567764,
-0.004119249992072582,
0.0015500823501497507,
0.012797566130757332,
0.016777362674474716,
-0.012089570052921772,
0.047543011605739594,
0.060329850763082504,
-0.027697665616869926,
-0.011928661726415157,
-0.004618065431714058,
-0.025745313614606857,
0.0037545247469097376,
-0.01846153475344181,
0.05724041163921356,
0.005087381228804588,
-0.013173018582165241,
-0.008925042115151882,
0.02501586265861988,
-0.010137217119336128,
0.05213426053524017,
-0.00009972956468118355,
-0.03694452345371246,
-0.024500956758856773,
0.042651403695344925,
-0.03179546073079109,
-0.023514052852988243,
-0.05638223513960838,
0.00829750020056963,
-0.02370714209973812,
0.03132346272468567,
0.0019000577740371227,
-0.010888122022151947,
0.1011790782213211,
-0.01964152790606022,
-0.03679434210062027,
-0.01865462400019169,
0.009708128869533539,
-0.003851069835945964,
-0.04861573129892349,
0.01679881662130356,
-0.04453939199447632,
-0.03166673332452774,
0.020038435235619545,
0.05535242334008217,
-0.03842487931251526,
-0.024629682302474976,
-0.08392971754074097,
-0.009552584029734135,
0.0025396677665412426,
-0.028577297925949097,
-0.05822731554508209,
-0.015232643112540245,
-0.034777626395225525,
-0.03213873133063316,
-0.0028346662875264883,
0.02578822150826454,
0.017227904871106148,
-0.0961158350110054,
0.04934518411755562,
-0.023750051856040955,
-0.003609707346186042,
-0.03143073618412018,
-0.0040951138362288475,
-0.002309032715857029,
-0.009359493851661682,
0.020134979858994484,
0.01048585120588541,
-0.013248109258711338,
0.036751434206962585,
-0.05548115074634552,
0.005291198380291462,
0.010995394550263882,
0.060329850763082504,
0.010877395048737526,
0.056296419352293015,
-0.007090688217431307,
0.00660796370357275,
-0.0039207967929542065,
-0.07951010763645172,
0.014975190162658691,
-0.004781655501574278,
0.0180217195302248,
0.06028694286942482,
0.004282840061932802,
0.06020112335681915,
-0.05440842732787132,
-0.05779822915792465,
0.001938943867571652,
0.021593881770968437,
-0.009380948729813099,
0.02838420681655407,
-0.018643897026777267,
-0.04462520778179169,
-0.10246634483337402,
0.0090108597651124,
-0.005368970334529877,
-0.004202385898679495,
0.043938666582107544,
0.04293030872941017,
-0.012089570052921772,
0.017624812200665474,
0.05243461951613426,
-0.019502075389027596,
-0.03299690783023834,
0.04968845471739769,
0.011456664651632309,
0.013484107330441475,
0.025638040155172348,
-0.0010251193307340145,
-0.005653241649270058,
-0.06908325850963593,
-0.004044159781187773,
-0.0110812122002244,
0.00911276787519455,
-0.025745313614606857,
0.009734946303069592,
0.04247976467013359,
0.012593748979270458,
0.07131451368331909
]
|
30,149 | networkx.readwrite.graphml | __call__ | null | def __call__(self, path=None, string=None):
from xml.etree.ElementTree import ElementTree, fromstring
if path is not None:
self.xml = ElementTree(file=path)
elif string is not None:
self.xml = fromstring(string)
else:
raise ValueError("Must specify either 'path' or 'string' as kwarg")
(keys, defaults) = self.find_graphml_keys(self.xml)
for g in self.xml.findall(f"{{{self.NS_GRAPHML}}}graph"):
yield self.make_graph(g, keys, defaults)
| (self, path=None, string=None) | [
0.024704577401280403,
-0.026668855920433998,
-0.026253335177898407,
0.0013457195600494742,
-0.03235393017530441,
0.004202422685921192,
-0.05609525740146637,
0.0675409585237503,
0.08816587924957275,
0.0020421885419636965,
0.0392477922141552,
0.04400739073753357,
-0.0382467657327652,
0.07615356147289276,
-0.03817121684551239,
0.03190063685178757,
-0.021021556109189987,
0.028255388140678406,
-0.023004721850156784,
0.018868405371904373,
-0.04359187185764313,
0.02347690425813198,
0.0052837198600173,
0.03988996148109436,
0.04272305592894554,
0.048087045550346375,
0.005316772498190403,
0.0032297270372509956,
-0.019000615924596786,
-0.04109874740242958,
-0.010303017683327198,
-0.04865366593003273,
-0.055944159626960754,
-0.006841921713203192,
-0.011455142870545387,
0.04302525147795677,
-0.06629439443349838,
0.048615891486406326,
-0.06965633481740952,
-0.029445288702845573,
0.0724894255399704,
0.03333606943488121,
0.031258467584848404,
0.019718332216143608,
-0.02296694740653038,
-0.0008989170310087502,
-0.022532539442181587,
0.022098131477832794,
-0.033600494265556335,
-0.025630054995417595,
0.03958776593208313,
0.016951344907283783,
-0.05277109518647194,
0.0024199343752115965,
-0.024515705183148384,
0.06587887555360794,
-0.002622972708195448,
0.06863641738891602,
0.08287743479013443,
0.03433709591627121,
0.02396797388792038,
0.0046226647682487965,
0.03794457018375397,
0.02005830407142639,
-0.04102319851517677,
-0.002265294548124075,
-0.005718127824366093,
-0.05065571889281273,
-0.024931225925683975,
0.03996551036834717,
-0.016148634254932404,
0.02657441981136799,
0.03492260351777077,
-0.006398070137947798,
0.02194703370332718,
0.011521248146891594,
-0.023420242592692375,
0.04453623294830322,
0.029785258695483208,
0.028482036665081978,
-0.018415110185742378,
0.04616054147481918,
-0.047898173332214355,
-0.0714695155620575,
0.0003213790769223124,
0.013834941200911999,
0.019661670550704002,
-0.04223198443651199,
-0.03199507296085358,
0.039738863706588745,
-0.0221547931432724,
0.03377047926187515,
-0.02708437666296959,
0.03679244592785835,
0.013032231479883194,
-0.00946725532412529,
0.0024742353707551956,
-0.054433174431324005,
0.06791870296001434,
0.028236500918865204,
-0.039134468883275986,
0.01692301407456398,
-0.03749127313494682,
-0.034998152405023575,
-0.008385957218706608,
-0.03645247220993042,
0.023495791479945183,
-0.028935331851243973,
0.05530199036002159,
-0.005430096294730902,
-0.06489673256874084,
-0.05870170518755913,
0.05919277295470238,
0.03492260351777077,
-0.007030794396996498,
0.013731061480939388,
-0.01844344101846218,
-0.016545267775654793,
0.04291192814707756,
-0.01752740703523159,
-0.0543576255440712,
0.026819955557584763,
-0.026366660371422768,
0.10425785183906555,
0.012531718239188194,
0.02326914295554161,
0.03456374630331993,
-0.012560049071907997,
0.04249640554189682,
-0.0412876196205616,
0.06489673256874084,
-0.0067238761112093925,
0.05058017000555992,
-0.014165469445288181,
0.0019796243868768215,
-0.019869431853294373,
-0.03377047926187515,
-0.02698994055390358,
-0.02508232370018959,
0.08287743479013443,
0.01692301407456398,
-0.04464956000447273,
0.020870458334684372,
0.013617737218737602,
-0.04786039888858795,
0.03286388888955116,
0.005042906850576401,
-0.033279407769441605,
-0.020568260923027992,
0.011795113794505596,
-0.0014401560183614492,
-0.024421269074082375,
-0.0014779305784031749,
0.04140094295144081,
-0.03103182092308998,
-0.030975159257650375,
-0.0463116392493248,
0.08771258592605591,
0.03847341239452362,
0.01600698009133339,
-0.003314719768241048,
0.021323753520846367,
-0.0027221308555454016,
0.019416136667132378,
0.01882118731737137,
-0.03131512925028801,
-0.023684663698077202,
-0.01516649592667818,
-0.03603695333003998,
-0.02829316444694996,
0.023231368511915207,
-0.06818312406539917,
-0.08491726219654083,
0.005604804027825594,
0.007715458981692791,
-0.0006781718111597002,
0.014307123608887196,
0.10093368589878082,
-0.003598029026761651,
0.06678546220064163,
-0.0020811434369534254,
0.013381646014750004,
-0.04121207073330879,
-0.005005132406949997,
0.012437282130122185,
0.02810429036617279,
0.016158077865839005,
0.0005748819676227868,
0.033487167209386826,
-0.022589201107621193,
0.007191336248070002,
0.03384602814912796,
0.0654633566737175,
0.0675409585237503,
0.0523933470249176,
-0.03769903630018234,
-0.0011043163249269128,
-0.021663723513484,
-0.03917224332690239,
0.09096119552850723,
0.07464257627725601,
-0.007394374813884497,
0.05454649776220322,
-0.014420447871088982,
-0.024723464623093605,
0.01599753648042679,
0.013674399815499783,
0.026064462959766388,
-0.07573804259300232,
0.0143543416634202,
-0.02680106833577156,
-0.02355245314538479,
0.05099568888545036,
-0.003985218703746796,
-0.01222952175885439,
0.016337508335709572,
-0.022910285741090775,
0.018056251108646393,
-0.01873619295656681,
-0.04763375222682953,
0.07384931296110153,
0.018254566937685013,
0.005529254674911499,
-0.022796962410211563,
0.018783412873744965,
-0.04816259443759918,
0.03343050554394722,
-0.09050790220499039,
-0.05828618258237839,
0.0276887696236372,
0.06213919073343277,
-0.029577499255537987,
0.08801478147506714,
-0.026026688516139984,
-0.023042496293783188,
-0.04952247813344002,
0.013919934630393982,
0.010029152035713196,
-0.019907206296920776,
-0.02396797388792038,
-0.003201395971700549,
-0.041665367782115936,
-0.03533812239766121,
-0.03894559666514397,
0.026536645367741585,
0.03607472777366638,
-0.044158488512039185,
-0.02257031388580799,
0.017990145832300186,
-0.01871730573475361,
0.00045418035006150603,
0.03052186407148838,
-0.029728597030043602,
0.007351878564804792,
-0.021663723513484,
-0.01340053416788578,
-0.029539724811911583,
-0.057757340371608734,
0.05216670036315918,
0.019812770187854767,
0.03488482907414436,
0.01450544036924839,
-0.015053171664476395,
0.08023321628570557,
0.017366865649819374,
-0.030068568885326385,
-0.04389406740665436,
-0.0019028946990147233,
-0.03293943777680397,
-0.006558611989021301,
-0.026536645367741585,
0.04181646555662155,
0.026121124625205994,
0.017565181478857994,
0.017366865649819374,
-0.004289776086807251,
-0.02003941684961319,
0.015081502497196198,
-0.015421474352478981,
0.012267296202480793,
0.0027433792129158974,
-0.009608909487724304,
-0.006204475648701191,
-0.014042701572179794,
0.0029322521295398474,
-0.01274892222136259,
0.019321700558066368,
0.023741325363516808,
-0.02580004185438156,
-0.05277109518647194,
0.05669965222477913,
-0.0027362965047359467,
-0.07403818517923355,
0.01569533906877041,
0.03698131814599037,
-0.012314514257013798,
-0.01400492712855339,
-0.01490207388997078,
0.010841305367648602,
-0.010123588144779205,
0.07626688480377197,
-0.07332047075033188,
0.06735208630561829,
0.03350605443120003,
-0.0015275097684934735,
0.03633914887905121,
0.004863477777689695,
0.00020731754193548113,
-0.013731061480939388,
0.029369739815592766,
-0.042571958154439926,
0.02489345148205757,
-0.03377047926187515,
0.0027457401156425476,
-0.002488400787115097,
0.036414697766304016,
-0.006426400970667601,
-0.01952945999801159,
0.049900226294994354,
0.0135894063860178,
-0.025837816298007965,
0.021777046844363213,
-0.013211661018431187,
0.0066672139801084995,
-0.028935331851243973,
0.08310408145189285,
0.019359475001692772,
0.03547033295035362,
0.003609833773225546,
-0.014618763700127602,
0.03777458518743515,
0.0010842486517503858,
0.0035602545831352472,
0.024421269074082375,
0.023835763335227966,
0.0261777862906456,
0.0026843564119189978,
-0.04087210074067116,
0.016394170001149178,
-0.05326216295361519,
0.10048039257526398,
0.00006190015119500458,
0.005127899814397097,
0.007186614442616701,
0.000802119669970125,
0.06368795037269592,
0.004577807616442442,
-0.04464956000447273,
0.008740094490349293,
0.015383698977530003,
-0.004665161017328501,
0.048502564430236816,
-0.007569082081317902,
0.008579552173614502,
0.01148347370326519,
0.02294806018471718,
-0.004872921388596296,
0.06093040481209755,
-0.042534179985523224,
-0.006747485138475895,
0.03101293370127678,
0.019982755184173584,
-0.003853007685393095,
0.009330322034657001,
0.02557339332997799,
-0.032486140727996826,
0.007876000367105007,
0.07811783999204636,
0.006440566387027502,
-0.0020705193746834993,
0.02096489444375038,
-0.014212687499821186,
-0.06081708148121834,
-0.034091562032699585,
0.045253951102495193,
0.012021761387586594,
0.011681790463626385,
0.017291316762566566,
0.02731102518737316,
-0.011568466201424599,
-0.026725517585873604,
0.035224799066782,
0.026309998705983162,
0.005434818100184202,
0.03764237463474274,
-0.02840648777782917,
0.06278135627508163,
0.02729213796555996,
-0.020322727039456367,
-0.035602547228336334,
0.00872120726853609,
-0.04797372221946716,
0.014203243888914585,
-0.022381441667675972,
-0.031371790915727615,
-0.06493450701236725,
0.10841305553913116,
-0.0072999382391572,
-0.019170600920915604,
0.005175117868930101,
-0.02005830407142639,
-0.048389241099357605,
-0.04011660814285278,
0.054433174431324005,
0.038511186838150024,
-0.019510572776198387,
-0.020870458334684372,
0.01943502388894558,
0.017952371388673782,
0.02608335018157959,
0.03486594185233116,
-0.05420652776956558,
-0.05492424592375755,
-0.029275301843881607,
-0.00035118559026159346,
0.008173475973308086,
0.015147608704864979,
0.01632806472480297,
0.021323753520846367,
-0.008348182775080204,
-0.0015157051384449005,
0.020832683891057968,
0.04498952999711037,
0.0007543112151324749,
0.013513857498764992,
-0.002464791527017951,
0.011804557405412197,
-0.029180865734815598,
-0.02731102518737316,
0.027726544067263603,
-0.0403054803609848,
-0.03921001777052879,
-0.02387353777885437,
-0.008801477961242199,
0.0059211659245193005,
-0.05167563259601593,
-0.03010634332895279,
-0.027613220736384392,
0.038416750729084015,
-0.01264504250138998,
0.018160130828619003,
-0.020624922588467598,
0.010897967964410782,
-0.045556146651506424,
-0.04884253814816475,
-0.0432896725833416,
-0.03860562667250633,
0.05269554629921913,
0.01973721943795681,
-0.01640361361205578,
-0.02899199351668358,
-0.01852843351662159,
0.07479367405176163,
-0.006114760879427195,
-0.043327447026968,
-0.020020529627799988,
0.05375323444604874,
-0.027367686852812767,
-0.031088482588529587,
0.07392486184835434,
-0.012767809443175793,
-0.029634160920977592,
-0.013834941200911999,
-0.05462205037474632,
-0.030691849067807198,
0.017782386392354965,
0.018188461661338806,
0.03199507296085358,
-0.024213507771492004,
-0.06822089850902557,
0.027141038328409195,
-0.03747238591313362,
-0.05454649776220322,
-0.02257031388580799,
-0.008442619815468788,
-0.035810306668281555,
-0.056661877781152725,
-0.006261137314140797,
-0.03607472777366638,
-0.03603695333003998,
-0.006095873657613993,
-0.028727570548653603,
0.04521617665886879,
0.023099157959222794,
0.008414288982748985,
-0.005930609535425901,
0.07894887775182724,
-0.03917224332690239,
-0.021418189629912376,
0.006837199907749891,
-0.011644016019999981,
0.01722520962357521,
-0.027613220736384392,
-0.055226441472768784,
0.007290494628250599,
0.00996304675936699,
0.003557893680408597,
-0.012191747315227985,
-0.028935331851243973,
-0.07033627480268478,
-0.025611167773604393,
-0.034695956856012344,
-0.031220693141222,
-0.012446725741028786,
0.02838760055601597,
0.08741039037704468,
-0.005085403565317392,
-0.0031400122679769993,
-0.006728597916662693,
-0.029766371473670006,
-0.020020529627799988,
-0.03905891999602318,
-0.021304866299033165,
0.044460684061050415,
0.005529254674911499,
-0.04661383852362633,
0.026234447956085205,
0.04740710183978081,
-0.0573795922100544,
-0.03301498666405678,
0.06780537962913513,
0.006048655137419701,
0.019359475001692772,
0.005080681759864092,
0.029161978513002396,
-0.04691603407263756,
-0.012220078147947788,
-0.035602547228336334,
0.04056990519165993,
-0.018490659072995186,
0.0372646264731884,
0.021418189629912376,
-0.015430917963385582,
0.045178402215242386,
0.026744404807686806,
0.005113734398037195,
0.05613303184509277,
0.009679737500846386,
-0.025837816298007965,
0.0027882365975528955,
0.009849722497165203,
-0.023118045181035995,
-0.014533771201968193,
0.05889057740569115,
0.024232394993305206,
-0.06455676257610321,
0.04412071406841278,
-0.0031659824308007956,
0.08491726219654083,
-0.04310080036520958,
-0.009448368102312088,
-0.07060069590806961,
-0.06697433441877365,
0.06149702146649361,
0.028463149443268776,
-0.039436664432287216,
-0.026971053332090378,
0.0011928505264222622,
-0.03190063685178757,
-0.004981523379683495,
-0.013287209905683994,
0.04098542407155037,
-0.05669965222477913,
0.01731020398437977,
0.06580332666635513,
0.013051118701696396,
-0.008782590739428997,
-0.04483843222260475,
-0.010680763982236385,
0.001814360497519374,
0.023231368511915207,
-0.032486140727996826,
-0.00012321006215643138,
-0.008924245834350586,
-0.006317798979580402,
0.058588381856679916,
-0.013910491019487381,
0.005406487267464399,
0.010359679348766804,
-0.02447793073952198,
-0.01621473953127861,
0.012408951297402382,
0.0241757333278656,
0.05254444479942322,
0.014873742125928402,
-0.02700882777571678,
-0.02931307815015316,
0.046576064079999924,
-0.030257441103458405,
0.04872921481728554,
0.023023609071969986,
-0.10765756666660309,
-0.024496817961335182,
0.018188461661338806,
-0.048087045550346375,
-0.030597412958741188,
0.0211537666618824,
-0.08030876517295837,
-0.05681297555565834,
-0.060363784432411194,
-0.07203613221645355,
0.050013549625873566,
0.019718332216143608,
0.09013015776872635,
-0.03584808111190796,
0.05084459111094475,
-0.003737322986125946,
0.016337508335709572,
0.005798398517072201,
0.01994498074054718,
-0.017499076202511787,
0.017083555459976196,
0.007134674582630396,
0.02043605037033558,
0.0040277149528265,
-0.02376021258533001,
-0.02689550444483757,
0.06410346925258636,
-0.023288032039999962,
-0.020473824813961983,
0.017971258610486984,
-0.0036971874069422483,
-0.04313857480883598,
0.001900533796288073,
-0.013230548240244389,
0.04691603407263756,
0.001617224421352148,
-0.05620858073234558,
0.028954219073057175,
-0.009859166108071804,
0.06009936332702637,
-0.0543576255440712,
-0.006941079627722502,
-0.023193594068288803,
0.01883063092827797,
-0.08778813481330872,
0.05088236555457115,
0.050731267780065536,
-0.017990145832300186,
-0.041438717395067215,
-0.05556641146540642,
0.03698131814599037,
-0.033581607043743134,
-0.048691440373659134,
-0.021399302408099174,
0.006473619490861893,
-0.028670908883213997,
-0.0076446314342319965,
0.0715450644493103,
0.006100595463067293,
0.011568466201424599,
0.006752206943929195,
0.037736810743808746,
0.004707657732069492,
0.060779307037591934,
0.06765428185462952,
-0.002821289235725999,
-0.024950113147497177,
0.003420960856601596,
0.0005562898004427552,
-0.008390679955482483,
0.034695956856012344,
0.03988996148109436,
0.03233504295349121,
-0.07060069590806961,
-0.019302813336253166,
0.0256867166608572,
-0.03142845258116722,
-0.037321288138628006,
-0.03594251722097397,
-0.06485895812511444,
0.02075713314116001,
0.015024840831756592,
-0.02206035703420639,
-0.0614214725792408,
-0.0392477922141552,
-0.0004019451735075563,
-0.013372202403843403,
-0.02245699055492878,
0.0261966735124588,
-0.06561445444822311,
0.036490246653556824,
-0.013211661018431187,
-0.0463494136929512,
-0.04007883369922638,
-0.011908438056707382,
-0.004412543494254351,
-0.04045657813549042,
0.04721822962164879,
-0.012937795370817184,
-0.026064462959766388,
-0.023118045181035995,
0.04793594777584076,
-0.0196427833288908,
0.03921001777052879,
-0.0030715458560734987,
-0.013570519164204597,
-0.056359678506851196,
0.031164031475782394,
-0.03093738481402397,
0.049484703689813614,
-0.0012866967590525746,
0.004589612130075693,
0.025214534252882004,
0.014883185736835003,
-0.0705251470208168,
-0.019302813336253166,
0.060779307037591934,
0.024496817961335182,
0.042571958154439926,
-0.016450831666588783,
-0.04011660814285278,
0.006851365324109793,
0.026725517585873604,
0.025913365185260773,
-0.02005830407142639,
0.0034634571056813,
0.04725600406527519,
-0.010151919908821583,
-0.01723465323448181,
-0.006034489721059799,
-0.029690822586417198,
0.012597823515534401,
0.020379388704895973,
0.00040017449646256864,
0.012654486112296581,
0.004792650230228901,
0.018094025552272797,
0.06297022849321365,
-0.022796962410211563,
-0.055755287408828735,
-0.016441388055682182,
0.0061997538432478905,
-0.0016974953468888998,
-0.009670293889939785,
-0.051713407039642334,
-0.014665982685983181,
0.0108224181458354,
0.03431820869445801,
-0.031182918697595596,
-0.034393757581710815,
0.0035413673613220453,
-0.06213919073343277,
-0.0050334632396698,
-0.026045575737953186,
-0.0287086833268404,
0.03981441259384155,
0.05058017000555992,
-0.026366660371422768,
0.04480065777897835,
0.01147403009235859,
-0.022003695368766785,
0.019586121663451195,
0.07626688480377197,
0.01833011768758297,
-0.008329295553267002,
0.013768835924565792,
-0.05107123777270317,
0.0016974953468888998,
-0.03140956535935402,
-0.03794457018375397,
-0.011747895739972591,
0.06164812296628952,
-0.05681297555565834,
0.0675031840801239,
0.03796345740556717,
0.018972285091876984,
0.06939191371202469
]
|
30,150 | networkx.readwrite.graphml | __init__ | null | def __init__(self, node_type=str, edge_key_type=int, force_multigraph=False):
self.construct_types()
self.node_type = node_type
self.edge_key_type = edge_key_type
self.multigraph = force_multigraph # If False, test for multiedges
self.edge_ids = {} # dict mapping (u,v) tuples to edge id attributes
| (self, node_type=<class 'str'>, edge_key_type=<class 'int'>, force_multigraph=False) | [
0.007043472491204739,
0.024990828707814217,
0.009681814350187778,
0.014541668817400932,
-0.02046254277229309,
0.011169138364493847,
-0.01660686917603016,
0.028742294758558273,
0.023475084453821182,
-0.04846591129899025,
-0.01241015363484621,
0.08200174570083618,
0.0022925627417862415,
0.06972422450780869,
-0.010629154741764069,
-0.002496240893378854,
-0.05028480663895607,
0.03944723680615425,
0.010278638452291489,
0.008914468809962273,
-0.044487085193395615,
0.027946528047323227,
0.03558208793401718,
0.024460317566990852,
0.05062584578990936,
0.007076629437506199,
-0.01687212474644184,
0.0150911258533597,
0.03870831057429314,
-0.010183904320001602,
-0.059606630355119705,
-0.028818082064390182,
-0.0406598299741745,
0.03137589991092682,
0.006351914256811142,
-0.023115094751119614,
-0.02504766918718815,
0.05854560807347298,
-0.07529457658529282,
0.021921446546912193,
0.03395266458392143,
-0.02243301086127758,
-0.038992512971162796,
-0.04073561728000641,
0.0031285902950912714,
0.027946528047323227,
0.051876336336135864,
0.004767488222569227,
-0.03059908002614975,
-0.08162280917167664,
-0.05782563239336014,
-0.042516618967056274,
0.03671889752149582,
0.0353168323636055,
-0.03524104505777359,
0.006967685651034117,
-0.04319870099425316,
0.0022025653161108494,
-0.061652883887290955,
0.07897026091814041,
-0.028041262179613113,
0.05191422998905182,
-0.017952091991901398,
0.001284829806536436,
-0.009823915548622608,
-0.012561728246510029,
-0.08283540606498718,
-0.014247993007302284,
-0.0252560842782259,
0.030978016555309296,
0.05608252435922623,
-0.011661754921078682,
0.005238790065050125,
0.04047036170959473,
0.07574930042028427,
0.020140446722507477,
-0.03933355584740639,
0.020576223731040955,
-0.001895864144898951,
0.06294126808643341,
0.021978287026286125,
0.038784097880125046,
-0.05013323202729225,
-0.04804908111691475,
0.02523713745176792,
0.04649544507265091,
-0.03474843129515648,
0.02518029697239399,
-0.005811930634081364,
-0.04873116686940193,
-0.060591865330934525,
-0.04721542447805405,
-0.05790141969919205,
0.030864335596561432,
0.009966016747057438,
0.028931763023138046,
0.013461700640618801,
-0.08419957756996155,
0.02453610487282276,
-0.008976045995950699,
-0.00967234093695879,
-0.031262218952178955,
-0.046533338725566864,
-0.020841479301452637,
-0.06275179982185364,
-0.09223301708698273,
-0.029007550328969955,
-0.033308472484350204,
-0.03770412877202034,
0.004085403401404619,
-0.04922378435730934,
0.03671889752149582,
0.021959340199828148,
0.0895804688334465,
-0.0024512421805411577,
0.028382305055856705,
0.010146010667085648,
-0.022129861637949944,
0.029386484995484352,
0.014607981778681278,
-0.004717752803117037,
0.0002436439972370863,
-0.022603532299399376,
0.07699979096651077,
0.004997218493372202,
-0.010079696774482727,
0.020936213433742523,
-0.013509067706763744,
0.014636402018368244,
-0.04566178470849991,
0.060023460537195206,
-0.02432768978178501,
-0.022338276728987694,
0.07275570929050446,
-0.03438844159245491,
-0.014020631089806557,
-0.04964061453938484,
0.027302337810397148,
0.0017182378796860576,
0.014058524742722511,
0.004705911036580801,
-0.003874620422720909,
0.027548646554350853,
-0.051724761724472046,
-0.06006135419011116,
-0.010676521807909012,
-0.040205106139183044,
-0.06434333324432373,
-0.03649153560400009,
-0.04513127729296684,
0.0025886064395308495,
-0.021618297323584557,
-0.004457234404981136,
0.03285374864935875,
-0.029879102483391762,
-0.0024772940669208765,
-0.04380499944090843,
-0.030542239546775818,
-0.014636402018368244,
0.031603261828422546,
-0.05233106017112732,
-0.026696039363741875,
0.037666235119104385,
-0.05297525227069855,
-0.0004437695606611669,
-0.020538330078125,
0.04221346974372864,
-0.11284713447093964,
0.005418784450739622,
-0.0020959896501153708,
-0.0447523407638073,
-0.05240684747695923,
-0.0727178156375885,
-0.008123439736664295,
0.031546421349048615,
0.016152147203683853,
0.040242999792099,
-0.022603532299399376,
-0.0011752935824915767,
0.015375327318906784,
0.048996422439813614,
-0.009070780128240585,
-0.01160491444170475,
-0.013348019681870937,
0.03135695308446884,
-0.0005598186980932951,
0.03145168721675873,
0.034786324948072433,
0.06881477683782578,
-0.004146980587393045,
0.010989143513143063,
0.0052435267716646194,
-0.03546840697526932,
0.05225527286529541,
0.061501309275627136,
0.0005296222516335547,
0.017421582713723183,
-0.01205963734537363,
-0.11428709328174591,
0.09321825206279755,
0.027738114818930626,
0.020538330078125,
0.026392892003059387,
0.015176386572420597,
-0.001773894065991044,
-0.0005183725734241307,
0.026108689606189728,
-0.001284829806536436,
0.04039457440376282,
-0.028230730444192886,
-0.03679468482732773,
-0.036737844347953796,
0.04100087285041809,
0.016275299713015556,
-0.010032330639660358,
-0.09314246475696564,
-0.07377883791923523,
0.05115635693073273,
-0.03550630062818527,
-0.001290750689804554,
0.064115971326828,
0.01862470433115959,
0.013622748665511608,
-0.05600673705339432,
-0.003860410302877426,
-0.01708053983747959,
-0.008170806802809238,
-0.028533879667520523,
-0.025407657027244568,
0.01935415528714657,
0.03410423919558525,
-0.007626086473464966,
-0.017279481515288353,
0.012637515552341938,
-0.007337147835642099,
-0.04058404266834259,
0.04084929823875427,
0.005485098343342543,
-0.031887464225292206,
-0.02356981858611107,
0.01582057774066925,
-0.023588765412569046,
-0.046305976808071136,
-0.05210369825363159,
-0.002979384269565344,
0.02764338068664074,
0.057067759335041046,
0.02123936265707016,
-0.03861357644200325,
-0.00383199006319046,
-0.02777600847184658,
-0.06358546018600464,
0.0030883282888680696,
0.01624687947332859,
0.03395266458392143,
-0.039219874888658524,
-0.035487353801727295,
-0.03895461931824684,
-0.0027709694113582373,
-0.0011806223774328828,
-0.019458362832665443,
0.06563170999288559,
-0.008639740757644176,
0.06335809826850891,
0.04820065572857857,
-0.02103094756603241,
-0.016019519418478012,
0.03412318602204323,
-0.05036059394478798,
-0.04577546566724777,
0.11277134716510773,
0.0055419388227164745,
0.05744669586420059,
0.05028480663895607,
-0.005485098343342543,
-0.055173080414533615,
-0.05274789035320282,
0.011472286656498909,
-0.01609530672430992,
-0.006953475531190634,
-0.041455596685409546,
-0.015195333398878574,
-0.005181949585676193,
0.009051833301782608,
-0.04873116686940193,
-0.028287570923566818,
-0.018908904865384102,
0.03039066679775715,
-0.025710806250572205,
-0.041872426867485046,
-0.033156897872686386,
0.011945957317948341,
-0.010970196686685085,
0.03277796134352684,
0.02531292289495468,
-0.010458633303642273,
0.01821734756231308,
0.04460076615214348,
0.04414604231715202,
0.01863417774438858,
0.02904544398188591,
-0.00761187681928277,
0.016199514269828796,
-0.03298637643456459,
0.01716580055654049,
0.0002612585958559066,
0.027662327513098717,
-0.0022440114989876747,
0.04047036170959473,
0.043009232729673386,
-0.023266669362783432,
0.053846802562475204,
-0.03721151500940323,
0.06339599192142487,
-0.006247707176953554,
0.038727257400751114,
0.005295630544424057,
-0.05430152639746666,
0.02862861379981041,
0.08859523385763168,
-0.03726835548877716,
-0.0055703590624034405,
-0.03993985429406166,
0.023058254271745682,
-0.01618056744337082,
0.027548646554350853,
0.03317584469914436,
-0.017118433490395546,
0.032057985663414,
0.018444709479808807,
-0.002967542503029108,
0.03419897332787514,
-0.015507955104112625,
-0.0014411408919841051,
-0.09261195361614227,
-0.012722775340080261,
0.02756759338080883,
0.00108588847797364,
-0.018681544810533524,
-0.02284983918070793,
0.021296203136444092,
0.003178325481712818,
0.021713031455874443,
-0.0032020090147852898,
0.004760383162647486,
-0.03853778913617134,
-0.022660372778773308,
-0.081319659948349,
0.018378395587205887,
0.032171666622161865,
-0.01522375363856554,
0.03952302411198616,
-0.004030931740999222,
0.01639845408499241,
0.04960272088646889,
-0.02868545427918434,
-0.01205963734537363,
-0.046040721237659454,
-0.04179663956165314,
0.05191422998905182,
0.07101260125637054,
-0.029159124940633774,
0.015489008277654648,
0.015526901930570602,
-0.01227752584964037,
-0.007829764857888222,
0.041531383991241455,
0.023020360618829727,
0.10739045590162277,
0.015318486839532852,
0.02355087175965309,
-0.04763225466012955,
-0.10072118788957596,
0.0030835915822535753,
0.009227091446518898,
0.026885507628321648,
-0.008786577731370926,
0.03753361105918884,
0.03544946014881134,
-0.04501759633421898,
-0.02468767948448658,
-0.017914198338985443,
0.04911010339856148,
0.04422182962298393,
-0.0398261733353138,
-0.03311900421977043,
0.08177438378334045,
0.0698757991194725,
0.08829208463430405,
0.05964452400803566,
-0.04081140458583832,
0.007730294018983841,
0.05422573909163475,
-0.05293735861778259,
0.024801360443234444,
0.02152356319129467,
0.020102553069591522,
-0.029632793739438057,
-0.046116508543491364,
-0.03452106937766075,
-0.031262218952178955,
-0.03357372805476189,
-0.007431881967931986,
0.0607813335955143,
0.025938168168067932,
0.018814170733094215,
0.015991099178791046,
0.01597215235233307,
0.05233106017112732,
-0.02785179577767849,
0.06491173058748245,
0.017184747382998466,
-0.00827027764171362,
-0.037306249141693115,
0.002813599770888686,
-0.04001564159989357,
0.03959881141781807,
-0.00323516596108675,
0.06828426569700241,
-0.003405687166377902,
-0.009094463661313057,
0.03853778913617134,
0.017639469355344772,
-0.01427641324698925,
0.021997233852744102,
0.020557276904582977,
0.02440347708761692,
0.028173889964818954,
-0.009852335788309574,
0.04221346974372864,
-0.0013073291629552841,
0.05896243825554848,
0.021637244150042534,
-0.05324050411581993,
0.004028563387691975,
0.040546149015426636,
0.0012694355100393295,
-0.033933717757463455,
0.02622237056493759,
-0.010676521807909012,
-0.04509338364005089,
0.003391477046534419,
-0.004120928701013327,
-0.03469159081578255,
0.0012220685603097081,
-0.033649515360593796,
-0.02925385721027851,
0.0682084783911705,
0.018094193190336227,
0.003888830542564392,
-0.011140718124806881,
0.009492346085608006,
0.05142161250114441,
-0.051724761724472046,
-0.03853778913617134,
0.013878530822694302,
-0.0301822517067194,
0.024100327864289284,
0.019647831097245216,
-0.017923671752214432,
-0.001250488799996674,
-0.024990828707814217,
-0.06502541154623032,
0.004855117294937372,
-0.02235722355544567,
0.04425972327589989,
0.034142132848501205,
0.015801630914211273,
-0.0069203185848891735,
-0.026563413441181183,
-0.013414333574473858,
0.0028728083707392216,
0.020633064210414886,
-0.026885507628321648,
0.0007774108671583235,
0.025161350145936012,
-0.01413431204855442,
-0.06847373396158218,
-0.07741662114858627,
-0.10458633303642273,
0.0032138507813215256,
-0.022186702117323875,
0.04994376376271248,
-0.011131244711577892,
-0.005001955199986696,
-0.019259421154856682,
-0.00220611784607172,
-0.03128116577863693,
-0.043426062911748886,
0.03039066679775715,
-0.07120206952095032,
0.015555322170257568,
-0.0024038751143962145,
0.05354365333914757,
0.0969318225979805,
0.05411205813288689,
-0.034293707460165024,
0.021713031455874443,
-0.023152988404035568,
-0.010098643600940704,
-0.004270134959369898,
-0.03726835548877716,
-0.03594207763671875,
-0.032607439905405045,
0.0620318204164505,
-0.015346907079219818,
-0.061728671193122864,
0.013338546268641949,
0.017772097140550613,
0.015413220971822739,
0.05297525227069855,
-0.01474060956388712,
0.06646537035703659,
-0.0045046014711260796,
-0.020633064210414886,
0.04479023441672325,
0.006176656577736139,
0.015062705613672733,
-0.02307720109820366,
0.0029628057964146137,
0.017033172771334648,
0.024176115170121193,
0.019088899716734886,
0.00048255128785967827,
-0.0002072306233458221,
0.04820065572857857,
0.00031883909832686186,
-0.012855403125286102,
0.054756250232458115,
0.013575381599366665,
0.014674295671284199,
-0.008639740757644176,
-0.06381282210350037,
0.04100087285041809,
-0.009937596507370472,
0.01815103366971016,
0.07927341014146805,
0.07828817516565323,
0.04327448830008507,
-0.047783829271793365,
0.019458362832665443,
0.041190341114997864,
-0.031470634043216705,
-0.009852335788309574,
0.027302337810397148,
-0.009937596507370472,
0.05157318711280823,
0.02502872236073017,
-0.02792758122086525,
-0.0232098288834095,
-0.010449159890413284,
-0.0044596027582883835,
-0.015053232200443745,
-0.048996422439813614,
-0.00740346172824502,
-0.041910320520401,
0.022736158221960068,
-0.07055787742137909,
0.04869327321648598,
0.019231000915169716,
-0.008483429439365864,
-0.013793270103633404,
-0.03219061344861984,
0.0059114014729857445,
0.025142403319478035,
-0.013963790610432625,
-0.004443024285137653,
-0.004414604045450687,
-0.0072755711153149605,
0.05210369825363159,
0.012542781420052052,
-0.030428560450673103,
0.04861748591065407,
-0.011614387854933739,
-0.01857733726501465,
-0.029935942962765694,
-0.05464256927371025,
0.05316471680998802,
-0.034066345542669296,
-0.06229707598686218,
-0.024498211219906807,
0.05365733429789543,
-0.00039877090603113174,
0.04335027560591698,
0.013168025761842728,
0.008199227042496204,
0.02207302115857601,
0.02235722355544567,
-0.025578178465366364,
-0.0015062704915180802,
-0.022755105048418045,
-0.04782172292470932,
-0.006986632011830807,
0.02413822151720524,
-0.023531924933195114,
-0.01115019153803587,
0.08245646953582764,
-0.006489278748631477,
-0.0018686280818656087,
-0.043085020035505295,
-0.029386484995484352,
0.01547953486442566,
0.01701422594487667,
-0.00005365792821976356,
-0.00899972952902317,
-0.015129019506275654,
-0.022451957687735558,
0.028988603502511978,
0.0011273345444351435,
-0.038026224821805954,
0.013300652615725994,
0.028363358229398727,
0.016701603308320045,
-0.006640853360295296,
-0.026487626135349274,
-0.035146310925483704,
-0.02256563864648342,
0.05282367765903473,
-0.01625635288655758,
-0.046040721237659454,
-0.024460317566990852,
-0.040280893445014954,
0.00956339668482542,
-0.007720820605754852,
-0.04278187453746796,
0.029651740565896034,
-0.01041126623749733,
-0.06233496963977814,
0.020500436425209045,
-0.034009505063295364,
0.037874650210142136,
-0.04009142890572548,
-0.032948482781648636,
-0.048086974769830704,
0.018757332116365433,
-0.024232955649495125,
0.025275031104683876,
0.012845929712057114,
0.03986406698822975,
0.08654897660017014,
-0.038291480392217636,
0.05396048352122307,
-0.017203694209456444,
0.008113966323435307,
-0.0007667532772757113,
-0.013442753814160824,
0.03616943955421448,
-0.0057077230885624886,
-0.011036510579288006,
0.0074271452613174915,
0.006655063014477491,
0.06294126808643341,
0.013101711869239807,
-0.0252560842782259,
-0.009435505606234074,
0.04740489274263382,
-0.057067759335041046,
-0.05149739980697632,
0.01167122833430767,
-0.051876336336135864,
-0.006129289511591196,
0.05850771442055702,
0.042592406272888184,
-0.0199130866676569,
0.006351914256811142,
0.0011675965506583452,
0.01730790175497532,
-0.027548646554350853,
0.021845659241080284,
0.020538330078125,
-0.00415171729400754,
-0.011491233482956886,
0.05854560807347298,
-0.031470634043216705,
-0.025710806250572205,
-0.005210369825363159,
0.011614387854933739,
0.019609937444329262,
0.009468662552535534,
0.017108960077166557,
0.009544449858367443,
0.046040721237659454,
-0.02989804930984974,
-0.034975793212652206,
-0.015593215823173523,
-0.013575381599366665,
-0.028135996311903,
0.016275299713015556,
-0.028117049485445023,
-0.0796523466706276,
0.02419506199657917,
0.01793314516544342,
0.012097530998289585,
-0.02235722355544567,
-0.029310697689652443,
-0.054832037538290024,
-0.029727527871727943,
-0.029443325474858284,
0.01955309696495533,
0.003772781463339925,
0.01265646144747734,
-0.01863417774438858,
-0.03152747452259064,
0.013793270103633404,
0.0232098288834095,
-0.01079967524856329,
-0.06021292880177498,
0.05248263478279114,
0.04755646735429764,
0.020803585648536682,
-0.0020048082806169987,
-0.020803585648536682,
0.04126612842082977,
-0.028079155832529068,
-0.022414064034819603,
0.033516887575387955,
0.0016554766334593296,
0.04266819357872009,
-0.09147514402866364,
0.0037064675707370043,
-0.0060629756189882755,
-0.04994376376271248,
0.024232955649495125,
0.05513518676161766,
0.019373102113604546,
-0.001065757474862039,
-0.004111455287784338,
-0.012826982885599136,
0.009994436986744404,
-0.029083337634801865,
0.04740489274263382,
0.035563141107559204,
-0.03423686698079109,
0.018804697319865227,
-0.01487323734909296,
-0.030864335596561432,
0.010610207915306091,
-0.005205633118748665,
0.028382305055856705,
0.07866711169481277,
-0.04388078674674034,
-0.0007993180770426989,
-0.04839012399315834,
0.020993053913116455,
-0.020367808640003204,
0.005371417384594679,
0.027870742604136467,
0.05896243825554848,
0.021296203136444092,
0.003943302668631077,
-0.026317104697227478,
0.018653124570846558,
-0.005016165319830179,
-0.008331854827702045,
0.004978271666914225,
-0.00830343458801508,
-0.0005346550024114549,
0.028666507452726364,
0.004864590708166361,
-0.07707557827234268,
-0.02377823367714882,
-0.05642356723546982,
-0.01226805243641138,
-0.03567682206630707,
-0.021353043615818024,
0.013528014533221722,
0.05854560807347298,
0.02862861379981041
]
|
30,151 | networkx.readwrite.graphml | add_edge | Add an edge to the graph. | def add_edge(self, G, edge_element, graphml_keys):
"""Add an edge to the graph."""
# warn on finding unsupported ports tag
ports = edge_element.find(f"{{{self.NS_GRAPHML}}}port")
if ports is not None:
warnings.warn("GraphML port tag not supported.")
# raise error if we find mixed directed and undirected edges
directed = edge_element.get("directed")
if G.is_directed() and directed == "false":
msg = "directed=false edge found in directed graph."
raise nx.NetworkXError(msg)
if (not G.is_directed()) and directed == "true":
msg = "directed=true edge found in undirected graph."
raise nx.NetworkXError(msg)
source = self.node_type(edge_element.get("source"))
target = self.node_type(edge_element.get("target"))
data = self.decode_data_elements(graphml_keys, edge_element)
# GraphML stores edge ids as an attribute
# NetworkX uses them as keys in multigraphs too if no key
# attribute is specified
edge_id = edge_element.get("id")
if edge_id:
# self.edge_ids is used by `make_graph` method for non-multigraphs
self.edge_ids[source, target] = edge_id
try:
edge_id = self.edge_key_type(edge_id)
except ValueError: # Could not convert.
pass
else:
edge_id = data.get("key")
if G.has_edge(source, target):
# mark this as a multigraph
self.multigraph = True
# Use add_edges_from to avoid error with add_edge when `'key' in data`
# Note there is only one edge here...
G.add_edges_from([(source, target, edge_id, data)])
| (self, G, edge_element, graphml_keys) | [
-0.010722744278609753,
0.016662681475281715,
-0.035639625042676926,
0.058666523545980453,
-0.018109094351530075,
-0.01746303029358387,
-0.03760674595832825,
0.04439524561166763,
0.06699786335229874,
-0.05372943356633186,
0.016884464770555496,
-0.004008975811302662,
0.042620979249477386,
0.0489080548286438,
-0.01287307869642973,
0.03407749906182289,
-0.02215905301272869,
0.043623827397823334,
0.0012083577457815409,
0.02277618832886219,
-0.028716126456856728,
-0.07853060215711594,
-0.011947373859584332,
-0.042620979249477386,
0.055542271584272385,
0.03249608725309372,
0.014174850657582283,
0.03135824203491211,
0.035253915935754776,
0.029815400019288063,
-0.06915783882141113,
-0.08925334364175797,
-0.07363208383321762,
0.01990264654159546,
0.03089538775384426,
0.04636237025260925,
-0.02285332977771759,
0.007608134299516678,
-0.04609237238764763,
0.013538428582251072,
0.020924778655171394,
0.02306547202169895,
0.06387361139059067,
0.00812402181327343,
0.014145921915769577,
-0.010423818603157997,
-0.027308283373713493,
0.05141517147421837,
-0.027616851031780243,
-0.035948190838098526,
-0.016614466905593872,
-0.04026814550161362,
0.03211037442088127,
0.06973640620708466,
-0.06132792681455612,
0.022294050082564354,
-0.022429049015045166,
0.007632241118699312,
-0.04146384820342064,
0.048329491168260574,
-0.0159587599337101,
-0.03301679342985153,
0.031146099790930748,
0.008485624566674232,
-0.023277612403035164,
0.031608954071998596,
-0.09172189235687256,
-0.01851409114897251,
0.005578333977609873,
0.02414545975625515,
0.019102297723293304,
0.002228681929409504,
0.01594911701977253,
0.0046092369593679905,
0.0355239100754261,
0.041193850338459015,
-0.004787628073245287,
0.02019193023443222,
-0.0159587599337101,
0.03120395727455616,
-0.004134331364184618,
0.02763613685965538,
-0.02634400874376297,
0.006561894901096821,
0.05477084964513779,
0.012506653554737568,
-0.020905494689941406,
0.026479005813598633,
-0.011445950716733932,
-0.10807600617408752,
0.008635087870061398,
-0.02466616779565811,
-0.05619797855615616,
0.036256760358810425,
0.016383040696382523,
-0.04883091524243355,
-0.013422715477645397,
-0.05330515280365944,
0.026363292708992958,
-0.01401092391461134,
-0.06630358844995499,
-0.009777753613889217,
-0.019121583551168442,
-0.0066390372812747955,
-0.011127740144729614,
-0.09025619179010391,
-0.01244879700243473,
-0.019999075680971146,
-0.041039567440748215,
-0.052649445831775665,
-0.03596747666597366,
-0.03533105552196503,
0.03249608725309372,
0.03386535868048668,
-0.003546123392879963,
0.05345943570137024,
0.03897601738572121,
-0.010298462584614754,
0.03639175742864609,
-0.002818095264956355,
0.009560791775584221,
-0.00021394863142631948,
-0.008721872232854366,
0.012564510107040405,
0.005284230224788189,
-0.05118374526500702,
0.03282393887639046,
-0.01782945543527603,
0.013827711343765259,
-0.0592065192759037,
0.03211037442088127,
0.01647946983575821,
-0.029931113123893738,
0.003589515807107091,
-0.01350950077176094,
-0.043160974979400635,
-0.04381668195128441,
0.0059592230245471,
0.01730874553322792,
0.02748185396194458,
-0.0001628721656743437,
-0.025476159527897835,
0.05237944796681404,
0.048638056963682175,
-0.07752775400876999,
-0.007641883566975594,
-0.07108639180660248,
-0.020404070615768433,
-0.00677403574809432,
-0.03895673155784607,
0.0056747617200016975,
-0.03081824630498886,
-0.06611073017120361,
-0.004199420101940632,
0.0039511192589998245,
0.01800302416086197,
-0.04616951197385788,
0.10938742011785507,
0.006238862872123718,
0.022120481356978416,
-0.022294050082564354,
-0.025167591869831085,
0.0484452024102211,
0.03180180862545967,
0.010616674087941647,
-0.036873895674943924,
0.08192484825849533,
-0.02422260120511055,
0.005452978424727917,
0.05369086191058159,
0.015081269666552544,
-0.04427953436970711,
-0.04400953650474548,
-0.007193495519459248,
-0.05276515707373619,
0.0005074500222690403,
0.04003671929240227,
0.048946626484394073,
0.02672971785068512,
0.029892541468143463,
0.027732564136385918,
-0.01131095178425312,
0.016440898180007935,
-0.021079063415527344,
0.015341623686254025,
0.03554319590330124,
0.009637934155762196,
0.0023443950340151787,
0.006730643566697836,
-0.020442642271518707,
0.05438514053821564,
-0.035793907940387726,
0.009970609098672867,
0.047789495438337326,
-0.010250248946249485,
-0.0347524918615818,
0.005838688462972641,
0.016874821856617928,
-0.027443282306194305,
0.1191844567656517,
0.025302590802311897,
0.0011818401981145144,
0.011330237612128258,
0.036931753158569336,
0.014965556561946869,
-0.0313003845512867,
-0.006952426861971617,
-0.02231333591043949,
-0.015341623686254025,
-0.03068324737250805,
0.011860589496791363,
-0.00884722825139761,
0.03895673155784607,
0.06476074457168579,
-0.013731284067034721,
0.009199189022183418,
-0.122115857899189,
0.05685368552803993,
-0.005110660567879677,
-0.007270637433975935,
-0.005510834977030754,
-0.013480572029948235,
-0.005679583176970482,
-0.032766081392765045,
0.03616033494472504,
-0.08076772093772888,
0.027385424822568893,
-0.02923683449625969,
0.00772866839542985,
0.027076857164502144,
0.048715200275182724,
0.012400583364069462,
0.00711635360494256,
0.002364885760471225,
0.010317748412489891,
0.02065478265285492,
-0.006325647700577974,
-0.0026951502077281475,
0.017289459705352783,
0.02316189929842949,
0.01381806842982769,
-0.03143538162112236,
-0.05862795189023018,
0.01350950077176094,
0.04223527014255524,
0.029024694114923477,
0.009131689555943012,
0.03319036588072777,
-0.006629394367337227,
-0.013422715477645397,
-0.016816966235637665,
-0.016903750598430634,
-0.0056602973490953445,
0.03089538775384426,
0.010173107497394085,
-0.007241709157824516,
-0.04940947890281677,
-0.03546605631709099,
0.010973455384373665,
-0.03575533628463745,
0.04458810016512871,
0.038069598376750946,
0.003114609979093075,
0.0485994890332222,
0.04211955517530441,
0.009835610166192055,
0.00004719676871900447,
0.050990890711545944,
-0.007260994985699654,
-0.030027540400624275,
0.07448064535856247,
-0.008442232385277748,
0.00044627877650782466,
-0.0060170795768499374,
0.030355393886566162,
0.005968865472823381,
-0.0302975382655859,
0.054693710058927536,
-0.047480929642915726,
-0.007270637433975935,
-0.019237296655774117,
-0.021214062348008156,
-0.019401224330067635,
0.05102946236729622,
-0.05847366899251938,
0.037163179367780685,
-0.0010239400435239077,
-0.01565019227564335,
0.015245196409523487,
-0.04902376979589462,
0.01875516027212143,
0.005882080644369125,
-0.0149559136480093,
0.06803928315639496,
-0.04223527014255524,
0.04250526800751686,
0.03461749106645584,
-0.002731310436502099,
0.04636237025260925,
0.025379732251167297,
0.06850213557481766,
0.016431255266070366,
0.02474331110715866,
-0.06553216278553009,
-0.06553216278553009,
-0.02300761453807354,
0.03166680783033371,
0.014406276866793633,
-0.005698868539184332,
0.010356319136917591,
-0.06942784041166306,
0.018051238730549812,
-0.03216823190450668,
0.0154573367908597,
-0.04366239532828331,
0.027578281238675117,
0.04443381726741791,
-0.04836806282401085,
0.01997978985309601,
0.0007810632232576609,
-0.03749103471636772,
0.008900263346731663,
-0.043623827397823334,
-0.02946826070547104,
-0.007318851538002491,
0.009546328336000443,
0.050605181604623795,
-0.021580487489700317,
0.05102946236729622,
-0.013181646354496479,
0.00823491346091032,
-0.01738588884472847,
-0.018552660942077637,
0.02200476825237274,
-0.07525206357240677,
0.031165385618805885,
0.017501601949334145,
-0.010578102432191372,
0.03234180063009262,
-0.014097708277404308,
-0.007670811843127012,
0.04015243425965309,
-0.0467480793595314,
0.006306361872702837,
0.01889980025589466,
-0.00016573486209381372,
-0.0184562336653471,
-0.02422260120511055,
-0.04728807136416435,
0.0302975382655859,
-0.015495908446609974,
0.01669161021709442,
0.00597850838676095,
0.012159514240920544,
0.04327668622136116,
-0.029815400019288063,
-0.06591787934303284,
-0.0056602973490953445,
0.030162539333105087,
0.008133663795888424,
-0.00047189235920086503,
-0.026228295639157295,
0.01036596205085516,
0.03311322256922722,
-0.02686471678316593,
-0.007420100271701813,
-0.00158502790145576,
0.06722929328680038,
0.04076956957578659,
-0.04030671715736389,
0.021619057282805443,
-0.07502064108848572,
-0.0017875258345156908,
0.06703643500804901,
0.0011981123825535178,
0.01354807149618864,
-0.005101017653942108,
0.06020936369895935,
0.03081824630498886,
-0.005322800949215889,
-0.02127191796898842,
0.006258148234337568,
-0.0004637562669813633,
0.04655522480607033,
0.047480929642915726,
-0.03239965811371803,
0.10691887140274048,
-0.013673427514731884,
0.0633721873164177,
-0.003020593198016286,
0.015293410047888756,
0.025861870497465134,
0.03218751773238182,
0.032071806490421295,
-0.05056660994887352,
-0.037683889269828796,
0.03353750333189964,
0.0036473723594099283,
-0.030027540400624275,
-0.013808425515890121,
-0.01913122646510601,
0.024203315377235413,
-0.033749643713235855,
0.07760489732027054,
0.0478280670940876,
0.013673427514731884,
-0.03673889860510826,
0.016816966235637665,
0.04227384179830551,
0.01287307869642973,
0.009599363431334496,
0.02163834311068058,
-0.06850213557481766,
-0.022641189396381378,
0.004206652287393808,
0.053035154938697815,
0.06391218304634094,
-0.013644498772919178,
0.003290590364485979,
-0.022718332707881927,
0.004990126006305218,
0.015611621551215649,
0.01851409114897251,
-0.0009467980707995594,
-0.04956376180052757,
-0.04181098937988281,
-0.03371107205748558,
0.04960233345627785,
-0.08840478211641312,
0.04061528667807579,
-0.01578519120812416,
-0.008572409860789776,
0.043083831667900085,
-0.01594911701977253,
-0.007304387167096138,
-0.0028373808600008488,
-0.007694918662309647,
-0.03305536508560181,
0.03074110485613346,
-0.03695103898644447,
-0.04570665955543518,
-0.035350341349840164,
-0.029024694114923477,
-0.032688941806554794,
-0.04196527227759361,
-0.051222316920757294,
-0.04609237238764763,
0.014589489437639713,
0.007598491385579109,
0.01875516027212143,
0.021426202729344368,
-0.012082372792065144,
0.07185781747102737,
0.013654141686856747,
-0.03712460771203041,
-0.02946826070547104,
0.003384607145562768,
-0.020076217129826546,
0.0292946919798851,
0.04115527868270874,
0.027231141924858093,
-0.0055204774253070354,
-0.0618293471634388,
0.016161257401108742,
-0.04960233345627785,
0.023586180061101913,
0.031146099790930748,
0.001799579244107008,
-0.0370667539536953,
0.0189190860837698,
0.04046100378036499,
-0.0352153442800045,
0.009469185955822468,
-0.043083831667900085,
0.01540912315249443,
-0.004059600178152323,
0.020693352445960045,
0.03448249399662018,
-0.03187894821166992,
-0.04562951996922493,
0.04902376979589462,
-0.06422074884176254,
0.015582692809402943,
-0.0043850429356098175,
0.008075808174908161,
0.05407657101750374,
0.035793907940387726,
0.02026907168328762,
-0.050605181604623795,
0.03589033707976341,
-0.021908340975642204,
-0.026074010878801346,
-0.030953245237469673,
0.03895673155784607,
0.06321790814399719,
-0.004722539335489273,
-0.004592362325638533,
-0.02285332977771759,
0.011282023973762989,
-0.0492166243493557,
-0.03052896447479725,
-0.034964632242918015,
-0.03816602751612663,
-0.026074010878801346,
0.042620979249477386,
0.030953245237469673,
-0.058126531541347504,
0.05496370792388916,
0.011224167421460152,
-0.005592798348516226,
-0.01078060083091259,
-0.004066831897944212,
0.039361726492643356,
0.0615207813680172,
0.057355109602212906,
0.008895441889762878,
0.011590592563152313,
0.028523270040750504,
-0.014406276866793633,
-0.005872438196092844,
0.028908981010317802,
0.034656062722206116,
0.024492599070072174,
-0.013210575096309185,
-0.045822374522686005,
0.0936504378914833,
-0.035793907940387726,
-0.03311322256922722,
0.01768481358885765,
0.03365321829915047,
-0.008991869166493416,
0.09712183475494385,
0.0031411275267601013,
0.038301024585962296,
-0.012255942448973656,
0.026556149125099182,
0.06163649260997772,
0.07343922555446625,
-0.05573512613773346,
-0.04003671929240227,
-0.036025334149599075,
-0.010298462584614754,
-0.08331340551376343,
-0.022274766117334366,
-0.0071067106910049915,
0.018176594749093056,
0.04701807722449303,
0.0020382374059408903,
0.017482316121459007,
-0.08709336817264557,
-0.04697950556874275,
0.08771050721406937,
-0.031184671446681023,
0.05284230038523674,
0.062137916684150696,
-0.0469023622572422,
-0.008929191157221794,
-0.005057625472545624,
-0.005279408767819405,
-0.001853819703683257,
-0.03646890074014664,
-0.01853337697684765,
-0.00944990012794733,
0.013981995172798634,
0.042698122560977936,
-0.007608134299516678,
-0.027963990345597267,
-0.052032310515642166,
-0.020018359646201134,
0.014907700009644032,
-0.03839745372533798,
-0.021657628938555717,
-0.02634400874376297,
-0.07914773374795914,
-0.017964454367756844,
-0.006402789615094662,
-0.01905408501625061,
0.0349067747592926,
0.003107378026470542,
-0.045822374522686005,
-0.060479361563920975,
0.04485809803009033,
0.045745231211185455,
0.02200476825237274,
0.04304526001214981,
0.02688400261104107,
0.00785884540528059,
0.042620979249477386,
-0.006721000652760267,
-0.03143538162112236,
-0.02665257640182972,
-0.07698775827884674,
0.015505550429224968,
-0.009165438823401928,
-0.0014114583609625697,
0.009599363431334496,
0.017887311056256294,
0.0018948015058413148,
-0.0070874253287911415,
-0.029622545465826988,
-0.03616033494472504,
0.0051251244731247425,
0.04015243425965309,
0.009343829937279224,
-0.00812402181327343,
0.02215905301272869,
-0.02293047308921814,
-0.01980621926486492,
-0.004667093511670828,
-0.031184671446681023,
-0.013104504905641079,
0.01431949157267809,
-0.05126088857650757,
-0.021619057282805443,
-0.026845430955290794,
-0.03378821536898613,
-0.0476737841963768,
0.06661215424537659,
0.031146099790930748,
0.03052896447479725,
0.01997978985309601,
-0.03965101018548012,
-0.04397096484899521,
0.003792013507336378,
-0.000284009292954579,
0.02246762067079544,
0.0061568995006382465,
-0.020230501890182495,
-0.015910547226667404,
0.04273669421672821,
-0.021079063415527344,
-0.021619057282805443,
0.046593792736530304,
-0.032303232699632645,
0.05214802175760269,
-0.0372210368514061,
0.06364218890666962,
0.04694093391299248,
0.0235283225774765,
0.003823352511972189,
-0.07270637899637222,
0.027288997545838356,
-0.036102477461099625,
-0.03903387486934662,
0.013750568963587284,
0.07702632993459702,
0.07818346470594406,
-0.042620979249477386,
0.02946826070547104,
-0.023952605202794075,
0.01468591671437025,
0.0467480793595314,
0.007733489852398634,
-0.004483881406486034,
0.053266581147909164,
0.04987233132123947,
-0.05403800308704376,
0.0036714791785925627,
-0.02254476211965084,
-0.04412524774670601,
0.0055349417962133884,
-0.014936627820134163,
0.042698122560977936,
-0.058666523545980453,
-0.030721819028258324,
0.023701893165707588,
0.030027540400624275,
-0.028908981010317802,
0.014579846523702145,
0.023952605202794075,
-0.0492166243493557,
-0.0747506394982338,
0.0019309617346152663,
0.00017417226627003402,
0.0007129612495191395,
-0.03446320816874504,
0.03529248386621475,
-0.04979518800973892,
-0.02559187263250351,
-0.027674708515405655,
-0.015071626752614975,
0.06256219744682312,
-0.029815400019288063,
-0.03151252493262291,
-0.04647808149456978,
-0.0010582924587652087,
0.007805810775607824,
0.0027819350361824036,
0.00911722518503666,
-0.04686379060149193,
0.018166951835155487,
-0.046439509838819504,
0.0319175198674202,
-0.026382578536868095,
-0.01594911701977253,
-0.06398932635784149,
-0.011831660754978657,
-0.015515193343162537,
-0.02073192410171032,
-0.03689318150281906,
-0.009232938289642334,
0.027134714648127556,
-0.019921932369470596,
0.004734592977911234,
0.015158412046730518,
-0.015110197477042675,
-0.0618293471634388,
0.03058682009577751,
0.015428408980369568,
-0.027462568134069443,
-0.050836607813835144,
-0.029101835563778877,
0.016440898180007935,
-0.024126173928380013,
0.025418303906917572,
-0.010905956849455833,
0.026517577469348907,
0.007940809242427349,
-0.0967361256480217,
0.0056940470822155476,
0.002912112046033144,
0.015476622618734837,
0.045436665415763855,
-0.001123380963690579,
-0.0012300539528951049,
-0.07529063522815704,
0.0119184460490942,
-0.030278252437710762,
0.0016428844537585974,
-0.002967558102682233,
0.013904853723943233,
0.08231055736541748,
0.034347496926784515,
0.11910731345415115,
-0.04250526800751686,
-0.014261635020375252,
-0.02050049789249897,
0.03461749106645584,
0.03855173662304878,
0.030953245237469673,
-0.003117020707577467,
-0.0469023622572422,
-0.01867801696062088,
-0.043546684086322784,
0.01286343578249216,
0.0038329954259097576,
-0.007714204490184784,
0.07737346738576889,
-0.02231333591043949,
0.01096381340175867,
-0.000547226401977241,
0.003256840631365776,
0.007362243719398975,
-0.0033243398647755384,
0.024010460823774338,
-0.0038064776454120874,
0.026247579604387283,
-0.007612955290824175,
-0.0006303951377049088,
-0.0967361256480217,
-0.018774444237351418,
-0.017675170674920082,
-0.003437642240896821,
-0.055773697793483734,
-0.00865437276661396,
0.05473228171467781,
0.023798320442438126,
0.053189437836408615
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.