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,152
networkx.readwrite.graphml
add_node
Add a node to the graph.
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)
(self, G, node_xml, graphml_keys, defaults)
[ -0.013057579286396503, 0.012274861335754395, -0.025654736906290054, 0.027993682771921158, 0.01926407404243946, 0.012983911670744419, -0.046668414026498795, 0.10114559531211853, 0.07377808541059494, -0.01351800188422203, 0.03677854314446449, 0.011786813847720623, 0.05167781189084053, 0.06287528574466705, -0.0013755119871348143, -0.015111063607037067, -0.0110685545951128, 0.0015780978137627244, -0.009231469593942165, 0.011298766359686852, -0.039780497550964355, -0.011501352302730083, -0.004774580243974924, -0.044826727360486984, 0.055582195520401, 0.029798539355397224, 0.01672254130244255, 0.035397276282310486, -0.01643707975745201, 0.04792076349258423, -0.03407125920057297, -0.0791189894080162, -0.08294970542192459, 0.0002195639390265569, 0.00874342117458582, 0.0645696371793747, -0.05296699330210686, 0.014227052219212055, -0.06655866652727127, -0.02482597716152668, 0.09083213657140732, 0.047220923006534576, 0.02618882618844509, 0.000898399215657264, -0.03095880337059498, -0.017026420682668686, 0.004231282044202089, 0.07495676726102829, -0.014024466276168823, -0.0640908032655716, -0.02434713765978813, -0.0640539675951004, -0.03230323642492294, 0.04935728386044502, -0.05031496286392212, -0.008278395049273968, -0.0006250234437175095, 0.018352437764406204, 0.0027671386487782, 0.0489889457821846, 0.01354562770575285, 0.009705704636871815, -0.0004811414110008627, 0.006321599707007408, -0.050093960016965866, 0.038086142390966415, -0.04968878626823425, -0.05771855264902115, 0.007725887931883335, 0.03641020506620407, 0.008324436843395233, 0.002665845677256584, 0.037533633410930634, 0.022081859409809113, 0.07267307490110397, 0.05153047665953636, -0.008264582604169846, 0.0011435741325840354, -0.024365553632378578, 0.05340899899601936, -0.0026842625811696053, 0.008287603035569191, -0.024089301005005836, -0.0006451669032685459, 0.04696308448910713, -0.007831784896552563, -0.006132826674729586, 0.0008851620950736105, -0.000012445793799997773, -0.04987295717000961, -0.025360066443681717, -0.03211906924843788, 0.0017944963183254004, 0.005244211293756962, 0.03232165426015854, -0.05874989926815033, -0.004535160958766937, -0.030037958174943924, 0.037331048399209976, 0.0400383323431015, -0.062212277203798294, 0.026023074984550476, -0.0602969191968441, -0.035876113921403885, -0.012993120588362217, -0.10202960669994354, -0.041290681809186935, 0.017026420682668686, -0.046705249696969986, 0.029080279171466827, -0.044016383588314056, -0.07149439305067062, 0.07385175675153732, 0.008863131515681744, -0.004931123927235603, 0.05219348520040512, -0.006620874162763357, 0.028435688465833664, 0.015534652397036552, -0.0033242497593164444, -0.03134555742144585, 0.002185855293646455, 0.016501538455486298, 0.034310679882764816, -0.03114297240972519, -0.019245656207203865, 0.04692625254392624, 0.011934149079024792, 0.002571459161117673, -0.05355633422732353, 0.0584183968603611, 0.023021120578050613, -0.0028454104904085398, 0.0063169957138597965, 0.01349958498030901, -0.027864763513207436, -0.02252386510372162, 0.021916106343269348, 0.016851460561156273, 0.05569269508123398, -0.0020868645515292883, -0.08405471593141556, 0.01652916520833969, 0.02769901230931282, -0.051604144275188446, -0.006312391255050898, -0.06788468360900879, 0.00880788080394268, -0.05687137693166733, -0.041290681809186935, -0.010304253548383713, -0.0218976903706789, 0.00634922506287694, -0.013122038915753365, 0.002380383899435401, 0.031916480511426926, -0.021989773958921432, 0.044163718819618225, -0.013775838539004326, 0.020277002826333046, -0.002518510678783059, -0.004355595912784338, 0.06073892489075661, 0.036907460540533066, 0.012523490004241467, -0.016980377957224846, 0.037146881222724915, -0.030424712225794792, -0.006749792490154505, 0.009889873676002026, 0.04781026393175125, -0.06460647284984589, -0.026888668537139893, -0.002169740619137883, -0.014052092097699642, -0.046705249696969986, 0.04339020699262619, -0.00048373130266554654, 0.031069304794073105, 0.04976245388388634, -0.004935728386044502, 0.02694392018020153, 0.020461171865463257, 0.019153572618961334, -0.030037958174943924, 0.017459217458963394, 0.013444334268569946, 0.02845410443842411, -0.021124180406332016, -0.03313199803233147, 0.033426668494939804, 0.013389083556830883, 0.012495864182710648, 0.02624407783150673, 0.011105388402938843, -0.0107186334207654, 0.02624407783150673, 0.005644778721034527, -0.039412159472703934, 0.11705779284238815, 0.09341049939393997, 0.061033595353364944, 0.027072837576270103, 0.029688037931919098, 0.019374575465917587, -0.03970682993531227, 0.0007349492516368628, -0.00618347292765975, -0.0499466247856617, -0.05425617843866348, 0.02355520986020565, 0.02171352133154869, 0.009484701789915562, 0.0395594947040081, -0.07108922302722931, 0.002863827394321561, -0.1281079351902008, 0.03871231526136398, -0.04456888884305954, -0.02289220318198204, -0.013407500460743904, -0.005948657635599375, -0.02421821840107441, -0.08471772074699402, 0.02675975114107132, -0.045821238309144974, 0.04140118509531021, -0.06490114331245422, -0.003743234323337674, -0.007127339020371437, 0.00996354129165411, 0.04210102558135986, 0.007426613476127386, 0.019724495708942413, -0.02327895723283291, -0.024181384593248367, 0.05031496286392212, 0.0005214283592067659, -0.030793050304055214, 0.0031193618196994066, -0.00601772079244256, -0.0320269837975502, -0.05127263814210892, 0.002755628200247884, 0.03701796382665634, 0.020995261147618294, -0.012624782510101795, 0.01838006265461445, -0.013941590674221516, 0.00392049690708518, -0.02373937889933586, -0.055287525057792664, 0.010976470075547695, 0.03878598287701607, -0.017403967678546906, 0.03230323642492294, -0.10144026577472687, -0.03228481858968735, 0.025894155725836754, -0.03368450328707695, 0.029651204124093056, 0.04725775495171547, -0.021695103496313095, 0.026059908792376518, 0.044163718819618225, -0.01010166760534048, 0.01998233236372471, 0.029706453904509544, -0.006579436361789703, -0.04066450893878937, 0.0909058004617691, 0.048878442496061325, 0.019558744505047798, -0.04832593724131584, 0.0607757568359375, -0.01510185468941927, -0.013674546033143997, 0.033187247812747955, 0.003084830241277814, -0.025120647624135017, -0.009213052690029144, -0.026023074984550476, 0.011013303883373737, 0.05676087364554405, -0.03541569039225578, -0.013573252595961094, 0.005649383179843426, 0.07296774536371231, -0.0405171737074852, -0.04744192585349083, -0.006367641966789961, 0.018030142411589622, -0.04125384986400604, 0.07595127820968628, -0.03944899141788483, 0.0013260164996609092, -0.014549348503351212, 0.03698112815618515, -0.0011147977784276009, 0.036299701780080795, 0.05237765237689018, -0.002760232426226139, 0.035544611513614655, -0.06291212141513824, -0.03176914528012276, 0.019392991438508034, 0.009397221729159355, 0.01041475497186184, -0.018159059807658195, 0.029651204124093056, -0.07779297232627869, 0.011657895520329475, 0.013029954396188259, 0.00383301661349833, -0.047036752104759216, 0.0028592231683433056, 0.0546613484621048, -0.04766292870044708, 0.04000150039792061, 0.0012719169026240706, -0.02745959348976612, -0.047883931547403336, -0.07042621076107025, -0.022358112037181854, -0.03830714523792267, 0.02482597716152668, 0.03117980621755123, 0.05248815566301346, 0.006565623451024294, 0.020461171865463257, -0.012053858488798141, -0.0013375270646065474, -0.007813367992639542, 0.033334583044052124, -0.08177102357149124, -0.0030825280118733644, 0.0031584978569298983, -0.05013079196214676, 0.025378484278917313, 0.000230930614634417, -0.033279333263635635, 0.007744304835796356, -0.09031645953655243, 0.008881548419594765, 0.056503038853406906, 0.004093155264854431, 0.020277002826333046, -0.03311358019709587, -0.027017587795853615, 0.021032094955444336, -0.02675975114107132, 0.031014053151011467, -0.028840860351920128, -0.03289257735013962, 0.020461171865463257, -0.005350108258426189, 0.03353716805577278, -0.029172364622354507, -0.02289220318198204, -0.0015493214596062899, -0.04799443110823631, 0.03338983282446861, 0.013941590674221516, 0.02775426395237446, -0.004666381049901247, -0.002467864193022251, 0.04059084132313728, 0.072562575340271, 0.0669270008802414, -0.04541606828570366, 0.047515593469142914, -0.04537923261523247, -0.05049913004040718, 0.05911823734641075, -0.024291886016726494, 0.05263549089431763, 0.023849880322813988, 0.03827030956745148, 0.023426292464137077, -0.0598180815577507, -0.023757796734571457, -0.019669245928525925, -0.01121588982641697, 0.03537885844707489, -0.003883663099259138, -0.033518750220537186, 0.0687686949968338, 0.027312258258461952, 0.011022512800991535, -0.025691570714116096, 0.02425505220890045, 0.02582048811018467, 0.009714912623167038, 0.015755655243992805, -0.03694429621100426, -0.0419168546795845, 0.05285649374127388, -0.036299701780080795, -0.048362769186496735, -0.034844767302274704, 0.016170036047697067, -0.008697379380464554, -0.02990904077887535, 0.05388784036040306, 0.03477109968662262, 0.0188496932387352, -0.05790272355079651, -0.04604224115610123, 0.02044275589287281, 0.052930161356925964, 0.03038787841796875, -0.011786813847720623, -0.013812672346830368, -0.01907990500330925, 0.0381598100066185, 0.04943095147609711, 0.02370254509150982, 0.04766292870044708, 0.005101480521261692, -0.035876113921403885, -0.04490039497613907, -0.021731937304139137, 0.03136397525668144, 0.05812372639775276, -0.012956286780536175, -0.0039757476188242435, 0.00002757138827291783, 0.004682495724409819, -0.09429451078176498, 0.0056954254396259785, 0.013803464360535145, 0.028896110132336617, 0.04445838928222656, 0.007546323351562023, 0.03294782713055611, -0.025875739753246307, 0.01173156313598156, -0.07094188779592514, -0.01723821461200714, 0.004544369410723448, 0.0024218219332396984, -0.011307974345982075, 0.013591669499874115, -0.006270953454077244, -0.09274749457836151, -0.00635843351483345, -0.03904382139444351, -0.012772117741405964, 0.02501014620065689, -0.012854993343353271, 0.01965082809329033, 0.0254337340593338, 0.07024203985929489, 0.0325058214366436, -0.0452318973839283, -0.045710738748311996, -0.07558294385671616, -0.06770051270723343, 0.020055999979376793, -0.022487031295895576, -0.009705704636871815, 0.009457075968384743, -0.03523152321577072, 0.001739245723001659, -0.027478009462356567, 0.00048459458048455417, 0.022302862256765366, -0.024439221248030663, 0.028196267783641815, -0.017496051266789436, 0.011805230751633644, -0.013637712225317955, -0.0094202421605587, -0.08280237019062042, 0.01304837130010128, 0.012155151925981045, 0.011667103506624699, 0.027238590642809868, -0.05020445957779884, -0.022339696064591408, 0.03467901796102524, -0.026446662843227386, 0.04420055076479912, 0.04154852032661438, -0.009659661911427975, 0.04744192585349083, 0.03095880337059498, 0.003655754029750824, -0.01616082713007927, 0.0214372668415308, 0.03357400372624397, -0.06464330852031708, -0.03661279007792473, 0.013674546033143997, 0.020737426355481148, 0.0034738872200250626, -0.008794068358838558, -0.06817935407161713, -0.01372979674488306, -0.028583023697137833, -0.047699760645627975, 0.004385523498058319, 0.0011228551156818867, -0.03443959727883339, 0.02086634375154972, 0.01596744917333126, -0.047699760645627975, 0.04998345673084259, 0.012182776816189289, 0.022063441574573517, 0.004088550806045532, 0.015157105401158333, 0.006837273016571999, -0.004017185419797897, 0.03617078438401222, 0.0005968225304968655, 0.0010975318728014827, 0.03270840644836426, -0.008922986686229706, -0.03350033611059189, -0.0009173916769213974, 0.015212356112897396, 0.08309704065322876, -0.0038813608698546886, -0.005336295813322067, 0.0734834149479866, -0.047220923006534576, -0.03727579861879349, -0.03683379292488098, 0.056650374084711075, -0.014899269677698612, 0.038933318108320236, -0.008485585451126099, 0.006275557447224855, -0.010792301036417484, 0.032579489052295685, 0.049394115805625916, 0.09112680703401566, -0.08552806824445724, -0.040296170860528946, -0.0153136495500803, -0.03996466472744942, -0.017836764454841614, -0.02957753650844097, 0.007969912141561508, 0.021418850868940353, 0.08066600561141968, -0.03589453175663948, 0.05068330094218254, -0.06556414812803268, 0.019816581159830093, -0.0020603903103619814, -0.0692843645811081, 0.052414488047361374, 0.07153122872114182, -0.0008782557561062276, -0.01010166760534048, -0.05550852790474892, 0.004912707023322582, -0.04151168465614319, -0.0409960113465786, -0.012007816694676876, -0.01593061536550522, 0.024107716977596283, 0.018398480489850044, -0.03782830387353897, -0.027164923027157784, -0.03559986129403114, 0.032340072095394135, 0.03464218229055405, 0.0038122974801808596, 0.007237840443849564, 0.008936799131333828, -0.07495676726102829, -0.0028569211717694998, -0.025139063596725464, 0.008388896472752094, 0.07374125719070435, -0.030222127214074135, -0.04714725539088249, -0.08604373782873154, 0.03989099711179733, 0.03797563910484314, 0.01832481287419796, 0.002755628200247884, 0.0007050218409858644, -0.02243177965283394, 0.030461546033620834, 0.03302149474620819, -0.0008960971026681364, -0.010635757818818092, -0.02488122694194317, 0.029006611555814743, -0.023684129118919373, -0.03254265710711479, 0.0017852878663688898, 0.00913938507437706, -0.02307637222111225, -0.015589903108775616, -0.0002535200910642743, -0.008209331892430782, -0.011354017071425915, 0.016593623906373978, 0.04688941687345505, -0.014024466276168823, 0.0329846628010273, -0.02718333899974823, -0.0005870385793969035, -0.03294782713055611, 0.008591482415795326, 0.0077995555475354195, -0.014797976240515709, -0.05186197906732559, 0.027920015156269073, 0.0015239982167258859, -0.016575206071138382, -0.01076467614620924, 0.01605953462421894, 0.05068330094218254, 0.009889873676002026, -0.012808951549232006, 0.009079529903829098, -0.025599485263228416, 0.02552581951022148, 0.01865631528198719, -0.015820113942027092, 0.01481639314442873, -0.009074925445020199, -0.03688904270529747, 0.008573065511882305, -0.014208635315299034, 0.01059892401099205, 0.0107186334207654, -0.041953690350055695, 0.005414567422121763, -0.03725738078355789, 0.030001124367117882, 0.021934524178504944, 0.029798539355397224, 0.0037501405458897352, -0.04832593724131584, 0.002191610634326935, -0.019392991438508034, -0.03838081285357475, 0.010543673299252987, 0.01753288507461548, 0.07933998852968216, 0.01090280245989561, 0.006270953454077244, -0.036060284823179245, -0.03830714523792267, 0.0005697727319784462, -0.013720587827265263, 0.013029954396188259, 0.08272869884967804, 0.05079380050301552, -0.052082981914281845, 0.017127713188529015, -0.011777604930102825, -0.05237765237689018, -0.024623390287160873, -0.0334635004401207, 0.05720287933945656, 0.012348528951406479, -0.01729346625506878, -0.02095842733979225, 0.03388708829879761, -0.04114334657788277, 0.012633991427719593, 0.012873410247266293, -0.039412159472703934, -0.07215739786624908, 0.010580507107079029, -0.00472393399104476, 0.005658591631799936, -0.048546940088272095, -0.010341087356209755, 0.010387130081653595, 0.006680729333311319, 0.014540139585733414, -0.025267982855439186, 0.0343843474984169, 0.010184544138610363, -0.04817860201001167, -0.03368450328707695, 0.08169735223054886, 0.012523490004241467, -0.04574757069349289, 0.02609674260020256, 0.02510222978889942, -0.0008713494171388447, -0.01794726587831974, 0.03462376445531845, -0.03589453175663948, 0.014006049372255802, -0.04445838928222656, 0.019724495708942413, 0.025323232635855675, 0.007638407871127129, -0.04176952317357063, -0.01941140927374363, -0.026354579254984856, -0.02657558210194111, 0.007352945860475302, -0.0030433922074735165, -0.04320603981614113, -0.02978012152016163, 0.05167781189084053, 0.01430071983486414, 0.016363412141799927, -0.02548898570239544, -0.009595203213393688, -0.0003568273677956313, 0.013739004731178284, -0.01737634278833866, -0.00040171854197978973, 0.010304253548383713, -0.013131246902048588, -0.0720837339758873, -0.011639478616416454, 0.020240169018507004, -0.005755280144512653, 0.03014845959842205, 0.03407125920057297, 0.04744192585349083, -0.06869502365589142, -0.0001298535062232986, -0.08921144902706146, 0.024623390287160873, -0.002879942301660776, 0.02648349665105343, 0.06777417659759521, 0.03138239309191704, 0.07882431894540787, -0.008282999508082867, 0.00604074215516448, -0.0405171737074852, 0.0381598100066185, 0.012044650502502918, 0.009038091637194157, -0.007026046048849821, 0.006837273016571999, 0.008794068358838558, -0.060370586812496185, 0.040443506091833115, 0.000347331166267395, 0.0032091441098600626, 0.04309553653001785, -0.03134555742144585, 0.05572952702641487, 0.03313199803233147, -0.011464518494904041, 0.007946890778839588, 0.07683528959751129, 0.04493722692131996, 0.022321278229355812, 0.03797563910484314, -0.009268303401768208, 0.01502818800508976, -0.06110726296901703, 0.0008224295452237129, -0.03005637601017952, 0.01733950898051262, -0.05576636269688606, 0.01809460110962391, 0.026538748294115067, 0.006726771593093872, 0.06247011199593544 ]
30,153
networkx.readwrite.graphml
construct_types
null
def construct_types(self): types = [ (int, "integer"), # for Gephi GraphML bug (str, "yfiles"), (str, "string"), (int, "int"), (int, "long"), (float, "float"), (float, "double"), (bool, "boolean"), ] # These additions to types allow writing numpy types try: import numpy as np except: pass else: # prepend so that python types are created upon read (last entry wins) types = [ (np.float64, "float"), (np.float32, "float"), (np.float16, "float"), (np.int_, "int"), (np.int8, "int"), (np.int16, "int"), (np.int32, "int"), (np.int64, "int"), (np.uint8, "int"), (np.uint16, "int"), (np.uint32, "int"), (np.uint64, "int"), (np.int_, "int"), (np.intc, "int"), (np.intp, "int"), ] + types self.xml_type = dict(types) self.python_type = dict(reversed(a) for a in types)
(self)
[ 0.016910074278712273, 0.010478824377059937, 0.016096821054816246, 0.008342863991856575, -0.000986771541647613, 0.018910491839051247, -0.0634898990392685, 0.046103090047836304, -0.050178706645965576, -0.019929395988583565, 0.011712727136909962, 0.06251773238182068, 0.0013145268894731998, 0.046813517808914185, 0.002428077394142747, 0.00959078874439001, -0.024734139442443848, 0.013844013214111328, -0.03290406987071037, -0.05376823991537094, -0.04449527710676193, 0.04142921417951584, 0.01811593398451805, 0.03572709113359451, 0.04602830484509468, -0.019630268216133118, -0.006926680449396372, 0.001852022367529571, -0.015891170129179955, -0.04565439745783806, -0.11823030561208725, -0.03832576423883438, -0.008992532268166542, -0.03918575495481491, 0.021331558004021645, -0.005309520289301872, -0.0038863257504999638, 0.06449945271015167, -0.0020857159979641438, 0.027501072734594345, 0.019592877477407455, -0.027669331058859825, -0.07904455065727234, -0.011843595653772354, -0.017125071957707405, 0.006029296666383743, -0.02738889865577221, -0.04169095307588577, -0.03325928375124931, -0.0021429709158837795, -0.01404966413974762, -0.04079356789588928, -0.015059220604598522, 0.006351794116199017, -0.0826340839266777, 0.04202746972441673, -0.017162462696433067, 0.05836733430624008, -0.03709185868501663, 0.059825580567121506, 0.007118309382349253, 0.08659753203392029, 0.008235365152359009, -0.05653517320752144, -0.007366024889051914, 0.053656067699193954, -0.03847532719373703, -0.02163068763911724, -0.006618204992264509, 0.0464022159576416, -0.001536535914056003, -0.010413390584290028, 0.004870176315307617, 0.019032012671232224, 0.08136279135942459, 0.002375496318563819, -0.027856286615133286, 0.0194994006305933, 0.0025425872299820185, 0.01809723861515522, 0.004493929445743561, 0.031202780082821846, -0.016910074278712273, -0.024472402408719063, 0.04830915853381157, 0.07672630995512009, -0.042775291949510574, 0.05029087886214256, -0.0016335188411176205, -0.017685936763882637, -0.04759872704744339, -0.04303702712059021, -0.003407253883779049, 0.01703159511089325, 0.005977884400635958, -0.047860465943813324, 0.013741187751293182, -0.047673508524894714, 0.00307540874928236, 0.008842968381941319, -0.009693613275885582, -0.07837150990962982, -0.014105750247836113, -0.04127965122461319, -0.04165356233716011, -0.009600136429071426, 0.02637934312224388, -0.0003806285676546395, -0.0017199855064973235, 0.006398533005267382, -0.03550274297595024, -0.08771926164627075, 0.05960123613476753, 0.016078125685453415, -0.004012520425021648, 0.006823855452239513, 0.0048140897415578365, 0.001003130106255412, 0.04262572526931763, 0.02914627455174923, -0.043298766016960144, 0.05186130106449127, 0.01948070526123047, 0.08054018765687943, 0.019574182108044624, 0.006823855452239513, 0.0411674790084362, -0.013442059978842735, -0.006599509622901678, -0.006160165183246136, 0.008581231348216534, -0.014059011824429035, -0.01237641740590334, 0.04520570486783981, -0.02742628939449787, -0.0025075331795960665, -0.014012272469699383, -0.03041756898164749, 0.025706304237246513, 0.04864567518234253, 0.00878220796585083, 0.051749128848314285, 0.05406736955046654, -0.03718533739447594, -0.0763150081038475, 0.051749128848314285, 0.016938118264079094, -0.025949345901608467, -0.061545565724372864, 0.016825944185256958, -0.062592513859272, -0.0615081749856472, -0.02901540696620941, -0.011049036867916584, -0.02637934312224388, -0.03993357717990875, 0.013086846098303795, -0.009539376012980938, -0.005038435570895672, 0.0116753363981843, -0.014189880341291428, 0.016106167808175087, -0.01773267611861229, -0.04584135115146637, 0.00685189850628376, 0.05784386023879051, -0.0309036523103714, -0.07111766189336777, -0.011292078532278538, -0.01756441593170166, -0.027706721797585487, -0.07680109143257141, -0.0037835005205124617, 0.0024234033189713955, 0.0038395870942622423, -0.0684255063533783, 0.014124445617198944, 0.029968876391649246, 0.02439761906862259, 0.04281268268823624, 0.053132593631744385, -0.008455037139356136, -0.06868724524974823, -0.0065854876302182674, 0.015610737726092339, 0.0025612825993448496, 0.03509144112467766, 0.012871847487986088, 0.03847532719373703, -0.0012035224353894591, 0.03335276246070862, 0.008025040850043297, -0.009375790134072304, 0.03563361242413521, 0.0499543622136116, 0.06315337866544724, 0.048720456659793854, 0.004912240896373987, -0.04299963638186455, 0.08712100237607956, -0.010890125297009945, 0.04124226048588753, 0.05059000849723816, -0.029744531959295273, 0.018125280737876892, -0.03284798189997673, -0.013666406273841858, -0.03516622632741928, -0.0028066609520465136, -0.0431491993367672, 0.03815750405192375, -0.024883702397346497, 0.010983603075146675, 0.005926471669226885, -0.011553815566003323, -0.061059482395648956, -0.04662656411528587, -0.004758003167808056, -0.06438728421926498, -0.034511882811784744, 0.05429171398282051, 0.055413443595170975, -0.04356050118803978, -0.05152478069067001, 0.04498136043548584, -0.03039887361228466, -0.03525970131158829, 0.008609275333583355, -0.028080632910132408, 0.004982348997145891, 0.017975717782974243, -0.007454828359186649, -0.023593714460730553, 0.009740352630615234, -0.014872265979647636, -0.03447449207305908, 0.013068150728940964, -0.0030146483331918716, -0.03142712637782097, 0.006641574203968048, 0.015526607632637024, 0.005870385095477104, -0.07201504707336426, -0.07650196552276611, -0.011609901674091816, -0.020490260794758797, 0.012675545178353786, 0.0270523801445961, -0.02776280790567398, 0.013900100253522396, -0.003785837674513459, -0.04273790121078491, 0.039260536432266235, -0.027538463473320007, 0.028379760682582855, 0.023313282057642937, -0.03195060044527054, -0.06532205641269684, 0.024472402408719063, -0.05784386023879051, 0.03421275317668915, 0.03600752353668213, 0.006865920033305883, 0.10043219476938248, 0.013460755348205566, -0.03340884670615196, 0.035951435565948486, 0.027127161622047424, -0.043336156755685806, -0.03684882074594498, 0.11434163898229599, 0.04202746972441673, -0.005117891356348991, 0.016395948827266693, 0.007810042705386877, -0.041915297508239746, 0.02492109313607216, -0.011049036867916584, -0.0004486918624024838, -0.005435714963823557, -0.00027254526503384113, -0.03922314569354057, 0.03832576423883438, 0.0226589385420084, 0.03019322268664837, 0.019966788589954376, -0.0474865548312664, 0.021144604310393333, -0.026940207928419113, -0.01220815721899271, 0.00870275218039751, 0.025407176464796066, -0.031015824526548386, 0.0025986735709011555, 0.04199007898569107, 0.015498564578592777, 0.0055619096383452415, 0.013311191461980343, 0.046290043741464615, -0.0011772318975999951, 0.021013734862208366, 0.013488799333572388, 0.09400094300508499, 0.004117682576179504, -0.01793832704424858, -0.01828419417142868, 0.014947047457098961, -0.04883262887597084, 0.00041977225919254124, 0.04221442714333534, -0.028155414387583733, 0.039073582738637924, 0.004014857579022646, 0.03563361242413521, 0.01596595160663128, 0.03694229573011398, -0.010385346598923206, -0.051038697361946106, 0.03002496436238289, 0.03806402534246445, 0.013713144697248936, -0.03038017824292183, 0.023818058893084526, -0.046476997435092926, 0.02178025059401989, -0.011030341498553753, -0.019910700619220734, -0.01929374970495701, 0.01719050668179989, -0.017985064536333084, -0.015937909483909607, -0.00412469357252121, 0.04389702156186104, 0.046140480786561966, 0.060722965747117996, 0.013488799333572388, 0.025332394987344742, -0.01759245991706848, -0.021481122821569443, -0.042962245643138885, 0.020303307101130486, -0.014881613664329052, -0.00517865177243948, -0.005856363568454981, -0.015881821513175964, -0.0347549244761467, 0.001661562011577189, -0.05967601761221886, 0.06277947127819061, 0.07182808965444565, -0.013722492381930351, -0.011179905384778976, -0.01089947298169136, 0.027837591245770454, 0.02866019308567047, -0.0281367190182209, -0.04528048634529114, -0.007071570493280888, -0.0036222520284354687, 0.05773168429732323, 0.037877071648836136, 0.036474909633398056, 0.03479231521487236, 0.03494187816977501, -0.030006268993020058, -0.0034002428874373436, 0.04127965122461319, -0.008744817227125168, 0.05907776206731796, 0.014124445617198944, 0.03266102820634842, -0.037877071648836136, -0.08839229494333267, 0.0012993367854505777, 0.01519943680614233, 0.027145856991410255, 0.01701289974153042, 0.024547183886170387, -0.062480341643095016, -0.09631918370723724, -0.035222310572862625, -0.04569178819656372, -0.017470939084887505, 0.0193498358130455, -0.006837876979261637, -0.046290043741464615, 0.04632743448019028, 0.004987022839486599, -0.0400831401348114, 0.04356050118803978, -0.011385556310415268, 0.0034516556188464165, 0.024360228329896927, -0.006903311237692833, 0.0389988012611866, -0.014077707193791866, -0.014348791912198067, 0.04266311600804329, -0.010749909095466137, 0.00296790967695415, 0.000489588244818151, -0.09669309854507446, -0.050141315907239914, 0.05044044181704521, -0.03858749940991402, -0.015330305323004723, 0.03148321062326431, 0.00482811126857996, 0.00039348172140307724, 0.016638990491628647, 0.09332790970802307, 0.014816178940236568, -0.02637934312224388, -0.060162100940942764, -0.012086637318134308, -0.003741435706615448, -0.060349054634571075, -0.005379628390073776, 0.04449527710676193, 0.001696616061963141, 0.006973419338464737, 0.045392658561468124, 0.03754055127501488, 0.029482794925570488, -0.02355632185935974, 0.0730619877576828, -0.001204690895974636, 0.030641915276646614, -0.03393232077360153, 0.06038644537329674, 0.016050081700086594, 0.07867063581943512, -0.017097029834985733, -0.05062739923596382, 0.01158185862004757, -0.032399293035268784, -0.016825944185256958, -0.09916090220212936, -0.013442059978842735, -0.029108883813023567, -0.005356259178370237, 0.01239511277526617, 0.02778150513768196, 0.010637735947966576, -0.0032763853669166565, -0.033128414303064346, -0.07339850813150406, 0.022528070956468582, -0.007707217242568731, -0.00041305358172394335, -0.02585586905479431, 0.012292287312448025, 0.09594527631998062, -0.05672213062644005, 0.07822194695472717, 0.004152736626565456, -0.05500214546918869, -0.028005849570035934, 0.02194851078093052, -0.012067941017448902, 0.02424805611371994, -0.034848399460315704, 0.01203055027872324, -0.015919214114546776, 0.002692151116207242, -0.019097447395324707, 0.02684672921895981, -0.04954306036233902, 0.026790643110871315, 0.011787508614361286, -0.016442686319351196, 0.0414666049182415, 0.053282156586647034, -0.02544456720352173, -0.04976740479469299, 0.022397201508283615, -0.034007102251052856, 0.016293123364448547, -0.04509353265166283, -0.07455763220787048, 0.03726011887192726, -0.023687191307544708, -0.012320330366492271, 0.0074174371547997, -0.020770693197846413, 0.0249771811068058, 0.03675534203648567, -0.04356050118803978, -0.054740406572818756, -0.011890334077179432, -0.0333714559674263, 0.036979686468839645, 0.006758421193808317, 0.015891170129179955, 0.04000835865736008, 0.03563361242413521, 0.020434174686670303, 0.0034352969378232956, -0.06468641012907028, 0.02426675148308277, 0.05290824919939041, -0.03606360778212547, -0.06517249345779419, -0.020303307101130486, 0.06730377674102783, -0.02020982839167118, 0.07481937110424042, -0.017826152965426445, -0.03684882074594498, -0.012142723426222801, -0.036474909633398056, -0.04958045110106468, 0.01948070526123047, -0.02475283481180668, -0.01844310574233532, -0.009637527167797089, 0.0380079410970211, 0.02548195794224739, -0.03290406987071037, -0.006033970508724451, -0.031726252287626266, -0.021013734862208366, 0.0036549691576510668, -0.018564626574516296, -0.012423155829310417, 0.06868724524974823, -0.05791864171624184, 0.017676590010523796, 0.0400831401348114, 0.035072747617959976, 0.06262990832328796, -0.024117186665534973, -0.02583717368543148, -0.016638990491628647, -0.02456587925553322, -0.04292485490441322, 0.06749073415994644, 0.034698836505413055, 0.04004574939608574, -0.028772365301847458, 0.031539298593997955, 0.023107631132006645, -0.007151026278734207, 0.015722909942269325, 0.0474865548312664, 0.00887568574398756, 0.031202780082821846, -0.018751580268144608, 0.006543423049151897, -0.019574182108044624, -0.004309311509132385, -0.021686773747205734, -0.04584135115146637, -0.002914160257205367, -0.029408011585474014, -0.029894094914197922, 0.041204869747161865, -0.03163277730345726, 0.0347549244761467, 0.0392979271709919, 0.00007080187788233161, -0.007394067943096161, -0.03726011887192726, 0.03651230037212372, -0.0647611916065216, 0.0226589385420084, -0.02953888103365898, 0.02972583658993244, -0.04449527710676193, 0.012591415084898472, 0.04834654927253723, 0.007366024889051914, 0.05361867696046829, -0.027538463473320007, 0.01916288211941719, -0.021013734862208366, -0.04442049562931061, 0.02565021812915802, -0.03402579948306084, -0.02600543200969696, -0.002360306214541197, 0.08659753203392029, -0.03148321062326431, -0.022621547803282738, 0.025594132021069527, -0.008768186904489994, 0.0009622336947359145, 0.018377671018242836, 0.009637527167797089, 0.0414666049182415, -0.015582694672048092, 0.03039887361228466, 0.014629224315285683, 0.023107631132006645, -0.05918993428349495, 0.005804950837045908, 0.0116005539894104, 0.010871429927647114, -0.023780668154358864, -0.03353971615433693, -0.019817223772406578, 0.053132593631744385, -0.05694647505879402, 0.0021079168654978275, 0.01739615760743618, -0.004145725630223751, 0.03641882166266441, 0.0047439816407859325, 0.02406110055744648, -0.013675753958523273, 0.07324894517660141, -0.009702961891889572, 0.0026126953307539225, -0.0333714559674263, -0.008726121857762337, -0.026472819969058037, -0.00957209337502718, -0.01809723861515522, -0.004332680720835924, -0.038400545716285706, -0.06764029711484909, 0.0036783383693546057, 0.01291858684271574, -0.0027482376899570227, -0.00869807880371809, -0.003407253883779049, -0.01703159511089325, -0.03778359293937683, 0.06195686757564545, -0.049991752952337265, 0.031539298593997955, -0.030660610646009445, 0.003192255739122629, -0.07351068407297134, -0.044009193778038025, 0.04337354749441147, -0.007104287855327129, 0.002375496318563819, 0.0708933174610138, 0.06420032680034637, 0.017283983528614044, 0.02565021812915802, -0.011535120196640491, 0.006823855452239513, 0.04064400494098663, -0.008978511206805706, 0.013236409984529018, -0.02703368477523327, 0.017685936763882637, 0.009104705415666103, 0.009740352630615234, 0.05369345843791962, 0.0467013455927372, -0.03597012907266617, -0.03967183828353882, 0.04969262331724167, -0.09355225414037704, -0.005617996212095022, 0.011768813244998455, -0.049281321465969086, -0.010562954470515251, 0.012853152118623257, 0.016405295580625534, -0.00314317992888391, 0.006066687870770693, 0.006328424904495478, 0.006225599441677332, 0.02579978108406067, 0.05223521217703819, -0.0064032068476080894, -0.014975090511143208, 0.019237663596868515, 0.07231417298316956, -0.03281059116125107, -0.0741463303565979, 0.012853152118623257, -0.006127448286861181, 0.06969679892063141, 0.020602434873580933, 0.03572709113359451, -0.0056740823201835155, 0.04210225120186806, -0.07362285256385803, -0.010488172061741352, 0.011880986392498016, -0.028043240308761597, -0.007861454971134663, 0.009296334348618984, -0.020695911720395088, -0.016199646517634392, -0.028491932898759842, 0.02108851820230484, 0.03948488458991051, 0.0017959359101951122, 0.005893754307180643, -0.05257172882556915, 0.023780668154358864, -0.028491932898759842, 0.005230064503848553, -0.017639199271798134, 0.027800200507044792, -0.036792732775211334, -0.056123875081539154, 0.038232285529375076, 0.025407176464796066, 0.009534701704978943, 0.011460337787866592, 0.02772541716694832, 0.0505526177585125, 0.007548305671662092, -0.014881613664329052, 0.018564626574516296, -0.001940825954079628, -0.03387623652815819, -0.04247616231441498, -0.012843804433941841, 0.015040525235235691, 0.0857001468539238, -0.03019322268664837, -0.019611572846770287, 0.0439344123005867, 0.040494441986083984, 0.06221860274672508, 0.05159956216812134, 0.013086846098303795, 0.04632743448019028, 0.01000208966434002, -0.03896141052246094, -0.039634447544813156, -0.05675952136516571, 0.0080951489508152, -0.003302091732621193, -0.03335276246070862, -0.05634821951389313, -0.041391823440790176, -0.010142305865883827, 0.00938513781875372, 0.008165257051587105, -0.013750536367297173, 0.03690490499138832, -0.07014549523591995, 0.06562118232250214, -0.05059000849723816, 0.026435429230332375, -0.07437067478895187, 0.0012000170536339283, 0.07732456177473068, -0.025220220908522606, 0.0031525276135653257, 0.061396002769470215, 0.017171811312437057, 0.012067941017448902, -0.059638626873493195, -0.025930650532245636, 0.04494396969676018, -0.0291275791823864, 0.03851271793246269, -0.02037808857858181, -0.039784010499715805, -0.05952645465731621, -0.021481122821569443, -0.06356468051671982, -0.011750117875635624, -0.027164552360773087, 0.011843595653772354, 0.025220220908522606, 0.009936654940247536, 0.030305396765470505 ]
30,154
networkx.readwrite.graphml
decode_data_elements
Use the key information to decode the data XML if present.
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 elif text is None: data[data_name] = "" return data
(self, graphml_keys, obj_xml)
[ 0.039208319038152695, -0.006258213426917791, -0.057487212121486664, 0.01649223268032074, -0.02326582930982113, 0.014587773010134697, -0.04087717831134796, 0.04731700196862221, 0.067735955119133, 0.004307123366743326, 0.038226641714572906, -0.0037794699892401695, -0.0022541838698089123, 0.015166964381933212, -0.022657187655568123, -0.019908482208848, -0.03304336592555046, 0.04527510702610016, 0.01720885932445526, -0.003750019706785679, -0.06439824402332306, -0.02746742218732834, -0.008049780502915382, 0.0008816718473099172, 0.041741058230400085, 0.0019240938127040863, 0.017257943749427795, 0.014617223292589188, -0.008643697015941143, 0.008255933411419392, -0.09714710712432861, -0.09322038292884827, -0.01047453097999096, 0.015304399654269218, 0.014136199839413166, 0.011780166067183018, -0.01602102629840374, 0.039326123893260956, -0.05336415395140648, -0.011956868693232536, -0.007249710615724325, -0.0410735122859478, 0.03188498318195343, -0.014214734546840191, 0.0033598016016185284, 0.02379593625664711, -0.06384850293397903, 0.027958260849118233, -0.035006728023290634, -0.027408519759774208, 0.02448311261832714, -0.0717804804444313, -0.021086497232317924, 0.09471254050731659, -0.017788050696253777, 0.024090440943837166, -0.06282755732536316, 0.11199011653661728, 0.029764553532004356, 0.03467295691370964, -0.00843263603746891, 0.0038629129994660616, -0.033023733645677567, 0.01310543529689312, -0.07299776375293732, 0.03557610139250755, -0.05085105076432228, -0.047513339668512344, -0.0711522027850151, 0.00723498547449708, -0.024188607931137085, 0.013272320851683617, 0.014126382768154144, 0.018975885584950447, 0.016315530985593796, -0.04880915582180023, -0.038324806839227676, 0.008992193266749382, -0.019172221422195435, 0.06039298698306084, -0.05073324963450432, 0.05159712955355644, 0.002416161121800542, -0.02357996627688408, 0.05348195508122444, 0.02774229273200035, 0.10358692705631256, 0.07225168496370316, -0.017032157629728317, -0.024718716740608215, -0.017032157629728317, -0.01381224486976862, -0.021891476586461067, 0.03486929088830948, 0.010307645425200462, -0.03219912201166153, -0.04056303948163986, -0.04598191753029823, 0.013203603215515614, -0.00827556662261486, -0.002132700989022851, -0.01699288934469223, -0.03473185747861862, 0.012594961561262608, -0.00798106286674738, 0.005173456389456987, -0.031217440962791443, -0.0010976415360346437, -0.03451588749885559, -0.03176718205213547, -0.07256582379341125, -0.06392703950405121, 0.05678040161728859, 0.03777506574988365, 0.026819512248039246, -0.015775606036186218, -0.026662442833185196, 0.006582167930901051, 0.009267063811421394, -0.043625883758068085, -0.001101322821341455, 0.05866522714495659, -0.04095571115612984, 0.06188514083623886, -0.017473913729190826, -0.02195037715137005, 0.10303718596696854, 0.019172221422195435, 0.014283452183008194, -0.030589165166020393, 0.017670249566435814, 0.004451921209692955, -0.012526243925094604, 0.032650694251060486, 0.03284703195095062, -0.018288709223270416, -0.0026039076037704945, -0.012938549742102623, -0.02890067547559738, -0.013831879012286663, 0.03649888187646866, -0.02742815390229225, 0.03426064923405647, 0.010356729850172997, -0.08379624783992767, -0.002542552538216114, -0.0022050999104976654, -0.04558924585580826, -0.06188514083623886, -0.06506578624248505, -0.054542168974876404, -0.01268331240862608, -0.038894183933734894, -0.0051979986019432545, 0.04464682936668396, -0.0410735122859478, -0.041426919400691986, 0.055288247764110565, -0.041623253375291824, 0.042722735553979874, -0.027133649215102196, 0.0004558679065667093, -0.028763240203261375, -0.04260493442416191, 0.004920673556625843, -0.012958182953298092, 0.020772360265254974, -0.05073324963450432, 0.03286666423082352, 0.030176859349012375, 0.014479788020253181, -0.019682694226503372, -0.09761831164360046, 0.002925408072769642, -0.0011461119865998626, 0.0015228319680318236, 0.0388745479285717, -0.004196684341877699, 0.033377137035131454, 0.05446363613009453, -0.024247508496046066, 0.02668207697570324, -0.03922795504331589, 0.006901214364916086, 0.0178665854036808, 0.03965989500284195, 0.032493624836206436, -0.009581201709806919, 0.008118498139083385, -0.019024968147277832, -0.029038110747933388, -0.0044666463509202, -0.014577955938875675, 0.08544547110795975, 0.054542168974876404, -0.024757983162999153, 0.036852288991212845, 0.04562851041555405, -0.03899235278367996, 0.04417562484741211, 0.031492311507463455, -0.011387494392693043, 0.0758642703294754, 0.011387494392693043, -0.06549772620201111, 0.011809617280960083, 0.009100178256630898, 0.04166252166032791, -0.03861931338906288, -0.008918567560613155, 0.01689472235739231, -0.007637474685907364, -0.006650885567069054, -0.01268331240862608, 0.018553761765360832, 0.016344981268048286, -0.0576835498213768, 0.03445698693394661, -0.04841648414731026, -0.06695061177015305, -0.007701283786445856, 0.015500735491514206, -0.010572699829936028, -0.03765726462006569, 0.03231692314147949, -0.04503950476646423, 0.03840334340929985, 0.00440529128536582, 0.04060230776667595, -0.01271276269108057, 0.02285352349281311, 0.0018406510353088379, 0.03304336592555046, -0.006238579750061035, 0.05383536219596863, -0.00009433336526853964, 0.052971482276916504, -0.00485195592045784, 0.02012445032596588, 0.020811626687645912, -0.012418258935213089, -0.0755501314997673, -0.07013125717639923, -0.04935889691114426, -0.02232341468334198, 0.0006865628529340029, 0.08882245421409607, 0.025229189544916153, -0.0605107881128788, -0.04637458920478821, 0.04240860044956207, -0.01494117733091116, 0.04197666049003601, 0.006258213426917791, 0.004528001416474581, -0.07201608270406723, -0.017473913729190826, -0.0627097561955452, 0.0702490583062172, -0.06541918963193893, 0.047199200838804245, 0.0023916191421449184, -0.04154472053050995, 0.09306331723928452, 0.021361367776989937, 0.006685244385153055, 0.03426064923405647, 0.0031978243496268988, -0.048141613602638245, -0.03524233028292656, 0.10264451801776886, -0.024247508496046066, 0.010631600394845009, 0.00991006474941969, 0.00993951503187418, 0.07205535471439362, 0.015196414664387703, -0.03759836405515671, 0.024757983162999153, 0.002430886495858431, -0.008108681067824364, -0.034123215824365616, -0.025543328374624252, 0.025445159524679184, 0.0338679775595665, -0.06946371495723724, -0.023187294602394104, -0.037951771169900894, 0.0012896828120574355, -0.02821349911391735, -0.011377677321434021, 0.0035536836367100477, -0.040366705507040024, 0.027820825576782227, -0.011142074130475521, -0.02291242405772209, -0.005890083033591509, -0.042840540409088135, 0.03746093064546585, 0.03088366985321045, 0.025562960654497147, 0.02526845782995224, 0.1128539964556694, -0.044411227107048035, -0.003929176367819309, 0.0008141812868416309, 0.04920182749629021, -0.0015191506827250123, -0.0018418780528008938, 0.021498803049325943, 0.02310875989496708, 0.0022161437664180994, 0.004451921209692955, 0.010503982193768024, -0.06498724967241287, -0.008260841481387615, 0.039424289017915726, 0.05147932842373848, 0.06793229281902313, 0.042722735553979874, -0.0069159395061433315, -0.03997403010725975, -0.029862722381949425, -0.01869119703769684, 0.06620453298091888, 0.027722658589482307, 0.04028816893696785, 0.0028542361687868834, 0.061217598617076874, -0.03161011263728142, 0.03325933590531349, -0.04350808262825012, -0.02269645407795906, 0.041583988815546036, -0.0021020234562456608, 0.025700395926833153, -0.005752647761255503, -0.00020155128731857985, 0.05501337721943855, 0.003818737342953682, -0.07005272060632706, -0.021871842443943024, -0.05089031904935837, 0.0028591444715857506, 0.040111467242240906, -0.02354069985449314, 0.015255315229296684, -0.04040597006678581, 0.03783396631479263, 0.10484348237514496, -0.036066941916942596, 0.028881041333079338, 0.020713459700345993, 0.018642112612724304, 0.005708472337573767, -0.04429342597723007, 0.00399053143337369, 0.017012523487210274, 0.008766407147049904, 0.03987586498260498, 0.005816457327455282, 0.01310543529689312, -0.02106686495244503, 0.02326582930982113, 0.0106610506772995, -0.05501337721943855, 0.011701632291078568, 0.07696375250816345, 0.07248728722333908, -0.03875674679875374, -0.0027879728004336357, -0.007882894948124886, -0.053442686796188354, -0.03496745973825455, 0.0205367561429739, 0.03235619142651558, 0.010160394012928009, -0.006974840071052313, 0.020183352753520012, -0.011466029100120068, -0.0001465618406655267, 0.04040597006678581, -0.033691275864839554, 0.03689155355095863, 0.021322101354599, -0.0028076062444597483, 0.02100796438753605, 0.01095555443316698, 0.003764744848012924, -0.032807763665914536, 0.05787988379597664, 0.009247430600225925, 0.034908559173345566, 0.04366515204310417, -0.03329860419034958, -0.050615448504686356, 0.00010307645425200462, -0.0047513339668512344, -0.03671485185623169, -0.011328593827784061, -0.040366705507040024, -0.0014234367990866303, -0.03977769613265991, 0.049830105155706406, 0.04865208640694618, 0.02065455913543701, 0.024129707366228104, 0.0063711064867675304, -0.009959149174392223, 0.05689820274710655, 0.04853428527712822, 0.01023892778903246, 0.010415630415081978, -0.026662442833185196, -0.015569453127682209, 0.0680500939488411, 0.006665610708296299, 0.05630919709801674, 0.07170194387435913, -0.0015890953363850713, -0.04759187251329422, 0.012378991581499577, 0.0288417749106884, -0.010700318031013012, -0.04370441660284996, 0.014784108847379684, -0.01515714731067419, -0.017100874334573746, -0.05905790254473686, 0.07888785004615784, 0.004105878993868828, -0.04460756480693817, -0.05630919709801674, -0.0849742665886879, 0.02316766045987606, -0.024718716740608215, -0.03773580119013786, -0.07244802266359329, 0.00036138115683570504, -0.008992193266749382, -0.05379609391093254, 0.05195053294301033, 0.0379321351647377, -0.016659118235111237, -0.06337729841470718, -0.030844401568174362, -0.03486929088830948, 0.06329876184463501, -0.038207005709409714, -0.01806292124092579, -0.04582484811544418, 0.04543217644095421, 0.07865224778652191, -0.050968851894140244, -0.03363237529993057, -0.01205503661185503, 0.06282755732536316, -0.015432017855346203, 0.01712050847709179, -0.02636794000864029, -0.00946830864995718, -0.043940022587776184, -0.022833889350295067, -0.013890779577195644, -0.0067735956981778145, 0.049673035740852356, -0.004059249069541693, 0.0036322178784757853, -0.002628449583426118, 0.001697080209851265, 0.009350507520139217, -0.04111278057098389, 0.02232341468334198, -0.032591793686151505, 0.03806957229971886, 0.01780768483877182, 0.012123754248023033, 0.034064315259456635, -0.014077299274504185, -0.0790056511759758, 0.021989643573760986, -0.04280127212405205, 0.014116565696895123, -0.03751983121037483, 0.006002976559102535, -0.012182655744254589, 0.030589165166020393, -0.05305001512169838, -0.05815475434064865, 0.007416596636176109, -0.039208319038152695, 0.009802079759538174, -0.022990958765149117, 0.013674809597432613, 0.015078612603247166, 0.0037892868276685476, 0.032748863101005554, -0.00509492214769125, -0.00045985597535036504, -0.07578574120998383, 0.004564814269542694, -0.045667778700590134, -0.009944424033164978, -0.048887692391872406, 0.01667875237762928, 0.04849501699209213, -0.023462165147066116, 0.040837910026311874, 0.01620754599571228, -0.007161359302699566, -0.03838370740413666, -0.0076423827558755875, 0.03838370740413666, -0.011466029100120068, 0.03589024022221565, 0.020733093842864037, 0.0354190319776535, 0.0661652684211731, -0.00962537806481123, 0.019584527239203453, 0.00860442966222763, 0.0027732474263757467, 0.050615448504686356, 0.014155833050608635, 0.01221210602670908, 0.0551704466342926, -0.0717804804444313, -0.017572080716490746, 0.015844324603676796, 0.0016369522782042623, -0.0015436926623806357, -0.015294582583010197, 0.013380305841565132, 0.005610304418951273, 0.017876403406262398, -0.03999366611242294, 0.08324650675058365, 0.03241509199142456, -0.032807763665914536, 0.04015073552727699, 0.027644123882055283, -0.018553761765360832, -0.014793925918638706, -0.013988947495818138, 0.03461405634880066, 0.03657741844654083, 0.02532735839486122, 0.02363886684179306, 0.06235634908080101, 0.0001536176714580506, -0.021930743008852005, 0.019132953137159348, 0.013449023477733135, 0.031708281487226486, 0.003482511732727289, -0.07138780504465103, 0.003889909014105797, -0.025484425947070122, -0.007549123372882605, -0.02395300567150116, -0.037323493510484695, 0.03219912201166153, -0.029273713007569313, -0.02862580493092537, 0.03176718205213547, 0.036911189556121826, -0.027133649215102196, -0.01184888370335102, -0.0266428105533123, 0.019505992531776428, -0.031433410942554474, 0.02175404131412506, 0.027958260849118233, -0.07755276560783386, 0.03551720082759857, 0.008162673562765121, -0.04217299446463585, -0.02232341468334198, 0.009193438105285168, -0.0868590921163559, -0.018053105100989342, 0.03131560981273651, 0.08073341101408005, -0.005919533781707287, 0.04017036780714989, -0.03928685560822487, 0.003921813797205687, 0.04857355356216431, 0.042840540409088135, -0.004611444193869829, -0.009281789883971214, 0.005261807702481747, -0.00833937618881464, 0.012594961561262608, 0.01930965669453144, 0.0035021454095840454, 0.025936000049114227, 0.008560254238545895, -0.020183352753520012, -0.0799480602145195, -0.0007153996848501265, 0.034535519778728485, 0.008162673562765121, 0.024875784292817116, 0.007632566150277853, -0.012909099459648132, 0.01131877675652504, 0.008702597580850124, 0.0017891128081828356, -0.018946435302495956, 0.030667699873447418, 0.0012166702654212713, 0.032434724271297455, -0.016384247690439224, 0.02699621394276619, -0.008413001894950867, -0.016845637932419777, 0.027133649215102196, -0.03378944471478462, -0.013115252368152142, 0.014882276766002178, -0.00949775893241167, -0.012143388390541077, 0.01922130584716797, -0.05603432655334473, 0.009846256114542484, 0.03308263421058655, 0.00511946389451623, -0.007583482190966606, -0.004223680589348078, 0.024463478475809097, -0.050183508545160294, 0.041623253375291824, -0.06549772620201111, -0.003222366329282522, 0.009154170751571655, 0.03284703195095062, 0.028390200808644295, -0.01730702817440033, -0.005448326934129, 0.007416596636176109, -0.0008068187162280083, -0.028704339638352394, 0.025621861219406128, -0.06451604515314102, 0.0404452383518219, 0.046099718660116196, -0.028350934386253357, 0.008889117278158665, 0.006827588193118572, -0.027506688609719276, -0.008820399641990662, 0.0094044990837574, 0.014018397778272629, 0.031865350902080536, 0.06141393259167671, -0.0037156608887016773, -0.020144084468483925, -0.013802428729832172, -0.03750019520521164, -0.001957225613296032, -0.039365388453006744, 0.022519752383232117, 0.0111322570592165, -0.002687350381165743, -0.016590401530265808, 0.019947748631238937, 0.024777617305517197, 0.05489557608962059, -0.05006570741534233, 0.008948017843067646, 0.0029524043202400208, 0.0429583415389061, -0.02411007322371006, -0.020144084468483925, -0.01740519516170025, -0.02028151974081993, -0.024934684857726097, 0.02658390812575817, 0.007951612584292889, 0.0037770159542560577, 0.05242174118757248, -0.03286666423082352, -0.018828632310032845, -0.024620547890663147, -0.00803996343165636, 0.04366515204310417, -0.055288247764110565, 0.0018283800454810262, -0.060589320957660675, -0.02799752913415432, -0.01337048877030611, 0.05960764363408089, -0.049673035740852356, -0.009600835852324963, -0.08733030408620834, -0.0044617378152906895, 0.02326582930982113, 0.01181943342089653, -0.03655778244137764, -0.02925408072769642, -0.039208319038152695, -0.040111467242240906, -0.027703024446964264, 0.022401949390769005, 0.0055023194290697575, -0.0805763378739357, 0.029352247714996338, -0.025621861219406128, -0.0066999695263803005, -0.05308928340673447, -0.0032420000061392784, -0.043154675513505936, -0.058233290910720825, -0.0071760849095880985, 0.007195718120783567, -0.0166198518127203, 0.020517123863101006, -0.022028911858797073, 0.01827889122068882, 0.02285352349281311, 0.08269676566123962, 0.01946672424674034, 0.09078581631183624, 0.0022578651551157236, 0.024345677345991135, 0.0005239719757810235, -0.04586411640048027, -0.009060910902917385, 0.002164605539292097, 0.03899235278367996, 0.04366515204310417, -0.004280127119272947, 0.023246195167303085, -0.09628322720527649, -0.05658406764268875, -0.007259527686983347, -0.016511866822838783, -0.014165650121867657, 0.05289294570684433, -0.00634165620431304, -0.0054581440053880215, -0.06895323842763901, 0.028174230828881264, -0.0050114793702960014, -0.015638170763850212, 0.032493624836206436, 0.049830105155706406, 0.011662364937365055, 0.011632914654910564, 0.03125670924782753, 0.002925408072769642, -0.04708139970898628, 0.013782794587314129, 0.0027364345733076334, 0.027172917500138283, 0.01830834150314331, -0.014754658564925194, 0.0013387668877840042, -0.026760611683130264, 0.01580505631864071, 0.011731082573533058, -0.013429389335215092, -0.007239894010126591, -0.023560332134366035, 0.03351457417011261, -0.0017388015985488892, 0.056387729942798615 ]
30,155
networkx.readwrite.graphml
find_graphml_keys
Extracts all the keys and key defaults from the xml.
def find_graphml_keys(self, graph_element): """Extracts all the keys and key defaults from the xml.""" graphml_keys = {} graphml_key_defaults = {} for k in graph_element.findall(f"{{{self.NS_GRAPHML}}}key"): attr_id = k.get("id") attr_type = k.get("attr.type") attr_name = k.get("attr.name") yfiles_type = k.get("yfiles.type") if yfiles_type is not None: attr_name = yfiles_type attr_type = "yfiles" if attr_type is None: attr_type = "string" warnings.warn(f"No key type for id {attr_id}. Using string") if attr_name is None: raise nx.NetworkXError(f"Unknown key for id {attr_id}.") graphml_keys[attr_id] = { "name": attr_name, "type": self.python_type[attr_type], "for": k.get("for"), } # check for "default" sub-element of key element default = k.find(f"{{{self.NS_GRAPHML}}}default") if default is not None: # Handle default values identically to data element values python_type = graphml_keys[attr_id]["type"] if python_type == bool: graphml_key_defaults[attr_id] = self.convert_bool[ default.text.lower() ] else: graphml_key_defaults[attr_id] = python_type(default.text) return graphml_keys, graphml_key_defaults
(self, graph_element)
[ 0.020580526441335678, -0.02487948350608349, -0.031026408076286316, 0.04260052368044853, -0.003810218069702387, 0.030948597937822342, -0.026591284200549126, 0.0019500923808664083, 0.11329015344381332, 0.010912736877799034, 0.008568734861910343, -0.0322129987180233, 0.005947538651525974, 0.0227980874478817, -0.03371082618832588, -0.015065801329910755, -0.0041749486699700356, 0.07442447543144226, -0.003036989364773035, -0.024218104779720306, 0.0027792463079094887, -0.024607151746749878, -0.0029567484743893147, -0.0055001359432935715, 0.053104761987924576, 0.005728700198233128, 0.02999543584883213, 0.028108563274145126, 0.03363301604986191, 0.041199956089258194, -0.11741404235363007, -0.10177440196275711, -0.011068355292081833, 0.010844653472304344, -0.008456884883344173, -0.029334058985114098, 0.011476852931082249, 0.04621864855289459, -0.0845007598400116, -0.03343849256634712, 0.017263909801840782, -0.005816235672682524, 0.005271571688354015, -0.035753313452005386, -0.02692197449505329, 0.011544936336576939, -0.02915898710489273, 0.041044339537620544, -0.004454575013369322, -0.02178656868636608, 0.031609974801540375, -0.015454847365617752, -0.016427461057901382, 0.07422994822263718, -0.07508584856987, -0.028575418516993523, -0.05551684647798538, 0.03246587887406349, -0.011194794438779354, 0.04345642402768135, -0.005300750024616718, 0.004892251919955015, 0.030345577746629715, 0.03861280158162117, -0.05613932013511658, 0.011097533628344536, -0.037581831216812134, -0.05150967091321945, -0.06259748339653015, 0.004413239192217588, -0.04711345583200455, 0.023420561105012894, 0.003790765767917037, 0.0014674323610961437, 0.005081911571323872, -0.031026408076286316, -0.003224217565730214, -0.006749945692718029, 0.002211482496932149, 0.03304944559931755, -0.03225190192461014, 0.05349380522966385, -0.050225820392370224, -0.0053202020935714245, 0.03538371995091438, 0.03557824343442917, 0.04439013451337814, 0.04030515253543854, 0.04275614023208618, -0.022661922499537468, -0.029100630432367325, 0.0251518152654171, 0.002147046849131584, 0.10122973471879959, 0.0033020267728716135, -0.01585361920297146, -0.040227342396974564, -0.0439232774078846, 0.029800914227962494, 0.004653961397707462, -0.020502716302871704, -0.007104950025677681, -0.005359106697142124, -0.029256248846650124, -0.0012376521481201053, -0.04847511649131775, -0.03550043702125549, -0.024646054953336716, 0.026046620681881905, -0.02137807011604309, -0.0936044380068779, -0.09477157145738602, 0.06392023712396622, 0.036025647073984146, 0.04232819005846977, 0.0011245857458561659, 0.0031537029426544905, 0.018567213788628578, 0.07263486087322235, -0.0332050658762455, 0.013276190496981144, 0.02375124953687191, -0.00425762077793479, 0.05761769413948059, 0.015338133089244366, -0.03810704126954079, 0.08092153817415237, 0.030053792521357536, 0.026999782770872116, 0.038262661546468735, 0.026007715612649918, -0.010455607436597347, -0.015172788873314857, 0.001069268211722374, 0.03553934022784233, -0.025307433679699898, 0.011933982372283936, 0.019831612706184387, -0.002793835708871484, 0.08263333886861801, 0.018265703693032265, -0.03627852723002434, 0.02373179793357849, 0.01811981201171875, -0.0905698761343956, -0.00978450383991003, 0.004410807508975267, -0.0402662456035614, -0.0012461625738069415, -0.08465638011693954, 0.005928086582571268, -0.027719518169760704, -0.06384242326021194, -0.00147594278678298, 0.022175613790750504, -0.01006656140089035, -0.04038296267390251, 0.038554444909095764, -0.050342533737421036, -0.014540589414536953, -0.030734622851014137, 0.003965836483985186, 0.013888937421143055, -0.04555727168917656, 0.03042338602244854, -0.00023084401618689299, 0.022525755688548088, 0.004213853273540735, 0.05178200453519821, 0.00621500751003623, -0.001091152080334723, -0.0006084920605644584, -0.0866016075015068, -0.02262301743030548, -0.021903282031416893, 0.012439741753041744, 0.01866447553038597, 0.007056319620460272, 0.0633755698800087, 0.049642253667116165, 0.008870245888829231, 0.005757879000157118, -0.02305096760392189, -0.005081911571323872, 0.008670859970152378, 0.029606390744447708, 0.04291176050901413, 0.0031974706798791885, -0.012877417728304863, -0.006949331611394882, -0.019121604040265083, -0.03209628537297249, 0.01012491900473833, 0.0835670530796051, 0.0012753410264849663, -0.023965224623680115, 0.02470441162586212, 0.03458617627620697, -0.0624418631196022, 0.06493175774812698, 0.07528037577867508, -0.02069723978638649, 0.01861584559082985, 0.04372875392436981, -0.028497610241174698, -0.02805020660161972, 0.01298440620303154, 0.021300261840224266, -0.058240167796611786, 0.02291480079293251, -0.029937079176306725, -0.030112149193882942, 0.026707999408245087, -0.017108291387557983, 0.008816751651465893, 0.01748761162161827, -0.04820278286933899, 0.07745902985334396, -0.05831797420978546, -0.047580309212207794, 0.005966991186141968, -0.015688274055719376, 0.00801920797675848, -0.031999021768569946, 0.05820126086473465, -0.05045924708247185, 0.06279200315475464, -0.029509129002690315, -0.009084220975637436, -0.022681374102830887, 0.0469578355550766, -0.025891002267599106, 0.022467399016022682, 0.004481322132050991, 0.01318865455687046, -0.059251684695482254, 0.06738274544477463, -0.008106742985546589, 0.04843620955944061, -0.03695935755968094, 0.027174854651093483, -0.04038296267390251, -0.06792740523815155, -0.0012169841211289167, -0.03398315608501434, -0.02540469542145729, 0.019627364352345467, -0.013976472429931164, -0.024937840178608894, -0.053532712161540985, 0.002381690079346299, 0.005441779270768166, 0.03695935755968094, 0.00783927459269762, 0.04345642402768135, -0.05765659734606743, -0.07333514839410782, 0.007100087124854326, 0.05555574968457222, -0.05777331069111824, 0.05458313599228859, 0.03929363191127777, -0.024529341608285904, 0.03581167384982109, 0.04092762619256973, 0.008802162483334541, 0.03668702393770218, 0.036336883902549744, -0.028244730085134506, -0.014375245198607445, 0.0939156711101532, -0.004539678804576397, -0.02390686795115471, -0.01673869788646698, 0.009847723878920078, 0.04197805002331734, -0.02501564845442772, 0.013383178040385246, -0.03625907376408577, 0.008631954900920391, -0.016028689220547676, -0.04205585643649101, -0.05753988400101662, 0.07878179103136063, -0.005018691532313824, 0.010095740668475628, -0.029120083898305893, -0.03151271492242813, 0.004403512924909592, -0.01250782422721386, 0.01917996071279049, 0.030909694731235504, -0.06302542984485626, 0.01409318670630455, -0.06255857646465302, 0.00016291295469272882, 0.02209780551493168, -0.07570832222700119, 0.053104761987924576, 0.0617026761174202, 0.08940274268388748, 0.006570011842995882, 0.07461899518966675, -0.029411867260932922, 0.006861796602606773, 0.05777331069111824, 0.0499923937022686, 0.002489893464371562, -0.01222576666623354, 0.01938421092927456, -0.07792589068412781, 0.005539040546864271, 0.02945077233016491, 0.002523935167118907, -0.05446642264723778, -0.01916050910949707, 0.03483905643224716, 0.0006036289851181209, 0.05820126086473465, 0.04746359586715698, -0.013898663222789764, 0.0060010324232280254, -0.04403999075293541, -0.0031147985719144344, 0.019491197541356087, -0.031746141612529755, 0.04684112221002579, -0.0074502285569906235, 0.048980873078107834, -0.009429499506950378, -0.001173824304714799, -0.0056168497540056705, -0.021066833287477493, 0.038962945342063904, -0.04828059300780296, 0.047852642834186554, -0.006302542984485626, 0.007474543526768684, 0.030520647764205933, 0.005378559231758118, 0.004790127277374268, -0.03738730773329735, -0.03915746510028839, -0.03205737844109535, 0.021203000098466873, -0.0025555449537932873, 0.028847750276327133, -0.018042001873254776, 5.271495524539205e-7, 0.0280307549983263, -0.0004391963011585176, 0.008033797144889832, 0.013791675679385662, 0.04571288824081421, 0.06080786883831024, 0.0021202999632805586, -0.0202887412160635, 0.027194306254386902, 0.00255311350338161, 0.07426885515451431, 0.048008259385824203, 0.011710280552506447, -0.014268256723880768, 0.00018266918777953833, 0.03635633736848831, -0.021203000098466873, 0.012517550960183144, 0.07061182707548141, 0.056567270308732986, -0.04236709326505661, 0.011535209603607655, -0.0216504018753767, -0.03954651206731796, -0.05695631355047226, 0.02168930694460869, 0.021047381684184074, 0.005718974396586418, 0.029100630432367325, -0.0007434423314407468, -0.016048142686486244, 0.001903893193230033, 0.03546153008937836, -0.00010523994569666684, 0.05213214457035065, -0.007756602019071579, -0.022720279172062874, 0.04100543260574341, -0.016544176265597343, 0.032154642045497894, 0.013888937421143055, 0.026630189269781113, -0.012391110882163048, 0.013801402412354946, 0.02168930694460869, -0.008383938111364841, -0.027252662926912308, 0.05003129690885544, -0.03581167384982109, -0.04042186588048935, -0.036881547421216965, -0.03155161812901497, -0.03913801535964012, -0.0755138024687767, 0.02945077233016491, 0.04306737706065178, 0.01063067838549614, -0.041044339537620544, -0.014287709258496761, -0.008627092465758324, 0.014112639240920544, 0.03711497411131859, -0.004923861939460039, -0.006501928903162479, -0.061469245702028275, 0.014676755294203758, 0.02680525928735733, 0.01069876179099083, 0.07847055047750473, 0.015727179124951363, 0.01521169301122427, -0.05870702117681503, -0.025657575577497482, 0.03863225504755974, 0.009463540278375149, -0.01852830871939659, 0.045090414583683014, -0.0208139531314373, 0.009959573857486248, -0.0866016075015068, 0.03861280158162117, -0.017254184931516647, 0.005718974396586418, -0.007931672967970371, -0.04901978000998497, -0.021883830428123474, -0.027447186410427094, -0.023984678089618683, -0.05084829404950142, 0.0010066562099382281, -0.023556727916002274, -0.042289286851882935, 0.037581831216812134, 0.012809335254132748, 0.010105466470122337, -0.06294762343168259, -0.008675722405314445, -0.0385933481156826, 0.07496913522481918, -0.018858999013900757, 0.006579738110303879, -0.0597185418009758, 0.0028838024009019136, 0.13134188950061798, -0.06971701979637146, 0.002857055515050888, 0.000016051941202022135, -0.04512932151556015, 0.0325242355465889, 0.06290871649980545, -0.009847723878920078, 0.03448891639709473, 0.00023205978504847735, -0.03711497411131859, -0.02098902501165867, 0.008622229099273682, 0.04357313737273216, -0.01132123451679945, 0.029625842347741127, -0.01730281487107277, 0.013071941211819649, 0.026280047371983528, -0.0455961748957634, -0.01542566902935505, -0.06302542984485626, 0.01250782422721386, -0.018693653866648674, -0.0036400104872882366, 0.05119843780994415, -0.023537274450063705, -0.031201478093862534, 0.015600739046931267, -0.07197348773479462, -0.006108019966632128, -0.022973159328103065, 0.025093458592891693, -0.008996685966849327, 0.01755569502711296, -0.05890154466032982, -0.10690980404615402, 0.006108019966632128, -0.04952554032206535, -0.0010309715289622545, 0.00003943648698623292, 0.0298592709004879, 0.08979178965091705, -0.05306585505604744, 0.06030210852622986, 0.004150633234530687, 0.008422843180596828, -0.04092762619256973, -0.02404303476214409, -0.05730645731091499, -0.021183546632528305, 0.005509862210601568, 0.040071725845336914, 0.004804716445505619, -0.022000543773174286, 0.021066833287477493, 0.03413877636194229, -0.04773592948913574, -0.022603563964366913, -0.02752499468624592, 0.023012062534689903, 0.007323788478970528, 0.02056107483804226, -0.0594073049724102, 0.015503478236496449, 0.026143882423639297, 0.01730281487107277, 0.02569647878408432, 0.014900457113981247, 0.01682623289525509, -0.004104434046894312, 0.009842860512435436, 0.00009650160791352391, 0.08239991217851639, -0.04446794092655182, -0.02375124953687191, -0.03310780227184296, -0.004605330526828766, 0.02194218710064888, 0.021280808374285698, -0.007921946235001087, 0.04723016917705536, 0.002016959711909294, 0.0034260351676493883, 0.05119843780994415, 0.049642253667116165, -0.05695631355047226, 0.010766844265162945, 0.045051511377096176, -0.01534785982221365, -0.023945773020386696, 0.023381656035780907, 0.07753684371709824, 0.07761465013027191, -0.018129536882042885, 0.008991822600364685, -0.022739730775356293, -0.009473267011344433, 0.008126195520162582, 0.014005650766193867, -0.03460562974214554, 0.005573082249611616, -0.0055341776460409164, -0.05080939084291458, -0.017020756378769875, -0.03662866726517677, 0.009813682176172733, -0.018489405512809753, 0.009910942986607552, -0.026494024321436882, -0.0192966740578413, -0.01578553579747677, -0.0075620790012180805, -0.026280047371983528, -0.01479346863925457, -0.023109324276447296, -0.048980873078107834, 0.07166224718093872, -0.05139295756816864, 0.008797300048172474, 0.007440502289682627, -0.059640731662511826, 0.009658063761889935, 0.012556455098092556, -0.008583324030041695, -0.01054314337670803, 0.01410291250795126, -0.059212781488895416, -0.017545968294143677, 0.037854161113500595, 0.10706542432308197, 0.03779580444097519, 0.05248228833079338, 0.0030807568691670895, 0.010640404187142849, 0.034800153225660324, -0.028244730085134506, 0.0202887412160635, -0.06598217785358429, 0.000984772341325879, -0.01637883111834526, -0.00697364704683423, -0.025443600490689278, 0.0007720128633081913, 0.051431864500045776, -0.007887904532253742, -0.0013227559393271804, -0.07975440472364426, -0.029236797243356705, -0.005081911571323872, 0.05306585505604744, 0.058940447866916656, -0.01873255893588066, 0.006414393894374371, 0.023653987795114517, 0.00590377114713192, 0.030170507729053497, -0.0026284910272806883, -0.04719126224517822, -0.04248381033539772, 0.03433329612016678, 0.030053792521357536, 0.002331843599677086, 0.019014617428183556, 0.004364608321338892, 0.02888665534555912, 0.0005024162819609046, 0.017477884888648987, -0.00565575435757637, -0.021728212013840675, -0.026630189269781113, 0.015960605815052986, -0.012935775332152843, 0.0022540343925356865, -0.01680678129196167, 0.026591284200549126, 0.005480683874338865, 0.02557976543903351, 0.021630950272083282, -0.030656814575195312, 0.037153881043195724, -0.048552922904491425, -0.0027500679716467857, 0.015892524272203445, 0.05851249769330025, 0.01687486469745636, -0.053260378539562225, 0.013743044808506966, -0.031999021768569946, 0.04275614023208618, -0.014997717924416065, 0.014540589414536953, 0.015026896260678768, 0.028400348499417305, 0.045051511377096176, -0.025171266868710518, 0.06796631217002869, 0.005402874667197466, -0.019831612706184387, 0.010095740668475628, -0.003768881782889366, -0.023517822846770287, 0.005135405343025923, 0.0012643990339711308, -0.04544055834412575, -0.005932949483394623, -0.04598522186279297, -0.08107715845108032, -0.027116496115922928, -0.010017931461334229, -0.013295642100274563, -0.01096136774867773, -0.027194306254386902, -0.022019995376467705, 0.003255827585235238, 0.038554444909095764, -0.015260323882102966, -0.04042186588048935, 0.0056168497540056705, 0.009940122254192829, 0.05263790488243103, -0.005062459502369165, -0.06065225228667259, -0.003170723794028163, 0.02528798207640648, 0.033127255737781525, -0.009959573857486248, -0.014715660363435745, 0.03915746510028839, 0.027330471202731133, -0.032310258597135544, 0.0248405784368515, -0.017156923189759254, -0.014618398621678352, 0.01694294810295105, -0.06742165237665176, -0.009507308714091778, 0.0032363752834498882, -0.057851120829582214, -0.05711193382740021, 0.07263486087322235, 0.0008194278343580663, -0.0024631465785205364, -0.09547185897827148, -0.02526852861046791, 0.06286980956792831, 0.02554086036980152, -0.050887200981378555, -0.0063268584199249744, -0.022292328998446465, -0.03929363191127777, 0.01562991738319397, -0.009517034515738487, -0.018421322107315063, -0.04540165141224861, 0.03814594820141792, -0.01655390113592148, 0.045362748205661774, -0.05446642264723778, -0.03670647740364075, -0.031006956472992897, -0.06450380384922028, 0.022603563964366913, 0.01956900767982006, -0.028847750276327133, -0.03546153008937836, -0.053260378539562225, 0.009390594437718391, 0.006900701206177473, 0.0234789177775383, 0.017263909801840782, 0.08955835551023483, -0.023673441261053085, 0.0011294487630948424, 0.017118018120527267, -0.021455880254507065, -0.012556455098092556, 0.022739730775356293, -0.0065554226748645306, 0.0234789177775383, -0.023303847759962082, 0.07438556849956512, -0.005932949483394623, -0.020502716302871704, 0.007693381980061531, -0.038943491876125336, -0.004260052461177111, 0.019617637619376183, 0.0029105492867529392, 0.022739730775356293, -0.07450228184461594, 0.015503478236496449, 0.017254184931516647, -0.025210171937942505, 0.0234789177775383, 0.032854922115802765, -0.023965224623680115, -0.002543387236073613, 0.028380895033478737, 0.01012491900473833, -0.016913769766688347, -0.0208139531314373, 0.0016619552625343204, 0.03871006518602371, 0.03057900443673134, -0.0034308983013033867, 0.03748456761240959, -0.014530862681567669, -0.006832617800682783, -0.0226424690335989, -0.03746511787176132, -0.00034953339491039515, -0.011146164499223232, 0.0027695202734321356, 0.005004102364182472, 0.02876994200050831 ]
30,156
networkx.readwrite.graphml
get_xml_type
Wrapper around the xml_type dict that raises a more informative exception message when a user attempts to use data of a type not supported by GraphML.
def get_xml_type(self, key): """Wrapper around the xml_type dict that raises a more informative exception message when a user attempts to use data of a type not supported by GraphML.""" try: return self.xml_type[key] except KeyError as err: raise TypeError( f"GraphML does not support type {key} as data values." ) from err
(self, key)
[ 0.06885617226362228, -0.026160994544625282, 0.042169421911239624, 0.027393806725740433, 0.024565590545535088, 0.002764762146398425, 0.012944525107741356, 0.026777401566505432, 0.08796475827693939, -0.023097094148397446, 0.003324513090774417, 0.015310436487197876, 0.041444238275289536, -0.0218098945915699, -0.012001787312328815, 0.024511203169822693, -0.04818844422698021, 0.0699802041053772, 0.054207466542720795, -0.030548354610800743, -0.030874688178300858, -0.002080370206385851, -0.022897668182849884, -0.027013085782527924, 0.03656737878918648, 0.036512989550828934, 0.022897668182849884, 0.0018299552612006664, 0.03569715842604637, -0.034790679812431335, -0.12146823853254318, -0.08752965182065964, 0.03988509252667427, 0.00230585690587759, -0.035515863448381424, 0.04652052000164986, -0.057362016290426254, 0.010678326711058617, 0.006245642900466919, -0.009536162950098515, -0.0032633256632834673, 0.00011734658619388938, -0.020794637501239777, -0.042205680161714554, 0.011421640403568745, 0.005651898682117462, -0.05660057067871094, 0.03600535914301872, -0.060444045811891556, -0.02880791388452053, 0.009608681313693523, -0.001502489554695785, -0.040936607867479324, 0.02842719294130802, -0.09964021295309067, 0.005869453772902489, -0.05435250326991081, 0.044743821024894714, -0.00020693225087597966, 0.07469390332698822, 0.025218255817890167, 0.059211231768131256, -0.0110590485855937, 0.011258473619818687, -0.013270857743918896, -0.016661090776324272, -0.04050149768590927, -0.05032773315906525, -0.006744206417351961, 0.02634229138493538, -0.017313756048679352, 0.033866070210933685, -0.03470002859830856, 0.04227819666266441, 0.06726077198982239, -0.029786912724375725, -0.03125540912151337, 0.02984130010008812, -0.019471177831292152, 0.030240152031183243, 0.01138538122177124, 0.0563104972243309, -0.002047510351985693, -0.039631277322769165, 0.006259240210056305, 0.05707194283604622, 0.013298052363097668, 0.029931949451565742, 0.004749951884150505, -0.0019625278655439615, -0.02442055381834507, -0.015083816833794117, -0.03720191493630409, 0.029678134247660637, 0.03286894038319588, -0.015972167253494263, 0.00821723509579897, -0.06990768760442734, 0.018338078632950783, -0.002816884545609355, 0.008611554279923439, 0.0256896261125803, 0.014240791089832783, -0.010297605767846107, -0.015527991577982903, -0.07846485823392868, 0.013180210255086422, -0.005647366400808096, 0.004326172638684511, 0.017649153247475624, -0.03850724548101425, -0.10914011299610138, 0.040864091366529465, 0.025889050215482712, 0.02023261971771717, 0.02380414865911007, -0.011947398073971272, 0.03564276918768883, 0.02068585902452469, 0.005765208974480629, 0.0005039458628743887, 0.027720138430595398, -0.0005509695038199425, 0.03948624059557915, 0.02030513808131218, 0.019162973389029503, 0.044743821024894714, 0.012627257965505123, 0.04376482591032982, 0.02623351290822029, -0.00045352295273914933, -0.0025494731962680817, 0.017395339906215668, 0.03221627697348595, 0.004079157020896673, 0.02322400175035, -0.023622851818799973, 0.01793922670185566, -0.014993168413639069, 0.04757203906774521, 0.0003722230903804302, 0.03453686460852623, 0.040972866117954254, -0.0031069579999893904, -0.04162553325295448, -0.010234151966869831, -0.03341282904148102, 0.01745879277586937, -0.014041365124285221, -0.041553013026714325, -0.015373890288174152, -0.0066898176446557045, -0.019054196774959564, -0.032905202358961105, 0.009472709149122238, -0.026795530691742897, 0.013986976817250252, 0.02904359996318817, -0.01992441713809967, -0.05330098792910576, -0.05123421549797058, 0.021755505353212357, 0.005860389210283756, -0.08049536496400833, 0.015120076015591621, -0.008434790186583996, 0.015926843509078026, -0.028028342872858047, 0.04253201186656952, -0.010388253256678581, -0.028898563235998154, -0.045251451432704926, -0.04503389447927475, -0.004557325039058924, 0.014603382907807827, 0.010932140983641148, 0.024710627272725105, 0.022788891568779945, 0.0513792522251606, 0.06570162624120712, 0.037673283368349075, 0.01769447699189186, -0.07371490448713303, -0.01250035036355257, -0.028517840430140495, 0.020287008956074715, 0.02860848978161812, -0.05119795352220535, 0.005751611664891243, 0.030929075554013252, 0.016407277435064316, -0.03080216981470585, -0.019126715138554573, 0.010116309858858585, 0.024855663999915123, -0.007664283271878958, 0.021483561024069786, 0.027520714327692986, -0.0696176141500473, 0.11044544726610184, 0.05504142865538597, 0.004122214857488871, 0.051052916795015335, 0.06207570806145668, -0.059936415404081345, -0.012146824039518833, 0.018183976411819458, -0.051596805453300476, -0.043438490480184555, -0.0202688779681921, 0.01615346223115921, -0.05246702581644058, 0.006037152837961912, 0.038362208753824234, 0.023640982806682587, -0.029714394360780716, -0.08172818273305893, -0.036331694573163986, -0.07048783451318741, -0.05054529011249542, 0.04579533636569977, 0.009617745876312256, 0.061060450971126556, -0.020903414115309715, 0.08071292191743851, -0.035443343222141266, -0.0011195020051673055, -0.05957382544875145, -0.0616043396294117, 0.027411935850977898, 0.04641174525022507, 0.019833767786622047, 0.02146543189883232, 0.012835747562348843, -0.019289880990982056, -0.06287340819835663, 0.03103785403072834, -0.018582826480269432, 0.06711573153734207, 0.006871113553643227, 0.005343696102499962, -0.04623044654726982, -0.05910245329141617, 0.018836641684174538, -0.04557778313755989, -0.0190360676497221, -0.007084136363118887, 0.04757203906774521, -0.028989210724830627, 0.011068113148212433, 0.019362399354577065, -0.03323153406381607, 0.022009318694472313, -0.03100159391760826, 0.056165460497140884, -0.05268458276987076, -0.08303350955247879, -0.008810979314148426, 0.047245703637599945, -0.058667346835136414, -0.03406549617648125, 0.07556412369012833, -0.0064496006816625595, 0.05391739308834076, -0.011349122039973736, -0.04514267295598984, 0.03397484868764877, 0.07052409648895264, 0.0029483241960406303, 0.0029324607457965612, 0.06675314158201218, 0.08361365646123886, -0.01030667033046484, 0.003671241458505392, 0.013742227107286453, -0.015618639998137951, 0.03598723188042641, -0.023060835897922516, 0.025055089965462685, 0.02322400175035, -0.014802807942032814, -0.033866070210933685, 0.011938333511352539, 0.0690012127161026, -0.044127415865659714, -0.017748866230249405, -0.01849217899143696, -0.021900542080402374, 0.005946504883468151, 0.006023555528372526, 0.011684519238770008, 0.014666836708784103, -0.0609879307448864, 0.025798402726650238, -0.04568656161427498, -0.02438429556787014, 0.02287953905761242, -0.03818091005086899, 0.07128553837537766, 0.03435556963086128, 0.07563664019107819, 0.015056622214615345, 0.05065406858921051, 0.002660516882315278, 0.0015296839410439134, 0.00017463891708757728, 0.03103785403072834, -0.027901435270905495, -0.015355760231614113, 0.08339609950780869, -0.08368617296218872, 0.03792709857225418, -0.015237918123602867, 0.020722119137644768, -0.0010628470918163657, 0.00858889240771532, 0.014648706652224064, 0.009545227512717247, 0.03187181428074837, 0.09492652118206024, -0.0133071169257164, -0.007700542453676462, -0.008430258370935917, -0.02826402708888054, -0.021120969206094742, 0.008869900368154049, 0.0022741302382200956, -0.05069032683968544, 0.025236384943127632, -0.029605615884065628, -0.007696009706705809, -0.0235322043299675, 0.014340504072606564, 0.03480880707502365, -0.04818844422698021, 0.02507321909070015, 0.026831788942217827, -0.02538142167031765, 0.008516374044120312, 0.012455026619136333, 0.0017064474523067474, 0.0032248003408312798, 0.012255601584911346, -0.040827829390764236, 0.05641927570104599, 0.020160101354122162, -0.004926715511828661, -0.05304717272520065, 0.059356268495321274, 0.034826938062906265, -0.04445374757051468, 0.004745419602841139, 0.005493265110999346, 0.010080050677061081, 0.03789083659648895, -0.03607787936925888, 0.024166740477085114, 0.02534516341984272, -0.024402424693107605, 0.08216328918933868, 0.05660057067871094, 0.011566677130758762, -0.0040315669029951096, 0.021628597751259804, -0.0340111069381237, 0.0018152249976992607, 0.0168786458671093, -0.011394445784389973, 0.08049536496400833, -0.007560038007795811, 0.0065538459457457066, -0.00433750357478857, -0.11320114135742188, 0.004230992402881384, 0.011158760637044907, 0.02418486960232258, 0.017685413360595703, 0.0143858278170228, -0.030929075554013252, -0.0386885404586792, -0.015083816833794117, 0.006698882672935724, -0.02095780335366726, 0.05707194283604622, -0.007102265954017639, -0.042785827070474625, -0.0036984358448535204, -0.02150169014930725, -0.030874688178300858, 0.00927781593054533, 0.013352441601455212, -0.020975932478904724, -0.007949824444949627, 0.01057861465960741, -0.01395978219807148, -0.006621832028031349, -0.0007744733011350036, -0.04637548327445984, -0.008942418731749058, 0.018428726121783257, -0.02623351290822029, -0.045940373092889786, -0.1101553738117218, 0.03756450489163399, 0.019108586013317108, 0.02654171548783779, -0.04557778313755989, -0.002049776492640376, -0.02695869654417038, -0.052938394248485565, 0.08644187450408936, -0.055585313588380814, -0.03192620351910591, -0.06733328849077225, 0.028735395520925522, 0.01332524698227644, 0.0071838488802313805, 0.04267704859375954, 0.0031069579999893904, 0.020087582990527153, -0.0014798275660723448, -0.0030639003962278366, 0.023967314511537552, 0.006893775425851345, -0.05768834799528122, 0.021682986989617348, -0.016244109719991684, 0.008117523044347763, -0.05830475315451622, 0.07483893632888794, 0.00876565556973219, -0.021447302773594856, -0.007546440698206425, -0.050944142043590546, -0.0012781359255313873, -0.017884837463498116, -0.04960254952311516, -0.036676157265901566, -0.0374557264149189, 0.0047862110659480095, -0.037056878209114075, 0.023568464443087578, 0.02935180254280567, 0.00488592404872179, 0.0010373523691669106, -0.057362016290426254, -0.02764762006700039, 0.07291720062494278, -0.007664283271878958, -0.059863898903131485, -0.039051130414009094, 0.03974005579948425, 0.09739214181900024, -0.008307883515954018, 0.02811899036169052, -0.015527991577982903, -0.07259086519479752, -0.0196524728089571, 0.05971886217594147, 0.014576188288629055, -0.02287953905761242, 0.008103925734758377, -0.056781869381666183, -0.03535269573330879, 0.009205297566950321, 0.022371910512447357, -0.0018537503201514482, -0.026215383782982826, 0.02461997978389263, 0.014014171436429024, 0.021719245240092278, 0.010796169750392437, 0.05598416551947594, -0.04626670852303505, -0.0436197891831398, 0.02665049396455288, -0.004344302229583263, 0.05141551047563553, -0.011249409057199955, -0.03212562948465347, 0.026396678760647774, -0.007179316598922014, -0.020395785570144653, 0.0019511968130245805, -0.01790296845138073, -0.00884723849594593, -0.01257286872714758, -0.027702009305357933, -0.07364238053560257, 0.03879731893539429, -0.01849217899143696, 0.0221180971711874, 0.03305023908615112, 0.016815192997455597, 0.0789724811911583, -0.016960229724645615, 0.03014950454235077, 0.0021925470791757107, -0.01945304684340954, 0.03247009217739105, 0.02153795026242733, -0.07034280151128769, -0.016833322122693062, -0.04137171804904938, 0.05243076756596565, -0.04260453209280968, 0.04042898118495941, 0.0671519935131073, 0.05786964297294617, -0.04561404138803482, -0.02692243829369545, -0.003952249884605408, 0.059174973517656326, -0.00032066708081401885, 0.016661090776324272, -0.03814465180039406, 0.03011324442923069, 0.00006479911098722368, -0.002517746528610587, 0.0113672511652112, 0.010279475711286068, 0.005964634474366903, 0.02538142167031765, -0.00666262349113822, -0.002073571551591158, 0.030276410281658173, -0.04800714924931526, -0.021828023716807365, -0.04380108416080475, 0.04550526291131973, 0.020123841241002083, 0.024221129715442657, -0.005742546636611223, 0.0025132140144705772, 0.002923395950347185, -0.05819597467780113, 0.008430258370935917, 0.05834101140499115, -0.042060643434524536, 0.012255601584911346, -0.004958441946655512, -0.04231445863842964, -0.003072964958846569, -0.0006107405060902238, 0.06635428965091705, 0.00612326804548502, 0.0004960141959600151, 0.02915237657725811, -0.019108586013317108, -0.044635042548179626, -0.049131181091070175, 0.031291667371988297, -0.012754164636135101, -0.005139737855643034, 0.016833322122693062, 0.03435556963086128, -0.003999840002506971, 0.005207723937928677, 0.026976825669407845, -0.013851004652678967, -0.006925502326339483, -0.03535269573330879, -0.02561710774898529, 0.01831994764506817, -0.023205872625112534, -0.02335090935230255, -0.04347475245594978, -0.0009013804374262691, -0.023985443636775017, 0.014793743379414082, -0.02449307218194008, -0.03350347653031349, 0.02665049396455288, -0.058558568358421326, 0.015328566543757915, 0.025889050215482712, 0.002667315537109971, 0.048514775931835175, -0.040320202708244324, -0.03752824664115906, -0.030675262212753296, 0.04249575361609459, 0.03850724548101425, 0.019489306956529617, 0.04303964227437973, 0.00006972101255087182, -0.022136226296424866, 0.01899980753660202, -0.015564250759780407, 0.03778206184506416, -0.04884110763669014, -0.015147270634770393, 0.0002543807786423713, -0.04369230568408966, 0.040864091366529465, 0.006771401036530733, 0.06889243423938751, -0.0680222138762474, -0.015709288418293, -0.016661090776324272, 0.03179929777979851, 0.018084263429045677, 0.03495384380221367, 0.0021562878973782063, 0.03261512890458107, 0.0021007659379392862, -0.006064346991479397, 0.06196692958474159, 0.032560739666223526, -0.049058664590120316, -0.005842259619385004, 0.004169804975390434, -0.003156814491376281, 0.02946057915687561, 0.021429171785712242, -0.01219214778393507, -0.007075071334838867, -0.009527098387479782, -0.018537502735853195, -0.0058060004375875, 0.02064960077404976, 0.020069453865289688, -0.023786019533872604, -0.010605808347463608, -0.016815192997455597, -0.003408362390473485, -0.01889103092253208, -0.017340950667858124, 0.00004111025555175729, -0.06519399583339691, 0.030602743849158287, -0.0199606753885746, 0.03723817318677902, -0.08491899073123932, -0.0538448765873909, 0.020141972228884697, 0.042169421911239624, 0.014023235999047756, 0.016588572412729263, 0.04641174525022507, -0.009545227512717247, 0.05431624501943588, -0.04862355440855026, 0.015047557651996613, 0.016652025282382965, 0.037165652960538864, 0.015627704560756683, -0.022625725716352463, 0.025526458397507668, -0.007269964553415775, -0.04158927500247955, -0.013035173527896404, 0.005769741255789995, -0.022661983966827393, 0.04191560670733452, 0.031436704099178314, -0.04884110763669014, 0.0036281836219131947, -0.06635428965091705, -0.049022406339645386, -0.0405377559363842, 0.01186581514775753, -0.003483146894723177, -0.0025970633141696453, 0.022281263023614883, -0.03185368701815605, -0.035751547664403915, -0.020903414115309715, 0.03399297595024109, -0.05460631847381592, -0.0028780719731003046, 0.0011047717416658998, 0.03299584984779358, -0.03876105695962906, -0.09594177454710007, -0.00515333516523242, 0.010950271040201187, 0.0168786458671093, -0.001060014357790351, 0.031744908541440964, 0.03595097362995148, 0.05496890842914581, -0.05007392168045044, 0.05050903186202049, -0.03625917434692383, -0.0008464251295663416, 0.013887263834476471, -0.054279983043670654, -0.022335652261972427, -0.049022406339645386, -0.026596104726195335, -0.05210443586111069, 0.011612000875175, -0.004067826084792614, 0.0022254069335758686, -0.11697209626436234, -0.022245002910494804, 0.06834854185581207, 0.03883357718586922, 0.018909160047769547, 0.007587232161313295, -0.03535269573330879, -0.03984883427619934, 0.028590358793735504, 0.03926868736743927, -0.038325946778059006, -0.011784232221543789, 0.039667535573244095, 0.013162080198526382, 0.02688617818057537, -0.0202688779681921, -0.05297465622425079, 0.01876412332057953, -0.026160994544625282, -0.04242323338985443, -0.014014171436429024, -0.060552820563316345, 0.027139991521835327, -0.024746887385845184, 0.019942546263337135, -0.01282668299973011, -0.01203804649412632, 0.03223440796136856, 0.04162553325295448, 0.01831994764506817, 0.04187934845685959, 0.02307896502315998, -0.05007392168045044, -0.0018072932725772262, 0.018582826480269432, 0.06156807765364647, -0.009898754768073559, -0.021936800330877304, 0.03879731893539429, 0.02115722931921482, 0.012364378198981285, -0.06131426617503166, 0.030294541269540787, 0.029478708282113075, 0.030058855190873146, -0.020087582990527153, 0.09188074618577957, -0.057470791041851044, -0.030276410281658173, 0.004985636565834284, -0.01957995444536209, 0.011330991983413696, 0.053518541157245636, -0.03778206184506416, 0.035171400755643845, 0.04684685543179512, 0.009454580023884773, -0.02733941748738289, 0.030439577996730804, 0.06272837519645691, -0.0018140918109565973, 0.05573035031557083, -0.01855563186109066, 0.03426492214202881, -0.010043791495263577, 0.040247682482004166, 0.0005291573470458388, -0.030620872974395752, -0.05272084102034569, -0.022371910512447357, -0.02592531032860279, -0.007106798235327005, 0.0018254228634759784 ]
30,157
networkx.readwrite.graphml
make_graph
null
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
(self, graph_xml, graphml_keys, defaults, G=None)
[ 0.020741894841194153, 0.00487899174913764, -0.026159701868891716, 0.007568121887743473, -0.028690647333860397, 0.026159701868891716, -0.06758417189121246, 0.07956662029027939, 0.06533004343509674, -0.008695184253156185, 0.031201820820569992, 0.03650099039077759, -0.021236220374703407, 0.06683279573917389, 0.006762371864169836, 0.0003667276760097593, -0.04011945053935051, 0.01625341922044754, 0.024577859789133072, -0.003658008063212037, -0.02716812491416931, -0.045636121183633804, -0.020939623937010765, -0.034029360860586166, 0.07845932990312576, 0.022541237995028496, -0.0029733674600720406, 0.027009939774870872, 0.029125653207302094, 0.04223516210913658, -0.06327365338802338, -0.048522982746362686, -0.046862050890922546, 0.03385140374302864, 0.028018364682793617, 0.0407719612121582, -0.06580460071563721, 0.06797963380813599, -0.07580974698066711, -0.02230396308004856, 0.07446517795324326, -0.02246214635670185, 0.02018824964761734, -0.017469460144639015, -0.03638235107064247, 0.00818108581006527, -0.03224978968501091, 0.02184918336570263, 0.014167366549372673, -0.06651642918586731, 0.0023962424602359533, -0.04911617189645767, -0.029105881229043007, 0.07565156370401382, -0.07256697118282318, 0.006979874800890684, -0.02303556352853775, 0.04199788719415665, -0.0036555363330990076, 0.024558085948228836, -0.0055364444851875305, -0.002755864290520549, 0.037094179540872574, 0.005477125756442547, -0.050342101603746414, 0.03385140374302864, -0.06948237866163254, -0.0606636144220829, -0.00013802493049297482, 0.023332159966230392, 0.00035622325958684087, 0.020198136568069458, 0.038023509085178375, 0.01079606730490923, 0.060742706060409546, 0.05793493986129761, -0.004018865525722504, -0.004908651579171419, -0.013732359744608402, 0.03420731797814369, -0.041958339512348175, 0.0034998238552361727, -0.05698583275079727, -0.013010645285248756, 0.0430656298995018, 0.016589561477303505, -0.0008780455100350082, 0.01916005276143551, 0.0502234622836113, -0.08114846050739288, -0.006539925467222929, -0.010059522464871407, -0.001393997692503035, 0.019960859790444374, 0.001263619284145534, -0.03369322046637535, -0.01614466868340969, -0.06940329074859619, 0.03391072526574135, 0.003408373799175024, -0.07758931815624237, 0.004874048754572868, -0.052042581140995026, -0.06283864378929138, -0.05326850712299347, -0.09158861637115479, -0.010657656006515026, -0.01542295329272747, -0.0011060531251132488, -0.03790487349033356, -0.07956662029027939, -0.07766840606927872, 0.08051571995019913, 0.05314986780285835, 0.014879195019602776, 0.03043067269027233, 0.016915814951062202, 0.015472385101020336, 0.04959072545170784, -0.026851756498217583, -0.060386791825294495, 0.01703445427119732, -0.009219168685376644, 0.040811505168676376, -0.012457000091671944, 0.001094312872737646, 0.07106421887874603, -0.006371854804456234, 0.053545329719781876, -0.013445651158690453, 0.023490343242883682, 0.013504969887435436, -0.0025037582963705063, 0.0008372636511921883, 0.015699775889515877, -0.053861696273088455, -0.09111405909061432, 0.044489286839962006, 0.02904656156897545, 0.0361253023147583, 0.001156103564426303, -0.04757387936115265, 0.04796933755278587, 0.05829085409641266, -0.09293317794799805, -0.013040304183959961, -0.017459573224186897, -0.02784040756523609, -0.062245454639196396, -0.041325606405735016, 0.027919499203562737, -0.014355209656059742, -0.04069286957383156, -0.014908854849636555, -0.014197025448083878, 0.03422709181904793, -0.04500338435173035, 0.07588883489370346, 0.011300278827548027, 0.017321161925792694, -0.02521059662103653, 0.04069286957383156, 0.061770904809236526, 0.024301037192344666, 0.009229055605828762, -0.01433543674647808, 0.03064817562699318, -0.07007557153701782, 0.02200736664235592, 0.018210947513580322, 0.0068019176833331585, -0.04219561815261841, -0.04947208613157272, -0.04674341157078743, -0.03337685018777847, -0.0472179651260376, 0.04524066299200058, 0.0018117026193067431, 0.009515764191746712, 0.07229015231132507, -0.00007449638360412791, -0.016579674556851387, 0.011942901648581028, -0.021809637546539307, -0.015452612191438675, 0.030766813084483147, 0.025922425091266632, 0.020662803202867508, 0.010805953294038773, -0.03764782473444939, 0.02837427891790867, -0.00018598993483465165, -0.0034578063059598207, 0.043144721537828445, 0.05647173523902893, -0.024360356852412224, 0.03650099039077759, 0.01656978763639927, -0.029956120997667313, 0.11112435162067413, 0.07557246834039688, 0.029382701963186264, 0.045517485588788986, -0.004038638435304165, 0.0038161922711879015, -0.00815636944025755, -0.034662097692489624, -0.0344841405749321, -0.04468701779842377, -0.015749208629131317, -0.004703506361693144, 0.0004835120344068855, 0.0016943003283813596, 0.04203743487596512, -0.02070234902203083, 0.023173974826931953, -0.06327365338802338, 0.03141932189464569, -0.026990167796611786, -0.03673826530575752, -0.015393293462693691, -0.004609584342688322, -0.045161571353673935, -0.04963027313351631, 0.038122374564409256, -0.0565112829208374, 0.03509710356593132, -0.05682764947414398, -0.016777403652668, 0.011023457162082195, 0.05876540392637253, -0.0011388021521270275, 0.021493269130587578, 0.006544868461787701, 0.019130393862724304, -0.022165551781654358, 0.02313442900776863, -0.019397329539060593, -0.015442726202309132, 0.0412069670855999, 0.032684795558452606, -0.022600557655096054, -0.07264606654644012, -0.015432839281857014, 0.0580931231379509, 0.02028711512684822, -0.0077263060957193375, -0.023925350978970528, -0.003161211032420397, 0.0022874907590448856, -0.0035344266798347235, -0.04000081121921539, 0.008532056584954262, 0.023055337369441986, -0.003774174489080906, 0.05196348577737808, -0.06983829289674759, -0.044133372604846954, 0.027187896892428398, -0.04638749733567238, 0.04136515036225319, 0.023411251604557037, -0.03580893203616142, 0.03395026922225952, 0.052200764417648315, -0.013188602402806282, 0.0024209588300436735, 0.02681221067905426, 0.003279849188402295, -0.03752918541431427, 0.1305019110441208, 0.07094558328390121, 0.015966711565852165, -0.038636475801467896, 0.04646658897399902, -0.01827026717364788, -0.009169736877083778, -0.01765730418264866, -0.031972967088222504, 0.017983557656407356, -0.01962471939623356, -0.03638235107064247, -0.017380481585860252, 0.02920474484562874, 0.015363633632659912, 0.018388904631137848, -0.012279042974114418, -0.005126154515892267, 0.0030697607435286045, -0.04310517758131027, 0.03832010552287102, 0.010618110187351704, -0.04456837847828865, 0.01977301575243473, -0.03535415232181549, -0.023945122957229614, 0.021513042971491814, -0.004589811433106661, 0.012259270064532757, 0.030984317883849144, 0.05409897491335869, -0.04041604697704315, 0.07786613702774048, -0.02262033149600029, -0.02335193194448948, -0.012812914326786995, 0.018082423135638237, -0.012694276869297028, 0.012862347066402435, 0.038794659078121185, -0.08375849574804306, 0.03468187153339386, 0.02799859084188938, 0.02598174288868904, -0.054217610508203506, 0.023411251604557037, 0.06746553629636765, -0.04116741940379143, 0.08810856193304062, 0.0035195969976484776, -0.006619017105549574, 0.03391072526574135, -0.05864676833152771, -0.013920203782618046, -0.026693573221564293, 0.04500338435173035, 0.004621942527592182, 0.032744117081165314, 0.037608277052640915, 0.0010801010066643357, 0.012457000091671944, 0.01249654684215784, -0.0002207471989095211, 0.003962018061429262, -0.03758850321173668, 0.045517485588788986, 0.020119044929742813, -0.024617405608296394, 0.04183970391750336, -0.042472440749406815, -0.009570140391588211, -0.01636217162013054, -0.049353450536727905, -0.03824101388454437, 0.018982095643877983, 0.020128929987549782, 0.005412863101810217, -0.030470218509435654, -0.0576581172645092, 0.03996126726269722, -0.048325251787900925, 0.03833987936377525, 0.017924239858984947, 0.011952788569033146, -0.008166255429387093, -0.014038842171430588, -0.02505241148173809, -0.025329234078526497, 0.002864615758880973, -0.008037731051445007, -0.03752918541431427, 0.03017362393438816, 0.01012378465384245, 0.0520821250975132, 0.008433192037045956, -0.028947696089744568, 0.01774628274142742, 0.059556327760219574, 0.03228933736681938, -0.023846257477998734, 0.034029360860586166, -0.050500284880399704, -0.06758417189121246, 0.044291555881500244, 0.006539925467222929, 0.04270971566438675, -0.04290744662284851, 0.022857606410980225, 0.03752918541431427, -0.03699531406164169, -0.025685148313641548, -0.009041211567819118, 0.020959397777915, 0.025922425091266632, 0.03849806264042854, -0.06564641743898392, 0.07584929466247559, 0.02127576619386673, 0.026100382208824158, -0.02453831396996975, 0.0026644140016287565, 0.0012951325625181198, -0.006292762700468302, 0.005976394284516573, -0.016638994216918945, -0.024676725268363953, 0.06821690499782562, 0.0092092826962471, -0.0273263081908226, 0.011072888970375061, -0.0599517859518528, -0.03673826530575752, -0.029857255518436432, 0.06244318559765816, 0.01807253807783127, 0.025349007919430733, -0.012526205740869045, 0.009298261255025864, 0.029540887102484703, 0.022580785676836967, 0.03432595729827881, 0.011072888970375061, -0.07359516620635986, -0.016896042972803116, 0.011715512722730637, 0.060584522783756256, 0.06718870997428894, 0.011171754449605942, 0.02380671165883541, -0.008195915259420872, -0.019891655072569847, 0.02633765898644924, 0.06256182491779327, -0.008279950357973576, -0.021295538172125816, 0.0034256752114742994, -0.03256615996360779, 0.026357430964708328, -0.10653701424598694, 0.026476068422198296, 0.002136721508577466, -0.00017764819494914263, 0.02588287927210331, -0.01012378465384245, 0.028394050896167755, 0.0036357634235173464, 0.005121211521327496, -0.04342154413461685, 0.0014582599978893995, -0.04207697883248329, 0.0018734933109954, -0.05224030837416649, 0.0030499878339469433, -0.0351959690451622, -0.06742598861455917, -0.01895243674516678, -0.05346623808145523, 0.022343508899211884, -0.01636217162013054, 0.0039397734217345715, -0.03689644858241081, 0.005323884543031454, 0.09839052706956863, 0.018547089770436287, -0.03349548950791359, -0.03106340952217579, 0.0013235562946647406, -0.02645629644393921, 0.035591430962085724, 0.06382729858160019, 0.052161216735839844, -0.04524066299200058, -0.027346082031726837, 0.030450444668531418, -0.033554807305336, 0.0398426279425621, 0.021967820823192596, 0.009678891859948635, -0.03499823808670044, -0.0331198014318943, 0.03675803914666176, -0.011933015659451485, 0.013000758364796638, -0.05793493986129761, -0.045517485588788986, -0.012338362634181976, 0.0136631540954113, 0.010232536122202873, -0.014305777847766876, -0.032487064599990845, 0.01831969991326332, -0.02562582865357399, 0.02319374866783619, 0.03909125551581383, 0.004100429359823465, 0.025131504982709885, 0.03420731797814369, -0.03521574288606644, -0.04638749733567238, 0.0015015134122222662, -0.027820633724331856, -0.04073241353034973, 0.003680252702906728, 0.029382701963186264, 0.04334245249629021, -0.01816151663661003, 0.009629459120333195, -0.01681695133447647, -0.016480809077620506, -0.059556327760219574, 0.0033935438841581345, -0.037193045020103455, -0.04310517758131027, 0.0018846156308427453, 0.0379839651286602, 0.05243803933262825, -0.025704922154545784, 0.029105881229043007, 0.021809637546539307, -0.022541237995028496, -0.018408678472042084, -0.03446436673402786, 0.016787290573120117, 0.025171050801873207, 0.011755058541893959, -0.037193045020103455, 0.010885045863687992, 0.024933774024248123, -0.008838538080453873, -0.036362577229738235, 0.04002058506011963, 0.0001347036741208285, -0.015304314903914928, 0.02194804884493351, -0.024775588884949684, 0.0685332790017128, -0.016737857833504677, 0.00013624844723381102, 0.036303259432315826, 0.02463717944920063, 0.0029016900807619095, 0.040613774210214615, -0.003630820196121931, 0.030924998223781586, -0.008571602404117584, -0.025803785771131516, 0.07992253452539444, 0.06094043701887131, -0.0805552676320076, -0.021255992352962494, -0.01369281392544508, -0.009664061479270458, -0.0729624330997467, 0.01589750498533249, 0.05852812901139259, -0.005323884543031454, 0.04575476050376892, 0.017894579097628593, 0.05698583275079727, -0.07308106869459152, -0.028947696089744568, 0.04393564164638519, -0.02908610738813877, 0.006124692037701607, 0.07932934165000916, -0.02188872918486595, -0.014918740838766098, -0.034602779895067215, 0.03833987936377525, 0.001725195674225688, -0.00196123612113297, 0.00395954679697752, -0.03478073701262474, 0.01177483145147562, 0.05105393007397652, -0.012466887012124062, -0.018912890926003456, -0.02841382473707199, -0.02655516192317009, -0.0003277995274402201, -0.026733119040727615, -0.026792436838150024, 0.03764782473444939, -0.03074704110622406, 0.014088273979723454, 0.017380481585860252, -0.004495889414101839, 0.017785828560590744, -0.02453831396996975, -0.03173569217324257, -0.05263577029109001, 0.025230368599295616, 0.03741054609417915, 0.008759446442127228, 0.06248273327946663, 0.00913513358682394, -0.022818060591816902, 0.048364799469709396, 0.026120154187083244, 0.010029862634837627, -0.02459763176739216, -0.0026026233099400997, -0.008591375313699245, 0.011844037100672722, -0.0389132983982563, 0.0047850701957941055, 0.024834908545017242, -0.048839349299669266, -0.02143394947052002, -0.032744117081165314, -0.06778190284967422, 0.02380671165883541, 0.0062235570512712, 0.047652970999479294, 0.002669357229024172, 0.01584807224571705, -0.0070787398144602776, -0.024301037192344666, 0.013010645285248756, -0.009031325578689575, 0.01863606832921505, 0.013574175536632538, -0.018725046887993813, -0.02706925943493843, 0.01693558879196644, -0.01402895525097847, -0.03033180721104145, 0.04057423025369644, 0.021987594664096832, -0.0118044912815094, 0.009332863613963127, -0.03110295534133911, -0.04559657722711563, -0.021394403651356697, 0.005753947887569666, 0.0294024758040905, -0.009975486434996128, -0.02406376041471958, -0.00619884068146348, 0.036006662994623184, 0.03790487349033356, -0.051528479903936386, 0.031023863703012466, 0.011606760323047638, 0.036263711750507355, -0.04401473328471184, 0.0794084370136261, 0.05746038630604744, 0.015917278826236725, -0.020524391904473305, -0.06762371957302094, 0.009886507876217365, -0.009273544885218143, -0.04425201192498207, 0.00914007704705, -0.03549256548285484, 0.0875549167394638, -0.009678891859948635, 0.016164440661668777, -0.010825726203620434, -0.03598688915371895, 0.0057588908821344376, 0.013089736923575401, -0.025329234078526497, 0.03513665124773979, 0.042472440749406815, -0.0365603081882, -0.01807253807783127, -0.016016144305467606, -0.04595249146223068, -0.028591781854629517, 0.007701590191572905, 0.04860207438468933, 0.006668449845165014, -0.06125680357217789, 0.01019299030303955, 0.008097050711512566, -0.02556651085615158, 0.01045992597937584, -0.011211300268769264, -0.03151818737387657, -0.03950648754835129, 0.036777809262275696, -0.023688074201345444, -0.005061892326921225, -0.011656193062663078, 0.030312035232782364, 0.0014236571732908487, 0.005007516592741013, 0.02127576619386673, 0.016550015658140182, 0.08589398115873337, -0.009130190126597881, -0.026278339326381683, -0.02853246219456196, -0.026891302317380905, 0.005585877224802971, -0.034701645374298096, 0.0071973782032728195, 0.0382014662027359, -0.002324565313756466, 0.012239497154951096, 0.03881443291902542, -0.06315501779317856, -0.021097809076309204, -0.05144938826560974, 0.0019785375334322453, -0.027444947510957718, -0.032842978835105896, -0.04207697883248329, -0.019486308097839355, -0.05224030837416649, -0.042472440749406815, 0.04694114252924919, 0.017934126779437065, -0.04638749733567238, -0.04172106459736824, 0.06952192634344101, 0.0017944012070074677, -0.013831225223839283, -0.02629811130464077, -0.03064817562699318, 0.028967469930648804, 0.0014112991048023105, 0.013702700845897198, 0.004705978091806173, 0.01748923398554325, 0.028947696089744568, -0.07058966904878616, -0.01651046797633171, 0.01625341922044754, 0.012407568283379078, 0.029105881229043007, 0.012091199867427349, -0.0076719303615391254, -0.08360031247138977, 0.004483531694859266, -0.06936374306678772, 0.030410898849368095, 0.0016164440894499421, 0.017469460144639015, 0.06414366513490677, 0.010321514680981636, 0.04646658897399902, -0.048325251787900925, -0.054692164063453674, 0.013534629717469215, 0.021097809076309204, 0.009075814858078957, 0.03122159279882908, -0.018250495195388794, -0.025546737015247345, -0.04840434342622757, -0.006208727136254311, -0.005066835321485996, -0.03422709181904793, 0.03618462011218071, 0.02975839003920555, -0.039526261389255524, 0.051686666905879974, 0.005402976647019386, -0.011063002981245518, -0.010548904538154602, 0.053505782037973404, 0.03280343487858772, 0.013989409431815147, 0.02619924768805504, -0.045992035418748856, 0.0035937458742409945, -0.07778704911470413, 0.028117230162024498, 0.00486663356423378, -0.00394471688196063, -0.04959072545170784, -0.020366206765174866, 0.0282556414604187, 0.045517485588788986, 0.046308405697345734 ]
30,158
networkx.readwrite.graphml
GraphMLWriter
null
class GraphMLWriter(GraphML): def __init__( self, graph=None, encoding="utf-8", prettyprint=True, infer_numeric_types=False, named_key_ids=False, edge_id_from_attribute=None, ): self.construct_types() from xml.etree.ElementTree import Element self.myElement = Element self.infer_numeric_types = infer_numeric_types self.prettyprint = prettyprint self.named_key_ids = named_key_ids self.edge_id_from_attribute = edge_id_from_attribute self.encoding = encoding self.xml = self.myElement( "graphml", { "xmlns": self.NS_GRAPHML, "xmlns:xsi": self.NS_XSI, "xsi:schemaLocation": self.SCHEMALOCATION, }, ) self.keys = {} self.attributes = defaultdict(list) self.attribute_types = defaultdict(set) if graph is not None: self.add_graph_element(graph) def __str__(self): from xml.etree.ElementTree import tostring if self.prettyprint: self.indent(self.xml) s = tostring(self.xml).decode(self.encoding) return s def attr_type(self, name, scope, value): """Infer the attribute type of data named name. Currently this only supports inference of numeric types. If self.infer_numeric_types is false, type is used. Otherwise, pick the most general of types found across all values with name and scope. This means edges with data named 'weight' are treated separately from nodes with data named 'weight'. """ if self.infer_numeric_types: types = self.attribute_types[(name, scope)] if len(types) > 1: types = {self.get_xml_type(t) for t in types} if "string" in types: return str elif "float" in types or "double" in types: return float else: return int else: return list(types)[0] else: return type(value) def get_key(self, name, attr_type, scope, default): keys_key = (name, attr_type, scope) try: return self.keys[keys_key] except KeyError: if self.named_key_ids: new_id = name else: new_id = f"d{len(list(self.keys))}" self.keys[keys_key] = new_id key_kwargs = { "id": new_id, "for": scope, "attr.name": name, "attr.type": attr_type, } key_element = self.myElement("key", **key_kwargs) # add subelement for data default value if present if default is not None: default_element = self.myElement("default") default_element.text = str(default) key_element.append(default_element) self.xml.insert(0, key_element) return new_id def add_data(self, name, element_type, value, scope="all", default=None): """ Make a data element for an edge or a node. Keep a log of the type in the keys table. """ if element_type not in self.xml_type: raise nx.NetworkXError( f"GraphML writer does not support {element_type} as data values." ) keyid = self.get_key(name, self.get_xml_type(element_type), scope, default) data_element = self.myElement("data", key=keyid) data_element.text = str(value) return data_element def add_attributes(self, scope, xml_obj, data, default): """Appends attribute data to edges or nodes, and stores type information to be added later. See add_graph_element. """ for k, v in data.items(): self.attribute_types[(str(k), scope)].add(type(v)) self.attributes[xml_obj].append([k, v, scope, default.get(k)]) def add_nodes(self, G, graph_element): default = G.graph.get("node_default", {}) for node, data in G.nodes(data=True): node_element = self.myElement("node", id=str(node)) self.add_attributes("node", node_element, data, default) graph_element.append(node_element) def add_edges(self, G, graph_element): if G.is_multigraph(): for u, v, key, data in G.edges(data=True, keys=True): edge_element = self.myElement( "edge", source=str(u), target=str(v), id=str(data.get(self.edge_id_from_attribute)) if self.edge_id_from_attribute and self.edge_id_from_attribute in data else str(key), ) default = G.graph.get("edge_default", {}) self.add_attributes("edge", edge_element, data, default) graph_element.append(edge_element) else: for u, v, data in G.edges(data=True): if self.edge_id_from_attribute and self.edge_id_from_attribute in data: # select attribute to be edge id edge_element = self.myElement( "edge", source=str(u), target=str(v), id=str(data.get(self.edge_id_from_attribute)), ) else: # default: no edge id edge_element = self.myElement("edge", source=str(u), target=str(v)) default = G.graph.get("edge_default", {}) self.add_attributes("edge", edge_element, data, default) graph_element.append(edge_element) def add_graph_element(self, G): """ Serialize graph G in GraphML to the stream. """ if G.is_directed(): default_edge_type = "directed" else: default_edge_type = "undirected" graphid = G.graph.pop("id", None) if graphid is None: graph_element = self.myElement("graph", edgedefault=default_edge_type) else: graph_element = self.myElement( "graph", edgedefault=default_edge_type, id=graphid ) default = {} data = { k: v for (k, v) in G.graph.items() if k not in ["node_default", "edge_default"] } self.add_attributes("graph", graph_element, data, default) self.add_nodes(G, graph_element) self.add_edges(G, graph_element) # self.attributes contains a mapping from XML Objects to a list of # data that needs to be added to them. # We postpone processing in order to do type inference/generalization. # See self.attr_type for xml_obj, data in self.attributes.items(): for k, v, scope, default in data: xml_obj.append( self.add_data( str(k), self.attr_type(k, scope, v), str(v), scope, default ) ) self.xml.append(graph_element) def add_graphs(self, graph_list): """Add many graphs to this GraphML document.""" for G in graph_list: self.add_graph_element(G) def dump(self, stream): from xml.etree.ElementTree import ElementTree if self.prettyprint: self.indent(self.xml) document = ElementTree(self.xml) document.write(stream, encoding=self.encoding, xml_declaration=True) def indent(self, elem, level=0): # in-place prettyprint formatter i = "\n" + level * " " if len(elem): if not elem.text or not elem.text.strip(): elem.text = i + " " if not elem.tail or not elem.tail.strip(): elem.tail = i for elem in elem: self.indent(elem, level + 1) if not elem.tail or not elem.tail.strip(): elem.tail = i
(graph=None, encoding='utf-8', prettyprint=True, infer_numeric_types=False, named_key_ids=False, edge_id_from_attribute=None)
[ 0.05693386122584343, -0.0037778590340167284, 0.005546713247895241, 0.0410064272582531, 0.02235211804509163, -0.0042168446816504, -0.08155837655067444, 0.010700921528041363, 0.021029995754361153, -0.018044892698526382, -0.019315369427204132, -0.021876979619264603, 0.01867496781051159, 0.058214664459228516, -0.021856321021914482, 0.048298753798007965, 0.007013441529124975, 0.0019186256686225533, 0.026566380634903908, 0.041522879153490067, -0.005254916846752167, -0.04648083448410034, -0.00784493237733841, -0.0057894461788237095, 0.04334079846739769, -0.0185613464564085, 0.0025319145061075687, 0.012146991677582264, 0.016702113673090935, 0.014687944203615189, -0.08036020398139954, -0.11667722463607788, -0.02968575991690159, -0.04722452908754349, 0.023901479318737984, -0.0006675164331682026, -0.05007535219192505, 0.03224737197160721, -0.06023916229605675, -0.02150513418018818, 0.05259564891457558, 0.01059763040393591, -0.004312388598918915, -0.05148010700941086, -0.0077881221659481525, 0.05263696610927582, -0.02355029061436653, 0.0832110270857811, -0.025368208065629005, -0.06255287677049637, 0.0305947195738554, -0.010948819108307362, 0.004103224724531174, 0.12023042887449265, -0.04615030437707901, 0.0011800967622548342, -0.031834207475185394, 0.03848613053560257, 0.039828911423683167, -0.004090313334017992, 0.0029050521552562714, 0.009977886453270912, 0.0367715060710907, 0.007622857112437487, -0.05061246454715729, 0.026669669896364212, -0.07217957079410553, -0.038362182676792145, -0.02547149732708931, 0.03249526768922806, 0.0034266705624759197, -0.025078993290662766, 0.046893998980522156, 0.0464395210146904, 0.006052837707102299, 0.024748463183641434, -0.0015622725477442145, -0.0066261012107133865, -0.00967317819595337, -0.006827518343925476, -0.005216182675212622, 0.047431111335754395, -0.00010934293823083863, -0.03427186980843544, 0.06614739447832108, 0.020131366327404976, -0.0019005497451871634, 0.03964298963546753, 0.00943560991436243, -0.05643806234002113, -0.02551281452178955, 0.05061246454715729, 0.020596174523234367, 0.05048851668834686, 0.02381884679198265, -0.03972562029957771, -0.022723963484168053, -0.0851115733385086, 0.033610809594392776, 0.019026154652237892, -0.024851754307746887, 0.022455409169197083, -0.02468648925423622, -0.03991154581308365, -0.044869501143693924, -0.051975902169942856, -0.038713373243808746, -0.01882990263402462, 0.007390453014522791, -0.00883652362972498, -0.07226220518350601, -0.059867314994335175, 0.07978177070617676, 0.015256043523550034, 0.01258081290870905, 0.018282461911439896, -0.03053274378180504, 0.01430576853454113, 0.052554331719875336, -0.015039132907986641, -0.009239356964826584, 0.00207227049395442, -0.010029531084001064, 0.029375888407230377, -0.010458188131451607, -0.0014886779244989157, 0.06284209340810776, 0.019552938640117645, 0.02464517205953598, -0.038362182676792145, -0.00141766550950706, -0.02270330674946308, -0.002796596847474575, 0.02106098271906376, 0.056190166622400284, -0.058503877371549606, -0.046315569430589676, 0.004157452378422022, -0.012539496645331383, 0.09800226241350174, 0.026793619617819786, -0.04615030437707901, 0.045985039323568344, 0.020306961610913277, -0.09973754733800888, -0.02945852093398571, -0.043712642043828964, -0.009084421209990978, -0.056520696729421616, -0.0938706323504448, 0.003702973248437047, -0.05276091396808624, -0.04615030437707901, -0.02406674437224865, 0.023075152188539505, 0.009394293650984764, -0.061850499361753464, 0.0594954714179039, -0.003733960445970297, -0.011826790869235992, -0.04272105172276497, -0.030966565012931824, 0.06424684077501297, -0.010499504394829273, 0.021649740636348724, 0.013995896093547344, 0.031544994562864304, -0.02662835456430912, 0.01626829244196415, 0.025368208065629005, 0.017487123608589172, -0.05457882955670357, -0.050860363990068436, 0.016072040423750877, -0.014780906029045582, 0.04189472645521164, 0.0701550766825676, 0.025285575538873672, 0.02600860968232155, 0.06978322565555573, -0.0073749590665102005, -0.0246658306568861, -0.03573859855532646, 0.016361253336071968, 0.012622129172086716, -0.02609124220907688, 0.016609152778983116, -0.012363902293145657, 0.043506063520908356, -0.021339867264032364, 0.025987951084971428, -0.025636762380599976, 0.009079257026314735, 0.03699874505400658, 0.024252668023109436, -0.018396081402897835, 0.01907780021429062, -0.030408795922994614, -0.0036564923357218504, 0.09097848832607269, 0.050281934440135956, -0.015896445140242577, 0.058793094009160995, -0.01646454446017742, -0.0021264981478452682, 0.019243065267801285, -0.013107595965266228, -0.030388137325644493, -0.043464746326208115, -0.02119526080787182, -0.001424121204763651, -0.02072012424468994, 0.058214664459228516, 0.029355229809880257, 0.008862346410751343, -0.05135615915060043, -0.080318883061409, 0.02774389460682869, -0.052513014525175095, -0.029789051041007042, 0.0014499438693746924, -0.0005451814504340291, -0.04309289902448654, -0.04784427210688591, 0.03164828568696976, -0.06317262351512909, 0.07792253792285919, -0.04507608339190483, 0.018881548196077347, 0.03090459108352661, 0.06548633426427841, 0.01442971732467413, 0.04784427210688591, 0.03090459108352661, 0.015472954139113426, -0.032185398042201996, -0.010380719788372517, 0.011764816008508205, -0.017073960974812508, -0.015472954139113426, -0.006977289915084839, -0.02945852093398571, -0.03925048187375069, -0.011258691549301147, -0.005231676157563925, 0.02553347311913967, 0.03394133970141411, 0.016784746199846268, -0.01836509443819523, -0.026132559403777122, -0.02239343337714672, -0.00665192399173975, -0.015658877789974213, 0.02027597278356552, 0.023715555667877197, -0.025987951084971428, -0.05742965638637543, -0.011506589129567146, 0.02522359974682331, -0.01867496781051159, 0.029603127390146255, 0.012766736559569836, -0.01441938802599907, 0.06499053537845612, 0.05445488169789314, -0.021102299913764, -0.005334966816008091, 0.009544065222144127, -0.02522359974682331, -0.023013178259134293, 0.11246296763420105, 0.027124149724841118, -0.013747998513281345, 0.02079242654144764, 0.0005664851632900536, -0.012911343015730381, -0.011496259830892086, 0.0032898103818297386, -0.03563530743122101, 0.015390321612358093, -0.02148447558283806, -0.04057260602712631, -0.020110707730054855, 0.03972562029957771, -0.026793619617819786, -0.011785474605858326, -0.019026154652237892, -0.00428398372605443, 0.011021122336387634, -0.020895717665553093, 0.021174602210521698, 0.0032175066880881786, -0.03774243965744972, 0.036358341574668884, 0.015658877789974213, -0.03003694862127304, 0.030656693503260612, -0.013985566794872284, 0.01838575303554535, 0.02890074998140335, 0.06205708160996437, -0.010008873417973518, 0.15130028128623962, -0.0008908826857805252, -0.02239343337714672, 0.012622129172086716, 0.03885797783732414, -0.012715090997517109, 0.0168673787266016, 0.029954316094517708, -0.059330206364393234, 0.040097467601299286, -0.014450374990701675, 0.04073787108063698, -0.028962725773453712, 0.013376151211559772, 0.03294974938035011, -0.06205708160996437, 0.10469549894332886, 0.06532106548547745, -0.04276236891746521, 0.01389260496944189, -0.016350924968719482, -0.05044719949364662, 0.00494762696325779, -0.011083097197115421, 0.09378799796104431, 0.0316895991563797, 0.04924902692437172, -0.04408448934555054, -0.021071312949061394, -0.017032643780112267, -0.014977158047258854, 0.03910587728023529, -0.045117396861314774, 0.034953586757183075, -0.004717804957181215, -0.04338211193680763, 0.008273588493466377, -0.04199801757931709, 0.02799179218709469, 0.02836363948881626, -0.026359798386693, 0.003948288969695568, 0.014409058727324009, 0.0005797193152830005, -0.0018192082643508911, -0.011692512780427933, -0.019222408533096313, 0.07746805995702744, -0.016805404797196388, 0.05614884942770004, 0.00664675934240222, 0.03367278352379799, 0.02266198955476284, -0.046563468873500824, 0.011289678514003754, -0.013221215456724167, -0.043175533413887024, 0.031007882207632065, -0.011826790869235992, 0.032722506672143936, 0.005582864861935377, 0.040056150406599045, 0.02019334025681019, -0.017197908833622932, 0.014068199321627617, 0.0192327369004488, 0.06424684077501297, -0.03026418946683407, 0.03237131983041763, -0.06858505308628082, -0.03673018887639046, -0.02662835456430912, -0.0010613123886287212, 0.019284382462501526, -0.020296631380915642, 0.05994994938373566, 0.017755679786205292, -0.04821611940860748, -0.001776600838638842, 0.011527247726917267, -0.0009786798618733883, 0.028673510998487473, 0.010267100296914577, -0.05185195431113243, 0.11775144934654236, -0.011496259830892086, -0.011981726624071598, -0.010659605264663696, -0.0021897638216614723, 0.0015713104512542486, 0.0017701451433822513, 0.010628617368638515, -0.038940612226724625, -0.0170429740101099, 0.026669669896364212, -0.0008715156582184136, -0.013365822844207287, -0.013014634139835835, -0.026173874735832214, -0.06313130259513855, -0.008159969002008438, 0.07275800406932831, 0.023013178259134293, 0.003344037802889943, 0.0008334271842613816, 0.00010853597632376477, 0.035511359572410583, 0.06565159559249878, 0.026545722037553787, -0.01751811057329178, -0.0493316613137722, -0.011878435499966145, 0.05193458870053291, 0.010711250826716423, 0.034974247217178345, 0.011547905392944813, 0.023137127980589867, 0.013541417196393013, -0.011878435499966145, 0.06850242614746094, 0.07366696000099182, 0.03179289028048515, -0.020906047895550728, -0.010824870318174362, -0.055074624717235565, 0.021050654351711273, -0.11766881495714188, 0.07498908042907715, 0.02689691074192524, -0.04408448934555054, 0.015545257367193699, -0.02997497469186783, 0.01431609783321619, -0.0036074293311685324, 0.004960537888109684, -0.057347021996974945, 0.02714480832219124, -0.004493147600442171, 0.010210290551185608, -0.012993975542485714, -0.0010380720486864448, -0.02520294301211834, -0.02241409197449684, -0.01852003112435341, -0.04668741673231125, 0.05288486182689667, -0.0072768330574035645, 0.012942330911755562, 0.006362710148096085, 0.026772961020469666, 0.06536238640546799, -0.013768656179308891, -0.08432656526565552, -0.02487241104245186, 0.022145535796880722, -0.05639674887061119, 0.03877534717321396, 0.02123657800257206, 0.02664901316165924, -0.016412898898124695, -0.03590386360883713, 0.03259855881333351, -0.0316895991563797, 0.03166894242167473, 0.01582414284348488, -0.01059763040393591, -0.04441501945257187, 0.011134742759168148, 0.0701550766825676, -0.0173631738871336, -0.008950143121182919, -0.06263551115989685, 0.014047541655600071, -0.005613852292299271, -0.06011521443724632, -0.02005906216800213, -0.036110445857048035, -0.0430515818297863, -0.004431173205375671, -0.017032643780112267, 0.018282461911439896, 0.010086341761052608, 0.0010032113641500473, 0.01659882254898548, 0.060487061738967896, -0.05825598165392876, -0.04239052161574364, 0.0221248771995306, -0.07217957079410553, -0.011403298005461693, -0.0018760181264951825, 0.006300735753029585, 0.022723963484168053, 0.019862810149788857, 0.010969477705657482, -0.030140239745378494, -0.021732373163104057, -0.07275800406932831, -0.009518242441117764, -0.05858651176095009, -0.026710987091064453, -0.006140634883195162, 0.04383659362792969, 0.03053274378180504, -0.02154644951224327, 0.05011666938662529, 0.019749190658330917, -0.01675375923514366, -0.009476926177740097, -0.06589949876070023, 0.04280368611216545, 0.02266198955476284, 0.01981116458773613, -0.047761641442775726, 0.018065551295876503, 0.02352963201701641, -0.0026171293575316668, -0.06296604126691818, 0.02863219566643238, -0.004524134565144777, -0.01345878466963768, -0.014656957238912582, -0.013396809808909893, 0.06998980790376663, -0.05131484195590019, -0.016629809513688087, 0.018179170787334442, 0.030078265815973282, 0.014987487345933914, 0.03280514106154442, 0.004686817526817322, 0.032102763652801514, 0.01940833032131195, 0.015349005348980427, 0.054248299449682236, 0.009022446349263191, -0.03028484620153904, -0.03489161282777786, -0.014625969342887402, 0.014057870954275131, -0.024851754307746887, -0.018747270107269287, 0.01415083184838295, 0.0036332521121948957, 0.03278448432683945, 0.01938767358660698, -0.0013918428448960185, -0.07387354224920273, -0.016340596601366997, 0.038940612226724625, 0.023281734436750412, 0.013500100933015347, 0.030078265815973282, -0.05094299465417862, 0.024128718301653862, -0.004188439808785915, 0.050529833883047104, 0.011176059022545815, -0.01528703048825264, 0.024583198130130768, -0.02375687099993229, -0.044332388788461685, 0.06672582030296326, 0.023880820721387863, 0.005686155520379543, -0.040593262761831284, -0.0703616589307785, 0.006574456114321947, -0.022847913205623627, 0.006682911422103643, 0.001764980610460043, -0.05994994938373566, -0.036668214946985245, 0.010571807622909546, -0.032660532742738724, 0.04937297850847244, 0.012116004712879658, -0.047761641442775726, -0.041543539613485336, 0.05127352476119995, 0.036379002034664154, 0.0035454549361020327, 0.06007389724254608, -0.0175387691706419, 0.00877971388399601, 0.07048560678958893, -0.010959148406982422, -0.0027707742992788553, -0.04751374199986458, -0.0280537661164999, -0.01798291876912117, -0.06482527405023575, -0.009864266030490398, 0.02208356186747551, 0.02156710810959339, -0.03745322301983833, -0.009740317240357399, -0.024252668023109436, -0.038114286959171295, -0.00010425909567857161, 0.009910747408866882, 0.03803165256977081, 0.0027268757112324238, 0.009079257026314735, -0.003976693842560053, 0.016857050359249115, 0.02464517205953598, -0.00963702704757452, -0.014904854819178581, 0.04453897103667259, -0.0077881221659481525, -0.052554331719875336, -0.02945852093398571, -0.047183211892843246, -0.038981929421424866, 0.04363001137971878, 0.007333642803132534, -0.016371583566069603, 0.02941720373928547, -0.013655036687850952, -0.050777729600667953, -0.024417933076620102, -0.030222872272133827, 0.023075152188539505, -0.02177368849515915, -0.03334225341677666, -0.0014202477177605033, 0.0035454549361020327, 0.030698010697960854, -0.03993220254778862, 0.040366023778915405, -0.04536529630422592, 0.014625969342887402, -0.010990135371685028, 0.0379696786403656, 0.029334571212530136, -0.010101835243403912, 0.0028043438214808702, -0.0070237708278000355, 0.023942794650793076, -0.009729987941682339, -0.003225253662094474, -0.013551745563745499, 0.041708804666996, 0.055611737072467804, -0.0435473769903183, 0.01555558666586876, -0.024500565603375435, -0.021732373163104057, 0.008418195880949497, 0.035284120589494705, -0.058793094009160995, 0.03224737197160721, 0.03247461095452309, -0.02776455320417881, 0.0058720787055790424, -0.020616833120584488, -0.014811892993748188, -0.01134132407605648, -0.014915184117853642, 0.04224591702222824, -0.028797460719943047, -0.01800357736647129, 0.005045752972364426, 0.011661524884402752, 0.014894525520503521, 0.024831095710396767, -0.027310073375701904, -0.06552764773368835, 0.0032020132057368755, 0.04057260602712631, -0.021691055968403816, -0.051397476345300674, -0.048298753798007965, 0.010545984841883183, 0.009420116432011127, -0.007405946496874094, 0.007003112696111202, 0.015493611805140972, 0.07114666700363159, -0.014625969342887402, -0.054206982254981995, -0.03759783133864403, 0.008108323439955711, -0.02056518755853176, -0.0515214242041111, -0.01751811057329178, -0.029561812058091164, -0.046893998980522156, -0.05462014675140381, 0.055942267179489136, -0.03222671151161194, 0.020999008789658546, -0.07920334488153458, -0.007343972101807594, 0.017435478046536446, -0.007405946496874094, -0.03768046572804451, -0.019614912569522858, -0.01590677537024021, -0.026814278215169907, 0.01573118008673191, 0.05276091396808624, 0.0015726016135886312, -0.04891849681735039, 0.049125079065561295, 0.03224737197160721, 0.024004768580198288, -0.011238032951951027, 0.038403499871492386, 0.01709461770951748, -0.029334571212530136, -0.016165001317858696, 0.00027775525813922286, -0.029520494863390923, 0.03150367736816406, -0.0616852343082428, 0.02348831482231617, -0.024748463183641434, 0.03728795796632767, 0.030698010697960854, 0.003739125095307827, -0.02693822607398033, 0.01029292307794094, -0.011930081062018871, -0.055363841354846954, 0.025017019361257553, -0.03732927516102791, -0.014109515585005283, 0.050571151077747345, -0.0037468718364834785, 0.08378945291042328, -0.025822686031460762, -0.036358341574668884, -0.01829279027879238, 0.002291763434186578, -0.00962669774889946, 0.017084289342164993, -0.018489044159650803, -0.012973317876458168, -0.0810212641954422, 0.02096802182495594, -0.005285903811454773, 0.006533139850944281, 0.04141958802938461, 0.0578014999628067, -0.028962725773453712, 0.022806596010923386, 0.04962087422609329, -0.009983050636947155, -0.0469353161752224, 0.04011812433600426, 0.05474409461021423, 0.025285575538873672, 0.058462563902139664, 0.005334966816008091, 0.0047720326110720634, -0.0856073722243309, 0.007917235605418682, -0.01638191193342209, -0.0018024235032498837, -0.023612264543771744, 0.02177368849515915, 0.06561028212308884, 0.002917963545769453, 0.06870900094509125 ]
30,159
networkx.readwrite.graphml
__init__
null
def __init__( self, graph=None, encoding="utf-8", prettyprint=True, infer_numeric_types=False, named_key_ids=False, edge_id_from_attribute=None, ): self.construct_types() from xml.etree.ElementTree import Element self.myElement = Element self.infer_numeric_types = infer_numeric_types self.prettyprint = prettyprint self.named_key_ids = named_key_ids self.edge_id_from_attribute = edge_id_from_attribute self.encoding = encoding self.xml = self.myElement( "graphml", { "xmlns": self.NS_GRAPHML, "xmlns:xsi": self.NS_XSI, "xsi:schemaLocation": self.SCHEMALOCATION, }, ) self.keys = {} self.attributes = defaultdict(list) self.attribute_types = defaultdict(set) if graph is not None: self.add_graph_element(graph)
(self, graph=None, encoding='utf-8', prettyprint=True, infer_numeric_types=False, named_key_ids=False, edge_id_from_attribute=None)
[ 0.04564068093895912, 0.02041720412671566, 0.0034485962241888046, 0.04469456523656845, -0.0064572482369840145, -0.015535240061581135, -0.051657985895872116, -0.003280660603195429, 0.01571500301361084, -0.022422971203923225, -0.011911612004041672, 0.010643815621733665, -0.013065874576568604, 0.041023630648851395, -0.03396559879183769, 0.05309608206152916, -0.025564080104231834, 0.03004867397248745, 0.014456667006015778, 0.041894059628248215, -0.011694005690515041, -0.01663273572921753, -0.04741938039660454, 0.061308376491069794, 0.05952967703342438, 0.0037111437413841486, -0.027475235983729362, 0.00443965382874012, 0.0015563623746857047, 0.009167873300611973, -0.04813842847943306, -0.06706076860427856, -0.012034607119858265, 0.0009354731300845742, 0.003346888581290841, -0.0031458388548344374, -0.05275547876954079, 0.019679231569170952, -0.08810240775346756, -0.010464053601026535, 0.06081639602780342, -0.004020996857434511, -0.0224608164280653, -0.04113716632127762, 0.003278295276686549, 0.03901786357164383, 0.026018215343356133, 0.0074790543876588345, -0.023028485476970673, -0.041894059628248215, -0.017928915098309517, -0.006088262423872948, 0.00537867471575737, 0.080230712890625, -0.07818710058927536, 0.0321490541100502, -0.00754528259858489, 0.028421353548765182, 0.011694005690515041, 0.015875842422246933, -0.05566952005028725, 0.034665726125240326, 0.05336099490523338, 0.029007945209741592, -0.04548930376768112, 0.020757805556058884, -0.0701640322804451, -0.04439180716872215, -0.0453757680952549, -0.000912411545868963, 0.03574429824948311, 0.004915077704936266, 0.02384214662015438, 0.04272663965821266, 0.01732340082526207, 0.015213560312986374, -0.04783567413687706, -0.004290640354156494, -0.019225096330046654, 0.013037491589784622, -0.0005697397864423692, 0.07126152515411377, -0.03194090723991394, -0.02319878712296486, 0.06766628473997116, 0.018950723111629486, -0.009536858648061752, 0.014570200815796852, 0.01158993225544691, -0.005345560610294342, -0.05578305572271347, 0.021306553855538368, 0.006428864784538746, 0.07095877081155777, 0.020246902480721474, -0.011022262275218964, 0.012450898997485638, -0.0633898377418518, 0.05233918875455856, 0.021117329597473145, -0.016093449667096138, -0.025942526757717133, -0.058810628950595856, -0.03667149320244789, -0.03341684862971306, -0.026661574840545654, -0.017077410593628883, -0.04272663965821266, 0.024807186797261238, -0.014097142033278942, -0.023936757817864418, -0.02866734378039837, 0.05040911212563515, 0.06603895872831345, 0.027607692405581474, 0.013974146917462349, 0.01898856647312641, -0.01826951839029789, 0.04711662232875824, -0.028175363317131996, -0.012223830446600914, -0.009896383620798588, -0.004340311512351036, 0.06577405333518982, 0.014201215468347073, -0.029064713045954704, 0.06274647265672684, -0.022044524550437927, 0.012034607119858265, 0.0029660766012966633, 0.045110855251550674, -0.03608490154147148, 0.00973554328083992, 0.005582090001553297, 0.03581998869776726, -0.06812041997909546, -0.014220137149095535, 0.02289602905511856, -0.019641388207674026, 0.061308376491069794, 0.01210083533078432, -0.042991552501916885, 0.05169583112001419, -0.029443159699440002, -0.11224731057882309, -0.016793575137853622, -0.05718330666422844, -0.06830964237451553, -0.039207085967063904, -0.06562267243862152, 0.015696080401539803, -0.05135522782802582, -0.02908363565802574, -0.0007633981294929981, 0.01509056519716978, -0.023104175925254822, -0.0395098440349102, 0.03407913073897362, 0.014863497577607632, 0.019490009173750877, -0.031013714149594307, -0.015270327217876911, 0.027910450473427773, -0.03165707364678383, 0.005331369116902351, -0.01141017023473978, 0.025469468906521797, -0.0600973479449749, -0.010596510022878647, -0.013330787420272827, -0.00488669378682971, -0.08484777063131332, -0.062103115022182465, 0.025620846077799797, -0.03797713294625282, 0.04344569146633148, 0.07050463557243347, 0.06104346364736557, 0.012053529731929302, 0.08651293069124222, 0.011429092846810818, -0.019603542983531952, -0.02713463455438614, -0.03207336366176605, 0.020587503910064697, -0.036728259176015854, 0.01977384462952614, 0.02808075025677681, 0.04980359598994255, 0.009475361555814743, 0.06320060789585114, -0.018893955275416374, 0.023009564727544785, 0.05154445022344589, 0.03581998869776726, -0.034022364765405655, 0.035403694957494736, -0.008117683231830597, -0.05271763727068901, 0.09786633402109146, 0.06713645905256271, 0.013444322161376476, 0.03691748157143593, -0.01617860049009323, 0.01844928041100502, 0.04352137818932533, -0.008146067149937153, -0.0004331441596150398, -0.009229370392858982, -0.027967216446995735, -0.0060173035599291325, -0.08386380225419998, 0.0602487251162529, 0.01480672974139452, -0.03141108155250549, -0.02333124354481697, -0.05570736527442932, 0.035044170916080475, -0.02545054629445076, -0.037882521748542786, 0.04734368994832039, -0.00027526088524609804, -0.04295370727777481, -0.060702864080667496, 0.024826109409332275, -0.02442874014377594, 0.03712562844157219, -0.03572537750005722, -0.02874303236603737, 0.01597045361995697, 0.04688955470919609, -0.0016557046910747886, 0.022290514782071114, -0.001406166353262961, 0.011334480717778206, -0.039850447326898575, 0.013756540603935719, 0.011107413098216057, -0.010161295533180237, -0.05146875977516174, 0.05570736527442932, -0.02588575892150402, -0.0542314238846302, -0.030673110857605934, -0.016367822885513306, -0.003032304812222719, -0.017512625083327293, 0.015175716020166874, 0.00885565485805273, -0.04234819486737251, -0.07546228915452957, -0.011949457228183746, 0.007086415775120258, 0.029935140162706375, 0.03209228813648224, -0.020833494141697884, -0.06111915409564972, -0.03916924074292183, 0.044013358652591705, 0.009219910018146038, 0.025109943002462387, 0.047230158001184464, 0.004382886923849583, 0.09324928373098373, 0.05960536748170853, -0.03542261943221092, -0.009754465892910957, 0.008358943276107311, -0.016424590721726418, -0.02864842116832733, 0.05184720829129219, -0.007583127357065678, 0.02297171950340271, 0.043786291033029556, -0.019584620371460915, -0.03107048012316227, -0.03720131888985634, -0.012895573861896992, -0.04155345633625984, 0.04019104689359665, -0.015904225409030914, -0.04200759157538414, 0.0026609539054334164, 0.052679792046546936, -0.011731849983334541, 0.003290121676400304, -0.02588575892150402, 0.0072094108909368515, 0.003576321993023157, -0.047003090381622314, 0.02274465188384056, 0.021552544087171555, -0.013728156685829163, 0.018392512574791908, 0.04348353296518326, -0.05279332399368286, 0.05657779425382614, -0.015469011850655079, 0.012365748174488544, 0.015062181279063225, 0.07739236205816269, -0.04238604009151459, 0.11338265240192413, 0.02092810720205307, 0.0006705604027956724, 0.05442064628005028, 0.0201333686709404, 0.02507209964096546, 0.03457111120223999, 0.06562267243862152, -0.03413590043783188, 0.08757258206605911, -0.013851151801645756, 0.06452517211437225, -0.037163473665714264, 0.011353403329849243, 0.018127599731087685, -0.07640840113162994, 0.07224548608064651, 0.057864513248205185, -0.01137232594192028, 0.021817456930875778, 0.0003544981882441789, -0.03886648267507553, -0.024807186797261238, 0.001134749036282301, 0.05146875977516174, 0.011381787247955799, 0.051885053515434265, -0.050333421677351, -0.003649646183475852, 0.009820694103837013, 0.003945307806134224, 0.019792767241597176, -0.059037696570158005, 0.012346826493740082, -0.018137061968445778, -0.0396612212061882, -0.017162561416625977, -0.05725899711251259, 0.06823395192623138, -0.00376318022608757, -0.006376828067004681, -0.0030559576116502285, -0.016755731776356697, -0.015346016734838486, -0.041175007820129395, -0.05782666802406311, -0.030540654435753822, 0.06558482348918915, -0.015147332102060318, 0.03510093688964844, 0.011523704044520855, 0.07073169946670532, 0.029064713045954704, -0.015033798292279243, -0.029405314475297928, 0.018108678981661797, -0.04813842847943306, 0.056615639477968216, 0.018032988533377647, -0.005601012147963047, 0.011145257391035557, 0.011343942023813725, 0.017190944403409958, -0.018335746601223946, 0.006211257539689541, 0.03644442558288574, 0.01141017023473978, 0.008666431531310081, 0.03390883281826973, -0.071526437997818, -0.061724670231342316, -0.03114617057144642, 0.020795650780200958, 0.024599039927124977, -0.028610575944185257, 0.05816727131605148, -0.0015989376697689295, -0.03879079595208168, -0.007020187564194202, 0.03661472722887993, -0.0020353340078145266, 0.005932153202593327, -0.016982799395918846, -0.052906859666109085, 0.06902869045734406, -0.001446376321837306, 0.026566963642835617, 0.030654188245534897, -0.05052264407277107, -0.00772977527230978, 0.012526588514447212, -0.029802683740854263, 0.002582899294793606, 0.0004136305069550872, 0.03572537750005722, -0.022593272849917412, -0.004416001029312611, -0.006111915223300457, -0.03494955971837044, -0.09128136187791824, -0.011939995922148228, 0.05362590774893761, 0.04185621440410614, 0.016755731776356697, -0.007611510809510946, 0.00703911017626524, 0.0447702519595623, 0.05025773122906685, 0.08076053857803345, -0.026794031262397766, -0.048100586980581284, -0.036576882004737854, 0.00025914734578691423, 0.008311637677252293, 0.03303840383887291, -0.026434507220983505, 0.019329169765114784, -0.010785733349621296, -0.026150671765208244, 0.07811141759157181, 0.03623627871274948, -0.02136331982910633, 0.0019170694286003709, -0.00587065564468503, -0.03593352064490318, 0.018761498853564262, -0.06452517211437225, 0.02976483851671219, -0.020625349134206772, 0.005757121369242668, 0.013737617991864681, -0.01619752123951912, 0.027891527861356735, 0.027815837413072586, -0.012185986153781414, -0.04847903177142143, 0.023274477571249008, -0.017645081505179405, -0.01309425849467516, -0.0323004312813282, 0.013472705148160458, -0.04185621440410614, -0.05332314968109131, -0.027002178132534027, -0.04828980937600136, 0.0793224424123764, -0.008231217041611671, -0.004420731216669083, -0.005425980780273676, 0.010927651077508926, 0.05744821950793266, -0.054950471967458725, -0.0605514831840992, -0.029272858053445816, 0.014305287972092628, -0.013425399549305439, 0.038904327899217606, 0.053058236837387085, -0.020038757473230362, -0.027872605249285698, -0.03076772205531597, -0.01071950513869524, -0.024107059463858604, 0.0548369362950325, 0.026207439601421356, 0.026737265288829803, -0.04178052395582199, -0.013974146917462349, 0.047873515635728836, 0.010407286696135998, -0.0012713446049019694, -0.0007923729135654867, 0.008117683231830597, -0.0202090572565794, -0.06804472953081131, -0.03018113039433956, -0.04257526248693466, -0.04953868314623833, -0.0009916487615555525, 0.009754465892910957, 0.030464965850114822, 0.008410979993641376, 0.034249432384967804, 0.008874576538801193, 0.055745210498571396, -0.06989911943674088, -0.0554424524307251, 0.0330573245882988, -0.08371242880821228, 0.019234556704759598, -0.005501669831573963, 0.017436934635043144, 0.08295553177595139, 0.014693195931613445, 0.0023783014621585608, 0.024466583505272865, -0.0344008132815361, -0.055177539587020874, -0.012602278031408787, -0.0749703049659729, -0.04337000101804733, -0.028118595480918884, 0.06675801426172256, 0.021268708631396294, -0.02384214662015438, 0.008779965341091156, 0.04617050662636757, -0.0072377948090434074, -0.0013080067001283169, -0.06323845684528351, 0.020473970100283623, 0.0375608429312706, 0.004841753281652927, -0.02370969019830227, -0.023974603042006493, 0.004837022628635168, 0.012517127208411694, -0.022158058360219002, 0.039207085967063904, 0.016755731776356697, 0.01619752123951912, -0.030900178477168083, -0.010189679451286793, 0.041969746351242065, -0.025696536526083946, 0.016717886552214622, 0.024523351341485977, -0.002320351777598262, 0.001776334596797824, 0.001611946732737124, -0.04265095293521881, 0.048895321786403656, 0.0043119280599057674, 0.03347361832857132, 0.02734277956187725, 0.06634172052145004, -0.009981533512473106, -0.029954062774777412, 0.01206299103796482, 0.03288702666759491, -0.03137323632836342, 0.009115836583077908, 0.04545145854353905, -0.024296283721923828, 0.004990766756236553, 0.05812942609190941, -0.0037111437413841486, -0.05854571610689163, 0.0024315204937011003, 0.001957279397174716, -0.006230180151760578, 0.006249102298170328, 0.023312320932745934, -0.04140207916498184, 0.035403694957494736, -0.003815216477960348, 0.04950083792209625, 0.00860966369509697, -0.008732659742236137, 0.03727700561285019, -0.04571637138724327, -0.03373853117227554, 0.028970099985599518, 0.007862231694161892, 0.010407286696135998, -0.02363400161266327, -0.07614348828792572, 0.02785368263721466, -0.02340693399310112, -0.00278158369474113, 0.009820694103837013, 0.005123223178088665, -0.033814217895269394, 0.021912068128585815, -0.01635836251080036, 0.07073169946670532, 0.012044068425893784, -0.035271238535642624, -0.014002530835568905, 0.02565869130194187, -0.009423324838280678, 0.03125970438122749, 0.018155984580516815, -0.015260865911841393, 0.034381888806819916, 0.020455047488212585, -0.0013221984263509512, -0.011854845099151134, -0.012356286868453026, -0.08863223344087601, -0.007261447608470917, -0.0024953833781182766, -0.037522997707128525, -0.008954997174441814, 0.027986139059066772, -0.041099321097135544, -0.014040375128388405, -0.06437379866838455, -0.046056970953941345, 0.021344399079680443, 0.010047761723399162, 0.03415482118725777, 0.015213560312986374, 0.02639666199684143, -0.026074983179569244, 0.021117329597473145, 0.030521731823682785, -0.020114446058869362, -0.030938023701310158, 0.016159677878022194, -0.01141017023473978, -0.04673817753791809, 0.026074983179569244, -0.020965950563549995, -0.025942526757717133, 0.026718342676758766, -0.02363400161266327, -0.030427120625972748, 0.0404181145131588, -0.012895573861896992, -0.0298972949385643, 0.0035857832990586758, -0.0319976732134819, 0.026945410296320915, 0.000781137787271291, -0.06282216310501099, 0.017995143309235573, -0.00015640495985280722, 0.07039110362529755, -0.062103115022182465, -0.008122414350509644, -0.05733468756079674, -0.008945535868406296, -0.024371972307562828, 0.05302039161324501, 0.03909355029463768, 0.01738016866147518, 0.05578305572271347, -0.0252423994243145, 0.03383314236998558, -0.042613107711076736, 0.004933999851346016, 0.019508931785821915, -0.004148722626268864, 0.019026411697268486, -0.04556499049067497, 0.03894217312335968, 0.003685125382617116, 0.004881963599473238, 0.03436296805739403, 0.046548955142498016, -0.02902686782181263, -0.006901923101395369, 0.022006679326295853, -0.04287802055478096, 0.009962611831724644, 0.00461941584944725, -0.015298711135983467, -0.02420167066156864, 0.03135431557893753, 0.022006679326295853, 0.01345378253608942, 0.009271945804357529, 0.015516317449510098, -0.015535240061581135, -0.007280369754880667, 0.006632279604673386, -0.028175363317131996, -0.064903624355793, 0.03954768925905228, 0.061081308871507645, -0.0017893436597660184, -0.08916205912828445, 0.011495321057736874, -0.004425461869686842, -0.0050475336611270905, 0.018591197207570076, -0.0036070707719773054, 0.00824067834764719, 0.047949206084012985, -0.007663547061383724, -0.08250139653682709, -0.05332314968109131, -0.024561196565628052, -0.02471257373690605, -0.017115255817770958, -0.012271136976778507, -0.029954062774777412, -0.03973691165447235, -0.031392160803079605, 0.03385206311941147, -0.0178816094994545, 0.04215897247195244, -0.05657779425382614, -0.028023984283208847, -0.033946674317121506, 0.057637445628643036, -0.050219886004924774, 0.013368632644414902, -0.011722388677299023, -0.03491171449422836, 0.02077672816812992, 0.023823224008083344, -0.002549785189330578, -0.04246172681450844, 0.05672917142510414, 0.05585874244570732, 0.03375745192170143, -0.010558664798736572, 0.019272401928901672, 0.024315204471349716, -0.04280233010649681, 0.03557399660348892, 0.03281133621931076, -0.022422971203923225, 0.030389275401830673, -0.04541361331939697, 0.001881590113043785, -0.011656160466372967, 0.019887378439307213, 0.011211485601961613, 0.049122393131256104, -0.018099216744303703, 0.005326638463884592, -0.0026160134002566338, -0.0187804214656353, 0.02821320667862892, -0.04166698828339577, -0.003197875339537859, 0.04760860279202461, -0.036065977066755295, 0.045678526163101196, -0.05729684233665466, -0.03865833953022957, -0.0022588542196899652, 0.0021559640299528837, 0.07667331397533417, 0.044240426272153854, -0.028894411399960518, -0.00094611692475155, -0.08454500883817673, 0.045186545699834824, -0.016793575137853622, 0.0064903623424470425, 0.027550924569368362, 0.03943415358662605, -0.012280598282814026, 0.029443159699440002, -0.01829790137708187, -0.015658235177397728, -0.022498661652207375, 0.017153101041913033, 0.046132661402225494, 0.007474323734641075, 0.02399352565407753, 0.00587065564468503, 0.01211029663681984, -0.09680668264627457, -0.04340784624218941, -0.019963067024946213, -0.011656160466372967, -0.05260410159826279, -0.011987301521003246, 0.06058932840824127, 0.07216980308294296, 0.060286570340394974 ]
30,160
networkx.readwrite.graphml
__str__
null
def __str__(self): from xml.etree.ElementTree import tostring if self.prettyprint: self.indent(self.xml) s = tostring(self.xml).decode(self.encoding) return s
(self)
[ 0.0005998214473947883, -0.014073423109948635, 0.07061778753995895, -0.01569383591413498, 0.03206806629896164, -0.06277534365653992, -0.010188012383878231, -0.031978540122509, 0.07101169973611832, -0.03332142531871796, -0.02768131159245968, -0.04254256188869476, -0.015532690100371838, 0.04290066286921501, -0.007676819339394569, 0.019319621846079826, -0.024691157042980194, -0.09912273287773132, 0.022882740944623947, 0.06392127275466919, -0.0007693605148233473, 0.016311561688780785, 0.012229195795953274, 0.014959726482629776, -0.0019214429194107652, 0.03262312337756157, -0.02410028874874115, -0.054753851145505905, -0.0182900782674551, -0.02581918053328991, -0.02897047996520996, -0.06932861357927322, 0.04483441635966301, -0.022990170866250992, -0.0057564955204725266, 0.06528206169605255, -0.05088634416460991, -0.00961504876613617, -0.008786936290562153, -0.049812037497758865, -0.020340213552117348, -0.01846017688512802, -0.027090443298220634, -0.050564054399728775, -0.029471823945641518, -0.014153995551168919, 0.026803961023688316, 0.05360792204737663, -0.031190715730190277, -0.021987484768033028, 0.07634742558002472, 0.07512987405061722, -0.030295459553599358, 0.00839302409440279, -0.048093147575855255, -0.00913161039352417, 0.04282904043793678, -0.012256053276360035, 0.035595376044511795, 0.021647287532687187, -0.022417208179831505, 0.04701884090900421, 0.0784960389137268, -0.01572069339454174, -0.05307076871395111, 0.0205908864736557, -0.034914981573820114, -0.008495978079736233, 0.011217555962502956, 0.04863030090928078, 0.021915864199399948, -0.047126270830631256, -0.03957030922174454, 0.04705464839935303, 0.004901526030153036, -0.00022297467512544245, -0.02965087629854679, -0.012900637462735176, -0.024834398180246353, -0.0421486459672451, 0.0014894820051267743, 0.02904210053384304, -0.005626683123409748, -0.011495085433125496, 0.014986583963036537, -0.05403764545917511, -0.0070367115549743176, -0.004418087657541037, 0.0015017917612567544, 0.05163836106657982, 0.0171978659927845, 0.05203227326273918, -0.04852287098765373, 0.021110134199261665, -0.013249787501990795, 0.009391234256327152, 0.027752932161092758, -0.054825469851493835, 0.029489729553461075, -0.010608782060444355, 0.004977623000741005, 0.08214867860078812, -0.10349158197641373, -0.027287399396300316, -0.07312449812889099, 0.009042084217071533, 0.006110121496021748, 0.025837086141109467, 0.03095794841647148, 0.019606104120612144, -0.006777087226510048, -0.024619536474347115, 0.016606997698545456, 0.01709938794374466, 0.032981228083372116, -0.08716211467981339, -0.018621323630213737, 0.00017429512809030712, 0.04161149263381958, -0.052426185458898544, 0.05690246447920799, -0.007081474177539349, -0.03400181978940964, 0.0028267705347388983, -0.024350959807634354, 0.04977622628211975, 0.0017345582600682974, 0.020752031356096268, 0.0312444306910038, -0.07283802330493927, 0.03638320043683052, -0.035595376044511795, -0.00903313234448433, -0.0023769044782966375, 0.10871987789869308, -0.04580129310488701, -0.0072963354177773, 0.023043887689709663, 0.002079231897369027, 0.11473599821329117, 0.03117281012237072, -0.0462668240070343, 0.03452106565237045, 0.029024196788668633, -0.0627395361661911, -0.015595357865095139, -0.005335725378245115, 0.020752031356096268, -0.004700093530118465, -0.004995528142899275, 0.024601632729172707, -0.00692032789811492, -0.018585512414574623, -0.04694721847772598, 0.0037981232162564993, 0.017815591767430305, 0.01651747152209282, -0.011548801325261593, 0.061271313577890396, -0.024834398180246353, -0.044655364006757736, -0.019444957375526428, 0.0064816526137292385, -0.026266807690262794, 0.03914058953523636, 0.017869308590888977, -0.03831695392727852, -0.026589099317789078, 0.006266791373491287, -0.03595347702503204, -0.01991049200296402, -0.04787828400731087, -0.07742173224687576, 0.05897945910692215, 0.005778876598924398, 0.019856775179505348, 0.01881827972829342, 0.10127134621143341, -0.03677711263298988, 0.019803060218691826, -0.013607889413833618, -0.006047453731298447, -0.021736813709139824, 0.013115499168634415, 0.063957080245018, -0.04139663279056549, 0.046803977340459824, -0.011629373766481876, 0.035201460123062134, -0.02451210655272007, 0.05561329796910286, 0.0024239053018391132, -0.00007742564775981009, 0.004568043164908886, -0.02931067906320095, -0.055434245616197586, 0.017770828679203987, -0.05278428643941879, 0.03385857865214348, 0.033876482397317886, 0.020680410787463188, 0.036293674260377884, 0.025908704847097397, 0.03083261288702488, 0.005214865785092115, 0.013321408070623875, -0.018567606806755066, -0.029973167926073074, 0.021754717454314232, 0.0019650866743177176, 0.0276096910238266, -0.014368857257068157, -0.0019136094488203526, -0.059086889028549194, 0.030456606298685074, -0.0440823994576931, -0.02388542704284191, 0.002889438299462199, -0.04497765749692917, 0.009310661815106869, 0.06793201714754105, -0.0004714081878773868, -0.0013171451864764094, -0.047341130673885345, -0.051387690007686615, -0.005801258143037558, 0.024476297199726105, -0.05575653910636902, 0.009364376775920391, 0.02780664898455143, 0.039856791496276855, -0.03228292614221573, 0.003827218897640705, 0.01657118648290634, 0.0019572533201426268, 0.02957925572991371, -0.017350059002637863, -0.06632055342197418, -0.04777085408568382, -0.0646732896566391, -0.007256049197167158, -0.023240843787789345, 0.0007950991275720298, 0.022900646552443504, 0.04089529067277908, -0.0450492762029171, -0.014780675061047077, 0.021092228591442108, -0.017520157620310783, -0.010349158197641373, 0.031047474592924118, -0.03400181978940964, -0.028397517278790474, 0.0004129367880523205, 0.023742185905575752, -0.05597139894962311, -0.02560431882739067, 0.02773502841591835, 0.002226948970928788, 0.02746645174920559, 0.01521039754152298, -0.021163849160075188, -0.0058594499714672565, 0.013061783276498318, 0.02678605727851391, -0.00810206588357687, -0.04805733636021614, -0.011906903237104416, 0.044798605144023895, 0.022327682003378868, 0.08780670166015625, -0.014055517502129078, -0.031835298985242844, 0.05829906463623047, -0.04103853181004524, -0.04415402188897133, -0.025765465572476387, 0.006177265662699938, -0.017520157620310783, -0.022578353062272072, -0.011880045756697655, -0.016141463071107864, -0.004901526030153036, 0.014279332011938095, 0.016490614041686058, -0.08752021938562393, -0.00827216450124979, -0.01751120574772358, 0.03061775118112564, 0.015156682580709457, 0.034162964671850204, 0.04368848726153374, -0.04007165506482124, -0.02560431882739067, 0.07348260283470154, -0.048164766281843185, 0.04107433930039406, 0.022614164277911186, -0.020644601434469223, -0.014825438149273396, 0.006320506799966097, -0.03452106565237045, 0.02300807647407055, 0.022291872650384903, 0.0030572989489883184, 0.040000032633543015, -0.03500450402498245, 0.03507612645626068, 0.00779320253059268, 0.03163834288716316, -0.026893487200140953, 0.028540758416056633, 0.028397517278790474, 0.04923907294869423, 0.012220242992043495, 0.057367999106645584, 0.002156447619199753, -0.037923041731119156, 0.04537156969308853, 0.08014331012964249, -0.015658026561141014, 0.016454802826046944, -0.022363493219017982, -0.0010843786876648664, 0.028648188337683678, -0.025299930945038795, -0.003361685900017619, 0.025765465572476387, 0.023025982081890106, 0.015944506973028183, 0.012614155188202858, -0.05285590887069702, 0.031351860612630844, 0.030313365161418915, -0.014306189492344856, -0.00916742067784071, 0.014118185266852379, -0.027359019964933395, -0.06506720185279846, -0.03371533751487732, 0.09496874362230301, 0.020268592983484268, 0.008603408932685852, -0.019444957375526428, -0.013589984737336636, 0.03170996531844139, -0.05396602675318718, 0.018352745100855827, 0.03564909100532532, 0.0171978659927845, -0.043903350830078125, 0.0013104308163747191, 0.030725182965397835, 0.026803961023688316, -0.030922139063477516, -0.006320506799966097, 0.019104760140180588, 0.08608780801296234, -0.009064465761184692, 0.017555968835949898, 0.0024731443263590336, 0.0059624044224619865, -0.014744864776730537, -0.00047700354480184615, 0.028648188337683678, -0.022578353062272072, -0.0010519257048144937, -0.0030863946303725243, 0.06897051632404327, 0.02712625451385975, -0.01678604818880558, -0.012820064090192318, -0.06961509585380554, -0.09704574197530746, -0.02623099833726883, 0.0532856322824955, -0.009185325354337692, 0.014637433923780918, -0.004469565115869045, -0.08350946754217148, 0.03695616498589516, 0.04057299718260765, -0.0034624021500349045, 0.0021161611657589674, -0.007560436148196459, -0.003760074730962515, 0.03867505490779877, 0.019928395748138428, 0.012533582746982574, 0.009453902021050453, -0.029901547357439995, -0.002761864336207509, -0.0018744420958682895, 0.011181746609508991, -0.04590872302651405, -0.021718908101320267, 0.014673244208097458, -0.02417190931737423, -0.023222938179969788, 0.024046573787927628, 0.006880041677504778, -0.0055505866184830666, -0.010483446530997753, -0.02039392851293087, -0.02313341200351715, 0.04111015051603317, -0.0016192940529435873, -0.012282910756766796, -0.02032230980694294, 0.03838857263326645, 0.016356324777007103, -0.0297941155731678, -0.03400181978940964, -0.06399289518594742, 0.06897051632404327, -0.0010782238095998764, -0.0013719797134399414, 0.041360821574926376, -0.002896152902394533, -0.04268580302596092, -0.08988369256258011, 0.0535363033413887, -0.002916296012699604, 0.045693859457969666, -0.0302775539457798, -0.015111919492483139, -0.014709054492413998, 0.044583745300769806, 0.0389973483979702, 0.06019700691103935, 0.02039392851293087, -0.034395731985569, -0.035666994750499725, -0.05128025636076927, 0.05396602675318718, -0.006405556108802557, -0.010778880678117275, -0.044655364006757736, -0.002441810443997383, 0.0593375600874424, 0.021128039807081223, -0.023330368101596832, 0.031333956867456436, 0.022166535258293152, 0.03407343849539757, 0.008048350922763348, -0.09668763726949692, 0.044583745300769806, 0.012068049982190132, 0.014574766159057617, 0.022811120375990868, 0.02957925572991371, -0.00867055356502533, -0.052426185458898544, -0.06205913797020912, -0.0542525090277195, 0.04608777537941933, -0.03376905247569084, -0.025693845003843307, 0.028988385573029518, -0.03543422743678093, 0.00726052513346076, -0.01722472347319126, 0.010528209619224072, -0.010796786285936832, 0.0017132959328591824, -0.040608808398246765, 0.06005376577377319, -0.05493290349841118, -0.024959733709692955, 0.07058197259902954, -0.015317828394472599, -0.029883641749620438, -0.005528205074369907, 0.000248153752181679, 0.06005376577377319, -0.05600721016526222, -0.037529125809669495, -0.010474493727087975, -0.0047448561526834965, -0.06624893844127655, -0.029758306220173836, -0.016257846727967262, 0.020071636885404587, -0.02451210655272007, 0.0009316256619058549, 0.0440823994576931, 0.021718908101320267, -0.008616837672889233, 0.03514774516224861, -0.003827218897640705, 0.055577486753463745, -0.07892575860023499, -0.022220252081751823, 0.001561102457344532, 0.013169214129447937, -0.04007165506482124, -0.030241744592785835, -0.09776194393634796, -0.0012018810957670212, -0.002254925901070237, -0.0418979749083519, 0.01630260981619358, 0.006696514319628477, 0.012748444452881813, 0.02965087629854679, 0.0162309892475605, 0.05568491667509079, 0.016723379492759705, -0.008836175315082073, 0.025102974846959114, -0.03846019506454468, 0.03008059784770012, 0.023437799885869026, 0.0005270818946883082, -0.021593572571873665, 0.018030453473329544, 0.026463763788342476, 0.0026074328925460577, -0.00861236173659563, -0.016732333227992058, 0.013419886119663715, -0.015980318188667297, 0.0044315168634057045, -0.014583718962967396, 0.03000897727906704, -0.03273055702447891, 0.06399289518594742, -0.06130712479352951, 0.052497804164886475, -0.004977623000741005, -0.00890331994742155, 0.009776194579899311, -0.040465567260980606, -0.012748444452881813, 0.07162047177553177, -0.06610569357872009, 0.02615937776863575, 0.02814684621989727, 0.019606104120612144, 0.036848731338977814, -0.04032232612371445, -0.03781560808420181, -0.021665193140506744, -0.02875562012195587, -0.01976725086569786, 0.022273967042565346, 0.06001795455813408, -0.00957923848181963, -0.00022954920132178813, -0.02085946314036846, -0.006307077594101429, 0.023652661591768265, 0.002026635454967618, 0.06481652706861496, -0.017430631443858147, -0.021665193140506744, 0.048093147575855255, 0.031190715730190277, 0.026660719886422157, -0.0059668803587555885, 0.00905998982489109, -0.021647287532687187, 0.007032235153019428, 0.02904210053384304, 0.07111912965774536, 0.014744864776730537, -0.04483441635966301, -0.012820064090192318, -0.025425268337130547, 0.033464666455984116, -0.02601613663136959, -0.0061727892607450485, 0.018854089081287384, -0.031065380200743675, 0.04784247651696205, 0.018084168434143066, 0.04340200498700142, -0.008084161207079887, 0.03509403020143509, 0.007891681045293808, -0.02719787508249283, 0.0041248914785683155, -0.02300807647407055, -0.010814690962433815, -0.017278438434004784, 0.0023119982797652483, -0.010241727344691753, 0.01678604818880558, -0.04100272059440613, -0.010823643766343594, -0.07763659209012985, -0.00859893299639225, -0.029489729553461075, 0.047269511967897415, -0.07656228542327881, 0.023294558748602867, -0.033876482397317886, 0.01976725086569786, -0.04526413977146149, 0.04791409522294998, 0.00010624169954098761, 0.03136976808309555, 0.024154003709554672, 0.02637423947453499, 0.038281142711639404, -0.005940022878348827, 0.030922139063477516, 0.03393019735813141, 0.07985682785511017, -0.01923009753227234, -0.0032967799343168736, -0.0027752933092415333, -0.06195170804858208, -0.029901547357439995, -0.011154888197779655, -0.0011862140381708741, -0.020913178101181984, -0.065890833735466, 0.011647279374301434, 0.05192484334111214, 0.06008957698941231, -0.07541635632514954, 0.038281142711639404, -0.03407343849539757, 0.018907804042100906, -0.0007911823922768235, -0.030922139063477516, 0.0552193820476532, -0.037923041731119156, 0.08214867860078812, -0.012900637462735176, 0.013339312747120857, -0.05754704773426056, -0.06893470138311386, -0.022327682003378868, 0.030796803534030914, 0.06291858106851578, -0.05142349749803543, 0.01688452623784542, 0.03314237296581268, 0.01847808249294758, -0.07613255828619003, -0.00012260809307917953, -0.0421486459672451, -0.0194986741989851, -0.036078814417123795, -0.059767283499240875, 0.004245751071721315, -0.044583745300769806, -0.054968710988759995, -0.018084168434143066, 0.019248001277446747, 0.0006188456318341196, -0.00923904124647379, 0.052282944321632385, 0.030510321259498596, 0.060662541538476944, -0.02012535184621811, 0.01576545648276806, -0.016356324777007103, -0.006880041677504778, -0.004834381863474846, -0.026392143219709396, 0.04977622628211975, 0.01802150160074234, -0.024673253297805786, 0.0421486459672451, -0.0037376934196799994, -0.09339309483766556, -0.023043887689709663, 0.05815582349896431, -0.005492394790053368, -0.028272181749343872, -0.07512987405061722, -0.026553289964795113, 0.028540758416056633, 0.014055517502129078, 0.002768578939139843, -0.02005373127758503, 0.002127351937815547, 0.030313365161418915, -0.019480768591165543, -0.08680400997400284, 0.0017983452416956425, -0.005514776334166527, -0.027985699474811554, -0.0016752475639805198, 0.0034803072921931744, -0.054001834243535995, -0.07785145193338394, -0.08759183436632156, -0.028325896710157394, 0.015228303149342537, 0.10642801970243454, 0.00801701657474041, 0.02470906265079975, -0.034395731985569, 0.05350049212574959, -0.04662492871284485, 0.05944499000906944, 0.0016629378078505397, 0.010922121815383434, 0.015854982659220695, 0.06084159016609192, -0.016723379492759705, 0.04032232612371445, 0.011360797099769115, -0.0005603742320090532, 0.044118210673332214, 0.01709938794374466, 0.05321400985121727, -0.01603403314948082, -0.055505864322185516, -0.011199651286005974, -0.006351840682327747, -0.014914963394403458, 0.002096017822623253, -0.003149062627926469, 0.05224713310599327, -0.06291858106851578, -0.012560440227389336, -0.010581924580037594, 0.005089529789984226, 0.019265906885266304, 0.11258738487958908, -0.0033840672113001347, -0.013679509982466698, -0.01657118648290634, -0.04243512824177742, -0.0005161709850654006, 0.0167144276201725, 0.00002072027746180538, 0.0024530012160539627, -0.003285589162260294, -0.02834380231797695, -0.007197857368737459, -0.0014771722489967942, 0.04755599424242973, 0.0018017025431618094, 0.04522832855582237, 0.04848705977201462, 0.009740384295582771, 0.017717113718390465, 0.02889886125922203, -0.011477180756628513, 0.030922139063477516, 0.03425249084830284, -0.04483441635966301, 0.029901547357439995, 0.03136976808309555, 0.012157575227320194, 0.010877358727157116, 0.012273957952857018, 0.055792346596717834, 0.006020595785230398, 0.010411825962364674, 0.016624901443719864, -0.0067502292804419994, -0.011987476609647274, -0.00891227275133133, -0.033464666455984116, 0.007403766270726919, 0.017591778188943863, -0.020429739728569984, 0.08422567695379257, -0.0012835731031373143, 0.0017770829144865274 ]
30,161
networkx.readwrite.graphml
add_attributes
Appends attribute data to edges or nodes, and stores type information to be added later. See add_graph_element.
def add_attributes(self, scope, xml_obj, data, default): """Appends attribute data to edges or nodes, and stores type information to be added later. See add_graph_element. """ for k, v in data.items(): self.attribute_types[(str(k), scope)].add(type(v)) self.attributes[xml_obj].append([k, v, scope, default.get(k)])
(self, scope, xml_obj, data, default)
[ 0.025607408955693245, 0.026739025488495827, 0.023344174027442932, 0.0034290747717022896, 0.0009861727012321353, -0.0028472954872995615, -0.007332698907703161, -0.005251982714980841, 0.02622797340154648, -0.014072210527956486, -0.00960962288081646, -0.03038940578699112, 0.05241944268345833, -0.0029613699298352003, -0.0008196241687983274, 0.06581633538007736, -0.017822975292801857, 0.011498693376779556, -0.0025278874672949314, 0.007656669709831476, 0.02312515117228031, -0.0051835379563272, -0.06369911134243011, -0.002509635640308261, 0.05117831379175186, 0.08111142367124557, -0.02120870165526867, 0.026045454666018486, 0.0523829385638237, 0.007319009862840176, -0.04234439507126808, -0.11359979212284088, -0.040592215955257416, -0.023490188643336296, 0.06786054372787476, -0.013625039719045162, -0.049207109957933426, 0.02104443497955799, -0.04314747825264931, 0.0320320762693882, 0.03960661217570305, -0.012329154647886753, -0.08330164849758148, -0.02796190232038498, 0.027633368968963623, 0.004056483507156372, 0.004458025097846985, 0.04800248518586159, 0.04190634936094284, -0.07862916588783264, 0.03334621340036392, 0.006301466841250658, 0.06293253600597382, 0.07629291713237762, -0.03511664643883705, 0.007469587959349155, -0.06052328273653984, 0.06176441162824631, -0.03057192452251911, 0.037379879504442215, 0.03659505024552345, 0.004264099057763815, -0.0018514265539124608, -0.06800656020641327, -0.045994773507118225, 0.0225958451628685, -0.06439268589019775, 0.0007688610930927098, -0.0070589203387498856, 0.03195906803011894, -0.044607631862163544, 0.0021001086570322514, 0.014966554008424282, 0.006849023513495922, -0.0022997388150542974, 0.047564439475536346, -0.014920923858880997, 0.03891304135322571, 0.021957028657197952, 0.007296194788068533, -0.02151898480951786, 0.008436938747763634, -0.05866159126162529, 0.012904089875519276, -0.014875294640660286, 0.056726887822151184, -0.09651602059602737, 0.0037553273141384125, 0.02082541212439537, -0.04774695634841919, -0.011480442248284817, 0.05731095001101494, 0.005096841603517532, 0.03942409157752991, 0.030462412163615227, -0.024749569594860077, 0.0016883002826943994, -0.03394852578639984, 0.07063483446836472, 0.04679785668849945, 0.014026581309735775, -0.04055571183562279, 0.00028718216344714165, -0.034003280103206635, -0.062494486570358276, -0.07884818315505981, 0.013761928305029869, -0.0414683036506176, -0.009947282262146473, 0.03884003311395645, -0.04858654364943504, -0.069977767765522, 0.09600497037172318, 0.017083773389458656, -0.030444160103797913, 0.02801665849983692, 0.015623621642589569, 0.02104443497955799, 0.0315210223197937, -0.0037712978664785624, 0.004873255733400583, -0.012475170195102692, 0.04219838231801987, 0.03615700453519821, -0.0030320959631353617, -0.02372746355831623, 0.023307669907808304, 0.03796394169330597, -0.0026488061994314194, -0.021610243245959282, 0.002578080166131258, -0.048294514417648315, -0.03931458294391632, -0.007533469703048468, 0.06402764469385147, -0.0787021741271019, 0.03847499564290047, 0.057639483362436295, 0.03975262865424156, -0.003143888898193836, 0.01480228640139103, -0.032962922006845474, 0.014628893695771694, -0.012803704477846622, -0.0590631328523159, -0.008628583513200283, -0.008824790827929974, 0.010193683207035065, -0.08169548213481903, -0.0521274134516716, 0.011416560038924217, 0.042928457260131836, -0.04825801029801369, -0.0021845237351953983, 0.017293671146035194, 0.0007414832361973822, -0.07326310873031616, -0.0444251112639904, 0.002829043660312891, -0.016253313049674034, -0.06731298565864563, 0.03913206234574318, 0.00789850763976574, -0.026501750573515892, 0.0568729043006897, 0.05895362049341202, -0.039022549986839294, -0.03489762172102928, 0.04358552396297455, 0.031667038798332214, 0.0244575385004282, -0.0518718846142292, 0.06351659446954727, 0.024256767705082893, 0.06526877731084824, -0.02325291372835636, 0.019328756257891655, -0.05081327632069588, 0.0571284294128418, 0.02505985088646412, 0.003584215883165598, -0.007665795739740133, 0.007962388917803764, 0.0188724584877491, -0.015003057196736336, -0.01940176449716091, 0.01151694543659687, -0.004492247477173805, 0.013670668937265873, -0.013497276231646538, 0.03380250930786133, 0.00789850763976574, -0.05059425160288811, 0.003155296202749014, 0.0207341518253088, -0.0008219056180678308, 0.024001242592930794, -0.009892527014017105, -0.02558915689587593, 0.07658495008945465, 0.01697426289319992, -0.03613875061273575, 0.004941700492054224, 0.004535595886409283, 0.02454879879951477, -0.0043142917566001415, -0.0010112690506502986, 0.0029613699298352003, -0.04427909851074219, -0.02489558421075344, 0.011699464172124863, 0.01808762736618519, 0.024494042620062828, 0.007113676052540541, 0.03219634294509888, 0.013406016863882542, -0.02000407688319683, -0.011945865117013454, -0.008537324145436287, -0.00034906750079244375, -0.017211535945534706, -0.038036949932575226, -0.025096355006098747, -0.008500820025801659, 0.05698241665959358, -0.050375230610370636, 0.03721561282873154, -0.01931050419807434, -0.0013609068701043725, 0.02792539820075035, 0.012758074328303337, 0.029933108016848564, -0.02622797340154648, 0.016864750534296036, 0.01852567307651043, 0.025260621681809425, 0.0662543773651123, -0.007355513516813517, -0.007177557796239853, -0.023873478174209595, 0.020277855917811394, 0.01965729147195816, -0.04592176899313927, 0.010421832092106342, -0.03544517979025841, 0.008368493989109993, 0.023654455319046974, 0.01584264449775219, -0.025862934067845345, -0.03462384268641472, -0.004496810492128134, 0.05099579319357872, -0.05380658432841301, 0.0029111772309988737, -0.003789549693465233, -0.005690028425306082, 0.014108714647591114, -0.002335101831704378, 0.021829266101121902, -0.057639483362436295, 0.045301202684640884, 0.06811606884002686, -0.004426084458827972, 0.07519780844449997, -0.0032899039797484875, 0.0017430559964850545, 0.01883595623075962, -0.0008686761138960719, -0.0707443431019783, -0.01400832924991846, 0.07424870878458023, -0.00733726192265749, 0.05070376396179199, -0.01181810162961483, -0.002156005008146167, 0.04745492711663246, 0.027688125148415565, -0.0203508622944355, -0.015222080051898956, -0.0032237409614026546, 0.004405551124364138, -0.009573118761181831, -0.0404461994767189, 0.04511868581175804, -0.010075045749545097, -0.02558915689587593, -0.00462229223921895, 0.04055571183562279, -0.033145442605018616, -0.023964738473296165, 0.02476782165467739, 0.05223692208528519, -0.02774287946522236, 0.050375230610370636, 0.0489150770008564, 0.007145616691559553, 0.02739609405398369, 0.056726887822151184, 0.04581225663423538, 0.03051716834306717, 0.021701503545045853, 0.03648553788661957, 0.14813238382339478, -0.014245604164898396, -0.03982563316822052, -0.025297125801444054, 0.06318806111812592, -0.011243167333304882, -0.033400967717170715, 0.0002773432352114469, -0.01084162574261427, 0.0478929728269577, -0.01404483336955309, 0.048769064247608185, 0.02792539820075035, 0.04168732836842537, 0.02558915689587593, -0.02944030612707138, 0.013761928305029869, 0.02792539820075035, -0.024913836270570755, -0.03553643822669983, -0.04300146549940109, -0.09184353798627853, 0.05398910492658615, 0.0009930171072483063, 0.09184353798627853, -0.0020020047668367624, 0.019931068643927574, 0.0030914146918803453, 0.008998184464871883, -0.021445976570248604, -0.01931050419807434, 0.07377415895462036, -0.04077473282814026, 0.02766987308859825, -0.0459582693874836, -0.005425375886261463, -0.02376396767795086, 0.011571701616048813, -0.06439268589019775, 0.05920914560556412, -0.023106899112462997, -0.014291233383119106, 0.03887653723359108, -0.030188633129000664, 0.0013837218284606934, 0.002189086750149727, -0.019109733402729034, 0.0454472191631794, -0.05705542489886284, 0.0516163595020771, 0.024859080091118813, 0.02925778739154339, 0.021445976570248604, -0.021226953715085983, 0.02900226041674614, -0.022577593103051186, 0.007579099386930466, 0.041322290897369385, 0.03471510484814644, 0.05800452083349228, 0.03181305155158043, 0.00201341207139194, 0.02139122039079666, 0.005242856685072184, 0.03736162930727005, 0.025607408955693245, 0.04168732836842537, -0.03778142109513283, 0.027779383584856987, -0.01952952705323696, -0.0034290747717022896, -0.0014008329017087817, 0.0223403200507164, 0.0006850164500065148, 0.0015993223059922457, -0.0002291468408657238, -0.011325300671160221, -0.013314757496118546, -0.05260195955634117, -0.0207341518253088, 0.022176051512360573, 0.010303194634616375, 0.01566925086081028, -0.022833120077848434, 0.08213352411985397, -0.008742657490074635, -0.0005330123822204769, 0.03121074102818966, 0.012986223213374615, -0.030206885188817978, 0.022322067990899086, 0.008601205423474312, -0.03502538800239563, -0.0558507964015007, -0.012977097183465958, -0.05446365475654602, -0.03407628834247589, -0.010914633050560951, -0.05059425160288811, -0.019237497821450233, 0.001327825360931456, -0.0008378760539926589, 0.02164674736559391, 0.02142772451043129, -0.028728483244776726, -0.006461170967668295, 0.013168741948902607, 0.05866159126162529, 0.0021286271512508392, 0.023471936583518982, 0.009627874940633774, -0.05004669725894928, 0.06968573480844498, 0.02861897088587284, 0.0839587152004242, -0.007556284312158823, 0.015532362274825573, 0.027250079438090324, -0.012794578447937965, -0.010211935266852379, -0.00458806985989213, 0.06614486873149872, 0.016006911173462868, -0.02471306547522545, 0.007273380178958178, 0.009112258441746235, -0.02982359565794468, 0.01177247241139412, 0.036394279450178146, 0.039205070585012436, 0.0014852479798719287, -0.0240742489695549, 0.05453666299581528, 0.012894963845610619, -0.009167014621198177, -0.08709803968667984, 0.010440084151923656, -0.001281054923310876, -0.027980154380202293, -0.03705134615302086, -0.020058833062648773, 0.015614495612680912, -0.10564196854829788, -0.034258805215358734, -0.047819964587688446, 0.0223403200507164, 0.028819741681218147, -0.012027998454868793, -0.025607408955693245, -0.01210100669413805, 0.048331018537282944, 0.042015861719846725, -0.021007930859923363, 0.005251982714980841, -0.025862934067845345, -0.0608518160879612, 0.03659505024552345, -0.06139937415719032, -0.0006234162719920278, -0.011370930820703506, -0.008373056538403034, 0.0037165421526879072, -0.0240742489695549, 0.07355513423681259, -0.01653621718287468, -0.029677581042051315, -0.017394056543707848, 0.009344969876110554, 0.07614690810441971, -0.01244779210537672, 0.013186994008719921, -0.07592788338661194, 0.04267292842268944, 0.0070954239927232265, -0.022869624197483063, -0.011644708923995495, -0.049718160182237625, -0.058771099895238876, 0.03683232516050339, 0.04073822870850563, 0.03540867567062378, 0.0056626503355801105, -0.01398095116019249, 0.03099171817302704, 0.00973738543689251, -0.008920613676309586, -0.03429530933499336, 0.057639483362436295, -0.011069774627685547, 0.0003904194454662502, -0.025297125801444054, 0.056945912539958954, 0.06391813606023788, 0.017603952437639236, 0.05431763827800751, -0.01640845276415348, -0.00882935430854559, -0.0352444089949131, 0.002753754612058401, -0.059939224272966385, -0.031575776636600494, -0.020715899765491486, -0.01931050419807434, 0.037562400102615356, -0.040190670639276505, -0.002858703024685383, -0.017822975292801857, 0.021701503545045853, 0.021153945475816727, -0.04077473282814026, 0.028801489621400833, -0.0312654972076416, 0.062494486570358276, -0.03778142109513283, 0.03449608013033867, -0.013761928305029869, -0.032013822346925735, -0.04241740331053734, 0.0014692775439471006, 0.0069676609709858894, -0.03997164964675903, -0.04216187819838524, -0.003210051916539669, 0.03964311629533768, -0.053186021745204926, -0.006643689703196287, -0.0029248660430312157, 0.03511664643883705, 0.0320320762693882, 0.009399726055562496, 0.016180304810404778, -0.005945554934442043, 0.006474859546869993, 0.01597953401505947, 0.08060036599636078, -0.009276525117456913, 0.03038940578699112, -0.020314358174800873, 0.03997164964675903, -0.01896371878683567, -0.00625583715736866, -0.06191042810678482, -0.011954991146922112, -0.006009436212480068, -0.02104443497955799, -0.038328979164361954, 0.02350844070315361, -0.05190838873386383, -0.031502772122621536, -0.008975368924438953, -0.051360830664634705, 0.07709600031375885, -0.04650582745671272, -0.02549789659678936, 0.012821956537663937, -0.06231196969747543, 0.034605592489242554, 0.015368095599114895, 0.009700882248580456, -0.0076931738294661045, -0.010458335280418396, 0.01188198383897543, 0.0025301689747720957, -0.005429938901215792, 0.0009605059749446809, 0.010978514328598976, -0.03121074102818966, -0.0037347939796745777, -0.026994552463293076, -0.000200343070900999, -0.011507819406688213, -0.05377008393406868, -0.03617525473237038, 0.01147131621837616, -0.06052328273653984, -0.0277976356446743, -0.00681708287447691, -0.03528091311454773, -0.06873663514852524, 0.02281486801803112, -0.02692154422402382, -0.05417162552475929, 0.03931458294391632, -0.03579196706414223, 0.00756541034206748, 0.056653883308172226, -0.0489150770008564, -0.01931050419807434, -0.08103841543197632, 0.02692154422402382, -0.059720199555158615, -0.04358552396297455, -0.007469587959349155, -0.03372950106859207, 0.021756257861852646, -0.034258805215358734, -0.06070580333471298, -0.007355513516813517, -0.011462190188467503, 0.02913002483546734, -0.025680415332317352, 0.08344766497612, -0.014592389576137066, -0.014327737502753735, -0.03661330044269562, 0.00889779906719923, -0.04376804456114769, 0.00346329715102911, -0.004086142871528864, 0.04336650297045708, 0.02038736641407013, 0.03916856646537781, 0.0018023746088147163, -0.042234886437654495, -0.0521274134516716, 0.034696850925683975, 0.0446806401014328, 0.04486315697431564, -0.04486315697431564, -0.059245649725198746, -0.04259992390871048, 0.01140743400901556, -0.02675727754831314, -0.023398928344249725, -0.021026182919740677, 0.004551566205918789, -0.022303815931081772, -0.04008116200566292, 0.03287166357040405, -0.012365658767521381, 0.02666601911187172, -0.05617933347821236, 0.026118461042642593, -0.005288486368954182, 0.0446806401014328, 0.04614078998565674, 0.006725823041051626, -0.045301202684640884, 0.006452044937759638, -0.006794267799705267, 0.03623001277446747, 0.012192266061902046, 0.053003501147031784, 0.05537625029683113, 0.01519470289349556, -0.0457027442753315, -0.019036727026104927, -0.003958379849791527, 0.007118239067494869, -0.07592788338661194, -0.0021514419931918383, -0.00018865044694393873, 0.02871023118495941, 0.08198751509189606, -0.050922784954309464, -0.002737784292548895, 0.01943826861679554, -0.05625234171748161, -0.06870013475418091, 0.0077661811374127865, 0.012675940990447998, -0.023143403232097626, -0.0283086895942688, -0.04771045222878456, -0.016910379752516747, -0.027596864849328995, 0.018516547977924347, -0.02432977594435215, -0.04172383248806, 0.055047713220119476, 0.047199398279190063, 0.02584468387067318, -0.03650378808379173, -0.01580614037811756, 0.0061280736699700356, 0.012931467033922672, 0.02190227434039116, 0.021664999425411224, 0.00399260176345706, -0.02108093909919262, -0.0033651930280029774, -0.04657883569598198, -0.0016905817901715636, 0.018635185435414314, 0.0103670759126544, -0.03736162930727005, 0.002760599134489894, 0.02025960385799408, -0.03559119626879692, -0.09797617048025131, 0.04431559890508652, -0.015879148617386818, -0.01534984353929758, -0.08629495650529861, -0.016134675592184067, 0.04449811950325966, 0.02549789659678936, -0.006579807959496975, 0.0065113636665046215, 0.033747754991054535, -0.042928457260131836, -0.013141363859176636, 0.03843849152326584, -0.06322456151247025, -0.038036949932575226, 0.030900457873940468, 0.05048473924398422, 0.02814442105591297, -0.00435992144048214, 0.02944030612707138, -0.03476985916495323, -0.03957010805606842, -0.031667038798332214, 0.012201392091810703, -0.002044212305918336, -0.00217996072024107, -0.06388162821531296, 0.028911001980304718, -0.0023248351644724607, 0.0709998682141304, 0.05471917986869812, -0.018854206427931786, -0.014920923858880997, -0.023106899112462997, -0.01064998097717762, -0.03035290166735649, 0.008154033683240414, -0.02726833149790764, 0.025789927691221237, 0.02913002483546734, 0.017603952437639236, 0.02796190232038498, -0.03862100839614868, -0.0028541400097310543, -0.024001242592930794, -0.04278244078159332, -0.05628884211182594, 0.0377449169754982, -0.024348028004169464, 0.03584672138094902, 0.00760647701099515, 0.015368095599114895, -0.017476189881563187, -0.08001630753278732, 0.04026367887854576, 0.016006911173462868, -0.0034587341360747814, 0.04960865154862404, 0.027523856610059738, 0.0008487130980938673, -0.05230993032455444, 0.013725425116717815, 0.06461171060800552, 0.022614097222685814, 0.07092685997486115, -0.020277855917811394, 0.08571089804172516, -0.04796598106622696, 0.00652505224570632, -0.02874673344194889, -0.007355513516813517, -0.020934922620654106, 0.014373366720974445, 0.03234235942363739, -0.0037119791377335787, 0.054573167115449905 ]
30,162
networkx.readwrite.graphml
add_data
Make a data element for an edge or a node. Keep a log of the type in the keys table.
def add_data(self, name, element_type, value, scope="all", default=None): """ Make a data element for an edge or a node. Keep a log of the type in the keys table. """ if element_type not in self.xml_type: raise nx.NetworkXError( f"GraphML writer does not support {element_type} as data values." ) keyid = self.get_key(name, self.get_xml_type(element_type), scope, default) data_element = self.myElement("data", key=keyid) data_element.text = str(value) return data_element
(self, name, element_type, value, scope='all', default=None)
[ 0.014797322452068329, 0.010263373143970966, -0.009891447611153126, -0.0032676314003765583, 0.026619240641593933, 0.028549710288643837, -0.05589509382843971, -0.008102662861347198, 0.02642442286014557, -0.020792407914996147, 0.01905675418674946, -0.007168421521782875, 0.0225811917334795, -0.007017880212515593, -0.0010526820551604033, 0.008133657276630402, -0.00020948483143001795, 0.04597707837820053, -0.012884562835097313, 0.03772387281060219, 0.007544774562120438, -0.03832603991031647, -0.027380801737308502, -0.014097748324275017, 0.026601530611515045, 0.021359151229262352, -0.03108234703540802, 0.015293222852051258, -0.006216469220817089, 0.03324305638670921, -0.07721882313489914, -0.13283054530620575, -0.05051102861762047, -0.000853989680763334, 0.052955109626054764, 0.025184670463204384, -0.058657966554164886, 0.009847170673310757, -0.06248348578810692, 0.004697773605585098, 0.04069927707314491, -0.007292396854609251, -0.07041789591312408, -0.012707455083727837, 0.016869477927684784, 0.028567422181367874, 0.02001313492655754, 0.07424341887235641, -0.018720250576734543, -0.056638944894075394, 0.002214949345216155, 0.023590704426169395, 0.026087919250130653, 0.05929555371403694, -0.03221583366394043, -0.007867995649576187, -0.0037214690819382668, 0.030497891828417778, -0.004177520517259836, 0.05816206708550453, -0.001605035737156868, 0.0331190824508667, 0.011680232360959053, -0.032977394759655, -0.056922316551208496, 0.052494630217552185, -0.049342118203639984, -0.03244607523083687, -0.015647437423467636, 0.042576614767313004, 0.020969515666365623, -0.018950490280985832, 0.008678262121975422, 0.025379488244652748, 0.03967205435037613, 0.033296190202236176, 0.01027222815901041, 0.023077093064785004, 0.010360782034695148, 0.03953037038445473, -0.015824545174837112, 0.024104315787553787, -0.008142512291669846, 0.004438754171133041, 0.049412962049245834, 0.05554087832570076, -0.05642641335725784, 0.04732309281826019, 0.026442132890224457, -0.052423786371946335, 0.0106087327003479, -0.0453040711581707, -0.03276486694812775, 0.04080554097890854, 0.03551003336906433, -0.059720613062381744, 0.02716827392578125, -0.03715712949633598, 0.011609389446675777, 0.07424341887235641, -0.009510667063295841, 0.03214498981833458, 0.009873736649751663, -0.01753363199532032, -0.04643755778670311, -0.09847170859575272, 0.020438192412257195, 0.0014578151749446988, -0.03152511641383171, 0.007535919547080994, -0.04923585429787636, -0.03698002174496651, 0.05699315667152405, 0.020509036257863045, 0.00997114647179842, 0.049483805894851685, -0.006814206950366497, 0.008270914666354656, 0.035173527896404266, -0.024033471941947937, 0.014682202599942684, 0.01644442044198513, -0.014726479537785053, 0.03448280692100525, -0.0061411987990140915, 0.02123517543077469, 0.023449018597602844, -0.014965574257075787, 0.005764845293015242, -0.052494630217552185, 0.041053492575883865, -0.02626502513885498, -0.006003940477967262, 0.004210728220641613, 0.05887049809098244, -0.02452937327325344, 0.027735017240047455, 0.03226896747946739, 0.00373475207015872, 0.0600748248398304, 0.01972976326942444, -0.03811350837349892, 0.019251573830842972, 0.018242061138153076, -0.01305281464010477, -0.03386293351650238, -0.02934669516980648, 0.020739275962114334, -0.05624930560588837, -0.06719454377889633, -0.010165964253246784, 0.01410660333931446, -0.060995783656835556, 0.012069868855178356, 0.03494328632950783, -0.012370951473712921, -0.02670779451727867, -0.02288227528333664, -0.004463106393814087, -0.022545769810676575, -0.025946233421564102, 0.01843687891960144, 0.029541512951254845, 0.019552655518054962, 0.021571680903434753, 0.03843230381608009, -0.003949494566768408, -0.01972976326942444, 0.03444738686084747, 0.014407685957849026, 0.007867995649576187, -0.0636523962020874, -0.01746278814971447, 0.050085969269275665, -0.003798953490331769, -0.04962548986077309, 0.014000339433550835, 0.0066149611957371235, 0.042116135358810425, -0.0058401161804795265, -0.02971862070262432, 0.025485754013061523, -0.011334872804582119, 0.04657924175262451, -0.014877020381391048, -0.03568713739514351, 0.02980717271566391, -0.01166252139955759, 0.0454457551240921, 0.003579783020541072, 0.00044000116758979857, -0.035563163459300995, -0.047535624355077744, 0.025184670463204384, 0.03662580996751785, -0.021624812856316566, 0.021341441199183464, -0.019588077440857887, -0.03520894795656204, 0.08564913272857666, 0.043462153524160385, -0.017028875648975372, 0.06181047856807709, 0.0005778128397651017, 0.0013925068778917193, -0.003001970238983631, 0.0395657904446125, -0.006203186232596636, -0.04962548986077309, -0.025627439841628075, 0.007770586758852005, -0.004228438716381788, 0.03492557629942894, 0.054513655602931976, 0.02183734066784382, -0.055434614419937134, -0.1145530566573143, -0.010962947271764278, 0.008169078268110752, -0.00622532470151782, 0.013770099729299545, 0.010325361043214798, 0.030497891828417778, -0.01407118234783411, 0.04431226849555969, -0.07031163573265076, 0.010095121338963509, -0.08019422739744186, -0.01042276993393898, 0.023342754691839218, 0.04597707837820053, 0.0543365478515625, -0.006375866010785103, -0.033384744077920914, 0.0013626199215650558, -0.02513153851032257, 0.019658919423818588, -0.012849140912294388, 0.012698600068688393, 0.0040114824660122395, -0.0004228439065627754, -0.022758299484848976, -0.03666123002767563, 0.006375866010785103, -0.030497891828417778, 0.005986229982227087, 0.027858993038535118, 0.04735851660370827, -0.017383091151714325, -0.03747592493891716, -0.000004470924068300519, -0.013690400868654251, -0.0361299067735672, -0.009758616797626019, 0.03150740638375282, -0.023767812177538872, 0.003945067059248686, -0.021022647619247437, 0.049483805894851685, -0.06914272159337997, 0.0017987468745559454, 0.037511344999074936, -0.012689744122326374, 0.059578925371170044, 0.007009024731814861, -0.05752447992563248, -0.024263711646199226, 0.028868503868579865, -0.027150562033057213, -0.020562168210744858, 0.03634243458509445, 0.06772586703300476, 0.05787869542837143, -0.044064316898584366, -0.010591021738946438, -0.03177306428551674, 0.032091859728097916, 0.029311273247003555, -0.019393259659409523, -0.014903586357831955, -0.044064316898584366, -0.016223037615418434, -0.04197445139288902, 0.034128595143556595, -0.054761603474617004, -0.04020337760448456, -0.0034735186491161585, 0.025928521528840065, -0.009413258172571659, -0.03430570289492607, -0.03733423724770546, 0.047075144946575165, -0.05529292672872543, 0.05894133821129799, -0.010095121338963509, 0.007186132483184338, 0.018844226375222206, 0.022545769810676575, 0.06914272159337997, 0.04778357222676277, 0.0792732685804367, 0.017896702513098717, 0.08947465568780899, -0.03017909824848175, -0.04959006980061531, -0.02491900883615017, 0.0485982671380043, -0.017250260338187218, -0.02700887620449066, -0.02010168880224228, -0.03062186762690544, 0.04792525991797447, -0.023980339989066124, 0.06829261034727097, 0.03967205435037613, 0.039034467190504074, 0.03974289819598198, -0.04356841742992401, 0.03687375783920288, 0.04491443559527397, -0.014097748324275017, -0.05139656364917755, -0.03317221254110336, -0.08536576479673386, 0.01637357845902443, 0.001144556561484933, 0.08749105036258698, -0.01873796246945858, 0.047145988792181015, -0.004981145262718201, -0.00737652275711298, -0.03559858351945877, 0.01926928386092186, 0.05114861577749252, -0.057914115488529205, 0.04077012091875076, -0.0053663537837564945, -0.004719912074506283, -0.016497552394866943, 0.01829519309103489, -0.024369977414608, 0.05199873074889183, -0.03485473245382309, -0.011140055023133755, 0.044595640152692795, -0.030232232064008713, -0.002525994088500738, -0.01000656746327877, 0.04611876234412193, 0.09436281770467758, -0.020137110725045204, 0.03471304848790169, 0.018330615013837814, 0.009546088054776192, 0.0845864862203598, -0.03875109553337097, 0.035031840205192566, -0.01351329404860735, -0.03687375783920288, 0.024104315787553787, 0.033916063606739044, 0.0164886973798275, 0.032534629106521606, 0.03843230381608009, -0.025645149871706963, -0.019322415813803673, 0.0300374124199152, 0.08309878408908844, 0.08770357817411423, -0.001746721682138741, 0.027451645582914352, -0.04618960618972778, -0.0023577420506626368, 0.028124652802944183, 0.017887845635414124, 0.0046667796559631824, 0.016692372038960457, -0.0038565134163945913, 0.002514924854040146, -0.078281469643116, -0.033597271889448166, 0.008009681478142738, 0.0002152961678802967, 0.03386293351650238, 0.05306137353181839, -0.006938181817531586, 0.09145825356245041, 0.024476241320371628, 0.004569370765239, 0.015514607541263103, 0.03404004126787186, 0.012751732021570206, 0.03342016413807869, 0.033296190202236176, -0.0789898931980133, -0.02890392579138279, -0.016648095101118088, -0.04193903133273125, -0.04912959039211273, 0.02325420081615448, -0.0241574477404356, -0.026601530611515045, -0.019658919423818588, 0.028053810819983482, 0.02431684546172619, -0.009581509977579117, -0.05100692808628082, -0.03288884088397026, 0.02460021711885929, 0.016426710411906242, 0.01313251256942749, -0.008558714762330055, 0.010077410377562046, -0.02197902649641037, 0.06358155608177185, 0.030586445704102516, 0.04608334228396416, -0.017285680398344994, 0.004928013309836388, -0.0064422814175486565, -0.04944838210940361, -0.0064954133704304695, 0.023874076083302498, 0.08564913272857666, -0.0002660761820152402, -0.00686733890324831, -0.031259454786777496, 0.008735821582376957, -0.056036777794361115, 0.034801602363586426, 0.009306993335485458, -0.02506069652736187, 0.018755672499537468, -0.05702858045697212, 0.04123060032725334, -0.004221797455102205, -0.021766498684883118, -0.06970946490764618, 0.01697574369609356, 0.005131686571985483, -0.013247632421553135, -0.017294537276029587, -0.001795426127500832, -0.013105946592986584, -0.11200271546840668, -0.03605906292796135, -0.05440739169716835, 0.043993476778268814, -0.009395547211170197, -0.029860306531190872, 0.040982648730278015, 0.018171217292547226, 0.10534347593784332, 0.027717307209968567, -0.02934669516980648, -0.00793441105633974, -0.0241574477404356, -0.09273342788219452, 0.07417257130146027, -0.03726339340209961, 0.014797322452068329, -0.001232003327459097, -0.023502150550484657, -0.020898671820759773, -0.020048556849360466, 0.029771752655506134, -0.0031325870659202337, -0.022333241999149323, 0.020579878240823746, -0.021022647619247437, 0.029081033542752266, 0.021270597353577614, 0.01166252139955759, -0.04498527571558952, 0.034589074552059174, -0.015009851194918156, -0.04732309281826019, 0.006783213000744581, -0.06970946490764618, -0.07459763437509537, 0.015452619642019272, -0.012973116710782051, 0.024812744930386543, 0.03324305638670921, -0.03659038618206978, 0.016851767897605896, 0.03547460958361626, -0.00011608836211962625, -0.016382433474063873, 0.04307251796126366, -0.03726339340209961, -0.010121687315404415, -0.0032477066852152348, -0.0014699912862852216, 0.02484816685318947, 0.03882193937897682, 0.0509006641805172, -0.01593966595828533, -0.03775929659605026, -0.03379208967089653, 0.0031857192516326904, -0.04247035086154938, -0.02881537191569805, -0.026318158954381943, 0.032853420823812485, 0.019818317145109177, 0.0026654661633074284, 0.04434768855571747, 0.02151854708790779, -0.013185645453631878, -0.011193186976015568, -0.014407685957849026, 0.038786519318819046, 0.0196412093937397, 0.029931148514151573, -0.03529750183224678, 0.01632930152118206, -0.004573798272758722, -0.0906081423163414, -0.04590623453259468, 0.0070931510999798775, 0.0662381649017334, -0.00018361055117566139, -0.006765502505004406, -0.002086546504870057, 0.0544782318174839, -0.07303908467292786, -0.021925894543528557, -0.033526428043842316, 0.10470588505268097, 0.002707529114559293, 0.02520238235592842, 0.01866711862385273, 0.02431684546172619, 0.016107916831970215, 0.007221553940325975, 0.0348370224237442, 0.041797343641519547, -0.033597271889448166, -0.03719255328178406, -0.012096434831619263, -0.035864245146512985, 0.013017392717301846, -0.11016079783439636, 0.007969832979142666, 0.019623499363660812, 0.04682719334959984, 0.00460921972990036, 0.035332925617694855, -0.08423227071762085, -0.023147935047745705, 0.00696032028645277, -0.03471304848790169, 0.007566913031041622, -0.011485414579510689, -0.04494985565543175, -0.01949952356517315, -0.021058067679405212, 0.03733423724770546, -0.020792407914996147, -0.03832603991031647, -0.019570367410779, -0.005596593488007784, 0.06018109247088432, 0.04509153962135315, -0.0016537402989342809, -0.035102684050798416, -0.04849200323224068, -0.04190360754728317, -0.042789146304130554, -0.002559201791882515, -0.009289282374083996, 0.03651954233646393, -0.06177505850791931, -0.006030506454408169, 0.02642442286014557, -0.033969197422266006, 0.004640213679522276, 0.008775671012699604, -0.052423786371946335, -0.08040675520896912, 0.04597707837820053, -0.007234836928546429, -0.002337817568331957, 0.052955109626054764, -0.009616930969059467, 0.0031038071028888226, 0.05922470986843109, -0.0240866057574749, 0.006282884627580643, -0.02490129880607128, -0.012778297998011112, -0.0455874428153038, -0.005742707289755344, 0.03235752135515213, -0.031418852508068085, 0.013991483487188816, -0.025715993717312813, -0.001978068146854639, -0.02913416549563408, -0.04445395618677139, 0.005738279316574335, -0.04254119470715523, 0.050156813114881516, 0.0043679107911884785, -0.016577251255512238, -0.05093608424067497, 0.034270279109478, -0.005786983761936426, -0.009475245140492916, 0.01709086261689663, 0.010095121338963509, -0.010396203957498074, 0.007642183918505907, -0.0012873493833467364, -0.04062843695282936, -0.010803550481796265, 0.006659237667918205, -0.011352583765983582, -0.0016216395888477564, 0.007544774562120438, -0.023378174751996994, -0.03896362707018852, -0.0020998294930905104, -0.03715712949633598, -0.03152511641383171, 0.005255661904811859, -0.01144113764166832, -0.0072658308781683445, -0.02431684546172619, 0.008222210220992565, 0.00015662935038562864, -0.02047361433506012, -0.035102684050798416, 0.007699743844568729, 0.010254518128931522, 0.040309641510248184, 0.019375547766685486, 0.06251890957355499, -0.03462449461221695, 0.0007311214576475322, 0.05320306122303009, 0.015647437423467636, -0.022156134247779846, 0.03963663429021835, 0.0572056882083416, 0.0632273405790329, -0.04778357222676277, -0.053557273000478745, -0.023767812177538872, -0.03565171733498573, -0.04162023589015007, 0.04980259761214256, 0.01593966595828533, 0.09308764338493347, 0.09053729474544525, -0.006703514605760574, 0.012282397598028183, -0.02973633073270321, -0.045941658318042755, -0.03203872591257095, 0.00921843945980072, 0.02228011004626751, -0.03294197469949722, -0.01351329404860735, -0.0006619388586841524, 0.0018064953619614244, -0.0056630088947713375, 0.011272884905338287, -0.022988539189100266, -0.045729126781225204, 0.023891786113381386, 0.008957206271588802, -0.010351927019655704, 0.004066828638315201, -0.056036777794361115, -0.012486071325838566, 0.006592822726815939, -0.04374552518129349, 0.03414630517363548, 0.0012054371181875467, 0.03775929659605026, 0.011804207228124142, -0.02973633073270321, -0.018029531463980675, 0.03124174289405346, 0.006876194383949041, -0.04009711369872093, 0.0011766572715714574, -0.042718302458524704, -0.030125966295599937, -0.06531720608472824, 0.021323729306459427, -0.043851789087057114, -0.004742050543427467, -0.09053729474544525, -0.011928183026611805, 0.022333241999149323, -0.017329957336187363, 0.003593066241592169, -0.0016913756262511015, 0.04470190405845642, 0.001859627547673881, -0.016807490959763527, 0.06641527265310287, -0.06251890957355499, -0.03974289819598198, 0.01658610627055168, 0.005348643288016319, 0.0021031503565609455, 0.001422393717803061, 0.03244607523083687, -0.05171535909175873, -0.027823571115732193, -0.05171535909175873, 0.008036247454583645, -0.04725225269794464, 0.052884265780448914, -0.06864682585000992, 0.05398233234882355, 0.017250260338187218, 0.05518666282296181, 0.05585967004299164, -0.02994886040687561, -0.04371010512113571, 0.0050165667198598385, -0.015266656875610352, -0.0695323646068573, 0.0069736032746732235, -0.024812744930386543, 0.010706141591072083, 0.0421515591442585, 0.03409317135810852, 0.06701743602752686, 0.005556744523346424, 0.002736309077590704, -0.015337499789893627, -0.005950808059424162, -0.0025082833599299192, 0.028390314429998398, -0.02341359667479992, 0.026087919250130653, -0.025468042120337486, -0.02619418315589428, 0.007066584657877684, -0.027717307209968567, 0.0539114885032177, 0.022067580372095108, -0.03453594073653221, 0.07002826035022736, 0.02881537191569805, -0.008912929333746433, -0.040380485355854034, 0.03265860304236412, 0.04363926127552986, -0.006805351469665766, 0.05989772081375122, 0.006606105715036392, 0.017781581729650497, -0.06088951975107193, 0.040380485355854034, 0.004684490617364645, -0.0014899158850312233, -0.02401576191186905, -0.027256827801465988, 0.02070385403931141, 0.02091638185083866, 0.06014566868543625 ]
30,163
networkx.readwrite.graphml
add_edges
null
def add_edges(self, G, graph_element): if G.is_multigraph(): for u, v, key, data in G.edges(data=True, keys=True): edge_element = self.myElement( "edge", source=str(u), target=str(v), id=str(data.get(self.edge_id_from_attribute)) if self.edge_id_from_attribute and self.edge_id_from_attribute in data else str(key), ) default = G.graph.get("edge_default", {}) self.add_attributes("edge", edge_element, data, default) graph_element.append(edge_element) else: for u, v, data in G.edges(data=True): if self.edge_id_from_attribute and self.edge_id_from_attribute in data: # select attribute to be edge id edge_element = self.myElement( "edge", source=str(u), target=str(v), id=str(data.get(self.edge_id_from_attribute)), ) else: # default: no edge id edge_element = self.myElement("edge", source=str(u), target=str(v)) default = G.graph.get("edge_default", {}) self.add_attributes("edge", edge_element, data, default) graph_element.append(edge_element)
(self, G, graph_element)
[ 0.03356194868683815, 0.003795696422457695, -0.018669741228222847, 0.06516247987747192, -0.039010316133499146, -0.024499494582414627, -0.024463173002004623, 0.01948699727654457, 0.0704292356967926, -0.015082898549735546, -0.00996143277734518, -0.024699268862605095, 0.027241840958595276, 0.012731020338833332, -0.003225887892767787, 0.05070614442229271, -0.03545071557164192, 0.03049270063638687, 0.0013711726060137153, 0.05048821121454239, 0.015219108201563358, -0.0780932754278183, -0.013375743292272091, -0.026261134073138237, 0.04409546032547951, 0.04889002442359924, -0.009094234555959702, 0.05328503996133804, 0.06701492518186569, 0.007250869646668434, -0.024390527978539467, -0.12000938504934311, -0.09073349088430405, 0.00858572032302618, 0.042933139950037, 0.03379804268479347, -0.03114650398492813, 0.009107855148613453, -0.05030659958720207, 0.03379804268479347, 0.04089908301830292, 0.022756017744541168, 0.03995469957590103, 0.0032031864393502474, 0.03101937472820282, 0.0012758261291310191, -0.006946669425815344, 0.0197957381606102, -0.015818428248167038, -0.050560854375362396, 0.021430248394608498, 0.01606360450387001, 0.05666302889585495, 0.0748242512345314, -0.022919468581676483, 0.009925110265612602, -0.03486955538392067, 0.025788942351937294, -0.02938486449420452, 0.05688096210360527, -0.024027302861213684, -0.05920559912919998, 0.035160135477781296, 0.0060613094829022884, -0.046928610652685165, 0.046492740511894226, -0.0825972631573677, 0.011087428778409958, 0.026261134073138237, 0.01077868789434433, -0.017325811088085175, -0.00409308634698391, 0.0151373827829957, -0.009816142730414867, -0.01122363843023777, 0.05114201456308365, -0.0033711777068674564, 0.026351939886808395, 0.015981879085302353, 0.0067650568671524525, -0.03356194868683815, 0.030002346262335777, -0.0406811498105526, 0.01837916113436222, 0.05898766592144966, 0.0001080451111192815, -0.07097407430410385, 0.010133964940905571, 0.01391149964183569, -0.09494689106941223, 0.003777535166591406, 0.017516503110527992, -0.03158237412571907, 0.056045547127723694, 0.009280387312173843, -0.009380273520946503, -0.024154432117938995, -0.0341067835688591, 0.03203640505671501, 0.010542592033743858, -0.025698136538267136, -0.05895134061574936, 0.001315553905442357, -0.03014763630926609, -0.009253145195543766, -0.08005468547344208, -0.00895802490413189, -0.03147340565919876, -0.014992092736065388, -0.03842915594577789, -0.016862699761986732, 0.04017263278365135, 0.05103304609656334, 0.00656982371583581, -0.01805225946009159, 0.024354204535484314, 0.06341900676488876, -0.011314444243907928, 0.056263480335474014, -0.02849496528506279, 0.0009795711375772953, -0.018869515508413315, -0.00809082668274641, 0.05568232014775276, -0.00602044677361846, -0.045584678649902344, -0.028876351192593575, 0.01629061996936798, -0.002112377667799592, -0.04889002442359924, 0.02893083356320858, -0.020485863089561462, -0.038647089153528214, -0.016317863017320633, -0.013748048804700375, -0.08659272640943527, -0.048998989164829254, 0.029639123007655144, 0.08775504678487778, 0.04315107315778732, -0.014828641898930073, -0.039446186274290085, 0.023064758628606796, 0.05455632507801056, -0.08455867320299149, -0.03970044106245041, -0.044930875301361084, -0.029838895425200462, -0.02288314513862133, -0.05146891623735428, -0.012676536105573177, 0.032072726637125015, -0.016127169132232666, -0.02840415947139263, 0.010161206126213074, 0.01413851510733366, -0.10068584233522415, 0.07780269533395767, 0.0231010802090168, -0.004513064865022898, -0.01791604980826378, -0.018206629902124405, 0.039991021156311035, 0.02322820946574211, 0.04819989576935768, 0.00498071638867259, 0.06755976378917694, 0.024172592908143997, -0.0010096507612615824, 0.045584678649902344, 0.008476752787828445, -0.04663803055882454, -0.03219985589385033, 0.005893317982554436, -0.026569874957203865, 0.027968289330601692, 0.07184581458568573, 0.02627929486334324, 0.06577996164560318, 0.05412045493721962, 0.011087428778409958, -0.019668608903884888, 0.037993285804986954, -0.002128268824890256, 0.05735315382480621, -0.04543938860297203, 0.0352509431540966, -0.02113966830074787, 0.01176847517490387, -0.035487037152051926, 0.04079011455178261, -0.04191611334681511, -0.012758261524140835, 0.03788432106375694, 0.003230428323149681, 0.00005788891212432645, 0.0024994388222694397, 0.002933038165792823, -0.04889002442359924, 0.0880456268787384, 0.025462040677666664, -0.0406811498105526, -0.016790054738521576, 0.009389353916049004, 0.022047730162739754, 0.0040658446960151196, 0.024281559512019157, -0.039991021156311035, -0.022465437650680542, -0.040753792971372604, -0.018297435715794563, -0.009253145195543766, 0.05295813828706741, 0.022047730162739754, 0.025679973885416985, 0.014746916480362415, -0.0703929141163826, 0.02893083356320858, 0.006424534134566784, 0.0056935446336865425, -0.05328503996133804, -0.04997969791293144, -0.02188427746295929, -0.023155564442276955, 0.012649294920265675, -0.061602883040905, 0.031182827427983284, -0.01446541678160429, 0.01067880168557167, 0.05655406042933464, 0.029657283797860146, 0.017416616901755333, 0.03554151952266693, -0.02290130779147148, -0.01694442518055439, 0.036576710641384125, -0.020649315789341927, 0.029221413657069206, 0.03915560618042946, 0.0034642540849745274, 0.025262266397476196, -0.019214577972888947, -0.04961647093296051, 0.02629745565354824, 0.03445184603333473, 0.008526695892214775, 0.02113966830074787, 0.01673557050526142, -0.019432513043284416, -0.02188427746295929, -0.04227933660149574, 0.01159594301134348, -0.016099927946925163, 0.024499494582414627, 0.012068135663866997, -0.03686729073524475, -0.03893766924738884, -0.022828662768006325, 0.0029716307763010263, -0.03423391282558441, 0.0605495311319828, 0.02816806361079216, -0.0039273654110729694, 0.034833233803510666, 0.011686749756336212, 0.018887676298618317, 0.01705339178442955, 0.018324678763747215, -0.05019763112068176, -0.016263378784060478, 0.04195243492722511, -0.03461529687047005, 0.016417749226093292, -0.004790023434907198, 0.022846823558211327, 0.03258123993873596, -0.02409994788467884, 0.03156421333551407, -0.08281519263982773, -0.043623268604278564, -0.03583209961652756, 0.01435645017772913, -0.018433645367622375, 0.06087643280625343, -0.05811592563986778, 0.02936670370399952, 0.020649315789341927, 0.032635726034641266, 0.0034370122011750937, -0.031963758170604706, 0.051977429538965225, 0.030964892357587814, -0.030746957287192345, 0.07206375151872635, 0.002828611060976982, 0.036249808967113495, 0.050233952701091766, 0.03334401175379753, 0.05313974991440773, -0.0003575491427909583, 0.07446102797985077, 0.003427931573241949, 0.05401149019598961, -0.005993204656988382, -0.08405015617609024, -0.008154391311109066, 0.06461764872074127, 0.007636795751750469, 0.011614104732871056, -0.019523318856954575, -0.06323739141225815, 0.06171184778213501, -0.06138494610786438, 0.0494711808860302, -0.030093152076005936, 0.04191611334681511, 0.028513126075267792, -0.04678332060575485, 0.013611839152872562, 0.00026362156495451927, -0.03334401175379753, 0.0030215741135179996, -0.03619532659649849, -0.03356194868683815, 0.01859709620475769, 0.010479028336703777, 0.044821906834840775, -0.019214577972888947, 0.01385701633989811, 0.022483598440885544, 0.007732142228633165, -0.0010947814444079995, -0.034942202270030975, 0.053502973169088364, -0.04547571390867233, 0.06835886090993881, 0.011196396313607693, -0.0042292955331504345, -0.005289457272738218, -0.02168450504541397, 0.007609554100781679, 0.017970534041523933, -0.04046321287751198, 0.0007956887711770833, 0.05789799243211746, 0.007387078832834959, -0.016145329922437668, -0.019323544576764107, -0.0341249443590641, 0.014846802689135075, 0.007196386344730854, 0.04743712395429611, 0.00709649920463562, 0.03619532659649849, 0.01391149964183569, 0.01703523099422455, -0.04453132674098015, -0.012404117733240128, -0.013430227525532246, 0.054193101823329926, 0.00681954063475132, 0.010851332917809486, 0.026333779096603394, 0.005552795249968767, -0.011632265523076057, 0.004045413341373205, 0.02342798188328743, 0.045838937163352966, 0.012476762756705284, -0.02706022746860981, 0.026914937421679497, -0.006306486204266548, 0.05822489410638809, -0.011178235523402691, 0.010397301986813545, 0.0032826417591422796, -0.0004003983049187809, 0.03312607854604721, 0.04420442506670952, -0.006179357413202524, -0.013021599501371384, 0.006311026401817799, 0.004790023434907198, 0.030220281332731247, 0.03209088742733002, -0.02916692942380905, 0.13025231659412384, -0.016090847551822662, 0.06182081624865532, -0.012068135663866997, -0.018097663298249245, 0.006869484204798937, 0.04079011455178261, 0.02188427746295929, -0.047255512326955795, -0.07729417830705643, 0.0062429215759038925, -0.007414320949465036, -0.009761659428477287, -0.011205476708710194, -0.0736982598900795, 0.011713990941643715, 0.0017536934465169907, 0.06523513048887253, 0.01363908126950264, -0.015927396714687347, -0.02684229239821434, 0.03258123993873596, 0.05840650573372841, -0.013257695361971855, -0.022810500115156174, 0.04612951725721359, -0.054520003497600555, -0.014846802689135075, 0.05778902396559715, 0.012976196594536304, 0.051432594656944275, -0.007446102797985077, 0.02290130779147148, 0.008531236089766026, -0.028440481051802635, 0.05579128861427307, -0.0013462009374052286, -0.005343941040337086, -0.03879237920045853, -0.03904663771390915, -0.024281559512019157, 0.06621583551168442, -0.08070848882198334, 0.024263398721814156, -0.013076083734631538, -0.003859260817989707, 0.04976176097989082, -0.033380333334207535, 0.027968289330601692, -0.010606156662106514, 0.0028081797063350677, -0.037139710038900375, 0.06312842667102814, -0.03565048798918724, 0.002869473770260811, -0.045148808509111404, -0.04645641893148422, -0.03047453798353672, -0.037448450922966, -0.0549921952188015, -0.03428839519619942, 0.044712942093610764, 0.0505971796810627, 0.0037412126548588276, -0.00044807151425629854, -0.012177102267742157, 0.033834364265203476, 0.013693565502762794, -0.046238481998443604, 0.025698136538267136, 0.015264511108398438, -0.04013631120324135, 0.01858801580965519, 0.02221118099987507, 0.002163456054404378, 0.00420886417850852, -0.02860393188893795, 0.005816132761538029, -0.03663119301199913, 0.016154412180185318, 0.03214536979794502, -0.017416616901755333, -0.05666302889585495, 0.02177531085908413, 0.022574404254555702, -0.0418434664607048, -0.025480201467871666, -0.06425441801548004, 0.03875605762004852, -0.01518278568983078, -0.01816122606396675, -0.0038320189341902733, -0.03594106808304787, -0.04994337260723114, 0.03588658571243286, -0.019741253927350044, -0.004490363411605358, -0.011114670895040035, 0.009661772288382053, 0.04409546032547951, 0.015355316922068596, 0.005280376877635717, -0.06240197643637657, 0.011477895081043243, -0.03615900129079819, -0.027786677703261375, -0.04852679744362831, 0.06897634267807007, 0.08165287226438522, 0.021829795092344284, 0.02210221253335476, -0.03180030733346939, 0.004079465754330158, -0.05786166712641716, -0.020086316391825676, -0.031291794031858444, -0.025244105607271194, -0.0060522286221385, 0.0019773035310208797, 0.019214577972888947, -0.06073114275932312, 0.025897908955812454, 0.01791604980826378, 0.0056436010636389256, 0.026787810027599335, -0.03256307914853096, 0.04249726980924606, 0.033053431659936905, 0.057244185358285904, -0.03980940952897072, -0.015536929480731487, 0.01342114619910717, 0.004771862179040909, 0.02477191388607025, 0.020703798159956932, 0.01990470476448536, -0.026878615841269493, 0.02133944071829319, -0.036467742174863815, 0.07555070519447327, -0.04536674544215202, -0.025498362258076668, 0.0209035724401474, -0.0004230998456478119, -0.025462040677666664, 0.07217271625995636, 0.012467682361602783, 0.0791829526424408, -0.02627929486334324, 0.011977328918874264, 0.048417828977108, 0.04580261558294296, -0.017416616901755333, -0.03181846812367439, -0.01309424452483654, 0.03842915594577789, -0.03802960738539696, 0.005970503203570843, -0.05510116368532181, -0.00940751563757658, 0.002917147008702159, 0.010097642429172993, 0.019414352253079414, -0.07620450854301453, -0.034506332129240036, 0.09531012177467346, -0.024227077141404152, 0.02355511114001274, 0.018833192065358162, -0.06963014602661133, -0.027641387656331062, 0.02938486449420452, 0.0021191881969571114, 0.025262266397476196, -0.010933058336377144, -0.028513126075267792, -0.03047453798353672, 0.009116935543715954, 0.05764373391866684, 0.011205476708710194, -0.007963698357343674, -0.04282417148351669, -0.03156421333551407, 0.0219932459294796, -0.031636856496334076, -0.0539388433098793, -0.020213445648550987, -0.0473281554877758, -0.03828386589884758, -0.0225562434643507, -0.04638377204537392, 0.005371182691305876, 0.023809367790818214, -0.04547571390867233, -0.08593892306089401, 0.018533531576395035, 0.007473344914615154, 0.03599555045366287, 0.03049270063638687, 0.024390527978539467, 0.05477426201105118, 0.06654273718595505, -0.03897399455308914, -0.015046576038002968, -0.014029547572135925, -0.05786166712641716, -0.006342808250337839, -0.014556223526597023, -0.030710633844137192, -0.0007797976722940803, 0.011341686360538006, 0.0014744646614417434, -0.06577996164560318, -0.02969360537827015, -0.030329247936606407, 0.013103324919939041, 0.04689228907227516, 0.018460886552929878, -0.026043199002742767, 0.005575496703386307, -0.0197957381606102, -0.042642559856176376, -0.018796870484948158, -0.04217036813497543, -0.030637988820672035, 0.052304334938526154, -0.019523318856954575, 0.006878564599901438, -0.057244185358285904, -0.029003478586673737, -0.029112447053194046, 0.11201844364404678, -0.0007326920167542994, 0.022356471046805382, -0.01618165336549282, -0.03345298022031784, -0.03555968403816223, 0.03290814161300659, -0.018869515508413315, -0.005580036900937557, -0.007082878611981869, -0.0056163594126701355, 0.0002734115987550467, 0.031527888029813766, -0.012276989407837391, -0.04166185483336449, 0.02068563736975193, -0.0019353057723492384, 0.06029527261853218, -0.07576864212751389, 0.050124987959861755, 0.02664251998066902, 0.00967993400990963, 0.003577761584892869, -0.04464029520750046, 0.03648590296506882, -0.021811634302139282, 0.009870626963675022, 0.013793451711535454, 0.08942588418722153, 0.04685596376657486, -0.04976176097989082, -0.0078002470545470715, -0.03752109408378601, 0.02840415947139263, 0.005984124261885881, 0.005552795249968767, -0.049434859305620193, -0.008476752787828445, 0.02179347164928913, -0.04235197976231575, -0.007841109298169613, -0.03156421333551407, -0.012276989407837391, 0.036031875759363174, 0.02322820946574211, 0.030329247936606407, -0.0418434664607048, -0.021157829090952873, 0.01738029345870018, 0.01905112713575363, -0.03915560618042946, 0.010034077800810337, 0.006442695390433073, -0.0582975372672081, -0.003368907608091831, 0.011904683895409107, 0.004304210655391216, -0.02221118099987507, -0.037030741572380066, 0.03454265370965004, -0.016227055341005325, -0.004090816248208284, 0.0054983114823699, -0.03290814161300659, 0.03621348738670349, -0.022265663370490074, -0.04707390069961548, -0.030093152076005936, -0.024227077141404152, -0.022410953417420387, -0.017189601436257362, 0.023700401186943054, -0.02695126086473465, -0.0037412126548588276, -0.07231800258159637, -0.004685596562922001, 0.0010300821159034967, -0.008444970473647118, -0.05448368191719055, -0.01923273876309395, 0.011232718825340271, 0.020376896485686302, 0.01145065389573574, 0.00814076978713274, 0.03784799575805664, -0.02903980202972889, 0.03594106808304787, 0.04794563725590706, -0.048781055957078934, -0.06864944100379944, 0.027641387656331062, 0.004749160725623369, 0.0198138989508152, -0.05844282731413841, -0.012413198128342628, -0.03926457092165947, -0.034052301198244095, 0.05048821121454239, 0.028894511982798576, 0.013484710827469826, -0.002043138025328517, -0.09995939582586288, 0.022628888487815857, -0.00841772835701704, 0.014492658898234367, 0.036140840500593185, -0.002565273316577077, -0.018833192065358162, -0.02795012854039669, 0.029984185472130775, -0.010161206126213074, -0.022174857556819916, -0.0012769612949341536, -0.01782524399459362, 0.05818857252597809, 0.03368907421827316, 0.0791829526424408, -0.03198191896080971, -0.0473281554877758, -0.03399781510233879, 0.012104457244277, 0.010379141196608543, 0.018124904483556747, -0.02542571723461151, -0.05150523781776428, -0.020703798159956932, 0.016481313854455948, 0.0026220271829515696, -0.010642479173839092, -0.00808628648519516, 0.05709889903664589, -0.05568232014775276, 0.00404314324259758, 0.001337120309472084, 0.023137403652071953, 0.0037275918293744326, 0.009434757754206657, 0.023518789559602737, -0.017634551972150803, 0.04928956925868988, 0.021502893418073654, 0.017752598971128464, -0.08223403245210648, -0.042424626648426056, -0.006928508169949055, -0.011659507639706135, -0.07053820788860321, -0.0015993230044841766, 0.0682135671377182, 0.04006366804242134, 0.04478558525443077 ]
30,164
networkx.readwrite.graphml
add_graph_element
Serialize graph G in GraphML to the stream.
def add_graph_element(self, G): """ Serialize graph G in GraphML to the stream. """ if G.is_directed(): default_edge_type = "directed" else: default_edge_type = "undirected" graphid = G.graph.pop("id", None) if graphid is None: graph_element = self.myElement("graph", edgedefault=default_edge_type) else: graph_element = self.myElement( "graph", edgedefault=default_edge_type, id=graphid ) default = {} data = { k: v for (k, v) in G.graph.items() if k not in ["node_default", "edge_default"] } self.add_attributes("graph", graph_element, data, default) self.add_nodes(G, graph_element) self.add_edges(G, graph_element) # self.attributes contains a mapping from XML Objects to a list of # data that needs to be added to them. # We postpone processing in order to do type inference/generalization. # See self.attr_type for xml_obj, data in self.attributes.items(): for k, v, scope, default in data: xml_obj.append( self.add_data( str(k), self.attr_type(k, scope, v), str(v), scope, default ) ) self.xml.append(graph_element)
(self, G)
[ 0.03208475187420845, -0.0071710157208144665, -0.0334339365363121, 0.04786837846040726, -0.000985899125225842, -0.0022744410671293736, -0.08893538266420364, 0.03469071164727211, 0.02925700508058071, -0.005997409112751484, 0.003932045307010412, -0.023527584969997406, -0.008571027778089046, 0.04029075801372528, -0.022159917280077934, 0.058033477514982224, -0.0016841721953824162, -0.013815294951200485, 0.01277106162160635, 0.03766631707549095, 0.0019175074994564056, -0.04849676787853241, -0.029608163982629776, 0.02038564532995224, 0.04446769133210182, 0.016541389748454094, -0.0005189399234950542, 0.003354483051225543, -0.014046319760382175, 0.02106948010623455, -0.03988415375351906, -0.11214877665042877, -0.04572446644306183, -0.04428287222981453, 0.05341297760605812, 0.07134051620960236, -0.03275010362267494, 0.03672373294830322, -0.08220793306827545, -0.014573057182133198, 0.052156202495098114, 0.02014537900686264, -0.0038188432808965445, -0.010396124795079231, 0.0041746217757463455, 0.023786334320902824, -0.0036640565376728773, 0.09987672418355942, -0.021198853850364685, -0.027981746941804886, 0.03019958734512329, 0.018713025376200676, -0.017927540466189384, 0.09159678965806961, -0.05692455917596817, 0.01171758770942688, -0.0031511809211224318, 0.029866911470890045, 0.015256891027092934, 0.019997524097561836, -0.010738042183220387, -0.003058770904317498, 0.047646597027778625, 0.013408690690994263, -0.04058647155761719, 0.034542858600616455, -0.05404136702418327, -0.03888612613081932, -0.004851524718105793, 0.024229900911450386, 0.002797712804749608, -0.017862852662801743, 0.028443798422813416, 0.0506037138402462, 0.006593453232198954, 0.031955376267433167, -0.002002986613661051, 0.008169043809175491, -0.03184448555111885, -0.001439285697415471, 0.025357304140925407, 0.04343269765377045, -0.01719750091433525, -0.017428526654839516, 0.0491621196269989, -0.0039597684517502785, -0.014231139793992043, 0.003160421969369054, -0.016522908583283424, -0.060805778950452805, -0.002793092280626297, 0.03810988366603851, 0.008409310132265091, 0.03707488998770714, 0.03981022909283638, -0.04280431196093559, -0.06139720231294632, -0.05533510819077492, 0.0290537029504776, 0.03280555084347725, -0.059401147067546844, 0.03602141886949539, -0.06450217962265015, -0.05862490460276604, -0.023989636451005936, -0.061027564108371735, 0.006565730553120375, -0.052156202495098114, 0.005969685968011618, 0.010266751050949097, 0.0024488649796694517, -0.04335877299308777, 0.027593625709414482, 0.03951451554894447, 0.005161098204553127, 0.04335877299308777, 0.017631826922297478, 0.023860260844230652, 0.04894033446907997, -0.018343385308980942, -0.017428526654839516, 0.020958587527275085, -0.01336248591542244, 0.043210916221141815, 0.0010453880531713367, -0.01759486459195614, 0.06982499361038208, -0.019350653514266014, -0.009823182597756386, -0.03818381205201149, 0.013658197596669197, -0.02624443918466568, -0.008843637071549892, -0.00803504977375269, 0.029404861852526665, -0.04350662603974342, -0.04188021272420883, -0.026761936023831367, -0.023379730060696602, 0.10253813117742538, 0.0013376347487792373, -0.05411529541015625, 0.016079340130090714, 0.04202806577086449, -0.07100784033536911, 0.000646870001219213, -0.036317128688097, -0.0011967094615101814, -0.031493328511714935, -0.08479541540145874, 0.023527584969997406, -0.035965971648693085, -0.03859041631221771, -0.0015859865816310048, 0.0024604161735624075, -0.009051559492945671, -0.0411778949201107, 0.08376042544841766, -0.0007618049276061356, -0.00022048447863198817, -0.014101766049861908, -0.008672677911818027, 0.058883652091026306, 0.009107005782425404, 0.0073465947061777115, -0.014369755052030087, 0.06405860930681229, 0.028721027076244354, 0.004084521904587746, 0.020089933648705482, 0.026078101247549057, -0.07644154876470566, -0.05644402652978897, 0.028961293399333954, -0.013168424367904663, 0.03472767770290375, 0.06276486814022064, 0.05067764222621918, 0.02134670875966549, 0.05393047630786896, -0.004431059584021568, 0.011153887026011944, -0.014665466733276844, 0.020496537908911705, 0.010137377306818962, -0.012567759491503239, 0.023767851293087006, -0.04480036720633507, 0.0110152717679739, -0.029663609340786934, 0.04202806577086449, 0.024063562974333763, 0.009813942015171051, 0.020274754613637924, 0.014083283953368664, -0.0015201445203274488, 0.010922862216830254, -0.03324911743402481, -0.026115065440535545, 0.1174715906381607, 0.06901178508996964, -0.0061960904859006405, 0.046241965144872665, -0.010738042183220387, 0.0012452247319743037, 0.021679386496543884, 0.008949908427894115, -0.03204778581857681, -0.03988415375351906, -0.03068011999130249, 0.0060574752278625965, -0.017363838851451874, 0.06468699872493744, 0.02060743048787117, -0.010174340568482876, -0.009943315759301186, -0.08997037261724472, 0.016245678067207336, -0.029866911470890045, -0.03424714505672455, -0.015192204155027866, -0.016901789233088493, -0.04568750411272049, -0.046537674963474274, 0.017308393493294716, -0.05692455917596817, 0.057035449892282486, -0.08021187782287598, -0.022511076182127, 0.007642306853085756, 0.04446769133210182, 0.05174959823489189, 0.04025379568338394, 0.0183988306671381, 0.0045257797464728355, 0.011680623516440392, -0.009240999817848206, -0.005632389336824417, -0.01582983322441578, -0.02979298308491707, 0.009712290950119495, -0.06535235047340393, -0.05463279038667679, 0.003892771201208234, 0.0019879702012985945, 0.02811112068593502, -0.007452866528183222, 0.007859470322728157, 0.006052854936569929, -0.02787085622549057, -0.036853108555078506, -0.005068688653409481, -0.013787571340799332, -0.010932102799415588, 0.031511809676885605, -0.0222708098590374, -0.041843246668577194, -0.03554088622331619, 0.016984958201646805, -0.014988902024924755, 0.009887869469821453, 0.025579087436199188, 0.000304664223222062, 0.06520449370145798, 0.0379989929497242, -0.020681357011198997, -0.015922242775559425, 0.01771499589085579, -0.020071452483534813, -0.002938637975603342, 0.13159184157848358, 0.001484335632994771, 0.001383839757181704, 0.0041053141467273235, 0.045133043080568314, -0.02696523815393448, -0.02345365844666958, 0.04029075801372528, -0.017567140981554985, 0.030273515731096268, -0.002568997908383608, -0.033138226717710495, 0.0004204654833301902, 0.046944279223680496, -0.05263673514127731, 0.0035138900857418776, 0.010830451734364033, 0.040179867297410965, 0.005623148288577795, -0.056111350655555725, 0.03286099433898926, 0.026835864409804344, -0.03507883474230766, 0.02576390840113163, -0.028166567906737328, -0.0027214745059609413, 0.007138672284781933, 0.004860765766352415, 0.024451686069369316, 0.016624558717012405, 0.10009851306676865, -0.021494565531611443, 0.1193937212228775, 0.0002630797098390758, -0.02833290584385395, -0.010026484727859497, 0.01990511454641819, 0.009393475949764252, -0.007651547901332378, 0.00913934875279665, -0.0694553554058075, 0.04476340487599373, 0.006168367341160774, 0.04616803675889969, -0.04302609711885452, 0.06827250868082047, 0.03613230958580971, -0.06557413190603256, 0.06875304132699966, 0.029663609340786934, -0.028037194162607193, 0.0005434863269329071, -0.0013434103457257152, -0.05526117980480194, -0.03981022909283638, -0.0003511579998303205, 0.04801623523235321, 0.028277460485696793, 0.03637257590889931, -0.04058647155761719, -0.035263653844594955, -0.012955881655216217, -0.010183582082390785, 0.05056675150990486, -0.048348911106586456, 0.02598569169640541, 0.007475968915969133, -0.0641695037484169, 0.009703049436211586, -0.04428287222981453, 0.01759486459195614, 0.024192936718463898, -0.03354483097791672, 0.02955271676182747, 0.026170510798692703, 0.009153210557997227, -0.030033249408006668, -0.0426194928586483, -0.025006145238876343, 0.03792506456375122, -0.020311716943979263, 0.024082046002149582, -0.006551868747919798, 0.048164092004299164, 0.01487800944596529, 0.006362428423017263, -0.00392280425876379, 0.003460754407569766, -0.035485439002513885, 0.040179867297410965, -0.020016005262732506, 0.03049529902637005, 0.02393418923020363, 0.015635771676898003, 0.023379730060696602, -0.005392123479396105, 0.04095610976219177, 0.038294702768325806, 0.03324911743402481, -0.02175331301987171, 0.024913735687732697, -0.06132327392697334, -0.025634532794356346, 0.00866805762052536, 0.001865526894107461, 0.04287824034690857, -0.002749197417870164, 0.05481760948896408, 0.02369392290711403, -0.057515982538461685, -0.015395505353808403, 0.022455628961324692, -0.006080578081309795, 0.02204902656376362, 0.024082046002149582, -0.03585508093237877, 0.09063572436571121, 0.011237055994570255, 0.004990139976143837, 0.00012951839016750455, 0.004451851826161146, -0.03215868026018143, -0.008977631106972694, 0.0028878124430775642, -0.04062343388795853, -0.03450589254498482, 0.03230653703212738, 0.016485944390296936, -0.008811293169856071, -0.0036894693039357662, -0.02692827396094799, -0.05958596616983414, -0.036187756806612015, 0.0839822068810463, 0.014111006632447243, 0.0032782447524368763, -0.04147360846400261, 0.0016541390214115381, 0.05574171245098114, 0.03907094895839691, 0.035041872411966324, -0.04783141613006592, -0.0314563624560833, -0.03929273039102554, 0.03940362483263016, 0.04217592254281044, 0.01898101344704628, 0.006006649695336819, 0.011329465545713902, 0.0012764130951836705, -0.0060205115005373955, 0.10172493010759354, 0.05374565348029137, 0.019590919837355614, -0.013112979009747505, -0.025893282145261765, -0.045022152364254, 0.01789981685578823, -0.10128135979175568, 0.05877275764942169, 0.025431232526898384, -0.02132822759449482, 0.022455628961324692, -0.027575142681598663, 0.012253565713763237, -0.0041653807274997234, 0.004528089892119169, -0.0472399927675724, 0.0063716694712638855, 0.024451686069369316, 0.028979776427149773, -0.010211304761469364, -0.03095734864473343, -0.02997780404984951, -0.030606191605329514, -0.03214019909501076, -0.046241965144872665, 0.05537207052111626, 0.02247411198914051, 0.016476701945066452, 0.034542858600616455, -0.0005016130162402987, 0.07939866930246353, -0.015460193157196045, -0.06679394841194153, -0.025246411561965942, 0.05385654792189598, -0.0810990184545517, 0.010497775860130787, 0.03238046169281006, 0.021143408492207527, -0.023583032190799713, -0.04383930191397667, 0.0014727843226864934, -0.03591052442789078, 0.016606077551841736, 0.024045081809163094, -0.006043613888323307, -0.03731515631079674, 0.015515638515353203, 0.07954652607440948, 0.002668338594958186, -0.02134670875966549, -0.05947507545351982, 0.009093143977224827, -0.02761210687458515, -0.0651305690407753, 0.010728800669312477, -0.012133432552218437, -0.010913620702922344, -0.007069365121424198, -0.01266016997396946, 0.020736804232001305, 0.04291520267724991, -0.0033267599064856768, 0.046315889805555344, 0.060805778950452805, -0.041584499180316925, 0.0009986055083572865, 0.029811466112732887, -0.02151304855942726, 0.0037749484181404114, -0.03755542263388634, -0.0042808931320905685, 0.01707736775279045, 0.03591052442789078, -0.007466727867722511, -0.034339554607868195, -0.03250983729958534, -0.04831194877624512, -0.02598569169640541, -0.0651305690407753, -0.05744205415248871, -0.03537454828619957, 0.04971658065915108, -0.0013110669096931815, -0.011218573898077011, 0.044171977788209915, 0.03092038631439209, 0.023361247032880783, -0.027057647705078125, -0.03275010362267494, -0.020016005262732506, 0.036686770617961884, 0.02836987003684044, -0.04590928554534912, 0.009703049436211586, 0.013297799043357372, -0.015432469546794891, -0.06324540078639984, 0.04897730052471161, 0.034783124923706055, 0.006930749863386154, -0.009971038438379765, -0.01206874568015337, 0.02410052716732025, -0.07226461917161942, -0.03602141886949539, 0.008862119168043137, 0.037148818373680115, 0.012789543718099594, 0.030606191605329514, -0.022326255217194557, 0.03650194779038429, 0.03628016635775566, 0.03609534725546837, 0.06136023998260498, 0.011569731868803501, -0.05592653155326843, -0.06261701136827469, -0.045576609671115875, -0.02088465914130211, -0.0008490168838761747, 0.00029917736537754536, 0.0339144691824913, 0.004994760267436504, 0.03779568895697594, 0.019054941833019257, 0.0021184992510825396, -0.09137500822544098, -0.021882686764001846, 0.021402155980467796, -0.005646251142024994, 0.03602141886949539, 0.04797927290201187, -0.06298665702342987, -0.010368402116000652, 0.007563758175820112, 0.02158697508275509, -0.003731053788214922, -0.02018234319984913, 0.02391570806503296, -0.03250983729958534, -0.004017524886876345, 0.03859041631221771, -0.00961063988506794, 0.019831186160445213, -0.06087970733642578, -0.044615548104047775, 0.004186172969639301, 0.014933455735445023, 0.003973629791289568, -0.014378995634615421, -0.05363476276397705, 0.014046319760382175, 0.012484590522944927, -0.010497775860130787, 0.10068993270397186, 0.03749997913837433, -0.045354828238487244, -0.05004925653338432, 0.03648346662521362, 0.008321519941091537, 0.01569121703505516, 0.05230405926704407, -0.0290537029504776, -0.0012556208530440927, 0.02718702144920826, -0.013371726498007774, 0.006343946326524019, -0.0031973859295248985, -0.06136023998260498, -0.000280695385299623, -0.035725705325603485, -0.018509723246097565, -0.02014537900686264, 0.02363847754895687, -0.047461774200201035, -0.038997020572423935, 0.00013774864783044904, -0.0629127249121666, 0.024026598781347275, 0.01994207687675953, 0.02086617797613144, 0.004962416831403971, 0.00925948191434145, -0.0561852790415287, 0.025375785306096077, 0.007277287542819977, 0.0008230265229940414, -0.012595483101904392, 0.05758991092443466, -0.040401652455329895, -0.01789981685578823, -0.007549896836280823, -0.04006897658109665, -0.05067764222621918, 0.05481760948896408, 0.00854792445898056, 0.017982985824346542, 0.04062343388795853, -0.026854345574975014, -0.05374565348029137, -0.019849667325615883, -0.03988415375351906, 0.004260100889950991, -0.00544756930321455, -0.042989131063222885, -0.0009038852876983583, 0.009296446107327938, 0.033637240529060364, -0.06712662428617477, 0.039033982902765274, -0.05267369747161865, 0.010146617889404297, -0.052377987653017044, 0.008238350972533226, 0.047166064381599426, -0.01124629657715559, -0.009758495725691319, -0.014378995634615421, 0.0421389602124691, -0.013417932204902172, -0.05515028536319733, 0.00218203105032444, 0.03637257590889931, 0.045317862182855606, -0.044615548104047775, 0.015016624704003334, -0.02201206237077713, -0.010932102799415588, 0.01824173331260681, 0.05855097621679306, -0.019794221967458725, 0.060805778950452805, 0.03766631707549095, -0.02156849391758442, 0.03393295034766197, -0.015256891027092934, -0.01615326851606369, -0.02319490909576416, -0.025375785306096077, 0.0566658116877079, -0.012835748493671417, -0.002592100529000163, 0.016541389748454094, -0.010969066992402077, 0.01206874568015337, -0.004200034309178591, -0.039218802005052567, -0.08250364661216736, -0.002205133670940995, 0.03232501819729805, -0.0032274192199110985, -0.049753542989492416, -0.03472767770290375, 0.00802580825984478, -0.0066165560856461525, -0.03674221411347389, -0.0074159023351967335, -0.012262807227671146, 0.031493328511714935, -0.004576605278998613, -0.0515647791326046, -0.07925081253051758, 0.013066774234175682, -0.021697867661714554, -0.03796202689409256, 0.004634361248463392, -0.01777968369424343, -0.03378509730100632, -0.05289548262953758, 0.04731392115354538, -0.026577115058898926, 0.06453914195299149, -0.06191469728946686, 0.006080578081309795, 0.008182905614376068, 0.0180384311825037, -0.041362714022397995, 0.012142674066126347, -0.007365076802670956, -0.016338087618350983, 0.014730153605341911, 0.05004925653338432, -0.007392799947410822, -0.03628016635775566, 0.039699334651231766, 0.033193670213222504, 0.025708461180329323, -0.03066163696348667, 0.005110273137688637, 0.011292502284049988, -0.01992359571158886, 0.019553955644369125, 0.011994818225502968, -0.006570350844413042, 0.03489401564002037, -0.08568254858255386, 0.019073422998189926, -0.0472399927675724, 0.020441092550754547, 0.03356331214308739, -0.006427115295082331, 0.0013018258614465594, -0.013815294951200485, 0.0015166790690273046, -0.04505911469459534, 0.03208475187420845, -0.016966475173830986, -0.03718578442931175, 0.040179867297410965, -0.01689254865050316, 0.08790039271116257, -0.025634532794356346, -0.006755170878022909, -0.02528337575495243, 0.01916583441197872, 0.008746606297791004, -0.0023506793659180403, -0.009240999817848206, -0.02692827396094799, -0.04587232321500778, -0.015201444737613201, -0.014138730242848396, -0.0273718424141407, 0.04398715868592262, 0.019609401002526283, -0.0561852790415287, 0.04217592254281044, 0.04594625160098076, -0.01783512905240059, -0.030328961089253426, 0.043469663709402084, 0.06745930016040802, -0.000221350826905109, 0.06546324491500854, -0.013630474917590618, -0.010673354379832745, -0.09618032723665237, -0.030033249408006668, -0.01923976093530655, 0.020293235778808594, -0.060325246304273605, 0.02951575443148613, 0.07326264679431915, -0.015922242775559425, 0.060066498816013336 ]
30,165
networkx.readwrite.graphml
add_graphs
Add many graphs to this GraphML document.
def add_graphs(self, graph_list): """Add many graphs to this GraphML document.""" for G in graph_list: self.add_graph_element(G)
(self, graph_list)
[ -0.018980124965310097, -0.012423355132341385, -0.07557541131973267, 0.04972792789340019, -0.05763056501746178, 0.06301401555538177, -0.055767059326171875, -0.016228007152676582, 0.0009959173621609807, 0.09559081494808197, 0.010732398368418217, -0.03397442400455475, 0.01648682728409767, 0.035786163061857224, 0.006026189774274826, -0.025674933567643166, 0.02441534399986267, -0.021171467378735542, 0.009093205444514751, 0.008571252226829529, -0.05076320841908455, -0.01585703156888485, 0.00036369587178342044, 0.026399629190564156, 0.020947156473994255, 0.025519641116261482, 0.010516715236008167, 0.030696040019392967, -0.01729779690504074, 0.03899553045630455, -0.055421967059373856, -0.0834435373544693, -0.02979879640042782, -0.02577846124768257, 0.04172176867723465, 0.061944227665662766, -0.03305992856621742, 0.01896287128329277, -0.11457093805074692, 0.045241717249155045, 0.10580557584762573, 0.01948051154613495, 0.06018425151705742, 0.03392266109585762, 0.042342934757471085, 0.029091356322169304, -0.012181789614260197, 0.01828993856906891, -0.012414727360010147, -0.05276475101709366, 0.01107749156653881, -0.025881988927721977, -0.014304112643003464, 0.029505468904972076, -0.038374364376068115, 0.05355846509337425, 0.0036946539767086506, 0.049934983253479004, 0.06498105078935623, 0.00015165227523539215, 0.02765921875834465, -0.03140348196029663, -0.007415189873427153, -0.019618548452854156, 0.01820366643369198, 0.04079001396894455, -0.055421967059373856, -0.03878847509622574, 0.00013143198157195002, -0.017996609210968018, -0.03233523294329643, 0.051246337592601776, 0.006927745882421732, 0.015348020009696484, 0.008126944303512573, 0.019756585359573364, 0.0007381759351119399, 0.020360497757792473, -0.04676012694835663, 0.044689569622278214, 0.002622708212584257, 0.008450469933450222, -0.003107995493337512, 0.01035279594361782, 0.05928701162338257, -0.0317140631377697, -0.02612355537712574, 0.03775319457054138, -0.0006955784629099071, -0.041100598871707916, 0.01577075943350792, -0.004173470661044121, -0.0117849325761199, 0.01033554133027792, 0.005698351189494133, 0.0018085039919242263, -0.04230842366814613, -0.08289138227701187, -0.005197966005653143, 0.013355106115341187, -0.0534549355506897, -0.023500846698880196, -0.02087813802063465, -0.0462079793214798, -0.0065697114914655685, -0.09089754521846771, -0.003276228439062834, -0.05773409083485603, 0.0026378061156719923, 0.01670251041650772, -0.05134986713528633, -0.022724386304616928, 0.12119673192501068, 0.0004410722467582673, 0.011112000793218613, 0.0073720533400774, -0.0036234785802662373, 0.015537820756435394, 0.07488521933555603, 0.007665382698178291, -0.03858141973614693, 0.006608534604310989, 0.012285317294299603, 0.04068648815155029, 0.02817685902118683, 0.004745031241327524, 0.05697488784790039, -0.0026140809059143066, -0.002689569955691695, -0.0744020938873291, 0.03397442400455475, -0.02505376562476158, 0.0176860261708498, -0.012656292878091335, 0.047967955470085144, -0.07764596492052078, -0.03380187973380089, -0.08551409095525742, -0.011457093991339207, -0.0015345863066613674, -0.032921891659498215, -0.02986781671643257, 0.02583022601902485, 0.06287597864866257, -0.09911076724529266, 0.0489342138171196, -0.047036200761795044, -0.02953997813165188, -0.0708131268620491, -0.033853642642498016, 0.013665690086781979, -0.00015583114873152226, -0.028659990057349205, -0.04113510996103287, -0.03230072185397148, 0.0036860266700387, -0.03930611535906792, 0.05335140600800514, 0.005728546995669603, 0.011034354567527771, -0.009162223897874355, 0.01597781479358673, 0.009455553255975246, 0.0417562760412693, -0.03140348196029663, -0.025295330211520195, -0.019549529999494553, -0.010732398368418217, -0.05987367033958435, 0.00862732995301485, 0.04896872490644455, -0.055767059326171875, -0.01925620064139366, 0.0285564623773098, -0.0018279155483469367, -0.0185832679271698, 0.021706361323595047, 0.05186750739812851, 0.022689877077937126, 0.039823755621910095, -0.039444152265787125, -0.007216761354357004, -0.0018462486332282424, -0.022827913984656334, -0.025812970474362373, 0.03119642473757267, -0.012069634161889553, -0.009593591094017029, 0.04386134445667267, -0.014347249642014503, 0.07022646814584732, 0.010007702745497227, -0.0002518101828172803, 0.002243105787783861, 0.02966075949370861, -0.03133446350693703, -0.002879371400922537, 0.0032438759226351976, -0.04903774335980415, 0.057975657284259796, 0.06467046588659286, 0.0026981974951922894, 0.04983145743608475, -0.04493113234639168, 0.06667200475931168, 0.03751163184642792, -0.05932151898741722, -0.011431211605668068, -0.03224895894527435, -0.026071790605783463, 0.02565767802298069, -0.008454782888293266, 0.028401169925928116, 0.0156413484364748, 0.013665690086781979, 0.027331380173563957, -0.06259990483522415, -0.0012002772418782115, -0.030454473569989204, -0.07240055501461029, 0.003780927276238799, 0.0004410722467582673, -0.05987367033958435, -0.05055615305900574, -0.020101677626371384, -0.03754613921046257, 0.04548328369855881, -0.05076320841908455, 0.004438761156052351, 0.03098936937749386, 0.010171622037887573, 0.01184532418847084, 0.02577846124768257, 0.010879063047468662, -0.028659990057349205, -0.03098936937749386, -0.012664919719099998, 0.005883838981389999, 0.0051203202456235886, -0.008450469933450222, -0.036165766417980194, -0.015951933339238167, -0.019100908190011978, 0.002303497167304158, -0.007674010004848242, 0.06750022619962692, -0.019446002319455147, -0.018635032698512077, -0.010680634528398514, 0.019549529999494553, -0.011638267897069454, 0.003621321637183428, -0.0021589891985058784, -0.017755044624209404, -0.010490832850337029, 0.01527900155633688, -0.052523184567689896, -0.025795716792345047, 0.03875396400690079, -0.027245108038187027, 0.046863656491041183, 0.025174548849463463, -0.014493914321064949, 0.06846649199724197, 0.016098598018288612, -0.004425820428878069, -0.010093975812196732, 0.050728701055049896, -0.042515482753515244, -0.018445231020450592, 0.07315975427627563, 0.016978584229946136, 0.045414265245199203, -0.02714158035814762, 0.04662209004163742, 0.0018624247750267386, 0.013010012917220592, 0.03940964117646217, -0.0869634822010994, 0.001420274144038558, 0.06646494567394257, -0.02850469760596752, -0.030506238341331482, 0.019756585359573364, -0.0181173924356699, 0.029436448588967323, 0.02672746777534485, 0.04151470959186554, -0.017824063077569008, -0.047243259847164154, 0.021913418546319008, 0.013217069208621979, 0.034457556903362274, 0.024622399359941483, -0.05887289717793465, -0.037615157663822174, 0.06877707690000534, 0.026434138417243958, -0.016676628962159157, 0.02745216339826584, 0.09738530218601227, -0.03640733286738396, 0.09697118401527405, 0.002857802901417017, -0.046725619584321976, -0.03813279792666435, 0.026917269453406334, 0.0088430130854249, 0.009222615510225296, -0.026451393961906433, -0.053040824830532074, 0.08316745609045029, -0.057768601924180984, 0.0834435373544693, -0.056871358305215836, 0.0181173924356699, -0.03502696007490158, -0.033612076193094254, 0.011413956992328167, -0.0016284085577353835, -0.012984131462872028, -0.017202895134687424, 0.018738560378551483, -0.024018486961722374, 0.005288552958518267, 0.04493113234639168, 0.04693267494440079, 0.012431981973350048, 0.01470096968114376, -0.013493143953382969, 0.0029527037404477596, -0.04230842366814613, 0.0030368200968950987, 0.03485441207885742, -0.013191187754273415, -0.005215221084654331, -0.013691572472453117, -0.022448312491178513, 0.012431981973350048, -0.04531073570251465, 0.030540747568011284, 0.005103065632283688, -0.03243875876069069, 0.015373901464045048, 0.000759744259994477, 0.01201787032186985, 0.02250007539987564, -0.015675857663154602, -0.03511323407292366, 0.001136650680564344, -0.005236789118498564, 0.06753473728895187, -0.03737359121441841, 0.04330919682979584, 0.04230842366814613, 0.04786442592740059, -0.005983053240925074, 0.019791094586253166, -0.005038360599428415, -0.0294537041336298, -0.009740255773067474, 0.02386319451034069, 0.03858141973614693, 0.027676474303007126, 0.0244671069085598, 0.03212817758321762, 0.05059066042304039, 0.04282606393098831, 0.03640733286738396, -0.027969803661108017, 0.01948051154613495, -0.030488982796669006, 0.03376736864447594, 0.019808350130915642, -0.0037787705659866333, 0.03985826298594475, 0.01527900155633688, 0.03371560573577881, -0.013838237151503563, -0.014994299039244652, -0.04220489785075188, -0.008230472914874554, 0.03311169147491455, -0.00183762121014297, 0.05204005166888237, -0.018082883208990097, 0.009179478511214256, 0.011448466219007969, -0.027987057343125343, -0.028711752966046333, 0.06004621461033821, -0.021930672228336334, 0.012889230623841286, 0.0160727147012949, -0.07681774348020554, -0.03588969260454178, 0.059942688792943954, 0.013588044792413712, -0.007479894906282425, -0.006858727429062128, 0.0017642889870330691, -0.06097796559333801, -0.021913418546319008, 0.058493297547101974, -0.039996299892663956, -0.008403019048273563, -0.053213369101285934, 0.05255769193172455, 0.011681404896080494, 0.03823632746934891, 0.018341703340411186, -0.01666800118982792, -0.030488982796669006, 0.008282236754894257, -0.008390078321099281, 0.054869819432497025, -0.022224001586437225, 0.004425820428878069, 0.03568263724446297, 0.012673547491431236, 0.026434138417243958, 0.06208226457238197, 0.043619778007268906, 0.10235463827848434, -0.004048374481499195, -0.04430996626615524, -0.014226466417312622, 0.027555691078305244, -0.09055245667695999, 0.015166846103966236, 0.018738560378551483, -0.028142349794507027, 0.015779385343194008, -0.04548328369855881, 0.002303497167304158, -0.04320566728711128, -0.029695268720388412, -0.034077953547239304, 0.02693452313542366, -0.030713293701410294, 0.037235554307699203, -0.009222615510225296, 0.004990910179913044, -0.05024556815624237, -0.05055615305900574, -0.04430996626615524, -0.0434817411005497, -0.01922169141471386, -0.0003415883402340114, -0.0019519333727657795, -0.03678693249821663, 0.005564627703279257, 0.07730087637901306, -0.015011553652584553, 0.016348790377378464, -0.003252503229305148, 0.03792574256658554, -0.08592820167541504, 0.03119642473757267, 0.026451393961906433, 0.032749343663454056, -0.0025321212597191334, 0.018048373982310295, 0.011491603218019009, -0.001615467481315136, 0.0030152518302202225, -0.0004871745186392218, 0.01495978981256485, 0.008174395188689232, 0.02382868528366089, 0.023449081927537918, -0.0235698651522398, -0.031144659966230392, -0.07454013079404831, 0.0033387765288352966, -0.034250497817993164, -0.013777845539152622, -0.04317115992307663, -0.016590354964137077, -0.041618239134550095, 0.0049650282599031925, -0.004016022197902203, 0.022482821717858315, 0.026020025834441185, 0.0037981818895787, 0.041445691138505936, 0.037615157663822174, -0.06963980942964554, -0.03230072185397148, -0.032283470034599304, -0.008364195935428143, -0.05949406698346138, 0.01107749156653881, -0.06418733298778534, 0.05728546902537346, 0.0040613156743347645, 0.0018839931581169367, -0.01056847907602787, -0.005788938142359257, -0.03461284562945366, -0.013303342275321484, -0.022224001586437225, -0.0426190085709095, -0.02275889553129673, 0.05276475101709366, 0.04531073570251465, 0.04758835211396217, 0.01250962819904089, -0.04130765423178673, 0.010456323623657227, -0.020895393565297127, -0.03740810230374336, -0.02864273451268673, 0.07419503480195999, 0.038167305290699005, -0.05607764422893524, -0.036890462040901184, 0.029384685680270195, 0.027607455849647522, 0.04303311929106712, 0.04606994241476059, -0.014821752905845642, -0.032197196036577225, 0.011491603218019009, -0.0030174085404723883, 0.0122508080676198, -0.051453396677970886, -0.026071790605783463, 0.01033554133027792, 0.04624248668551445, 0.01470096968114376, 0.07709381729364395, -0.002866430440917611, 0.044862113893032074, -0.003793868236243725, -0.006608534604310989, 0.0698123499751091, -0.006677553057670593, -0.0003717840008903295, -0.020722845569252968, -0.01700446754693985, 0.020256970077753067, 0.004749345127493143, 0.0046199350617825985, 0.024691417813301086, 0.0033323061652481556, 0.004214450716972351, -0.02922939322888851, 0.040893543511629105, -0.01540841069072485, -0.03380187973380089, -0.0004467339313123375, -0.09372731298208237, 0.053627483546733856, 0.062289319932460785, -0.07923340052366257, -0.011655522510409355, -0.003418579464778304, 0.0030217221938073635, -0.0032783853821456432, -0.0029203512240201235, -0.05279925838112831, -0.02522631175816059, 0.02215498313307762, 0.022172236815094948, -0.0020640885923057795, -0.029505468904972076, -0.05562902241945267, -0.0489342138171196, 0.012354336678981781, 0.011862578801810741, -0.043447233736515045, 0.045621320605278015, -0.09372731298208237, -0.01233708206564188, -0.04317115992307663, -0.04820951819419861, 0.03678693249821663, 0.004024649504572153, -0.09207086265087128, -0.09372731298208237, 0.008963795378804207, 0.007195192854851484, 0.016012324020266533, 0.08454783260822296, 0.027676474303007126, -0.026071790605783463, 0.009429671801626682, 0.02331104502081871, 0.018100138753652573, -0.05055615305900574, -0.042722538113594055, 0.002182714408263564, 0.005702665075659752, -0.06225481256842613, 0.018980124965310097, 0.0147441066801548, -0.04824402928352356, -0.051039282232522964, -0.02838391438126564, -0.03174857422709465, 0.0726076066493988, 0.02762470953166485, 0.0607018917798996, 0.014908025972545147, 0.023069480434060097, 0.0181519016623497, -0.034664612263441086, 0.0026421197690069675, 0.006630103103816509, -0.006448929198086262, 0.06712062656879425, -0.022534584626555443, -0.02148205041885376, -0.04206686094403267, -0.017893081530928612, -0.042170386761426926, 0.06677553057670593, 0.06681004166603088, 0.02463965304195881, 0.04682914540171623, 0.0015831149648874998, -0.025467878207564354, -0.008860267698764801, -0.015201355330646038, 0.03789123147726059, -0.03476813808083534, -0.03161053732037544, 0.02049853652715683, 0.014140193350613117, 0.02557140588760376, -0.057975657284259796, 0.0088430130854249, -0.02203419990837574, 0.029643505811691284, -0.05597411468625069, 0.01823817566037178, -0.026434138417243958, 0.0004701894649770111, -0.009326143190264702, -0.03243875876069069, 0.03521675989031792, -0.006345401052385569, -0.040168847888708115, 0.041066091507673264, 0.024018486961722374, -0.036890462040901184, -0.05907995626330376, 0.05887289717793465, 0.02113695815205574, 0.002000462030991912, 0.03440579026937485, -0.011344938538968563, 0.035475581884384155, 0.049624402076005936, 0.057216450572013855, -0.016176244243979454, -0.03169681131839752, 0.009748882614076138, -0.06605083495378494, 0.0033215219154953957, 0.0088430130854249, 0.05224711075425148, 0.0005969033809378743, -0.028228623792529106, -0.02130950428545475, 0.011181019246578217, 0.006772453896701336, -0.004494838882237673, -0.0117849325761199, -0.034802649170160294, 0.005090124439448118, 0.014882143586874008, 0.038546908646821976, -0.006858727429062128, 0.012268062680959702, -0.020222460851073265, 0.007730087731033564, -0.0020177168771624565, 0.00803635735064745, -0.03421599045395851, 0.016271144151687622, 0.005405022297054529, -0.0471397303044796, -0.07723185420036316, 0.0008007240248844028, -0.005525804590433836, -0.0077818515710532665, 0.0053144353441894054, 0.04389585554599762, -0.0571819432079792, -0.005991680547595024, 0.034716375172138214, -0.01152611244469881, 0.025761207565665245, 0.04210136830806732, 0.025088274851441383, -0.022258510813117027, 0.027245108038187027, -0.020015405490994453, -0.004028962925076485, 0.0016111538279801607, -0.05138437822461128, 0.05545647442340851, 0.023155752569437027, -0.010732398368418217, -0.005456786137074232, 0.01007672119885683, -0.0058148205280303955, 0.002126636914908886, -0.02165459841489792, 0.011836696416139603, 0.031558770686388016, 0.03851240128278732, 0.016504082828760147, -0.017530733719468117, 0.06467046588659286, 0.028918810188770294, -0.02838391438126564, -0.030540747568011284, 0.02850469760596752, 0.02872900851070881, 0.04296410083770752, -0.038892004638910294, -0.007333230227231979, -0.03269758075475693, 0.009938684292137623, -0.023362809792160988, 0.05424864962697029, -0.019911877810955048, -0.035786163061857224, 0.000993760535493493, 0.0017384069506078959, 0.028073331341147423, -0.02595100738108158, -0.010223385877907276, -0.019808350130915642, 0.01195747870951891, -0.02058480866253376, -0.0018009551567956805, -0.002463102573528886, -0.04831304773688316, -0.02476043626666069, -0.013907255604863167, -0.02049853652715683, -0.06180619075894356, 0.03469911962747574, 0.027245108038187027, -0.045793864876031876, 0.06270343065261841, 0.054697271436452866, 0.026882760226726532, -0.041618239134550095, 0.001982128946110606, 0.016219379380345345, 0.022776151075959206, 0.08668740838766098, -0.03009212575852871, 0.008191649802029133, -0.06870805472135544, -0.00878262147307396, 0.008135572075843811, 0.028245877474546432, -0.03937513381242752, 0.02928115800023079, 0.04510368034243584, 0.012397472746670246, 0.03595871105790138 ]
30,166
networkx.readwrite.graphml
add_nodes
null
def add_nodes(self, G, graph_element): default = G.graph.get("node_default", {}) for node, data in G.nodes(data=True): node_element = self.myElement("node", id=str(node)) self.add_attributes("node", node_element, data, default) graph_element.append(node_element)
(self, G, graph_element)
[ -0.028274238109588623, 0.019709544256329536, -0.05235571786761284, 0.028686346486210823, -0.009200774133205414, 0.05880611389875412, -0.059164468199014664, 0.029761413112282753, 0.10119955241680145, 0.02402772754430771, -0.005039372015744448, -0.010714825242757797, 0.030119767412543297, 0.027235006913542747, -0.029277632012963295, -0.03535175696015358, -0.004468243569135666, 0.021949265152215958, -0.014970295131206512, 0.01358166802674532, -0.0031580065842717886, -0.02956431731581688, 0.011798850260674953, -0.018132781609892845, 0.020677104592323303, 0.036623917520046234, 0.0020291872788220644, 0.030926067382097244, 0.03479630500078201, 0.0363551527261734, -0.023239344358444214, -0.10865334421396255, -0.11094681918621063, -0.009639758616685867, 0.06289136409759521, 0.04701622202992439, -0.02651829645037651, 0.03855903446674347, -0.05597510561347008, 0.013079970143735409, 0.06407393515110016, 0.023275179788470268, -0.005218550097197294, -0.004958742298185825, -0.0011467371368780732, -0.0066564506851136684, 0.08235006034374237, 0.05995285138487816, -0.006002452224493027, -0.056691817939281464, 0.02460109442472458, -0.007982365787029266, 0.019189929589629173, 0.05160317197442055, -0.029116373509168625, 0.0004521436640061438, -0.0029564315918833017, 0.023830631747841835, -0.012139287777245045, 0.056118447333574295, 0.008484062738716602, -0.018849492073059082, -0.005612740758806467, -0.022003019228577614, -0.04676537215709686, 0.05228404700756073, -0.05920030549168587, -0.014235666953027248, 0.027450019493699074, 0.0006775155779905617, -0.011637589894235134, 0.003845600876957178, 0.022271785885095596, 0.010813373140990734, 0.016914373263716698, 0.05024142190814018, 0.005187193863093853, 0.01569596491754055, -0.02015748806297779, 0.040099963545799255, -0.035638440400362015, 0.024063562974333763, -0.05135232210159302, 0.05242738872766495, 0.04981139302253723, -0.04905884712934494, -0.060669559985399246, 0.0027839732356369495, 0.012506602331995964, -0.0685533806681633, -0.023579781875014305, 0.015176349319517612, 0.006289136596024036, 0.04357600957155228, 0.04371935501694679, 0.006952093914151192, -0.019960394129157066, -0.04773293435573578, 0.01741607114672661, 0.056691817939281464, -0.03648057579994202, 0.0010347510688006878, -0.03226989880204201, -0.03658808022737503, 0.0039105527102947235, -0.08184836059808731, -0.0429668053984642, 0.009142541326582432, -0.003655224572867155, 0.03741230070590973, -0.05292908474802971, -0.01540928054600954, 0.09066390246152878, -0.0198349691927433, 0.009523293934762478, 0.02006790041923523, 0.05622595548629761, 0.029008865356445312, 0.059666167944669724, -0.007144710049033165, -0.006208506412804127, -0.02857884019613266, 0.022898906841874123, 0.04619200527667999, 0.0022721970453858376, -0.012031781487166882, 0.004913948010653257, 0.030585629865527153, -0.016403716057538986, -0.05647680535912514, 0.04569030925631523, -0.012605149298906326, -0.027270842343568802, -0.011485288850963116, 0.010813373140990734, -0.06801584362983704, -0.04784043878316879, 0.014020653441548347, 0.04518860951066017, 0.07439456880092621, -0.007252216339111328, -0.09317239373922348, 0.01420878991484642, 0.06371558457612991, -0.05995285138487816, -0.018956998363137245, -0.04189174249768257, -0.0039687855169177055, -0.057623542845249176, -0.049668051302433014, 0.004949783440679312, 0.03493964672088623, 0.012614108622074127, -0.007265654858201742, -0.03515465930104256, 0.021017542108893394, -0.048843834549188614, -0.0027503774035722017, -0.026464542374014854, 0.006445916835218668, -0.016582893207669258, -0.02228970266878605, 0.05525839701294899, 0.04343266785144806, 0.012175123207271099, 0.013751886785030365, 0.021770088002085686, 0.0035074029583483934, -0.025461148470640182, 0.027450019493699074, 0.0454036220908165, -0.06160128489136696, 0.0022598784416913986, 0.02626744844019413, 0.034563373774290085, -0.019709544256329536, 0.0404583178460598, -0.021160883828997612, 0.05128065124154091, 0.03576386347413063, -0.03235948830842972, 0.006938655395060778, 0.026070352643728256, 0.003626108169555664, 0.015445115976035595, -0.04766126349568367, 0.01419983059167862, -0.002613754477351904, -0.01584826596081257, -0.0371614508330822, 0.05683515965938568, 0.02775462158024311, -0.003287910483777523, 0.056369297206401825, 0.030854396522045135, 0.03418710082769394, 0.014459638856351376, -0.02064126916229725, -0.07242361456155777, 0.09768766909837723, 0.055043384432792664, 0.0017682596808299422, 0.01708459109067917, -0.018061110749840736, 0.04160505533218384, -0.0037336149252951145, -0.006750518921762705, -0.0009535612189210951, -0.053645797073841095, -0.05088645964860916, -0.006177150644361973, 0.004864674061536789, 0.03780648857355118, 0.030926067382097244, -0.045224446803331375, 0.0014233427355065942, -0.10248963534832001, 0.011727179400622845, -0.011780932545661926, -0.050420597195625305, -0.05705017223954201, -0.029044700786471367, -0.039275746792554855, -0.06138627231121063, 0.005061769392341375, -0.038809884339571, 0.02512071095407009, -0.06210298463702202, -0.008605008013546467, 0.021340060979127884, 0.013940023258328438, 0.03422293812036514, -0.0002031147014349699, 0.0025129669811576605, -0.00739107932895422, -0.04730290547013283, 0.03015560284256935, 0.009792059659957886, 0.017613165080547333, -0.031517352908849716, -0.022415127605199814, -0.030693136155605316, -0.04601282626390457, -0.001421102904714644, 0.02553281933069229, 0.034975484013557434, -0.012506602331995964, 0.013769804500043392, -0.03515465930104256, -0.02718125283718109, -0.042895134538412094, -0.0177565086632967, -0.011225481517612934, 0.021662581712007523, -0.01569596491754055, -0.006746039725840092, -0.035566769540309906, -0.01694124937057495, 0.01592889614403248, -0.022038854658603668, 0.033739157021045685, 0.028292154893279076, -0.01457610446959734, 0.039096567779779434, 0.03730479255318642, 0.007162627764046192, 0.013563750311732292, 0.04733874276280403, -0.03558468818664551, -0.015328650362789631, 0.09209732711315155, 0.028059223666787148, 0.016287250444293022, -0.044149380177259445, 0.04608449712395668, 0.013035176321864128, -0.026070352643728256, 0.05432667210698128, -0.04658619686961174, -0.031158998608589172, -0.006938655395060778, -0.0016831503016874194, -0.017810260877013206, 0.03617597371339798, -0.05837608873844147, -0.005012495443224907, 0.03895322605967522, 0.07174274325370789, -0.04536778852343559, -0.054720863699913025, 0.005043851677328348, 0.05196152627468109, -0.011843644082546234, 0.059415318071842194, -0.04078083857893944, -0.006163712125271559, -0.0035656357649713755, 0.05328744277358055, 0.01053564716130495, 0.027288760989904404, 0.0974726602435112, -0.05525839701294899, 0.021160883828997612, -0.042250096797943115, -0.053144101053476334, 0.008116749115288258, 0.060669559985399246, 0.0412825383245945, -0.02486986108124256, -0.027396267279982567, -0.07066767662763596, 0.047446250915527344, -0.02295266091823578, 0.03691060096025467, -0.019727462902665138, 0.01420878991484642, 0.040350813418626785, -0.04608449712395668, 0.03812900930643082, -0.0002042345586232841, -0.024583177641034126, -0.030209356918931007, -0.06783667206764221, -0.013850434683263302, -0.030943984165787697, 0.04024330526590347, 0.0643606185913086, 0.05214070528745651, -0.0421425886452198, 0.040279142558574677, 0.013698133639991283, -0.014961335808038712, -0.04253678023815155, 0.051925692707300186, -0.05880611389875412, 0.04260845109820366, 0.008851377293467522, -0.028883442282676697, -0.003856799565255642, 0.0029497125651687384, -0.011297152377665043, 0.026464542374014854, -0.08686533570289612, 0.028973029926419258, 0.060418713837862015, -0.002353946678340435, 0.04468691349029541, -0.001468137139454484, -0.022038854658603668, 0.0028534044977277517, -0.005550028756260872, 0.10134289413690567, -0.02214636094868183, 0.022003019228577614, 0.043253492563962936, 0.0330582819879055, 0.026303283870220184, 0.01189739815890789, -0.03121275082230568, 0.034473784267902374, -0.03015560284256935, 0.017693795263767242, 0.0445794053375721, 0.00478852353990078, -0.0019698345568031073, 0.011870521120727062, 0.09876273572444916, 0.08543191850185394, 0.0454036220908165, -0.042321767657995224, 0.05106563866138458, -0.02626744844019413, 0.00349844410084188, -0.0037582518998533487, -0.0210712943226099, 0.009039513766765594, 0.006589259020984173, -0.0018444102024659514, 0.016161827370524406, -0.05095813050866127, -0.021931348368525505, -0.02651829645037651, 0.021859677508473396, 0.013187477365136147, 0.004298024345189333, -0.026822898536920547, 0.1140286773443222, 0.011745097115635872, 0.01997831091284752, -0.02933138608932495, 0.009026075713336468, -0.03651640936732292, 0.01570492424070835, 0.03157110512256622, -0.053144101053476334, -0.05303659290075302, 0.030352698639035225, -0.03063938207924366, -0.033739157021045685, -0.03533383831381798, -0.016797907650470734, -0.010598359629511833, -0.006378725171089172, 0.059988684952259064, -0.005756082944571972, 0.0011646548518911004, -0.06246133893728256, -0.018204452469944954, 0.05386080965399742, 0.0627121850848198, -0.028112977743148804, 0.03906073421239853, -0.013653338886797428, -0.020712940022349358, 0.07091852277517319, 0.0206591859459877, 0.008569172583520412, 0.023723125457763672, 0.018150698393583298, -0.020945871248841286, -0.03895322605967522, 0.017881931737065315, 0.012443889863789082, 0.07532629370689392, 0.01601848378777504, -0.00240546022541821, 0.0010661071864888072, 0.005742644425481558, -0.08141833543777466, 0.007632968947291374, 0.003534279763698578, 0.006826669443398714, 0.038200680166482925, -0.028292154893279076, 0.04608449712395668, -0.04400603845715523, 0.015059883706271648, -0.06127876415848732, 0.008779706433415413, 0.00809883140027523, 0.007928612641990185, 0.0012576032895594835, -0.00728805223479867, -0.014146077446639538, -0.06554319709539413, -0.006477273069322109, -0.02164466306567192, 0.018544889986515045, 0.013635421171784401, 0.004470482934266329, -0.01758628897368908, -0.01808798685669899, 0.08321011066436768, 0.01792672649025917, -0.042429275810718536, 0.01202282216399908, -0.04565447196364403, -0.0694134309887886, 0.004206195939332247, -0.020121652632951736, 0.006840107962489128, 0.028184648603200912, -0.01601848378777504, 0.0025129669811576605, -0.009281403385102749, -0.01069690752774477, 0.04085250943899155, -0.025156546384096146, -0.017120426520705223, 0.02040833793580532, 0.026070352643728256, -0.023400604724884033, -0.01782817952334881, -0.11639381945133209, 0.034742552787065506, -0.00978310126811266, -0.024421917274594307, 0.0030818560626357794, -0.049847230315208435, -0.04683704674243927, -0.0030482602305710316, -0.016968125477433205, 0.06095624715089798, 0.043253492563962936, -0.007176065817475319, 0.05135232210159302, 0.02906261943280697, -0.01915409415960312, -0.02139381505548954, -0.02254055254161358, -0.017971521243453026, -0.07367786020040512, -0.0429668053984642, 0.048843834549188614, 0.036803096532821655, 0.003823203733190894, 0.001347192213870585, -0.050420597195625305, 0.015436156652867794, -0.018777821213006973, -0.03144568204879761, 0.015731800347566605, 0.008349679410457611, -0.011386741884052753, 0.03180403634905815, 0.030513959005475044, -0.02709166519343853, 0.02823840267956257, 0.01267682109028101, 0.021859677508473396, 0.053717467933893204, 0.009469539858400822, 0.003850080305710435, 0.006383204832673073, 0.04698038846254349, -0.056190118193626404, -0.015812430530786514, 0.020999623462557793, 0.012175123207271099, -0.001634996267966926, 0.03544134646654129, 0.03321954235434532, 0.018285082653164864, 0.006365287117660046, -0.003977744374424219, 0.08048661053180695, -0.05106563866138458, -0.049023013561964035, -0.010033950209617615, 0.05973783880472183, 0.005509713664650917, 0.032753679901361465, -0.006732601206749678, 0.04590532183647156, -0.020085817202925682, 0.005236467812210321, 0.09295737743377686, 0.02709166519343853, -0.002763815689831972, -0.045726142823696136, -0.009612882509827614, -0.002025827532634139, 0.023973973467946053, -0.010150415822863579, -0.026715392246842384, 0.02048000879585743, 0.03644473850727081, -0.026303283870220184, -0.021859677508473396, -0.07783478498458862, -0.004441366530954838, -0.02178800478577614, -0.08242173492908478, 0.04465107619762421, 0.02940305694937706, -0.06618823111057281, -0.03479630500078201, -0.032735761255025864, 0.027306677773594856, 0.010087703354656696, 0.011261316947638988, -0.05500754714012146, -0.008080913685262203, 0.041175030171871185, 0.02997642569243908, -0.014764240942895412, -0.046693701297044754, -0.04576198011636734, -0.018885327503085136, 0.053144101053476334, 0.024475671350955963, -0.00999811477959156, -0.000431706226663664, -0.05973783880472183, -0.0022889948450028896, -0.03038853406906128, -0.03063938207924366, 0.03784232586622238, 0.005052810534834862, -0.08134666830301285, -0.09783101081848145, 0.01757732965052128, -0.0056037819012999535, -0.000860612781252712, 0.028811771422624588, 0.023687288165092468, -0.036731425672769547, 0.04483025521039963, -0.006723642349243164, 0.002025827532634139, -0.02080252766609192, -0.026876652613282204, 0.002285635331645608, -0.019100340083241463, -0.04941720515489578, 0.00400686077773571, 0.005016975104808807, -0.016457470133900642, -0.028041306883096695, -0.0198170505464077, -0.02336476929485798, 0.027450019493699074, 0.023561865091323853, 0.06668993085622787, -0.022003019228577614, 0.0009076468995772302, -0.03416918218135834, -0.023741042241454124, -0.015310732647776604, -0.007816625759005547, 0.007068559527397156, 0.002416658913716674, -0.03777065500617027, 0.0035947521682828665, -0.04805545508861542, -0.018114862963557243, -0.0346887968480587, 0.047374576330184937, 0.06668993085622787, 0.007014805916696787, 0.00015426077879965305, -0.013438326306641102, -0.022092606872320175, 0.04085250943899155, -0.00900815799832344, -0.037197284400463104, -0.006177150644361973, -0.009801018983125687, -0.01561533473432064, 0.02915220893919468, 0.003310307627543807, -0.0429668053984642, -0.007435873616486788, -0.024296492338180542, 0.021949265152215958, -0.048772163689136505, 0.010947756469249725, 0.00858261063694954, 0.012327424250543118, -0.0052947006188333035, -0.04024330526590347, -0.007691201753914356, -0.0027235005982220173, -0.024153150618076324, 0.01890324428677559, 0.004537674598395824, 0.05335911363363266, -0.022038854658603668, 0.013518955558538437, -0.023508111014962196, -0.023669371381402016, 0.005997972562909126, 0.018311958760023117, 0.00219716620631516, 0.010580441914498806, 0.00892304815351963, -0.03830818831920624, 0.024565258994698524, 0.0041300454176962376, -0.06170879304409027, -0.0044189696200191975, 0.011073180474340916, 0.07711806893348694, 0.02891927771270275, -0.001629397040233016, -0.032574500888586044, 0.03006601519882679, -0.05081478878855705, -0.017792344093322754, 0.03157110512256622, -0.08034326881170273, -0.011449453420937061, 0.026446625590324402, -0.007995803840458393, 0.015740759670734406, -0.04483025521039963, -0.004103168845176697, 0.04074500501155853, -0.008336241357028484, 0.022110525518655777, 0.013151641935110092, 0.007422435097396374, -0.02171633392572403, -0.06984345614910126, -0.046693701297044754, 0.01751461811363697, -0.027647115290164948, -0.040494155138731, 0.04336099699139595, 0.029600152745842934, -0.02528196945786476, -0.056440968066453934, 0.06801584362983704, 0.021501321345567703, -0.015283855609595776, -0.018939079716801643, -0.00470789335668087, 0.020999623462557793, 0.01717418059706688, -0.004425688646733761, 0.006392163690179586, 0.012399095110595226, -0.05740852653980255, 0.0026742268819361925, 0.03377499058842659, -0.04013580083847046, -0.04164089262485504, 0.03148151934146881, -0.0005033772904425859, 0.03153527155518532, -0.018867408856749535, 0.005729206372052431, -0.03651640936732292, 0.006015890743583441, -0.012945586815476418, 0.010060826316475868, 0.02295266091823578, -0.002248679753392935, -0.09073557704687119, 0.016959168016910553, 0.013411449268460274, -0.0051827142015099525, 0.027951717376708984, 0.050492268055677414, 0.00087461102521047, -0.022038854658603668, -0.007395558524876833, -0.06242550164461136, -0.0008891692268662155, 0.012417012825608253, -0.00015146113582886755, 0.055724259465932846, 0.027772540226578712, 0.04096001759171486, -0.016314128413796425, -0.024565258994698524, -0.012667861767113209, 0.03866654261946678, -0.02313183806836605, 0.014997171238064766, -0.009935402311384678, -0.04063749685883522, 0.008766267448663712, -0.01511363685131073, 0.04486608877778053, -0.021608827635645866, 0.007691201753914356, 0.019530367106199265, -0.03657016530632973, 0.043898530304431915, 0.04454357177019119, -0.00015790032921358943, -0.03873821347951889, -0.0009076468995772302, 0.07066767662763596, 0.008748349733650684, 0.04260845109820366, 0.02073085680603981, -0.004548873286694288, -0.09854771941900253, -0.030352698639035225, -0.06088457629084587, 0.00041798793245106936, -0.06658242642879486, 0.03683893010020256, 0.05138815939426422, 0.02370520681142807, 0.06479065120220184 ]
30,167
networkx.readwrite.graphml
attr_type
Infer the attribute type of data named name. Currently this only supports inference of numeric types. If self.infer_numeric_types is false, type is used. Otherwise, pick the most general of types found across all values with name and scope. This means edges with data named 'weight' are treated separately from nodes with data named 'weight'.
def attr_type(self, name, scope, value): """Infer the attribute type of data named name. Currently this only supports inference of numeric types. If self.infer_numeric_types is false, type is used. Otherwise, pick the most general of types found across all values with name and scope. This means edges with data named 'weight' are treated separately from nodes with data named 'weight'. """ if self.infer_numeric_types: types = self.attribute_types[(name, scope)] if len(types) > 1: types = {self.get_xml_type(t) for t in types} if "string" in types: return str elif "float" in types or "double" in types: return float else: return int else: return list(types)[0] else: return type(value)
(self, name, scope, value)
[ 0.07648734748363495, 0.03189985081553459, 0.03918349742889404, -0.019139910116791725, 0.022555815055966377, 0.005901020485907793, 0.029134593904018402, -0.013509993441402912, 0.012217733077704906, -0.024833085015416145, -0.013636508025228977, 0.016275249421596527, 0.04037635400891304, 0.003542419523000717, 0.022555815055966377, 0.05328088253736496, -0.027345310896635056, 0.05241335183382034, 0.0009505567722953856, 0.028881562873721123, 0.007825855165719986, -0.013202742673456669, -0.04558154195547104, -0.016772272065281868, 0.03540612384676933, -0.03549649193882942, 0.030182860791683197, -0.011214649304747581, -0.012299063615500927, 0.024742716923356056, -0.08689772337675095, -0.10489899665117264, 0.02454390749335289, 0.00824606604874134, 0.0335264727473259, 0.009768764488399029, -0.049376990646123886, 0.02288113906979561, -0.034809693694114685, -0.02420051023364067, -0.02378481812775135, -0.03139378875494003, -0.06640229374170303, -0.020730383694171906, -0.01494684163480997, 0.007211354095488787, -0.0005263927159830928, -0.0264597050845623, -0.048545606434345245, -0.028194768354296684, 0.004071071278303862, 0.004803051240742207, 0.04973846301436424, 0.07959599792957306, -0.028465870767831802, 0.011783966794610023, -0.06958324462175369, 0.01403412688523531, -0.03491813689470291, 0.05060599371790886, 0.02606208622455597, 0.017224110662937164, 0.014666701667010784, -0.06116095930337906, -0.05385923758149147, -0.013446735218167305, -0.027038060128688812, 0.0037457472644746304, -0.07066765427589417, 0.030706994235515594, -0.03677971288561821, -0.02588135190308094, -0.018145862966775894, 0.03282160311937332, 0.03184562921524048, 0.022519666701555252, 0.0007438403554260731, 0.051654260605573654, 0.03491813689470291, -0.00042190487147308886, 0.03627365455031395, 0.05920901149511337, 0.025501806288957596, -0.07099298387765884, -0.035388048738241196, 0.0383521132171154, -0.07749946415424347, 0.03712311014533043, 0.04532851278781891, -0.05085902288556099, -0.020152030512690544, -0.004306027665734291, 0.01842600479722023, 0.05938974767923355, 0.027544120326638222, -0.002964065410196781, 0.03182755410671234, -0.06455878913402557, 0.03903891146183014, 0.007690303958952427, 0.010518817231059074, 0.01741388440132141, 0.042942799627780914, -0.005760950036346912, -0.05537741631269455, -0.056678712368011475, 0.013988942839205265, -0.02288113906979561, -0.026369336992502213, 0.02371252328157425, -0.057690832763910294, -0.07211354374885559, 0.02403784729540348, 0.007428236771374941, -0.02564639411866665, 0.01328407321125269, -0.01545290183275938, 0.012985859997570515, 0.019645970314741135, 0.017883796244859695, 0.006651073694229126, 0.04081011936068535, 0.04095470905303955, 0.012678609229624271, 0.0029098447412252426, 0.032044436782598495, 0.022013606503605843, -0.05320858955383301, -0.0015012358780950308, 0.051148202270269394, -0.008788272738456726, -0.02815862186253071, -0.024995746091008186, 0.08595789223909378, 0.059931956231594086, 0.016727088019251823, -0.027779076248407364, 0.05718477442860603, 0.07164362818002701, 0.056678712368011475, 0.04583457112312317, 0.020061662420630455, 0.07518605142831802, -0.07749946415424347, -0.021742504090070724, 0.009949499741196632, -0.010573037900030613, 0.01465766504406929, -0.05913671851158142, -0.030345523729920387, -0.047533486038446426, 0.008259621448814869, 0.015977034345269203, 0.0336710587143898, 0.06958324462175369, -0.007125504780560732, -0.05205187946557999, -0.0566425658762455, -0.013808206655085087, -0.04883478581905365, -0.07186051458120346, 0.023676374927163124, -0.013103337958455086, -0.08292153477668762, 0.04601530730724335, 0.051798850297927856, -0.047027427703142166, 0.010374228470027447, 0.02103763446211815, 0.02571868896484375, -0.05353391170501709, -0.04131617769598961, 0.03370720520615578, -0.01210929173976183, 0.039328087121248245, 0.01892302744090557, 0.033960238099098206, 0.0005246982909739017, 0.0649564117193222, 0.08313842117786407, 0.030020197853446007, -0.02580905705690384, -0.055666591972112656, -0.013672655448317528, 0.0012741866521537304, 0.037159260362386703, 0.024345098063349724, -0.03341802954673767, 0.006840846035629511, 0.04247288778424263, 0.03893046826124191, 0.005516957025974989, -0.03809908404946327, 0.009868169203400612, 0.01809164322912693, -0.02270040288567543, 0.028917711228132248, 0.024742716923356056, -0.015958961099386215, 0.07598128169775009, 0.015344460494816303, -0.020658088847994804, 0.030869657173752785, 0.08798213303089142, -0.011919518932700157, 0.003691526595503092, 0.031881775707006454, -0.01642887480556965, -0.04381033033132553, -0.021507548168301582, -0.05100361257791519, -0.0023247129283845425, 0.038496702909469604, 0.04153306409716606, 0.034556664526462555, -0.05682330206036568, -0.05563044548034668, -0.030978098511695862, 0.0023495641071349382, -0.002294213743880391, 0.04279821366071701, 0.022736549377441406, 0.06300446391105652, 0.026242822408676147, 0.0685349777340889, -0.06578779220581055, -0.006389006972312927, -0.00024159278837032616, 0.007224909495562315, 0.07355942577123642, 0.03587603569030762, -0.0074643841944634914, 0.03979799896478653, 0.009606102481484413, -0.011838187463581562, 0.0022479002363979816, 0.045111630111932755, 0.011964702978730202, -0.016365617513656616, -0.000806533033028245, -0.02336912602186203, 0.019049542024731636, -0.09137996286153793, 0.0019191871397197247, -0.03972570598125458, -0.04012332484126091, 0.02696576528251171, 0.019537528976798058, -0.05216032266616821, -0.04825643077492714, -0.008603018708527088, 0.010039867833256721, 0.02035083994269371, -0.020170103758573532, 0.0593174546957016, -0.028628533706068993, -0.0489070788025856, -0.04272591695189476, 0.03099617175757885, -0.023893259465694427, -0.018462151288986206, 0.054654475301504135, 0.010844141244888306, 0.08783754706382751, -0.04681054502725601, -0.05176270380616188, 0.03173718601465225, 0.008503613993525505, -0.07088454067707062, -0.006551668979227543, 0.03385179489850998, 0.012976822443306446, 0.010401339270174503, -0.012244842946529388, -0.025574101135134697, -0.044280245900154114, 0.03508079797029495, 0.020802678540349007, 0.015145651064813137, -0.022013606503605843, -0.048545606434345245, -0.021254517138004303, -0.04836487025022507, 0.06358281522989273, -0.04648521915078163, -0.013392514549195766, -0.009804910980165005, -0.00045635763672180474, -0.018995320424437523, 0.023314904421567917, 0.05487135797739029, -0.014160641469061375, -0.02327875792980194, -0.010121198371052742, 0.010148309171199799, -0.008223474025726318, 0.026839250698685646, -0.003856447758153081, 0.06007654592394829, 0.027833295986056328, 0.04153306409716606, 0.026278968900442123, 0.055341269820928574, 0.0217786505818367, -0.0023698967415839434, 0.010256750509142876, 0.03377950191497803, -0.03677971288561821, -0.027273016050457954, 0.06510099768638611, -0.016564426943659782, 0.027001911774277687, -0.06961938738822937, 0.03661705181002617, 0.027526045218110085, 0.04348500818014145, 0.004455134738236666, 0.007252019830048084, -0.0033594246488064528, 0.06622155755758286, -0.0244535394012928, 0.03885817527770996, -0.0025054486468434334, -0.0341951921582222, -0.06441420316696167, 0.02018817700445652, 0.027254942804574966, 0.02412821538746357, 0.02302572689950466, 0.008901232853531837, -0.0019767966587096453, 0.0004992823232896626, 0.04330427199602127, 0.04348500818014145, -0.014784179627895355, 0.0541122667491436, 0.02336912602186203, 0.029550286009907722, 0.010066977702081203, -0.00007377687143161893, -0.008218955248594284, 0.03368913382291794, 0.028014032170176506, 0.00504704425111413, 0.01676323637366295, 0.02880926989018917, 0.0024218582548201084, 0.01584148406982422, 0.10345310717821121, 0.05631724372506142, -0.03189985081553459, 0.016302360221743584, 0.003551456378772855, 0.019501380622386932, 0.00515096727758646, -0.008142142556607723, 0.005083191208541393, 0.008720497600734234, -0.03428556025028229, 0.03726769983768463, 0.006226344499737024, 0.011558047495782375, 0.03374335542321205, 0.001925964723341167, 0.003696044906973839, -0.006958323996514082, 0.010663405992090702, 0.02387518435716629, 0.052738673985004425, -0.01465766504406929, 0.007261056452989578, -0.014458855614066124, -0.04287050664424896, -0.026531999930739403, -0.024272803217172623, 0.010564001277089119, 0.010817031376063824, -0.024182435125112534, 0.050642140209674835, -0.013627471402287483, -0.041677650064229965, 0.0010443134233355522, -0.004245029762387276, 0.041424620896577835, 0.008991600945591927, -0.059859663248062134, 0.03164682164788246, -0.051148202270269394, -0.03171911463141441, 0.02656814642250538, 0.00796140730381012, -0.010627258569002151, 0.003985221963375807, -0.012913565151393414, -0.015597490593791008, -0.011024877429008484, -0.0434127151966095, -0.053063999861478806, -0.04290665313601494, 0.02362215518951416, -0.0447501577436924, -0.011521900072693825, -0.030255155637860298, 0.056931741535663605, -0.005584733095020056, 0.05888368934392929, 0.009768764488399029, 0.01088932529091835, 0.011928555555641651, 0.0038745214696973562, 0.02940569818019867, -0.0010121199302375317, -0.000993481487967074, -0.04540080577135086, 0.044352538883686066, 0.02839357778429985, 0.060763340443372726, -0.0168355293571949, 0.042256005108356476, 0.023658301681280136, 0.006307675503194332, 0.014910695143043995, 0.01675419881939888, 0.02949606440961361, 0.002534818137064576, -0.02362215518951416, 0.02261003479361534, 0.04315968230366707, -0.01665479503571987, 0.0768488198518753, -0.005318147595971823, 0.002079589990898967, -0.013546139933168888, -0.0789453536272049, 0.049051668494939804, 0.004371544346213341, -0.0515819676220417, -0.06260684132575989, -0.008869604207575321, -0.05320858955383301, -0.05403997376561165, 0.0038248191121965647, -0.039834145456552505, 0.005259408615529537, -0.056497976183891296, -0.09839250892400742, -0.01562460046261549, 0.05353391170501709, -0.02555602788925171, -0.09412714838981628, -0.005155485589057207, -0.05602806434035301, 0.06463108211755753, 0.013012969866394997, -0.01332022063434124, 0.02673080936074257, -0.016962043941020966, -0.004852753132581711, 0.07475228607654572, -0.03645439073443413, -0.03594832867383957, 0.00391518697142601, -0.013988942839205265, -0.07735487818717957, -0.027526045218110085, 0.09101849794387817, 0.014883584342896938, -0.050063785165548325, 0.025953644886612892, -0.00707580242305994, 0.06792047619819641, -0.0064341905526816845, 0.050967466086149216, -0.04348500818014145, -0.012100255116820335, 0.030182860791683197, -0.03475547209382057, -0.0047217197716236115, -0.009976610541343689, -0.0631852000951767, 0.0168355293571949, -0.004762385506182909, 0.007080320734530687, 0.014079310931265354, -0.011142355389893055, 0.0021157371811568737, -0.02270040288567543, 0.012461725622415543, -0.02947799116373062, 0.038243673741817474, -0.04030406102538109, 0.036147139966487885, 0.06282372772693634, 0.029785241931676865, 0.030020197853446007, 0.030779289081692696, 0.06871571391820908, -0.007807781919836998, -0.02647777833044529, 0.03155645355582237, 0.01810067892074585, -0.03276738151907921, -0.028520092368125916, -0.0013058154145255685, 0.01868807151913643, 0.0515819676220417, -0.004348952788859606, -0.004274399019777775, 0.01684456691145897, 0.01541675440967083, 0.021254517138004303, -0.030688920989632607, 0.06622155755758286, 0.02354986034333706, 0.01926642470061779, -0.009822985157370567, 0.05237720534205437, -0.02647777833044529, -0.03755687549710274, -0.015615563839673996, -0.010988730005919933, -0.01562460046261549, -0.06401658058166504, -0.007139059714972973, -0.013473846018314362, 0.017404846847057343, -0.03148415684700012, 0.012027960270643234, -0.0032803528010845184, 0.016040293499827385, 0.06325749307870865, 0.045617688447237015, 0.010536890476942062, -0.013645544648170471, 0.02018817700445652, -0.05844992399215698, 0.002110089175403118, 0.02873697504401207, -0.010988730005919933, -0.017639802768826485, 0.0341951921582222, -0.021887091919779778, -0.011919518932700157, 0.009551881812512875, 0.03979799896478653, -0.034881990402936935, -0.012371358461678028, -0.02947799116373062, 0.03099617175757885, -0.030978098511695862, -0.07598128169775009, 0.005941685754805803, -0.01892302744090557, -0.03206251189112663, -0.02989368326961994, -0.02655007317662239, 0.01269668247550726, -0.023405272513628006, 0.013772060163319111, -0.010500743985176086, -0.0036757122725248337, -0.04807569459080696, 0.058088451623916626, 0.03376142680644989, 0.0009313535992987454, -0.0005009767482988536, -0.027001911774277687, 0.018651923164725304, 0.010780883952975273, -0.040918562561273575, -0.019627897068858147, -0.029134593904018402, 0.03683393448591232, -0.008232510648667812, 0.019411012530326843, 0.04442483186721802, -0.015958961099386215, -0.017621729522943497, -0.020549647510051727, -0.01960982196033001, -0.04290665313601494, 0.029532212764024734, -0.02470656856894493, 0.001517050201073289, -0.02345949225127697, -0.021977460011839867, 0.021760577335953712, 0.03719540685415268, -0.08212629705667496, 0.01243461575359106, -0.0217786505818367, -0.06784817576408386, 0.004879863932728767, -0.015226982533931732, -0.0012549834791570902, -0.030200934037566185, -0.005028970539569855, 0.006800180301070213, -0.012552093714475632, -0.001117737265303731, -0.0017316738376393914, 0.014684774912893772, 0.01624813862144947, 0.008426801301538944, 0.024345098063349724, -0.022591961547732353, -0.015127577818930149, 0.005819689482450485, 0.012371358461678028, -0.016645757481455803, 0.010500743985176086, 0.022320857271552086, -0.0016582499956712127, 0.0021970681846141815, 0.024435466155409813, 0.008426801301538944, -0.03696044906973839, 0.006529076956212521, -0.04247288778424263, -0.03670741990208626, -0.032297469675540924, -0.04836487025022507, 0.00926270429044962, -0.008151180110871792, -0.0003354906220920384, 0.028520092368125916, -0.011973739601671696, -0.04626833647489548, -0.006678184028714895, -0.046376779675483704, 0.03520731255412102, -0.021579841151833534, 0.013383477926254272, -0.07966829091310501, -0.06473952531814575, -0.009569955058395863, 0.019989367574453354, 0.02823091484606266, -0.01684456691145897, 0.009316924959421158, 0.023152241483330727, 0.04800340160727501, -0.009913352318108082, 0.012009887024760246, 0.01198277622461319, -0.017730170860886574, 0.016934935003519058, -0.0270561333745718, 0.0053904419764876366, 0.023061875253915787, -0.0316648930311203, -0.023929405957460403, 0.02781522274017334, -0.016221027821302414, 0.0475696362555027, 0.048039548099040985, -0.035731445997953415, -0.0022569368593394756, -0.04052094370126724, -0.033128853887319565, -0.06658302992582321, 0.026025939732789993, 0.01818201132118702, 0.03264086693525314, 0.04012332484126091, -0.013961832039058208, -0.05881139636039734, -0.03090580366551876, 0.024995746091008186, -0.06058260425925255, -0.05570274218916893, 0.09101849794387817, 0.05053370073437691, -0.02696576528251171, -0.11856261640787125, -0.0027426641900092363, 0.030345523729920387, -0.013338293880224228, -0.008991600945591927, 0.05208802595734596, 0.007044173777103424, -0.002792366547510028, -0.008729534223675728, 0.02420051023364067, 0.012046033516526222, -0.03249627724289894, -0.011666488833725452, -0.033797573298215866, -0.02152562141418457, -0.04724431037902832, -0.03918349742889404, -0.07576440274715424, 0.01177493017166853, -0.01827237941324711, -0.02271847613155842, -0.12506909668445587, -0.027995958924293518, 0.06116095930337906, 0.021254517138004303, 0.027833295986056328, 0.0072881667874753475, -0.011928555555641651, -0.03141186386346817, -0.006515521556138992, 0.07966829091310501, -0.030200934037566185, -0.06166701763868332, 0.05313629284501076, 0.047714222222566605, 0.007509568240493536, -0.04793110489845276, -0.03171911463141441, -0.02889963798224926, -0.006926695350557566, -0.022176269441843033, 0.032297469675540924, -0.05620880052447319, 0.026947692036628723, -0.055088240653276443, 0.06802891194820404, -0.01524505577981472, 0.02412821538746357, 0.0270561333745718, 0.02638741210103035, -0.032875820994377136, 0.04807569459080696, -0.027001911774277687, 0.009488623589277267, -0.026025939732789993, -0.03629172593355179, 0.039834145456552505, -0.005923612508922815, 0.018109716475009918, 0.018561555072665215, -0.018886879086494446, 0.027598340064287186, 0.007482457906007767, -0.030056346207857132, -0.015705931931734085, 0.0109254727140069, -0.051075905561447144, 0.06430575996637344, -0.08256006240844727, 0.0075637889094650745, -0.03293004259467125, -0.03443014994263649, 0.02327875792980194, 0.039834145456552505, 0.01624813862144947, -0.018453113734722137, 0.030598552897572517, -0.024164361879229546, 0.00947055034339428, 0.0061314585618674755, 0.09542844444513321, -0.02933340333402157, 0.03943652659654617, -0.04818413406610489, 0.016934935003519058, -0.04362959787249565, 0.02154369466006756, -0.004170475993305445, -0.03726769983768463, -0.03067084774374962, -0.06546247005462646, 0.0010748126078397036, -0.006081756204366684, 0.040593236684799194 ]
30,169
networkx.readwrite.graphml
dump
null
def dump(self, stream): from xml.etree.ElementTree import ElementTree if self.prettyprint: self.indent(self.xml) document = ElementTree(self.xml) document.write(stream, encoding=self.encoding, xml_declaration=True)
(self, stream)
[ -0.0007216499652713537, 0.010643632151186466, 0.028780236840248108, -0.011410984210669994, 0.04365784674882889, -0.029105233028531075, -0.05037444084882736, -0.010508216917514801, -0.0008711708942428231, 0.04026344045996666, -0.03979400172829628, -0.06561315804719925, -0.018560905009508133, 0.012584582902491093, 0.010517244227230549, 0.03639959543943405, -0.0049155703745782375, -0.05080777034163475, -0.008088799193501472, 0.11230430752038956, 0.004421304911375046, 0.029033010825514793, -0.014543588273227215, 0.017215780913829803, 0.0029136829543858767, 0.05658548325300217, -0.029339952394366264, -0.020384496077895164, -0.030477439984679222, -0.005502369254827499, -0.019481727853417397, -0.09056565910577774, 0.04033566266298294, -0.036814868450164795, 0.01831715740263462, 0.06207431107759476, -0.020041443407535553, 0.03349268436431885, 0.01588871330022812, 0.002128274878486991, 0.0021090912632644176, 0.021233096718788147, -0.05727158486843109, -0.03921623155474663, -0.04629392921924591, 0.008567266166210175, 0.057452138513326645, 0.0340704545378685, -0.03268019109964371, 0.03087465651333332, 0.05012166500091553, 0.03733847290277481, -0.0032364223152399063, -0.015608854591846466, -0.029285786673426628, -0.002054925076663494, 0.05810213088989258, -0.03871067985892296, 0.017667165026068687, -0.01643037237226963, -0.03921623155474663, 0.06066599115729332, 0.06824924051761627, -0.015419273637235165, -0.0393245629966259, 0.012521388940513134, -0.041527315974235535, -0.026378873735666275, -0.04885778948664665, 0.0642409548163414, -0.0029452797025442123, -0.04383840039372444, -0.03269824758172035, 0.03730236366391182, -0.03370934724807739, 0.03896345570683479, -0.050085555762052536, 0.008991566486656666, -0.0548882782459259, -0.06167709454894066, -0.015076221898198128, 0.01915673166513443, -0.010210303589701653, 0.03690514713525772, 0.010463078506290913, -0.020565049722790718, 0.03195798024535179, 0.01646648347377777, 0.010481134057044983, 0.011122099123895168, -0.008287408389151096, 0.0938156247138977, 0.00944295059889555, 0.017080366611480713, 0.027787191793322563, 0.02016783133149147, -0.02955661527812481, -0.011031822301447392, -0.03453989326953888, 0.011140153743326664, -0.009014136157929897, 0.06871867924928665, -0.05983544513583183, -0.031019099056720734, -0.04026344045996666, 0.011636676266789436, 0.045066166669130325, -0.0053669544868171215, -0.002210652455687523, 0.04495783522725105, 0.03141631931066513, -0.03166909143328667, -0.0004584367561619729, 0.046546705067157745, 0.011898479424417019, -0.09063788503408432, 0.03275241330265999, 0.025042777881026268, -0.00455446308478713, -0.03795235604047775, 0.007935328409075737, 0.02000533416867256, -0.0004951116861775517, 0.03114548698067665, -0.0058679901994764805, 0.0017953793285414577, 0.016204681247472763, 0.06395206600427628, 0.04178009182214737, -0.0065586077980697155, -0.021305318921804428, -0.05037444084882736, -0.02491638995707035, -0.02962883748114109, 0.0653964951634407, -0.08132132142782211, 0.017703276127576828, -0.012494306080043316, -0.019102565944194794, 0.07135476171970367, 0.00017491125618107617, -0.0774935856461525, -0.02312890999019146, -0.0014139600098133087, -0.06207431107759476, 0.00973183661699295, -0.027462195605039597, 0.016963006928563118, 0.013478322885930538, -0.006748188752681017, 0.03983011469244957, 0.0014320153277367353, -0.032806579023599625, -0.011447095312178135, -0.009506144560873508, -0.006468330975621939, 0.031398262828588486, 0.0037148892879486084, 0.042068976908922195, 0.002252405509352684, -0.060918767005205154, 0.023417795076966286, -0.011690841987729073, -0.006504441611468792, -0.007971439510583878, -0.018976178020238876, -0.04521060734987259, 0.0059943776577711105, 0.04575226828455925, -0.0432245209813118, -0.009903362020850182, -0.017062310129404068, -0.05311885476112366, 0.036887090653181076, 0.0025254928041249514, 0.024862224236130714, 0.03614681959152222, 0.029719114303588867, -0.054418839514255524, 0.02962883748114109, -0.011031822301447392, 0.009560310281813145, 0.020384496077895164, 0.002084264997392893, 0.0338718444108963, -0.03369129076600075, 0.002030099043622613, -0.03286074474453926, -0.015590799041092396, -0.034828778356313705, 0.03349268436431885, 0.02585526928305626, 0.01724286377429962, -0.032716304063797, -0.006987422239035368, -0.008278380148112774, -0.01259361021220684, -0.08197131007909775, 0.05463550612330437, 0.02134143002331257, -0.0023359116166830063, 0.054960500448942184, -0.0006088039954192936, -0.0020594389643520117, 0.024356674402952194, 0.026776092126965523, -0.015816491097211838, -0.01892201229929924, -0.01210611592978239, -0.0008045917493291199, 0.04611337557435036, -0.0023833068553358316, 0.015392189845442772, -0.08262130618095398, 0.023760847747325897, -0.07153531908988953, -0.03748291730880737, -0.023887233808636665, -0.036742646247148514, -0.029177453368902206, 0.03899956867098808, -0.0013202978298068047, -0.04936334118247032, -0.022876134142279625, -0.058571573346853256, -0.000004315476871852297, 0.05737992003560066, -0.08652126044034958, -0.012891523540019989, 0.011140153743326664, 0.05629659816622734, 0.0128463851287961, -0.028870511800050735, 0.029033010825514793, -0.012674858793616295, 0.03555099293589592, -0.05633270740509033, -0.0416717603802681, -0.03295102342963219, -0.04965222626924515, 0.009397812187671661, -0.06182153522968292, 0.02441084012389183, -0.01097765564918518, 0.0008711708942428231, -0.01808243803679943, -0.020294219255447388, -0.03939678519964218, 0.0015640450874343514, 0.013983872719109058, -0.003832249203696847, -0.04918278753757477, -0.013216519728302956, -0.005222511477768421, 0.041021768003702164, -0.036616258323192596, -0.02367057092487812, 0.01179917436093092, 0.03087465651333332, -0.016556760296225548, 0.01672828570008278, -0.024031678214669228, 0.016674119979143143, -0.012404029257595539, 0.03795235604047775, 0.03573154658079147, -0.052432749420404434, -0.07915467768907547, 0.02137754112482071, 0.021034488454461098, 0.10558771342039108, 0.019752558320760727, -0.029448283836245537, 0.04965222626924515, 0.003085208823904395, -0.023652514442801476, 0.0006815896485932171, 0.04315229877829552, 0.0014647407224401832, 0.032301031053066254, 0.048532795161008835, -0.037555139511823654, -0.0004939832142554224, 0.021034488454461098, 0.024320563301444054, -0.0658298209309578, -0.006016946863383055, 0.06879090517759323, 0.04340507462620735, -0.054527170956134796, 0.005687437020242214, 0.07001866400241852, -0.04076899215579033, -0.017288003116846085, 0.04040788486599922, 0.0008136194082908332, 0.004204640630632639, -0.002909169066697359, -0.036742646247148514, 0.0026518802624195814, 0.04817168787121773, -0.036887090653181076, 0.0899156704545021, 0.04716058820486069, 0.02036643959581852, 0.06207431107759476, -0.014624837785959244, 0.042068976908922195, -0.008513099513947964, 0.028798291459679604, -0.014146370813250542, 0.02946634031832218, 0.024537228047847748, 0.004653767682611942, 0.003198054851964116, 0.07178809493780136, 0.002545804949477315, -0.021431706845760345, 0.020330330356955528, 0.06452983617782593, -0.05160220339894295, 0.03676070272922516, 0.019265063107013702, 0.0017276718281209469, 0.01935533992946148, -0.019806724041700363, 0.008242269977927208, 0.01771230250597, 0.010652659460902214, 0.008698167279362679, -0.03239130601286888, -0.030964933335781097, 0.009740863926708698, 0.09107121080160141, 0.000570154283195734, 0.0393245629966259, -0.005082582589238882, -0.00811588205397129, -0.027931634336709976, -0.029285786673426628, 0.04625781998038292, 0.0506272166967392, 0.018524793907999992, -0.021774757653474808, -0.006508955266326666, 0.0018450316274538636, -0.0954044982790947, 0.011970700696110725, -0.018903955817222595, 0.01602412760257721, -0.017558833584189415, 0.03979400172829628, 0.0336732380092144, -0.0045499494299292564, 0.015527605079114437, -0.023760847747325897, 0.005294732749462128, 0.024970555678009987, -0.029574671760201454, 0.006919714622199535, 0.010760991834104061, 0.03567738085985184, -0.016755368560552597, -0.016538705676794052, 0.06633537262678146, -0.03481072559952736, 0.004834321327507496, -0.0163581520318985, 0.05712714418768883, 0.05712714418768883, -0.0036246124655008316, -0.06842979788780212, -0.042538415640592575, -0.04838835075497627, 0.022515026852488518, 0.06427706032991409, -0.0076374150812625885, 0.023490017279982567, 0.016845645383000374, -0.0766991451382637, 0.035370439291000366, 0.04022733122110367, 0.015292885713279247, -0.03820513188838959, -0.006793327163904905, -0.052035532891750336, 0.02390529029071331, 0.03150659427046776, 0.004703420214354992, 0.024302508682012558, 0.011429039761424065, -0.005416606552898884, 0.012476250529289246, -0.036977365612983704, -0.0017637824639678001, 0.018795624375343323, -0.0011335377348586917, 0.005872504319995642, 0.008377684280276299, 0.01865118183195591, -0.015590799041092396, -0.018542850390076637, -0.04766613617539406, -0.00776831666007638, 0.018488682806491852, -0.020853934809565544, -0.03692319989204407, -0.04986888915300369, 0.0576326921582222, 0.030549660325050354, 0.031596872955560684, -0.05712714418768883, 0.02562054805457592, -0.01308110449463129, 0.029069121927022934, -0.011383901350200176, 0.018262991681694984, 0.045463383197784424, -0.00374197238124907, -0.05171053856611252, 0.01652967743575573, 0.06788813322782516, 0.0075922766700387, 0.0266677588224411, -0.006775272078812122, -0.10334885120391846, -0.04217730835080147, 0.01335193496197462, 0.028094133362174034, 0.065432608127594, 0.006147848442196846, -0.032571859657764435, -0.02370668202638626, 0.01919284276664257, 0.06655203551054001, -0.024898335337638855, -0.003439545165747404, -0.04178009182214737, 0.023580294102430344, 0.07157142460346222, 0.0642409548163414, -0.01919284276664257, 0.01156445499509573, -0.005574590992182493, 0.02585526928305626, 0.04676336795091629, -0.032373253256082535, 0.02383306808769703, 0.06406039744615555, 0.03067604824900627, 0.012918606400489807, -0.06817702203989029, 0.02484416775405407, -0.07074087858200073, -0.04936334118247032, -0.07872134447097778, 0.047557804733514786, -0.07619360089302063, -0.02760663814842701, -0.0028504892252385616, 0.03255380690097809, -0.04824391007423401, -0.046077266335487366, 0.020330330356955528, -0.0451744981110096, 0.009370729327201843, -0.057993799448013306, 0.04741336405277252, -0.002057181904092431, -0.023887233808636665, 0.09309341013431549, 0.01440817303955555, -0.01686370186507702, -0.020727546885609627, -0.00379613833501935, 0.028635792434215546, -0.03874679282307625, -0.028130242601037025, -0.015410245396196842, 0.03993844613432884, -0.07720469683408737, 0.014516505412757397, -0.0000073217638600908685, 0.0010556740453466773, -0.03943289443850517, -0.012006810866296291, 0.049616117030382156, -0.004631198476999998, 0.043982844799757004, 0.02683025784790516, 0.0377718023955822, -0.024085843935608864, -0.07117421180009842, -0.062471527606248856, 0.01737827993929386, -0.04185231402516365, -0.05806602165102959, -0.00844990648329258, -0.06633537262678146, -0.0471244752407074, -0.03215658664703369, -0.03733847290277481, -0.01962617039680481, 0.0031055209692567587, 0.029953833669424057, 0.06528816372156143, 0.035569049417972565, 0.012024866417050362, 0.023815013468265533, 0.03726625442504883, -0.0010173064656555653, -0.02737191878259182, -0.02959272637963295, 0.028491349890828133, -0.03235519677400589, 0.006301318760961294, 0.0009270296432077885, 0.037591248750686646, 0.044993944466114044, -0.034160733222961426, 0.026721924543380737, 0.04380229115486145, 0.020077554509043694, 0.015428300946950912, -0.005818338133394718, -0.02305668778717518, -0.04690781235694885, 0.02962883748114109, -0.02137754112482071, 0.004843349102884531, 0.0214136503636837, -0.04911056533455849, 0.007416237145662308, -0.0934545174241066, 0.026252485811710358, 0.07489361613988876, -0.0030062166042625904, -0.0229664109647274, -0.02592748962342739, -0.022406695410609245, 0.034630171954631805, -0.04174398258328438, -0.05492439121007919, -0.03127187490463257, -0.007307904772460461, 0.005443689413368702, 0.011735980398952961, 0.003626869525760412, 0.012142226099967957, -0.0163581520318985, -0.00004556155909085646, -0.02040255069732666, 0.04896612465381622, 0.05922156572341919, 0.010896407067775726, -0.04116620868444443, -0.02831079624593258, 0.059004899114370346, 0.04809946566820145, 0.020041443407535553, 0.027660803869366646, -0.02231641858816147, -0.04369395971298218, 0.029014956206083298, 0.013153325766324997, 0.02946634031832218, 0.00007200983236543834, -0.04838835075497627, 0.006788813509047031, 0.02394140139222145, 0.0009027677588164806, 0.012349862605333328, -0.046980034559965134, 0.010264469310641289, 0.05087998881936073, 0.013090132735669613, 0.00994850043207407, 0.10710436850786209, 0.03244547173380852, -0.005348898936063051, -0.004617657046765089, -0.022280307486653328, -0.019174786284565926, -0.041021768003702164, 0.0021226326934993267, -0.01919284276664257, 0.008201644755899906, -0.06633537262678146, 0.01636718027293682, 0.0026654216926544905, -0.0014060607645660639, -0.08348796516656876, -0.00375777087174356, -0.050988323986530304, 0.004482241813093424, -0.05532160773873329, 0.03881901502609253, -0.05477994680404663, 0.00870268139988184, 0.009885306470096111, -0.008409281261265278, 0.035099610686302185, -0.015040110796689987, -0.027281641960144043, 0.01178111881017685, 0.03535238653421402, -0.03222880885004997, 0.04893001168966293, 0.04777446761727333, 0.07301585376262665, -0.02982744574546814, -0.011429039761424065, 0.01808243803679943, -0.0040331147611141205, -0.026108043268322945, -0.0056107016280293465, 0.046041157096624374, 0.0026721926406025887, -0.07915467768907547, 0.014561643823981285, 0.03255380690097809, 0.017224809154868126, -0.010273496620357037, -0.011004738509654999, -0.018669236451387405, 0.03515377640724182, -0.013306796550750732, -0.0019849606323987246, 0.05329940840601921, -0.01606023870408535, 0.07236586511135101, 0.0017321855993941426, -0.009587393142282963, -0.020059499889612198, -0.046077266335487366, -0.04232175275683403, -0.020113665610551834, 0.0358218252658844, -0.03643570467829704, -0.009126981720328331, 0.03143437206745148, 0.03780791163444519, -0.018371323123574257, -0.050518885254859924, -0.011699870228767395, -0.034124620258808136, 0.004529637284576893, -0.044524505734443665, -0.02690247818827629, -0.034124620258808136, -0.0001821051846491173, -0.008968997746706009, 0.01908450946211815, 0.01466094795614481, 0.031795479357242584, 0.031217709183692932, 0.03495516628026962, 0.07706025242805481, 0.04196064546704292, 0.028798291459679604, -0.00435134069994092, -0.0008722993661649525, 0.010228358209133148, 0.0009388784528709948, -0.011004738509654999, 0.04781058058142662, -0.036616258323192596, 0.05774102360010147, -0.0451744981110096, -0.051999423652887344, -0.044596727937459946, 0.04921889677643776, 0.007181517314165831, -0.020149776712059975, -0.04001066833734512, -0.058029912412166595, -0.0076193599961698055, -0.005971808452159166, -0.02814829908311367, 0.0020797511097043753, -0.027696914970874786, 0.008820041082799435, 0.03726625442504883, -0.10580438375473022, -0.04380229115486145, -0.0077502611093223095, -0.033113520592451096, -0.0029881612863391638, -0.03434128686785698, -0.026288596913218498, -0.05492439121007919, -0.07857690751552582, 0.03329407423734665, 0.0052541084587574005, 0.07460472732782364, 0.018253963440656662, 0.03197603300213814, 0.012449167668819427, 0.04936334118247032, -0.03824124112725258, 0.012015839107334614, -0.03544266149401665, 0.03827735409140587, 0.015708159655332565, 0.009921417571604252, -0.018443545326590538, 0.01619565300643444, 0.018154660239815712, 0.0463300421833992, 0.06900756806135178, 0.00013929423585068434, 0.031163543462753296, 0.00445967260748148, -0.05474383756518364, -0.003405691357329488, 0.007678039837628603, -0.009975583292543888, -0.012097087688744068, -0.00602597463876009, 0.008287408389151096, -0.07655470818281174, 0.016349123790860176, -0.039649561047554016, -0.027949688956141472, -0.014344980008900166, 0.0389273464679718, -0.046005044132471085, 0.024970555678009987, 0.026739981025457382, -0.018705347552895546, -0.03141631931066513, 0.016854673624038696, -0.01861507073044777, 0.014841501601040363, -0.02710108831524849, 0.0216122604906559, -0.032264918088912964, 0.028780236840248108, 0.031560759991407394, -0.051024433225393295, 0.034287117421627045, 0.013252630829811096, 0.03518988564610481, -0.010381828993558884, 0.016990089789032936, -0.02094421163201332, 0.03531627357006073, -0.0010917847976088524, -0.07799913734197617, 0.051096655428409576, 0.03242741897702217, -0.008522127754986286, 0.0006499927840195596, 0.05575493723154068, 0.06276041269302368, 0.006856521125882864, 0.0334746278822422, -0.05470772460103035, 0.00947906170040369, -0.04925500974059105, -0.01908450946211815, -0.05416606366634369, -0.013406100682914257, 0.016303986310958862, 0.021269207820296288, 0.07056032866239548, -0.02495250105857849, 0.0073801265098154545 ]
30,170
networkx.readwrite.graphml
get_key
null
def get_key(self, name, attr_type, scope, default): keys_key = (name, attr_type, scope) try: return self.keys[keys_key] except KeyError: if self.named_key_ids: new_id = name else: new_id = f"d{len(list(self.keys))}" self.keys[keys_key] = new_id key_kwargs = { "id": new_id, "for": scope, "attr.name": name, "attr.type": attr_type, } key_element = self.myElement("key", **key_kwargs) # add subelement for data default value if present if default is not None: default_element = self.myElement("default") default_element.text = str(default) key_element.append(default_element) self.xml.insert(0, key_element) return new_id
(self, name, attr_type, scope, default)
[ 0.02149125002324581, 0.00013702049909625202, -0.03259536996483803, 0.002695598406717181, 0.043681103736162186, 0.01482694037258625, 0.036878909915685654, -0.00031310765189118683, 0.051806963980197906, -0.015047552064061165, 0.010433091782033443, -0.003975605592131615, 0.03748559206724167, 0.013071238994598389, -0.0029277002904564142, -0.0191564429551363, 0.013907724991440773, 0.007597313262522221, -0.05518967658281326, -0.05651334673166275, 0.0256093330681324, 0.015185434371232986, 0.01322750560939312, -0.03706275299191475, 0.029083967208862305, 0.03669506683945656, 0.040077779442071915, 0.016012728214263916, 0.04515184834599495, -0.02310906909406185, -0.028587590903043747, -0.05706487596035004, 0.011462613008916378, 0.045372460037469864, 0.013760650530457497, -0.04588722065091133, -0.041327912360429764, 0.038496728986501694, -0.0002615454432088882, -0.04114406928420067, 0.059601910412311554, 0.030389253050088882, -0.06324200332164764, -0.09853985905647278, -0.010488244704902172, 0.036070000380277634, 0.025149725377559662, 0.01640799082815647, -0.004400742240250111, -0.01567261852324009, 0.0369708314538002, 0.026749160140752792, 0.03787166252732277, 0.009343821555376053, -0.05235849320888519, -0.04511507973074913, -0.02924942597746849, -0.02842213213443756, -0.02601378783583641, 0.0047385538928210735, -0.015516351908445358, -0.008070709183812141, 0.031179778277873993, 0.016527488827705383, -0.055152907967567444, -0.006760827265679836, -0.007289376109838486, -0.0038721938617527485, -0.00722962711006403, 0.06107265502214432, 0.006544811651110649, -0.00876931194216013, -0.024929113686084747, -0.005625596735626459, 0.0030793705955147743, 0.029065582901239395, 0.009017500095069408, 0.010249248705804348, 0.04037192836403847, 0.013301042839884758, -0.019432207569479942, 0.013797419145703316, -0.04026162251830101, 0.014174297451972961, 0.01908290572464466, 0.09155382961034775, -0.026307936757802963, -0.016821637749671936, 0.02193247340619564, -0.06375676393508911, -0.0085670854896307, 0.03461764380335808, -0.012087679468095303, 0.035261090844869614, 0.04805656895041466, -0.05529998242855072, 0.034746333956718445, -0.04687997326254845, 0.08420010656118393, 0.015139473602175713, 0.022851688787341118, -0.019009368494153023, 0.03049955889582634, -0.010359554551541805, -0.038386423140764236, -0.06978681683540344, -0.001427081529982388, 0.01547958329319954, -0.020222732797265053, 0.02439597062766552, -0.024469507858157158, -0.0577634796500206, 0.012207177467644215, 0.015663426369428635, 0.002042955718934536, 0.0414014495909214, 0.02722715213894844, 0.03200707212090492, 0.042100053280591965, -0.03213576227426529, 0.014496022835373878, -0.03948948159813881, -0.05563089996576309, 0.01917482726275921, -0.00018097048450727016, -0.01950574479997158, -0.003495315555483103, 0.018816333264112473, 0.040849920362234116, -0.012391019612550735, 0.03371681272983551, 0.015746155753731728, -0.03857026621699333, 0.026160862296819687, 0.028550822287797928, 0.021767014637589455, 0.017318014055490494, 0.10442283749580383, -0.0097712567076087, 0.128984272480011, 0.04342372342944145, -0.021840551868081093, 0.01243698038160801, 0.015433622524142265, -0.02924942597746849, -0.023807672783732414, -0.010938660241663456, 0.004069825168699026, -0.026969771832227707, -0.0406293086707592, 0.007225031033158302, 0.01238182745873928, -0.04232066497206688, 0.056697189807891846, 0.05287325382232666, -0.007657062262296677, -0.05316740274429321, -0.04768888279795647, -0.012832242995500565, -0.06732331961393356, -0.017933886498212814, 0.02283330447971821, 0.025774791836738586, -0.05092451721429825, 0.044931236654520035, 0.036474455147981644, -0.019211595878005028, 0.012832242995500565, 0.05327770859003067, 0.010745625011622906, -0.022281775251030922, 0.04842425510287285, 0.011830299161374569, -0.029120735824108124, -0.01831076480448246, -0.042541276663541794, -0.017575392499566078, -0.0050832596607506275, 0.04835071787238121, -0.01284143514931202, 0.030389253050088882, 0.011343115009367466, 0.01671133190393448, 0.011039773933589458, 0.013567615300416946, 0.05007883906364441, 0.038018736988306046, 0.021270638331770897, 0.025370337069034576, -0.003807848785072565, -0.05577797442674637, -0.011913028545677662, -0.0333123579621315, 0.04393848404288292, 0.010111366398632526, 0.014753403142094612, 0.003433268517255783, -0.001735018566250801, -0.04349726065993309, 0.1089821457862854, 0.0020923635456711054, 0.021840551868081093, -0.018007423728704453, 0.03662152960896492, 0.000586286885663867, -0.020921336486935616, 0.049858227372169495, -0.008291320875287056, -0.014450062066316605, 0.004095103591680527, -0.054270461201667786, -0.010083789937198162, 0.016490720212459564, 0.027429379522800446, 0.041327912360429764, -0.03755912929773331, -0.07684638351202011, 0.012574862688779831, 0.033165283501148224, 0.012409403920173645, 0.04504154250025749, 0.03493017703294754, 0.07883188873529434, -0.03241152688860893, 0.059528373181819916, -0.06952943652868271, 0.0036791586317121983, -0.011977373622357845, -0.06191833317279816, 0.02191408909857273, 0.05040975660085678, -0.0034516528248786926, 0.040041010826826096, -0.00106628960929811, -0.01857733726501465, -0.0625801682472229, 0.030205409973859787, -0.03634576499462128, 0.003727417439222336, 0.01994696818292141, -0.00975287239998579, 0.06754393130540848, 0.00304949632845819, 0.044159095734357834, -0.032356373965740204, 0.017989039421081543, -0.02924942597746849, 0.047725651413202286, 0.01776842772960663, -0.03612515330314636, 0.021289022639393806, 0.001186936511658132, -0.033919040113687515, 0.0036263037472963333, 0.026969771832227707, 0.014753403142094612, -0.08133215457201004, 0.014780979603528976, 0.02759483829140663, -0.03794519975781441, 0.013677921146154404, 0.049049317836761475, -0.054711684584617615, 0.006163337267935276, -0.00021055771503597498, -0.04338695481419563, 0.029506806284189224, 0.050703905522823334, -0.022079547867178917, 0.01846703141927719, 0.024616580456495285, 0.07419904321432114, -0.0057496908120810986, -0.03366165980696678, 0.02316422201693058, -0.02149125002324581, 0.04151175543665886, 0.026142477989196777, -0.05577797442674637, -0.022061163559556007, -0.036014847457408905, -0.0112144248560071, -0.030995935201644897, 0.06298462301492691, -0.03698921576142311, 0.003171292133629322, 0.01017571147531271, -0.02970903366804123, 0.004099699668586254, 0.00014132932119537145, 0.0033413469791412354, 0.05537351965904236, -0.07460349798202515, 0.018862294033169746, -0.02730068936944008, -0.020572034642100334, -0.02439597062766552, 0.00742266234010458, 0.045298922806978226, 0.05441753566265106, 0.01804419234395027, 0.06890437006950378, 0.022906841710209846, -0.05581474304199219, -0.010975428856909275, 0.0022279475815594196, 0.028385363519191742, -0.0329262875020504, -0.02963549643754959, 0.028348594903945923, -0.059160687029361725, 0.0292678102850914, -0.024138590320944786, 0.03584938868880272, 0.02564610168337822, 0.0228149201720953, 0.047321196645498276, -0.0011777443578466773, 0.04662259295582771, 0.12317483127117157, 0.004357079975306988, -0.017345590516924858, -0.09655436128377914, -0.027521301060914993, 0.010258440859615803, -0.05382923781871796, 0.026565317064523697, 0.007923634722828865, 0.013365387916564941, 0.0319703035056591, -0.006172529421746731, -0.038827646523714066, -0.015755347907543182, 0.001736167585477233, -0.07427258044481277, 0.015516351908445358, 0.031143009662628174, -0.005878380965441465, -0.008594661951065063, 0.0014971717027947307, -0.017354782670736313, -0.04147498682141304, -0.008640622720122337, -0.010745625011622906, -0.023403218016028404, -0.03246667981147766, 0.0700809583067894, 0.005441753659397364, 0.055925048887729645, -0.009421954862773418, 0.011609687469899654, -0.032356373965740204, 0.040482234209775925, 0.04279865697026253, 0.0733533650636673, -0.002210712293162942, 0.030003182590007782, -0.009642566554248333, -0.048130106180906296, 0.039268869906663895, 0.04511507973074913, -0.010102174244821072, -0.022667845711112022, -0.01363196037709713, -0.039232101291418076, -0.01278628222644329, 0.013199929147958755, -0.010635319165885448, 0.07019126415252686, -0.032301221042871475, 0.0007118172361515462, 0.011085734702646732, -0.07408873736858368, 0.02527841553092003, -0.009863178245723248, 0.019616050645709038, 0.00876931194216013, 0.021289022639393806, 0.012115255929529667, -0.07699345797300339, -0.042872194200754166, 0.003552766516804695, 0.017391551285982132, 0.1014813482761383, -0.01917482726275921, 0.0024680925998836756, 0.09471593052148819, -0.035261090844869614, 0.035555239766836166, 0.031382005661726, 0.020020505413413048, -0.029525190591812134, 0.04441647604107857, 0.026969771832227707, -0.00642071757465601, -0.012850627303123474, -0.03327558934688568, -0.09059784561395645, -0.03868057206273079, 0.02196924202144146, 0.016224147751927376, 0.03015025705099106, 0.00819480326026678, 0.027392610907554626, 0.036842141300439835, 0.028330210596323013, -0.010442283935844898, -0.01850380003452301, -0.03787166252732277, -0.034691181033849716, -0.0487184040248394, 0.04757857695221901, -0.01017571147531271, -0.04831394925713539, 0.08736220747232437, 0.012207177467644215, 0.02840374782681465, 0.009357609786093235, -0.020094042643904686, 0.014128336682915688, -0.08059678226709366, -0.04151175543665886, 0.0045294323936104774, 0.013907724991440773, -0.003522892016917467, 0.0329262875020504, -0.017419127747416496, 0.006163337267935276, -0.03537139669060707, 0.0040146722458302975, -0.024965882301330566, 0.025535795837640762, 0.028569206595420837, -0.029892876744270325, 0.0035114018246531487, 0.01796146295964718, -0.004646632354706526, -0.02608732506632805, 0.006981438957154751, -0.00027231749845668674, -0.038092274218797684, -0.035224322229623795, -0.051476046442985535, 0.03948948159813881, -0.07111047953367233, -0.01709740236401558, -0.03386388719081879, 0.07210323214530945, 0.008525720797479153, -0.01465228945016861, 0.05158635228872299, 0.0207007247954607, 0.072397381067276, -0.011591303162276745, 0.03090401366353035, -0.040445465594530106, -0.04316634312272072, -0.0030150257516652346, 0.04882870987057686, -0.06383030116558075, 0.015047552064061165, 0.05820470303297043, 0.04066607728600502, 0.010846738703548908, -0.0006951564573682845, 0.028697896748781204, -0.030995935201644897, -0.0030449002515524626, 0.021840551868081093, -0.04195297881960869, -0.0003375243104528636, 0.013494078069925308, 0.016950327903032303, -0.012584054842591286, -0.03382711857557297, -0.013503270223736763, 0.01582888513803482, 0.010874315164983273, -0.057984091341495514, -0.02647339552640915, 0.0333123579621315, -0.0292678102850914, 0.016417182981967926, 0.0035481704398989677, -0.03695244714617729, -0.009899946860969067, -0.03248506411910057, 0.03095916658639908, -0.06754393130540848, 0.02119710110127926, -0.037595897912979126, 0.006223086267709732, 0.02160155586898327, 0.07640516012907028, 0.06254339963197708, -0.042541276663541794, 0.0544910728931427, -0.028734665364027023, -0.06555842608213425, -0.004060633014887571, 0.01867845095694065, -0.029580343514680862, 0.038901183754205704, 0.0321541465818882, 0.024175358936190605, -0.010313593782484531, -0.01989181526005268, -0.01096623670309782, 0.0013466501841321588, -0.03507724776864052, 0.009918331168591976, -0.04441647604107857, 0.06688209623098373, -0.040849920362234116, 0.02310906909406185, -0.004917800892144442, 0.03533462807536125, -0.041254375129938126, -0.018935831263661385, 0.016334453597664833, 0.01630687713623047, 0.03241152688860893, -0.03748559206724167, 0.04110730066895485, 0.022612692788243294, 0.0731695219874382, -0.008259148336946964, -0.00814424641430378, -0.03816581144928932, 0.08361180871725082, -0.022943610325455666, 0.019377054646611214, 0.016895174980163574, 0.010957044549286366, -0.015874845907092094, 0.0014178893761709332, -0.049380235373973846, 0.05541028827428818, 0.016738908365368843, -0.03748559206724167, 0.020406575873494148, -0.02893689274787903, -0.005837016273289919, -0.07581686228513718, 0.013089623302221298, 0.03978363052010536, 0.018439454957842827, -0.004118083976209164, 0.0032057627104222775, -0.040519002825021744, -0.005882977042347193, 0.007840905338525772, -0.02597701922059059, -0.03864380344748497, -0.010322785936295986, -0.03208060935139656, -0.010212480090558529, -0.0456298403441906, -0.009265688247978687, 0.030242178589105606, 0.0082315718755126, -0.008429203182458878, 0.033165283501148224, 0.011949797160923481, -0.009389782324433327, -0.025480642914772034, -0.02191408909857273, -0.06805869191884995, 0.035205937922000885, 0.015369277447462082, -0.05445430427789688, -0.010745625011622906, 0.02038819156587124, -0.005625596735626459, -0.059601910412311554, 0.03299982473254204, -0.02761322259902954, -0.021803783252835274, -0.037687819451093674, -0.02036980725824833, 0.014587944373488426, 0.013411348685622215, 0.04522538557648659, 0.00341258617118001, -0.011361499316990376, -0.011324730701744556, 0.025848329067230225, -0.0029690649826079607, -0.055447056889534, -0.017226092517375946, -0.059601910412311554, -0.01873360387980938, -0.04357079789042473, -0.00761569757014513, 0.04522538557648659, 0.009899946860969067, 0.04419586434960365, -0.013153968378901482, -0.041622061282396317, -0.055483825504779816, 0.01609545759856701, 0.002456602407619357, 0.01660102605819702, 0.12641046941280365, 0.04474739357829094, -0.009955099783837795, -0.04059254005551338, -0.0031896764412522316, -0.01651829667389393, -0.007781156338751316, -0.026602085679769516, -0.052211418747901917, 0.019046137109398842, 0.030720170587301254, -0.010010252706706524, -0.0232009906321764, 0.008750928565859795, 0.00040933798300102353, -0.026289552450180054, -0.0024979670997709036, -0.061624184250831604, -0.004154852591454983, -0.010322785936295986, 0.004324907436966896, -0.013530846685171127, -0.05496906489133835, -0.02073749341070652, 0.0004917801124975085, 0.04434293881058693, 0.003387307748198509, -0.02356867678463459, 0.053939543664455414, -0.0003886556369252503, -0.040813151746988297, 0.03689729422330856, 0.03901148959994316, 0.05945483595132828, -0.002117641968652606, -0.0009801131673157215, 0.003957221284508705, -0.042872194200754166, 0.017989039421081543, -0.01461552083492279, 0.04518861696124077, 0.00290012382902205, 0.0010749072534963489, 0.0698971226811409, -0.024543043226003647, -0.02202439494431019, -0.03570231422781944, -0.07048541307449341, -0.05401308089494705, 0.0011013345792889595, -0.06305816024541855, 0.02801767736673355, 0.03588615730404854, -0.04261481389403343, -0.010460668243467808, -0.05574120581150055, -0.0521746501326561, -0.005492310505360365, -0.007082552649080753, -0.053866006433963776, -0.01035036239773035, -0.023495139554142952, -0.022079547867178917, -0.027466148138046265, -0.046107832342386246, 0.011738377623260021, -0.06423475593328476, -0.02158317156136036, 0.0003162674547638744, 0.05291002243757248, -0.03329397365450859, -0.09912815690040588, -0.012602439150214195, 0.04783595725893974, 0.051402509212493896, 0.0263814739882946, 0.04831394925713539, 0.004876436199992895, 0.026988156139850616, -0.0024083436001092196, 0.029433269053697586, 0.031933534890413284, 0.008158034645020962, 0.03746720775961876, -0.051880501210689545, 0.01623333990573883, -0.05610889196395874, 0.01836591772735119, -0.05291002243757248, -0.004775322508066893, -0.022245006635785103, -0.08022909611463547, -0.0856708511710167, 0.011223617009818554, 0.04768888279795647, -0.04643874987959862, 0.0177132748067379, -0.023495139554142952, 0.004398444201797247, -0.005046491045504808, -0.057542867958545685, 0.010570974089205265, -0.04460031911730766, -0.007482411339879036, 0.05463814735412598, 0.00898073147982359, 0.008686583489179611, 0.0011455718195065856, -0.020002121105790138, -0.008203995414078236, -0.050667136907577515, 0.002419833792373538, 0.03608838468790054, -0.03656637668609619, 0.007942019030451775, -0.035224322229623795, 0.07699345797300339, 0.010322785936295986, -0.0021360262762755156, 0.025388721376657486, -0.01911967433989048, -0.06147710978984833, 0.0086176423355937, 0.004354781936854124, -0.03625384345650673, -0.052615873515605927, 0.019689587876200676, 0.054270461201667786, -0.011784338392317295, -0.028697896748781204, 0.011444228701293468, 0.05537351965904236, -0.05581474304199219, -0.007496199570596218, -0.053939543664455414, -0.017612161114811897, 0.03239314258098602, -0.08169984072446823, 0.10530528426170349, -0.05379246920347214, 0.033146899193525314, 0.0031322254799306393, -0.03915856406092644, 0.04643874987959862, 0.0033045783638954163, -0.010616934858262539, 0.01035036239773035, 0.004262860398739576, 0.012345058843493462, 0.012041718699038029, 0.013907724991440773, 0.02603217214345932, -0.021436097100377083, 0.0025738023687154055, 0.07530210167169571, 0.04272511973977089, 0.010092982091009617, 0.020645571872591972, -0.04338695481419563, -0.02770514413714409, -0.011701609008014202, -0.04801980033516884, -0.01846703141927719, 0.027153614908456802, -0.0014316776068881154 ]
30,172
networkx.readwrite.graphml
indent
null
def indent(self, elem, level=0): # in-place prettyprint formatter i = "\n" + level * " " if len(elem): if not elem.text or not elem.text.strip(): elem.text = i + " " if not elem.tail or not elem.tail.strip(): elem.tail = i for elem in elem: self.indent(elem, level + 1) if not elem.tail or not elem.tail.strip(): elem.tail = i else: if level and (not elem.tail or not elem.tail.strip()): elem.tail = i
(self, elem, level=0)
[ -0.022465098649263382, 0.01872985064983368, 0.012421037070453167, 0.020177483558654785, 0.05043477192521095, -0.046288467943668365, -0.012322740629315376, -0.016826484352350235, -0.040247734636068344, 0.05104241892695427, -0.0340997688472271, -0.06215880066156387, 0.03735246881842613, -0.02242935448884964, -0.0374954454600811, -0.020552795380353928, 0.03535080701112747, -0.03200874477624893, -0.00039122914313338697, 0.09279140084981918, 0.08442730456590652, 0.006273070350289345, 0.07699255645275116, 0.02963176928460598, 0.0003331451734993607, 0.014342276379466057, 0.007005822379142046, -0.015048219822347164, -0.0015872565563768148, -0.02596800960600376, 0.024734841659665108, -0.033402759581804276, -0.035761862993240356, 0.024341657757759094, 0.013001876883208752, 0.015977563336491585, -0.03863925486803055, 0.004414382856339216, 0.003333127126097679, -0.00919514149427414, -0.022054042667150497, 0.048111412674188614, -0.032241079956293106, -0.029167097061872482, 0.004995222669094801, 0.012197636999189854, 0.11423779278993607, -0.0025445253122597933, -0.0033487651962786913, -0.03678056597709656, 0.02611098624765873, 0.07170244306325912, 0.05847717076539993, -0.021017465740442276, -0.0018229435663670301, -0.00027561967726796865, 0.06830676645040512, -0.0786367803812027, 0.025717802345752716, -0.006273070350289345, -0.017693275585770607, 0.0341891273856163, 0.014619292691349983, 0.018872827291488647, -0.046467188745737076, -0.0056475503370165825, -0.026361193507909775, -0.0002853934420272708, 0.017317963764071465, -0.010607029311358929, 0.008556217886507511, -0.022572331130504608, 0.010061933659017086, 0.020785130560398102, -0.0364767424762249, 0.02128554694354534, -0.001125935697928071, 0.017702210694551468, 0.0219289381057024, -0.020874490961432457, -0.05604657903313637, -0.0066439141519367695, 0.008328350260853767, 0.06744891405105591, 0.06030011177062988, -0.040283478796482086, -0.036744821816682816, -0.010446181520819664, 0.014306532219052315, 0.049648404121398926, -0.004865650553256273, 0.022018298506736755, -0.008524942211806774, -0.05322280153632164, -0.04582379758358002, 0.013430804945528507, 0.015083963982760906, -0.061157967895269394, -0.04485870897769928, 0.02477058582007885, -0.029899848625063896, -0.0026495233178138733, -0.027379896491765976, -0.03191938251256943, -0.06080053001642227, -0.044751476496458054, 0.004555124789476395, 0.002848349278792739, 0.05475979298353195, 0.025556953623890877, 0.048647571355104446, -0.038424789905548096, -0.03667333349585533, -0.027844568714499474, 0.027737336233258247, -0.02662927284836769, -0.009230885654687881, 0.023698266595602036, 0.03949711099267006, -0.04267832636833191, 0.04214216396212578, -0.08249712735414505, 0.011196805164217949, -0.007671554107218981, -0.033724457025527954, -0.025235258042812347, -0.035064853727817535, 0.036065686494112015, -0.02893476001918316, -0.004901394713670015, -0.002269743476063013, -0.024806329980492592, -0.031704921275377274, -0.03831755742430687, 0.08571408689022064, -0.04132005199790001, -0.0013493356527760625, -0.019373243674635887, -0.009588325396180153, -0.008851105347275734, 0.03515421599149704, -0.058512914925813675, -0.026825865730643272, 0.010195973329246044, -0.025020793080329895, 0.015209068544209003, -0.002477505477145314, 0.03563676029443741, 0.018854955211281776, 0.030704088509082794, -0.018711978569626808, 0.0013236446538940072, 0.038424789905548096, 0.03644099831581116, 0.04132005199790001, 0.024734841659665108, -0.018193691968917847, -0.02058853954076767, 0.05926353856921196, -0.025396104902029037, -0.033241912722587585, -0.03318829461932182, 0.04128430783748627, 0.033527862280607224, 0.029542408883571625, 0.06587617844343185, -0.06190859153866768, 0.0048790546134114265, -0.053151313215494156, -0.012161892838776112, 0.03660184517502785, -0.019623450934886932, -0.019480474293231964, 0.041570261120796204, 0.039068181067705154, 0.060872018337249756, -0.029881976544857025, 0.08821617066860199, -0.038853719830513, -0.025825032964348793, -0.003277277108281851, 0.03199087083339691, 0.05976395308971405, 0.043250229209661484, -0.012689116410911083, -0.02796967327594757, 0.03651248663663864, -0.040569428354501724, -0.004910330753773451, -0.03286660090088844, 0.02443101815879345, -0.011581053026020527, 0.0340997688472271, -0.05243643373250961, -0.000021467338228831068, -0.009239821694791317, 0.003058345289900899, -0.030185800045728683, 0.086357481777668, -0.0028997312765568495, -0.0024708034470677376, -0.0005719038308598101, -0.007845805957913399, -0.012233381159603596, 0.05204325169324875, 0.0438578762114048, -0.03849627822637558, -0.008609834127128124, -0.04246386140584946, 0.007215818390250206, -0.009624069556593895, -0.02144639380276203, 0.07138074934482574, -0.06569745391607285, 0.004749482963234186, -0.005839674733579159, -0.04836161807179451, 0.024180809035897255, 0.01481588464230299, -0.016361812129616737, -0.0038514151237905025, 0.018175819888710976, -0.042928531765937805, -0.008256861940026283, 0.009320246055722237, -0.0194268599152565, 0.07606321573257446, -0.03803160786628723, 0.008641109801828861, 0.063624307513237, -0.05107816308736801, -0.07145223766565323, -0.04221365228295326, -0.019855786114931107, -0.015852460637688637, -0.020499179139733315, -0.016308195888996124, -0.05654699355363846, 0.030561111867427826, -0.07195265591144562, 0.007935166358947754, -0.006500938441604376, 0.015092900022864342, -0.000012688418792095035, -0.03463592752814293, 0.026825865730643272, 0.01064277347177267, -0.031740665435791016, -0.003464933019131422, 0.02123193070292473, -0.05937076732516289, 0.06037160009145737, -0.043607667088508606, 0.047789715230464935, -0.030007081106305122, -0.021517882123589516, 0.05618955194950104, 0.04425106197595596, -0.01064277347177267, 0.006080946419388056, -0.012653373181819916, -0.0981530025601387, 0.05036328360438347, -0.0374954454600811, 0.04703909158706665, 0.038603510707616806, 0.027844568714499474, -0.07627767324447632, 0.06258773058652878, 0.03502910956740379, 0.0338495597243309, -0.004336192738264799, 0.02076725848019123, 0.04635995626449585, -0.0006149083492346108, 0.053115569055080414, -0.023680394515395164, 0.052650898694992065, -0.04632421210408211, 0.0023010193835943937, -0.025485465303063393, -0.012617629021406174, -0.030060695484280586, 0.020213227719068527, -0.0599784180521965, -0.04039071127772331, -0.0001505157124483958, 0.016701379790902138, 0.008837701752781868, 0.018872827291488647, 0.027898184955120087, 0.08113885670900345, 0.026897354051470757, 0.01170615665614605, 0.022894026711583138, 0.007649214006960392, 0.017532426863908768, 0.01806858740746975, -0.008837701752781868, -0.03501123934984207, -0.035386551171541214, -0.031883638352155685, 0.06723444908857346, -0.01990940235555172, 0.04975563660264015, 0.034224871546030045, -0.02074938639998436, 0.010678517632186413, 0.017514554783701897, -0.05686869099736214, -0.006813698448240757, 0.021642986685037613, 0.006858378183096647, 0.02661140076816082, -0.0279518011957407, 0.048611827194690704, -0.025825032964348793, -0.023501673713326454, 0.013296764343976974, 0.05790526419878006, -0.05425937846302986, 0.015602252446115017, -0.014744396321475506, 0.0006160253542475402, 0.00619711447507143, -0.04106984660029411, 0.07699255645275116, 0.04925521835684776, 0.01990940235555172, 0.023734010756015778, -0.0013560376828536391, -0.031865768134593964, 0.0025825032498687506, 0.01490524411201477, -0.04968414828181267, -0.014538868330419064, -0.015852460637688637, 0.001220880658365786, -0.04986286908388138, 0.014449507929384708, 0.07105905562639236, 0.012036789208650589, 0.026468425989151, 0.004972882568836212, 0.015450339764356613, -0.016683507710695267, 0.0683782547712326, 0.03713800758123398, 0.017639659345149994, 0.09243395924568176, 0.01825624331831932, 0.02843434549868107, 0.0006545618525706232, 0.005352662410587072, -0.03863925486803055, -0.031544070690870285, 0.014190364629030228, -0.010866173543035984, -0.04067666083574295, -0.021535754203796387, -0.012555076740682125, -0.034904006868600845, 0.025485465303063393, 0.020356202498078346, 0.05275813117623329, 0.004968414548784494, -0.005710102617740631, -0.00731858192011714, 0.009811725467443466, 0.03569037467241287, 0.01721966825425625, -0.025342488661408424, 0.0397830605506897, -0.0749908909201622, -0.06301665306091309, 0.06315962970256805, -0.001932409475557506, 0.003038239199668169, 0.0020485774148255587, -0.0967947244644165, 0.05719038471579552, 0.03917541354894638, 0.06830676645040512, 0.03493975102901459, -0.07113054394721985, -0.023054873570799828, 0.03377807140350342, -0.016326067969202995, -0.013314636424183846, 0.036226533353328705, -0.027487128973007202, 0.026843737810850143, 0.0034939751494675875, 0.014011644758284092, -0.08549962937831879, -0.028666680678725243, -0.04582379758358002, -0.011402333155274391, -0.03175853565335274, -0.0027478192932903767, 0.013761436566710472, -0.005911162588745356, -0.0044456589967012405, -0.025235258042812347, -0.028720296919345856, 0.03361722454428673, -0.03728098422288895, 0.035726118832826614, 0.03415338322520256, 0.04639570042490959, -0.05468830466270447, 0.002164745470508933, 0.023465929552912712, -0.011840197257697582, 0.08657194674015045, -0.003739715088158846, 0.038424789905548096, 0.034725286066532135, -0.04564507678151131, -0.054831281304359436, -0.0445370115339756, 0.004298214800655842, 0.008279201574623585, 0.03447508066892624, 0.00439427699893713, -0.08142480999231339, -0.019337499514222145, 0.010392565280199051, 0.0027120753657072783, -0.008752809837460518, 0.0109644690528512, -0.010133421048521996, 0.04807566851377487, -0.058012496680021286, 0.06480385363101959, 0.000334541400661692, 0.0397830605506897, 0.01532523613423109, 0.053115569055080414, 0.02679012157022953, 0.037388212978839874, 0.025914393365383148, -0.008909190073609352, 0.01992727443575859, 0.049934353679418564, 0.05122113972902298, -0.010410437360405922, 0.027540745213627815, -0.05290110781788826, 0.03685205429792404, 0.005638614762574434, 0.017693275585770607, -0.0005654810811392963, -0.038246069103479385, -0.07105905562639236, -0.017943482846021652, 0.033563606441020966, 0.01788986660540104, 0.01923026703298092, 0.04503742977976799, 0.04736078903079033, 0.020517051219940186, 0.06144392117857933, 0.018997931852936745, -0.05844142660498619, 0.006304346490651369, 0.0022585734259337187, 0.03099003992974758, -0.025825032964348793, 0.011643605306744576, 0.05912056192755699, 0.007461558096110821, -0.047968436032533646, 0.037102263420820236, 0.018372410908341408, -0.006572426296770573, 0.03778139874339104, -0.024055706337094307, -0.030918551608920097, 0.026879481971263885, -0.06945057213306427, -0.005803930573165417, -0.026843737810850143, -0.002935475204139948, -0.053294289857149124, 0.013931220397353172, 0.008784085512161255, 0.005178410559892654, 0.05869163200259209, -0.052150484174489975, -0.0481829009950161, -0.044108085334300995, -0.032723624259233475, -0.010857237502932549, 0.004713738802820444, -0.025056537240743637, -0.04257109388709068, -0.008006653748452663, -0.06719870120286942, -0.03393891826272011, 0.03318829461932182, -0.01659414730966091, 0.009070037864148617, -0.037066519260406494, -0.016495851799845695, 0.045788053423166275, -0.023483801633119583, 0.02827349677681923, 0.009087909944355488, -0.010901916772127151, -0.0018866125028580427, 0.049112241715192795, -0.06062180921435356, 0.045430611819028854, -0.052293457090854645, 0.025002921000123024, -0.0408911257982254, -0.004030134994536638, 0.0720241442322731, -0.0033599352464079857, 0.02859519235789776, -0.045788053423166275, 0.011759772896766663, 0.00032672242377884686, 0.019140906631946564, 0.03183002397418022, 0.018175819888710976, 0.031204504892230034, -0.022536586970090866, -0.012939324602484703, 0.0018765595741569996, 0.04257109388709068, 0.014646099880337715, -0.06194433569908142, -0.03165130317211151, 0.045466355979442596, -0.021714475005865097, -0.03502910956740379, 0.03720949590206146, -0.0011728496756404638, 0.0010656177764758468, -0.016683507710695267, -0.03713800758123398, -0.04214216396212578, -0.0364767424762249, 0.05368747562170029, -0.03651248663663864, -0.027254793792963028, -0.02427016943693161, 0.015423531644046307, -0.01690690778195858, 0.02729053795337677, -0.0015381085686385632, 0.07699255645275116, -0.01538778841495514, -0.014663971960544586, -0.05032753944396973, -0.027004584670066833, 0.07649213820695877, 0.012537204660475254, 0.051113907247781754, 0.024216553196310997, -0.01515545230358839, -0.029935592785477638, 0.06823527812957764, -0.02443101815879345, -0.012930388562381268, -0.015423531644046307, -0.004535018932074308, 0.06737742573022842, 0.0008757277973927557, -0.01858687587082386, -0.016281388700008392, -0.0197664275765419, -0.03956859931349754, -0.012465717270970345, -0.016299260780215263, 0.04081963747739792, 0.0007886018138378859, 0.04003326967358589, -0.059335023164749146, 0.02378762513399124, 0.013743564486503601, -0.024234425276517868, -0.014092068187892437, -0.02344805747270584, 0.011527436785399914, -0.009400669485330582, -0.0109644690528512, 0.011902748607099056, -0.041427284479141235, -0.05504574626684189, -0.03349211812019348, -0.037924375385046005, 0.04081963747739792, -0.0197664275765419, -0.0001419985928805545, 0.00443895673379302, 0.0020876724738627672, -0.06877143681049347, -0.046431444585323334, -0.009141525253653526, -0.052936851978302, 0.04789694771170616, -0.015637995675206184, 0.03515421599149704, 0.054473843425512314, -0.048611827194690704, 0.0219289381057024, 0.032723624259233475, -0.021392779424786568, 0.026182472705841064, 0.015959691256284714, -0.035761862993240356, -0.07005821913480759, 0.0019190055318176746, -0.011813389137387276, 0.01807752251625061, 0.041248563677072525, 0.007890486158430576, -0.03695928677916527, 0.029327943921089172, -0.07170244306325912, 0.009472157806158066, -0.035601016134023666, 0.01623670756816864, -0.03259852156043053, -0.06698423624038696, 0.05840568244457245, -0.06612638384103775, -0.001764859538525343, 0.045251891016960144, -0.016862228512763977, -0.05368747562170029, -0.05490276962518692, -0.006031798664480448, -0.027522873133420944, -0.03967582806944847, -0.039068181067705154, -0.011652541346848011, 0.04335746169090271, -0.06215880066156387, -0.04199919104576111, -0.005165006499737501, 0.0411413349211216, 0.007269434165209532, 0.0027053733356297016, -0.012599756941199303, -0.02764797769486904, -0.006214986555278301, -0.006630510091781616, 0.013627396896481514, -0.011312972754240036, 0.018622620031237602, -0.04764673858880997, 0.07070161402225494, 0.04618123546242714, 0.03745970129966736, -0.01197423692792654, 0.029184969142079353, 0.014583548530936241, -0.04321448504924774, -0.016808612272143364, 0.031865768134593964, 0.052829619497060776, -0.008658981882035732, -0.028523704037070274, 0.0010382512118667364, 0.02241148240864277, -0.07806487381458282, -0.004789694678038359, 0.03767416626214981, 0.024538250640034676, 0.018783466890454292, 0.00027687629335559905, -0.061157967895269394, 0.06223028898239136, 0.038853719830513, -0.008882381953299046, -0.020517051219940186, -0.03268788009881973, -0.00944534968584776, 0.014923116192221642, -0.05979969725012779, -0.004488104954361916, 0.018300922587513924, -0.01273379661142826, -0.0018575704889371991, 0.001077346270903945, -0.03315255045890808, -0.04714632406830788, -0.08571408689022064, 0.004481402691453695, 0.013663140125572681, -0.023197850212454796, -0.038853719830513, -0.011268293485045433, 0.007501770276576281, 0.06573320180177689, -0.035761862993240356, 0.07899422198534012, 0.01304655708372593, 0.009507901966571808, 0.012447845190763474, 0.08278308063745499, -0.030203672125935555, 0.00236133742146194, -0.013073364272713661, 0.037566933780908585, 0.04943393915891647, -0.005075646564364433, 0.11130678653717041, -0.007850274443626404, -0.032562777400016785, -0.01003512553870678, 0.024162936955690384, 0.017157115042209625, -0.07037992030382156, -0.03195512667298317, 0.019516218453645706, -0.07942314445972443, 0.010312140919268131, -0.04618123546242714, -0.051793042570352554, -0.03594058379530907, 0.016674572601914406, -0.02847008965909481, 0.06869994848966599, -0.061372432857751846, -0.014842691831290722, -0.03513634204864502, -0.006965610198676586, -0.005258834455162287, 0.009132590144872665, -0.015244811773300171, 0.010392565280199051, -0.02929219976067543, 0.013126980513334274, 0.021821705624461174, -0.013591652736067772, 0.040426455438137054, -0.007492834236472845, 0.00853834580630064, 0.06323111802339554, 0.02611098624765873, -0.00552244670689106, 0.0458952859044075, 0.04918373003602028, -0.02309061773121357, 0.006956674158573151, 0.030400265008211136, -0.009186205454170704, -0.026736505329608917, 0.0019502815557643771, 0.0004269731289241463, -0.020356202498078346, 0.020963851362466812, -0.005710102617740631, -0.0341891273856163, 0.02225063368678093, 0.010160229168832302, -0.057833775877952576, 0.012662309221923351, 0.027379896491765976, 0.027719464153051376, 0.05290110781788826, -0.008350689895451069, 0.022357866168022156 ]
30,173
networkx.exception
HasACycle
Raised if a graph has a cycle when an algorithm expects that it will have no cycles.
class HasACycle(NetworkXException): """Raised if a graph has a cycle when an algorithm expects that it will have no cycles. """
null
[ -0.007865355350077152, 0.018170325085520744, 0.02276974357664585, 0.08653201907873154, -0.035046517848968506, -0.00254673114977777, -0.047183386981487274, 0.004428907297551632, 0.08079586178064346, -0.04728831723332405, 0.0449448861181736, 0.007917819544672966, 0.07366064190864563, -0.007143963128328323, -0.038229383528232574, -0.004404861014336348, 0.0038867706898599863, 0.06246814504265785, -0.019079716876149178, 0.021685469895601273, -0.06540617346763611, 0.014314158819615841, 0.016692565754055977, -0.008538654074072838, 0.018030419945716858, 0.044804979115724564, -0.006208340171724558, 0.030569517984986305, -0.028960594907402992, 0.0031129142735153437, -0.08191511780023575, -0.027718927711248398, -0.05715170502662659, 0.009950832463800907, 0.03170625492930412, 0.061383869498968124, -0.007795401848852634, 0.03630567342042923, -0.1412353664636612, 0.00449886079877615, -0.029100501909852028, 0.006308897864073515, -0.030639471486210823, -0.015975546091794968, 0.030324680730700493, -0.06488152593374252, 0.008770373649895191, 0.0449448861181736, -0.08821089565753937, -0.06921862065792084, 0.012005705386400223, -0.02451857179403305, 0.05505311116576195, 0.04284629225730896, 0.02385401725769043, 0.067539744079113, 0.001646084594540298, 0.08394375443458557, 0.039628446102142334, 0.011454825289547443, 0.006514385342597961, 0.05242986977100372, 0.01902725175023079, 0.010038274340331554, 0.0022800348233431578, -0.0018242464866489172, -0.043685730546712875, -0.02075859159231186, -0.020636172965168953, 0.006138387136161327, 0.028838178142905235, 0.0290830135345459, -0.01622912660241127, 0.025987587869167328, 0.04396554082632065, -0.055787619203329086, -0.019551899284124374, 0.014436577446758747, 0.026827024295926094, 0.001591433654539287, 0.0005172705859877169, -0.015372199937701225, -0.0034626799169927835, -0.02485084906220436, 0.04669371247291565, -0.023574205115437508, -0.0028790084179490805, -0.003794957185164094, -0.03079686500132084, -0.009295022115111351, -0.029642637819051743, -0.020461291074752808, -0.02486833743751049, 0.029992403462529182, -0.004133792594075203, 0.07117731124162674, 0.03457433357834816, -0.06309772282838821, 0.014969970099627972, -0.06645547598600388, 0.015652012079954147, 0.007450008299201727, -0.06470664590597153, 0.012372959405183792, -0.034731727093458176, -0.06722495704889297, -0.018782414495944977, -0.04186694696545601, 0.017024843022227287, -0.06547612696886063, -0.06243316829204559, 0.019761759787797928, 0.025095684453845024, -0.022577373310923576, 0.014996201731264591, 0.010676596313714981, 0.02906552515923977, -0.028488412499427795, -0.014270438812673092, 0.0018559439340606332, 0.0400831438601017, 0.021930305287241936, -0.052324939519166946, 0.0373549722135067, 0.06274795532226562, -0.01939450576901436, 0.012337983585894108, 0.030884306877851486, 0.041027508676052094, -0.016421496868133545, 0.05589254945516586, -0.013938160613179207, -0.022210119292140007, 0.0072182887233793736, -0.013675836846232414, 0.014462809078395367, 0.002973007969558239, -0.01596680097281933, -0.052394893020391464, -0.05222000926733017, -0.003038589144125581, 0.009399951435625553, 0.009557345882058144, 0.023084532469511032, 0.03910379856824875, 0.037809666246175766, -0.09205831587314606, -0.05715170502662659, -0.02145812287926674, 0.008376887068152428, 0.05421367660164833, -0.03179369866847992, -0.02207021228969097, -0.005019137170165777, -0.034346986562013626, 0.005679319612681866, -0.04861742630600929, 0.005727412644773722, -0.03147890791296959, 0.021195799112319946, -0.025095684453845024, -0.043685730546712875, 0.04151718318462372, -0.0005232822149991989, -0.01450653001666069, 0.0015302246902137995, -0.01452401839196682, -0.041587136685848236, -0.04099253565073013, 0.03585097938776016, -0.017383351922035217, 0.008722281083464622, -0.09051934629678726, -0.036760371178388596, -0.00003415680112084374, 0.01190077606588602, 0.013562163338065147, 0.06211837753653526, -0.007939680479466915, -0.001963059650734067, 0.043021176010370255, -0.03875403478741646, -0.015171084553003311, -0.03424205631017685, 0.03446940332651138, 0.0000224751747737173, 0.022402489557862282, 0.006470664404332638, 0.05319935455918312, -0.003698771819472313, 0.017462050542235374, 0.0015214806189760566, 0.03251071646809578, 0.0498066283762455, 0.08800103515386581, -0.09982311725616455, -0.005412623286247253, 0.020181477069854736, 0.022052723914384842, 0.07072261720895767, 0.006925359833985567, 0.043021176010370255, 0.037879619747400284, -0.013737046159803867, 0.008079586550593376, 0.021615516394376755, 0.00276533467695117, -0.028628317639231682, -0.034731727093458176, -0.011883287690579891, -0.04078267514705658, -0.013072490692138672, 0.05368902534246445, 0.02215765416622162, -0.0060553178191185, -0.00699968496337533, 0.013868208043277264, 0.023224439471960068, 0.00915511604398489, 0.003565423656255007, -0.016710054129362106, -0.0032003556843847036, 0.023241927847266197, -0.042356621474027634, -0.0033271457068622112, -0.043405916541814804, 0.0009001000435091555, 0.018415160477161407, 0.01661386899650097, -0.06621063500642776, 0.038509197533130646, 0.02075859159231186, -0.008704792708158493, -0.02175542339682579, 0.05942518264055252, -0.03896389156579971, -0.027753904461860657, 0.012565330602228642, 0.0018941996386274695, -0.00586294662207365, -0.052359916269779205, -0.024326201528310776, -0.04277633875608444, -0.011131291277706623, 0.06932355463504791, -0.004590674303472042, 0.04386061057448387, 0.025462938472628593, -0.04029300436377525, 0.03399721905589104, -0.03997821360826492, -0.06785453855991364, -0.03527386486530304, -0.05012141540646553, 0.012609051540493965, -0.06323762983083725, -0.06313269585371017, -0.04620404168963432, 0.060614388436079025, 0.05085592344403267, -0.012390447780489922, 0.06008973717689514, -0.060614388436079025, 0.0824747383594513, -0.006938476115465164, 0.005390762817114592, -0.012390447780489922, 0.02107338048517704, -0.04522469639778137, 0.017733117565512657, 0.0805860087275505, -0.016176661476492882, 0.01625535823404789, 0.015634523704648018, -0.019831711426377296, -0.0019827340729534626, 0.0022188257426023483, 0.012066914699971676, 0.001602363889105618, 0.04242657124996185, -0.012722725048661232, 0.014917504973709583, -0.04431530833244324, 0.01349220983684063, -0.07575923949480057, 0.013562163338065147, 0.018415160477161407, -0.0028331016656011343, -0.029572686180472374, 0.006785453762859106, 0.04641390219330788, -0.007992144674062729, 0.039558496326208115, 0.018502602353692055, 0.04253150150179863, 0.001108319847844541, 0.019586876034736633, -0.02278723195195198, 0.015599547885358334, 0.033315178006887436, 0.054773300886154175, 0.010947665199637413, -0.052709683775901794, -0.03899886831641197, -0.0420418307185173, -0.02969510294497013, 0.0414472296833992, 0.04109746217727661, 0.0027281721122562885, 0.005486948415637016, -0.018240278586745262, 0.03205602243542671, -0.013562163338065147, 0.043335963040590286, 0.02663465403020382, 0.01450653001666069, 0.010772782377898693, -0.02593512274324894, 0.03836929053068161, 0.07792778313159943, -0.05452846363186836, 0.0698482021689415, -0.017890512943267822, -0.026407307013869286, -0.07960665971040726, 0.027386650443077087, 0.07708834856748581, 0.023259416222572327, 0.024063875898718834, 0.014226717874407768, 0.006851034704595804, -0.030009891837835312, -0.01018692459911108, -0.029100501909852028, -0.10604894161224365, 0.0035085866693407297, 0.05225498601794243, -0.02770143933594227, 0.06274795532226562, -0.031339000910520554, 0.05428363010287285, 0.04532962664961815, -0.012757701799273491, 0.005779877305030823, 0.048547472804784775, -0.02770143933594227, -0.019569387659430504, -0.0007416124572046101, 0.005185275804251432, 0.028068693354725838, -0.033699918538331985, 0.1140236034989357, -0.019464457407593727, 0.05043620616197586, 0.024780895560979843, 0.021510588005185127, -0.0008050074684433639, -0.026896977797150612, 0.0007601937977597117, -0.000531753059476614, 0.016753774136304855, 0.0036834694910794497, -0.022035235539078712, 0.0005251949769444764, -0.02457103691995144, -0.012372959405183792, 0.0019455713918432593, 0.029572686180472374, 0.047183386981487274, -0.04564441740512848, -0.05970499664545059, -0.0317237451672554, -0.030289705842733383, -0.032703086733818054, -0.002973007969558239, 0.026722095906734467, 0.0126003073528409, 0.01242542453110218, 0.03997821360826492, 0.04386061057448387, -0.008586746640503407, -0.013500954024493694, -0.06110405921936035, -0.022052723914384842, 0.011559754610061646, -0.012451657094061375, 0.054038792848587036, 0.023941459134221077, 0.058270957320928574, 0.030674446374177933, 0.0015433409716933966, -0.032370809465646744, 0.007904703728854656, -0.033315178006887436, -0.0683092325925827, -0.02455354854464531, 0.07932684570550919, 0.014891272410750389, -0.00272161397151649, -0.062363214790821075, 0.011332406662404537, 0.040922582149505615, 0.013868208043277264, 0.029572686180472374, 0.02380155213177204, 0.012731469236314297, 0.02527056820690632, -0.00966227613389492, 0.016028011217713356, -0.020793568342924118, -0.011953241191804409, -0.010825246572494507, -0.05344419181346893, -0.0016406194772571325, -0.00883595459163189, -0.0325806699693203, 0.014375368133187294, -0.03422456979751587, 0.01972678303718567, -0.01051920186728239, 0.040642768144607544, -0.00603782944381237, 0.059285275638103485, 0.02448359504342079, 0.016500193625688553, -0.035046517848968506, -0.01797795481979847, 0.020968450233340263, 0.00845121219754219, 0.03969839960336685, -0.024798383936285973, -0.021947793662548065, 0.026669630780816078, -0.058585744351148605, -0.024011410772800446, -0.05054113641381264, -0.040887605398893356, -0.038124457001686096, 0.034381963312625885, 0.03973337635397911, -0.008866558782756329, 0.05075099691748619, 0.01329983863979578, -0.02415131777524948, 0.03558865562081337, -0.04137727618217468, 0.02763148583471775, -0.006273921113461256, 0.013194909319281578, -0.017829304561018944, -0.031583838164806366, -0.019761759787797928, 0.03154886141419411, -0.012390447780489922, -0.08324422687292099, -0.014471553266048431, -0.04777798801660538, 0.00862609501928091, -0.004940439946949482, 0.013186165131628513, -0.009933344088494778, 0.024291224777698517, -0.07117731124162674, 0.007904703728854656, -0.010527946054935455, -0.014515274204313755, 0.000057895776990335435, 0.026757072657346725, 0.013081234879791737, -0.0077210767194628716, 0.011175012215971947, -0.033385131508111954, -0.0030823098495602608, -0.052010152488946915, 0.026774561032652855, -0.014235462062060833, -0.02212267741560936, -0.005124066956341267, 0.04421037808060646, -0.05005146563053131, 0.013868208043277264, -0.012915096245706081, 0.01585312746465206, -0.0449448861181736, -0.010921432636678219, -0.021178310737013817, -0.037809666246175766, -0.04183197021484375, -0.004669371526688337, -0.016771262511610985, -0.06418199837207794, -0.05634724721312523, -0.017488282173871994, 0.012818911112844944, 0.07491980493068695, 0.008346282877027988, -0.04774301126599312, -0.00829819031059742, 0.017444562166929245, -0.06477659940719604, 0.009373718872666359, 0.00603782944381237, 0.008250096812844276, -0.05277963727712631, 0.05987988039851189, 0.001623131218366325, -0.010597899556159973, -0.00917260441929102, 0.09247803688049316, -0.004861742258071899, 0.01692865788936615, 0.01090394426137209, 0.05645217373967171, 0.08492309600114822, 0.02936282567679882, -0.0025970099959522486, -0.011463569477200508, -0.012915096245706081, 0.06991815567016602, 0.027404138818383217, 0.031671278178691864, 0.028103670105338097, 0.053339261561632156, 0.014401600696146488, -0.015302247367799282, -0.01998910680413246, -0.0038474220782518387, -0.07422026991844177, -0.004887974821031094, 0.026424795389175415, 0.037145111709833145, 0.0035938420332968235, 0.014585227705538273, 0.05946015939116478, -0.009889624081552029, 0.010116971097886562, 0.019149668514728546, 0.05159043148159981, -0.0774381160736084, -0.009863391518592834, 0.01539843250066042, -0.0024221271742135286, 0.028505900874733925, 0.00577550521120429, 0.021545564755797386, -0.009933344088494778, 0.051310621201992035, 0.029869986698031425, -0.011620963923633099, 0.005115322768688202, -0.02492080256342888, 0.03651553392410278, -0.0393136590719223, -0.0435808002948761, 0.09996302425861359, -0.01904474012553692, -0.006112154573202133, 0.05354912206530571, 0.07054772973060608, 0.031041700392961502, -0.0408526286482811, -0.042671408504247665, 0.007860982790589333, -0.08919023722410202, 0.01596680097281933, 0.0007667518802918494, 0.036480557173490524, -0.05764137953519821, 0.04525967314839363, 0.02904803678393364, -0.004866114351898432, -0.02897808328270912, 0.0023740343749523163, -0.001382667338475585, -0.029152967035770416, 0.021143333986401558, -0.039628446102142334, 0.008464328944683075, -0.003794957185164094, -0.09268789738416672, 0.0019827340729534626, -0.03651553392410278, -0.010895200073719025, -0.008306934498250484, 0.04288126900792122, 0.010143203660845757, -0.008092702366411686, -0.012993793934583664, -0.005758016835898161, 0.025480426847934723, -0.035396281629800797, -0.06722495704889297, 0.038229383528232574, -0.019062228500843048, 0.017733117565512657, 0.05148550495505333, 0.03731999546289444, 0.0026866374537348747, -0.02005906030535698, -0.0034167731646448374, -0.030149798840284348, 0.08037614822387695, 0.05673198774456978, 0.014751366339623928, 0.009907111525535583, 0.052359916269779205, -0.0016384334303438663, -0.011996962130069733, -0.002710683736950159, -0.042356621474027634, 0.003764352761209011, 0.04676366597414017, -0.027404138818383217, -0.038823988288640976, -0.05869067460298538, -0.037110134959220886, -0.02318946272134781, 0.019446969032287598, -0.04501483961939812, 0.05396883934736252, 0.037110134959220886, -0.02485084906220436, -0.048932213336229324, -0.028208598494529724, -0.05092587694525719, 0.08436347544193268, 0.02070612646639347, -0.027771392837166786, -0.020915985107421875, -0.012915096245706081, -0.001296318951062858, 0.028470924124121666, -0.051170714199543, -0.0463089719414711, -0.0025423590559512377, -0.036095812916755676, 0.022682301700115204, 0.019289575517177582, 0.02770143933594227, 0.058201003819704056, -0.07352074235677719, 0.031181607395410538, -0.07603905349969864, 0.02555038034915924, -0.058550767600536346, -0.002564219292253256, 0.00535578653216362, -0.05732658877968788, 0.026127493008971214, 0.007074010092765093, 0.01998910680413246, 0.029607661068439484, -0.006514385342597961, -0.03137397766113281, 0.0353088416159153, 0.01895729824900627, -0.015529594384133816, -0.005491320509463549, -0.014340391382575035, -0.03721506521105766, 0.0332627147436142, 0.0050497413612902164, -0.0017193167004734278, 0.0012547842925414443, 0.002854962134733796, 0.016727542504668236, 0.037879619747400284, -0.04977165162563324, -0.019761759787797928, -0.029310360550880432, -0.026862001046538353, -0.02696693129837513, 0.015660757198929787, -0.02276974357664585, -0.017365863546729088, -0.02283969707787037, -0.024378664791584015, -0.014060579240322113, 0.029502732679247856, 0.01228551845997572, 0.01801293157041073, 0.018047906458377838, -0.07282120734453201, -0.060999128967523575, -0.015179828740656376, 0.0179954431951046, -0.030184775590896606, -0.009653531946241856, 0.023311879485845566, -0.06260804831981659, -0.04375568404793739, 0.049876581877470016, 0.016465218737721443, 0.04672868922352791, -0.017540747299790382, -0.023784063756465912, -0.051660384982824326, 0.0010394598357379436, 0.01310746744275093, -0.043720707297325134, 0.04522469639778137, 0.003399284789338708, 0.0025554753374308348, 0.026792049407958984, 0.01734837517142296, 0.0024833360221236944, -0.03690027445554733, -0.00743689201772213, 0.03707515820860863, 0.01827525533735752, -0.022245096042752266, 0.002942403545603156, 0.004087885841727257, -0.023084532469511032, -0.018187813460826874, -0.0318111851811409, 0.012303006835281849, 0.018747437745332718, -0.05470334738492966, 0.014086811803281307, -0.041971877217292786, 0.010449248366057873, -0.013509698212146759, 0.013098723255097866, -0.04795287176966667, 0.029467755928635597, 0.013352303765714169, -0.05424865335226059, 0.03501154109835625, 0.020811056718230247, 0.010624131187796593, 0.03170625492930412, -0.029135478660464287, 0.09695503860712051, 0.0005421367241069674, 0.021580539643764496, -0.0359908863902092, 0.047113433480262756, 0.027893809601664543, 0.04872235283255577, 0.018887344747781754, -0.04977165162563324, -0.015074899420142174, -0.03690027445554733, 0.007104614749550819, -0.03366494178771973, -0.029310360550880432, 0.13018277287483215, -0.004229978192597628, -0.05701180174946785, 0.0009006465552374721, -0.013894440606236458, 0.005884807091206312, 0.009924599900841713, -0.001557550160214305, -0.009469904936850071, -0.00216854689642787, 0.010702828876674175, 0.004713091999292374, -0.05368902534246445, -0.00950488168746233, -0.012031937949359417, 0.03254569321870804, 0.02177291177213192, -0.03808948025107384, 0.0021805702708661556, 0.02423875965178013, 0.07380054891109467 ]
30,174
networkx.generators.small
LCF_graph
Return the cubic graph specified in LCF notation. LCF (Lederberg-Coxeter-Fruchte) notation[1]_ is a compressed notation used in the generation of various cubic Hamiltonian graphs of high symmetry. See, for example, `dodecahedral_graph`, `desargues_graph`, `heawood_graph` and `pappus_graph`. Nodes are drawn from ``range(n)``. Each node ``n_i`` is connected with node ``n_i + shift % n`` where ``shift`` is given by cycling through the input `shift_list` `repeat` s times. Parameters ---------- n : int The starting graph is the `n`-cycle with nodes ``0, ..., n-1``. The null graph is returned if `n` < 1. shift_list : list A list of integer shifts mod `n`, ``[s1, s2, .., sk]`` repeats : int Integer specifying the number of times that shifts in `shift_list` are successively applied to each current node in the n-cycle to generate an edge between ``n_current`` and ``n_current + shift mod n``. Returns ------- G : Graph A graph instance created from the specified LCF notation. Examples -------- The utility graph $K_{3,3}$ >>> G = nx.LCF_graph(6, [3, -3], 3) >>> G.edges() EdgeView([(0, 1), (0, 5), (0, 3), (1, 2), (1, 4), (2, 3), (2, 5), (3, 4), (4, 5)]) The Heawood graph: >>> G = nx.LCF_graph(14, [5, -5], 7) >>> nx.is_isomorphic(G, nx.heawood_graph()) True References ---------- .. [1] https://en.wikipedia.org/wiki/LCF_notation
def sedgewick_maze_graph(create_using=None): """ Return a small maze with a cycle. This is the maze used in Sedgewick, 3rd Edition, Part 5, Graph Algorithms, Chapter 18, e.g. Figure 18.2 and following [1]_. Nodes are numbered 0,..,7 Parameters ---------- create_using : NetworkX graph constructor, optional (default=nx.Graph) Graph type to create. If graph instance, then cleared before populated. Returns ------- G : networkx Graph Small maze with a cycle References ---------- .. [1] Figure 18.2, Chapter 18, Graph Algorithms (3rd Ed), Sedgewick """ G = empty_graph(0, create_using) G.add_nodes_from(range(8)) G.add_edges_from([[0, 2], [0, 7], [0, 5]]) G.add_edges_from([[1, 7], [2, 6]]) G.add_edges_from([[3, 4], [3, 5]]) G.add_edges_from([[4, 5], [4, 7], [4, 6]]) G.name = "Sedgewick Maze" return G
(n, shift_list, repeats, create_using=None, *, backend=None, **backend_kwargs)
[ 0.08456717431545258, -0.022283656522631645, -0.013771576806902885, -0.03377150371670723, -0.06190289184451103, 0.023356318473815918, -0.06273333728313446, 0.05505170673131943, -0.0003365580632817, -0.01582174189388752, -0.006773332133889198, 0.03157428279519081, -0.006916065234690905, 0.07730076462030411, 0.024031056091189384, -0.013408256694674492, 0.04294102266430855, -0.0034147801343351603, -0.024463580921292305, 0.052456557750701904, -0.010960168205201626, -0.03993065282702446, 0.040069062262773514, 0.04418669268488884, -0.026937618851661682, 0.02759505622088909, -0.014826936647295952, 0.05425586178898811, -0.008179036900401115, -0.0330621637403965, -0.01723177172243595, -0.04411748796701431, -0.05830429121851921, 0.018581248819828033, 0.030086398124694824, 0.06394440680742264, 0.0019171644235029817, 0.04816591739654541, -0.08041493594646454, -0.05231815204024315, 0.03781993314623833, -0.005358977243304253, 0.05221434682607651, -0.0045847585424780846, 0.04010366275906563, -0.012837324291467667, 0.05107248201966286, 0.020916879177093506, -0.025951463729143143, -0.03192030265927315, 0.026660803705453873, -0.02389264851808548, -0.016453228890895844, 0.03595142811536789, 0.03480956330895424, -0.016842499375343323, -0.022404763847589493, -0.008092531934380531, 0.1026293933391571, -0.04757768288254738, 0.005298424046486616, -0.014212751761078835, 0.027231736108660698, 0.04096871241927147, -0.04588218778371811, -0.013927285559475422, -0.03415212780237198, -0.05487869679927826, -0.0005844485713168979, 0.0046799140982329845, 0.045190148055553436, 0.03584762290120125, 0.04515554755926132, -0.01014702208340168, 0.03664346784353256, 0.02967117354273796, -0.014740431681275368, -0.035916827619075775, -0.04439430311322212, -0.04740467295050621, 0.01979231648147106, 0.017058761790394783, -0.02716253325343132, -0.053494617342948914, 0.031107155606150627, 0.03212791308760643, 0.030449718236923218, 0.04304482787847519, -0.01180791575461626, -0.0965394452214241, 0.016185063868761063, -0.013131440617144108, -0.02711062878370285, -0.01153975073248148, -0.008602910675108433, 0.004156559705734253, 0.02039785124361515, -0.06006898730993271, 0.005791501607745886, -0.019377093762159348, -0.04162614792585373, 0.009506886824965477, -0.08470557630062103, 0.01243940182030201, -0.052664171904325485, -0.04283721745014191, -0.02449818141758442, 0.004054916091263294, -0.01718851923942566, -0.040276672691106796, -0.04172995314002037, -0.002225338015705347, 0.027197133749723434, 0.00448527792468667, 0.03136666864156723, 0.03636665269732475, 0.024204066023230553, 0.016574334353208542, 0.034619253128767014, -0.0656399056315422, -0.0196366086602211, 0.009723148308694363, -0.04740467295050621, -0.03716249763965607, 0.0369894877076149, -0.029584668576717377, 0.03480956330895424, -0.013096839189529419, 0.00855965819209814, -0.012845974415540695, 0.020484356209635735, 0.006198074668645859, -0.039411623030900955, 0.032162513583898544, -0.051799122244119644, 0.008256890811026096, -0.0417991578578949, -0.043875277042388916, 0.025328628718852997, 0.029031038284301758, 0.011340789496898651, -0.02868501842021942, 0.0018566109938547015, 0.028269795700907707, -0.06318316608667374, -0.00247620209120214, -0.018581248819828033, 0.008490454405546188, 0.060899436473846436, 0.028010280802845955, 0.02842550352215767, -0.009057060815393925, 0.021262899041175842, 0.027127930894494057, -0.021453211084008217, -0.03174729272723198, -0.0013148741563782096, 0.059480756521224976, 0.015112402848899364, 0.05892712622880936, 0.011271585710346699, -0.025657348334789276, 0.012863275595009327, 0.011954974383115768, -0.03681647777557373, -0.010458439588546753, 0.008672114461660385, 0.011695459485054016, -0.012283693067729473, 0.013226596638560295, -0.02749125100672245, 0.010614149272441864, -0.05740463733673096, -0.02493070624768734, 0.06394440680742264, -0.00003825137537205592, -0.025605443865060806, -0.005237870384007692, 0.020086433738470078, -0.043944478034973145, -0.019515501335263252, -0.012344246730208397, 0.014472266659140587, -0.005843404680490494, 0.0027897823601961136, 0.0038883944507688284, 0.012171236798167229, -0.008490454405546188, 0.03268154338002205, 0.016730044037103653, -0.010475740768015385, 0.005320050287991762, 0.03387531265616417, 0.07197205722332001, 0.04058808833360672, -0.023650433868169785, 0.03032861091196537, 0.02411756105720997, -0.056158967316150665, 0.07543225586414337, -0.014134897850453854, 0.032318223267793655, 0.01175601314753294, -0.02700682356953621, 0.05301019176840782, 0.03503447771072388, 0.004775069188326597, -0.08110697567462921, -0.01877155900001526, 0.03792373836040497, -0.04778529703617096, -0.015960151329636574, 0.05629737675189972, 0.026920318603515625, -0.013460159301757812, -0.03134936839342117, 0.008187687024474144, 0.06121085211634636, 0.034065622836351395, -0.026037968695163727, -0.05072646215558052, 0.007089075166732073, -0.04892716184258461, -0.02001722902059555, 0.014195450581610203, -0.043287042528390884, -0.045086342841386795, -0.039134807884693146, -0.015198907814919949, -0.07425578683614731, 0.020743871107697487, -0.028944533318281174, 0.03889259323477745, -0.012621061876416206, 0.013217945583164692, -0.011816566810011864, -0.013287149369716644, -0.018892666324973106, 0.00796709954738617, -0.02089957892894745, -0.050657257437705994, -0.06377139687538147, 0.010034565813839436, -0.03408292308449745, 0.0471278578042984, 0.03795834258198738, -0.007543225772678852, 0.018304431810975075, 0.00305362232029438, 0.008365022018551826, -0.032975658774375916, -0.014792334288358688, 0.0328199528157711, 0.00009603393118595704, -0.0045198798179626465, 0.013806179165840149, -0.057958271354436874, 0.0035337244626134634, -0.016219664365053177, 0.0220414437353611, -0.021505113691091537, -0.027422046288847923, -0.02307950146496296, -0.017283674329519272, 0.04065729305148125, 0.011115876957774162, -0.05619357153773308, 0.07494782656431198, -0.08657408505678177, -0.045639973133802414, 0.03778533264994621, 0.014498217962682247, 0.014826936647295952, 0.006414337083697319, 0.01723177172243595, -0.0034515447914600372, -0.025813056156039238, -0.0038408166728913784, -0.0013700210256502032, -0.035536203533411026, -0.0955013856291771, -0.035432398319244385, 0.012084731832146645, 0.05404824763536453, -0.05100327730178833, -0.0022091183345764875, 0.016124509274959564, 0.009498235769569874, 0.04141853749752045, -0.03017290309071541, -0.017439384013414383, -0.042248982936143875, 0.014082994312047958, 0.0006725754356011748, 0.04162614792585373, -0.004502579104155302, 0.0220414437353611, -0.008529380895197392, -0.028736921027302742, 0.04761228710412979, 0.08913462609052658, -0.06124545633792877, 0.007824365980923176, 0.018529346212744713, 0.023166006430983543, 0.03892719745635986, 0.001853367080911994, -0.02399645373225212, 0.04986141249537468, -0.035536203533411026, -0.0896882563829422, 0.014991295523941517, -0.004913477227091789, 0.0575084462761879, -0.027404746040701866, -0.04204137250781059, -0.029221348464488983, -0.030034493654966354, 0.05591675639152527, 0.04903096705675125, -0.007794089615345001, 0.017958413809537888, -0.016012053936719894, 0.008529380895197392, -0.06736999750137329, 0.014420363120734692, 0.018287131562829018, 0.04615900292992592, 0.012603760696947575, 0.018027616664767265, -0.026799211278557777, -0.036851078271865845, 0.015951499342918396, 0.018148723989725113, -0.051349297165870667, 0.018840763717889786, 0.013650470413267612, -0.007694608997553587, -0.022387463599443436, -0.0446019172668457, 0.09058791399002075, 0.023875346407294273, -0.01314874179661274, -0.011115876957774162, 0.06169528141617775, 0.0164705291390419, -0.007828691974282265, -0.05044964700937271, -0.012119334191083908, 0.04692024737596512, 0.036470457911491394, 0.07038036733865738, -0.017041461542248726, 0.006907414644956589, 0.030363213270902634, 0.033909913152456284, 0.016176411882042885, 0.010172974318265915, -0.035311292856931686, 0.029100241139531136, -0.06332157552242279, 0.021799229085445404, 0.004848598502576351, -0.0016414300771430135, -0.02181653119623661, -0.025709250941872597, -0.01707606390118599, 0.03240472823381424, 0.053702231496572495, -0.05934234708547592, -0.021124491468071938, -0.05934234708547592, -0.021366706117987633, 0.032871853560209274, -0.008196337148547173, 0.06532848626375198, -0.0344635434448719, 0.009757750667631626, 0.06349458545446396, 0.004320918582379818, 0.011885770596563816, -0.0017960575642064214, 0.008352045901119709, -0.002904401393607259, 0.08055334538221359, -0.028460105881094933, 0.04505174234509468, 0.035051777958869934, 0.017361529171466827, -0.05622817203402519, -0.09439412504434586, -0.024342473596334457, 0.05698941648006439, 0.06806203722953796, -0.005419530905783176, 0.02541513368487358, 0.08214503526687622, 0.046505022794008255, -0.0362282432615757, 0.04653962701559067, 0.07750837504863739, -0.04294102266430855, 0.03209330886602402, 0.043875277042388916, -0.028235193341970444, -0.06550149619579315, -0.027076028287410736, 0.010821760632097721, 0.02650509588420391, 0.018581248819828033, 0.04899636283516884, -0.048788752406835556, -0.048581141978502274, 0.01804491877555847, -0.0027638308238238096, 0.010839061811566353, 0.015458421781659126, 0.02612447366118431, 0.058442696928977966, 0.0069463420659303665, 0.05138389766216278, -0.012197188101708889, 0.0003700786910485476, 0.03868498280644417, 0.04249119758605957, -0.01692035421729088, -0.024463580921292305, -0.0056790453381836414, -0.05235275253653526, 0.0478891022503376, -0.01006051804870367, -0.060899436473846436, 0.057681452482938766, -0.021366706117987633, -0.017768101766705513, 0.005220569670200348, 0.03325247764587402, -0.018581248819828033, 0.022352861240506172, 0.01865045167505741, 0.03186839818954468, -0.01412624679505825, -0.029584668576717377, -0.030674630776047707, 0.019896121695637703, -0.03081303834915161, -0.007192880846560001, -0.006288904696702957, 0.016453228890895844, 0.009290624409914017, 0.03076113574206829, 0.011591654270887375, -0.03608983755111694, 0.0117819644510746, -0.06169528141617775, 0.008109832182526588, 0.027127930894494057, 0.011565702967345715, -0.03313136845827103, 0.05138389766216278, 0.038373563438653946, -0.014515519142150879, -0.020588161423802376, 0.06660875678062439, -0.03878878802061081, -0.015363266691565514, 0.021747326478362083, 0.005666069686412811, 0.0009661513613536954, -0.06785442680120468, 0.03186839818954468, -0.029653873294591904, -0.05882331728935242, -0.045847587287425995, 0.0889270156621933, -0.04515554755926132, -0.06342537701129913, -0.02242206409573555, 0.03923861309885979, -0.016980908811092377, -0.06152227148413658, -0.009515536949038506, 0.004883200395852327, 0.030864940956234932, -0.010622799396514893, 0.00040522130439057946, 0.05003442242741585, -0.0851208046078682, -0.022058743983507156, -0.04221438243985176, 0.0028287095483392477, -0.034774962812662125, -0.027941076084971428, -0.00003906236088369042, -0.0063797347247600555, 0.07806200534105301, -0.030518921092152596, -0.03140127286314964, -0.0045198798179626465, -0.07647031545639038, 0.028823425993323326, -0.01576118916273117, -0.03830436244606972, -0.021193696185946465, -0.02318330854177475, 0.04397908225655556, 0.02323521114885807, -0.012456702999770641, 0.018460141494870186, 0.027612358331680298, 0.056158967316150665, -0.008979206904768944, 0.0032633966766297817, 0.07660872489213943, 0.022127948701381683, 0.03010369837284088, -0.007616754621267319, 0.014982645399868488, 0.054913297295570374, -0.05923854187130928, 0.015380567871034145, 0.024238668382167816, 0.028079483658075333, 0.035916827619075775, -0.043944478034973145, 0.05993058159947395, 0.030449718236923218, 0.033684998750686646, 0.040276672691106796, 0.037612322717905045, 0.0315396785736084, 0.07141842693090439, -0.02858121320605278, 0.07937687635421753, 0.033684998750686646, -0.04439430311322212, 0.047370072454214096, 0.01435115933418274, -0.019653908908367157, -0.03858117759227753, 0.005198943428695202, -0.029601970687508583, -0.034117523580789566, -0.022923793643712997, -0.011332139372825623, 0.0017787566175684333, 0.09480934590101242, -0.02908294089138508, -0.02361583150923252, -0.09813113510608673, -0.021903036162257195, 0.03228362277150154, -0.005207594018429518, -0.005415205378085375, 0.08629726618528366, -0.049619197845458984, -0.023114103823900223, -0.029498163610696793, 0.016764646396040916, 0.012837324291467667, -0.06387520581483841, -0.011193731799721718, 0.013987839221954346, -0.009074361994862556, -0.008987857028841972, 0.022439366206526756, 0.005449807271361351, 0.02237016148865223, -0.024238668382167816, 0.025657348334789276, 0.02979228086769581, 0.043875277042388916, 0.08622806519269943, -0.02536323107779026, -0.028217891231179237, -0.007867618463933468, 0.0003279075608588755, 0.031556978821754456, 0.04958459734916687, -0.02366773597896099, -0.03399641811847687, -0.014143547974526882, 0.005614166613668203, 0.04038047790527344, -0.01897917129099369, 0.03934241831302643, -0.03653966262936592, 0.008360696956515312, -0.021885734051465988, 0.01320064440369606, 0.051245491951704025, -0.05128009244799614, 0.04128012806177139, -0.0019496037857607007, -0.042629603296518326, -0.002958466997370124, 0.0254670362919569, 0.019982626661658287, 0.023425521329045296, 0.016219664365053177, -0.05072646215558052, 0.07217967510223389, 0.03539779782295227, 0.03415212780237198, 0.03560540825128555, 0.023390918970108032, 0.01854664646089077, -0.01854664646089077, 0.0014327371027320623, -0.04397908225655556, -0.009965362027287483, 0.007534575182944536, -0.01668679155409336, -0.05394444242119789, -0.059030931442976, 0.008131458424031734, -0.02323521114885807, 0.008961905725300312, -0.03159158304333687, -0.0244462788105011, 0.009290624409914017, -0.010908265598118305, 0.001709552714601159, -0.03290645778179169, -0.01221448928117752, 0.004015989135950804, 0.021730026230216026, 0.00989615824073553, -0.013356353156268597, 0.040726497769355774, -0.02176462858915329, -0.04539776220917702, -0.011963624507188797, -0.03325247764587402, -0.01996532641351223, -0.031072553247213364, 0.00020571942150127143, 0.00003078357258345932, 0.010873663239181042, 0.05813128128647804, -0.04162614792585373, 0.027179833501577377, 0.02743934839963913, 0.01723177172243595, -0.06754300743341446, -0.0196366086602211, 0.0635983869433403, -0.0008969474583864212, -0.042733412235975266, 0.011349440552294254, -0.00823526456952095, 0.005328700412064791, 0.023217909038066864, 0.017326926812529564, 0.0549825020134449, 0.03660886362195015, -0.03489606827497482, -0.06698937714099884, 0.05411745235323906, -0.047162462025880814, 0.03892719745635986, 0.00883647333830595, 0.009299274533987045, 0.023650433868169785, 0.022024143487215042, 0.045639973133802414, 0.006137521471828222, 0.02814868837594986, 0.032595038414001465, -0.02787187322974205, -0.025813056156039238, -0.043875277042388916, -0.008680764585733414, -0.052075937390327454, -0.06474025547504425, -0.04539776220917702, -0.024965308606624603, 0.022941093891859055, -0.04667803272604942, -0.03716249763965607, 0.03916940838098526, 0.05183372274041176, -0.013018984347581863, -0.04463651776313782, -0.005570914130657911, 0.03626284748315811, -0.0526987724006176, -0.021470511332154274, 0.03050162084400654, 0.007642706390470266, -0.023096803575754166, -0.040449682623147964, 0.024532783776521683, 0.05013822764158249, -0.010562245734035969, 0.007123677060008049, -0.01674734428524971, -0.01816602423787117, 0.0024416001979261637, -0.06342537701129913, 0.03262964263558388, 0.04456731304526329, 0.0023291439283639193, 0.021470511332154274, 0.039965253323316574, -0.04349465295672417, -0.039896052330732346, 0.048788752406835556, -0.002709765452891588, 0.006241327151656151, -0.02072656899690628, -0.031505078077316284, 0.041868362575769424, 0.029048338532447815, 0.0004874009464401752, -0.059030931442976, -0.003767287591472268, -0.000982371042482555, -0.022508569061756134, 0.007006895262748003, 0.012231790460646152, 0.0011948486790060997, -0.018615851178765297, 0.020795773714780807, -0.06235271692276001, -0.0015041036531329155, -0.04615900292992592, -0.05972297117114067, 0.0038062147796154022, -0.056158967316150665, -0.04346005246043205, 0.008196337148547173, -0.0049697053618729115, 0.05252576246857643, 0.006959317717701197, 0.0031076879240572453, 0.00029898248612880707, 0.059861376881599426, -0.018667753785848618, 0.03719709813594818, -0.03442894294857979, -0.01832173392176628, -0.08145299553871155, 0.006176448427140713, -0.009792352095246315, 0.012698916718363762, 0.030726533383131027, 0.04525935277342796, -0.04681644216179848, 0.012638363055884838, 0.059653766453266144, -0.055605337023735046, 0.06698937714099884, 0.028079483658075333, -0.024948008358478546, 0.025432433933019638, -0.04020746797323227, -0.04411748796701431, -0.03615903854370117, -0.07100320607423782, -0.018252529203891754, 0.02411756105720997, 0.01453282032161951, -0.022941093891859055, -0.04467112198472023, 0.022352861240506172, 0.02285458892583847, 0.056158967316150665 ]
30,175
networkx.generators.community
LFR_benchmark_graph
Returns the LFR benchmark graph. This algorithm proceeds as follows: 1) Find a degree sequence with a power law distribution, and minimum value ``min_degree``, which has approximate average degree ``average_degree``. This is accomplished by either a) specifying ``min_degree`` and not ``average_degree``, b) specifying ``average_degree`` and not ``min_degree``, in which case a suitable minimum degree will be found. ``max_degree`` can also be specified, otherwise it will be set to ``n``. Each node *u* will have $\mu \mathrm{deg}(u)$ edges joining it to nodes in communities other than its own and $(1 - \mu) \mathrm{deg}(u)$ edges joining it to nodes in its own community. 2) Generate community sizes according to a power law distribution with exponent ``tau2``. If ``min_community`` and ``max_community`` are not specified they will be selected to be ``min_degree`` and ``max_degree``, respectively. Community sizes are generated until the sum of their sizes equals ``n``. 3) Each node will be randomly assigned a community with the condition that the community is large enough for the node's intra-community degree, $(1 - \mu) \mathrm{deg}(u)$ as described in step 2. If a community grows too large, a random node will be selected for reassignment to a new community, until all nodes have been assigned a community. 4) Each node *u* then adds $(1 - \mu) \mathrm{deg}(u)$ intra-community edges and $\mu \mathrm{deg}(u)$ inter-community edges. Parameters ---------- n : int Number of nodes in the created graph. tau1 : float Power law exponent for the degree distribution of the created graph. This value must be strictly greater than one. tau2 : float Power law exponent for the community size distribution in the created graph. This value must be strictly greater than one. mu : float Fraction of inter-community edges incident to each node. This value must be in the interval [0, 1]. average_degree : float Desired average degree of nodes in the created graph. This value must be in the interval [0, *n*]. Exactly one of this and ``min_degree`` must be specified, otherwise a :exc:`NetworkXError` is raised. min_degree : int Minimum degree of nodes in the created graph. This value must be in the interval [0, *n*]. Exactly one of this and ``average_degree`` must be specified, otherwise a :exc:`NetworkXError` is raised. max_degree : int Maximum degree of nodes in the created graph. If not specified, this is set to ``n``, the total number of nodes in the graph. min_community : int Minimum size of communities in the graph. If not specified, this is set to ``min_degree``. max_community : int Maximum size of communities in the graph. If not specified, this is set to ``n``, the total number of nodes in the graph. tol : float Tolerance when comparing floats, specifically when comparing average degree values. max_iters : int Maximum number of iterations to try to create the community sizes, degree distribution, and community affiliations. seed : integer, random_state, or None (default) Indicator of random number generation state. See :ref:`Randomness<randomness>`. Returns ------- G : NetworkX graph The LFR benchmark graph generated according to the specified parameters. Each node in the graph has a node attribute ``'community'`` that stores the community (that is, the set of nodes) that includes it. Raises ------ NetworkXError If any of the parameters do not meet their upper and lower bounds: - ``tau1`` and ``tau2`` must be strictly greater than 1. - ``mu`` must be in [0, 1]. - ``max_degree`` must be in {1, ..., *n*}. - ``min_community`` and ``max_community`` must be in {0, ..., *n*}. If not exactly one of ``average_degree`` and ``min_degree`` is specified. If ``min_degree`` is not specified and a suitable ``min_degree`` cannot be found. ExceededMaxIterations If a valid degree sequence cannot be created within ``max_iters`` number of iterations. If a valid set of community sizes cannot be created within ``max_iters`` number of iterations. If a valid community assignment cannot be created within ``10 * n * max_iters`` number of iterations. Examples -------- Basic usage:: >>> from networkx.generators.community import LFR_benchmark_graph >>> n = 250 >>> tau1 = 3 >>> tau2 = 1.5 >>> mu = 0.1 >>> G = LFR_benchmark_graph( ... n, tau1, tau2, mu, average_degree=5, min_community=20, seed=10 ... ) Continuing the example above, you can get the communities from the node attributes of the graph:: >>> communities = {frozenset(G.nodes[v]["community"]) for v in G} Notes ----- This algorithm differs slightly from the original way it was presented in [1]. 1) Rather than connecting the graph via a configuration model then rewiring to match the intra-community and inter-community degrees, we do this wiring explicitly at the end, which should be equivalent. 2) The code posted on the author's website [2] calculates the random power law distributed variables and their average using continuous approximations, whereas we use the discrete distributions here as both degree and community size are discrete. Though the authors describe the algorithm as quite robust, testing during development indicates that a somewhat narrower parameter set is likely to successfully produce a graph. Some suggestions have been provided in the event of exceptions. References ---------- .. [1] "Benchmark graphs for testing community detection algorithms", Andrea Lancichinetti, Santo Fortunato, and Filippo Radicchi, Phys. Rev. E 78, 046110 2008 .. [2] https://www.santofortunato.net/resources
def _generate_communities(degree_seq, community_sizes, mu, max_iters, seed): """Returns a list of sets, each of which represents a community. ``degree_seq`` is the degree sequence that must be met by the graph. ``community_sizes`` is the community size distribution that must be met by the generated list of sets. ``mu`` is a float in the interval [0, 1] indicating the fraction of intra-community edges incident to each node. ``max_iters`` is the number of times to try to add a node to a community. This must be greater than the length of ``degree_seq``, otherwise this function will always fail. If the number of iterations exceeds this value, :exc:`~networkx.exception.ExceededMaxIterations` is raised. seed : integer, random_state, or None (default) Indicator of random number generation state. See :ref:`Randomness<randomness>`. The communities returned by this are sets of integers in the set {0, ..., *n* - 1}, where *n* is the length of ``degree_seq``. """ # This assumes the nodes in the graph will be natural numbers. result = [set() for _ in community_sizes] n = len(degree_seq) free = list(range(n)) for i in range(max_iters): v = free.pop() c = seed.choice(range(len(community_sizes))) # s = int(degree_seq[v] * (1 - mu) + 0.5) s = round(degree_seq[v] * (1 - mu)) # If the community is large enough, add the node to the chosen # community. Otherwise, return it to the list of unaffiliated # nodes. if s < community_sizes[c]: result[c].add(v) else: free.append(v) # If the community is too big, remove a node from it. if len(result[c]) > community_sizes[c]: free.append(result[c].pop()) if not free: return result msg = "Could not assign communities; try increasing min_community" raise nx.ExceededMaxIterations(msg)
(n, tau1, tau2, mu, average_degree=None, min_degree=None, max_degree=None, min_community=None, max_community=None, tol=1e-07, max_iters=500, seed=None, *, backend=None, **backend_kwargs)
[ -0.002088631968945265, 0.025752902030944824, -0.03889589011669159, -0.015606148168444633, 0.0060246349312365055, 0.059961430728435516, -0.03409823775291443, -0.04183697700500488, 0.05382191017270088, -0.01217794232070446, -0.020036162808537483, 0.019870726391673088, -0.003304128535091877, 0.05132198706269264, -0.010109989903867245, 0.015275275334715843, 0.010854452848434448, -0.041248757392168045, 0.020789815112948418, 0.03415338322520256, -0.011791924946010113, -0.018528854474425316, -0.011709206737577915, 0.01690206490457058, -0.03606509044766426, 0.026966100558638573, 0.022830195724964142, 0.008285596035420895, -0.05510863661766052, -0.0011471392353996634, -0.026138920336961746, -0.015596956945955753, -0.02218683250248432, -0.009880217723548412, 0.0026630633510649204, 0.05323369428515434, 0.03722314536571503, 0.08330632001161575, -0.013427904807031155, -0.02435588464140892, -0.0190251637250185, -0.049189697951078415, 0.006433629896491766, -0.013924213126301765, 0.01135995239019394, 0.018914872780442238, 0.012683441862463951, 0.055880673229694366, -0.06632153689861298, -0.05029260367155075, 0.010652253404259682, -0.036230526864528656, 0.034576166421175, 0.0016566597623750567, -0.02689257264137268, 0.01232499722391367, 0.000822585541754961, 0.0385650172829628, 0.06521862745285034, 0.005119331181049347, -0.014585957862436771, -0.0022965760435909033, 0.017471900209784508, -0.009742354042828083, -0.06665240973234177, 0.0011649465886875987, -0.06834353506565094, -0.03915323317050934, 0.03689227253198624, 0.06345397233963013, 0.07429923862218857, 0.04371191933751106, -0.0020300401374697685, 0.012692633084952831, 0.06992436945438385, 0.04529275372624397, -0.00007295276736840606, 0.0027641630731523037, -0.00522962212562561, -0.0581967793405056, 0.020403798669576645, 0.016837729141116142, 0.02084496058523655, -0.01076254341751337, 0.06970378756523132, -0.004225516226142645, 0.03382251039147377, 0.008345337584614754, -0.009485009126365185, -0.04657948017120361, 0.02273828722536564, 0.0018243936356157064, 0.04202079400420189, -0.0361386202275753, 0.000663468090351671, 0.05911586806178093, -0.018115263432264328, -0.03385927528142929, 0.03628567233681679, -0.03481512889266014, 0.04624860733747482, -0.006383080035448074, -0.06279222667217255, 0.020072925835847855, -0.02084496058523655, -0.05536597967147827, 0.0010661444393917918, 0.0027641630731523037, -0.0022908318787813187, -0.03328943997621536, -0.07536537945270538, 0.04543980956077576, 0.05441012606024742, -0.004940108861774206, 0.010854452848434448, -0.0014808838022872806, -0.005753503181040287, 0.009549344889819622, 0.013749586418271065, 0.007288383785635233, -0.04110170528292656, 0.031138768419623375, -0.02183757908642292, 0.02566099353134632, 0.014383758418262005, 0.009296595118939877, 0.028252827003598213, 0.011166943237185478, 0.03224167600274086, -0.022866958752274513, 0.02152508683502674, -0.01608407497406006, 0.005445608403533697, 0.020477324724197388, -0.003549985121935606, -0.04202079400420189, -0.10337924212217331, -0.03661654517054558, 0.04827060550451279, 0.006107353139668703, -0.01262829639017582, -0.027591081336140633, -0.017085883766412735, 0.044079557061195374, 0.00949419941753149, 0.041579630225896835, 0.010872834362089634, -0.020422179251909256, 0.005298553965985775, 0.008267214521765709, 0.04422660917043686, -0.00459085451439023, -0.012462859973311424, -0.04529275372624397, -0.03156154975295067, -0.006291171070188284, -0.016984783113002777, -0.029870424419641495, -0.0020978229586035013, 0.01959499903023243, -0.024172067642211914, 0.025072775781154633, -0.02623082883656025, 0.05121169611811638, -0.00909439567476511, -0.03707608953118324, 0.06073346734046936, -0.016819346696138382, -0.06187313795089722, -0.02720506303012371, -0.011185325682163239, -0.029263826087117195, -0.03797679767012596, -0.05845412239432335, 0.03032997064292431, -0.04889558628201485, 0.020054543390870094, 0.00020952380145899951, -0.03852825239300728, 0.010643062181770802, -0.035862892866134644, -0.00919090025126934, -0.015164985321462154, -0.021286124363541603, -0.0037613757885992527, 0.05224107578396797, 0.05444689095020294, -0.007398674264550209, 0.05510863661766052, -0.04051348567008972, -0.044447191059589386, -0.04279283061623573, -0.05095434933900833, 0.07705650478601456, -0.0013051078421995044, 0.014576767571270466, -0.02464999444782734, 0.028565317392349243, -0.1063203290104866, 0.02841826342046261, 0.007122947368770838, 0.02248094044625759, 0.005569685250520706, -0.049483805894851685, 0.035568781197071075, -0.02248094044625759, -0.03406147658824921, -0.03032997064292431, 0.05132198706269264, 0.032443877309560776, 0.014337804168462753, -0.024411030113697052, 0.07830646634101868, 0.021616997197270393, 0.015137412585318089, -0.0397782139480114, 0.017867108806967735, 0.003807330271229148, -0.014576767571270466, -0.04941027984023094, -0.0013039589393883944, -0.029980715364217758, 0.0569835789501667, -0.03167184069752693, 0.022058159112930298, -0.03450263664126396, -0.01582673005759716, -0.051027875393629074, -0.04198402911424637, -0.011396716348826885, 0.06345397233963013, -0.039373815059661865, 0.024208830669522285, -0.00005320669515640475, -0.022517705336213112, -0.016984783113002777, 0.016534429043531418, -0.00631414819508791, -0.023933103308081627, 0.04426337406039238, -0.08646798878908157, -0.015449902974069118, 0.023933103308081627, 0.01709507405757904, 0.036230526864528656, 0.05514540150761604, -0.007899578660726547, -0.0025872383266687393, -0.020477324724197388, 0.027113154530525208, -0.021120687946677208, -0.06661564111709595, -0.027333736419677734, -0.0658436045050621, 0.03948410600423813, -0.07422570884227753, -0.05639536306262016, 0.007237833924591541, 0.011415097862482071, -0.025348501279950142, -0.02880427986383438, -0.03102847747504711, -0.04613831639289856, 0.07882115989923477, 0.005179072264581919, -0.033068858087062836, 0.0018795389914885163, 0.07238753139972687, -0.07003466039896011, 0.007031038403511047, 0.040035560727119446, 0.05066024139523506, 0.04904264211654663, -0.010422480292618275, 0.0007013805443421006, -0.013023504987359047, -0.018804581835865974, 0.00867620948702097, 0.012233087792992592, 0.053601328283548355, 0.01104746200144291, 0.04213108494877815, -0.037131235003471375, -0.001902516232803464, -0.0021552660036832094, 0.01881377212703228, -0.024245593696832657, -0.020955251529812813, -0.007849028334021568, -0.012729396112263203, -0.002396527212113142, -0.02021997980773449, -0.002970958361402154, -0.003244387684389949, 0.042572248727083206, 0.010238662362098694, 0.034888654947280884, 0.018731053918600082, 0.026635227724909782, 0.033987946808338165, 0.046983879059553146, -0.04110170528292656, -0.037186380475759506, -0.00418185954913497, 0.03711285442113876, -0.015128221362829208, -0.004377166274935007, -0.04966762289404869, 0.01643332839012146, 0.035568781197071075, -0.04025614261627197, -0.0126374876126647, 0.04680006206035614, 0.029190298169851303, 0.029484406113624573, 0.004135904833674431, 0.016442520543932915, -0.0250176303088665, 0.026708755642175674, 0.07146843522787094, -0.013648486696183681, -0.0024493748787790537, -0.020753052085638046, 0.0033408920280635357, -0.054593946784734726, -0.01041329000145197, -0.02597348392009735, 0.04165316000580788, -0.0021162047050893307, -0.008800286799669266, -0.05702034384012222, -0.038748834282159805, 0.04874853417277336, 0.04668977111577988, -0.010440862737596035, 0.03632243722677231, 0.07257134467363358, -0.07007142156362534, 0.04929998889565468, -0.07786530256271362, 0.02029350772500038, -0.007297574542462826, -0.07014495134353638, -0.005624830722808838, 0.0009983615018427372, -0.007417056243866682, 0.03428205847740173, -0.017481092363595963, -0.04356486722826958, -0.018859727308154106, 0.022609613835811615, 0.1016145870089531, 0.012251469306647778, 0.07257134467363358, 0.004241600167006254, 0.11029080301523209, -0.005441012792289257, -0.02873075380921364, 0.018087690696120262, 0.028675608336925507, -0.05338074639439583, -0.006029230542480946, 0.08264457434415817, 0.027664609253406525, -0.03893265128135681, -0.004623022861778736, -0.009034655056893826, 0.005082567688077688, 0.08845321834087372, -0.07624770700931549, -0.004788458812981844, -0.015937021002173424, -0.04496188089251518, 0.03040349669754505, -0.03900618106126785, 0.00864404160529375, -0.11529064923524857, 0.01578996703028679, -0.02178243361413479, 0.0006422141450457275, -0.03406147658824921, -0.022646376863121986, 0.03376736491918564, 0.03959439694881439, 0.0041198208928108215, -0.05338074639439583, 0.05510863661766052, 0.020422179251909256, 0.002034635515883565, 0.025532320141792297, -0.03102847747504711, -0.007803074084222317, 0.0190251637250185, 0.04613831639289856, 0.007867410778999329, 0.013804731890559196, 0.0703655332326889, -0.007830646820366383, -0.058637943118810654, 0.03358354791998863, 0.03606509044766426, -0.0021104603074491024, 0.010689016431570053, 0.05308663845062256, -0.034576166421175, -0.02305077761411667, 0.03202109411358833, 0.013758777640759945, 0.014135603792965412, 0.03801356256008148, -0.07326985150575638, -0.006649616174399853, 0.04687358811497688, -0.042903121560811996, -0.042866356670856476, -0.06437306106090546, -0.03354678303003311, 0.028546934947371483, 0.10712912678718567, -0.0128121143206954, 0.09602652490139008, -0.060880519449710846, 0.05602772533893585, 0.014135603792965412, -0.003975064028054476, -0.034962184727191925, 0.023804431781172752, -0.04768238961696625, -0.041910503059625626, -0.01725131832063198, -0.03255416825413704, 0.004264577757567167, 0.07304926961660385, -0.0656597912311554, 0.04246195778250694, -0.013005123473703861, -0.014650294557213783, 0.016837729141116142, -0.029668224975466728, -0.004239302594214678, 0.08904144167900085, 0.017398374155163765, -0.004747099708765745, -0.02751755528151989, 0.051983729004859924, 0.01517417561262846, -0.02021997980773449, -0.00995374470949173, -0.015394757501780987, 0.033013712614774704, 0.04779268056154251, -0.009935363195836544, 0.021984633058309555, 0.004322020802646875, 0.0013108521234244108, 0.03952087089419365, 0.05937321484088898, 0.022297123447060585, -0.049483805894851685, -0.010422480292618275, 0.09543830156326294, -0.0321313850581646, -0.02082658000290394, 0.06624800711870193, -0.011745969764888287, 0.049447041004896164, -0.002858369844034314, -0.004967681597918272, 0.01168163400143385, -0.0012143476633355021, 0.0338776558637619, 0.029668224975466728, -0.030164534226059914, -0.07231400161981583, -0.028234444558620453, -0.03670845553278923, -0.07749766856431961, 0.008818668313324451, -0.015339612029492855, -0.006222239229828119, -0.015698056668043137, -0.005248003639280796, 0.06073346734046936, -0.009567726403474808, -0.03922675922513008, -0.04893235117197037, -0.0016784881008788943, -0.036800362169742584, -0.011424289084970951, 0.012131988070905209, -0.01612083800137043, -0.09139431267976761, 0.014006931334733963, 0.005119331181049347, 0.03703932836651802, 0.009981317445635796, 0.0019530662102624774, -0.026488173753023148, 0.03626729175448418, -0.005445608403533697, 0.015109839849174023, 0.04676329717040062, 0.03159831464290619, -0.03599156439304352, 0.05694681778550148, 0.015854302793741226, 0.02117583341896534, -0.045733917504549026, -0.0505499504506588, 0.00176120619289577, 0.01565210334956646, 0.0005037761875428259, -0.0010851005790755153, -0.022683141753077507, 0.02816091664135456, 0.020495707169175148, 0.0493367500603199, 0.03198433294892311, 0.022591231390833855, -0.006465798243880272, 0.020679524168372154, 0.04716769978404045, -0.023216214030981064, 0.09337954223155975, -0.017435137182474136, 0.00011237311264267191, -0.018161218613386154, -0.04547657445073128, -0.021028779447078705, 0.017471900209784508, -0.025808047503232956, 0.011001506820321083, -0.03885912522673607, 0.05724092572927475, 0.0237125214189291, -0.022701522335410118, -0.011286425404250622, 0.025844810530543327, 0.052351366728544235, 0.011837879195809364, -0.022260360419750214, -0.016543619334697723, 0.04485158994793892, 0.009999698959290981, 0.0010454648872837424, 0.031212296336889267, 0.02847340889275074, 0.020642761141061783, 0.0048711770214140415, -0.03724152594804764, -0.042278140783309937, 0.04205755889415741, -0.03319752961397171, -0.0128121143206954, 0.08992376178503036, -0.04106494039297104, -0.03955763205885887, -0.04992496967315674, 0.03849148750305176, 0.07084345817565918, 0.007531942334026098, -0.028344735503196716, -0.06742443889379501, -0.005431822035461664, 0.036855507642030716, 0.011745969764888287, -0.016368992626667023, -0.04143257811665535, 0.008267214521765709, 0.0034144192468374968, 0.017784390598535538, -0.010109989903867245, -0.036561399698257446, 0.00631874380633235, -0.009990508668124676, -0.031230678781867027, -0.04680006206035614, -0.017931446433067322, 0.01078092586249113, -0.010119181126356125, -0.022866958752274513, 0.02211330458521843, 0.07580654323101044, -0.03501733019948006, 0.04198402911424637, 0.04588097333908081, -0.09117373079061508, -0.0404767245054245, 0.02123097889125347, 0.03882236033678055, 0.028069008141756058, 0.0031961353961378336, -0.0218008141964674, -0.01041329000145197, -0.06760825961828232, -0.0013154475018382072, 0.011617297306656837, -0.00803284626454115, -0.028271207585930824, -0.035513635724782944, -0.056138016283512115, 0.02619406394660473, 0.00395208690315485, 0.05599096417427063, 0.02781166322529316, -0.013620913960039616, -0.04867500439286232, -0.032682839781045914, 0.012343378737568855, 0.030789515003561974, -0.04371191933751106, 0.02281181327998638, -0.014935212209820747, -0.06871116906404495, -0.0030536765698343515, -0.038454726338386536, -0.02523821033537388, 0.006920747458934784, 0.019558236002922058, -0.05161609500646591, 0.023197831586003304, -0.000245856586843729, 0.006677188910543919, -0.021304506808519363, -0.016231128945946693, 0.02498086541891098, -0.02303239516913891, -0.0020897809881716967, 0.02216845005750656, 0.029980715364217758, -0.003143287729471922, -0.011019889265298843, 0.039079707115888596, -0.02088172547519207, 0.02408015727996826, -0.02841826342046261, 0.024227213114500046, 0.002555070212110877, 0.01013756264001131, -0.005528326146304607, -0.020128071308135986, 0.04518246278166771, -0.017784390598535538, -0.07668887078762054, -0.10676149278879166, -0.0010931426659226418, 0.03292180225253105, 0.051358748227357864, 0.0006829987396486104, 0.02053247019648552, 0.007086183875799179, -0.0006249811849556863, 0.05474099889397621, -0.053932201117277145, 0.01473301276564598, -0.028602080419659615, -0.03569745644927025, 0.028546934947371483, 0.04297664761543274, -0.04893235117197037, 0.02974175289273262, 0.0443001389503479, 0.060512885451316833, -0.004701145458966494, 0.00868540070950985, 0.022958867251873016, 0.018565617501735687, -0.01328085083514452, -0.027958717197179794, 0.038050327450037, -0.04532951861619949, -0.012766160070896149, 0.06510833650827408, -0.016672292724251747, -0.037131235003471375, 0.041910503059625626, -0.041285522282123566, 0.014475667849183083, -0.03801356256008148, 0.040697306394577026, 0.02757270075380802, 0.0233632680028677, -0.03481512889266014, -0.0003188093542121351, -0.006796670611947775, -0.005592662841081619, -0.03483350947499275, -0.053307220339775085, -0.011902215890586376, 0.005799457896500826, 0.009071418084204197, -0.010661443695425987, -0.005073376931250095, -0.025477174669504166, -0.028087390586733818, 0.04525599256157875, -0.03360192850232124, 0.00009478115680394694, 0.005422630812972784, 0.013492241501808167, 0.05562332645058632, 0.028344735503196716, -0.008588896133005619, 0.046322137117385864, -0.0218008141964674, -0.024098539724946022, -0.03955763205885887, 0.053564563393592834, 0.028914570808410645, 0.011663252487778664, -0.020679524168372154, -0.008671614341437817, 0.00011258852464379743, 0.006658806931227446, -0.03768268972635269, -0.022609613835811615, 0.024502938613295555, 0.09911466389894485, -0.012536387890577316, -0.007463010959327221, 0.009797499515116215, 0.02051408775150776, 0.03389604017138481, -0.0024631612468510866, -0.06102757528424263, -0.020458944141864777, 0.05415278300642967, -0.027664609253406525, 0.03827090561389923, -0.02814253605902195, -0.028951335698366165, 0.08117403090000153, -0.02435588464140892, 0.04275606572628021, -0.009466626681387424, -0.056799761950969696, -0.018409373238682747, 0.025826428085565567, -0.04702064394950867, 0.0032007310073822737, -0.06672593206167221, 0.009797499515116215, -0.0404767245054245, 0.008552132174372673, -0.023620612919330597, -0.0275359358638525, 0.04371191933751106, 0.00996293593198061, -0.006125734653323889, -0.0209368709474802, 0.0071780928410589695, -0.002279343083500862, 0.023767666891217232, 0.0076835923828184605, -0.04639566317200661, -0.03689227253198624, 0.003536198753863573, -0.054263073951005936, -0.05411601811647415, -0.07565949112176895, -0.006833434104919434, 0.012554769404232502, -0.006369293667376041, -0.0027940336149185896, -0.007982296869158745, 0.0411752313375473, 0.0399620346724987, 0.023014012724161148 ]
30,176
networkx.classes.multidigraph
MultiDiGraph
A directed graph class that can store multiedges. Multiedges are multiple edges between two nodes. Each edge can hold optional data or attributes. A MultiDiGraph holds directed edges. Self loops are allowed. 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. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. See Also -------- Graph DiGraph MultiGraph Examples -------- Create an empty graph structure (a "null graph") with no nodes and no edges. >>> G = nx.MultiDiGraph() 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, >>> key = G.add_edge(1, 2) a list of edges, >>> keys = G.add_edges_from([(1, 2), (1, 3)]) or a collection of edges, >>> keys = G.add_edges_from(H.edges) If some edges connect nodes not yet in the graph, the nodes are added automatically. If an edge already exists, an additional edge is created and stored using a key to identify the edge. By default the key is the lowest unused integer. >>> keys = G.add_edges_from([(4, 5, dict(route=282)), (4, 5, dict(route=37))]) >>> G[4] AdjacencyView({5: {0: {}, 1: {'route': 282}, 2: {'route': 37}}}) **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.MultiDiGraph(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. >>> key = G.add_edge(1, 2, weight=4.7) >>> keys = G.add_edges_from([(3, 4), (4, 5)], color="red") >>> keys = G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})]) >>> G[1][2][0]["weight"] = 4.7 >>> G.edges[1, 2, 0]["weight"] = 4 Warning: we protect the graph data structure by making `G.edges[1, 2, 0]` a read-only dict-like structure. However, you can assign to attributes in e.g. `G.edges[1, 2, 0]`. Thus, use 2 sets of brackets to add/change data attributes: `G.edges[1, 2, 0]['weight'] = 4` (for multigraphs the edge key is required: `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 >>> G[1] # adjacency dict-like view mapping neighbor -> edge key -> edge attributes AdjacencyView({2: {0: {'weight': 4}, 1: {'color': 'blue'}}}) Often the best way to traverse all edges of a graph is via the neighbors. The neighbors are available as an adjacency-view `G.adj` object or via the method `G.adjacency()`. >>> for n, nbrsdict in G.adjacency(): ... for nbr, keydict in nbrsdict.items(): ... for key, eattr in keydict.items(): ... if "weight" in eattr: ... # Do something useful with the edges ... pass But the edges() method is often more convenient: >>> for u, v, keys, weight in G.edges(data="weight", keys=True): ... if weight is not None: ... # Do something useful with the edges ... pass **Reporting:** Simple graph information is obtained using methods and object-attributes. 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, k]`, `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 MultiDiGraph class uses a dict-of-dict-of-dict-of-dict structure. The outer dict (node_dict) holds adjacency information keyed by node. The next dict (adjlist_dict) represents the adjacency information and holds edge_key dicts keyed by neighbor. The edge_key dict holds each edge_attr dict keyed by edge key. The inner dict (edge_attr_dict) represents the edge data and holds edge attribute values keyed by attribute names. Each of these four dicts in the dict-of-dict-of-dict-of-dict structure can be replaced 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_key_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, (default: dict) Factory function to be used to create the adjacency list dict which holds multiedge key dicts keyed by neighbor. It should require no arguments and return a dict-like object. edge_key_dict_factory : function, (default: dict) Factory function to be used to create the edge key dict which holds edge data keyed by edge key. 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 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 MultiDiGraph(MultiGraph, DiGraph): """A directed graph class that can store multiedges. Multiedges are multiple edges between two nodes. Each edge can hold optional data or attributes. A MultiDiGraph holds directed edges. Self loops are allowed. 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. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. See Also -------- Graph DiGraph MultiGraph Examples -------- Create an empty graph structure (a "null graph") with no nodes and no edges. >>> G = nx.MultiDiGraph() 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, >>> key = G.add_edge(1, 2) a list of edges, >>> keys = G.add_edges_from([(1, 2), (1, 3)]) or a collection of edges, >>> keys = G.add_edges_from(H.edges) If some edges connect nodes not yet in the graph, the nodes are added automatically. If an edge already exists, an additional edge is created and stored using a key to identify the edge. By default the key is the lowest unused integer. >>> keys = G.add_edges_from([(4, 5, dict(route=282)), (4, 5, dict(route=37))]) >>> G[4] AdjacencyView({5: {0: {}, 1: {'route': 282}, 2: {'route': 37}}}) **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.MultiDiGraph(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. >>> key = G.add_edge(1, 2, weight=4.7) >>> keys = G.add_edges_from([(3, 4), (4, 5)], color="red") >>> keys = G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})]) >>> G[1][2][0]["weight"] = 4.7 >>> G.edges[1, 2, 0]["weight"] = 4 Warning: we protect the graph data structure by making `G.edges[1, 2, 0]` a read-only dict-like structure. However, you can assign to attributes in e.g. `G.edges[1, 2, 0]`. Thus, use 2 sets of brackets to add/change data attributes: `G.edges[1, 2, 0]['weight'] = 4` (for multigraphs the edge key is required: `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 >>> G[1] # adjacency dict-like view mapping neighbor -> edge key -> edge attributes AdjacencyView({2: {0: {'weight': 4}, 1: {'color': 'blue'}}}) Often the best way to traverse all edges of a graph is via the neighbors. The neighbors are available as an adjacency-view `G.adj` object or via the method `G.adjacency()`. >>> for n, nbrsdict in G.adjacency(): ... for nbr, keydict in nbrsdict.items(): ... for key, eattr in keydict.items(): ... if "weight" in eattr: ... # Do something useful with the edges ... pass But the edges() method is often more convenient: >>> for u, v, keys, weight in G.edges(data="weight", keys=True): ... if weight is not None: ... # Do something useful with the edges ... pass **Reporting:** Simple graph information is obtained using methods and object-attributes. 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, k]`, `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 MultiDiGraph class uses a dict-of-dict-of-dict-of-dict structure. The outer dict (node_dict) holds adjacency information keyed by node. The next dict (adjlist_dict) represents the adjacency information and holds edge_key dicts keyed by neighbor. The edge_key dict holds each edge_attr dict keyed by edge key. The inner dict (edge_attr_dict) represents the edge data and holds edge attribute values keyed by attribute names. Each of these four dicts in the dict-of-dict-of-dict-of-dict structure can be replaced 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_key_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 stru
(incoming_graph_data=None, multigraph_input=None, **attr)
[ 0.03996957466006279, -0.009782311506569386, -0.025403842329978943, 0.028054116293787956, -0.027709364891052246, -0.007950820960104465, -0.04761873930692673, -0.0008901580004021525, 0.05171265825629234, -0.0400342158973217, -0.02065274305641651, 0.01606324501335621, 0.030682843178510666, 0.07519882172346115, -0.008774991147220135, 0.015373742207884789, 0.012432584539055824, 0.012174021452665329, 0.022882850840687752, 0.02350771240890026, -0.03921543061733246, -0.04298614710569382, 0.036457423120737076, 0.012637280859053135, 0.008915047161281109, -0.014673466794192791, 0.0068788607604801655, 0.019995560869574547, 0.06429607421159744, 0.012077060528099537, -0.0732165053486824, -0.0868772640824318, -0.06589054316282272, -0.00794543419033289, 0.012486452236771584, 0.011829270049929619, -0.020318765193223953, 0.04093918576836586, -0.08571372926235199, 0.02915300987660885, 0.03727620840072632, -0.02292594499886036, 0.0037195405457168818, -0.028571244329214096, 0.053048569709062576, 0.036328140646219254, 0.03520769998431206, 0.07519882172346115, -0.013337556272745132, -0.10256344079971313, 0.016267940402030945, -0.05041984096169472, 0.0042258938774466515, 0.0554618239402771, -0.013089766725897789, 0.02848505601286888, -0.017312966287136078, 0.05597895383834839, 0.0019971320871263742, 0.006027756724506617, -0.0055214036256074905, -0.019187550991773605, 0.016149431467056274, -0.03232041001319885, -0.05110934376716614, -0.014673466794192791, -0.06610601395368576, -0.036565158516168594, -0.05128172039985657, -0.004115465562790632, -0.01726987212896347, -0.0008241704781539738, 0.03596184402704239, -0.009572228416800499, 0.017819320783019066, 0.03212649002671242, -0.006334800738841295, 0.005893088411539793, -0.008128583431243896, 0.008419467136263847, 0.004497923888266087, -0.005510630086064339, -0.03591874986886978, -0.022107161581516266, 0.058521490544080734, 0.0320403017103672, -0.011506066657602787, 0.05778889358043671, 0.019693903625011444, -0.04947177693247795, -0.05610823258757591, -0.006765739526599646, -0.008327892981469631, 0.061624251306056976, -0.002860356355085969, -0.02973477728664875, 0.005074304528534412, -0.06020215153694153, 0.023033680394291878, 0.00874805822968483, -0.051841940730810165, -0.04018504545092583, -0.04193034768104553, 0.0072828661650419235, -0.07877561450004578, -0.11049271374940872, -0.07799992710351944, -0.0030677455943077803, -0.0029438508208841085, -0.03766405209898949, -0.09920211881399155, 0.0011076474329456687, 0.03984029218554497, 0.04611045494675636, 0.02596406266093254, 0.042856864631175995, -0.009464493952691555, -0.02327069640159607, 0.01246490515768528, -0.015072084963321686, -0.023529259487986565, 0.04236128553748131, 0.003347855992615223, 0.04078835994005203, 0.022107161581516266, -0.013854682445526123, 0.017108270898461342, -0.004767260514199734, 0.02870052494108677, -0.047834210097789764, 0.012529546394944191, -0.00785924680531025, -0.001334563596174121, 0.05597895383834839, 0.031135329976677895, -0.002550619188696146, -0.05102315545082092, -0.01212015375494957, -0.014210207387804985, 0.04878227412700653, -0.014296394772827625, -0.04494692012667656, 0.02424030750989914, 0.03669444099068642, -0.06028833985328674, -0.03986183926463127, -0.03589720278978348, -0.061322592198848724, -0.07024302333593369, -0.03865521028637886, -0.013456064276397228, -0.029950248077511787, -0.012906617484986782, 0.007352893706411123, -0.015158272348344326, 0.018271805718541145, -0.06765739619731903, 0.02327069640159607, -0.015373742207884789, 0.00609239749610424, -0.05714248865842819, -0.03214803710579872, 0.04623973369598389, 0.005516016855835915, 0.008080102503299713, 0.0013675574446097016, 0.03387179225683212, -0.07791373878717422, -0.01132291741669178, 0.06593363732099533, -0.008990461006760597, -0.031372345983982086, -0.038461290299892426, 0.015923188999295235, -0.01517981942743063, 0.022861303761601448, 0.05477232486009598, -0.01367153413593769, 0.02915300987660885, 0.02344307117164135, 0.021967105567455292, -0.039818745106458664, -0.035595547407865524, 0.0337425097823143, 0.015632305294275284, -0.004091225564479828, 0.018541142344474792, 0.0017412621527910233, 0.0755004808306694, 0.0024536577984690666, 0.030402733013033867, -0.030919859185814857, 0.005055450834333897, 0.0348629504442215, 0.02870052494108677, -0.022882850840687752, 0.012745015323162079, -0.013434517197310925, 0.026976769790053368, 0.11195790767669678, 0.011506066657602787, -0.043029241263866425, 0.048523709177970886, 0.010563387535512447, -0.0014140179846435785, 0.014059378765523434, -0.007428308017551899, -0.0325789749622345, -0.03727620840072632, -0.012874296866357327, -0.017851639539003372, -0.016052471473813057, 0.07403528690338135, 0.05821983516216278, -0.002331109717488289, -0.0348629504442215, -0.03402261808514595, 0.03871985152363777, -0.029368480667471886, -0.008602616377174854, 0.015406062826514244, -0.0007076823385432363, -0.00892043299973011, -0.0080100754275918, 0.0006837787223048508, -0.07394909858703613, 0.033139195293188095, 0.00559143116697669, 0.035595547407865524, -0.014404130168259144, 0.08937671035528183, -0.0030084915924817324, 0.029777871444821358, 0.019995560869574547, 0.019176777452230453, -0.018842799589037895, -0.02814030461013317, 0.017226779833436012, 0.019704677164554596, 0.022602740675210953, 0.002543885726481676, -0.037836428731679916, -0.02171931602060795, 0.0009366185986436903, 0.03796571120619774, 0.010768083855509758, 0.04020659253001213, 0.01269114762544632, -0.00719129154458642, -0.010644189082086086, -0.04261985048651695, -0.0029950246680527925, 0.007115877233445644, 0.028980635106563568, -0.006765739526599646, -0.017226779833436012, -0.05714248865842819, -0.009669189341366291, -0.0026987544260919094, -0.01967235654592514, 0.027536990121006966, 0.004947716370224953, -0.009028168395161629, 0.09118665009737015, 0.0520143136382103, 0.026265719905495644, 0.034798309206962585, 0.000011772962352551986, -0.07252699881792068, -0.024434231221675873, 0.09859880059957504, 0.016785066574811935, 0.05580657720565796, 0.002158734016120434, -0.015061311423778534, -0.05442757159471512, -0.006076237186789513, 0.01481352187693119, -0.043309349566698074, -0.034173447638750076, -0.039775650948286057, -0.008354825899004936, -0.05860767886042595, -0.0016200606478378177, -0.02013561688363552, -0.0060331434942781925, -0.02848505601286888, 0.022688928991556168, -0.009938525967299938, -0.01664501242339611, 0.05873696133494377, -0.0634341910481453, -0.008818085305392742, 0.0325789749622345, 0.011710762046277523, 0.030833672732114792, -0.03727620840072632, 0.019122909754514694, 0.03264361619949341, 0.02755853720009327, 0.06998446583747864, -0.008252478204667568, 0.08498113602399826, -0.024886716157197952, -0.018422633409500122, 0.01046103984117508, 0.07575904577970505, 0.018433406949043274, -0.0029303838964551687, 0.021859372034668922, -0.013930097222328186, 0.01920909807085991, -0.02424030750989914, 0.05154028162360191, -0.03984029218554497, -0.030919859185814857, -0.007589909713715315, -0.06046071648597717, 0.04358946159482002, 0.05016127973794937, -0.05322094261646271, 0.026265719905495644, -0.04770492762327194, -0.011312143877148628, 0.011344464495778084, 0.03938780725002289, 0.10144300013780594, 0.03990493342280388, 0.05024746432900429, 0.012001645751297474, -0.04318007081747055, -0.012518772855401039, -0.014027058146893978, 0.03253588080406189, -0.054125916212797165, 0.031436987221241, -0.001531179528683424, -0.008306345902383327, 0.02264583483338356, -0.02876516617834568, 0.03397952392697334, 0.022279536351561546, -0.028614336624741554, -0.014878162182867527, 0.013876229524612427, -0.05041984096169472, 0.036629799753427505, -0.0011655548587441444, -0.003953863400965929, 0.02385246381163597, -0.017690038308501244, 0.08261097222566605, -0.01198009867221117, 0.011926231905817986, -0.002868436509743333, -0.046067360788583755, -0.02910991758108139, -0.07438004016876221, 0.011592254042625427, 0.012367944233119488, 0.007756898645311594, 0.02738616243004799, 0.004217813722789288, 0.010886591859161854, -0.01641876809298992, -0.03014416992664337, -0.004072371870279312, 0.04580879583954811, 0.06528723239898682, -0.06257231533527374, 0.03150162845849991, -0.058823149651288986, -0.027601631358265877, 0.04147786274552345, -0.012938938103616238, 0.01640799455344677, 0.01152761373668909, 0.04710161313414574, -0.0005504569853655994, 0.004093918949365616, 0.0013520704815164208, -0.02945466712117195, 0.013122087344527245, 0.04078835994005203, 0.055332545191049576, -0.04580879583954811, 0.1292816400527954, -0.005112011916935444, 0.006151651497930288, -0.003891916247084737, -0.04326625540852547, -0.005898475181311369, 0.020211029797792435, 0.02069583721458912, -0.05335022509098053, -0.022430365905165672, 0.09644410759210587, -0.004093918949365616, -0.03762095794081688, -0.05731486156582832, 0.00673341890797019, -0.038741398602724075, 0.011366011574864388, 0.033203836530447006, 0.04511929303407669, 0.009367532096803188, 0.03990493342280388, 0.05123862624168396, 0.03764250501990318, 0.008731897920370102, 0.0503336526453495, 0.008554135449230671, -0.07045849412679672, 0.03163090720772743, 0.03236350417137146, 0.000786463322583586, 0.05300547555088997, 0.006991982460021973, 0.05817674100399017, 0.04684304818511009, 0.04281377047300339, 0.019187550991773605, 0.026050250977277756, -0.002040226012468338, -0.002099480014294386, -0.03300991281867027, -0.035186152905225754, 0.006765739526599646, -0.021654674783349037, 0.07037230581045151, -0.0045060040429234505, -0.0537380687892437, 0.026330361142754555, -0.02870052494108677, -0.007352893706411123, -0.017356060445308685, -0.011128994636237621, -0.03333311900496483, 0.014490317553281784, -0.004888462368398905, -0.02122373692691326, -0.015858547762036324, 0.005254760384559631, -0.06153806298971176, -0.036802176386117935, -0.04447288438677788, -0.012572639621794224, 0.027924835681915283, 0.050980061292648315, -0.025059092789888382, 0.022861303761601448, 0.0029573175124824047, 0.04281377047300339, 0.014167113229632378, -0.04193034768104553, -0.0026731672696769238, 0.002841502893716097, -0.011150541715323925, 0.005645298399031162, 0.025188373401761055, -0.001562153222039342, -0.018153296783566475, -0.03852593153715134, 0.002285322407260537, -0.05179884657263756, 0.0009271918097510934, 0.06494247913360596, -0.01061186846345663, -0.04546404629945755, -0.007611456792801619, 0.027235332876443863, -0.01203396636992693, -0.05054912343621254, -0.062356848269701004, 0.02783864736557007, 0.009367532096803188, -0.006609524134546518, -0.04912702366709709, -0.07157893478870392, -0.09532366693019867, 0.02579168789088726, -0.051324814558029175, 0.05511707440018654, -0.02945466712117195, 0.02796792984008789, 0.010331758297979832, 0.04787730053067207, -0.018368767574429512, -0.03225576877593994, -0.006469469051808119, -0.05270381644368172, -0.04774802178144455, -0.0027297281194478273, -0.004250133875757456, 0.04740326851606369, 0.06494247913360596, -0.01738838106393814, -0.022882850840687752, 0.008958140388131142, -0.03940935432910919, -0.016451088711619377, -0.02870052494108677, 0.02092207968235016, -0.0027822486590594053, 0.033936433494091034, 0.004427896346896887, -0.027062958106398582, 0.033311571925878525, 0.04298614710569382, -0.014576504938304424, 0.024843621999025345, 0.0021371871698647738, 0.053048569709062576, 0.03007952868938446, 0.018885893747210503, -0.017248326912522316, -0.024089479818940163, 0.01681738719344139, 0.02755853720009327, -0.05804745852947235, 0.06442534923553467, 0.02223644219338894, 0.022904397919774055, 0.04225355014204979, -0.052229784429073334, 0.0652010440826416, -0.001063206815160811, -0.02984251268208027, 0.0032616681419312954, 0.02076047658920288, 0.02658892422914505, 0.05300547555088997, -0.02024335041642189, 0.06593363732099533, -0.0061408779583871365, -0.045377857983112335, 0.07761207967996597, 0.00451947096735239, -0.03283753618597984, -0.02768781967461109, 0.0531778484582901, 0.03053201548755169, -0.05141099914908409, -0.007589909713715315, 0.016709651798009872, -0.017625397071242332, 0.030230358242988586, -0.040120404213666916, 0.025942517444491386, -0.048351336270570755, -0.03264361619949341, 0.02155771479010582, -0.018659651279449463, -0.00563452485948801, 0.0845932886004448, -0.035186152905225754, 0.014199433848261833, -0.013089766725897789, 0.014393356628715992, 0.01572926715016365, -0.022796662524342537, -0.01938147284090519, -0.03699609637260437, -0.024498872458934784, 0.0434386320412159, -0.02271047607064247, 0.005553723778575659, 0.005742259789258242, -0.03266516327857971, 0.01189391128718853, -0.03755631670355797, 0.014781201258301735, 0.032104942947626114, -0.027084505185484886, -0.03613422065973282, 0.0012786762090399861, -0.05494469776749611, 0.03557400032877922, -0.00208735978230834, -0.05684082955121994, -0.02361544780433178, 0.034798309206962585, 0.033311571925878525, 0.018261032178997993, 0.057099394500255585, 0.04395575821399689, 0.002889983355998993, 0.06606291979551315, -0.012938938103616238, -0.024563511833548546, -0.022688928991556168, -0.05873696133494377, 0.0434386320412159, -0.007870020344853401, -0.014220980927348137, 0.055332545191049576, -0.013736174441874027, 0.0002981221186928451, 0.02305522747337818, -0.02230108343064785, -0.052359066903591156, 0.010310211218893528, 0.02939002774655819, -0.0009231517324224114, -0.03126461058855057, 0.03686681389808655, 0.019812412559986115, -0.017129817977547646, -0.017172912135720253, -0.07675020396709442, -0.00042151202796958387, 0.028851354494690895, -0.000634624739177525, -0.03869830444455147, -0.038288913667201996, -0.04826514795422554, -0.04830824211239815, 0.08760985732078552, -0.0311568770557642, -0.028808260336518288, -0.000388854939956218, -0.06321872770786285, -0.04395575821399689, -0.016612691804766655, -0.016267940402030945, 0.01607401855289936, -0.012701921164989471, -0.013585345819592476, -0.021816277876496315, 0.014932029880583286, 0.014210207387804985, -0.033311571925878525, 0.0018840106204152107, 0.021859372034668922, 0.021967105567455292, -0.07338888198137283, 0.04878227412700653, -0.00723438523709774, -0.004417122807353735, 0.02967013791203499, -0.06395132094621658, 0.025576218962669373, -0.010940459556877613, -0.016483409330248833, -0.016849707812070847, 0.003926930017769337, 0.03111378289759159, -0.04611045494675636, 0.05847839638590813, -0.014845842495560646, -0.0011399678187444806, 0.016558824107050896, -0.0160201508551836, -0.03007952868938446, 0.007983141578733921, 0.035875655710697174, -0.010929686017334461, -0.03820272535085678, -0.019995560869574547, -0.011516840197145939, -0.007606070023030043, 0.01870274543762207, 0.05347950756549835, -0.04447288438677788, 0.014598052017390728, 0.006227065809071064, -0.00831711944192648, -0.020318765193223953, 0.08334356546401978, 0.020491139963269234, -0.018950534984469414, -0.013757721520960331, 0.033139195293188095, 0.015513797290623188, -0.04221045598387718, -0.006641844287514687, 0.02870052494108677, 0.004481763578951359, 0.022451912984251976, -0.01226020883768797, 0.03837510198354721, 0.10609713941812515, -0.020566554740071297, -0.02682594209909439, -0.008430240675807, 0.011796950362622738, -0.01212015375494957, -0.017248326912522316, -0.015018217265605927, -0.04055134207010269, -0.005683005787432194, -0.05154028162360191, 0.06123640388250351, 0.003113532904535532, -0.03283753618597984, -0.03757786378264427, -0.0200063344091177, 0.009820017963647842, -0.013014351949095726, -0.0365867055952549, -0.01813174970448017, 0.017582302913069725, -0.01915523037314415, 0.04598117247223854, 0.036909908056259155, -0.0013884309446439147, -0.0737767219543457, 0.025425389409065247, 0.027515443041920662, -0.037836428731679916, -0.03863366320729256, 0.02219334803521633, 0.05391044542193413, -0.008521814830601215, 0.03292372450232506, 0.00203753262758255, 0.03402261808514595, 0.001816676463931799, -0.05003199726343155, 0.016785066574811935, 0.00778921926394105, 0.009119742549955845, 0.04736017435789108, 0.030273452401161194, -0.038978416472673416, -0.008225544355809689, 0.006383281201124191, -0.07731042057275772, 0.0024496177211403847, -0.013272915035486221, -0.014662693254649639, 0.06826070696115494, 0.0016146738780662417, 0.04016349837183952, -0.043546367436647415, -0.057099394500255585, -0.012130927294492722, 0.015050537884235382, -0.01583700068295002, 0.07097562402486801, -0.03796571120619774, -0.02762317843735218, -0.03458283841609955, 0.00989004597067833, -0.04563641920685768, -0.040120404213666916, 0.012507999315857887, 0.08093030750751495, -0.025080639868974686, -0.014457996934652328, 0.04929940029978752, 0.013003578409552574, -0.04078835994005203, -0.0019028641982004046, 0.05192812532186508, -0.010757310315966606, -0.00007230008486658335, -0.031372345983982086, 0.03337620943784714, -0.09532366693019867, -0.029950248077511787, 0.003571405541151762, 0.030661296099424362, -0.008381759747862816, -0.014673466794192791, 0.054987791925668716, -0.0007204758585430682, 0.06554579734802246 ]
30,179
networkx.classes.multidigraph
__init__
Initialize a graph with edges, name, or graph attributes. Parameters ---------- incoming_graph_data : input graph Data to initialize graph. If incoming_graph_data=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. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. 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, multigraph_input=None, **attr): """Initialize a graph with edges, name, or graph attributes. Parameters ---------- incoming_graph_data : input graph Data to initialize graph. If incoming_graph_data=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. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. 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'} """ # multigraph_input can be None/True/False. So check "is not False" if isinstance(incoming_graph_data, dict) and multigraph_input is not False: DiGraph.__init__(self) try: convert.from_dict_of_dicts( incoming_graph_data, create_using=self, multigraph_input=True ) self.graph.update(attr) except Exception as err: if multigraph_input is True: raise nx.NetworkXError( f"converting multigraph_input raised:\n{type(err)}: {err}" ) DiGraph.__init__(self, incoming_graph_data, **attr) else: DiGraph.__init__(self, incoming_graph_data, **attr)
(self, incoming_graph_data=None, multigraph_input=None, **attr)
[ 0.03360837325453758, 0.01024236436933279, 0.029799556359648705, 0.010400243103504181, -0.05131049454212189, -0.018313899636268616, -0.04913966730237007, 0.033450495451688766, 0.08407027274370193, -0.04499535635113716, 0.006246066186577082, 0.041798319667577744, -0.0015208134427666664, 0.05075792223215103, -0.01033117063343525, 0.04045635089278221, -0.013261789456009865, 0.029424594715237617, 0.0084415627643466, 0.039805103093385696, -0.022773966193199158, -0.03650939092040062, -0.020178839564323425, 0.0383249931037426, 0.04906072840094566, 0.021017568185925484, -0.03177303820848465, 0.011663270182907581, 0.017425833269953728, 0.0025359224528074265, -0.03275977820158005, -0.03390439599752426, -0.04025900363922119, 0.021530672907829285, 0.06508538872003555, 0.01744556799530983, -0.05403389781713486, 0.04152202978730202, -0.1532999724149704, 0.02301078289747238, 0.05687570944428444, -0.06102002039551735, -0.01322232000529766, 0.019044088199734688, 0.044640131294727325, 0.03593708202242851, -0.0079481927677989, 0.04096945747733116, -0.06019115820527077, -0.0736502930521965, 0.01231451891362667, -0.028714142739772797, 0.015610231086611748, 0.06867712736129761, -0.06607212871313095, 0.06003328040242195, -0.0009762561530806124, 0.06232251599431038, -0.007484425324946642, 0.03769347816705704, -0.030036374926567078, 0.02713535726070404, 0.039588019251823425, -0.04728459566831589, -0.047166187316179276, 0.005560281686484814, -0.06934810429811478, -0.050797391682863235, -0.033134739845991135, 0.018925677984952927, -0.0015652168076485395, 0.014978718012571335, 0.004630278795957565, 0.005698425229638815, 0.05517851561307907, 0.03775268420577049, -0.008111005648970604, 0.03562132269144058, -0.0028368784114718437, 0.01572863943874836, 0.021609611809253693, 0.01754424162209034, -0.05375761166214943, -0.037081699818372726, 0.042706120759248734, 0.006941718049347401, -0.02683933638036251, 0.051389433443546295, 0.01245266292244196, -0.053520794957876205, -0.052810341119766235, -0.00293801911175251, 0.021708287298679352, 0.0655195564031601, 0.02350415289402008, -0.003120566252619028, -0.002000615932047367, -0.0665852352976799, 0.06832189857959747, 0.008969468995928764, -0.058257147669792175, -0.03682514652609825, -0.069663867354393, -0.02865493856370449, -0.05517851561307907, -0.10672582685947418, -0.019083557650446892, -0.03759480640292168, -0.008841193281114101, -0.06030956655740738, -0.08785935491323471, -0.02895095944404602, 0.022616088390350342, 0.041798319667577744, 0.021451734006404877, 0.018067214637994766, 0.0020955896470695734, -0.03571999818086624, 0.03416094928979874, -0.007000922225415707, -0.04787663742899895, 0.07104530185461044, 0.011061358265578747, 0.06591425091028214, 0.030806031078100204, -0.0038655551616102457, 0.031516484916210175, -0.04688989743590355, 0.04700830578804016, -0.018047479912638664, 0.03864074870944023, -0.029128573834896088, -0.022320065647363663, 0.043929677456617355, 0.013607149012386799, -0.022359535098075867, -0.05821767821907997, 0.008954668417572975, -0.024076463654637337, 0.037279047071933746, 0.026306496933102608, -0.040811579674482346, 0.016152938827872276, 0.03218746930360794, -0.05636260658502579, 0.0027036683168262243, -0.016281215474009514, -0.05265246331691742, -0.06279615312814713, -0.04811345785856247, 0.00034720925032161176, -0.010538386180996895, -0.02681960165500641, 0.01906382292509079, -0.0026148618198931217, 0.001455441932193935, -0.09425343573093414, -0.004289853386580944, 0.012531601823866367, 0.031733568757772446, -0.06465122103691101, -0.021846430376172066, 0.027391910552978516, 0.011870485730469227, -0.006734502501785755, -0.01960652880370617, 0.0444033145904541, -0.09804251790046692, -0.012363855727016926, 0.040811579674482346, -0.01698180101811886, -0.05924388766288757, -0.03236507996916771, 0.0015812512720003724, -0.013024971820414066, 0.025280285626649857, 0.06184888258576393, 0.011446187272667885, 0.014159723185002804, 0.03396360203623772, 0.0282405074685812, -0.015383280813694, -0.03017451800405979, 0.0043145217932760715, 0.008959601633250713, 0.003231574548408389, -0.0011359847849234939, 0.021767491474747658, 0.07408446073532104, 0.012166507542133331, 0.08557011932134628, 0.006946651730686426, 0.0015676836483180523, 0.05387602001428604, 0.05004746839404106, -0.03802897036075592, 0.017820529639720917, 0.02441195398569107, -0.028122099116444588, 0.09433237463235855, 0.045942626893520355, -0.02553683891892433, 0.03597655147314072, 0.006897314451634884, -0.009645386599004269, -0.0008467464940622449, -0.0287338774651289, 0.005175452679395676, -0.023859379813075066, -0.03962748870253563, -0.025852596387267113, -0.03761453926563263, 0.07187416404485703, 0.034733258187770844, -0.03895650804042816, -0.027569523081183434, 0.027766872197389603, 0.028279976919293404, -0.028793081641197205, -0.01884673908352852, 0.04696883633732796, 0.0019044087966904044, -0.00587603822350502, -0.034338563680648804, 0.015817446634173393, -0.04700830578804016, 0.00950724259018898, 0.00446499977260828, 0.012225712649524212, 0.01997162401676178, 0.04389020800590515, -0.03682514652609825, 0.029227247461676598, 0.014406408183276653, 0.00672956882044673, -0.013192717917263508, 0.02157014235854149, -0.013666353188455105, -0.007538695819675922, 0.005634286906570196, 0.003029292682185769, -0.02490532584488392, -0.04246930032968521, -0.03672647476196289, 0.03562132269144058, -0.020721545442938805, 0.01933024264872074, 0.020326850935816765, -0.026148617267608643, -0.006709834095090628, -0.049771178513765335, 0.009048408828675747, -0.032818980515003204, 0.012936165556311607, -0.007109463680535555, -0.011268573813140392, -0.05403389781713486, -0.04416649416089058, 0.04164044186472893, -0.011347513645887375, 0.009635519236326218, 0.015669435262680054, -0.009684856049716473, 0.09314828366041183, 0.034634582698345184, -0.03800923749804497, 0.004921367391943932, 0.0032759776804596186, -0.05727040767669678, -0.01663644053041935, 0.06780879199504852, 0.008629043586552143, 0.056125786155462265, 0.010528518818318844, 0.004452665336430073, -0.05292874947190285, -0.01544248592108488, -0.028714142739772797, -0.019685469567775726, -0.006551955360919237, -0.029207512736320496, -0.008851060643792152, -0.0348319336771965, 0.00948257464915514, -0.009117480367422104, -0.0023792774882167578, -0.010666662827134132, -0.002676533069461584, -0.014268264174461365, -0.02249767817556858, 0.04783716797828674, -0.006843043956905603, -0.006547021679580212, 0.03248349204659462, -0.011604066006839275, -0.0016182541148737073, -0.017820529639720917, 0.034338563680648804, 0.019744673743844032, -0.00212519196793437, 0.05908600986003876, -0.022221392020583153, 0.05659942328929901, 0.009803264401853085, -0.03641071543097496, -0.01554115954786539, 0.02691827528178692, 0.02563551254570484, -0.0029577540699392557, 0.02713535726070404, 0.0031082318164408207, 0.055494274944067, -0.0014332402497529984, 0.03692382201552391, -0.04610050469636917, 0.010607457719743252, 0.01754424162209034, -0.04495588690042496, 0.05802033096551895, 0.050994738936424255, -0.02733270637691021, 0.03964722529053688, -0.04890285059809685, -0.017731722444295883, -0.04278505966067314, 0.05206041783094406, 0.06907182186841965, 0.03508848324418068, 0.03621336817741394, 0.041008926928043365, -0.014317601919174194, 0.030766561627388, -0.014011711813509464, 0.024786915630102158, -0.05237617343664169, 0.02058340236544609, -0.010410110466182232, -0.016330551356077194, 0.0211754459887743, -0.05873078107833862, 0.0056540220975875854, 0.032641369849443436, -0.03007584437727928, -0.04669255018234253, -0.01577797718346119, -0.05004746839404106, 0.007972861640155315, -0.02522108145058155, -0.02320813201367855, 0.043021876364946365, -0.05940176546573639, 0.07637369632720947, -0.017238352447748184, 0.03386492654681206, 0.005550414323806763, -0.03370704874396324, -0.03956828638911247, -0.05063951015472412, 0.021017568185925484, 0.013903170824050903, 0.031240196898579597, 0.04396914690732956, 0.025240816175937653, 0.0012081401655450463, 0.011051490902900696, -0.027312971651554108, -0.003917358815670013, 0.05399442836642265, 0.01896514929831028, -0.0302731916308403, 0.017129812389612198, -0.04720565676689148, -0.038068439811468124, -0.012393457815051079, -0.0033697180915623903, 0.03098364546895027, -0.019616397097706795, 0.018175756558775902, -0.013281524181365967, -0.0031748369801789522, -0.01937957853078842, -0.007158800959587097, -0.0035547318402677774, 0.05466541275382042, 0.04546899348497391, -0.05166572332382202, 0.08185997605323792, 0.010577855631709099, 0.06086214259266853, -0.004842428024858236, -0.06165153160691261, -0.026049943640828133, 0.04290346801280975, 0.021155711263418198, -0.013686087913811207, -0.05194200947880745, 0.09764781594276428, 0.0006592658464796841, -0.030786296352744102, -0.03688435256481171, -0.02782607637345791, -0.059164948761463165, 0.025596043094992638, 0.03260190039873123, 0.029779821634292603, 0.013932772912085056, 0.04831080511212349, 0.05359973385930061, 0.03035213053226471, 0.012107303366065025, 0.09464813023805618, -0.004356458317488432, -0.06334872543811798, 0.01115016546100378, -0.008219546638429165, 0.023879114538431168, 0.05596790835261345, -0.023938318714499474, 0.04815292730927467, 0.019734805449843407, 0.03447670489549637, 0.04325869306921959, 0.04649520292878151, -0.006833176594227552, 0.04495588690042496, 0.0013777361018583179, -0.023523889482021332, 0.0018982415786013007, -0.031319137662649155, 0.049376484006643295, -0.01346900500357151, 0.015580628998577595, 0.029306186363101006, -0.021254386752843857, 0.030194252729415894, -0.012679613195359707, 0.015501690097153187, -0.01937957853078842, 0.0010336104314774275, 0.013932772912085056, -0.004610544070601463, -0.0514683723449707, 0.023267336189746857, -0.048666030168533325, -0.09717418253421783, -0.028398385271430016, -0.027668198570609093, 0.0413641519844532, 0.025181611999869347, -0.015462220646440983, 0.022162187844514847, -0.0052001215517520905, 0.043416574597358704, -0.01668577827513218, -0.058651842176914215, -0.004674681928008795, 0.0388183631002903, -0.005214922595769167, 0.013044706545770168, 0.05383655056357384, -0.00008202278695534915, -0.006379276048392057, -0.050086937844753265, 0.017258087173104286, -0.05012640729546547, 0.016202274709939957, 0.08296512067317963, -0.013153248466551304, -0.0474030040204525, -0.0011427686549723148, 0.04057475924491882, 0.019448651000857353, -0.011416585184633732, -0.026898540556430817, -0.00363120436668396, -0.04096945747733116, -0.018077082931995392, -0.04290346801280975, -0.06184888258576393, -0.0817020982503891, 0.00968978926539421, -0.00162072095554322, 0.03256243094801903, 0.012837490998208523, 0.02178722620010376, -0.0022201656829565763, 0.05494169890880585, -0.04408755525946617, -0.024648772552609444, 0.033845193684101105, -0.05150784179568291, -0.002070921240374446, 0.0009374032961204648, -0.004726485814899206, 0.06520380079746246, 0.03723957762122154, -0.03005610965192318, -0.015106993727385998, 0.024490894749760628, -0.06070426106452942, -0.025497369468212128, -0.004805425181984901, -0.044324375689029694, -0.018905943259596825, 0.04065370187163353, 0.03169409930706024, -0.038699954748153687, 0.026760397478938103, 0.02691827528178692, 0.005723093636333942, -0.0008936166996136308, -0.012669744901359081, 0.040298473089933395, 0.038068439811468124, 0.007538695819675922, -0.03199012205004692, -0.021708287298679352, 0.027174826711416245, -0.00193031074013561, -0.0504421629011631, 0.06437493860721588, 0.044442784041166306, -0.012985502369701862, -0.00471168477088213, -0.0494554229080677, 0.04495588690042496, 0.020741280168294907, -0.044127024710178375, 0.016458828002214432, -0.01001047994941473, 0.005550414323806763, 0.012018497101962566, -0.03599628433585167, 0.08659632503986359, -0.001724328612908721, -0.01911315880715847, 0.06907182186841965, 0.059875402599573135, -0.06445387750864029, -0.027589257806539536, 0.02693801000714302, 0.033450495451688766, -0.04681095853447914, 0.027668198570609093, 0.039588019251823425, -0.03054947964847088, 0.0098279332742095, 0.02833918109536171, 0.027372175827622414, -0.0464162640273571, -0.0725846141576767, -0.0017662651371210814, -0.059164948761463165, 0.031240196898579597, 0.06642735749483109, -0.019715070724487305, 0.0027949418872594833, 0.004003698937594891, 0.017110075801610947, 0.029128573834896088, -0.045429524034261703, 0.012334253638982773, -0.037081699818372726, -0.030292926356196404, 0.010193027555942535, -0.02603020891547203, -0.005880972370505333, -0.010035148821771145, -0.0383249931037426, 0.04183778911828995, 0.008150475099682808, -0.02401725947856903, 0.01123897172510624, 0.02439221926033497, -0.017652783542871475, 0.0009793397039175034, -0.017504772171378136, 0.03755533695220947, 0.0020191173534840345, -0.042114075273275375, -0.01952758990228176, 0.0277471374720335, -0.003394386498257518, 0.029128573834896088, 0.014662960544228554, 0.0009491207893006504, -0.019537458196282387, 0.03035213053226471, 0.011347513645887375, -0.02620782144367695, -0.010942949913442135, -0.06030956655740738, 0.03297686204314232, 0.03850260749459267, -0.05162625387310982, 0.00802219845354557, 0.03431882709264755, -0.03422015160322189, 0.025181611999869347, -0.040811579674482346, -0.08312299847602844, 0.041324682533741, 0.007109463680535555, 0.011386983096599579, 0.00042645682697184384, 0.012067833915352821, -0.006591425277292728, -0.018126418814063072, -0.01695219799876213, -0.04910019785165787, 0.01680418662726879, 0.05336291342973709, -0.028516793623566628, 0.0027678064070641994, 0.006265800911933184, -0.04653467237949371, -0.08039960265159607, 0.048863377422094345, 0.005693491548299789, -0.001533147762529552, 0.01241319254040718, -0.07017696648836136, -0.047955576330423355, -0.0070601268671453, -0.04673201963305473, 0.01240332517772913, 0.00034720925032161176, -0.04223248362541199, -0.02632623165845871, 0.0054320055060088634, 0.06165153160691261, -0.05869131162762642, 0.00486956350505352, 0.004921367391943932, -0.012926298193633556, -0.069663867354393, 0.042508773505687714, 0.01921183429658413, -0.005856303498148918, 0.0514289028942585, -0.053481325507164, -0.007143999915570021, -0.00739068491384387, -0.03167436271905899, 0.0018908410565927625, -0.05415230616927147, 0.02139252983033657, -0.06544061750173569, 0.05186307057738304, -0.0029700882732868195, 0.01204809918999672, 0.03329261764883995, 0.009245756082236767, -0.008115938864648342, 0.023938318714499474, 0.023839645087718964, -0.037298783659935, -0.007370950188487768, 0.004568607546389103, -0.018491512164473534, -0.02531975507736206, 0.046850427985191345, 0.03520689532160759, 0.015235270373523235, 0.014139988459646702, 0.005925375502556562, -0.0191624965518713, -0.03619363531470299, 0.030115313827991486, 0.0010477948235347867, -0.03921305760741234, 0.019192099571228027, 0.023977788165211678, 0.013044706545770168, -0.04929754510521889, -0.014732033014297485, 0.04096945747733116, 0.0008899163804017007, 0.03396360203623772, 0.0029528203886002302, 0.008712916634976864, 0.056244198232889175, -0.000586802139878273, -0.011100828647613525, -0.027569523081183434, -0.01680418662726879, -0.0023311739787459373, -0.029779821634292603, 0.004790624137967825, -0.014505082741379738, -0.0011181001318618655, 0.002370643662288785, 0.022616088390350342, -0.013853834010660648, -0.009571380913257599, -0.07791301608085632, -0.05213935673236847, -0.019794009625911713, -0.03056921437382698, -0.027510318905115128, 0.040298473089933395, 0.017820529639720917, -0.02208324708044529, 0.04187725856900215, 0.024431688711047173, -0.02348441816866398, -0.06666417419910431, 0.030825765803456306, 0.03358864039182663, -0.01992228627204895, -0.009768729098141193, 0.002508787205442786, 0.03573973476886749, -0.013597281649708748, 0.04767929017543793, 0.046139977872371674, 0.03187170997262001, 0.014189325273036957, -0.06469069421291351, -0.02318839728832245, 0.011939557269215584, -0.00827875081449747, 0.020247910171747208, 0.031733568757772446, -0.03045080602169037, -0.03199012205004692, 0.00628060195595026, -0.078623466193676, 0.05513904616236687, -0.05466541275382042, -0.02530002035200596, 0.0756237730383873, -0.01810668408870697, 0.03589761257171631, -0.02652357891201973, -0.046850427985191345, -0.005195187404751778, 0.02620782144367695, 0.013390066102147102, 0.07503173500299454, -0.05060004070401192, -0.0136268837377429, -0.03199012205004692, 0.03875915706157684, -0.021964838728308678, -0.05111314728856087, 0.033430762588977814, 0.025655247271060944, -0.010923215188086033, 0.002530988771468401, 0.023326540365815163, -0.01528460718691349, -0.033036064356565475, 0.007045325823128223, 0.05182360112667084, -0.027983954176306725, 0.0015960524324327707, -0.001570150488987565, 0.013340728357434273, -0.08746466040611267, -0.024668507277965546, 0.000443724769866094, 0.07112424075603485, -0.03329261764883995, -0.0098279332742095, 0.05809926986694336, 0.036154165863990784, 0.05091580003499985 ]
30,183
networkx.classes.multidigraph
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_for_edge, v_for_edge : nodes Nodes can be, for example, strings or numbers. Nodes must be hashable (and not None) Python objects. key : hashable identifier, optional (default=lowest unused integer) Used to distinguish multiedges between a pair of nodes. attr : keyword arguments, optional Edge data (or labels or objects) can be assigned using keyword arguments. Returns ------- The edge key assigned to the edge. See Also -------- add_edges_from : add a collection of edges Notes ----- To replace/update edge data, use the optional key argument to identify a unique edge. Otherwise a new edge will be created. NetworkX algorithms designed for weighted graphs cannot use multigraphs directly because it is not clear how to handle multiedge weights. Convert to Graph using edge attribute 'weight' to enable weighted graph algorithms. Default keys are generated using the method `new_edge_key()`. This method can be overridden by subclassing the base class and providing a custom `new_edge_key()` method. Examples -------- The following all add the edge e=(1, 2) to graph G: >>> G = nx.MultiDiGraph() >>> e = (1, 2) >>> key = G.add_edge(1, 2) # explicit two-node form >>> G.add_edge(*e) # single edge as tuple of two nodes 1 >>> G.add_edges_from([(1, 2)]) # add edges from iterable container [2] Associate data to edges using keywords: >>> key = G.add_edge(1, 2, weight=3) >>> key = G.add_edge(1, 2, key=0, weight=4) # update data for key=0 >>> key = G.add_edge(1, 3, weight=7, capacity=15, length=342.7) For non-string attribute keys, use subscript notation. >>> ekey = G.add_edge(1, 2) >>> G[1][2][0].update({0: 5}) >>> G.edges[1, 2, 0].update({0: 5})
def add_edge(self, u_for_edge, v_for_edge, key=None, **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_for_edge, v_for_edge : nodes Nodes can be, for example, strings or numbers. Nodes must be hashable (and not None) Python objects. key : hashable identifier, optional (default=lowest unused integer) Used to distinguish multiedges between a pair of nodes. attr : keyword arguments, optional Edge data (or labels or objects) can be assigned using keyword arguments. Returns ------- The edge key assigned to the edge. See Also -------- add_edges_from : add a collection of edges Notes ----- To replace/update edge data, use the optional key argument to identify a unique edge. Otherwise a new edge will be created. NetworkX algorithms designed for weighted graphs cannot use multigraphs directly because it is not clear how to handle multiedge weights. Convert to Graph using edge attribute 'weight' to enable weighted graph algorithms. Default keys are generated using the method `new_edge_key()`. This method can be overridden by subclassing the base class and providing a custom `new_edge_key()` method. Examples -------- The following all add the edge e=(1, 2) to graph G: >>> G = nx.MultiDiGraph() >>> e = (1, 2) >>> key = G.add_edge(1, 2) # explicit two-node form >>> G.add_edge(*e) # single edge as tuple of two nodes 1 >>> G.add_edges_from([(1, 2)]) # add edges from iterable container [2] Associate data to edges using keywords: >>> key = G.add_edge(1, 2, weight=3) >>> key = G.add_edge(1, 2, key=0, weight=4) # update data for key=0 >>> key = G.add_edge(1, 3, weight=7, capacity=15, length=342.7) For non-string attribute keys, use subscript notation. >>> ekey = G.add_edge(1, 2) >>> G[1][2][0].update({0: 5}) >>> G.edges[1, 2, 0].update({0: 5}) """ u, v = u_for_edge, v_for_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() if key is None: key = self.new_edge_key(u, v) if v in self._succ[u]: keydict = self._adj[u][v] datadict = keydict.get(key, self.edge_attr_dict_factory()) datadict.update(attr) keydict[key] = datadict else: # selfloops work this way without special treatment datadict = self.edge_attr_dict_factory() datadict.update(attr) keydict = self.edge_key_dict_factory() keydict[key] = datadict self._succ[u][v] = keydict self._pred[v][u] = keydict nx._clear_cache(self) return key
(self, u_for_edge, v_for_edge, key=None, **attr)
[ -0.008568457327783108, -0.014773556031286716, -0.015305567532777786, 0.08156148344278336, -0.03009958565235138, -0.0017789141274988651, -0.02273326925933361, 0.033721357583999634, 0.04743088781833649, -0.031716082245111465, -0.022180795669555664, 0.009755252860486507, 0.0618770532310009, 0.04792197793722153, 0.0020743340719491243, 0.06294107437133789, 0.029219720512628555, 0.011080167256295681, -0.010916470550000668, 0.004470944404602051, -0.035276468843221664, -0.03507184982299805, 0.03140915185213089, 0.004995282739400864, 0.010670927353203297, 0.009054429829120636, -0.009888255968689919, 0.023490363731980324, 0.07656875997781754, -0.01717783883213997, -0.045998550951480865, -0.08074300736188889, -0.01569434441626072, 0.001643353491090238, 0.03044743835926056, -0.005468466319143772, -0.012758050113916397, 0.015438570640981197, -0.0844670906662941, 0.018108859658241272, 0.07648691534996033, -0.03918470814824104, 0.017484769225120544, -0.018732950091362, 0.07439979165792465, 0.07055293768644333, -0.007601628545671701, 0.03138868883252144, -0.03550155088305473, -0.07439979165792465, -0.00770905427634716, -0.03803883492946625, 0.07210804522037506, 0.01976628042757511, -0.036463264375925064, 0.014487087726593018, -0.05041833966970444, -0.011008549481630325, -0.06470080465078354, 0.06449618935585022, -0.01236927229911089, -0.02152601256966591, 0.0023428977001458406, 0.02310158498585224, -0.05864406004548073, 0.005138516891747713, -0.09019644558429718, -0.02369498275220394, -0.014661015011370182, 0.03963487222790718, 0.024554386734962463, 0.012000956572592258, 0.017361996695399284, 0.004680680111050606, 0.03550155088305473, 0.042315393686294556, -0.004959474317729473, 0.03220716863870621, 0.014129003509879112, 0.01583757996559143, -0.0028544473461806774, -0.02080984227359295, -0.03214578330516815, -0.04472990706562996, 0.06404602527618408, 0.058480363339185715, -0.07169880717992783, 0.017208531498908997, -0.001488609705120325, -0.05565660819411278, -0.04747181385755539, -0.02948572486639023, -0.04143552854657173, 0.036586035043001175, 0.03846853971481323, -0.007391893304884434, 0.0175461545586586, -0.0570889487862587, 0.04608039930462837, 0.001695787301287055, 0.0025897205341607332, -0.030140509828925133, 0.013228675350546837, 0.007683476898819208, -0.03762959688901901, -0.13406695425510406, -0.05676155537366867, 0.004120532888919115, -0.04055565968155861, -0.017239226028323174, -0.051441438496112823, 0.006440410856157541, 0.04964078590273857, 0.04653056338429451, -0.03863223269581795, 0.024963626638054848, 0.012236269190907478, -0.004486291203647852, 0.023838216438889503, 0.014865634962916374, 0.016523055732250214, 0.006077210418879986, -0.029076484963297844, 0.005678202025592327, -0.005376387387514114, -0.0784921869635582, 0.0125022754073143, 0.026375502347946167, 0.013382140547037125, -0.039327941834926605, 0.017709851264953613, 0.0021510664373636246, -0.02809431031346321, 0.04808567464351654, 0.02392006479203701, -0.04164014756679535, -0.045261919498443604, 0.045139145106077194, 0.026129959151148796, 0.035972174257040024, 0.026805205270648003, -0.04121044650673866, 0.03460122272372246, 0.035276468843221664, -0.0618770532310009, -0.035972174257040024, -0.03320980817079544, -0.02641642652451992, -0.019837897270917892, -0.0017853084718808532, -0.0011490685865283012, 0.02831939235329628, 0.007161695975810289, 0.0018019338604062796, 0.01688113994896412, -0.025188708677887917, -0.059789929538965225, -0.006501796655356884, -0.010742544196546078, 0.0034120366908609867, -0.025311479344964027, -0.022999275475740433, 0.04370680823922157, -0.02236495353281498, 0.03251409903168678, 0.033373504877090454, 0.03116360865533352, -0.005662855226546526, 0.017853084951639175, 0.057866502553224564, -0.021096309646964073, -0.044811755418777466, -0.02486131526529789, 0.027644146233797073, -0.031838852912187576, -0.023060660809278488, 0.010711850598454475, -0.03259594738483429, 0.017218763008713722, 0.008056907914578915, 0.039327941834926605, 0.007049154955893755, 0.041947077959775925, -0.04057612270116806, 0.004511868581175804, 0.008461032062768936, 0.02842170186340809, 0.005744703114032745, 0.039287019520998, -0.009248819202184677, -0.01774054393172264, -0.05463350936770439, -0.027521373704075813, 0.06605129688978195, 0.021955713629722595, -0.012645509093999863, 0.006598991341888905, 0.021239543333649635, 0.013249137438833714, 0.07063478231430054, 0.007038923911750317, -0.04256093502044678, 0.019305886700749397, 0.03879592940211296, 0.0031230109743773937, -0.029117409139871597, 0.0018914550310000777, -0.01660490408539772, 0.025843491777777672, -0.01045096106827259, 0.015029330737888813, -0.01208280399441719, 0.035972174257040024, 0.07509549707174301, -0.011162014678120613, -0.030406514182686806, -0.05013187229633331, 0.055615685880184174, -0.04583485424518585, 0.014701939187943935, 0.009141393005847931, -0.003703619819134474, 0.027071211487054825, -0.02416560798883438, 0.030733907595276833, -0.07902420312166214, 0.010926702059805393, -0.002772599458694458, 0.02166924625635147, 0.024840854108333588, 0.05176883190870285, -0.012809204868972301, 0.02187386527657509, 0.022078486159443855, 0.0011509868782013655, 0.02488177828490734, -0.01161217875778675, 0.02651873789727688, 0.046939801424741745, 0.00859915092587471, 0.00359875219874084, -0.013371909968554974, -0.014108541421592236, 0.0015269758878275752, 0.02762368507683277, 0.006552951876074076, 0.056106772273778915, 0.0511549711227417, -0.04116952046751976, 0.009862678125500679, -0.015090717002749443, 0.0007551752496510744, -0.010410036891698837, 0.027173520997166634, 0.008716806769371033, -0.034928616136312485, -0.03226855769753456, -0.014282467775046825, 0.002869793912395835, -0.013781148940324783, 0.016696982085704803, 0.034805841743946075, -0.01732107251882553, 0.058112047612667084, -0.012645509093999863, -0.02508639730513096, 0.043502189218997955, 0.008051792159676552, -0.07554566115140915, 0.002683078171685338, -0.02283557876944542, -0.019316116347908974, 0.02903556264936924, -0.004642313811928034, -0.005545198917388916, -0.025311479344964027, -0.032555025070905685, 0.003869873471558094, -0.03296426311135292, -0.027153057977557182, -0.04059658572077751, -0.01512140966951847, -0.053242094814777374, 0.03996226191520691, -0.0583166666328907, 0.006998000200837851, -0.014650783501565456, -0.025659333914518356, 0.019663970917463303, -0.05381502956151962, 0.041578762233257294, -0.033741820603609085, -0.019183114171028137, 0.055615685880184174, 0.011704257689416409, 0.03605402261018753, 0.022426338866353035, 0.021157696843147278, 0.039573486894369125, 0.009064661338925362, 0.041947077959775925, 0.021505549550056458, 0.016962988302111626, -0.05041833966970444, -0.02807384915649891, -0.029322030022740364, 0.07755094021558762, 0.010558386333286762, -0.013146827928721905, -0.012532968074083328, -0.0606902576982975, 0.029424339532852173, -0.013955076225101948, 0.0535285621881485, -0.006460872944444418, -0.026355041190981865, 0.018651101738214493, -0.03425337001681328, 0.04084213078022003, 0.057539112865924835, -0.045507460832595825, 0.0398804172873497, -0.05127774178981781, 0.004736950155347586, 0.028135234490036964, 0.021321391686797142, 0.08188887685537338, -0.03486722707748413, 0.04346126317977905, 0.026825666427612305, -0.009279511868953705, -0.009878025390207767, -0.016942527145147324, 0.06339123845100403, -0.13865043222904205, 0.03435567766427994, 0.03419198468327522, 0.04415697231888771, 0.0012993363197892904, 0.005184556357562542, 0.01796562597155571, 0.03482630476355553, -0.044688984751701355, -0.019264962524175644, 0.008660536259412766, -0.05659785866737366, 0.02735767886042595, -0.03034512884914875, -0.003435056423768401, 0.0452209934592247, -0.00254879635758698, 0.02831939235329628, 0.006542720831930637, -0.017331304028630257, 0.06024009361863136, -0.010834623128175735, -0.028933251276612282, -0.07677338272333145, 0.0368725024163723, 0.012471581809222698, 0.003442729590460658, -0.016338897868990898, 0.02224218100309372, 0.017167609184980392, -0.04198800027370453, 0.006210213527083397, 0.006082326173782349, 0.018057703971862793, 0.041701532900333405, -0.0404738150537014, 0.023367591202259064, -0.03674973174929619, 0.019234269857406616, 0.06842488795518875, -0.02570025809109211, 0.024452077224850655, -0.013822073116898537, 0.04440251365303993, 0.0015129082603380084, -0.01279897429049015, 0.01208280399441719, 0.012870591133832932, 0.015366953797638416, 0.06867043673992157, 0.04853583499789238, -0.04155829921364784, 0.12678247690200806, 0.0019451677799224854, 0.063063845038414, 0.024595310911536217, -0.029833579435944557, 0.020922383293509483, 0.06367770582437515, 0.020451758056879044, -0.051114048808813095, -0.06232721731066704, 0.07218989729881287, -0.012594354338943958, -0.04747181385755539, -0.08618589490652084, 0.022815117612481117, 0.00532523263245821, -0.0049313390627503395, 0.03353719785809517, 0.04276555776596069, -0.002605066867545247, -0.009509708732366562, 0.0439932756125927, 0.01009287592023611, 0.008619613014161587, -0.01350491214543581, 0.009202779270708561, -0.053242094814777374, 0.011407558806240559, 0.009397168643772602, -0.04972263053059578, 0.03370089456439018, -0.014599628746509552, 0.04057612270116806, 0.02522963099181652, 0.017413152381777763, 0.025250094011425972, 0.0015359279932454228, 0.011039243079721928, -0.010159377008676529, -0.010169608518481255, -0.003378785913810134, 0.006235790904611349, -0.04018734395503998, 0.05213714763522148, 0.0073663159273564816, -0.016154740005731583, 0.07354038953781128, -0.018466943874955177, -0.024677157402038574, 0.008998159319162369, 0.005274077411741018, -0.03787514194846153, 0.035522013902664185, -0.011295017786324024, -0.06441433727741241, -0.03519462049007416, -0.024943163618445396, -0.029199257493019104, -0.044566210359334946, -0.052669160068035126, -0.03071344457566738, 0.011755412444472313, 0.03486722707748413, -0.025557024404406548, 0.03852992504835129, 0.012594354338943958, 0.0072640059515833855, 0.015438570640981197, -0.031531922519207, 0.012625047005712986, -0.001896570553071797, -0.02048245072364807, 0.016400283202528954, 0.0021497877314686775, 0.02058476023375988, 0.0015742942923679948, -0.02545471303164959, 0.03797744959592819, -0.052178069949150085, 0.052546385675668716, 0.08512187004089355, -0.03881639242172241, -0.027807842940092087, -0.028933251276612282, 0.0009815359953790903, -0.027562297880649567, -0.026457350701093674, -0.034785378724336624, 0.009985450655221939, -0.003437614068388939, 0.007627206388860941, -0.048740457743406296, -0.05332394316792488, -0.0964168906211853, 0.017945164814591408, -0.04143552854657173, 0.027071211487054825, -0.025782106444239616, 0.04090351611375809, 0.0037189663853496313, 0.014855403453111649, 0.009407399222254753, -0.04608039930462837, 0.0410672128200531, -0.022896965965628624, -0.058480363339185715, -0.011162014678120613, 0.05938069149851799, 0.04485267773270607, 0.02522963099181652, 0.010113338008522987, -0.038263916969299316, -0.0004038045590277761, -0.039205171167850494, -0.004550234880298376, -0.04374773055315018, 0.004793220665305853, 0.004547677002847195, 0.022303568199276924, 0.031081760302186012, -0.04378865659236908, 0.03783421590924263, 0.012635277584195137, -0.008471263572573662, 0.04554838687181473, 0.004726719576865435, 0.05639323964715004, 0.050500188022851944, 0.04131275415420532, -0.01586827263236046, -0.008128524757921696, 0.016983451321721077, -0.003611540887504816, -0.014528011903166771, 0.06089487671852112, 0.0452209934592247, 0.014620090834796429, 0.010456075891852379, -0.060403790324926376, 0.09076938033103943, -0.04164014756679535, -0.03296426311135292, 0.03071344457566738, 0.03781375661492348, -0.05103220045566559, 0.031695619225502014, 0.006107903551310301, 0.06077210605144501, -0.03689296543598175, 0.010138914920389652, 0.05921699479222298, 0.0643324926495552, -0.03785467892885208, -0.041947077959775925, 0.05410149693489075, 0.05770280584692955, -0.05176883190870285, -0.041947077959775925, -0.0011401164811104536, 0.02285604178905487, 0.013545836322009563, -0.04673518240451813, 0.0005233793053776026, -0.07910604774951935, -0.0629820004105568, 0.06576482951641083, 0.0038826623931527138, 0.06367770582437515, 0.049436163157224655, -0.031081760302186012, 0.008046677336096764, -0.032309480011463165, 0.007468625903129578, 0.033619046211242676, -0.04317479580640793, -0.013044517487287521, -0.02285604178905487, -0.018814798444509506, 0.007836941629648209, 0.008010868914425373, -0.0037419861182570457, -0.04131275415420532, 0.0075555890798568726, 0.011090397834777832, -0.07051201164722443, 0.0009386937017552555, -0.010215647518634796, -0.06044471263885498, -0.0940432995557785, -0.027521373704075813, -0.0832802951335907, -0.015540880151093006, -0.006977538112550974, -0.05758003517985344, -0.06335031986236572, 0.03355766087770462, 0.06416879594326019, 0.037650059908628464, 0.03059067204594612, 0.029792655259370804, 0.029567573219537735, 0.060158245265483856, -0.03368043154478073, -0.00913116242736578, -0.0452209934592247, -0.08626774698495865, -0.013228675350546837, 0.005350810009986162, 0.005128285847604275, 0.003734312951564789, 0.027050748467445374, 0.026846129447221756, 0.006363678257912397, -0.03138868883252144, 0.0031562617514282465, -0.027869228273630142, 0.047758281230926514, 0.025291018187999725, -0.028360316529870033, 0.015540880151093006, -0.011755412444472313, -0.007013346534222364, -0.04006457328796387, -0.04808567464351654, 0.022221719846129417, 0.034314755350351334, 0.033025648444890976, -0.007719285320490599, -0.04734904319047928, -0.024840854108333588, -0.04366588220000267, 0.05815296992659569, -0.006875228136777878, 0.031838852912187576, -0.012215807102620602, -0.05369225889444351, -0.022324029356241226, -0.004253535997122526, -0.06195890158414841, 0.019704895094037056, 0.022671883925795555, -0.00556054525077343, -0.0008632401586510241, 0.008762846700847149, -0.02592534013092518, -0.022283105179667473, 0.04378865659236908, 0.006235790904611349, 0.058357592672109604, -0.04914969578385353, 0.07677338272333145, 0.03022235631942749, 0.02545471303164959, 0.003823834005743265, -0.02355174906551838, 0.026805205270648003, -0.028585398569703102, -0.012870591133832932, 0.00486228009685874, 0.08004730194807053, 0.02592534013092518, -0.04853583499789238, 0.021832941100001335, 0.0009924063924700022, 0.027992000803351402, -0.0017495000502094626, -0.031470537185668945, -0.03603356331586838, 0.016226356849074364, 0.04743088781833649, -0.0048827421851456165, -0.05107312276959419, -0.027337215840816498, -0.014671245589852333, -0.028830941766500473, 0.015929657965898514, 0.03879592940211296, -0.0618770532310009, -0.03175700455904007, 0.022426338866353035, 0.016615135595202446, -0.042192619293928146, 0.037465900182724, 0.008118294179439545, -0.0034401717130094767, -0.024820392951369286, -0.014446163550019264, 0.011601947247982025, -0.01944912038743496, -0.02985404059290886, 0.04653056338429451, -0.025127321481704712, -0.012133958749473095, -0.017413152381777763, 0.034069210290908813, 0.07509549707174301, -0.010742544196546078, -0.019807204604148865, -0.023981450125575066, 0.006051633041352034, 0.006476219277828932, 0.008665652014315128, -0.014077847823500633, -0.08184795081615448, 0.030304204672574997, -0.058848679065704346, 0.012420427054166794, -0.02236495353281498, -0.06273645907640457, -0.0547153577208519, -0.013249137438833714, -0.009591557085514069, -0.0038775468710809946, -0.00966317392885685, -0.007136118598282337, 0.013371909968554974, -0.02128046751022339, 0.004059147089719772, 0.024718081578612328, -0.010277033783495426, -0.04964078590273857, 0.0157659612596035, 0.008604265749454498, -0.009872909635305405, -0.023613134399056435, -0.01665605790913105, 0.01499863713979721, -0.06212259829044342, 0.024902239441871643, 0.02187386527657509, 0.010184954851865768, 0.015162333846092224, -0.05483812838792801, 0.024533923715353012, -0.0009968825615942478, -0.00969898235052824, 0.06396417319774628, 0.00024218681210186332, -0.02952664904296398, -0.053119320422410965, 0.005703779403120279, -0.05090942606329918, -0.016748137772083282, -0.012185114435851574, 0.013044517487287521, 0.0678928792476654, 0.023040199652314186, 0.036831580102443695, -0.00725889066234231, -0.05013187229633331, -0.0044530401937663555, -0.014855403453111649, 0.007693707477301359, 0.09682612866163254, -0.060976725071668625, -0.0006455117836594582, -0.05537014082074165, 0.009243703447282314, -0.004887857474386692, -0.03699527680873871, 0.02065637707710266, 0.07685522735118866, -0.00880888570100069, -0.02259003557264805, 0.027889691293239594, 0.011990725062787533, -0.030918065458536148, 0.024329304695129395, 0.018937570974230766, -0.029240181669592857, 0.025986725464463234, -0.005023417994379997, 0.04069889336824417, -0.08405785262584686, -0.010916470550000668, -0.0017686830833554268, -0.0016663732239976525, 0.012553430162370205, -0.03343489021062851, 0.05291470140218735, 0.0452209934592247, 0.07059386372566223 ]
30,184
networkx.classes.multigraph
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 can be: - 2-tuples (u, v) or - 3-tuples (u, v, d) for an edge data dict d, or - 3-tuples (u, v, k) for not iterable key k, or - 4-tuples (u, v, k, d) for an edge with data and key k attr : keyword arguments, optional Edge data (or labels or objects) can be assigned using keyword arguments. Returns ------- A list of edge keys assigned to the edges in `ebunch`. 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. Default keys are generated using the method ``new_edge_key()``. This method can be overridden by subclassing the base class and providing a custom ``new_edge_key()`` method. 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.MultiGraph([(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 >>> assigned_keys = 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 can be: - 2-tuples (u, v) or - 3-tuples (u, v, d) for an edge data dict d, or - 3-tuples (u, v, k) for not iterable key k, or - 4-tuples (u, v, k, d) for an edge with data and key k attr : keyword arguments, optional Edge data (or labels or objects) can be assigned using keyword arguments. Returns ------- A list of edge keys assigned to the edges in `ebunch`. 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. Default keys are generated using the method ``new_edge_key()``. This method can be overridden by subclassing the base class and providing a custom ``new_edge_key()`` method. 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.MultiGraph([(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 >>> assigned_keys = G.add_edges_from(list((5, n) for n in G.nodes)) """ keylist = [] for e in ebunch_to_add: ne = len(e) if ne == 4: u, v, key, dd = e elif ne == 3: u, v, dd = e key = None elif ne == 2: u, v = e dd = {} key = None else: msg = f"Edge tuple {e} must be a 2-tuple, 3-tuple or 4-tuple." raise NetworkXError(msg) ddd = {} ddd.update(attr) try: ddd.update(dd) except (TypeError, ValueError): if ne != 3: raise key = dd # ne == 3 with 3rd value not dict, must be a key key = self.add_edge(u, v, key) self[u][v][key].update(ddd) keylist.append(key) nx._clear_cache(self) return keylist
(self, ebunch_to_add, **attr)
[ -0.019571973010897636, -0.009196655824780464, -0.04739456996321678, 0.03349878266453743, -0.057485561817884445, 0.007552734576165676, -0.013089338317513466, 0.007511377800256014, 0.04830441623926163, -0.027502086013555527, -0.018362294882535934, -0.0007618646486662328, 0.03598017245531082, 0.058767613023519516, -0.003052628133445978, 0.03513236343860626, 0.039681579917669296, 0.003463608445599675, -0.010106499306857586, 0.012220851145684719, -0.042307719588279724, -0.04557488486170769, 0.03316792845726013, 0.027419373393058777, -0.005469399504363537, 0.050413597375154495, 0.011548807844519615, 0.024731198325753212, 0.04243179038167, 0.025124086067080498, -0.0378618948161602, -0.09007450193166733, -0.04594709351658821, -0.028184467926621437, 0.012634417042136192, 0.010680321604013443, -0.014092233963310719, -0.03978497162461281, -0.05529366806149483, 0.03920597955584526, 0.07146406918764114, 0.0023495673667639494, 0.037448327988386154, -0.026964450255036354, 0.07762619107961655, 0.05744420737028122, -0.020678259432315826, 0.02351118065416813, -0.009997938759624958, -0.06352361291646957, -0.013234086334705353, -0.024834590032696724, 0.06087679788470268, 0.02216709405183792, -0.010540743358433247, 0.0023818770423531532, -0.05839540436863899, -0.02189827710390091, -0.010230569168925285, 0.06050458922982216, -0.015033095143735409, -0.014164607971906662, -0.0007263238658197224, -0.009258691221475601, -0.035752709954977036, -0.0020587793551385403, -0.12067832797765732, -0.057568274438381195, -0.03552525117993355, 0.01172457356005907, 0.014888347126543522, 0.002383169485256076, -0.026447493582963943, -0.005231599789112806, 0.0014151684008538723, 0.04296942427754402, -0.015384625643491745, 0.03649712726473808, -0.016718372702598572, -0.015973955392837524, 0.006348225753754377, 0.022642694413661957, -0.03649712726473808, 0.002357321558520198, 0.08957821875810623, 0.06509516388177872, -0.041211772710084915, 0.06236563250422478, 0.01253102533519268, -0.044540971517562866, 0.00021889877098146826, -0.04313484951853752, -0.03922665864229202, 0.017349060624837875, 0.056120797991752625, -0.015622424893081188, -0.006074239034205675, -0.0385235995054245, 0.04838712885975838, -0.009351743385195732, -0.0029724999330937862, -0.06426803022623062, 0.03657983988523483, 0.008483256213366985, -0.043589770793914795, -0.13019032776355743, -0.044789109379053116, -0.03889580816030502, -0.029445841908454895, -0.037799857556819916, -0.06885860860347748, 0.034553371369838715, 0.06186935305595398, 0.013988843187689781, -0.03620763123035431, 0.027378015220165253, 0.057237423956394196, -0.01669769547879696, 0.025806467980146408, -0.002975084586068988, 0.0055986386723816395, 0.058850329369306564, 0.014454104006290436, 0.051943790167570114, 0.016470234841108322, -0.03093467652797699, -0.0018855988746508956, 0.013482225127518177, 0.018217546865344048, -0.09387929737567902, 0.03926801681518555, -0.029197702184319496, -0.05165429413318634, 0.0138544337823987, 0.007118490990251303, -0.05727877840399742, -0.017349060624837875, 0.008095539174973965, 0.03604220598936081, 0.03273368626832962, -0.007144338916987181, -0.023407790809869766, 0.05285363271832466, 0.026964450255036354, -0.07406952977180481, -0.02539290301501751, -0.03436726704239845, -0.005293634720146656, 0.0033912346698343754, 0.012375938706099987, -0.011590165086090565, 0.02274608612060547, -0.06360632926225662, 0.00735112139955163, -0.006348225753754377, -0.010530403815209866, -0.07076100260019302, 0.037117477506399155, -0.014371390454471111, -0.006038052029907703, -0.02880481630563736, -0.019065355882048607, 0.018279582262039185, -0.02719191089272499, -0.004732736852020025, -0.007806043140590191, 0.013544260524213314, 0.00026655569672584534, -0.007521716877818108, 0.02146403305232525, -0.004859391134232283, -0.03393302485346794, -0.01243797317147255, 0.008664190769195557, -0.011362703517079353, -0.018186530098319054, 0.031244849786162376, 0.013482225127518177, 0.005836438853293657, -0.011962373740971088, 0.013626973144710064, -0.00756307365372777, 0.008121386170387268, -0.003579923650249839, 0.026178676635026932, 0.0013175929198041558, 0.008808938786387444, 0.02266337350010872, 0.015984294936060905, -0.025682399049401283, 0.0035437368787825108, -0.04764271154999733, -0.006410260684788227, 0.07270476222038269, -0.011693555861711502, -0.00041388830868527293, -0.054590605199337006, 0.029301093891263008, -0.03339539095759392, 0.08759310841560364, -0.022477269172668457, -0.03366420790553093, 0.022642694413661957, -0.0070771342143416405, 0.03877173736691475, -0.05132343992590904, -0.02208438143134117, -0.050579022616147995, 0.05268820747733116, 0.017007868736982346, 0.0141025735065341, -0.046567440032958984, 0.042390432208776474, 0.04305213689804077, -0.01756618171930313, -0.020988434553146362, -0.051943790167570114, 0.018786199390888214, -0.008540120907127857, -0.014247320592403412, 0.02268405072391033, -0.0032800890039652586, 0.001694324892014265, -0.05289498716592789, 0.02301490306854248, -0.058602187782526016, 0.0009111358085647225, -0.00008109754708129913, 0.0139785036444664, 0.03844088688492775, 0.060463231056928635, -0.05430110916495323, 0.013657990843057632, -0.0021854336373507977, 0.06662535667419434, 0.06815554201602936, -0.021236572414636612, 0.004768923856317997, 0.0559140145778656, 0.017845338210463524, -0.0007373092230409384, 0.007738838903605938, -0.021856920793652534, -0.001963142305612564, 0.024524416774511337, -0.010116838850080967, 0.0416046604514122, 0.0248759463429451, -0.05521095544099808, 0.009062247350811958, 0.039164625108242035, 0.006586025934666395, 0.031658414751291275, 0.013844095170497894, -0.01273780781775713, -0.0242142416536808, -0.024813910946249962, -0.018362294882535934, 0.026633597910404205, -0.049379684031009674, 0.07349053770303726, 0.020988434553146362, 0.013327138498425484, 0.03138959780335426, -0.016666676849126816, 0.030810607597231865, 0.029549233615398407, 0.022435912862420082, -0.07919773459434509, 0.0001569447631482035, -0.025000015273690224, -0.024090172722935677, 0.03910258784890175, 0.037448327988386154, -0.014226642437279224, -0.015012416988611221, -0.032092660665512085, 0.029301093891263008, -0.07551700621843338, -0.02437966875731945, -0.00010452214337419719, 0.008209269493818283, -0.042555857449769974, 0.02932177297770977, -0.050165459513664246, 0.02615799941122532, -0.011279990896582603, 0.000392886926420033, 0.008933008648455143, -0.05488010123372078, 0.0492556132376194, -0.04561624303460121, -0.01273780781775713, -0.0007547565037384629, 0.029611269012093544, 0.05148886516690254, 0.009832512587308884, -0.01816585101187229, 0.017266346141695976, 0.070223368704319, 0.0843672975897789, -0.005841608624905348, 0.020212998613715172, -0.01389579102396965, -0.03655916452407837, -0.013523582369089127, 0.08196862041950226, 0.019799433648586273, -0.023552538827061653, -0.025971895083785057, -0.06071137264370918, 0.06654264032840729, -0.008710716851055622, -0.011362703517079353, 0.003693654201924801, -0.02173285186290741, 0.0043631126172840595, -0.0009570157271809876, 0.008788260631263256, 0.04168737307190895, -0.058767613023519516, 0.0490901879966259, -0.047518640756607056, -0.006094917189329863, 0.03647645190358162, 0.023325076326727867, 0.08105877786874771, 0.0016762313898652792, 0.047270502895116806, -0.001149581978097558, -0.007325273472815752, -0.023759320378303528, -0.007133999839425087, 0.07679905742406845, -0.07233255356550217, 0.04119109362363815, 0.033457424491643906, 0.014309355989098549, -0.02590985968708992, -0.037634432315826416, 0.009656747803092003, 0.0559140145778656, -0.03486354649066925, -0.018103815615177155, 0.01380273886024952, -0.04801492020487785, 0.005789912771433592, 0.0073976474814116955, -0.03418116271495819, 0.054342467337846756, -0.011621181853115559, 0.0122311906889081, -0.018258903175592422, -0.010856086388230324, 0.06637721508741379, 0.017276685684919357, -0.061414431780576706, -0.05248142406344414, 0.056203510612249374, 0.02233252115547657, 0.03126553073525429, -0.014629868790507317, 0.018279582262039185, -0.004861976020038128, 0.00009095203131437302, 0.0008503934368491173, -0.02564104273915291, 0.012200172990560532, 0.061497144401073456, -0.037634432315826416, 0.022559981793165207, -0.03244419023394585, 0.015084790997207165, 0.041294485330581665, -0.02427627705037594, -0.000007946186997287441, -0.014598851092159748, 0.054590605199337006, -0.031741127371788025, 0.05769234523177147, 0.005350499879568815, 0.02336643449962139, -0.005629656370729208, 0.06670806556940079, 0.07489665597677231, -0.06526058912277222, 0.12423498183488846, -0.02104012854397297, 0.08440865576267242, -0.012417295016348362, -0.004908502101898193, 0.014805634506046772, 0.07344917953014374, 0.06517787277698517, -0.04561624303460121, -0.09230775386095047, 0.029611269012093544, -0.03041771985590458, -0.042473144829273224, -0.05334991216659546, 0.02344914712011814, 0.0014655716950073838, 0.00903639942407608, 0.0569065697491169, 0.04499589279294014, -0.04135651886463165, -0.042638570070266724, 0.006239664740860462, 0.006942725740373135, -0.01764889433979988, 0.008596986532211304, 0.0016904477961361408, -0.030665859580039978, 0.00813689548522234, -0.006348225753754377, -0.02531019039452076, -0.006363734602928162, -0.043341632932424545, 0.04884205013513565, 0.020574867725372314, 0.05512823909521103, 0.017793642356991768, -0.01695617288351059, -0.0001301276497542858, 0.0122311906889081, 0.004422562662512064, -0.03128620609641075, 0.011135242879390717, -0.042762640863657, 0.0318651981651783, -0.005991525948047638, -0.015115807764232159, 0.05028952658176422, -0.0013738118577748537, -0.012572381645441055, -0.018734503537416458, -0.007475190795958042, -0.03368488699197769, 0.03759307786822319, -0.016139382496476173, -0.04071549326181412, -0.023821355774998665, 0.007687143050134182, -0.06592229008674622, -0.014030199497938156, -0.05062038078904152, -0.042059581726789474, 0.017834998667240143, 0.04466504231095314, -0.004947273526340723, 0.04689829424023628, -0.03314724937081337, 0.020854024216532707, -0.004892993252724409, -0.0242142416536808, 0.04179076477885246, 0.03308521583676338, -0.01243797317147255, -0.02777090296149254, 0.022435912862420082, 0.03366420790553093, -0.019551293924450874, -0.041459910571575165, 0.05529366806149483, -0.022125737741589546, 0.02632342465221882, 0.04673286899924278, -0.004887823481112719, -0.008478086441755295, 0.01628413051366806, 0.018600095063447952, -0.05293634533882141, -0.0024516661651432514, -0.04983460530638695, 0.0213813204318285, 0.007604429963976145, 0.008927838876843452, -0.021546747535467148, -0.03349878266453743, -0.06253106147050858, 0.04602980613708496, -0.05967745929956436, 0.06666670739650726, -0.02088504284620285, 0.003437760751694441, 0.014888347126543522, 0.0023495673667639494, -0.006332716904580593, -0.059429317712783813, 0.03182384371757507, -0.03699340671300888, -0.0717122033238411, -0.02522747777402401, 0.07812246680259705, 0.06902403384447098, 0.015250216238200665, 0.0071546779945492744, -0.011279990896582603, 0.03393302485346794, -0.042162973433732986, -0.0018597509479150176, 0.000670751032885164, 0.03502897173166275, 0.030624503269791603, 0.023717964068055153, 0.04557488486170769, -0.006410260684788227, 0.041708048433065414, 0.009605051949620247, -0.033023182302713394, 0.03128620609641075, 0.004347604233771563, 0.04433418810367584, 0.029859406873583794, 0.02003723382949829, -0.02351118065416813, -0.008839956484735012, 0.03244419023394585, 0.014940042980015278, 0.02104012854397297, 0.07919773459434509, 0.0495864674448967, 0.014092233963310719, 0.014795294962823391, -0.04466504231095314, 0.05566587671637535, 0.011497112922370434, -0.04818034544587135, 0.013141034170985222, 0.04296942427754402, -0.0036988237407058477, 0.07679905742406845, 0.04379655420780182, 0.03008686751127243, 0.010752694681286812, 0.02650952897965908, 0.04611251875758171, 0.035277109593153, -0.041811440140008926, -0.0029259738512337208, 0.05334991216659546, 0.010773373767733574, -0.028143111616373062, -0.004936934448778629, -0.026013251394033432, 0.05090987682342529, 0.0006584733491763473, -0.02694377303123474, 0.017276685684919357, -0.08151370286941528, -0.051778361201286316, 0.05913982167840004, -0.0004426439991220832, 0.06248969957232475, 0.04702236130833626, -0.09437558054924011, -0.0013789813965559006, -0.01202440820634365, 0.00647746492177248, 0.0008659021113999188, -0.039247337728738785, -0.025765111669898033, -0.045988451689481735, -0.01603599078953266, -0.009703273884952068, 0.001442308654077351, -0.06170392781496048, -0.03672458976507187, -0.01986146904528141, 0.021153859794139862, -0.053556691855192184, 0.011765929870307446, -0.019468581303954124, -0.05454925075173378, -0.061497144401073456, -0.03254758194088936, -0.09371387213468552, 0.01027192547917366, 0.005841608624905348, -0.06815554201602936, -0.03995039686560631, 0.01295492984354496, 0.0688999593257904, 0.0037272563204169273, 0.033126574009656906, 0.041542623192071915, -0.015653442591428757, 0.05301905795931816, -0.03418116271495819, 0.0176385547965765, -0.0190963726490736, -0.047518640756607056, 0.0010772080859169364, -0.013027303852140903, -0.032340798527002335, -0.026695633307099342, 0.02762615494430065, 0.013296120800077915, -0.06009102240204811, -0.030562467873096466, -0.013327138498425484, 0.018858572468161583, 0.0564102940261364, 0.03904055431485176, -0.01892060786485672, 0.0007618646486662328, 0.021960312500596046, -0.011900338344275951, -0.014340372756123543, -0.01576717384159565, 0.032175373286008835, 0.05971881374716759, 0.02785361558198929, -0.01961332932114601, -0.04540945962071419, -0.05090987682342529, -0.02907363325357437, 0.059015754610300064, 0.017524825409054756, -0.0041847629472613335, -0.010845746845006943, -0.039495475590229034, -0.01205542590469122, 0.011559147387742996, -0.04565759748220444, -0.012406955473124981, -0.004422562662512064, 0.03128620609641075, 0.008571138605475426, -0.011538469232618809, -0.012127798981964588, -0.026633597910404205, 0.0383581705391407, -0.027977686375379562, 0.04218364879488945, -0.05967745929956436, 0.06464023888111115, -0.0006746282451786101, -0.014660886488854885, 0.01569479890167713, 0.014081895351409912, 0.016511591151356697, -0.06348225474357605, -0.015529372729361057, -0.020430121570825577, 0.05897439643740654, 0.017493808642029762, -0.07142271101474762, 0.024689842015504837, -0.008085199631750584, 0.0564102940261364, 0.0016904477961361408, -0.03221672773361206, -0.03198926895856857, -0.004513030406087637, 0.054259754717350006, -0.01900332048535347, -0.006193138659000397, -0.022270485758781433, -0.019148068502545357, 0.00683933449909091, 0.004094295669347048, 0.03585610166192055, -0.0385235995054245, -0.013120356015861034, 0.03870970383286476, 0.025930538773536682, 0.00391853041946888, 0.030707215890288353, 0.04338298738002777, -0.051943790167570114, -0.06691484898328781, -0.036600518971681595, 0.020161302760243416, -0.031658414751291275, -0.011321347206830978, -0.03163773939013481, -0.0061879693530499935, 0.0073045953176915646, -0.029611269012093544, -0.027936328202486038, 0.069561667740345, -0.020244017243385315, -0.01593259908258915, -0.05388754606246948, 0.01944790408015251, 0.001105640665628016, -0.00539185618981719, -0.012923912145197392, -0.046153876930475235, 0.04208025708794594, -0.05103394389152527, 0.019747737795114517, 0.02539290301501751, -0.05913982167840004, 0.00895368680357933, -0.018806876614689827, -0.0313689187169075, -0.016170399263501167, -0.02200166881084442, 0.01542598195374012, 0.054838746786117554, 0.00021065976761747152, 0.022311842069029808, 0.02888752892613411, -0.03085196390748024, -0.06476431339979172, 0.04818034544587135, -0.021236572414636612, 0.04057074710726738, -0.03926801681518555, -0.005981186870485544, 0.003934038802981377, -0.033540137112140656, 0.028618711978197098, -0.02276676334440708, 0.05913982167840004, 0.006710095331072807, -0.0569065697491169, 0.01193135604262352, 0.002141492208465934, 0.02189827710390091, 0.06497108936309814, -0.010230569168925285, -0.031141459941864014, -0.042328398674726486, 0.007247730158269405, -0.02191895619034767, -0.032506223767995834, -0.013430530205368996, 0.005097190849483013, 0.05421839654445648, 0.020760972052812576, 0.06091815233230591, 0.010499386116862297, -0.04706371948122978, -0.03995039686560631, 0.0416046604514122, 0.0240488164126873, 0.04557488486170769, -0.014743599109351635, -0.03093467652797699, -0.05372212082147598, 0.003308521583676338, -0.00997726060450077, -0.040446676313877106, 0.03128620609641075, 0.050413597375154495, -0.017338721081614494, -0.02165013737976551, 0.03488422557711601, 0.02266337350010872, 0.014671225100755692, 0.00765095604583621, -0.018972303718328476, -0.03906123340129852, 0.026054607704281807, -0.0315343476831913, 0.022105060517787933, -0.06067001447081566, -0.0076406169682741165, -0.021277928724884987, 0.000638764351606369, 0.012210512533783913, 0.010297773405909538, 0.05293634533882141, 0.03639373555779457, 0.04083956405520439 ]
30,191
networkx.classes.multigraph
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, key, datadict.copy()) for u, nbrs in self._adj.items() for v, keydict in nbrs.items() for key, datadict in keydict.items() ) return G
(self, as_view=False)
[ 0.020901218056678772, -0.027753764763474464, 0.03529347479343414, -0.004177857656031847, -0.05039197951555252, 0.019460083916783333, -0.030998703092336655, 0.008918807841837406, 0.10368531942367554, -0.004430772271007299, -0.022103754803538322, -0.027123864740133286, 0.0033069737255573273, 0.06577680259943008, -0.03571340814232826, 0.039702773094177246, -0.0027629693504422903, -0.007191355340182781, 0.034644484519958496, 0.027562886476516724, 0.007143635768443346, -0.07799304276704788, -0.013533300720155239, 0.015384824015200138, -0.01178676076233387, -0.01725543476641178, -0.010316994041204453, 0.017007293179631233, 0.02258095145225525, 0.02071033976972103, -0.014821732416749, -0.07428999245166779, -0.013686003163456917, 0.01868702657520771, 0.007024336606264114, 0.010068852454423904, -0.02113027311861515, 0.04126797616481781, -0.050124749541282654, -0.030139748007059097, -0.005387551616877317, -0.023878926411271095, -0.02340172976255417, -0.008990387432277203, 0.044780146330595016, 0.0068191420286893845, 0.0033451493363827467, 0.04409298300743103, -0.02034767158329487, -0.06092848628759384, 0.022848181426525116, 0.0180762130767107, -0.05772172287106514, 0.05165177956223488, -0.03472083806991577, -0.010822823271155357, 0.03391914814710617, 0.05875246599316597, -0.0037006610073149204, 0.04489467293024063, -0.015155769884586334, -0.024088893085718155, 0.0013182561378926039, -0.0719994530081749, -0.019679594784975052, -0.008866315707564354, -0.06264639645814896, -0.04611629620194435, 0.026283998042345047, -0.04779602959752083, -0.043405819684267044, 0.03598063811659813, 0.036915943026542664, 0.026894809678196907, 0.023707136511802673, 0.017150452360510826, 0.011319107376039028, 0.009706182405352592, -0.0011518336832523346, -0.04447473958134651, -0.009687094949185848, -0.05058285966515541, -0.05573658272624016, -0.028612717986106873, -0.006604403257369995, 0.008723157458007336, 0.004511895589530468, 0.002062682993710041, 0.030216099694371223, -0.059286929666996, -0.004175471607595682, 0.045658186078071594, -0.004447474144399166, 0.0345490463078022, 0.025310516357421875, -0.01850569061934948, -0.03411002457141876, -0.04084804281592369, 0.03288840129971504, 0.026341261342167854, -0.0398554764688015, 0.013256526552140713, -0.0800163522362709, 0.011080509051680565, -0.032029446214437485, -0.022466424852609634, -0.016320129856467247, -0.013075191527605057, -0.013857794925570488, -0.04798690974712372, -0.05264434963464737, 0.05184265971183777, 0.04374939948320389, 0.029967958107590675, 0.04981934279203415, 0.0033332195598632097, 0.011872655712068081, -0.033823706209659576, 0.00030928317573852837, 0.0357515811920166, 0.0014196604024618864, 0.052338942885398865, 0.02275274321436882, 0.038328446447849274, -0.0030612172558903694, 0.029777079820632935, 0.022466424852609634, -0.022504599764943123, -0.018801553174853325, -0.04046628624200821, -0.005754993297159672, -0.027543798089027405, -0.023936189711093903, 0.06825822591781616, 0.03958824649453163, -0.011529074050486088, -0.039740946143865585, 0.005067829973995686, 0.011920375749468803, 0.057225435972213745, -0.05340786278247833, -0.06325720250606537, 0.08032175898551941, 0.07528256624937057, -0.006174926180392504, -0.05004839971661568, -0.005697729531675577, 0.009295793250203133, -0.027372006326913834, -0.029777079820632935, 0.03418637812137604, 0.05459131300449371, 0.026112208142876625, 0.0035408001858741045, -0.040771692991256714, 0.014926714822649956, -0.09811165928840637, -0.02009952813386917, -0.0268375463783741, -0.01199672743678093, -0.06356260925531387, 0.0031948324758559465, 0.06783829629421234, -0.04161155968904495, 0.01393414568156004, -0.007620832417160273, 0.08566636592149734, -0.05443860962986946, -0.011853568255901337, 0.04508555307984352, -0.02156929485499859, -0.045849066227674484, -0.02380257472395897, 0.011624513193964958, 0.0010444644140079618, 0.04920853301882744, 0.026513053104281425, 0.004103892482817173, 0.0003414939565118402, -0.005196672864258289, 0.022275546565651894, -0.03529347479343414, -0.05875246599316597, 0.03754584118723869, -0.00019594893092289567, -0.022829093039035797, -0.02721930481493473, -0.0029013564344495535, 0.0634862631559372, 0.03783215954899788, 0.030158836394548416, 0.02559683471918106, 0.03989364951848984, 0.0062703657895326614, 0.032201237976551056, -0.09429408609867096, -0.03479718789458275, -0.018629761412739754, -0.0536750927567482, 0.14262457191944122, 0.04260412976145744, -0.06902173906564713, 0.06543321907520294, 0.006189242005348206, -0.031017791479825974, 0.008818596601486206, -0.02254277653992176, -0.007754447869956493, -0.0021700523793697357, -0.005678641609847546, 0.0014924329007044435, 0.007234303280711174, 0.07451904565095901, 0.005220532882958651, -0.03592337295413017, -0.028612717986106873, -0.0512700229883194, -0.016329674050211906, -0.0011792725417762995, -0.02823096141219139, 0.010822823271155357, -0.0006000749417580664, -0.08245960623025894, 0.02254277653992176, -0.009577339515089989, -0.05745449289679527, -0.009725270792841911, -0.05462948605418205, 0.020824868232011795, -0.06237916275858879, 0.05268252268433571, -0.016310585662722588, 0.022676391527056694, -0.03235394135117531, 0.008775648660957813, -0.011605425737798214, -0.026360349729657173, 0.0013731337385252118, 0.036667801439762115, 0.008885404095053673, -0.05627104267477989, -0.0321439765393734, 0.022218281403183937, 0.03210579976439476, 0.03416728973388672, -0.019450541585683823, -0.02481423318386078, -0.003137568710371852, 0.018429338932037354, -0.024279771372675896, -0.030406977981328964, -0.010670119896531105, -0.04733791947364807, 0.041802436113357544, 0.027925554662942886, 0.008007361553609371, -0.05627104267477989, -0.041153449565172195, -0.01683550328016281, 0.0091621782630682, -0.013227894902229309, -0.02051946148276329, -0.020175879821181297, 0.006203558295965195, 0.018410252407193184, -0.028097346425056458, 0.012368940748274326, 0.00895221158862114, -0.04936123639345169, 0.015747493132948875, 0.10055490583181381, 0.05065920948982239, 0.02420342154800892, 0.03126593306660652, -0.006933669093996286, -0.03248755633831024, -0.04153520613908768, 0.011691320687532425, -0.005621377844363451, -0.03090326301753521, 0.004857863299548626, 0.02826913632452488, -0.002043595304712653, -0.019421909004449844, -0.025253253057599068, -0.018992431461811066, -0.0029443041421473026, 0.0007342865574173629, -0.0010355169652029872, 0.000531477911863476, 0.07012883573770523, -0.02214192971587181, 0.015069874003529549, -0.011739040724933147, 0.033441949635744095, 0.04153520613908768, -0.03306019306182861, 0.02481423318386078, -0.026532141491770744, 0.06970890611410141, 0.06974708288908005, -0.002517213113605976, 0.048674073070287704, 0.05512577295303345, 0.02500511147081852, 0.009586883708834648, 0.027372006326913834, 0.01034562662243843, 0.001716715400107205, 0.05546935275197029, -0.021206624805927277, -0.022428248077630997, 0.03208671137690544, 0.05004839971661568, -0.0374504029750824, -0.05298792943358421, 0.0005016531213186681, -0.03842388466000557, 0.042375072836875916, 0.02460426650941372, -0.08123797923326492, 0.029528936371207237, -0.030406977981328964, -0.0021414204966276884, -0.013771899044513702, 0.03880564123392105, 0.04592541977763176, 0.0671893060207367, 0.002140227472409606, 0.024260684847831726, -0.024241596460342407, 0.04455109313130379, 0.00802167784422636, 0.06577680259943008, -0.05390414968132973, 0.0223328098654747, -0.0032831139396876097, -0.0241843331605196, -0.009033335372805595, -0.02660849317908287, 0.056843679398298264, 0.05714908614754677, 0.003717362880706787, -0.04508555307984352, 0.005926784127950668, 0.002741495380178094, -0.030406977981328964, 0.024928759783506393, -0.05753084272146225, -0.01523212157189846, -0.020633988082408905, 0.04539095610380173, -0.018333900719881058, 0.02380257472395897, -0.009916149079799652, 0.02009952813386917, 0.017532208934426308, -0.030597858130931854, -0.02889903634786606, -0.009801621548831463, 0.012120798230171204, 0.025902241468429565, 0.006628263276070356, -0.05001022294163704, 0.07589337229728699, 0.00853227823972702, -0.014764468185603619, 0.03153316304087639, -0.0398554764688015, -0.06634943932294846, -0.028746334835886955, -0.032430294901132584, -0.02197013981640339, -0.01038380153477192, -0.011309564113616943, -0.015795214101672173, -0.0446656197309494, -0.016329674050211906, -0.03693503141403198, 0.03678232803940773, 0.06352443248033524, -0.02542504481971264, -0.01868702657520771, 0.03538891300559044, 0.04611629620194435, -0.03834753483533859, 0.05401867628097534, -0.009238529950380325, 0.011032789945602417, -0.01645374484360218, -0.04229872301220894, -0.0366487130522728, 0.010068852454423904, 0.030769648030400276, -0.03613334149122238, -0.012263957411050797, 0.035656142979860306, 0.02009952813386917, -0.04409298300743103, -0.0446656197309494, 0.0260358564555645, -0.03619060292840004, 0.007487217430025339, -0.02055763639509678, -0.003967891447246075, 0.0021617014426738024, 0.0245851781219244, 0.0499720461666584, 0.0223328098654747, -0.038920167833566666, 0.04844501614570618, -0.024680618196725845, -0.019851386547088623, 0.02746744640171528, 0.05043015629053116, -0.021034834906458855, 0.07547344267368317, -0.00986842904239893, 0.028689069673419, 0.04126797616481781, 0.027543798089027405, 0.057836249470710754, -0.0043496484868228436, -0.002032858319580555, 0.05390414968132973, -0.01789487898349762, -0.05230076611042023, 0.040924396365880966, -0.007491989526897669, 0.06905991584062576, 0.04394027963280678, -0.018562953919172287, 0.022504599764943123, 0.021702909842133522, 0.017837615683674812, -0.0009233757737092674, 0.060279496014118195, -0.01644420064985752, -0.0002870636817533523, 0.0800163522362709, -0.015986092388629913, -0.023058148100972176, 0.02336355485022068, -0.07215215265750885, -0.05188083276152611, -0.018372075632214546, -0.018133478239178658, 0.014621309004724026, 0.03351830318570137, -0.03088417463004589, 0.04164973646402359, 0.035465262830257416, 0.03451086953282356, -0.017828071489930153, -0.0951339527964592, 0.022485511377453804, -0.03235394135117531, -0.029185354709625244, -0.02422250807285309, 0.060470376163721085, 0.01988956145942211, 0.0019016291480511427, -0.004122979938983917, -0.004142067860811949, -0.004550071433186531, -0.01890653558075428, 0.05462948605418205, -0.020481286570429802, -0.03307928144931793, 0.019813209772109985, 0.05871429294347763, -0.04474196955561638, -0.010135659947991371, -0.06386801600456238, 0.025119638070464134, -0.007988274097442627, -0.02658940479159355, -0.016587359830737114, -0.06237916275858879, -0.041955139487981796, -0.04611629620194435, -0.009730041958391666, 0.009982956573367119, 0.04187878966331482, 0.011767672374844551, 0.05779807269573212, 0.0241843331605196, 0.024508826434612274, -0.0019755945540964603, 0.035885196179151535, -0.017837615683674812, 0.006952757015824318, -0.11017519235610962, -0.007625604514032602, 0.0033570793457329273, 0.04367304965853691, -0.03653418645262718, 0.006699842866510153, 0.016005180776119232, -0.0496666394174099, -0.021855613216757774, -0.04619264975190163, 0.02536778151988983, 0.022619128227233887, 0.006542367860674858, 0.030330628156661987, -0.004779125563800335, 0.00986842904239893, 0.04428385943174362, -0.008455926552414894, -0.016196059063076973, 0.0024694933090358973, 0.00676187826320529, 0.040160879492759705, 0.03210579976439476, -0.042985886335372925, -0.057645369321107864, 0.013810074888169765, 0.020843954756855965, -0.07428999245166779, 0.051728129386901855, 0.03737405315041542, 0.004843547474592924, -0.049094006419181824, -0.055774759501218796, 0.0009120423346757889, 0.01290340069681406, 0.004867407027631998, 0.02483331970870495, -0.014564045704901218, 0.019660506397485733, 0.008904491551220417, -0.0015520824817940593, 0.08780420571565628, 0.04489467293024063, -0.009615515358746052, 0.0120921665802598, 0.0011166405165567994, -0.07917649298906326, 0.01027881819754839, -0.006890721619129181, 0.021492943167686462, -0.010021132417023182, 0.010431521572172642, 0.00862771738320589, 0.03966459631919861, 0.03412911295890808, -0.036915943026542664, -0.004800599534064531, -0.05573658272624016, -0.029185354709625244, -0.006084259133785963, 0.009410320781171322, 0.004929442889988422, 0.04794873297214508, 0.0193264689296484, -0.024088893085718155, -0.004664598498493433, 0.054553136229515076, -0.003137568710371852, 0.000314651639200747, -0.050773736089468, 0.02804008312523365, -0.037106823176145554, -0.012645714916288853, 0.030998703092336655, -0.0035956776700913906, 0.04405480623245239, -0.018391164019703865, 0.009529619477689266, -0.012034902349114418, 0.02807825803756714, 0.038309358060359955, 0.0026126522570848465, 0.004003680776804686, 0.004473719745874405, -0.002213000087067485, 0.06612038612365723, -0.0015329946763813496, -0.03248755633831024, -0.006885949522256851, 0.03683959320187569, 0.022810006514191628, 0.016176970675587654, -0.02542504481971264, 0.026264911517500877, -0.0024277386255562305, 0.044589266180992126, 0.050277452915906906, -0.05859976261854172, 0.012741154059767723, 0.02943349815905094, 0.0249860230833292, -0.006131978705525398, -0.009004702791571617, 0.01403912901878357, -0.017990319058299065, -0.032792963087558746, 0.0007438304601237178, 0.011968094855546951, 0.006752334535121918, 0.021092098206281662, 0.06314267963171005, 0.010450609028339386, -0.05298792943358421, 0.024909671396017075, 0.0012693434255197644, -0.013294702395796776, 0.06936532258987427, -0.039511892944574356, -0.0014578361297026277, 0.03369009122252464, -0.017408138141036034, -0.08207784593105316, -0.0005129865603521466, -0.04268047958612442, -0.07753493636846542, 0.034682661294937134, -0.05875246599316597, 0.016215147450566292, 0.00822210032492876, -0.01523212157189846, -0.04302406311035156, -0.003862907877191901, -0.049933869391679764, -0.010212010703980923, 0.003929715603590012, 0.014115480706095695, -0.051346372812986374, 0.015527983196079731, 0.048483192920684814, -0.11078600585460663, -0.007434725761413574, 0.03899652138352394, 0.01168177742511034, -0.07367918640375137, -0.00024411597405560315, 0.024127069860696793, -0.02338264137506485, 0.08085621893405914, -0.018038038164377213, -0.050926439464092255, -0.024088893085718155, 0.0069098095409572124, -0.09017110615968704, -0.07196127623319626, -0.008594313636422157, -0.05512577295303345, 0.02074851654469967, -0.02582588978111744, -0.04050446301698685, 0.036076076328754425, 0.037297699600458145, -0.015613879077136517, -0.0006406366592273116, 0.04729974642395973, 0.009061967022716999, -0.01666371151804924, 0.02401254139840603, -0.03046424314379692, -0.028211873024702072, 0.02582588978111744, 0.0028464787174016237, 0.002255947794765234, 0.08192514628171921, 0.037106823176145554, -0.009286249056458473, -0.015489807352423668, 0.03725952282547951, 0.030139748007059097, -0.07978729903697968, -0.005411411635577679, -0.06115753948688507, 0.032029446214437485, -0.06722748279571533, -0.03210579976439476, 0.04038993641734123, -0.00854182243347168, 0.0019660508260130882, -0.044627442955970764, 0.037488579750061035, 0.04802508279681206, 0.004478491842746735, -0.029528936371207237, -0.05646192282438278, 0.05004839971661568, -0.0022153861355036497, -0.03596154972910881, -0.0064230686984956264, -0.02679937146604061, -0.0050010220147669315, -0.0499720461666584, 0.05165177956223488, 0.038920167833566666, 0.018028493970632553, -0.0072152153588831425, -0.032792963087558746, -0.028383664786815643, 0.002984865801408887, -0.030235188081860542, 0.023821663111448288, 0.007477673701941967, 0.007110232021659613, 0.03107505477964878, 0.006823914125561714, -0.0180762130767107, -0.07306837290525436, 0.03808030113577843, 0.004509509541094303, 0.00833185575902462, 0.010937349870800972, 0.01075601577758789, 0.05043015629053116, 0.020042264834046364, 0.05936327949166298, -0.05321698635816574, -0.0072533912025392056, -0.042756833136081696, -0.06287544965744019, -0.0015329946763813496, -0.0032950437162071466, -0.015356192365288734, 0.0373549647629261, 0.06306632608175278, 0.023745311424136162, 0.042795006185770035, 0.025291429832577705, -0.07978729903697968, 0.020194968208670616, -0.03800395131111145, -0.002082963939756155, 0.10185287892818451, 0.033231984823942184, -0.012846137396991253, 0.005750221200287342, -0.01210171077400446, -0.031590428203344345, 0.011557705700397491, -0.0030970070511102676, 0.050086572766304016, -0.0008852000464685261, -0.0060365390963852406, -0.018954256549477577, 0.028727246448397636, -0.07005248963832855, -0.0719994530081749, 0.015289384871721268, 0.030845999717712402, -0.008360487408936024, -0.03025427646934986, 0.061501119285821915, 0.009944780729711056, -0.017618104815483093, 0.0027486535254865885, 0.07799304276704788, 0.009434180334210396, 0.0055402545258402824, -0.01950780488550663, 0.026169471442699432, -0.062684565782547, -0.03701138123869896, -0.018133478239178658, 0.009434180334210396, 0.0015210647834464908, -0.00353364204056561, 0.04206966981291771, 0.011729496531188488, 0.025692274793982506 ]
30,193
networkx.classes.multigraph
get_edge_data
Returns the attribute dictionary associated with edge (u, v, key). If a key is not provided, returns a dictionary mapping edge keys to attribute dictionaries for each edge between u and v. This is identical to `G[u][v][key]` except the default is returned instead of an exception is the edge doesn't exist. Parameters ---------- u, v : nodes default : any Python object (default=None) Value to return if the specific edge (u, v, key) is not found, OR if there are no edges between u and v and no key is specified. key : hashable identifier, optional (default=None) Return data only for the edge with specified key, as an attribute dictionary (rather than a dictionary mapping keys to attribute dictionaries). Returns ------- edge_dict : dictionary The edge attribute dictionary, OR a dictionary mapping edge keys to attribute dictionaries for each of those edges if no specific key is provided (even if there's only one edge between u and v). Examples -------- >>> G = nx.MultiGraph() # or MultiDiGraph >>> key = G.add_edge(0, 1, key="a", weight=7) >>> G[0][1]["a"] # key='a' {'weight': 7} >>> G.edges[0, 1, "a"] # key='a' {'weight': 7} Warning: we protect the graph data structure by making `G.edges` and `G[1][2]` read-only dict-like structures. However, you can assign values to attributes in e.g. `G.edges[1, 2, 'a']` or `G[1][2]['a']` using an additional bracket as shown next. You need to specify all edge info to assign to the edge data associated with an edge. >>> G[0][1]["a"]["weight"] = 10 >>> G.edges[0, 1, "a"]["weight"] = 10 >>> G[0][1]["a"]["weight"] 10 >>> G.edges[1, 0, "a"]["weight"] 10 >>> G = nx.MultiGraph() # or MultiDiGraph >>> nx.add_path(G, [0, 1, 2, 3]) >>> G.edges[0, 1, 0]["weight"] = 5 >>> G.get_edge_data(0, 1) {0: {'weight': 5}} >>> e = (0, 1) >>> G.get_edge_data(*e) # tuple form {0: {'weight': 5}} >>> G.get_edge_data(3, 0) # edge not in graph, returns None >>> G.get_edge_data(3, 0, default=0) # edge not in graph, return default 0 >>> G.get_edge_data(1, 0, 0) # specific key gives back {'weight': 5}
def get_edge_data(self, u, v, key=None, default=None): """Returns the attribute dictionary associated with edge (u, v, key). If a key is not provided, returns a dictionary mapping edge keys to attribute dictionaries for each edge between u and v. This is identical to `G[u][v][key]` except the default is returned instead of an exception is the edge doesn't exist. Parameters ---------- u, v : nodes default : any Python object (default=None) Value to return if the specific edge (u, v, key) is not found, OR if there are no edges between u and v and no key is specified. key : hashable identifier, optional (default=None) Return data only for the edge with specified key, as an attribute dictionary (rather than a dictionary mapping keys to attribute dictionaries). Returns ------- edge_dict : dictionary The edge attribute dictionary, OR a dictionary mapping edge keys to attribute dictionaries for each of those edges if no specific key is provided (even if there's only one edge between u and v). Examples -------- >>> G = nx.MultiGraph() # or MultiDiGraph >>> key = G.add_edge(0, 1, key="a", weight=7) >>> G[0][1]["a"] # key='a' {'weight': 7} >>> G.edges[0, 1, "a"] # key='a' {'weight': 7} Warning: we protect the graph data structure by making `G.edges` and `G[1][2]` read-only dict-like structures. However, you can assign values to attributes in e.g. `G.edges[1, 2, 'a']` or `G[1][2]['a']` using an additional bracket as shown next. You need to specify all edge info to assign to the edge data associated with an edge. >>> G[0][1]["a"]["weight"] = 10 >>> G.edges[0, 1, "a"]["weight"] = 10 >>> G[0][1]["a"]["weight"] 10 >>> G.edges[1, 0, "a"]["weight"] 10 >>> G = nx.MultiGraph() # or MultiDiGraph >>> nx.add_path(G, [0, 1, 2, 3]) >>> G.edges[0, 1, 0]["weight"] = 5 >>> G.get_edge_data(0, 1) {0: {'weight': 5}} >>> e = (0, 1) >>> G.get_edge_data(*e) # tuple form {0: {'weight': 5}} >>> G.get_edge_data(3, 0) # edge not in graph, returns None >>> G.get_edge_data(3, 0, default=0) # edge not in graph, return default 0 >>> G.get_edge_data(1, 0, 0) # specific key gives back {'weight': 5} """ try: if key is None: return self._adj[u][v] else: return self._adj[u][v][key] except KeyError: return default
(self, u, v, key=None, default=None)
[ 0.056386761367321014, -0.018586082383990288, -0.0024230245035141706, 0.05838204547762871, -0.025160547345876694, -0.02905135229229927, 0.023524412885308266, 0.004893437027931213, 0.0876329243183136, -0.03557593375444412, -0.00132561766076833, -0.0016236633528023958, 0.020591342821717262, -0.003988076467067003, 0.004404591862112284, 0.04952297732234001, -0.00524261174723506, 0.022885920479893684, 0.01374751515686512, 0.06033742427825928, 0.011333219707012177, -0.08811179548501968, 0.0007694318774156272, -0.008445044979453087, 0.007207967806607485, 0.0026637057308107615, -0.005516963545233011, 0.016680585220456123, 0.12027579545974731, 0.012021593749523163, -0.07617998868227005, -0.08627612888813019, -0.057224780321121216, 0.05395251139998436, 0.04210051894187927, 0.01786777935922146, -0.012231098487973213, 0.02396337501704693, -0.11484861373901367, 0.000025155402909149416, 0.02220752462744713, -0.05738440155982971, 0.015363696031272411, -0.0038035123143345118, 0.05311449244618416, 0.009657179936766624, -0.0014565582387149334, 0.003761112689971924, -0.011113738641142845, -0.07418470084667206, 0.03563579544425011, -0.021329598501324654, 0.03703249245882034, 0.031904611736536026, -0.010180942714214325, -0.018725750967860222, -0.04712863638997078, 0.03266282007098198, -0.021130070090293884, 0.05471071973443031, -0.011083809658885002, -0.016620725393295288, 0.02306549623608589, -0.000765690696425736, -0.06364959478378296, -0.001416652463376522, -0.045213162899017334, -0.011832041665911674, -0.05910034850239754, 0.037251975387334824, 0.005172776989638805, 0.010874303989112377, -0.00390327675268054, -0.01755850948393345, 0.024242715910077095, 0.04736807197332382, -0.010151013731956482, 0.000986419152468443, 0.022407053038477898, 0.03433885797858238, -0.012939424254000187, -0.027016161009669304, -0.03914749622344971, -0.008040999062359333, 0.06360968947410583, 0.03433885797858238, -0.02396337501704693, 0.053792890161275864, 0.02853257767856121, -0.036433909088373184, -0.03535645455121994, 0.0005265682120807469, -0.05646657198667526, 0.07282791286706924, 0.01590242236852646, -0.059898462146520615, 0.00637992424890399, -0.03980594128370285, 0.047487787902355194, 0.014126619324088097, -0.04022495076060295, -0.026118284091353416, 0.0006057561258785427, -0.002323260297998786, -0.02996918372809887, -0.12306918948888779, -0.007681848015636206, 0.002158649265766144, -0.024442244321107864, -0.06161440536379814, -0.07250866293907166, -0.002527776872739196, 0.002481635892763734, 0.057224780321121216, -0.014515699818730354, 0.05331401899456978, -0.0013368410291150212, -0.005227647256106138, 0.00637992424890399, 0.0032248797360807657, -0.02089063636958599, 0.038289524614810944, -0.03639400377869606, 0.00868447870016098, -0.0025489768013358116, -0.06771998107433319, 0.007267826236784458, 0.0004654626245610416, 0.04002542048692703, -0.0020339437760412693, 0.03358064964413643, -0.00262379995547235, -0.026597151532769203, 0.013368410989642143, 0.016610749065876007, -0.013049164786934853, -0.0020638732239603996, 0.059898462146520615, 0.018685845658183098, 0.031884659081697464, 0.005871126893907785, -0.03352079167962074, 0.01890532672405243, 0.032822441309690475, -0.025699272751808167, -0.03461819887161255, 0.036753155291080475, -0.0219082310795784, -0.03599494323134422, -0.024202808737754822, 0.011752230115234852, 0.03669329360127449, -0.036753155291080475, -0.003963135182857513, 0.03008890151977539, -0.043457310646772385, -0.052994776517152786, -0.01116362027823925, -0.021529126912355423, -0.005337387789040804, -0.039546553045511246, -0.0028831870295107365, -0.0021773548796772957, -0.04269910231232643, 0.03090696781873703, 0.04868495836853981, 0.028452767059206963, -0.021768562495708466, 0.0640486553311348, 0.02996918372809887, -0.0525159053504467, -0.003691277699545026, -0.05965902656316757, 0.008544809184968472, 0.0008511138730682433, 0.03162527084350586, 0.005851173773407936, -0.04720844700932503, 0.03697263449430466, 0.019144762307405472, 0.02438238449394703, -0.011183573864400387, 0.029111210256814957, -0.005671598017215729, 0.01069472823292017, -0.003264785511419177, 0.047487787902355194, -0.027115926146507263, 0.0032099150121212006, 0.011323243379592896, -0.004057911224663258, -0.05738440155982971, -0.022885920479893684, 0.050919678062200546, 0.026537293568253517, -0.035496123135089874, 0.04028480872511864, 0.013218764215707779, -0.02905135229229927, 0.08659537881612778, 0.02947036176919937, -0.07629970461130142, 0.0174786988645792, 0.05223656818270683, -0.04768731817603111, 0.009587345644831657, 0.057105060666799545, -0.018147118389606476, -0.04044442996382713, 0.006444771308451891, -0.012829683721065521, 0.0007837729644961655, 0.04505354166030884, 0.021768562495708466, 0.017339028418064117, -0.01767822727560997, -0.03487758710980415, 0.046569958329200745, -0.03358064964413643, 0.029111210256814957, -0.0028133520390838385, -0.04122259095311165, 0.03433885797858238, 0.030567768961191177, 0.04696901515126228, -0.08954840153455734, -0.0041501931846141815, -0.012769825756549835, 0.009776897728443146, 0.0007825259235687554, 0.05778345838189125, -0.0063300421461462975, 0.01611192710697651, -0.026537293568253517, 0.012081451714038849, 0.0029056339990347624, 0.02571922540664673, -0.008774266578257084, 0.052755340933799744, 0.028293143957853317, 0.022187571972608566, -0.05076005682349205, -0.029929278418421745, 0.006674229167401791, 0.020950494334101677, -0.04233995079994202, 0.03868858143687248, 0.038509003818035126, -0.0054770577698946, -0.012690014205873013, -0.035915132611989975, 0.03264286741614342, 0.0021324611734598875, 0.035296596586704254, -0.001636133878491819, -0.0010593717452138662, -0.039746079593896866, 0.00843007955700159, 0.0016199222300201654, -0.03459824621677399, 0.010904233902692795, 0.0026163177099078894, -0.031086543574929237, 0.03914749622344971, 0.020331956446170807, -0.012660084292292595, 0.020122451707720757, -0.006684205494821072, -0.07059319317340851, 0.014176500961184502, -0.004489391576498747, -0.0011878182413056493, 0.05451119318604469, -0.041102875024080276, 0.003042809898033738, -0.0214892216026783, -0.008285421878099442, -0.0025589533615857363, 0.007262838073074818, -0.02234719507396221, -0.05479053035378456, 0.016510985791683197, -0.06408856064081192, 0.026297859847545624, -0.0386287197470665, -0.005307458806782961, -0.0100761903449893, 0.0011878182413056493, 0.03535645455121994, -0.02677672728896141, 0.04457467049360275, -0.018655916675925255, -0.04700892046093941, 0.035496123135089874, -0.0024467185139656067, 0.015682941302657127, 0.010106119327247143, 0.016291502863168716, 0.07989121973514557, 0.035595886409282684, 0.046250712126493454, -0.005197717808187008, 0.03180484473705292, -0.0173490047454834, -0.010315624065697193, 0.015333767049014568, 0.08867047727108002, -0.004115275572985411, -0.0064697121270000935, -0.02462182007730007, -0.033221498131752014, 0.010664799250662327, -0.006524582393467426, 0.0508398674428463, -0.006494653411209583, -0.028772013261914253, 0.006120537407696247, 0.010001366958022118, 0.03280248865485191, 0.04052424430847168, -0.03441866859793663, 0.06352987885475159, -0.020431719720363617, 0.004741296637803316, 0.025898801162838936, 0.05910034850239754, 0.062372613698244095, 0.020421743392944336, 0.07119177281856537, 0.029749702662229538, -0.0072977556847035885, -0.008310362696647644, -0.03439871594309807, 0.035176876932382584, -0.09162349998950958, 0.061255257576704025, 0.008355257101356983, 0.02851262502372265, 0.02036188542842865, 0.003217397490516305, -0.01571287028491497, 0.02336478978395462, -0.030228570103645325, -0.030847109854221344, 0.05506987124681473, -0.024961017072200775, 0.0454925037920475, -0.018685845658183098, -0.014256312511861324, 0.01241067424416542, -0.01048522349447012, 0.046250712126493454, 0.004397109616547823, 0.0030926920007914305, -0.0007444907678291202, -0.04106296971440315, 0.0027559876907616854, -0.0683983787894249, 0.04457467049360275, 0.050281185656785965, 0.013647750951349735, 0.004422050900757313, 0.015034474432468414, -0.003481772728264332, 0.0191048551350832, -0.002393095288425684, -0.015224026516079903, 0.08819160610437393, 0.018346646800637245, -0.024961017072200775, 0.007936246693134308, -0.035516075789928436, -0.025380028411746025, 0.0438164621591568, 0.030847109854221344, -0.0003229868016205728, -0.015742801129817963, 0.0164311733096838, 0.023205166682600975, -0.010555058717727661, -0.0005957796820439398, -0.00501065980643034, -0.005347364116460085, 0.06169421970844269, 0.055668458342552185, -0.04050428792834282, 0.11421012133359909, 0.01994287595152855, 0.006539547350257635, 0.008579726330935955, -0.06269185990095139, -0.008395162411034107, 0.0205713901668787, 0.0029904337134212255, -0.02490115910768509, -0.043776556849479675, 0.06903687119483948, -0.03834938257932663, -0.04621080681681633, -0.0471685416996479, -0.0316053181886673, 0.012071475386619568, -0.031485602259635925, 0.020232191309332848, 0.03677310794591904, -0.01301923580467701, -0.007986129261553288, 0.013887184672057629, 0.03342102840542793, -0.03132597729563713, 0.01890532672405243, 0.040564149618148804, -0.023604223504662514, -0.005581810139119625, 0.0328623466193676, 0.005651645362377167, 0.06771998107433319, 0.02418285608291626, 0.04453476518392563, 0.026477433741092682, -0.0016099457861855626, 0.005367317236959934, 0.011812088079750538, -0.019603677093982697, 0.007876388728618622, -0.03970617428421974, -0.04060405492782593, -0.007621989585459232, -0.008634597063064575, 0.07051338255405426, -0.004646520595997572, -0.06101582199335098, 0.03216399624943733, -0.033341214060783386, 0.006519594229757786, 0.01911483146250248, 0.0025863884948194027, -0.008564761839807034, 0.04401599243283272, -0.005960914772003889, -0.02945040911436081, -0.0009508780785836279, -0.026218047365546227, -0.04074372351169586, -0.06013789772987366, -0.07015422731637955, -0.03006894886493683, 0.04796665534377098, 0.04206061363220215, -0.059898462146520615, -0.0018980150343850255, -0.01322874054312706, 0.05977874621748924, 0.011981687508523464, -0.03948669508099556, 0.014585535041987896, -0.04289863258600235, -0.0059110322035849094, 0.055349212139844894, 0.007123168092221022, 0.016680585220456123, -0.022806109860539436, -0.04908401519060135, -0.028572484850883484, -0.033141687512397766, 0.030228570103645325, 0.054431378841400146, -0.02623800002038479, -0.04445495456457138, -0.036214426159858704, 0.04361693561077118, -0.02781427651643753, -0.04361693561077118, -0.0560276098549366, 0.0500018484890461, 0.00017552274221088737, -0.013238716870546341, -0.01901506818830967, -0.016670607030391693, -0.09760934859514236, 0.030627628788352013, -0.015323790721595287, 0.03619447350502014, -0.04876476898789406, 0.02851262502372265, -0.000008597847227065358, -0.007631965912878513, 0.021529126912355423, -0.06189374625682831, 0.03264286741614342, -0.027115926146507263, 0.007033380214124918, -0.009278075769543648, 0.025040829554200172, 0.0324433371424675, 0.05427175760269165, 0.04134231060743332, 0.0034418669529259205, 0.04557231441140175, -0.038509003818035126, 0.006120537407696247, -0.07326687127351761, 0.014376030303537846, -0.01903502084314823, -0.030348287895321846, -0.0191048551350832, -0.045412689447402954, 0.03920735418796539, 0.07354621589183807, 0.0077267419546842575, 0.03691277652978897, 0.027734464034438133, 0.06360968947410583, 0.05590789020061493, 0.022885920479893684, -0.020910589024424553, -0.0013518057530745864, 0.012201168574392796, 0.019763300195336342, -0.021768562495708466, 0.06408856064081192, 0.0525159053504467, 0.023125356063246727, 0.04992203414440155, -0.06676224619150162, 0.07187017053365707, -0.03557593375444412, -0.04425542429089546, 0.000905984197743237, 0.04485401138663292, -0.017698179930448532, 0.0401451401412487, -0.022047901526093483, 0.06795941293239594, -0.013647750951349735, -0.025559604167938232, 0.06704158335924149, 0.03814985230565071, -0.08388178795576096, -0.019703442230820656, 0.055349212139844894, 0.015852540731430054, -0.04174136742949486, -0.028053710237145424, 0.04684929549694061, -0.016979876905679703, 0.013318528421223164, 0.008160716854035854, 0.04194089397788048, -0.07745697349309921, -0.04226014018058777, 0.02883187122642994, 0.016890089958906174, 0.024442244321107864, 0.021888278424739838, -0.041900988668203354, -0.01163251232355833, -0.025898801162838936, -0.00022805486514698714, 0.005107929930090904, -0.042938537895679474, -0.010001366958022118, -0.008115822449326515, 0.008879018947482109, 0.007487307768315077, 0.000018130986063624732, 0.002206037286669016, 0.0028607400599867105, -0.026996208354830742, -0.01655089110136032, -0.09274085611104965, 0.00460412073880434, 0.027953945100307465, -0.027874134480953217, -0.028911681845784187, 0.005212682764977217, -0.05076005682349205, -0.035496123135089874, 0.0018057330744341016, -0.04764740914106369, -0.024242715910077095, 0.007696812506765127, 0.08168697357177734, 0.050400905311107635, 0.01995285227894783, 0.016301479190587997, 0.022047901526093483, 0.05175769701600075, -0.041900988668203354, 0.0346980094909668, -0.013178858906030655, -0.071072056889534, -0.010200895369052887, 0.029131164774298668, 0.029689844697713852, 0.014555605128407478, 0.01322874054312706, 0.03822966292500496, 0.0008623372996225953, -0.048126280307769775, -0.03970617428421974, 0.001358040957711637, 0.034039564430713654, 0.020092522725462914, -0.040564149618148804, 0.0045417677611112595, 0.01840650662779808, -0.004030476324260235, -0.002216013614088297, -0.06253223866224289, -0.023085448890924454, -0.00637992424890399, 0.002581400331109762, -0.015742801129817963, -0.02130964584648609, -0.005521951708942652, -0.038908060640096664, 0.07446404546499252, -0.06213318184018135, 0.010126071982085705, -0.007387543562799692, -0.061135537922382355, -0.043138064444065094, -0.02004263922572136, -0.011582630686461926, 0.011403054930269718, 0.009537463076412678, 0.004873483907431364, -0.028791965916752815, 0.025060782209038734, 0.005806279834359884, -0.02831309661269188, 0.04569203034043312, 0.029330693185329437, 0.03910759091377258, -0.051717791706323624, 0.07031384855508804, 0.0022446957882493734, -0.015533295460045338, 0.026277905330061913, -0.027854181826114655, 0.060417234897613525, -0.013298575766384602, -0.0005328034749254584, 0.007118179928511381, 0.04752769321203232, 0.04421551898121834, -0.035077113658189774, 0.018865421414375305, -0.013577915728092194, -0.00021215493325144053, -0.022087806835770607, -0.017329052090644836, -0.007921282202005386, 0.017658274620771408, 0.02603847160935402, 0.017718132585287094, -0.04820609092712402, -0.04836571216583252, -0.03204428032040596, -0.062173087149858475, 0.04525306820869446, -0.0038060066290199757, -0.06325054168701172, -0.0013069118140265346, 0.0012464297469705343, -0.038509003818035126, -0.028652295470237732, 0.07143121212720871, -0.020531484857201576, 0.019254501909017563, 0.014655370265245438, 0.007796576712280512, -0.0026487410068511963, -0.03164522349834442, -0.033221498131752014, 0.05778345838189125, -0.050480715930461884, -0.011333219707012177, -0.003042809898033738, 0.09250142425298691, 0.07697810232639313, -0.00822057481855154, 0.013777444139122963, -0.0023881068918854, 0.011981687508523464, -0.012600226327776909, -0.013158906251192093, 0.013677679933607578, -0.027056068181991577, 0.017618367448449135, -0.08483953028917313, 0.020930541679263115, -0.01942410133779049, -0.04597137123346329, -0.0841212272644043, -0.04912392050027847, 0.00868946686387062, -0.010375482961535454, -0.012590250000357628, -0.02986941859126091, 0.0170596893876791, -0.02097044698894024, -0.003264785511419177, 0.009377840906381607, -0.043177973479032516, -0.07645932585000992, 0.019593700766563416, -0.00238935393281281, -0.025918755680322647, -0.03898787125945091, -0.026497388258576393, -0.01033557765185833, -0.05135864019393921, 0.033959753811359406, 0.04249957576394081, -0.04868495836853981, -0.00914339441806078, -0.08404140919446945, 0.06097591668367386, -0.02739526517689228, 0.000026792160497279838, 0.03112644888460636, 0.02138945646584034, -0.04629061743617058, -0.018456388264894485, 0.003312173532322049, -0.07362602651119232, -0.02851262502372265, 0.03878834471106529, 0.006250231061130762, 0.05850176140666008, 0.04876476898789406, 0.031485602259635925, -0.014555605128407478, -0.03910759091377258, -0.013438246212899685, -0.001659827888943255, -0.0016885100631043315, 0.06712139397859573, -0.0508398674428463, -0.0006344383582472801, -0.04437514394521713, 0.04704882577061653, -0.012460555881261826, -0.037690937519073486, 0.009577369317412376, 0.07286781817674637, -0.018755681812763214, -0.03836933523416519, -0.002938057528808713, 0.03419918939471245, -0.01622166857123375, -0.0060407258570194244, -0.001870579901151359, -0.058342140167951584, 0.004788684658706188, -0.02665700949728489, 0.05491025000810623, -0.026477433741092682, -0.02789408713579178, 0.03431890532374382, -0.02551969699561596, 0.010395435616374016, -0.07418470084667206, 0.034059517085552216, 0.03182479739189148, 0.07187017053365707 ]
30,194
networkx.classes.multigraph
has_edge
Returns True if the graph has an edge between nodes u and v. This is the same as `v in G[u] or key in G[u][v]` without KeyError exceptions. Parameters ---------- u, v : nodes Nodes can be, for example, strings or numbers. key : hashable identifier, optional (default=None) If specified return True only if the edge with key is found. Returns ------- edge_ind : bool True if edge is in the graph, False otherwise. Examples -------- Can be called either using two nodes u, v, an edge tuple (u, v), or an edge tuple (u, v, key). >>> G = nx.MultiGraph() # or MultiDiGraph >>> nx.add_path(G, [0, 1, 2, 3]) >>> G.has_edge(0, 1) # using two nodes True >>> e = (0, 1) >>> G.has_edge(*e) # e is a 2-tuple (u, v) True >>> G.add_edge(0, 1, key="a") 'a' >>> G.has_edge(0, 1, key="a") # specify key True >>> G.has_edge(1, 0, key="a") # edges aren't directed True >>> e = (0, 1, "a") >>> G.has_edge(*e) # e is a 3-tuple (u, v, 'a') True The following syntax are equivalent: >>> G.has_edge(0, 1) True >>> 1 in G[0] # though this gives :exc:`KeyError` if 0 not in G True >>> 0 in G[1] # other order; also gives :exc:`KeyError` if 0 not in G True
def has_edge(self, u, v, key=None): """Returns True if the graph has an edge between nodes u and v. This is the same as `v in G[u] or key in G[u][v]` without KeyError exceptions. Parameters ---------- u, v : nodes Nodes can be, for example, strings or numbers. key : hashable identifier, optional (default=None) If specified return True only if the edge with key is found. Returns ------- edge_ind : bool True if edge is in the graph, False otherwise. Examples -------- Can be called either using two nodes u, v, an edge tuple (u, v), or an edge tuple (u, v, key). >>> G = nx.MultiGraph() # or MultiDiGraph >>> nx.add_path(G, [0, 1, 2, 3]) >>> G.has_edge(0, 1) # using two nodes True >>> e = (0, 1) >>> G.has_edge(*e) # e is a 2-tuple (u, v) True >>> G.add_edge(0, 1, key="a") 'a' >>> G.has_edge(0, 1, key="a") # specify key True >>> G.has_edge(1, 0, key="a") # edges aren't directed True >>> e = (0, 1, "a") >>> G.has_edge(*e) # e is a 3-tuple (u, v, 'a') True The following syntax are equivalent: >>> G.has_edge(0, 1) True >>> 1 in G[0] # though this gives :exc:`KeyError` if 0 not in G True >>> 0 in G[1] # other order; also gives :exc:`KeyError` if 0 not in G True """ try: if key is None: return v in self._adj[u] else: return key in self._adj[u][v] except KeyError: return False
(self, u, v, key=None)
[ 0.022987591102719307, -0.04800575226545334, -0.05156882852315903, 0.09861676394939423, -0.014434291049838066, 0.02547791227698326, 0.003120086621493101, 0.021646648645401, 0.05375264957547188, -0.05356108769774437, -0.01391707081347704, -0.016790518537163734, 0.07237260043621063, -0.013840445317327976, -0.010488088242709637, 0.001284671132452786, 0.001231991220265627, 0.010468931868672371, 0.03852337226271629, 0.0196735467761755, -0.04563036561012268, -0.034232351928949356, 0.045285552740097046, -0.020765457302331924, -0.0020892368629574776, 0.011742827482521534, 0.020094985142350197, 0.021933993324637413, 0.057009223848581314, 0.004211997147649527, -0.09547512978315353, -0.046434931457042694, -0.005636748857796192, 0.03896396607160568, 0.028945207595825195, 0.05743066221475601, 0.0021311412565410137, 0.023849625140428543, -0.06700882315635681, -0.029903024435043335, -0.004927964881062508, -0.003821686841547489, 0.06754520535469055, 0.023945406079292297, 0.0403815358877182, 0.02641657367348671, 0.003076984779909253, 0.04497905075550079, -0.055859845131635666, -0.010239056311547756, 0.010104961693286896, -0.029596522450447083, 0.03122481144964695, -0.03369597718119621, -0.05187533050775528, 0.0024615877773612738, -0.017959054559469223, 0.028523769229650497, -0.008333001285791397, 0.06352237612009048, -0.032757315784692764, 0.0038456323090940714, 0.028772801160812378, 0.01660853438079357, -0.02141677215695381, -0.01211637631058693, -0.05068763718008995, -0.0466264970600605, -0.03335116431117058, 0.02091870829463005, 0.002722592791542411, 0.008174962364137173, 0.01166620198637247, 0.041645850986242294, -0.004379614721983671, -0.002899788785725832, -0.007758311927318573, 0.05892485752701759, -0.009573373943567276, 0.019012652337551117, 0.0010003193747252226, -0.07398173213005066, -0.005876203067600727, -0.02141677215695381, 0.03743145987391472, 0.04992138594388962, 0.0025813148822635412, 0.02233627624809742, 0.0489252544939518, 0.0010182784171774983, -0.01894560642540455, -0.005363771226257086, -0.01827513426542282, 0.016493596136569977, 0.012288782745599747, -0.013026301749050617, 0.03674183413386345, -0.027929922565817833, -0.00606776587665081, -0.04003671929240227, -0.021186895668506622, -0.029826398938894272, 0.03490282595157623, 0.015564514324069023, -0.01775791309773922, -0.03865746408700943, -0.02955820970237255, 0.006915433332324028, -0.020037516951560974, -0.05972942337393761, -0.02909845858812332, -0.03676098957657814, 0.02783414162695408, 0.025267193093895912, 0.007413498125970364, 0.021972306072711945, 0.028523769229650497, -0.011426747776567936, -0.03139721602201462, -0.02645488642156124, 0.02233627624809742, 0.04390629753470421, -0.0007967834244482219, -0.011388435959815979, 0.04195235297083855, -0.1045169085264206, 0.011608732864260674, 0.03946202993392944, 0.017805805429816246, -0.03859999403357506, 0.034251511096954346, 0.028926052153110504, -0.0028949996922165155, 0.03779543191194534, 0.01044019777327776, -0.0055361781269311905, -0.053216271102428436, 0.009549428708851337, -0.0105647137388587, 0.033274538815021515, -0.012106797657907009, -0.028753643855452538, 0.012106797657907009, 0.026339948177337646, -0.014443869702517986, -0.019309576600790024, -0.06168336793780327, -0.05405915156006813, 0.039768531918525696, 0.024922380223870277, -0.022029774263501167, -0.021723272278904915, 0.008179751224815845, -0.016972504556179047, -0.01598595455288887, -0.02781498432159424, -0.0029452850576490164, 0.022738559171557426, 0.008625135757029057, -0.014185259118676186, 0.014568385668098927, 0.017116175964474678, -0.013179551810026169, 0.009338708594441414, -0.02398371882736683, 0.019022231921553612, -0.006374267395585775, 0.03405994549393654, 0.03777627274394035, 0.05980604887008667, -0.017892008647322655, -0.0378912128508091, -0.07516942173242569, 0.00888853520154953, -0.0324699729681015, 0.008519776165485382, 0.00534461485221982, 0.01274853479117155, -0.0016582193784415722, 0.005665483418852091, 0.01394580490887165, -0.01368719432502985, 0.022968433797359467, -0.05375264957547188, -0.0015061660669744015, 0.03097577765583992, 0.03796783834695816, -0.03651195764541626, -0.004990222863852978, -0.005018957424908876, -0.05022788420319557, -0.06455681473016739, 0.016273299232125282, 0.053905900567770004, 0.0259185079485178, -0.04379136115312576, 0.0368376150727272, 0.04497905075550079, -0.03474957495927811, 0.05045776069164276, 0.07417329400777817, -0.07103165239095688, 0.0007698448025621474, 0.06402043998241425, -0.03026699461042881, 0.02111027017235756, 0.014798261225223541, -0.04172247648239136, 0.031186498701572418, -0.016522331163287163, -0.01357225701212883, -0.06892445683479309, 0.03821687027812004, 0.062334682792425156, 0.0187348872423172, 0.06156843155622482, -0.07030371576547623, 0.047162871807813644, -0.041914038360118866, 0.008203696459531784, 0.05333121120929718, -0.02135930210351944, 0.06677895039319992, -0.003824081504717469, 0.048388879746198654, -0.0368376150727272, -0.00033194321440532804, 0.02689548023045063, 0.004104242660105228, -0.017097020521759987, 0.05903979390859604, 0.04930838197469711, 0.029194239526987076, 0.02331324853003025, -0.03266153484582901, 0.014137368649244308, 0.013332802802324295, 0.03369597718119621, 0.06907770782709122, 0.025612007826566696, 0.029347490519285202, -0.01917548105120659, -0.05064932629466057, -0.01334238052368164, 0.028178954496979713, -0.019185060635209084, 0.0173843652009964, 0.04233548045158386, -0.010574291460216045, 0.031090715900063515, -0.0580819770693779, -0.026742231100797653, -0.0007800216553732753, -0.015296326018869877, 0.03486451134085655, -0.036147985607385635, -0.08689308911561966, -0.007518857717514038, 0.0043652476742863655, 0.012882628478109837, -0.021435927599668503, 0.030113743618130684, 0.02735523320734501, 0.07218103110790253, -0.0055218106135725975, 0.005627170670777559, 0.03779543191194534, 0.012662331573665142, -0.043867986649274826, -0.04727781191468239, -0.005186574999243021, 0.0013529155403375626, 0.020784612745046616, 0.00797382090240717, 0.025535382330417633, -0.007030371576547623, -0.012039750814437866, 0.006446103565394878, -0.002835136139765382, 0.0015468732453882694, -0.03867661952972412, 0.0006854372913949192, -0.01919463835656643, 0.0451706163585186, -0.05233507975935936, 0.0025310295168310404, -0.022451212629675865, -0.003036277601495385, 0.024788284674286842, -0.036147985607385635, 0.015334638766944408, -0.026569822803139687, -0.006077344063669443, 0.042412105947732925, -0.02520972490310669, 0.07846430689096451, 0.07145309448242188, 0.001181705854833126, 0.01575607806444168, 0.00841920543462038, 0.06865627318620682, 0.005062059033662081, -0.05448058992624283, -0.0894983559846878, 0.013744663447141647, 0.014721635729074478, 0.05494034290313721, 0.022661933675408363, 0.004484974779188633, -0.00012923036410938948, -0.06367562711238861, -0.0032589698676019907, 0.004947121255099773, 0.023217465728521347, -0.002064094180241227, -0.033964164555072784, -0.02781498432159424, -0.05892485752701759, -0.009587740525603294, 0.029922179877758026, -0.02716366946697235, 0.07061021775007248, -0.0030506448820233345, 0.0068914880976080894, -0.0225853081792593, 0.020344017073512077, 0.04451930150389671, -0.014587542042136192, 0.028504611924290657, 0.03306381776928902, -0.0009865508181974292, -0.05091751366853714, 0.022623620927333832, 0.03076505847275257, -0.08206570148468018, 0.017537616193294525, 0.009266872890293598, 0.05907810851931572, 0.05838847905397415, 0.025516225025057793, 0.011177715845406055, 0.04298679530620575, -0.04233548045158386, -0.04325498268008232, 0.05666441097855568, -0.022508682683110237, -0.05708584934473038, -0.007916351780295372, -0.006814862601459026, 0.04451930150389671, -0.027949078008532524, 0.05156882852315903, 0.013629725202918053, -0.039538655430078506, 0.021282678470015526, 0.0038360541220754385, 0.050112947821617126, -0.012633596546947956, 0.021512553095817566, 0.06379056721925735, 0.07459472864866257, -0.012604862451553345, -0.021263521164655685, -0.020056672394275665, -0.050304509699344635, -0.001616314984858036, -0.016512753441929817, 0.016953347250819206, -0.0254970695823431, -0.00039719443884678185, 0.01660853438079357, -0.034979451447725296, -0.022183025255799294, 0.03139721602201462, -0.004185657016932964, 0.0029476794879883528, 0.003096141153946519, 0.011455482803285122, 0.033772602677345276, -0.026071758940815926, 0.025746101513504982, 0.04877200350165367, 0.021761585026979446, 0.04061140865087509, 0.030113743618130684, -0.03459632396697998, 0.07187453657388687, 0.018208086490631104, 0.03126312419772148, 0.00702079338952899, -0.04497905075550079, -0.0044777910225093365, -0.01996089145541191, 0.006848386488854885, -0.06697051227092743, -0.08589696139097214, 0.10321427881717682, -0.02861955016851425, -0.0117619838565588, -0.06252624839544296, 0.03547751531004906, -0.0018605581717565656, -0.03787205368280411, 0.027470171451568604, 0.023907093331217766, 0.01116813812404871, -0.017336474731564522, 0.039998408406972885, 0.029615679755806923, -0.03306381776928902, 0.03149300068616867, -0.019012652337551117, -0.04965319484472275, 0.029117614030838013, -0.042143914848566055, -0.03404079005122185, 0.02091870829463005, 0.0008823882672004402, 0.0009195036254823208, -0.012681487016379833, 0.00894121453166008, 0.007916351780295372, -0.012758112512528896, -0.008486252278089523, -0.01885940320789814, -0.04762262478470802, -0.040228284895420074, -0.016397815197706223, -0.001624695840291679, 0.04804406315088272, -0.062334682792425156, -0.07877080887556076, 0.0990765169262886, -0.01093826163560152, -0.023907093331217766, -0.005014168098568916, -0.02333240397274494, -0.029481584206223488, 0.007245880085974932, 0.019156325608491898, -0.03072674572467804, 0.0012559365713968873, -0.048886943608522415, -0.023830469697713852, -0.021704116836190224, -0.04582193121314049, -0.03381091356277466, 0.06034242361783981, 0.07172128558158875, -0.033006347715854645, -0.04999800771474838, 0.028006548061966896, -0.014501338824629784, -0.027278607711195946, -0.03915552794933319, -0.01669473759829998, -0.051492203027009964, 0.025573695078492165, 0.00667119026184082, 0.054595526307821274, -0.012604862451553345, -0.00244362885132432, -0.07344534993171692, -0.03099493496119976, -0.03741230443120003, 0.01775791309773922, 0.054633840918540955, 0.0000042044766814797185, -0.002619627397507429, 0.0015875804238021374, -0.014807839877903461, -0.016637269407510757, -0.07413498312234879, -0.013648881576955318, 0.05666441097855568, 0.009894242510199547, 0.008261165581643581, 0.027297763153910637, -0.05084088817238808, -0.0259185079485178, -0.014127789996564388, -0.028025703504681587, 0.0220680870115757, -0.02063136175274849, 0.05264158174395561, -0.01451091654598713, -0.0343472920358181, 0.028638707473874092, -0.055361781269311905, -0.02856208197772503, 0.04248873144388199, -0.056587785482406616, -0.014070320874452591, 0.03651195764541626, 0.09647125750780106, -0.016254141926765442, -0.01713533326983452, -0.01605300046503544, 0.009051363915205002, -0.02429022081196308, 0.011436326429247856, 0.04294848069548607, 0.026320790871977806, 0.012997566722333431, -0.005224887747317553, -0.03097577765583992, -0.0014115817612037063, 0.02668476104736328, 0.04781418666243553, 0.02235543169081211, 0.038753245025873184, 0.03354272618889809, 0.05455721542239189, 0.059461236000061035, 0.06459513306617737, 0.04582193121314049, -0.022029774263501167, -0.045515429228544235, 0.026282478123903275, 0.003354751504957676, 0.06624257564544678, 0.032297566533088684, 0.07034202665090561, 0.0324699729681015, -0.0701504647731781, 0.09662450850009918, -0.051492203027009964, -0.01948198303580284, -0.030362775549292564, 0.005459552630782127, -0.03078421577811241, 0.05938461050391197, -0.025152254849672318, 0.053905900567770004, -0.05133895203471184, 0.015918906778097153, 0.053905900567770004, 0.05402083694934845, -0.050534386187791824, 0.025784414261579514, 0.0343472920358181, 0.013447740115225315, -0.027757516130805016, -0.0061491806991398335, 0.018782777711749077, 0.0225853081792593, 0.018562478944659233, -0.029653992503881454, 0.048618752509355545, -0.043293297290802, -0.02689548023045063, 0.07160634547472, 0.027201982215046883, -0.014606698416173458, 0.06727701425552368, 0.016895879060029984, -0.026799699291586876, 0.01912759058177471, -0.01919463835656643, 0.025841882452368736, -0.03484535589814186, -0.030592652037739754, -0.017432255670428276, -0.01044019777327776, -0.04007503390312195, -0.06011255085468292, -0.008922058157622814, -0.07026540488004684, 0.08060982078313828, 0.024884067475795746, -0.04700962454080582, 0.003759428858757019, -0.028504611924290657, -0.04271860420703888, -0.06118530407547951, -0.014281040988862514, -0.037393148988485336, 0.023428186774253845, -0.012930519878864288, -0.04946163296699524, -0.06298600137233734, -0.008131859824061394, 0.05555334314703941, 0.07356029003858566, 0.010717963799834251, 0.05562996864318848, 0.009391388855874538, 0.03965359553694725, -0.04827393963932991, 0.019118012860417366, -0.01609131321310997, -0.07225766032934189, 0.019788485020399094, -0.019616076722741127, 0.04593686759471893, 0.03890649601817131, 0.04206728935241699, -0.005047691985964775, 0.026014290750026703, -0.045706991106271744, 0.00654188496991992, -0.013294490054249763, 0.03915552794933319, -0.03668436408042908, -0.017537616193294525, 0.008385681547224522, 0.023849625140428543, 0.01489404309540987, -0.0010625774739310145, -0.07616554945707321, -0.023466499522328377, -0.0034098259638994932, -0.005497865378856659, -0.02499900385737419, -0.03191443905234337, 0.014463026076555252, -0.028217267245054245, 0.0822189524769783, -0.04114778712391853, 0.022930121049284935, 0.007662530057132244, -0.03101409040391445, -0.01390749216079712, -0.01965438947081566, -0.01151295192539692, -0.022432057186961174, 0.03656942397356033, -0.012078063562512398, -0.024175282567739487, -0.02812148630619049, -0.013581834733486176, -0.011771561577916145, 0.026339948177337646, 0.019596921280026436, 0.032048530876636505, -0.0963946282863617, 0.025995133444666862, -0.021550865843892097, -0.0013720717979595065, 0.053676024079322815, -0.10168177634477615, 0.0324699729681015, -0.0657828226685524, 0.001190685317851603, 0.02568863332271576, 0.08474758267402649, 0.022642776370048523, -0.003955780994147062, 0.04785250127315521, -0.03678014501929283, 0.05382927507162094, 0.03819771483540535, 0.008309056051075459, -0.017269426956772804, 0.033964164555072784, 0.03777627274394035, 0.010143274441361427, -0.0347687304019928, -0.04030491039156914, 0.009353076107800007, 0.02572694420814514, 0.019165903329849243, 0.006910644471645355, -0.04160754010081291, -0.00781578104943037, 0.03653111308813095, -0.001501376973465085, -0.04965319484472275, 0.015593249350786209, 0.04336991906166077, -0.0023562279529869556, -0.013304067775607109, -0.02545875683426857, -0.056626096367836, -0.02043979987502098, -0.024539252743124962, 0.034941136837005615, -0.05333121120929718, -0.01619667373597622, -0.02687632478773594, 0.011579998768866062, 0.047201186418533325, -0.005114738829433918, 0.021225208416581154, -0.016560643911361694, 0.03384922817349434, -0.00942012295126915, -0.02547791227698326, 0.016062578186392784, -0.0591164194047451, 0.013466896489262581, -0.08145269751548767, 0.023907093331217766, 0.03197190910577774, -0.015420841984450817, -0.022393744438886642, -0.03095662221312523, 0.03894481062889099, -0.024596722796559334, -0.016024265438318253, -0.01802610233426094, -0.006125234998762608, -0.020765457302331924, 0.034941136837005615, -0.027949078008532524, -0.009817617014050484, -0.03411741554737091, -0.0014020035741850734, -0.0019240134861320257, 0.010421041399240494, -0.08060982078313828, -0.054174087941646576, 0.059652797877788544, -0.0807630717754364, 0.05214351788163185, -0.0055218106135725975, -0.0009578162571415305, -0.016244564205408096, -0.034921981394290924, 0.0012343857670202851, -0.009247716516256332, -0.046013493090867996, 0.002350241644307971, -0.004532865714281797, -0.023351561278104782, -0.04835056513547897, 0.02716366946697235, -0.06551463156938553, -0.012058907188475132, -0.0030290940776467323, 0.004353275056928396, 0.05448058992624283, 0.017719600349664688, 0.07539929449558258, -0.02210639975965023, -0.005684639792889357, -0.038274336606264114, 0.012422877363860607, 0.0006926208734512329, 0.037354834377765656, 0.013284911401569843, 0.006283274851739407, -0.0004115616902709007, -0.06034242361783981, 0.0193574670702219, -0.017499303445219994, -0.03170371800661087, 0.038753245025873184, -0.03773796185851097, 0.0008404837572015822, 0.02448178455233574, 0.03697170689702034, 0.009990023449063301, -0.0006950154202058911, 0.026033446192741394, 0.004458634648472071, -0.04363811016082764, -0.0029548632446676493, 0.01908927783370018, -0.03930877894163132, -0.08244882524013519, 0.02086123824119568, -0.03051602654159069, -0.01115855947136879, -0.04609011858701706, 0.052756521850824356, 0.02499900385737419, 0.07011215388774872 ]
30,199
networkx.classes.multidigraph
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 True
(self)
[ 0.032506778836250305, -0.0001329328224528581, 0.03216040879487991, 0.06501355767250061, -0.06342025846242905, 0.0007127634598873556, -0.05195542424917221, -0.0033294768072664738, 0.0523364320397377, 0.0062433104030787945, 0.003160621738061309, -0.038204554468393326, 0.007451273966580629, 0.03979785367846489, -0.01546539831906557, -0.015439420007169247, -0.02230619639158249, -0.015837745741009712, 0.05018894001841545, 0.04759116843342781, -0.0656716600060463, 0.023916814476251602, 0.01962183229625225, 0.0055678896605968475, 0.005810348317027092, 0.011075165122747421, 0.012200865894556046, 0.02055702917277813, 0.01024387776851654, 0.05940236896276474, -0.11090751737356186, -0.03506991267204285, 0.035537511110305786, 0.02746710181236267, 0.05704705789685249, 0.07020910084247589, -0.016071544960141182, 0.052232518792152405, -0.12857235968112946, 0.000155189773067832, -0.045686136931180954, -0.0283330250531435, -0.004004897549748421, 0.039520759135484695, 0.024973241612315178, -0.0068364678882062435, 0.018063168972730637, 0.02888721600174904, -0.04942692816257477, -0.023414578288793564, 0.04049059376120567, -0.03311292454600334, 0.00381872383877635, 0.060545388609170914, -0.1001700609922409, 0.02963191084563732, 0.003916140180081129, 0.04225707799196243, -0.03848165273666382, 0.029043082147836685, -0.00257179350592196, -0.004333948250859976, 0.07537000626325607, -0.022514017298817635, 0.0014244446065276861, -0.00881077442318201, -0.05715096741914749, 0.009100859053432941, -0.036403436213731766, 0.054345373064279556, -0.0870080217719078, 0.01785534806549549, -0.0239687692373991, 0.03532968834042549, 0.005836326163262129, -0.020799487829208374, 0.0016744800377637148, 0.06937780976295471, -0.02007211185991764, -0.0019147738348692656, -0.02180396020412445, -0.00665462389588356, -0.0098195755854249, 0.005160905420780182, 0.012079636566340923, 0.012962878681719303, 0.033874936401844025, 0.055661577731370926, -0.00984555296599865, -0.043538644909858704, -0.04575541242957115, 0.0003945365024264902, 0.035606782883405685, 0.05853644385933876, -0.029354814440011978, 0.04021349921822548, -0.014867911115288734, -0.05905599892139435, -0.008308538235723972, -0.0958750769495964, -0.045651499181985855, 0.003424728522077203, -0.029943643137812614, -0.046032506972551346, -0.028956489637494087, -0.07717112451791763, -0.042187806218862534, -0.025250336155295372, -0.010754773393273354, -0.042568810284137726, -0.07176776230335236, -0.00657236110419035, 0.026722406968474388, 0.07204485684633255, 0.0196391511708498, -0.02616821601986885, 0.014668748714029789, -0.03240286558866501, -0.008663566783070564, 0.007823620922863483, -0.004511462524533272, 0.04856100305914879, 0.01677294261753559, 0.007265100255608559, 0.06075321137905121, 0.016781602054834366, 0.07329178601503372, 0.012781034223735332, -0.012564553879201412, -0.011646674014627934, 0.03190062940120697, 0.0005466143484227359, -0.015569308772683144, 0.03806600719690323, -0.013499751687049866, -0.003519980004057288, -0.03574533388018608, -0.036888353526592255, 0.020193342119455338, 0.03061906434595585, -0.07176776230335236, 0.012815671041607857, 0.010269856080412865, 0.045686136931180954, -0.08035772293806076, 0.02351848967373371, -0.06788842380046844, -0.05192078649997711, -0.043053727596998215, -0.032472141087055206, 0.028246432542800903, -0.02137099765241146, 0.01837490126490593, -0.03526041656732559, -0.05704705789685249, 0.01828830875456333, -0.03534700721502304, 0.0141838314011693, 0.03015146404504776, 0.00014450102753471583, -0.0568392351269722, 0.0012967208167538047, -0.012763716280460358, 0.05850180983543396, -0.0072044855915009975, -0.05749733746051788, 0.03844701498746872, -0.06012974679470062, -0.054830290377140045, 0.065359927713871, -0.00980225671082735, 0.004303641151636839, -0.03758108988404274, -0.008014123886823654, -0.005429341923445463, 0.023743629455566406, 0.0481453612446785, 0.04617105424404144, 0.009672367945313454, 0.032939739525318146, 0.01597629301249981, -0.042984455823898315, -0.030220739543437958, 0.0026821987703442574, 0.026739725843071938, 0.019067641347646713, 0.0152835538610816, -0.029562637209892273, 0.06958562880754471, 0.003952941857278347, 0.024315139278769493, -0.03193526715040207, 0.006892752833664417, 0.012200865894556046, 0.04551295191049576, -0.061792317777872086, 0.0567353256046772, 0.031190574169158936, -0.03403080254793167, 0.06813088059425354, 0.008291220292448997, -0.062207963317632675, -0.02015870437026024, 0.023951450362801552, 0.0017318475292995572, 0.02708609402179718, -0.041321881115436554, 0.006944708526134491, 0.009984101168811321, -0.033874936401844025, -0.04575541242957115, -0.03500063717365265, 0.07377670705318451, 0.07724040001630783, 0.035606782883405685, -0.010824047029018402, -0.02312016487121582, 0.01752629689872265, -0.03584924340248108, 0.026341401040554047, 0.05341017618775368, -0.036403436213731766, 0.04004031419754028, 0.011681311763823032, -0.031692810356616974, -0.03633416071534157, -0.008542337454855442, 0.014027964323759079, 0.0035697706043720245, -0.0037970757111907005, 0.033338066190481186, -0.0018703952664509416, 0.03160621598362923, 0.03851628676056862, -0.030809566378593445, 0.004240861628204584, -0.010321810841560364, 0.013707572594285011, 0.03803136944770813, 0.03803136944770813, -0.004414046183228493, -0.05448392406105995, -0.02878330461680889, -0.009317339397966862, 0.01792462170124054, -0.010001419112086296, 0.02353580668568611, -0.0017589075723662972, 0.021076584234833717, 0.013898076489567757, -0.06421690434217453, -0.03785818815231323, -0.021197812631726265, -0.0262028519064188, 0.049946483224630356, -0.01608886383473873, -0.07966498285531998, -0.020383844152092934, 0.0394168496131897, -0.004879480227828026, -0.0023098515812307596, 0.05278671160340309, -0.00021878104598727077, 0.12178351730108261, -0.00678018294274807, -0.006767194252461195, 0.014227127656340599, 0.039451487362384796, -0.04530512914061546, -0.020002838224172592, 0.11561813950538635, 0.008559656329452991, -0.0026713747065514326, 0.01154276356101036, 0.004208389203995466, -0.043919652700424194, 0.004840513691306114, 0.020608985796570778, -0.0327838733792305, -0.030047554522752762, -0.036091700196266174, 0.012590531259775162, -0.03986712917685509, -0.014556177891790867, -0.028592802584171295, -0.01567322015762329, -0.010564269497990608, -0.02571793459355831, 0.004602384753525257, -0.0035589465405792, 0.010737454518675804, -0.019050322473049164, 0.005364397540688515, 0.05451855808496475, -0.009100859053432941, 0.002595606492832303, 0.035641420632600784, 0.011715948581695557, 0.023033572360873222, -0.005316772032529116, 0.0436079204082489, -0.037754274904727936, 0.030359286814928055, -0.005113279912620783, -0.012183547019958496, -0.007875576615333557, 0.019084960222244263, 0.03290510177612305, 0.020210660994052887, 0.03238554671406746, -0.04277663305401802, 0.045651499181985855, -0.05891745164990425, 0.04894201084971428, -0.018253672868013382, 0.03238554671406746, 0.0015727339778095484, -0.022496698424220085, 0.0007333291578106582, 0.06678003817796707, -0.043746467679739, 0.03266264498233795, -0.009057562798261642, 0.02220228500664234, -0.04236099123954773, -0.0023964440915733576, 0.029857050627470016, -0.01270310115069151, -0.0014742352068424225, 0.03451571986079216, -0.026497267186641693, 0.0032645324245095253, 0.03716544806957245, 0.032541412860155106, -0.05202469974756241, -0.003961601294577122, 0.0032602029386907816, -0.013785505667328835, 0.04859564080834389, -0.040352046489715576, 0.043538644909858704, -0.016868194565176964, 0.01827099174261093, -0.04876882582902908, -0.0001538367650937289, 0.04707161337137222, -0.056977782398462296, 0.003660692600533366, 0.028973808512091637, 0.03018610179424286, -0.05334090441465378, 0.08395996689796448, -0.01110114250332117, 0.026514586061239243, -0.05212860926985741, 0.0024072679225355387, -0.0392436645925045, -0.01767350360751152, -0.012434665113687515, 0.06203477829694748, 0.06709177047014236, 0.033771026879549026, 0.01705869846045971, 0.019864290952682495, 0.014253105036914349, 0.004450847860425711, 0.0027752856258302927, 0.04752189666032791, 0.021907871589064598, -0.0655331090092659, -0.03229895606637001, -0.02881794236600399, -0.031259845942258835, 0.002411597641184926, -0.01788998395204544, 0.0393129363656044, -0.00311732548289001, 0.006806160788983107, 0.009282702580094337, 0.003695329651236534, -0.0017740612383931875, -0.01830562762916088, 0.010988572612404823, 0.004840513691306114, 0.009022925049066544, -0.016132159158587456, 0.03446376696228981, 0.010633544065058231, -0.016331322491168976, 0.024159273132681847, 0.0007993558538146317, -0.015318190678954124, -0.010598906315863132, -0.0328531488776207, -0.07474654167890549, -0.015387465246021748, 0.05167832970619202, -0.015309532172977924, -0.032506778836250305, -0.03396153077483177, 0.006325573194772005, -0.006230321247130632, 0.008291220292448997, 0.006927390117198229, -0.02492128498852253, 0.013265951536595821, 0.023501170799136162, 0.061445947736501694, 0.02758833020925522, -0.05545375868678093, 0.06736886501312256, -0.04024813696742058, -0.09047171473503113, -0.005165235139429569, -0.01046901848167181, 0.001706952229142189, 0.05725487694144249, 0.017396407201886177, 0.057809069752693176, 0.04530512914061546, 0.07197558134794235, 0.06747277826070786, 0.045616861432790756, -0.025631342083215714, -0.02273915708065033, -0.05645822733640671, -0.018565405160188675, 0.02802129276096821, -0.01705869846045971, 0.03184867650270462, -0.019535239785909653, -0.05715096741914749, 0.09428177773952484, -0.03413471579551697, -0.007308396510779858, -0.021059265360236168, -0.029441406950354576, -0.020608985796570778, 0.0067888423800468445, 0.028558164834976196, 0.029943643137812614, -0.022150330245494843, -0.07647838443517685, -0.06903143972158432, 0.011326282285153866, -0.09012534469366074, -0.027155369520187378, -0.006680601742118597, 0.040386684238910675, 0.025943076238036156, -0.04759116843342781, 0.009343317709863186, 0.005572219379246235, -0.016720987856388092, -0.01003605592995882, 0.007390659302473068, 0.003695329651236534, -0.011897792108356953, 0.04679451882839203, 0.023258712142705917, 0.00025747701874934137, -0.0007760841399431229, -0.061792317777872086, 0.03969394415616989, -0.006871105171740055, -0.0026778692845255136, 0.02755369432270527, 0.002580452710390091, 0.008213287219405174, -0.008291220292448997, 0.024609552696347237, 0.002799098612740636, -0.010443040169775486, -0.04457775503396988, 0.008525019511580467, 0.0027514726389199495, -0.0481107234954834, -0.008096386678516865, -0.03011682815849781, -0.04104478657245636, -0.08188174664974213, -0.023674355819821358, -0.007840939797461033, -0.008191638626158237, 0.016530483961105347, -0.04197998344898224, 0.001574898837134242, -0.035987790673971176, -0.025423521175980568, -0.022877706214785576, 0.0003417692787479609, -0.031744763255119324, 0.011638015508651733, 0.00366285745985806, 0.0786258727312088, 0.016746966168284416, -0.03785818815231323, -0.03619561344385147, 0.0017264354974031448, -0.003879338502883911, 0.015664560720324516, 0.048734188079833984, -0.013378522358834743, -0.027224643155932426, 0.055730853229761124, 0.018651997670531273, 0.025977712124586105, -0.02923358604311943, -0.025908438488841057, 0.016002271324396133, -0.02142295427620411, -0.03848165273666382, 0.0037451202515512705, 0.08098118752241135, 0.0481107234954834, 0.008460074663162231, 0.011837177909910679, -0.01707601547241211, 0.056527502834796906, -0.014798636548221111, 0.0745387151837349, -0.03792745992541313, -0.017162607982754707, 0.019136914983391762, -0.039555396884679794, 0.02098999172449112, -0.032576050609350204, -0.0070139821618795395, -0.02926822192966938, -0.01642657443881035, 0.024089999496936798, 0.05081240460276604, -0.033009015023708344, 0.08548399060964584, -0.06186159327626228, 0.0019515756284818053, -0.012971538119018078, 0.07294541597366333, 0.011767903342843056, 0.009663709439337254, -0.0017459187656641006, -0.009655050002038479, -0.016504507511854172, 0.05534984543919563, 0.008663566783070564, 0.00470196595415473, 0.038135282695293427, -0.00919611006975174, 0.028263751417398453, 0.03309560567140579, -0.04682915657758713, 0.05399900674819946, -0.03191794827580452, -0.03524309769272804, 0.1092449426651001, 0.022929660975933075, 0.011845837347209454, 0.035173822194337845, 0.016288025304675102, 0.018478812649846077, -0.015699198469519615, -0.022098373621702194, 0.004940094891935587, -0.011395556852221489, 0.012339413166046143, -0.03217772766947746, 0.016279365867376328, -0.0051955427043139935, 0.028610121458768845, 0.06400908529758453, -0.004286322742700577, -0.06636439263820648, 0.009499183855950832, 0.014919865876436234, 0.02448832429945469, 0.014616793021559715, 0.003158456878736615, 0.02398608811199665, -0.052544254809617996, -0.04440457001328468, -0.03702690079808235, 0.03532968834042549, 0.026445310562849045, 0.04624032974243164, 0.05812080204486847, 0.021509546786546707, 0.0011928100138902664, 0.011153098195791245, -0.0009692934108898044, -0.005866633262485266, -0.023691674694418907, -0.04495876282453537, 0.047002341598272324, -0.01787266694009304, 0.005992192309349775, 0.012746397405862808, 0.03830846771597862, -0.012876286171376705, 0.009533820673823357, -0.023812903091311455, -0.03636879846453667, 0.03190062940120697, 0.026722406968474388, -0.043642558157444, -0.02010674960911274, -0.003426893148571253, -0.006065795663744211, -0.015967633575201035, -0.0006175118614919484, -0.04239562526345253, -0.0041153025813400745, 0.05413755401968956, -0.03138107806444168, -0.03882801905274391, 0.009074880741536617, 0.0008794537861831486, -0.08174320310354233, 0.05722024291753769, -0.021024629473686218, 0.012209524400532246, 0.011871814727783203, -0.020834125578403473, -0.01614081859588623, -0.02272184006869793, -0.038620200008153915, 0.04405819997191429, -0.01718858629465103, -0.06380125880241394, 0.017344452440738678, -0.027415145188570023, 0.028558164834976196, -0.037788912653923035, 0.03193526715040207, -0.0197430606931448, 0.02703413926064968, -0.11243154108524323, 0.002251401776447892, -0.012408687733113766, 0.011638015508651733, 0.05770516023039818, -0.12178351730108261, 0.02228887751698494, 0.002181045478209853, -0.029909005388617516, -0.014391652308404446, -0.019829653203487396, -0.0035935835912823677, -0.012079636566340923, 0.03626488521695137, -0.018582724034786224, -0.013153381645679474, 0.09095662832260132, 0.04759116843342781, -0.02699950337409973, 0.01179388165473938, 0.01219220645725727, 0.014867911115288734, 0.0023639719001948833, -0.008265241980552673, -0.046482786536216736, 0.02147490903735161, -0.010901980102062225, -0.018132442608475685, 0.03886265680193901, 0.05545375868678093, 0.03158889710903168, -0.015500035136938095, -0.0327838733792305, 0.016660373657941818, -0.045582227408885956, -0.025891119614243507, 0.06671076267957687, 0.021648094058036804, -0.015422102063894272, -0.05025821551680565, -0.002842394635081291, 0.008152672089636326, -0.03403080254793167, -0.020279934629797935, 0.021596137434244156, -0.022184966132044792, 0.04021349921822548, -0.03972858190536499, 0.007455603685230017, -0.000017521426343591884, 0.0007630952750332654, -0.03889729455113411, 0.009741642512381077, -0.01154276356101036, -0.061445947736501694, -0.0028488892130553722, -0.02971850335597992, 0.020210660994052887, 0.031277164816856384, 0.02966654673218727, 0.03882801905274391, -0.029112355783581734, 0.04329618811607361, -0.015716515481472015, 0.00447249598801136, 0.005113279912620783, -0.0005303783109411597, -0.04856100305914879, 0.016504507511854172, 0.0305671077221632, -0.00657236110419035, -0.028610121458768845, 0.004139115568250418, 0.04572077468037605, 0.004106643609702587, -0.05275207385420799, 0.02308552712202072, 0.057358790189027786, -0.018894456326961517, 0.02048775553703308, -0.03364979848265648, -0.005901270546019077, 0.01885981857776642, -0.0021799630485475063, -0.011733266524970531, -0.03678444027900696, -0.03145034983754158, -0.004719284363090992, 0.009040243923664093, -0.0436079204082489, 0.021821279078722, 0.03366711363196373, -0.0328185111284256, 0.024748099967837334, -0.018998367711901665, -0.020816806703805923, 0.040871601551771164, -0.05053531005978584, 0.05192078649997711, -0.034706223756074905, -0.010581588372588158, -0.006866775453090668, 0.012876286171376705, -0.016071544960141182, 0.004762580618262291, 0.02483469247817993, -0.04682915657758713, 0.030705656856298447, -0.01135226059705019, -0.059229183942079544, -0.04859564080834389, -0.010642202571034431, 0.09102590382099152, -0.04717552661895752, -0.026029668748378754, 0.0612381286919117, 0.014279082417488098, 0.016270706430077553, -0.05195542424917221, 0.02977045811712742, 0.038724109530448914, 0.0196564681828022, -0.03550287336111069, -0.003063205163925886, -0.09656781703233719, -0.053895093500614166, 0.04239562526345253, 0.045201219618320465, 0.003028568346053362, -0.07474654167890549, 0.030878840014338493, 0.011967066675424576, 0.03323415294289589 ]
30,202
networkx.classes.multigraph
new_edge_key
Returns an unused key for edges between nodes `u` and `v`. The nodes `u` and `v` do not need to be already in the graph. Notes ----- In the standard MultiGraph class the new key is the number of existing edges between `u` and `v` (increased if necessary to ensure unused). The first edge will have key 0, then 1, etc. If an edge is removed further new_edge_keys may not be in this order. Parameters ---------- u, v : nodes Returns ------- key : int
def new_edge_key(self, u, v): """Returns an unused key for edges between nodes `u` and `v`. The nodes `u` and `v` do not need to be already in the graph. Notes ----- In the standard MultiGraph class the new key is the number of existing edges between `u` and `v` (increased if necessary to ensure unused). The first edge will have key 0, then 1, etc. If an edge is removed further new_edge_keys may not be in this order. Parameters ---------- u, v : nodes Returns ------- key : int """ try: keydict = self._adj[u][v] except KeyError: return 0 key = len(keydict) while key in keydict: key += 1 return key
(self, u, v)
[ 0.00313044642098248, -0.0073491595685482025, -0.07595475018024445, 0.0667470246553421, -0.030883487313985825, 0.014752060174942017, 0.028375547379255295, 0.004791956394910812, 0.0350215882062912, -0.06603047251701355, -0.059008240699768066, -0.05438646674156189, 0.01614038459956646, 0.0016783043975010514, -0.03847896307706833, 0.008025407791137695, 0.03534403815865517, 0.00785522535443306, -0.0068475715816020966, -0.034717053174972534, -0.010309424251317978, -0.014823716133832932, 0.05248759686946869, 0.03177918121218681, -0.03296149522066116, 0.007743264082819223, 0.008271723054349422, 0.02319844253361225, 0.09580329805612564, -0.044856294989585876, -0.0804690420627594, -0.012512828223407269, 0.013757841661572456, 0.03758326917886734, 0.022840166464447975, 0.010757270269095898, 0.00575034786015749, 0.026924526318907738, -0.05212932080030441, -0.0248465184122324, 0.05184270069003105, -0.0001957928470801562, -0.007564125582575798, -0.021998215466737747, 0.07262276858091354, 0.049155618995428085, 0.03890889510512352, -0.018307961523532867, 0.00749247008934617, -0.023700030520558357, -0.003918656148016453, -0.01223516371101141, 0.04714926704764366, 0.002044418826699257, -0.043853119015693665, 0.031922489404678345, 0.0003490402887109667, -0.03758326917886734, -0.06194611266255379, 0.04585947096347809, -0.07097470015287399, 0.009225635789334774, 0.02337758243083954, 0.01684798114001751, 0.002032103016972542, 0.014313170686364174, -0.03340934216976166, -0.00953912828117609, -0.03475287929177284, 0.027802305296063423, 0.024774862453341484, -0.019526103511452675, -0.0003649948048405349, -0.0037193642929196358, 0.018236305564641953, 0.021657852455973625, 0.01642700657248497, 0.014689361676573753, 0.011160331778228283, -0.005414463113993406, 0.027300717309117317, -0.06191028654575348, 0.029307067394256592, -0.027766477316617966, 0.046361058950424194, 0.06681868433952332, 0.009978017769753933, 0.009503300301730633, -0.016579274088144302, -0.0407002791762352, -0.051054488867521286, 0.02962951734662056, -0.05614202469587326, 0.033910930156707764, 0.018755806609988213, -0.029951967298984528, 0.015056596137583256, -0.052415940910577774, 0.037654925137758255, -0.03364222124218941, 0.047543372958898544, 0.011724618263542652, -0.065313920378685, -0.015540270134806633, -0.014662491157650948, -0.10017428547143936, 0.01353391818702221, 0.014017592184245586, -0.014519180171191692, -0.00446278927847743, -0.03518281131982803, 0.01455500815063715, -0.00842846930027008, 0.025778038427233696, -0.015746278688311577, 0.054923880845308304, 0.03948213905096054, -0.0016749455826357007, 0.06097876653075218, 0.015181993134319782, 0.01609559915959835, 0.0010406830115243793, -0.04005538299679756, 0.012638225220143795, 0.002931154565885663, -0.07731620222330093, -0.0008626641356386244, 0.042814116925001144, 0.0160866416990757, 0.0026691644452512264, 0.021550368517637253, -0.00021552607358898968, -0.004886004142463207, 0.05126945674419403, -0.009852620773017406, -0.016319522634148598, -0.025168968364596367, 0.06022638455033302, 0.02731863036751747, 0.035899367183446884, 0.008459818549454212, -0.028572600334882736, 0.02853677235543728, 0.05463726073503494, 0.02362837642431259, -0.03865810111165047, -0.04704178497195244, -0.008486689068377018, 0.015253648161888123, 0.0006471380474977195, 0.01287110522389412, 0.0482957549393177, 0.01057813223451376, 0.0220161285251379, 0.0056876493617892265, -0.017313741147518158, -0.028429288417100906, -0.06112207472324371, -0.00925250630825758, -0.012539698742330074, 0.040771935135126114, -0.015817934647202492, 0.04729257896542549, -0.040306176990270615, 0.009834706783294678, 0.00027570544625632465, 0.07058059424161911, 0.009485386312007904, 0.0002783645177260041, 0.042527493089437485, -0.05080369487404823, -0.004756128881126642, -0.071010522544384, 0.004509813152253628, -0.01765410415828228, 0.007344680838286877, -0.018899118527770042, -0.0006197074544616044, 0.04625357687473297, 0.032818183302879333, 0.05169938877224922, 0.03649052605032921, 0.034770794212818146, -0.043817292898893356, 0.042957425117492676, 0.024309102445840836, 0.05979645252227783, 0.0063325478695333, 0.0220161285251379, 0.006914748344570398, -0.0393030010163784, -0.049872174859046936, 0.0345558263361454, 0.06230439245700836, 0.03718916326761246, 0.002646772190928459, -0.01950818859040737, 0.02106669545173645, -0.0676785483956337, 0.05513884872198105, 0.006077275611460209, -0.014134032651782036, -0.009158458560705185, 0.04714926704764366, 0.00689683435484767, 0.020045604556798935, 0.038371481001377106, -0.02996988035738468, 0.05141276493668556, -0.00027416597004048526, 0.013919065706431866, -0.02205195650458336, 0.04464132711291313, 0.0572885125875473, -0.02115626446902752, -0.036938369274139404, -0.06219690665602684, 0.07502322643995285, -0.03776240721344948, 0.006932662334293127, 0.0036163595505058765, 0.005965313874185085, 0.03276444226503372, -0.033445168286561966, 0.04302908107638359, -0.0786060020327568, -0.01780637353658676, 0.014796844683587551, -0.019382791593670845, -0.003918656148016453, 0.039446309208869934, 0.028124753385782242, 0.00395224429666996, 0.015253648161888123, -0.019561931490898132, -0.003708168165758252, -0.04009120911359787, -0.048403237015008926, 0.04123769700527191, 0.017716802656650543, -0.0030789440497756004, 0.014420653693377972, 0.048689860850572586, 0.027390286326408386, 0.030041536316275597, 0.02645876444876194, -0.023968739435076714, 0.04926310479640961, -0.009574956260621548, 0.021854903548955917, -0.06459736078977585, -0.07652799040079117, -0.035756055265665054, 0.027802305296063423, 0.03115219622850418, -0.03582771122455597, -0.06567219644784927, 0.0007798125152476132, -0.01036316528916359, 0.01268300972878933, -0.011652963235974312, 0.082332082092762, -0.08161552995443344, 0.017680976539850235, 0.010963279753923416, -0.023771686479449272, 0.04800913482904434, 0.041631802916526794, -0.07968083024024963, 0.0014095965307205915, -0.053705740720033646, -0.03998372703790665, 0.0006868843920528889, -0.035899367183446884, 0.012996502220630646, -0.03437668830156326, -0.034573741257190704, 0.06026221066713333, -0.0032648001797497272, 0.01408029068261385, 0.010497519746422768, -0.009216679260134697, -0.0563211627304554, 0.03177918121218681, -0.04521457105875015, 0.06366584450006485, 0.014393783174455166, -0.0539565347135067, 0.030973056331276894, -0.060047246515750885, -0.009140544570982456, -0.0009035301045514643, -0.021657852455973625, 0.037224993109703064, -0.02011726051568985, 0.04646854102611542, 0.011061806231737137, 0.008079148828983307, -0.003533508162945509, 0.06208942458033562, 0.04879734292626381, 0.00029837765032425523, -0.12088269740343094, -0.059294864535331726, 0.002206763019785285, -0.006816222332417965, 0.08197380602359772, 0.018146736547350883, -0.0018148975213989615, -0.01353391818702221, -0.07968083024024963, -0.004809870384633541, -0.001026128069497645, 0.04378146305680275, 0.015692537650465965, -0.03138507530093193, -0.03290775418281555, 0.013050244189798832, 0.015773149207234383, 0.07190621644258499, 0.0009074487606994808, 0.05435064062476158, -0.0691116526722908, -0.0072282408364117146, -0.019848551601171494, -0.009852620773017406, 0.03650843724608421, -0.047364234924316406, 0.03185083717107773, 0.03527238219976425, 0.013184597715735435, -0.03297941014170647, -0.044569674879312515, 0.007711914833635092, -0.11909131705760956, 0.009646611288189888, 0.07108218222856522, 0.042097561061382294, 0.011939585208892822, 0.018066123127937317, 0.044426362961530685, 0.010121328756213188, -0.04962138086557388, -0.009359989315271378, -0.007908967323601246, -0.0030341593082994223, 0.004350827541202307, -0.02547350339591503, 0.004458311013877392, 0.02418370544910431, 0.021657852455973625, 0.02640502341091633, -0.004156014416366816, 0.0030386378057301044, 0.10483188182115555, 0.011205117218196392, 0.033910930156707764, -0.060513004660606384, -0.006256414111703634, 0.060477178543806076, -0.013614530675113201, -0.009574956260621548, -0.002222437644377351, -0.013354779221117496, -0.053705740720033646, -0.004362023901194334, -0.014832672663033009, -0.022643113508820534, -0.0009718266665004194, -0.02026057057082653, -0.024112049490213394, -0.040592797100543976, 0.04464132711291313, 0.038084857165813446, 0.023180529475212097, 0.009019626304507256, -0.028106840327382088, 0.043100737035274506, 0.011034934781491756, -0.017053991556167603, 0.00559807987883687, -0.008025407791137695, 0.015647752210497856, 0.04911979287862778, -0.022840166464447975, 0.016624057665467262, 0.08684637397527695, -0.020153088495135307, 0.056213680654764175, 0.05983227863907814, -0.038837239146232605, -0.03118802234530449, 0.06470485031604767, -0.009503300301730633, 0.018863290548324585, -0.015208863653242588, 0.01481475867331028, -0.046934302896261215, -0.008625521324574947, -0.07616971433162689, 0.04628940299153328, 0.03829982504248619, -0.05467308685183525, 0.006386289838701487, 0.04130935296416283, 0.0021440645214170218, 0.008007493801414967, 0.019131997600197792, 0.030453555285930634, -0.061516180634498596, -0.051591906696558, -0.0012573287822306156, -0.006923705339431763, -0.036669664084911346, 0.003374522551894188, -0.06262683868408203, -0.0036029242910444736, -0.03812068700790405, 0.03966127708554268, 0.008361292071640491, 0.02547350339591503, 0.012960675172507763, -0.016158297657966614, -0.02149662747979164, -0.006493772845715284, -0.010327338241040707, -0.019579844549298286, -0.0014196730917319655, -0.014322128146886826, 0.03011319227516651, -0.03641887009143829, -0.02783813141286373, 0.11386046558618546, -0.03847896307706833, -0.0501587949693203, -0.008974841795861721, 0.05499553680419922, 0.004053009673953056, -0.009243549779057503, 0.05614202469587326, -0.0012517307186499238, -0.005145755130797625, -0.03331977128982544, 0.02679912932217121, 0.020153088495135307, -0.012226206250488758, -0.035290297120809555, 0.02291182242333889, 0.04467715695500374, -0.02069050446152687, 0.021317489445209503, 0.007246154826134443, -0.00021454640955198556, -0.03622181713581085, -0.008661349304020405, 0.0012047068448737264, -0.06524226069450378, -0.005230845883488655, 0.02219526655972004, -0.00486361188814044, 0.021639937534928322, 0.033301856368780136, -0.017457053065299988, 0.02925332635641098, -0.035003673285245895, 0.012799450196325779, 0.041775111109018326, -0.03894472122192383, 0.016910679638385773, -0.013453305698931217, -0.0008604248869232833, -0.03747578710317612, -0.022284837439656258, -0.05094700679183006, -0.028106840327382088, -0.002875173930078745, -0.0076089100912213326, 0.0014353477163240314, 0.040306176990270615, -0.02697826735675335, 0.013292080722749233, -0.0440322570502758, 0.04682682082056999, -0.019418619573116302, 0.048403237015008926, 0.009404774755239487, -0.04145266115665436, 0.008840488269925117, -0.09866952151060104, 0.031116368249058723, 0.02679912932217121, -0.08555657416582108, -0.024739034473896027, 0.07126131653785706, 0.05650030076503754, -0.023789601400494576, 0.025312278419733047, -0.00421423465013504, 0.012056024745106697, -0.01498494017869234, 0.001116817002184689, 0.0032648001797497272, -0.025921350345015526, -0.0060280123725533485, 0.03383927419781685, 0.006234021857380867, 0.03876558318734169, 0.03296149522066116, 0.0063191126100718975, 0.011885843239724636, 0.030507296323776245, 0.0008805779507383704, 0.09164728969335556, 0.08340691030025482, 0.047220923006534576, 0.02049345150589943, -0.05173521488904953, -0.023538807407021523, 0.038084857165813446, 0.04188259690999985, 0.0393030010163784, 0.047543372958898544, 0.06144452467560768, 0.025115225464105606, -0.04199007898569107, 0.08698968589305878, -0.07122549414634705, -0.010094458237290382, 0.011276772245764732, 0.05073203891515732, -0.061695318669080734, 0.02011726051568985, 0.021120436489582062, 0.036669664084911346, -0.03423338010907173, 0.017636191099882126, 0.017672019079327583, 0.028984619304537773, -0.0170360766351223, -0.038371481001377106, 0.03378553315997124, -0.001284199533984065, -0.0033879580441862345, -0.039732933044433594, 0.02271476946771145, 0.05771844461560249, -0.0059877061285078526, -0.025258537381887436, -0.03029233030974865, -0.06724861264228821, -0.05983227863907814, 0.048868998885154724, 0.02844720333814621, -0.04141683503985405, 0.02547350339591503, -0.04238418489694595, -0.007711914833635092, 0.013283124193549156, 0.01685693860054016, 0.029790742322802544, -0.022929735481739044, -0.033355601131916046, 0.04130935296416283, -0.017878027632832527, -0.04138100892305374, 0.004169450141489506, -0.054923880845308304, -0.038693927228450775, 0.06989986449480057, 0.03038189932703972, -0.041166041046381, -0.037654925137758255, 0.01399072166532278, -0.045751988887786865, -0.09580329805612564, -0.020672589540481567, -0.026494592428207397, -0.00011238145816605538, -0.0004665999731514603, -0.05320415273308754, -0.06431074440479279, 0.03247782215476036, 0.061802804470062256, 0.05334746465086937, -0.03398258611559868, 0.010694571770727634, 0.04557285085320473, 0.04471298307180405, -0.01689276657998562, 0.07753116637468338, -0.01389219518750906, -0.08276201784610748, 0.0056473431177437305, -0.0034461780451238155, 0.0015506681520491838, -0.010022802278399467, 0.010613959282636642, 0.02631545439362526, 0.015683580189943314, -0.020654676482081413, -0.016973378136754036, 0.008934536017477512, 0.03460957109928131, 0.029360810294747353, -0.011276772245764732, 0.006749045103788376, -0.004747171886265278, -0.02513314038515091, -0.006153409369289875, -0.05467308685183525, -0.03138507530093193, 0.01157235074788332, 0.010721443220973015, -0.03464539721608162, -0.02205195650458336, 0.014456481672823429, -0.001392802339978516, 0.0035626180469989777, -0.06742775440216064, 0.01619412563741207, -0.058614134788513184, -0.0055801658891141415, 0.0013536157784983516, -0.022123612463474274, -0.03464539721608162, 0.020009776577353477, 0.020332226529717445, 0.04980051890015602, -0.01455500815063715, 0.03718916326761246, -0.0691116526722908, -0.024076221510767937, -0.0036387520376592875, 0.02939663827419281, 0.016023943200707436, 0.0046083396300673485, 0.013569746166467667, 0.014062376692891121, 0.0031550778076052666, 0.07452163845300674, -0.0639166384935379, 0.07273025810718536, -0.051663558930158615, -0.016122469678521156, -0.014599792659282684, 0.01641804911196232, 0.010219855234026909, -0.021514540538191795, -0.012244120240211487, -0.0253301914781332, 0.036239732056856155, 0.020045604556798935, 0.010990150272846222, -0.0714762881398201, -0.018863290548324585, 0.05958148464560509, 0.011357384733855724, -0.01884537562727928, -0.0345558263361454, -0.035576917231082916, -0.011375298723578453, 0.020242657512426376, 0.020332226529717445, -0.050051312893629074, 0.047220923006534576, 0.0648481547832489, 0.015558184124529362, -0.03401841223239899, -0.027802305296063423, -0.025204794481396675, 0.025975091382861137, -0.023843342438340187, -0.014949113130569458, -0.02902044728398323, -0.06219690665602684, -0.0203501395881176, 0.03650843724608421, 0.017071904614567757, -0.009386860765516758, -0.02536601945757866, 0.018522927537560463, 0.0430649109184742, -0.0006197074544616044, -0.02178324945271015, 0.0008217981667257845, -0.011841058731079102, -0.040736109018325806, 0.005405506119132042, -0.014331084676086903, -0.04302908107638359, 0.026010919362306595, -0.037798237055540085, -0.003497680416330695, 0.01109763327986002, -0.07681461423635483, -0.03048938326537609, 0.0005794012686237693, 0.011805230751633644, -0.010658744722604752, -0.000772535044234246, -0.011823144741356373, 0.005544338375329971, 0.00250793993473053, 0.00713419308885932, -0.03743995726108551, -0.004576990380883217, 0.010515433736145496, 0.00769400130957365, -0.022266922518610954, -0.01732269860804081, -0.019096169620752335, -0.05012296885251999, -0.00979887880384922, -0.05381322279572487, 0.015943331643939018, 0.025598900392651558, -0.027730649337172508, -0.021604109555482864, -0.028662169352173805, 0.043100737035274506, -0.02386125549674034, -0.014680405147373676, 0.009153980761766434, 0.04514291509985924, -0.049155618995428085, -0.010094458237290382, 0.017457053065299988, -0.0558554008603096, -0.054744742810726166, 0.0025168966967612505, 0.05023045092821121, -0.005078578367829323, -0.03858644515275955, -0.017206259071826935, 0.06846676021814346, 0.0128979766741395, 0.003596206661313772, 0.002041060011833906, 0.004326196387410164, 0.0705447643995285, -0.04005538299679756, 0.00737155182287097, -0.05571209266781807, 0.0035581395495682955, -0.011178245767951012, -0.02853677235543728, 0.002472112188115716, 0.0658155083656311, -0.01907825656235218, -0.022607285529375076, 0.002937872428447008, 0.04349484294652939, 0.004944224376231432, -0.00038038953789509833, -0.02977282926440239, -0.026637904345989227, 0.03876558318734169, 0.046934302896261215, 0.016919637098908424, -0.03659800812602043, -0.03072226233780384, -0.05080369487404823, -0.046217747032642365, 0.03357056528329849, -0.04904813691973686, 0.0397687591612339, 0.06753523647785187, 0.030919315293431282 ]
30,203
networkx.classes.multigraph
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 multigraphs, this method counts the total number of edges in the graph:: >>> G = nx.MultiGraph() >>> G.add_edges_from([(0, 1), (0, 1), (1, 2)]) [0, 1, 0] >>> 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) 2 For directed multigraphs, this method can count the total number of directed edges from `u` to `v`:: >>> G = nx.MultiDiGraph() >>> G.add_edges_from([(0, 1), (0, 1), (1, 0)]) [0, 1, 0] >>> G.number_of_edges(0, 1) 2 >>> G.number_of_edges(1, 0) 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 multigraphs, this method counts the total number of edges in the graph:: >>> G = nx.MultiGraph() >>> G.add_edges_from([(0, 1), (0, 1), (1, 2)]) [0, 1, 0] >>> 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) 2 For directed multigraphs, this method can count the total number of directed edges from `u` to `v`:: >>> G = nx.MultiDiGraph() >>> G.add_edges_from([(0, 1), (0, 1), (1, 0)]) [0, 1, 0] >>> G.number_of_edges(0, 1) 2 >>> G.number_of_edges(1, 0) 1 """ if u is None: return self.size() try: edgedata = self._adj[u][v] except KeyError: return 0 # no such edge return len(edgedata)
(self, u=None, v=None)
[ -0.07779771089553833, -0.04533856734633446, -0.0014680129243060946, 0.06380156427621841, -0.038898855447769165, 0.07802104949951172, -0.033389732241630554, 0.011762715876102448, 0.03134242445230484, 0.0052066766656935215, -0.020882543176412582, -0.012907346710562706, 0.03513925150036812, 0.022017868235707283, 0.018137289211153984, 0.052597206085920334, 0.01930053159594536, -0.0416906364262104, 0.056431256234645844, 0.06179147958755493, -0.0582924447953701, 0.0048297857865691185, 0.04381239414215088, -0.02274373173713684, -0.03601400926709175, 0.013400562107563019, -0.005457937251776457, -0.0063606142066419125, 0.04898649826645851, -0.013512233272194862, -0.09060268849134445, -0.0243071299046278, -0.03863828629255295, 0.03554871305823326, 0.053267233073711395, 0.07545261085033417, 0.004578525200486183, 0.06878954917192459, -0.11115022003650665, 0.04604582116007805, -0.0340411514043808, -0.03744712471961975, 0.059074144810438156, 0.03526953607797623, 0.03318500146269798, 0.0059418464079499245, 0.018593279644846916, -0.013661128468811512, -0.05181550607085228, -0.06212649494409561, 0.014563805423676968, 0.006644445471465588, 0.02713613770902157, -0.005988376215100288, -0.027936449274420738, 0.04790700972080231, 0.0023136907257139683, 0.03210551291704178, -0.038861628621816635, 0.06525329500436783, -0.055165648460388184, 0.02123616822063923, 0.04757199436426163, -0.03268248215317726, -0.03860106319189072, 0.019858889281749725, -0.02713613770902157, 0.015699131414294243, -0.027191974222660065, 0.022092316299676895, 0.040462251752614975, 0.01373557560145855, 0.007193495985120535, 0.02417684718966484, 0.07146966457366943, 0.03826604783535004, 0.01310277171432972, 0.0531555637717247, -0.0027754984330385923, -0.013130689971148968, 0.05401170998811722, -0.03171466290950775, 0.014526581391692162, -0.028699537739157677, 0.11546817421913147, 0.015736354514956474, -0.029332341626286507, 0.01604345068335533, -0.0191702488809824, 0.006058170925825834, -0.047199755907058716, 0.00278480420820415, -0.008673141710460186, 0.01819312386214733, -0.03454367071390152, 0.013893777504563332, -0.036330413073301315, -0.0800311341881752, 0.0030872474890202284, -0.07199079543352127, -0.029853474348783493, 0.02333931252360344, -0.033389732241630554, -0.006560691632330418, -0.048130352050065994, -0.10065311193466187, -0.02477242797613144, -0.03305472061038017, -0.020621975883841515, -0.006700281053781509, -0.045934148132801056, 0.029425401240587234, 0.0180349238216877, 0.03210551291704178, 0.00878481287509203, 0.008119437843561172, 0.021627018228173256, -0.028215628117322922, 0.014675476588308811, 0.006937582511454821, -0.02847619354724884, 0.07329362630844116, 0.022259822115302086, -0.013316808268427849, 0.035827890038490295, -0.03478562459349632, -0.018798010423779488, -0.004120207391679287, 0.020193902775645256, -0.013130689971148968, 0.07563872635364532, -0.01023654080927372, 0.01858397386968136, 0.055165648460388184, 0.04280735179781914, 0.00870105903595686, -0.024325743317604065, 0.030635174363851547, 0.029983757063746452, 0.01984027586877346, -0.018211735412478447, -0.02611248381435871, -0.02864370122551918, 0.030932964757084846, -0.05538899078965187, 0.015736354514956474, 0.02181313745677471, -0.02990930899977684, -0.007133007515221834, 0.0012911999365314841, -0.008668488822877407, -0.01777435652911663, 0.042286217212677, 0.004459874704480171, -0.022315658628940582, 0.005443978123366833, 0.016741396859288216, -0.044966328889131546, -0.00747732724994421, -0.03871273621916771, -0.019058577716350555, 0.041057832539081573, 0.013698352500796318, 0.009082603268325329, -0.012134953401982784, 0.01595969684422016, 0.04734865203499794, -0.011064769700169563, -0.02417684718966484, 0.026466110721230507, -0.011892998591065407, -0.028401747345924377, -0.05479341000318527, 0.016415689140558243, 0.023488206788897514, -0.0031221448443830013, -0.000849749194458127, -0.03744712471961975, 0.02654055692255497, 0.0021647957619279623, 0.022017868235707283, -0.025628574192523956, 0.02851341851055622, -0.045301344245672226, 0.014461440034210682, 0.010739061050117016, 0.015894556418061256, 0.002831334015354514, -0.007305167615413666, 0.0005054291686974466, 0.0033896907698363066, -0.059074144810438156, -0.002668479923158884, 0.06439714878797531, 0.040797267109155655, -0.046231940388679504, 0.01980305276811123, 0.020417245104908943, -0.034394774585962296, -0.040536701679229736, 0.01836063154041767, -0.012013976462185383, 0.0002578037674538791, 0.047497548162937164, 0.02443741448223591, 0.010562248528003693, 0.019049271941184998, 0.002360220532864332, -0.008626611903309822, -0.04545024037361145, -0.016034144908189774, -0.023748774081468582, 0.0048530506901443005, 0.04504077881574631, -0.015857331454753876, -0.025982201099395752, -0.012721228413283825, 0.024027952924370766, -0.03340834379196167, -0.02667084150016308, 0.05765964090824127, 0.028401747345924377, 0.02763865888118744, -0.010915874503552914, 0.021031437441706657, -0.059036921709775925, -0.024493249133229256, 0.021962031722068787, 0.047795336693525314, -0.010292376391589642, 0.03411559760570526, 0.030318772420287132, 0.01166965626180172, 0.04518967121839523, -0.003571156645193696, 0.01790463924407959, -0.01518730353564024, 0.00020574864174705, 0.0025661145336925983, -0.008049643598496914, -0.030095428228378296, -0.05363947153091431, -0.011595208197832108, -0.013214442878961563, -0.0010352864628657699, -0.023860445246100426, -0.015205915085971355, 0.0400155670940876, -0.0046273814514279366, 0.030691009014844894, -0.05754796788096428, -0.09849412739276886, -0.024456026032567024, -0.02194342017173767, 0.0006205902900546789, -0.022725120186805725, -0.038563840091228485, 0.03860106319189072, -0.004599463660269976, -0.004417997784912586, 0.05952082946896553, -0.0002874664787668735, -0.04667862504720688, 0.05427227541804314, -0.014517275616526604, -0.013195831328630447, 0.01605275645852089, 0.0037270314060151577, -0.09216608852148056, 0.012907346710562706, 0.01608997955918312, -0.025796081870794296, 0.04485465958714485, -0.07612263411283493, -0.037763528525829315, -0.0833812728524208, -0.03908497095108032, 0.022687895223498344, -0.015987614169716835, -0.001412177225574851, -0.0617542564868927, -0.010078338906168938, -0.0674867182970047, -0.0004568637814372778, -0.012107035145163536, -0.002400933997705579, 0.019449427723884583, -0.040127240121364594, -0.0469391904771328, -0.023097356781363487, 0.04734865203499794, -0.046269163489341736, -0.023618491366505623, 0.03554871305823326, -0.014573111198842525, 0.0206033643335104, 0.009808466769754887, 0.028885655105113983, 0.022297047078609467, 0.04094616323709488, 0.0029476583003997803, -0.04425907880067825, -0.04444519802927971, -0.05706406012177467, -0.01078559085726738, 0.005732462741434574, 0.1205306127667427, -0.00031058595050126314, 0.07079963386058807, -0.014628946781158447, -0.06864065676927567, 0.039829447865486145, -0.01795116998255253, 0.020752258598804474, 0.029890697449445724, 0.004992640111595392, -0.03357585147023201, -0.01093448605388403, -0.023488206788897514, 0.023897668346762657, 0.029667355120182037, 0.09588846564292908, 0.01238621398806572, 0.014051978476345539, -0.021347839385271072, 0.05479341000318527, 0.04995431751012802, 0.019784441217780113, 0.06499272584915161, 0.01145561970770359, -0.04202565178275108, -0.030597949400544167, -0.001224895124323666, 0.038228824734687805, -0.0863591805100441, 0.0048111737705767155, 0.07258637994527817, 0.08449798822402954, -0.01849091425538063, 0.002898802049458027, 0.030932964757084846, 0.01352153904736042, -0.05665459856390953, -0.027936449274420738, 0.023320700973272324, -0.015066326595842838, 0.003645604243502021, -0.0576968640089035, 0.031528543680906296, 0.055872898548841476, -0.016964739188551903, 0.08941152691841125, 0.038061317056417465, -0.022780954837799072, -0.004569219425320625, 0.036255963146686554, 0.03387364372611046, -0.04671584814786911, 0.07437311857938766, 0.04660417512059212, -0.05445839464664459, 0.05497952923178673, 0.03417143225669861, -0.01618303917348385, -0.020566141232848167, -0.006886399816721678, 0.007291208487004042, 0.019393591210246086, -0.013409867882728577, -0.016880985349416733, -0.0036432777997106314, -0.04615749046206474, 0.005406754557043314, 0.009547900408506393, 0.024530474096536636, 0.07009238749742508, -0.010329599492251873, -0.0032570811454206705, 0.013428479433059692, -0.005951152183115482, -0.04098338633775711, 0.017336977645754814, 0.0016192345647141337, -0.007379615213721991, 0.01878870464861393, -0.04102060943841934, 0.0020159005653113127, 0.005597526207566261, 0.011232276447117329, 0.046194713562726974, -0.03396670147776604, 0.022334270179271698, -0.00855216383934021, -0.011483537033200264, -0.0670028105378151, -0.04090893641114235, 0.08032892644405365, 0.0007043437799438834, 0.022129539400339127, -0.06663057208061218, 0.029034551233053207, 0.007533163297921419, -0.0016715804813429713, 0.052894994616508484, 0.00392943574115634, 0.012749145738780499, -0.0037084193900227547, -0.0058999694883823395, 0.03374335914850235, -0.036460697650909424, 0.021962031722068787, -0.017746439203619957, -0.0469391904771328, 0.021161720156669617, -0.03787519782781601, -0.06186592951416969, 0.027191974222660065, 0.019430814310908318, 0.08807147294282913, -0.008170620538294315, 0.02413962408900261, 0.022092316299676895, 0.047497548162937164, 0.040201686322689056, 0.04582247883081436, -0.020324185490608215, -0.0014831351581960917, -0.040425028651952744, 0.005439325235784054, 0.035790666937828064, -0.020398633554577827, -0.007300514727830887, 0.06216371804475784, -0.055128421634435654, -0.018695645034313202, -0.015689823776483536, -0.0020286962389945984, -0.029053162783384323, 0.043067917227745056, 0.0030663092620670795, -0.00536022474989295, 0.009347822517156601, -0.01954248547554016, -0.0038991912733763456, 0.006886399816721678, -0.08702920377254486, -0.034729789942502975, -0.04232344031333923, -0.017997698858380318, -0.05922304093837738, -0.06908734142780304, -0.03530675917863846, 0.002517258282750845, -0.030970187857747078, -0.06074921414256096, 0.017169469967484474, -0.05159216374158859, -0.003022105898708105, 0.004124860279262066, -0.004241184797137976, 0.057138506323099136, 0.013260972686111927, -0.038228824734687805, -0.004190002102404833, -0.08926263451576233, -0.006872441153973341, 0.04995431751012802, -0.04344015568494797, -0.012181483209133148, -0.04224899411201477, 0.03610707074403763, 0.004590157885104418, -0.08248790353536606, -0.011074075475335121, 0.040536701679229736, 0.013679740019142628, -0.02266928367316723, -0.04958207905292511, -0.015466482378542423, -0.049768198281526566, 0.0004475578316487372, 0.042100097984075546, 0.060935333371162415, 0.006179147865623236, 0.015810802578926086, 0.008691753260791302, -0.03244052827358246, -0.011278806254267693, -0.018230348825454712, -0.010552942752838135, 0.04351460188627243, -0.07098575681447983, -0.05479341000318527, -0.0042923674918711185, 0.0348786860704422, -0.022166762501001358, 0.03754018619656563, -0.032924436032772064, -0.010608778335154057, -0.013009712100028992, -0.016611114144325256, 0.022129539400339127, 0.034692566841840744, 0.008100826293230057, -0.010739061050117016, 0.06622111052274704, 0.008482369594275951, 0.011595208197832108, 0.04872593283653259, 0.00869640614837408, -0.0014261362375691533, 0.024623531848192215, 0.05751074478030205, 0.09812189638614655, 0.03592095151543617, 0.00420163432136178, -0.0005316021270118654, 0.03294304758310318, 0.0234695952385664, 0.012460661120712757, 0.019393591210246086, 0.01318652555346489, 0.03545565530657768, 0.06164258345961571, -0.06886400282382965, 0.09060268849134445, -0.05203884840011597, 0.006802646443247795, 0.021627018228173256, 0.05352780222892761, 0.004196981433779001, 0.01202328223735094, -0.02304152213037014, 0.039457209408283234, -0.03156576678156853, -0.017430037260055542, -0.0055696084164083, 0.017625462263822556, -0.03990389406681061, 0.05963250249624252, 0.02948123589158058, -0.009036073461174965, -0.044631317257881165, 0.022501777857542038, -0.021366450935602188, 0.010906568728387356, 0.052932221442461014, -0.007672752253711224, 0.06957124918699265, -0.05639403313398361, -0.0412067286670208, 0.02181313745677471, 0.01841646619141102, 0.013279585167765617, 0.06674224138259888, 0.02884843200445175, -0.01202328223735094, -0.04232344031333923, 0.015652600675821304, 0.007519204169511795, -0.04191397875547409, -0.053862813860177994, -0.029797637835144997, 0.0228740144520998, -0.028829820454120636, 0.02237149327993393, 0.016741396859288216, -0.04824202507734299, 0.013223748654127121, 0.052299413830041885, -0.046231940388679504, -0.007947278209030628, -0.017430037260055542, -0.012293154373764992, -0.025498291477560997, -0.004390079993754625, -0.05669182166457176, -0.006756116636097431, 0.042435113340616226, -0.037223782390356064, -0.0936550423502922, -0.020045006647706032, 0.035995397716760635, 0.04076004400849342, -0.0006560691981576383, 0.048800379037857056, -0.05695238709449768, 0.014768536202609539, -0.02207370288670063, 0.08747588843107224, -0.07511759549379349, -0.09186829626560211, -0.020361408591270447, 0.024995770305395126, -0.02627999149262905, 0.0007433124119415879, 0.0033664258662611246, -0.005658015143126249, 0.03837772086262703, -0.01930053159594536, -0.025796081870794296, 0.019319143146276474, 0.008566123433411121, 0.031026022508740425, -0.029332341626286507, -0.014675476588308811, 0.005011251661926508, 0.03601400926709175, 0.006658404134213924, -0.07158133387565613, 0.003885232377797365, -0.006207065656781197, 0.00296394363977015, -0.02337653562426567, -0.055835675448179245, 0.00708647770807147, -0.02110588550567627, 0.07050184905529022, -0.014098508283495903, 0.045301344245672226, -0.020956989377737045, -0.04038780555129051, -0.013419173657894135, -0.02080809511244297, -0.034990355372428894, 0.0526716522872448, -0.009799160994589329, 0.0030081470031291246, -0.03301749750971794, 0.03476701304316521, -0.00651881517842412, -0.04087171331048012, 0.024530474096536636, 0.016369158402085304, 0.036925993859767914, -0.06774728745222092, 0.008882525376975536, 0.013130689971148968, -0.00687709404155612, 0.026726676151156425, -0.04392406344413757, 0.0891137346625328, -0.02657778188586235, 0.002489340491592884, 0.010627389885485172, 0.02507021836936474, -0.00619310699403286, -0.005099658388644457, 0.036330413073301315, 0.0006595589220523834, 0.055202871561050415, 0.010943792760372162, 0.027824778109788895, -0.040797267109155655, -0.005374183878302574, 0.049768198281526566, 0.026168320327997208, -0.013549457304179668, -0.024214070290327072, -0.04679029434919357, -0.01527105737477541, 0.008980237878859043, 0.05795742943882942, -0.0214408989995718, 0.020286962389945984, 0.019049271941184998, 0.03968055173754692, -0.043402932584285736, -0.005299736279994249, -0.025051606819033623, 0.06045142561197281, 0.050401002168655396, 0.008742935955524445, 0.03964332863688469, -0.041430070996284485, -0.005420713219791651, 0.013084160163998604, -0.028048120439052582, -0.0062303305603563786, -0.012851511128246784, -0.00893370807170868, 0.07106020301580429, -0.05408615618944168, -0.04362627491354942, 0.024214070290327072, -0.03147270902991295, -0.06238706037402153, 0.004187675658613443, 0.03964332863688469, 0.017197387292981148, -0.02510744147002697, -0.04481743648648262, 0.008138049393892288, 0.018100064247846603, -0.03430171683430672, -0.012265237048268318, -0.024716591462492943, -0.015029102563858032, 0.0048949276097118855, 0.0033617729786783457, 0.02417684718966484, -0.019226083531975746, -0.02140367589890957, 0.02477242797613144, -0.04824202507734299, -0.014628946781158447, -0.017625462263822556, -0.016694866120815277, -0.006472285371273756, 0.015550235286355019, -0.04351460188627243, -0.02224121056497097, 0.0217386893928051, -0.0738147646188736, -0.013381950557231903, 0.07682988792657852, 0.021124497056007385, 0.038061317056417465, -0.03299888223409653, 0.024921322241425514, -0.014005448669195175, 0.0007409859099425375, 0.029202058911323547, 0.018974823877215385, -0.011464925482869148, -0.03178911283612251, 0.046269163489341736, -0.02570302225649357, 0.03164021670818329, -0.004580851644277573, -0.025349397212266922, -0.016499441117048264, -0.006825911346822977, -0.05222496762871742, -0.011111299507319927, -0.00023293946287594736, 0.023264864459633827, -0.014433521777391434, 0.014433521777391434, 0.010925180278718472, 0.04321681335568428, -0.018686339259147644, -0.017039187252521515, -0.026652228087186813, 0.061270348727703094, -0.04068559408187866, 0.0095851244404912, 0.07586207240819931, -0.004569219425320625, -0.026428885757923126, 0.0049135396257042885, 0.004704155493527651, 0.016694866120815277, -0.059967514127492905, 0.016229569911956787, -0.00956651195883751, 0.027359480038285255, -0.057473521679639816, -0.007775117643177509, -0.027266420423984528, -0.0024474638048559427, 0.03206828981637955, -0.005006598774343729, 0.021385064348578453, -0.006751463748514652, 0.06659334897994995, 0.03673987463116646, 0.03539981693029404 ]
30,207
networkx.classes.multidigraph
remove_edge
Remove an edge between u and v. Parameters ---------- u, v : nodes Remove an edge between nodes u and v. key : hashable identifier, optional (default=None) Used to distinguish multiple edges between a pair of nodes. If None, remove a single edge between u and v. If there are multiple edges, removes the last edge added in terms of insertion order. Raises ------ NetworkXError If there is not an edge between u and v, or if there is no edge with the specified key. See Also -------- remove_edges_from : remove a collection of edges Examples -------- >>> G = nx.MultiDiGraph() >>> 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 For multiple edges >>> G = nx.MultiDiGraph() >>> G.add_edges_from([(1, 2), (1, 2), (1, 2)]) # key_list returned [0, 1, 2] When ``key=None`` (the default), edges are removed in the opposite order that they were added: >>> G.remove_edge(1, 2) >>> G.edges(keys=True) OutMultiEdgeView([(1, 2, 0), (1, 2, 1)]) For edges with keys >>> G = nx.MultiDiGraph() >>> G.add_edge(1, 2, key="first") 'first' >>> G.add_edge(1, 2, key="second") 'second' >>> G.remove_edge(1, 2, key="first") >>> G.edges(keys=True) OutMultiEdgeView([(1, 2, 'second')])
def remove_edge(self, u, v, key=None): """Remove an edge between u and v. Parameters ---------- u, v : nodes Remove an edge between nodes u and v. key : hashable identifier, optional (default=None) Used to distinguish multiple edges between a pair of nodes. If None, remove a single edge between u and v. If there are multiple edges, removes the last edge added in terms of insertion order. Raises ------ NetworkXError If there is not an edge between u and v, or if there is no edge with the specified key. See Also -------- remove_edges_from : remove a collection of edges Examples -------- >>> G = nx.MultiDiGraph() >>> 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 For multiple edges >>> G = nx.MultiDiGraph() >>> G.add_edges_from([(1, 2), (1, 2), (1, 2)]) # key_list returned [0, 1, 2] When ``key=None`` (the default), edges are removed in the opposite order that they were added: >>> G.remove_edge(1, 2) >>> G.edges(keys=True) OutMultiEdgeView([(1, 2, 0), (1, 2, 1)]) For edges with keys >>> G = nx.MultiDiGraph() >>> G.add_edge(1, 2, key="first") 'first' >>> G.add_edge(1, 2, key="second") 'second' >>> G.remove_edge(1, 2, key="first") >>> G.edges(keys=True) OutMultiEdgeView([(1, 2, 'second')]) """ try: d = self._adj[u][v] except KeyError as err: raise NetworkXError(f"The edge {u}-{v} is not in the graph.") from err # remove the edge with specified data if key is None: d.popitem() else: try: del d[key] except KeyError as err: msg = f"The edge {u}-{v} with key {key} is not in the graph." raise NetworkXError(msg) from err if len(d) == 0: # remove the key entries if last edge del self._succ[u][v] del self._pred[v][u] nx._clear_cache(self)
(self, u, v, key=None)
[ -0.005091124214231968, 0.015224230475723743, -0.03962820768356323, 0.0502035953104496, -0.057004865258932114, -0.03204066678881645, -0.024610375985503197, 0.07882396876811981, 0.11786247044801712, -0.020128613337874413, 0.004572674632072449, 0.017858248203992844, 0.0371907614171505, 0.01015276275575161, -0.01473280880600214, 0.048513107001781464, 0.02704782597720623, 0.02339165098965168, 0.03587375208735466, -0.0024841343984007835, -0.011312517337501049, -0.03439948707818985, 0.014349500648677349, 0.018192414194345474, -0.013307686895132065, 0.006845497991889715, 0.02808963879942894, -0.00794628169387579, 0.04855241999030113, -0.016049817204475403, -0.013425628654658794, -0.029485274106264114, -0.038409482687711716, 0.018251385539770126, -0.011381315998733044, 0.03540198504924774, 0.010486929677426815, 0.039824776351451874, -0.07811632007360458, -0.005046896170824766, -0.006781612988561392, 0.00016723679436836392, 0.07100053876638412, -0.013632025569677353, 0.06640084087848663, 0.043677520006895065, 0.028954539448022842, 0.050989869982004166, -0.03424223139882088, -0.01689506322145462, -0.006383561994880438, 0.012413300573825836, 0.025121454149484634, 0.020344840362668037, -0.01607930287718773, -0.012560727074742317, -0.03349527344107628, 0.011931708082556725, 0.0015885191969573498, 0.06317711621522903, -0.013317516073584557, -0.0030222407076507807, -0.020580722019076347, 0.02476762980222702, -0.011332173831760883, -0.03563787043094635, -0.027028167620301247, -0.02205498516559601, -0.04882761463522911, 0.008624442853033543, -0.010860409587621689, 0.0031524673104286194, 0.00041156529914587736, 0.02812895178794861, 0.03349527344107628, 0.0007653885986655951, 0.005381062626838684, 0.05873466655611992, 0.009671170264482498, -0.018192414194345474, 0.03298419341444969, -0.0259077288210392, -0.007243548985570669, -0.03601134940981865, 0.05456741526722908, 0.030920224264264107, 0.02785375528037548, 0.014693494886159897, 0.02319508232176304, -0.017956532537937164, -0.05488192290067673, -0.021858416497707367, -0.09506052732467651, 0.016521582379937172, 0.021661847829818726, 0.033947378396987915, 0.0018612579442560673, -0.041122131049633026, 0.0006849183700978756, -0.07021426409482956, 0.030212577432394028, 0.0003142024506814778, -0.02846311777830124, 0.03974615037441254, -0.010673669166862965, -0.040493112057447433, -0.002009912859648466, -0.0147819509729743, -0.034143947064876556, -0.011027492582798004, -0.03125439211726189, 0.026438463479280472, 0.05043947696685791, 0.03677796572446823, 0.004437533672899008, 0.028915226459503174, -0.029642529785633087, -0.040217913687229156, 0.03154924511909485, 0.010310017503798008, -0.010339503176510334, 0.020580722019076347, -0.04485693201422691, -0.017356999218463898, 0.02466934733092785, -0.04104350134730339, 0.022192582488059998, 0.014968691393733025, 0.017435625195503235, -0.019529080018401146, -0.020079471170902252, -0.0023551362100988626, 0.004430162720382214, 0.010899723507463932, 0.009287861175835133, -0.050321534276008606, -0.0352054163813591, -0.013278202153742313, 0.07548230141401291, 0.020914888009428978, -0.01285558007657528, 0.00774479890242219, 0.05177614092826843, 0.07394906878471375, 0.003783943597227335, -0.0686810314655304, -0.02694954164326191, -0.07021426409482956, -0.000753103056922555, 0.014722980558872223, -0.058577410876750946, 0.027342677116394043, 0.025848757475614548, -0.03962820768356323, 0.012157761491835117, 0.011961192823946476, -0.03701384738087654, 0.020099129527807236, -0.04863104596734047, 0.00751874502748251, 0.006781612988561392, 0.015981018543243408, 0.06404201686382294, -0.01817275770008564, 0.007238634862005711, -0.028679342940449715, 0.09128641337156296, 0.004000168759375811, -0.009980765171349049, 0.06750161945819855, -0.040060658007860184, -0.013111119158565998, -0.04104350134730339, -0.028266549110412598, -0.040217913687229156, 0.003469433868303895, 0.01432984322309494, -0.013799108564853668, -0.009238719008862972, 0.004884727299213409, 0.022664347663521767, -0.03292522206902504, 0.04477830231189728, -0.0412793830037117, 0.014369157142937183, 0.03335767239332199, -0.016580551862716675, -0.01832018420100212, 0.0062754494138062, -0.034812282770872116, -0.03388841077685356, -0.06785544753074646, -0.013219231739640236, 0.07261240482330322, 0.047097813338041306, -0.046979870647192, -0.005120609421283007, 0.022172925993800163, -0.019764961674809456, 0.028207579627633095, 0.0024620203766971827, -0.03707281872630119, 0.015066975727677345, 0.05802702158689499, -0.030094636604189873, -0.011784281581640244, 0.041829776018857956, -0.03125439211726189, 0.03164752945303917, 0.03031086176633835, 0.04902418330311775, -0.026831600815057755, 0.07548230141401291, 0.019037658348679543, 0.011685997247695923, -0.03237483277916908, -0.11998540908098221, 0.06628289818763733, -0.00604939553886652, 0.014172588475048542, -0.011135605163872242, 0.003607031889259815, 0.06675466150045395, -0.013985848985612392, 0.024020669981837273, -0.019627364352345467, -0.019912388175725937, -0.014988347887992859, 0.03949061036109924, -0.033672183752059937, 0.09859875589609146, -0.0013034947915002704, 0.032866254448890686, -0.02889556996524334, -0.006132937036454678, 0.016629694029688835, -0.04855241999030113, 0.026123953983187675, 0.05728005990386009, 0.022310525178909302, -0.0023170511703938246, -0.0405324250459671, -0.006609615869820118, 0.019991016015410423, 0.019096629694104195, 0.030448460951447487, 0.03752492740750313, 0.03648311272263527, -0.024571062996983528, 0.007071551866829395, -0.014555897563695908, -0.02691022679209709, 0.01993204653263092, 0.04882761463522911, 0.06726574152708054, -0.025789786130189896, -0.06125074252486229, -0.0428912453353405, -0.04179046303033829, 0.011607369408011436, 0.015823764726519585, -0.014555897563695908, 0.0044670188799500465, 0.05755525454878807, 0.058144960552453995, 0.008162506856024265, 0.0066145299933850765, 0.04108281433582306, -0.019008174538612366, -0.0010467272950336337, -0.03524473309516907, -0.0493386946618557, 0.030802283436059952, -0.011165090836584568, -0.007867653854191303, 0.025514591485261917, -0.06636152416467667, -0.01769116520881653, 0.02215326949954033, 0.010830923914909363, -0.017484767362475395, -0.04902418330311775, -0.026635032147169113, 0.04973182827234268, -0.04352026432752609, 0.03268934041261673, 0.0008661299361847341, -0.04029654338955879, 0.04662604629993439, 0.0029927552677690983, 0.03671899437904358, -0.039824776351451874, -0.039824776351451874, 0.028699001297354698, 0.0035234903916716576, 0.06231221556663513, 0.007961024530231953, 0.0016806606436148286, 0.03430120274424553, 0.03213895112276077, 0.06982112675905228, -0.0022679090034216642, -0.058813296258449554, -0.08381680399179459, 0.03402600809931755, -0.025514591485261917, 0.07068603485822678, 0.00478152884170413, -0.015971191227436066, 0.04147595167160034, -0.04792340099811554, 0.002070111921057105, -0.06368819624185562, 0.008029823191463947, 0.014998176135122776, -0.016855748370289803, 0.03878296539187431, -0.005400719586759806, 0.03868468105792999, 0.012285531498491764, -0.018438125029206276, 0.01070315483957529, -0.06923142820596695, 0.011469772085547447, -0.0036094889510422945, 0.021288368850946426, 0.015833592042326927, 0.010929208248853683, 0.013229059986770153, 0.03972649201750755, -0.011882565915584564, 0.00901266559958458, -0.03424223139882088, 0.025514591485261917, -0.08031788468360901, 0.011214233003556728, 0.04340232536196709, 0.02117042802274227, 0.053348690271377563, 0.01423155888915062, 0.02030552551150322, 0.055353689938783646, -0.017474940046668053, -0.008344332687556744, -0.0001778330624802038, 0.006191907450556755, -0.03312179073691368, -0.018251385539770126, -0.01626604236662388, 0.02205498516559601, 0.051029182970523834, 0.09270170331001282, 0.004973182920366526, -0.00406651059165597, 0.03815394639968872, 0.009661342017352581, -0.04269467666745186, -0.019774790853261948, 0.050557415932416916, -0.023077141493558884, 0.00842296052724123, -0.0023072226904332638, -0.016118617728352547, -0.02936733327805996, -0.0368172787129879, -0.011568056419491768, -0.05043947696685791, -0.01669849455356598, -0.01865435019135475, -0.021052485331892967, 0.007061723154038191, -0.0559040792286396, -0.022762631997466087, 0.05873466655611992, -0.012511584907770157, 0.05959956720471382, 0.02087557502090931, 0.05551094189286232, 0.01859538070857525, 0.0030296118929982185, 0.000464700220618397, 0.013622197322547436, 0.028305863961577415, 0.027912726625800133, -0.005105866584926844, -0.0015799192478880286, 0.049849770963191986, -0.008250962942838669, 0.043952714651823044, 0.038311198353767395, -0.02889556996524334, -0.006757041905075312, 0.026163266971707344, -0.024020669981837273, -0.07143299281597137, -0.05075398460030556, 0.06675466150045395, -0.0025480191688984632, -0.02922973595559597, -0.07823426276445389, 0.04607565701007843, 0.02879728563129902, -0.06191907823085785, 0.027499932795763016, 0.04631153866648674, -0.022369494661688805, -0.027126451954245567, 0.030016008764505386, 0.018762463703751564, -0.04285193234682083, 0.030546745285391808, 0.0010940264910459518, -0.03628654405474663, 0.030291205272078514, 0.03215860575437546, -0.025062482804059982, 0.04580045863986015, -0.03443880006670952, 0.028069982305169106, 0.012079134583473206, -0.006639101076871157, 0.021799447014927864, -0.021484937518835068, -0.04949594661593437, -0.006909382529556751, -0.02657606080174446, -0.006609615869820118, 0.005155008751899004, -0.018290698528289795, 0.08216562867164612, -0.01959787867963314, -0.07481396943330765, 0.014939205721020699, 0.006295105908066034, -0.0339670367538929, 0.0226840041577816, -0.012806437909603119, 0.01651175320148468, 0.04399203136563301, 0.027775129303336143, -0.09749797731637955, -0.014320014975965023, 0.008737470023334026, -0.03972649201750755, -0.022762631997466087, -0.006776698864996433, -0.04639016464352608, 0.039411984384059906, 0.0210131723433733, -0.010988178662955761, 0.006304934620857239, -0.012570555321872234, -0.013779452070593834, -0.05759457126259804, -0.03070399910211563, -0.04662604629993439, -0.026202579960227013, 0.016855748370289803, -0.015479769557714462, -0.018821433186531067, 0.054685354232788086, 0.027028167620301247, -0.05063604563474655, -0.04131869971752167, -0.045957714319229126, 0.035284046083688736, 0.12179384380578995, -0.040257226675748825, -0.0355788990855217, -0.013779452070593834, 0.002076254691928625, -0.06553594022989273, -0.04269467666745186, -0.016836091876029968, -0.0019423424964770675, 0.030055323615670204, 0.016098959371447563, -0.017022831365466118, -0.02405998483300209, -0.07489259541034698, -0.005336834583431482, -0.06003201752901077, -0.000853844394441694, -0.007179664447903633, 0.05110780894756317, -0.00045702175702899694, -0.023686503991484642, -0.0147819509729743, -0.00903723668307066, 0.00948934443295002, -0.014860578812658787, -0.05936368554830551, -0.02822723612189293, -0.001689260476268828, 0.07831288874149323, -0.02433517947793007, -0.03671899437904358, -0.021386653184890747, 0.06537868082523346, -0.033672183752059937, -0.0003565875522326678, 0.003056640038266778, 0.014899891801178455, -0.022742975503206253, 0.050360847264528275, 0.023116454482078552, -0.011617198586463928, 0.03302350640296936, -0.004968268796801567, -0.028030667454004288, 0.01050658617168665, 0.04037516936659813, 0.06301985681056976, 0.06875965744256973, 0.05543231591582298, -0.009346832521259785, -0.03785909339785576, 0.02661537379026413, 0.03017326444387436, -0.011882565915584564, 0.05916711688041687, 0.038311198353767395, 0.03158855810761452, 0.07575749605894089, -0.04815928265452385, 0.04729438200592995, -0.05252310261130333, -0.010929208248853683, 0.02258571982383728, 0.0190278310328722, -0.006648929324001074, 0.04587908834218979, -0.029013510793447495, 0.03424223139882088, -0.011892394162714481, -0.015981018543243408, 0.00913552101701498, 0.03748561069369316, -0.009346832521259785, 0.012875236570835114, 0.017573224380612373, 0.05177614092826843, -0.026536747813224792, 0.016334842890501022, -0.015263543464243412, 0.030723655596375465, 0.03882227838039398, 0.022900229319930077, -0.006280363537371159, -0.0045358180068433285, -0.09097190201282501, 0.0360703207552433, 0.023548906669020653, -0.0062754494138062, 0.05043947696685791, -0.002211395651102066, -0.018339840695261955, 0.022998513653874397, 0.011135605163872242, -0.011479600332677364, -0.04245879501104355, -0.026890570297837257, 0.009897223673760891, 0.005091124214231968, 0.017858248203992844, 0.0335935577750206, -0.004145137965679169, -0.05936368554830551, 0.061132803559303284, 0.006663672160357237, -0.06781613081693649, 0.01428070105612278, 0.0035898322239518166, -0.03339698910713196, -0.09364522993564606, 0.011685997247695923, 0.01589256338775158, -0.022133613005280495, -0.006688243243843317, -0.05232653394341469, -0.053781140595674515, -0.012069305405020714, 0.10528209060430527, 0.029170764610171318, -0.01835949718952179, 0.03878296539187431, 0.02785375528037548, 0.010398473590612411, -0.030821939930319786, 0.04281261935830116, 0.021976357325911522, -0.08869170397520065, 0.04631153866648674, 0.001657318091019988, 0.007282862905412912, -0.0007672313950024545, 0.03410463407635689, -0.007356576155871153, -0.01612844504415989, -0.0008845582487992942, 0.039411984384059906, -0.08562523871660233, 0.11550364643335342, 0.00906180776655674, -0.049889083951711655, 0.017622366547584534, -0.02124905399978161, -0.04646879434585571, 0.002857614541426301, -0.07367387413978577, -0.01836932636797428, 0.04198703169822693, -0.006707900203764439, -0.0035062904935330153, -0.026497432962059975, 0.007002752739936113, 0.024177925661206245, 0.007680913899093866, -0.06427790224552155, -0.02785375528037548, 0.006865154951810837, -0.07257308810949326, -0.03567718341946602, -0.011823595501482487, -0.019008174538612366, 0.039451297372579575, -0.0019951702561229467, 0.04721575230360031, -0.041397325694561005, 0.07048946619033813, -0.01584342122077942, -0.07390975207090378, 0.011273203417658806, 0.05806633457541466, 0.03382943943142891, -0.06585044413805008, 0.04855241999030113, 0.0031057822052389383, -0.012629525735974312, 0.03449777141213417, 0.02382410131394863, -0.0017691164975985885, -0.05547162890434265, 0.007715313695371151, -0.05134369060397148, 0.02060037851333618, -0.0038208002224564552, -0.011322345584630966, 0.03168684244155884, -0.01775013469159603, 0.059049177914857864, 0.023548906669020653, 0.0077890269458293915, -0.048277221620082855, 0.016639523208141327, 0.03379012644290924, 0.019656850025057793, -0.03439948707818985, -0.02704782597720623, 0.00454318942502141, 0.008884896524250507, 0.02295920066535473, 0.054921239614486694, -0.007268120069056749, -0.03506781905889511, 0.0005116923712193966, 0.005631687585264444, -0.0640813335776329, 0.007784112356603146, 0.006108365952968597, 0.021602878347039223, -0.05916711688041687, -0.0502035953104496, -0.025789786130189896, -0.05433153361082077, -0.013710652478039265, 0.04454242065548897, -0.018251385539770126, -0.027676844969391823, -0.014113618060946465, 0.032767970114946365, 0.08688327670097351, 0.009071636013686657, -0.027775129303336143, -0.02120974101126194, 0.006968353409320116, -0.020993515849113464, 0.03683693706989288, -0.04615428298711777, -0.06392407417297363, 0.0011523828143253922, -0.08216562867164612, -0.001641346956603229, -0.05680829659104347, -0.03027154877781868, -0.03534301742911339, -0.022978857159614563, -0.05842015892267227, 0.012020163238048553, 0.0048159281723201275, 0.015617366880178452, 0.02030552551150322, -0.02433517947793007, -0.015361827798187733, -0.0026168180629611015, 0.0021069685462862253, -0.008884896524250507, -0.0182218998670578, -0.010988178662955761, -0.001641346956603229, -0.01369099598377943, -0.0420263446867466, 0.03457639738917351, -0.023371994495391846, 0.06832721084356308, 0.04607565701007843, -0.026222238317131996, -0.04922075197100639, -0.04957457631826401, 0.01726854220032692, -0.020030329003930092, -0.0023010799195617437, 0.028875911608338356, 0.023234397172927856, -0.01542079821228981, -0.05822359025478363, 0.0157451368868351, -0.046861931681632996, -0.023136112838983536, 0.03705316036939621, 0.005297521129250526, 0.06286260485649109, 0.009361574426293373, 0.06058241054415703, 0.020757634192705154, -0.011440286412835121, -0.010133106261491776, 0.0025824187323451042, 0.0907360166311264, 0.021484937518835068, -0.04304850101470947, -0.014388813637197018, -0.033947378396987915, -0.006118194665759802, 0.021858416497707367, -0.0064032189548015594, -0.03795737773180008, 0.09065739065408707, -0.0259077288210392, -0.0371907614171505, -0.013160261325538158, -0.01974530518054962, -0.024747973307967186, 0.009410716593265533, -0.007533487863838673, -0.029681842774152756, -0.018192414194345474, -0.002470620209351182, 0.0005390276783145964, -0.06003201752901077, -0.012088962830603123, 0.011715482920408249, -0.029111795127391815, -0.01693437620997429, -0.017524082213640213, 0.05067535862326622, 0.0485917329788208, 0.043205756694078445 ]
30,208
networkx.classes.multigraph
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) A single edge between u and v is removed. - 3-tuples (u, v, key) The edge identified by key is removed. - 4-tuples (u, v, key, data) where data 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) Removing multiple copies of edges >>> G = nx.MultiGraph() >>> keys = G.add_edges_from([(1, 2), (1, 2), (1, 2)]) >>> G.remove_edges_from([(1, 2), (2, 1)]) # edges aren't directed >>> list(G.edges()) [(1, 2)] >>> G.remove_edges_from([(1, 2), (1, 2)]) # silently ignore extra copy >>> list(G.edges) # now empty graph [] When the edge is a 2-tuple ``(u, v)`` but there are multiple edges between u and v in the graph, the most recent edge (in terms of insertion order) is removed. >>> G = nx.MultiGraph() >>> for key in ("x", "y", "a"): ... k = G.add_edge(0, 1, key=key) >>> G.edges(keys=True) MultiEdgeView([(0, 1, 'x'), (0, 1, 'y'), (0, 1, 'a')]) >>> G.remove_edges_from([(0, 1)]) >>> G.edges(keys=True) MultiEdgeView([(0, 1, 'x'), (0, 1, 'y')])
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) A single edge between u and v is removed. - 3-tuples (u, v, key) The edge identified by key is removed. - 4-tuples (u, v, key, data) where data 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) Removing multiple copies of edges >>> G = nx.MultiGraph() >>> keys = G.add_edges_from([(1, 2), (1, 2), (1, 2)]) >>> G.remove_edges_from([(1, 2), (2, 1)]) # edges aren't directed >>> list(G.edges()) [(1, 2)] >>> G.remove_edges_from([(1, 2), (1, 2)]) # silently ignore extra copy >>> list(G.edges) # now empty graph [] When the edge is a 2-tuple ``(u, v)`` but there are multiple edges between u and v in the graph, the most recent edge (in terms of insertion order) is removed. >>> G = nx.MultiGraph() >>> for key in ("x", "y", "a"): ... k = G.add_edge(0, 1, key=key) >>> G.edges(keys=True) MultiEdgeView([(0, 1, 'x'), (0, 1, 'y'), (0, 1, 'a')]) >>> G.remove_edges_from([(0, 1)]) >>> G.edges(keys=True) MultiEdgeView([(0, 1, 'x'), (0, 1, 'y')]) """ for e in ebunch: try: self.remove_edge(*e[:3]) except NetworkXError: pass nx._clear_cache(self)
(self, ebunch)
[ -0.008630222640931606, 0.019737591966986656, -0.0442902036011219, 0.026383113116025925, -0.11778885871171951, -0.027795784175395966, -0.028332995250821114, 0.05332333594560623, 0.1108647882938385, -0.005645707715302706, -0.00600384920835495, 0.00775476498529315, -0.011142189614474773, 0.023836325854063034, -0.01306222751736641, 0.027079500257968903, 0.01567865163087845, -0.007147913333028555, 0.05228870362043381, 0.03499841317534447, -0.025826003402471542, -0.032292451709508896, 0.02041408233344555, 0.054477348923683167, -0.027517229318618774, 0.02960638888180256, 0.021289540454745293, -0.010953170247375965, 0.01437541376799345, 0.02214510180056095, -0.004571282304823399, -0.04048991948366165, -0.025567345321178436, -0.008854061365127563, 0.020871708169579506, 0.02879062108695507, 0.02053346298635006, 0.047314513474702835, -0.07314051687717438, 0.008083061315119267, -0.00156935746781528, 0.017320135608315468, 0.08308889716863632, 0.0076552811078727245, 0.08277054876089096, 0.03700798749923706, 0.042857635766267776, 0.036789122968912125, -0.02105077914893627, -0.020593153312802315, 0.00449915649369359, 0.01662374846637249, 0.007789584342390299, 0.03382450342178345, 0.006580855697393417, -0.008908777497708797, -0.0384206585586071, 0.0394950807094574, 0.039952706545591354, 0.05113469064235687, -0.01873280666768551, -0.005451714154332876, 0.034441303461790085, -0.02210530824959278, -0.013818304985761642, -0.021389024332165718, -0.06569912284612656, -0.004464337136596441, -0.061043281108140945, 0.01846420019865036, -0.058337319642305374, 0.004290240351110697, -0.012942846864461899, 0.01928991638123989, 0.034421406686306, 0.01599700003862381, 0.0009146294905804098, 0.09821043908596039, -0.028929898515343666, -0.03426223248243332, 0.030422156676650047, -0.0002398493088549003, -0.024512816220521927, 0.002631347393617034, 0.07616482675075531, 0.04771244525909424, 0.022423656657338142, 0.04552380368113518, 0.0262836292386055, -0.038937970995903015, 0.006247584708034992, -0.0330883227288723, -0.07509040087461472, 0.0011956713860854506, 0.04154444858431816, 0.03692840039730072, -0.04870728403329849, -0.023657256737351418, 0.0008854061015881598, -0.07608523964881897, 0.018046367913484573, -0.04381268098950386, -0.042459700256586075, 0.016961993649601936, -0.003939559683203697, -0.038360968232154846, -0.009421119466423988, -0.05021943897008896, 0.001421375316567719, -0.017419619485735893, -0.070713110268116, 0.05933215841650963, 0.0384206585586071, -0.0009625061065889895, -0.02518930658698082, 0.0077099972404539585, -0.006108307279646397, -0.0820542648434639, 0.013161711394786835, -0.008898829109966755, -0.013410421088337898, 0.06355027109384537, -0.013151763007044792, 0.044608552008867264, 0.04198217764496803, 0.0003286075370851904, 0.011838575825095177, 0.016802819445729256, 0.014146600849926472, -0.08090025186538696, 0.021110469475388527, -0.021090572699904442, -0.022423656657338142, -0.005561146419495344, -0.012942846864461899, -0.032053690403699875, -0.017071425914764404, -0.04548401013016701, 0.06553994864225388, 0.02268231473863125, -0.048985838890075684, 0.020593153312802315, 0.04679719731211662, 0.07668214291334152, -0.03977363556623459, -0.05352230370044708, -0.020911501720547676, -0.04317598417401314, -0.008341719396412373, 0.0340234711766243, -0.07174774259328842, 0.04568297788500786, -0.015221026726067066, -0.031237924471497536, -0.02182675339281559, 0.00887893233448267, -0.06414717435836792, 0.05268663913011551, -0.04110671952366829, 0.013002537190914154, -0.024313848465681076, 0.025965280830860138, 0.009326609782874584, -0.01558911707252264, -0.010674615390598774, -0.053761065006256104, 0.06856425851583481, 0.015300613828003407, -0.0393558032810688, 0.04671761021018028, -0.03179503232240677, 0.013818304985761642, -0.032013896852731705, -0.01034631859511137, -0.035336658358573914, 0.020354392006993294, 0.035734593868255615, 0.0030665891245007515, -0.00197475403547287, -0.024194467812776566, -0.022582830861210823, -0.042181145399808884, 0.019190432503819466, -0.025826003402471542, 0.038241587579250336, 0.027875371277332306, -0.02409498393535614, -0.007421493995934725, -0.0020282266195863485, -0.049423567950725555, -0.04198217764496803, -0.044926900416612625, 0.01733008399605751, 0.05471611022949219, 0.03766458109021187, -0.026980016380548477, -0.029128866270184517, 0.028134027495980263, -0.05491507798433304, 0.018454251810908318, -0.031078750267624855, -0.04190259054303169, 0.053800858557224274, 0.02089160494506359, 0.027318261563777924, -0.019468985497951508, 0.033068425953388214, -0.044608552008867264, 0.049622535705566406, 0.04663802310824394, 0.023478185757994652, -0.04580235853791237, 0.09128636866807938, -0.001573088113218546, 0.0120076984167099, -0.032212864607572556, -0.07453329116106033, 0.03587387129664421, 0.0068594105541706085, 0.0005543114966712892, -0.03125781938433647, -0.0249505452811718, 0.019001413136720657, -0.039912912994623184, -0.0015444864984601736, -0.003342656884342432, -0.028173821046948433, -0.010704460553824902, 0.04098733887076378, -0.00519305607303977, 0.08627238124608994, -0.054119206964969635, 0.042618874460458755, -0.03300873562693596, 0.032212864607572556, 0.053920239210128784, -0.05284581333398819, 0.0005683014169335365, 0.05077654868364334, 0.022543037310242653, -0.01885218732059002, -0.032949045300483704, -0.008819242008030415, 0.015569220297038555, 0.06355027109384537, 0.023478185757994652, 0.024433229118585587, -0.006411733105778694, -0.023756738752126694, -0.00716781010851264, 0.015320510603487492, -0.00991356372833252, 0.037764064967632294, 0.004668279085308313, 0.03477954864501953, -0.028034543618559837, -0.03245162591338158, -0.017897142097353935, -0.0019809717778116465, -0.006919100880622864, 0.054119206964969635, -0.028929898515343666, 0.034759651869535446, 0.051811181008815765, 0.0453646294772625, 0.02769630029797554, -0.0012970204697921872, 0.0249505452811718, -0.06880301982164383, 0.020553359761834145, -0.007506055291742086, -0.06227688118815422, 0.05113469064235687, 0.036868710070848465, -0.02733815833926201, 0.03965425491333008, -0.06267481297254562, 0.011241673491895199, -0.019528675824403763, -0.008535712957382202, 0.00511346897110343, -0.001468630158342421, -0.010654718615114689, 0.038898177444934845, -0.01725049689412117, 0.016723232343792915, 0.01666354201734066, -0.06219729408621788, 0.038778796792030334, -0.0030442052520811558, 0.06319212913513184, -0.0571037195622921, -0.02319963090121746, -0.029049279168248177, 0.022244585677981377, 0.04612070694565773, -0.0030864858999848366, -0.00991356372833252, 0.021289540454745293, 0.06824591010808945, 0.06490325182676315, -0.0313573032617569, -0.03489892929792404, -0.02624383568763733, 0.034799445420503616, -0.005571094807237387, 0.05495487153530121, -0.00008277365850517526, -0.005775036755949259, 0.015191181562840939, -0.053920239210128784, -0.0138083565980196, -0.07178753614425659, -0.04826955497264862, 0.022443553432822227, 0.0116396090015769, 0.04444937780499458, 0.010823841206729412, 0.02026485651731491, 0.022423656657338142, -0.026462700217962265, 0.03207358717918396, -0.04982150346040726, 0.031974103301763535, 0.013191556558012962, 0.022423656657338142, 0.0054566883482038975, 0.04182300344109535, -0.007257345598191023, 0.017867296934127808, -0.033148013055324554, -0.0015793058555573225, -0.013669079169631004, 0.04691657796502113, -0.009694699198007584, 0.027318261563777924, 0.042220938950777054, 0.023418495431542397, 0.010863634757697582, -0.03627180680632591, 0.0349586196243763, 0.05969030037522316, -0.010754202492535114, -0.015370252542197704, 0.01445500086992979, 0.03641108423471451, -0.027915164828300476, 0.013201504945755005, -0.02041408233344555, 0.03692840039730072, 0.01140084769576788, 0.07166815549135208, -0.004593666177242994, -0.0013044817605987191, 0.03145678713917732, 0.052010148763656616, -0.04886645823717117, -0.010784047655761242, 0.04190259054303169, -0.02033449523150921, 0.042300526052713394, -0.007849274203181267, 0.015061852522194386, -0.053999826312065125, 0.04751347750425339, -0.022901179268956184, -0.04612070694565773, -0.007565745618194342, -0.00785922259092331, -0.0476328581571579, -0.00967977661639452, -0.021150263026356697, -0.03024308569729328, -0.009933460503816605, -0.015539375133812428, 0.019847024232149124, -0.0036958244163542986, 0.04870728403329849, -0.0005934832734055817, 0.09446985274553299, -0.001877757371403277, 0.011569970287382603, 0.009933460503816605, 0.02847227267920971, 0.056307848542928696, -0.038739003241062164, 0.016484471037983894, 0.00923210009932518, 0.06327171623706818, 0.00034570632851682603, -0.010157299228012562, -0.020036043599247932, 0.04548401013016701, 0.003685876028612256, -0.0442902036011219, -0.06339109688997269, 0.05013985186815262, 0.013241298496723175, -0.05061737447977066, -0.049582742154598236, 0.016534212976694107, 0.01429582666605711, -0.022742005065083504, 0.054357968270778656, 0.018762651830911636, -0.029049279168248177, -0.028173821046948433, 0.020911501720547676, 0.04118630662560463, -0.049423567950725555, 0.06904178112745285, -0.0036560308653861284, -0.018324922770261765, 0.027596816420555115, 0.031198130920529366, -0.011540125124156475, 0.019658004865050316, -0.01959831453859806, 0.05133365839719772, 0.028173821046948433, 0.038898177444934845, 0.024851061403751373, -0.0020394185557961464, -0.051850974559783936, 0.017469361424446106, -0.02312004379928112, -0.029506905004382133, 0.005600939970463514, -0.038977764546871185, 0.08197467774152756, -0.02793506160378456, -0.06446552276611328, -0.00825218390673399, -0.004971704445779324, -0.016643645241856575, 0.010177196003496647, -0.030501743778586388, -0.0076005649752914906, 0.03740592300891876, -0.001616612309589982, -0.06673375517129898, -0.003884843783453107, 0.002780573209747672, -0.0915251299738884, -0.005635759327560663, -0.016753077507019043, -0.05276622623205185, 0.01756884530186653, 0.04305660352110863, 0.015400097705423832, -0.014743504114449024, -0.015559271909296513, -0.013609388843178749, -0.07107125222682953, -0.06402779370546341, -0.00007768288196530193, -0.00014736043522134423, 0.025806106626987457, -0.04846852272748947, 0.02514951303601265, 0.07704028487205505, -0.028452375903725624, -0.06136162951588631, -0.011221776716411114, -0.029248246923089027, 0.00813280325382948, 0.08706825226545334, -0.008351667784154415, -0.014275929890573025, -0.0030243084765970707, 0.02222468890249729, -0.0968574583530426, -0.02863144688308239, -0.015370252542197704, 0.019697798416018486, 0.038739003241062164, -0.028233511373400688, -0.03392398729920387, -0.001472360803745687, -0.044608552008867264, -0.016673490405082703, -0.051850974559783936, 0.03854003921151161, 0.005730269011110067, 0.019449088722467422, -0.010634821839630604, -0.03300873562693596, -0.053920239210128784, -0.033585742115974426, -0.02093139849603176, -0.01830502599477768, -0.08499898761510849, -0.04146486148238182, 0.017499206587672234, 0.09550447762012482, 0.014395310543477535, -0.055949706584215164, -0.012097233906388283, 0.032252658158540726, -0.05053778737783432, -0.007744816597551107, 0.03969404846429825, 0.03223276138305664, -0.011102396063506603, 0.049463361501693726, 0.02680094540119171, 0.01646457426249981, 0.03746561333537102, -0.007540874648839235, -0.049145013093948364, 0.003658517962321639, 0.012027595192193985, 0.03372501954436302, 0.04552380368113518, 0.02984515018761158, -0.019956456497311592, -0.025567345321178436, 0.022005824372172356, 0.024532712996006012, 0.017180858179926872, 0.04544421657919884, 0.024930648505687714, -0.004058940336108208, 0.08969462662935257, -0.025169409811496735, 0.004665791988372803, 0.012057440355420113, -0.011181983165442944, 0.03770437464118004, -0.01196790486574173, 0.03591366484761238, 0.06366965174674988, -0.004531488753855228, 0.04369330033659935, 0.05013985186815262, 0.010396060533821583, -0.005765088368207216, 0.01322140172123909, 0.013917788863182068, 0.05463652312755585, 0.01085368636995554, 0.025726519525051117, -0.006700236350297928, 0.04114651307463646, -0.06896219402551651, 0.036789122968912125, 0.018722858279943466, 0.013997375033795834, 0.01971769519150257, 0.002569169970229268, -0.051652006804943085, 0.01826523244380951, 0.02656218409538269, 0.007953732274472713, 0.058456700295209885, -0.05988926813006401, -0.01631534844636917, 0.03863952308893204, 0.02503013238310814, -0.014783297665417194, -0.07584647834300995, -0.004705585539340973, -0.010664667002856731, 0.015071800909936428, 0.019807230681180954, 0.029089072719216347, -0.028929898515343666, -0.03621211647987366, 0.04090775176882744, 0.032372038811445236, -0.05033881962299347, 0.024612300097942352, 0.0021886443719267845, -0.026343319565057755, -0.049304187297821045, -0.00125909224152565, -0.017698174342513084, -0.013858098536729813, 0.007346881087869406, -0.05010005831718445, -0.014554484747350216, -0.047274719923734665, 0.054318174719810486, -0.013987426646053791, -0.004598640371114016, 0.04110671952366829, 0.006058565340936184, 0.008729706518352032, -0.03911704197525978, 0.02503013238310814, 0.0700366199016571, -0.051970355212688446, 0.056268054991960526, 0.003123792354017496, -0.04321577772498131, -0.0031362278386950493, 0.027676403522491455, -0.017807606607675552, -0.07314051687717438, 0.009162461385130882, -0.019061103463172913, -0.02417457103729248, 0.10919345915317535, -0.0043126242235302925, -0.030064014717936516, -0.014126704074442387, -0.00194863963406533, -0.04070878401398659, 0.0434943325817585, -0.005041343159973621, 0.018125955015420914, 0.09534530341625214, 0.015370252542197704, 0.013868046924471855, -0.02757691964507103, 0.000558353029191494, -0.008471048437058926, 0.034600477665662766, -0.05006026476621628, -0.008814267814159393, -0.004914501216262579, -0.06876322627067566, -0.030959369614720345, -0.011032757349312305, -0.0420219711959362, 0.006098358891904354, 0.0017745428485795856, 0.06295336782932281, -0.025686725974082947, 0.038739003241062164, 0.004909527022391558, -0.08969462662935257, 0.013579543679952621, 0.023418495431542397, 0.005173159297555685, -0.11564000695943832, 0.006640546023845673, -0.014345568604767323, -0.04838893562555313, 0.028134027495980263, 0.04070878401398659, -0.011530176736414433, -0.06275440007448196, -0.015191181562840939, -0.0727027878165245, 0.002835289342328906, 0.000981781049631536, -0.04134548082947731, 0.014823091216385365, -0.009361429139971733, 0.044688139110803604, 0.0457625649869442, -0.0038873308803886175, -0.035535626113414764, -0.04643905535340309, 0.06522160023450851, 0.011410796083509922, -0.028014646843075752, -0.013589492067694664, -0.005411920603364706, 0.036550361663103104, -0.0039917887188494205, 0.042499493807554245, 0.011948008090257645, -0.0028203667607158422, 0.016832664608955383, 0.03647077456116676, 0.010595028288662434, 0.015221026726067066, 0.04198217764496803, -0.05455693602561951, -0.054238587617874146, -0.024612300097942352, -0.02437353879213333, -0.06144121661782265, -0.008794371038675308, -0.009724544361233711, -0.009048054926097393, -0.01889198087155819, -0.014275929890573025, -0.04138527438044548, 0.07345886528491974, -0.003954482264816761, -0.027278468012809753, -0.03129761293530464, 0.029705872759222984, -0.03857983276247978, 0.026900429278612137, -0.03605294227600098, -0.033506155014038086, -0.005605914164334536, -0.056188467890024185, 0.008779448457062244, -0.0068046944215893745, -0.03376481309533119, 0.01874275505542755, -0.014315723441541195, -0.031854722648859024, 0.01643472909927368, 0.009510654956102371, 0.04755327105522156, 0.04186279699206352, -0.02033449523150921, -0.001464899512939155, 0.013599440455436707, -0.0011316286399960518, -0.0521693229675293, 0.011162086389958858, -0.03637129068374634, 0.05324374884366989, -0.0357544906437397, -0.01275382749736309, 0.03740592300891876, 0.006745004095137119, 0.07210588455200195, -0.0014400285435840487, -0.009540500119328499, -0.027676403522491455, -0.015022058971226215, 0.0069041782990098, -0.035336658358573914, 0.01591741293668747, 0.0014922574628144503, -0.011002912186086178, -0.009580293670296669, -0.04604111984372139, 0.029705872759222984, -0.0015469735953956842, -0.007814454846084118, 0.004519053269177675, -0.037923239171504974, 0.05718330666422844, 0.01701173558831215, 0.06808673590421677, 0.01159981545060873, -0.0384206585586071, -0.006645520217716694, 0.027397848665714264, 0.05085613578557968, 0.0010116262128576636, -0.017300238832831383, -0.056387435644865036, -0.04090775176882744, 0.028730930760502815, -0.015479684807360172, -0.04174341633915901, -0.01279362104833126, 0.05308457463979721, -0.02276190184056759, -0.05057758092880249, 0.019697798416018486, 0.015032007358968258, 0.012664292007684708, -0.016743129119277, -0.0021103008184581995, -0.04767265170812607, -0.006789771839976311, -0.04329536482691765, -0.022324172779917717, -0.060605552047491074, -0.014017271809279919, 0.005675552878528833, -0.026303526014089584, -0.00542684318497777, -0.0035789308603852987, 0.051532626152038574, 0.05010005831718445, 0.012316098436713219 ]
30,211
networkx.classes.multidigraph
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._node.items()) H.add_edges_from( (v, u, k, deepcopy(d)) for u, v, k, d in self.edges(keys=True, data=True) ) return H return nx.reverse_view(self)
(self, copy=True)
[ 0.0014635407133027911, 0.000058272147725801915, 0.028395134955644608, -0.02683047018945217, -0.07816218584775925, 0.0023914501070976257, -0.06383126974105835, 0.04658437892794609, 0.10725075751543045, -0.020749608054757118, -0.01012587919831276, 0.017024634405970573, -0.026421522721648216, 0.03595176339149475, 0.012223955243825912, 0.06781405955553055, -0.018313705921173096, -0.00559634855017066, -0.005351869855076075, 0.026314841583371162, 0.014073105528950691, -0.05017600208520889, -0.004042795393615961, -0.0028737406246364117, -0.014046435244381428, -0.017513593658804893, -0.023505553603172302, -0.026581544429063797, -0.01925606280565262, 0.016980184242129326, -0.01267735194414854, -0.04928698390722275, -0.009788054041564465, 0.014864329248666763, 0.01856263168156147, -0.00035643941373564303, -0.03420929238200188, 0.06646275520324707, -0.055936817079782486, -0.012570670805871487, 0.018011441454291344, -0.08804803341627121, 0.029764218255877495, 0.034084830433130264, 0.05088721215724945, 0.0058674984611570835, 0.030546551570296288, -0.036876339465379715, -0.0139930946752429, -0.06329786032438278, 0.04157033562660217, 0.010401474311947823, -0.03399593010544777, 0.061590950936079025, -0.018438169732689857, -0.03154224902391434, 0.02252763696014881, 0.07602855563163757, 0.0073343729600310326, 0.015593321062624454, -0.042210426181554794, -0.06699616461992264, -0.033071354031562805, -0.02951529435813427, -0.00994807668030262, 0.03652073070406914, -0.05010487884283066, -0.02435900829732418, 0.01026812195777893, -0.034067049622535706, -0.03947225958108902, 0.028217332437634468, 0.014437601901590824, -0.0033649213146418333, 0.02055402472615242, -0.015077692456543446, 0.033249158412218094, 0.051491741091012955, -0.031755611300468445, -0.0428149588406086, -0.04530419781804085, -0.00879235751926899, -0.009361326694488525, 0.0344582162797451, 0.0019502764334902167, -0.01743358187377453, 0.06763625144958496, -0.006747622974216938, 0.008618999272584915, -0.06102198362350464, -0.030582113191485405, -0.004849576391279697, -0.0418192595243454, 0.0309732798486948, 0.044344063848257065, -0.039543382823467255, -0.04921586439013481, -0.04455742612481117, -0.003518276382237673, -0.016526786610484123, -0.03252016380429268, 0.056932512670755386, -0.1057572141289711, 0.023950060829520226, -0.011166026815772057, -0.03413817286491394, -0.007725539617240429, -0.01891823671758175, -0.03680521622300148, -0.03568505868315697, -0.05849717929959297, 0.07026773691177368, 0.05554565042257309, 0.010845981538295746, 0.04395289719104767, 0.006729842629283667, 0.006618715822696686, -0.009414668194949627, 0.019682789221405983, 0.0253902655094862, -0.026403741911053658, 0.03632514923810959, -0.024252327159047127, 0.0014802097575739026, -0.05522560700774193, 0.037409745156764984, 0.016455665230751038, -0.0006417576223611832, -0.023096606135368347, -0.04644213989377022, 0.0058674984611570835, -0.016535677015781403, -0.041214730590581894, 0.08655449002981186, 0.02599479630589485, 0.03940114006400108, 0.011423841118812561, 0.03929445892572403, 0.01710464619100094, 0.10020975768566132, -0.015451079234480858, -0.013397454284131527, 0.08641225099563599, 0.08349628001451492, -0.006196433678269386, -0.04238823056221008, -0.0026403742376714945, 0.03911665454506874, 0.0012312856270000339, -0.004033904988318682, 0.005360759794712067, 0.0308665968477726, 0.021336358040571213, -0.011210477910935879, -0.011068235151469707, 0.024163424968719482, -0.08541654795408249, 0.022118691354990005, -0.06013296917080879, 0.01888267695903778, -0.05419434979557991, 0.0418192595243454, 0.02371891774237156, -0.06304893642663956, 0.004427294246852398, -0.03300023451447487, 0.11386502534151077, -0.06681835651397705, -0.0006773181958124042, 0.05732367932796478, -0.043348364531993866, -0.05490555986762047, -0.040219034999608994, -0.005818602629005909, -0.029088567942380905, 0.006058636587113142, 0.03204009681940079, 0.030457649379968643, -0.015611101873219013, 0.026954932138323784, 0.005947509780526161, -0.03861880674958229, -0.042530473321676254, -0.03396036848425865, 0.04875357821583748, -0.0394367016851902, -0.02933749184012413, 0.020927410572767258, 0.023274410516023636, -0.02451903000473976, 0.029799779877066612, 0.025248022750020027, 0.05803489312529564, -0.02069626748561859, 0.04295719787478447, -0.0836385190486908, -0.024074522778391838, 0.04509083554148674, 0.021976448595523834, 0.06774293631315231, 0.008214497938752174, -0.009090177714824677, 0.08136264234781265, -0.003882772522047162, -0.032093439251184464, 0.028928544372320175, -0.018135903403162956, -0.05426546931266785, 0.010552606545388699, 0.0008756796596571803, 0.02252763696014881, 0.019967274740338326, 0.05586569756269455, -0.04718891158699989, -0.0513850599527359, 0.019807251170277596, -0.08370964229106903, 0.017522484064102173, 0.044664107263088226, -0.037196382880210876, -0.027577241882681847, -0.0020569581538438797, -0.03600510209798813, -0.008618999272584915, -0.003716082312166691, -0.020945191383361816, -0.02236761525273323, -0.03463602066040039, -0.0023625569883733988, -0.04370397329330444, 0.04427294060587883, -0.0029781998600810766, 0.007036552764475346, -0.035382792353630066, 0.046193212270736694, -0.02619037963449955, -0.05554565042257309, 0.00837896578013897, 0.026723787188529968, 0.04743783548474312, -0.0625510886311531, 0.008410081267356873, -0.007938902825117111, -0.0016302310395985842, 0.00613420270383358, 0.023967841640114784, 0.0059341746382415295, 0.009476899169385433, 0.007378823589533567, 0.0028826307971030474, -0.027932848781347275, -0.044699668884277344, -0.023736698552966118, 0.03164893016219139, 0.05967067927122116, -0.007890007458627224, -0.04313500225543976, -0.08676785230636597, -0.011815007776021957, 0.04594428837299347, 0.026225939393043518, 0.0008923487039282918, -0.043668411672115326, -0.028217332437634468, 0.03543613478541374, -0.011877238750457764, -0.014544283971190453, 0.0010957109043374658, 0.0010968220885843039, 0.01658901758491993, 0.1085309386253357, 0.000510350102558732, -0.028270673006772995, 0.016535677015781403, 0.01891823671758175, 0.03170227259397507, 0.01260623149573803, 0.006627606227993965, -0.02683047018945217, -0.028608499094843864, -0.029408613219857216, -0.013415235094726086, -0.001259067328646779, -0.004658438265323639, -0.005236297845840454, 0.013406344689428806, -0.009583580307662487, -0.0145887341350317, 0.016784600913524628, 0.01722021773457527, 0.12901383638381958, 0.032271239906549454, 0.006867640186101198, -0.00846786703914404, 0.010090319439768791, -0.027417220175266266, -0.015566650778055191, -0.021994229406118393, 0.014971010386943817, 0.10959775745868683, 0.014384261332452297, -0.034884944558143616, 0.057750407606363297, 0.004360618069767952, 0.012410648167133331, 0.030386529862880707, 0.03790759667754173, 0.04338392615318298, 0.016509005799889565, 0.008739016018807888, -0.06987657397985458, 0.01292627677321434, -0.04807792603969574, 0.03232458233833313, -0.04658437892794609, -0.02786172740161419, -0.013655268587172031, -0.053127530962228775, 0.05017600208520889, 0.027061613276600838, -0.06376014649868011, 0.028057310730218887, -0.05110057443380356, 0.004327279981225729, -0.02419898472726345, 0.05390986427664757, -0.025905894115567207, 0.0625510886311531, 0.022598758339881897, 0.020145077258348465, 0.05166954547166824, -0.005151841323822737, 0.0018624862423166633, 0.06063081696629524, -0.055616769939661026, 0.020340660586953163, 0.06326229870319366, 0.030546551570296288, -0.026688227429986, -0.017326900735497475, 0.02819955162703991, 0.053803183138370514, -0.016704589128494263, -0.04231710731983185, 0.011921689845621586, 0.04029015451669693, -0.017682505771517754, -0.021496379747986794, -0.03330249711871147, 0.06603602319955826, -0.021283017471432686, 0.0378364734351635, -0.012526219710707664, 0.032217901200056076, -0.013806401751935482, 0.03381812572479248, 0.006285335402935743, 0.00033143587643280625, -0.013699719682335854, -0.06856083124876022, -0.03188007324934006, 0.023825598880648613, -0.03829876333475113, -0.03264462575316429, 0.022776560857892036, -0.035756178200244904, -0.008165601640939713, 0.030617672950029373, -0.018687093630433083, -0.010445925407111645, -0.02537248469889164, -0.053980983793735504, 0.014517613686621189, 0.030262067914009094, -0.02469683438539505, 0.021087434142827988, -0.044024016708135605, -0.010579276829957962, 0.060417450964450836, 0.0021992006804794073, 0.014864329248666763, -0.0066720568574965, -0.018704872578382492, 0.02355889417231083, 0.03015538491308689, -0.014153117313981056, 0.0467977449297905, 0.03200453519821167, 0.06276445090770721, -0.045161955058574677, -0.060595255345106125, -0.036911897361278534, -0.00509405555203557, 0.00846786703914404, -0.04189038276672363, -0.01891823671758175, 0.029426392167806625, 0.024234546348452568, -0.02599479630589485, -0.026812689378857613, 0.020767387002706528, 0.01385085191577673, 0.02700827270746231, 0.02901744656264782, 0.011210477910935879, 0.013726389966905117, 0.02469683438539505, 0.06063081696629524, 0.04971371218562126, -0.06287113577127457, 0.014108666218817234, -0.011166026815772057, -0.044166259467601776, -0.003329360857605934, 0.046157654374837875, -0.00870345626026392, 0.0699121281504631, 0.018633753061294556, 0.04768675938248634, 0.011815007776021957, 0.026474863290786743, 0.061413150280714035, 0.009601361118257046, -0.015184374526143074, 0.055936817079782486, -0.0058541628532111645, -0.01217950414866209, 0.04445074498653412, -0.0722946897149086, 0.10248563438653946, 0.006058636587113142, -0.048149045556783676, 0.024981318041682243, -0.02736387774348259, 0.03648517280817032, -0.005814157426357269, 0.05686139315366745, -0.04338392615318298, -0.027257196605205536, 0.09231530874967575, -0.013806401751935482, -0.013788620941340923, -0.0016224521677941084, -0.0776643380522728, -0.015468859113752842, 0.013975313864648342, 0.023149948567152023, -0.010899323038756847, 0.04288607835769653, -0.05465663596987724, 0.0139930946752429, 0.0071699051186442375, 0.01890045590698719, -0.051313940435647964, -0.07581519335508347, -0.014677636325359344, -0.025248022750020027, -0.020429562777280807, -0.048966940492391586, 0.03184451535344124, 0.01723799854516983, -0.0024403459392488003, -0.01258845068514347, -0.013681938871741295, -0.015228824689984322, -0.034547120332717896, 0.0467977449297905, -0.04626433551311493, -0.04861133545637131, -0.003173783188685775, 0.04686886444687843, -0.04960703104734421, -0.018669312819838524, -0.04957146942615509, 0.024821296334266663, 0.014748756773769855, -0.013681938871741295, -0.03890329226851463, -0.04829128831624985, -0.0746772512793541, -0.036698535084724426, -0.009743602946400642, -0.040041230618953705, 0.044415183365345, 0.02487463690340519, 0.02339887246489525, -0.0005084053846076131, 0.020358441397547722, -0.005991960410028696, -0.0014135336969047785, 0.012712912634015083, -0.015131033957004547, -0.07154791802167892, 0.013984204269945621, 0.005462996661663055, 0.04324168339371681, -0.06344009935855865, -0.016286753118038177, -0.02503465861082077, -0.054941121488809586, -0.009245755150914192, -0.042210426181554794, 0.024287886917591095, 0.004685108549892902, -0.023967841640114784, 0.06031076982617378, -0.007734429556876421, 0.017273560166358948, 0.025781432166695595, 0.0021903105080127716, 0.008676785044372082, 0.0027781715616583824, 0.013824181631207466, 0.04743783548474312, 0.036360710859298706, 0.01723799854516983, -0.04587316885590553, 0.015877805650234222, 0.04014791175723076, -0.014073105528950691, 0.024287886917591095, 0.026563765481114388, -0.012117273174226284, -0.008392300456762314, -0.011574974283576012, 0.039898987859487534, -0.01377084106206894, -0.0035627272445708513, 0.05988404154777527, 0.001155719393864274, 0.0279861893504858, 0.012019481509923935, 0.033266935497522354, 0.053269773721694946, 0.02899966575205326, -0.01352191623300314, -0.0022369837388396263, 0.01092599332332611, -0.06457804143428802, -0.014304249547421932, -0.01690017245709896, 0.04473523050546646, -0.03520498797297478, -0.014704306609928608, -0.021265236660838127, 0.028910763561725616, 0.051811788231134415, -0.033747006207704544, 0.024252327159047127, -0.0306710135191679, -0.07759322226047516, 0.0029159688856452703, 0.02501687966287136, -0.02571031078696251, 0.02025175839662552, 0.0028115096502006054, -0.059279512614011765, 0.03961450234055519, 0.05547453090548515, -0.009734713472425938, -0.024412348866462708, 0.0002561474102549255, 0.038441002368927, -0.0016980184009298682, -0.0010418143356218934, 0.04957146942615509, 0.02935527265071869, 0.004531753249466419, 0.004540643654763699, 0.04928698390722275, 0.0028470701072365046, -0.007516621146351099, 0.07545958459377289, 0.02419898472726345, 0.0030715465545654297, 0.002658154582604766, 0.06130646541714668, 0.0007934457971714437, 0.025621408596634865, -0.01449983287602663, -0.021478598937392235, -0.000545632909052074, -0.02339887246489525, 0.013566367328166962, -0.0513850599527359, 0.006605380680412054, 0.010632618330419064, 0.07140567898750305, 0.03997011110186577, -0.06148426979780197, -0.008067809976637363, -0.016295643523335457, 0.03568505868315697, 0.009779163636267185, -0.011219368316233158, -0.036396268755197525, -0.033231377601623535, -0.019611667841672897, -0.00014106165326666087, 0.00961025059223175, 0.027239415794610977, 0.020625146105885506, 0.08676785230636597, 0.0023692247923463583, -0.01838482730090618, -0.019967274740338326, 0.0001930829166667536, -0.05358981713652611, 0.012126163579523563, -0.03694745898246765, 0.028146211057901382, 0.012952947057783604, -0.008174492046236992, -0.028092870488762856, 0.010081429034471512, -0.04128585010766983, -0.018278146162629128, 0.0047251139767467976, -0.087621308863163, 0.018509289249777794, 0.01425979845225811, -0.024110084399580956, -0.030742134898900986, 0.003716082312166691, -0.07602855563163757, 0.01593114621937275, 0.03278686851263046, 0.037409745156764984, -0.02453681081533432, 0.04921586439013481, 0.016322312876582146, -0.08819027990102768, -0.012401757761836052, 0.04050351679325104, -0.03552503511309624, -0.08072255551815033, 0.02290102280676365, 0.03618290647864342, 0.003191563533619046, 0.020660705864429474, -0.017664726823568344, -0.025283584371209145, -0.0224031750112772, 0.009459118358790874, -0.08627000451087952, -0.018198134377598763, 0.04309944063425064, -0.055118922144174576, -0.010908212512731552, -0.04587316885590553, -0.03413817286491394, 0.06585822254419327, 0.043988458812236786, 0.00019169383449479938, -0.009690262377262115, 0.02732831798493862, 0.0308665968477726, -0.0028026194777339697, 0.02421676553785801, -0.03497384488582611, 0.015042131766676903, -0.0002482296258676797, 0.024945758283138275, -0.04313500225543976, 0.040361277759075165, 0.05284304544329643, 0.00762774795293808, 0.019682789221405983, 0.0025070221163332462, -0.025283584371209145, -0.008956825360655785, -0.012206174433231354, -0.03253794461488724, -0.0012757363729178905, -0.04263715445995331, -0.0314711257815361, -0.005102945491671562, -0.007316592615097761, 0.012748473323881626, -0.054301030933856964, -0.0025092444848269224, 0.0483979694545269, -0.0045184181071817875, -0.05739480257034302, -0.0054052104242146015, 0.042530473321676254, -0.015966707840561867, -0.0012535110581666231, -0.023487772792577744, -0.022136470302939415, -0.017966991290450096, -0.036734096705913544, 0.028235113248229027, -0.010294792242348194, 0.05483444035053253, -0.007134344428777695, -0.03915221616625786, -0.05483444035053253, 0.0038938852958381176, -0.03314247354865074, 0.028146211057901382, -0.02405674383044243, 0.03666297346353531, 0.011583863757550716, 0.040183473378419876, 0.003302690340206027, -0.014055325649678707, -0.017353570088744164, -0.05440771207213402, 0.04324168339371681, 0.01077486015856266, -0.009041281417012215, 0.033213596791028976, 0.013833072036504745, 0.06198211759328842, 0.002351444447413087, 0.0033204706851392984, -0.010072538629174232, -0.0818604901432991, 0.04025459289550781, -0.0030382084660232067, -0.012801814824342728, -0.008174492046236992, 0.03237792104482651, 0.030902158468961716, 0.0139930946752429, -0.0328579917550087, -0.05739480257034302, -0.047971244901418686, -0.03630736842751503, -0.04644213989377022, 0.01492656022310257, 0.05533228814601898, -0.005796377081423998, -0.021638622507452965, 0.015406628139317036, 0.010623727925121784, 0.03234236314892769, 0.001739135361276567, 0.05856830254197121, 0.0018624862423166633, 0.027097174897789955, -0.02933749184012413, 0.06880975514650345, -0.0007423274219036102, -0.04573092609643936, -0.005040714517235756, 0.01045481488108635, -0.015068802051246166, -0.0625510886311531, 0.0639379546046257, -0.0031226647552102804, 0.00583638297393918, -0.030582113191485405, 0.021674182265996933, 0.02041178196668625, 0.0010595946805551648, 0.009885845705866814, -0.047829002141952515, -0.04558868333697319, -0.0022547640837728977, -0.014019764959812164, -0.010205890983343124, -0.019682789221405983, -0.013441905379295349, 0.027577241882681847, 0.06066637486219406, 0.010472595691680908 ]
30,215
networkx.classes.multigraph
to_directed
Returns a directed representation of the graph. Returns ------- G : MultiDiGraph A directed graph with the same name, same nodes, and with each edge (u, v, k, data) replaced by two directed edges (u, v, k, data) and (v, u, k, 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=MultiDiGraph(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 MultiGraph to use dict-like objects in the data structure, those changes do not transfer to the MultiDiGraph created by this method. Examples -------- >>> G = nx.MultiGraph() >>> G.add_edge(0, 1) 0 >>> G.add_edge(0, 1) 1 >>> H = G.to_directed() >>> list(H.edges) [(0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1)] If already directed, return a (deep) copy >>> G = nx.MultiDiGraph() >>> G.add_edge(0, 1) 0 >>> H = G.to_directed() >>> list(H.edges) [(0, 1, 0)]
def to_directed(self, as_view=False): """Returns a directed representation of the graph. Returns ------- G : MultiDiGraph A directed graph with the same name, same nodes, and with each edge (u, v, k, data) replaced by two directed edges (u, v, k, data) and (v, u, k, 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=MultiDiGraph(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 MultiGraph to use dict-like objects in the data structure, those changes do not transfer to the MultiDiGraph created by this method. Examples -------- >>> G = nx.MultiGraph() >>> G.add_edge(0, 1) 0 >>> G.add_edge(0, 1) 1 >>> H = G.to_directed() >>> list(H.edges) [(0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1)] If already directed, return a (deep) copy >>> G = nx.MultiDiGraph() >>> G.add_edge(0, 1) 0 >>> H = G.to_directed() >>> list(H.edges) [(0, 1, 0)] """ 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, key, deepcopy(datadict)) for u, nbrs in self.adj.items() for v, keydict in nbrs.items() for key, datadict in keydict.items() ) return G
(self, as_view=False)
[ -0.017784960567951202, -0.0004492041189223528, 0.01128353737294674, 0.00636989064514637, -0.018931163474917412, 0.01051313802599907, -0.03613362833857536, -0.014149049296975136, 0.05994085595011711, -0.007910690270364285, -0.02298046089708805, -0.0027527697384357452, 0.0012941776076331735, 0.06384922564029694, 0.013970541767776012, 0.04306722432374954, -0.041150618344545364, 0.0031896429136395454, 0.04832849279046059, 0.09312441945075989, 0.008056314662098885, -0.07339467108249664, 0.003581888973712921, -0.018123183399438858, -0.02375086024403572, -0.02267981693148613, -0.007267124485224485, 0.0005305306403897703, -0.0013646410079672933, 0.036828864365816116, -0.04746413975954056, -0.06621679663658142, -0.0009583021164871752, 0.04892977699637413, 0.035363227128982544, 0.039346758276224136, -0.031248165294528008, 0.06873469054698944, -0.05828731507062912, -0.03669733554124832, -0.012627040036022663, -0.01902511529624462, 0.014177233912050724, -0.006360495463013649, 0.05050816014409065, 0.018123183399438858, 0.02951946295797825, 0.05618280917406082, -0.035569921135902405, -0.07174112647771835, 0.022416753694415092, -0.0037768378388136625, -0.03288291394710541, 0.04607366397976875, -0.022604655474424362, 0.019466686993837357, 0.0312669537961483, 0.031999774277210236, -0.008507279679179192, 0.02095111459493637, -0.04862913489341736, -0.02809140458703041, 0.0469004325568676, -0.0492304228246212, -0.04081239551305771, 0.011274142190814018, -0.07207935303449631, -0.03429218381643295, -0.006966480519622564, 0.01086075697094202, -0.043480608612298965, -0.015417389571666718, 0.022022157907485962, 0.018395641818642616, 0.06993726640939713, 0.04911768063902855, 0.029387932270765305, 0.018282901495695114, -0.0021867139730602503, -0.01806681416928768, -0.03215009719133377, -0.04103787988424301, -0.03998562693595886, -0.012608249671757221, 0.02732100524008274, 0.011471440084278584, -0.0012295861961320043, 0.025197708979249, 0.022473124787211418, -0.10424824059009552, -0.0039670891128480434, 0.0023511284962296486, -0.019429106265306473, 0.05231202021241188, -0.01452485378831625, -0.012551878578960896, -0.03957223892211914, -0.04423221945762634, 0.0003032861859537661, -0.008258309215307236, -0.059489890933036804, -0.007967060431838036, -0.07959544658660889, -0.0014186629559844732, -0.05088396370410919, -0.08500703424215317, -0.017418550327420235, 0.012138493359088898, -0.02239796333014965, -0.03998562693595886, -0.07741577923297882, 0.06723146885633469, 0.04761446267366409, 0.05238718166947365, 0.013406834565103054, 0.0002445666759740561, 0.033521782606840134, -0.04032384976744652, -0.009573626331984997, 0.002785652643069625, -0.045810598880052567, 0.06554035097360611, -0.0002610081573948264, 0.018085604533553123, -0.020105553790926933, 0.0074127488769590855, 0.022153690457344055, -0.026700926944613457, 0.016958190128207207, -0.012655224651098251, -0.029650995507836342, 0.005331730004400015, -0.038162972778081894, 0.06565309315919876, 0.03483710065484047, 0.010174913331866264, -0.062496330589056015, -0.01756887137889862, 0.013735664077103138, 0.07719029486179352, -0.05674651637673378, -0.051973797380924225, 0.06527728587388992, 0.09395118802785873, 0.004979413002729416, -0.027452537789940834, 0.001244853250682354, 0.011114425957202911, -0.06430019438266754, -0.0424659363925457, 0.017315203323960304, 0.02382602170109749, 0.0482909120619297, -0.002769211307168007, -0.014637595042586327, 0.032469529658555984, -0.07083919644355774, 0.026174800470471382, -0.026080850511789322, 0.003743954934179783, -0.07335709035396576, -0.030665667727589607, 0.03957223892211914, 0.050320256501436234, 0.017709799110889435, -0.0469004325568676, 0.08816379308700562, -0.06257148832082748, -0.018264111131429672, 0.06050456315279007, -0.03870788961648941, -0.020518939942121506, -0.03761805593967438, -0.01424300018697977, -0.028523581102490425, 0.024370938539505005, 0.03994804620742798, 0.025892946869134903, 0.013247117400169373, 0.0011080368421971798, 0.01813257858157158, -0.05306363105773926, -0.03010196052491665, 0.024352148175239563, 0.004056342411786318, -0.0009359887335449457, -0.015050980262458324, -0.007835528813302517, 0.03134211525321007, 0.015539526008069515, 0.07425902038812637, 0.022529494017362595, 0.01891237497329712, 0.011772084049880505, 0.02876785397529602, -0.06971178203821182, -0.026043269783258438, -0.006181987933814526, -0.021571192890405655, 0.12123461067676544, 0.02626875229179859, -0.049268003553152084, 0.05035783722996712, 0.03128574416041374, -0.027001570910215378, 0.031417276710271835, -0.0213457103818655, -0.029876478016376495, 0.0201807152479887, 0.00907098688185215, 0.004993505775928497, -0.0026212381199002266, 0.040098365396261215, 0.03463040664792061, -0.03089115023612976, -0.04171432554721832, -0.0559949092566967, 0.028110194951295853, 0.008615324273705482, 0.002026996808126569, -0.009136753156781197, -0.01883721351623535, -0.041827067732810974, 0.03735499083995819, -0.020518939942121506, -0.05257508531212807, -0.00003207552435924299, -0.04333028942346573, 0.023393845185637474, -0.053514596074819565, 0.06287213414907455, -0.04543479532003403, -0.0040633887983858585, 0.00586725166067481, 0.018790237605571747, 0.006416866090148687, -0.024577630683779716, -0.002978252712637186, -0.0038637425750494003, 0.06523970514535904, -0.04862913489341736, -0.03983530402183533, -0.008958245627582073, 0.038162972778081894, 0.04137610271573067, 0.015407994389533997, 0.013106190599501133, -0.004610654432326555, 0.032187677919864655, 0.017305808141827583, -0.03367210552096367, -0.05189863592386246, -0.04430738091468811, 0.022924089804291725, 0.030271071940660477, -0.021289339289069176, -0.06610405445098877, -0.02741495706140995, -0.03235678747296333, -0.02517891861498356, 0.001154425204731524, 0.007008758373558521, -0.028035033494234085, 0.024295777082443237, 0.016930004581809044, -0.008648206479847431, -0.014562434516847134, 0.005289451684802771, -0.011264747008681297, 0.020875953137874603, 0.07110226154327393, 0.04062449187040329, 0.027565278112888336, 0.008897177875041962, -0.020424988120794296, -0.008051617071032524, -0.026494234800338745, 0.024934645742177963, -0.03859514743089676, -0.029293980449438095, -0.0492304228246212, -0.007530187722295523, -0.03611483797430992, -0.021251758560538292, -0.040962718427181244, 0.01708032563328743, -0.009817899204790592, -0.004591864068061113, 0.008037524297833443, -0.009235401637852192, 0.07237999141216278, -0.011452649720013142, 0.005698139313608408, 0.0046223984099924564, 0.00994003564119339, 0.03976014256477356, -0.033634524792432785, 0.013857800513505936, 0.015971701592206955, 0.08064769953489304, 0.018893584609031677, -0.014308765530586243, 0.038444824516773224, 0.027452537789940834, 0.014778521843254566, -0.008366352878510952, 0.02818535640835762, -0.004354637581855059, 0.016479037702083588, 0.02848600037395954, -0.06723146885633469, 0.012260629795491695, -0.008868992328643799, 0.05099670588970184, -0.03724225237965584, -0.01677968166768551, 0.0023511284962296486, -0.036640964448451996, 0.0492304228246212, 0.043668512254953384, -0.07080161571502686, 0.0671938881278038, -0.06978694349527359, -0.02384481206536293, 0.007995245978236198, 0.048892196267843246, 0.061444077640771866, 0.04257867857813835, 0.052349600940942764, 0.03851998597383499, -0.010033986531198025, 0.012185469269752502, -0.0031097843311727047, 0.03714830055832863, -0.08034705370664597, 0.016770286485552788, 0.04220287501811981, -0.026099639013409615, 0.027471328154206276, -0.030440185219049454, 0.018085604533553123, 0.050320256501436234, -0.031003892421722412, -0.04205255210399628, -0.004387520253658295, 0.02384481206536293, -0.029312770813703537, -0.004157340154051781, -0.021270548924803734, 0.012805546633899212, -0.026606976985931396, 0.05734780430793762, -0.0273022148758173, 0.04051175341010094, -0.03607725724577904, 0.02856116183102131, -0.0008203113102354109, -0.011405673809349537, -0.004664676263928413, -0.012824336998164654, -0.00615380285307765, 0.019166043028235435, 0.029895268380641937, -0.021665144711732864, 0.07854319363832474, -0.01129293255507946, -0.021176597103476524, 0.019710959866642952, 0.02316836267709732, -0.03727983310818672, -0.023036831989884377, -0.046261563897132874, -0.02703915163874626, 0.030083170160651207, -0.019842490553855896, 0.016526013612747192, -0.03541959822177887, 0.014506063424050808, -0.003149713622406125, 0.02769681066274643, 0.018564755097031593, -0.02123296819627285, 0.017155487090349197, 0.046374306082725525, 0.0679079219698906, -0.04622398316860199, 0.11695043742656708, 0.020312245935201645, 0.008535465225577354, -0.03579540178179741, -0.027339795604348183, -0.008502582088112831, 0.02230401150882244, 0.03370968624949455, -0.03333388268947601, -0.02365690842270851, 0.031417276710271835, 0.024821903556585312, -0.0459609217941761, -0.024089084938168526, 0.01365110743790865, -0.023205943405628204, 0.004286522977054119, 0.011555995792150497, -0.015032189898192883, 0.021496031433343887, 0.04047417268157005, 0.029406722635030746, 0.020218295976519585, -0.031022682785987854, 0.060466986149549484, 0.010447371751070023, -0.04306722432374954, 0.006980573292821646, 0.060091178864240646, 0.004124457016587257, 0.04768962413072586, -0.004232501145452261, 0.050320256501436234, 0.06523970514535904, 0.03889579325914383, 0.04167674854397774, 0.022285221144557, -0.008901875466108322, 0.044720765203237534, -0.055919747799634933, -0.05464201048016548, 0.059301991015672684, -0.01457182876765728, 0.06760727614164352, 0.03196219354867935, -0.031191794201731682, 0.041939809918403625, -0.021007485687732697, 0.012288815341889858, 0.014280580915510654, 0.04235319420695305, 0.02179667539894581, -0.00011413601168897003, 0.05888860300183296, -0.01738096959888935, -0.03618999570608139, -0.01573682390153408, -0.09267345070838928, 0.009474976919591427, -0.04611124470829964, -0.01438392698764801, 0.017258834093809128, 0.005350520368665457, -0.012551878578960896, 0.05561910197138786, 0.032093726098537445, 0.05655861645936966, -0.011058054864406586, -0.08666057884693146, 0.02422061562538147, 0.01038160640746355, -0.029218818992376328, 0.010616484098136425, 0.051861055195331573, 0.04592334106564522, -0.037223462015390396, -0.0267197173088789, 0.017606452107429504, -0.028993336483836174, -0.04239077493548393, 0.042616259306669235, -0.021984577178955078, -0.050320256501436234, -0.022548284381628036, 0.0604294054210186, -0.024352148175239563, 0.003175550140440464, -0.05877586454153061, -0.005679349415004253, 0.0037322109565138817, -0.007657021749764681, -0.024540049955248833, -0.04960622638463974, -0.06189504265785217, -0.041150618344545364, -0.051410090178251266, 0.028711482882499695, 0.03019591234624386, 0.0006852564984001219, 0.042691420763731, 0.03376605734229088, 0.018320482224225998, -0.02970736473798752, 0.016732705757021904, -0.01613141968846321, -0.011753293685615063, -0.07640110701322556, -0.011067450046539307, 0.03859514743089676, 0.0679079219698906, -0.05490507557988167, -0.03840724378824234, -0.011631157249212265, -0.035175323486328125, 0.005026388447731733, -0.04426980018615723, 0.00872806552797556, 0.014543644152581692, 0.016619965434074402, 0.030571715906262398, 0.003527867142111063, 0.028692692518234253, -0.00019186593999620527, 0.001786247012205422, -0.019541846588253975, 0.00815966073423624, 0.015361019410192966, 0.03763684630393982, 0.0351189523935318, -0.0054961442947387695, -0.05050816014409065, 0.00014577113324776292, 0.012965263798832893, -0.07625078409910202, 0.026870040223002434, 0.021289339289069176, -0.026306333020329475, 0.01863991655409336, -0.06753211468458176, 0.05257508531212807, 0.00658597843721509, 0.027358585968613625, 0.024051504209637642, -0.007525490131229162, 0.029782526195049286, 0.039046112447977066, 0.018001047894358635, 0.07309402525424957, 0.0052988468669354916, -0.051973797380924225, 0.0157462190836668, 0.05084638297557831, -0.08200059831142426, -0.019166043028235435, -0.00979910884052515, 0.01756887137889862, -0.08132414519786835, -0.02517891861498356, 0.02025587670505047, 0.023901181295514107, 0.0466749481856823, -0.03639668971300125, 0.035288065671920776, -0.06106827035546303, -0.0492304228246212, 0.034705568104982376, -0.005684047006070614, 0.020594099536538124, 0.06403712928295135, 0.015708638355135918, -0.012861917726695538, 0.0001446701498934999, 0.04663737118244171, -0.013425624929368496, -0.027189474552869797, -0.016911214217543602, 0.019917652010917664, -0.008239518851041794, 0.01777556538581848, 0.012110307812690735, 0.012053937651216984, 0.026212381199002266, -0.02529165893793106, 0.004359335172921419, -0.01322832703590393, -0.021157806739211082, 0.010794991627335548, 0.00901931431144476, 0.0015501945745199919, 0.03158638998866081, 0.007783855777233839, 0.019043905660510063, 0.007018153555691242, -0.03416065126657486, -0.045509956777095795, 0.04757688194513321, 0.045585114508867264, 0.02132692001760006, 0.01515432633459568, 0.003671142738312483, 0.0051109446212649345, 0.02230401150882244, 0.03998562693595886, -0.05828731507062912, 0.0016829005908221006, -0.03463040664792061, 0.02797866426408291, 0.004286522977054119, -0.003572494024410844, -0.015210697427392006, -0.01051313802599907, 0.004760976415127516, 0.04659979045391083, -0.011274142190814018, -0.013472599908709526, 0.015332833863794804, 0.015229487791657448, 0.0020152530632913113, -0.01571803353726864, -0.0038214644882827997, 0.010682250373065472, -0.042992062866687775, 0.052349600940942764, -0.05047057941555977, -0.027001570910215378, 0.04990687221288681, -0.006308822426944971, -0.06321036070585251, -0.015351624228060246, -0.046862851828336716, -0.07891900092363358, 0.041639167815446854, -0.06039182469248772, 0.0027645137161016464, 0.015379809774458408, -0.03964740037918091, -0.040774814784526825, -0.02363811805844307, -0.03774958848953247, 0.007586558349430561, -0.00040457729483023286, -0.003309430554509163, 0.001992939505726099, 0.03147364780306816, 0.031154213473200798, -0.06644228100776672, -0.0007950619328767061, 0.027452537789940834, 0.020725632086396217, -0.08718670159578323, -0.002100983401760459, 0.03496863320469856, -0.006308822426944971, 0.07222967594861984, -0.047050755470991135, -0.019842490553855896, -0.01138688437640667, -0.044833507388830185, -0.05614522844552994, -0.07253031432628632, 0.0382569245994091, -0.04663737118244171, 0.006534304935485125, -0.02720826305449009, -0.03820055350661278, 0.06640470027923584, 0.039046112447977066, -0.03444250673055649, -0.006506119854748249, 0.0536649189889431, 0.013613526709377766, -0.020500149577856064, -0.00368053768761456, -0.01648843288421631, 0.005482051987200975, 0.018508384004235268, 0.03976014256477356, -0.03789990767836571, 0.06535244733095169, 0.05975295603275299, -0.0024591723922640085, -0.0056699542328715324, 0.01881842315196991, -0.01066346000880003, -0.05528087913990021, -0.0017991652712225914, -0.01590593531727791, 0.03829450532793999, -0.04449528083205223, -0.03793748840689659, 0.062308426946401596, -0.0026541210245341063, 0.00010408030357211828, -0.04423221945762634, 0.004265383817255497, 0.07982093095779419, -0.018113788217306137, -0.008760948665440083, -0.05847521871328354, -0.03049655631184578, 0.013528971001505852, -0.03233799710869789, -0.007112104911357164, -0.065577931702137, 0.016535408794879913, -0.019429106265306473, 0.017305808141827583, 0.008389840833842754, -0.00375100108794868, 0.007107407320290804, -0.020725632086396217, -0.0201807152479887, -0.03671612590551376, -0.03743015229701996, 0.029763735830783844, 0.000577212602365762, 0.011997566558420658, 0.04799026623368263, 0.04915526136755943, -0.0038660913705825806, -0.04614882171154022, 0.040286269038915634, -0.012176074087619781, -0.016093838959932327, -0.00041896358015947044, 0.03273259475827217, 0.03485589101910591, 0.006694022100418806, 0.03699797764420509, -0.07610046118497849, 0.025986898690462112, 0.0023123736027628183, -0.05813699588179588, 0.02933156117796898, -0.0117251081392169, -0.03370968624949455, 0.007328192703425884, 0.03930917754769325, -0.01109563559293747, 0.015595897100865841, 0.002724584424868226, -0.03600209578871727, 0.009733343496918678, -0.051109444350004196, -0.01592472568154335, 0.06148165836930275, 0.03735499083995819, 0.0054961442947387695, -0.037505313754081726, -0.0024215918965637684, -0.00204108958132565, 0.043179966509342194, -0.01115200575441122, 0.06099311262369156, -0.01774737983942032, -0.015398599207401276, -0.012551878578960896, 0.023901181295514107, -0.05268782749772072, -0.06651744246482849, 0.014064492657780647, 0.04592334106564522, -0.0327889658510685, -0.04592334106564522, 0.062383588403463364, 0.003842603648081422, -0.005190803203731775, -0.032469529658555984, 0.061819881200790405, -0.013528971001505852, 0.013012239709496498, -0.0357014499604702, 0.015793194994330406, -0.10109147429466248, -0.017991652712225914, -0.02249191515147686, 0.020124344155192375, -0.008845504373311996, -0.05340185388922691, 0.054003141820430756, 0.036810074001550674, 0.02211610972881317 ]
30,216
networkx.classes.multigraph
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.MultiDiGraph
(self)
[ -0.041460879147052765, 0.03565278276801109, 0.010132895782589912, -0.01871100813150406, -0.05758058279752731, 0.009284020401537418, -0.04499934986233711, 0.0002904048596974462, 0.07412919402122498, -0.004510210826992989, -0.015940992161631584, -0.010079282335937023, -0.00059365457855165, 0.06354951858520508, 0.016789868474006653, 0.012965460307896137, -0.03608168661594391, 0.04117494076490402, 0.039602287113666534, 0.05768780782818794, -0.005490885581821203, -0.022213738411664963, 0.02476930059492588, -0.0036099557764828205, -0.005705338437110186, 0.0004018197942059487, -0.0043426696211099625, -0.004429791122674942, -0.03545619919896126, 0.02723550796508789, -0.06951845437288284, -0.052791137248277664, -0.011321322061121464, 0.05479269474744797, 0.061905380338430405, 0.06776709109544754, -0.03817260265350342, 0.09721861034631729, -0.10179360955953598, -0.01336755882948637, -0.05457824468612671, -0.015297634527087212, -0.02403658628463745, -0.0017759373877197504, 0.05997530743479729, 0.024215297773480415, 0.02426891028881073, -0.0008857348584569991, -0.05572199076414108, -0.05532882735133171, -0.012581232003867626, -0.001745779998600483, -0.007322670426219702, 0.06480049341917038, -0.028432870283722878, 0.04600013047456741, -0.0003532328410074115, 0.03735053166747093, -0.03032720275223255, 0.043927084654569626, -0.034080129116773605, 0.002394723240286112, 0.05286262184381485, -0.0649792030453682, -0.02244606241583824, -0.0014855326153337955, -0.07877566665410995, 0.012465070001780987, -0.01626267284154892, 0.052540943026542664, -0.019819015637040138, -0.029523005709052086, -0.00012460882135201246, 0.022231608629226685, 0.06762412190437317, -0.002284145914018154, 0.05472121015191078, 0.012956524267792702, 0.002116604708135128, -0.024251040071249008, -0.034669872373342514, -0.03354399651288986, -0.04239017516374588, 0.011410676874220371, 0.017701292410492897, -0.017460033297538757, -0.00647379457950592, 0.015101052820682526, -0.03215005248785019, -0.0820639431476593, -0.03286489471793175, -0.013233526609838009, -0.009748667478561401, 0.04828762635588646, -0.018201682716608047, 0.027878867462277412, -0.031238628551363945, -0.07162724435329437, 0.030738238245248795, -0.030899077653884888, -0.05368468910455704, 0.014529178850352764, -0.07813230901956558, -0.005700870882719755, -0.03745776042342186, -0.07713153213262558, -0.010740512050688267, 0.008899792097508907, -0.0334903821349144, -0.02119508758187294, -0.07999090105295181, 0.05579347535967827, 0.019908370450139046, 0.04535677284002304, 0.030648881569504738, -0.0065050688572227955, -0.001029820297844708, -0.0031050981488078833, 0.010767318308353424, -0.0077068982645869255, -0.046643488109111786, 0.06783857941627502, -0.022231608629226685, 0.037028852850198746, 0.008117932826280594, 0.010704769752919674, 0.021784832701086998, -0.022338835522532463, 0.011374935507774353, -0.0283256433904171, -0.004454363603144884, 0.0065363431349396706, -0.049324147403240204, 0.0448206402361393, 0.027646543458104134, 0.031006304547190666, -0.07462958246469498, 0.010249057784676552, 0.007903479970991611, 0.05876007303595543, -0.010758383199572563, -0.017790649086236954, 0.08628151565790176, 0.053791917860507965, -0.009480602107942104, 0.03366909176111221, -0.019819015637040138, 0.007648817263543606, -0.055757734924554825, -0.013716044835746288, 0.02228522300720215, 0.016780933365225792, 0.03956654667854309, 0.0019557650666683912, -0.0611547976732254, 0.010383090935647488, -0.057723551988601685, 0.011392805725336075, -0.0030403155833482742, -0.014627469703555107, -0.07051923871040344, -0.05036067217588425, 0.04364114999771118, 0.006866957992315292, -0.000756728055421263, -0.05096828565001488, 0.04303353279829025, -0.06608720868825912, -0.006125308573246002, 0.027682285755872726, -0.03867299109697342, -0.031578179448843, -0.02920132502913475, -0.03043442964553833, -0.03200708329677582, 0.025180336087942123, 0.04178255796432495, 0.06086885929107666, 0.016075026243925095, 0.0468221977353096, 0.04818040132522583, -0.03538471460342407, -0.03483071178197861, 0.015127859078347683, 0.052040550857782364, -0.00905169639736414, 0.002468441380187869, 0.010249057784676552, 0.013724980875849724, 0.035420458763837814, 0.0586528480052948, 0.028432870283722878, 0.000634422933217138, 0.01611970365047455, 0.049324147403240204, -0.0840655043721199, 0.018889719620347023, -0.009346568956971169, -0.05128996819257736, 0.11773459613323212, 0.0018641757778823376, -0.0016631262842565775, 0.0495743453502655, 0.014261112548410892, 0.007599671836942434, 0.03005913645029068, -0.023500455543398857, -0.015118923969566822, -0.01009715348482132, -0.009444859810173512, -0.014153886586427689, 0.004802849609404802, 0.04760852828621864, 0.020176436752080917, -0.01835358701646328, -0.03391928970813751, -0.03304360434412956, -0.0012610272970050573, -0.0028549032285809517, -0.0005470222095027566, -0.007809657137840986, -0.02909409999847412, -0.009587828069925308, 0.021123602986335754, -0.03611743077635765, -0.04435599222779274, -0.014421951957046986, -0.051683131605386734, 0.018782492727041245, -0.041568104177713394, 0.048359110951423645, -0.0581524558365345, 0.020373018458485603, 0.029487263411283493, 0.05078957602381706, -0.02094489149749279, -0.018782492727041245, -0.023339616134762764, -0.026913829147815704, 0.04828762635588646, -0.05861710384488106, -0.032328762114048004, -0.012974395416676998, 0.003160945139825344, 0.0734858363866806, 0.04328372702002525, -0.002021664520725608, 0.012420392595231533, 0.011669808067381382, 0.004362774547189474, -0.014019853435456753, -0.05657980218529701, -0.045892905443906784, -0.01244719885289669, 0.048859499394893646, -0.040853261947631836, -0.08885495364665985, -0.06862490624189377, 0.0013905925443395972, 0.003828876418992877, -0.024805042892694473, 0.035491943359375, -0.026091760024428368, 0.04517805948853493, 0.006214663852006197, -0.00745670311152935, -0.047143880277872086, 0.022821353748440742, -0.03206069767475128, 0.027271250262856483, 0.13074474036693573, 0.03633188083767891, 0.021016376093029976, 0.03942357748746872, -0.028504354879260063, -0.031006304547190666, -0.07244931161403656, 0.02821841649711132, -0.016191188246011734, -0.04020990431308746, -0.04031712934374809, -0.01374285202473402, -0.05411359667778015, -0.03885170444846153, -0.050217702984809875, 0.013054815120995045, 0.03143521025776863, 0.007322670426219702, 0.002056289929896593, -0.0023388760164380074, 0.06262022256851196, 0.016048219054937363, -0.00781412422657013, 0.009074035100638866, 0.0031475420109927654, -0.00458839675411582, -0.03225727751851082, -0.005799161735922098, 0.04925266653299332, 0.06555107980966568, 0.023357486352324486, -0.049109697341918945, -0.0060716955922544, 0.01821955479681492, -0.022481804713606834, 0.012938653118908405, 0.03593871742486954, 0.017165161669254303, 0.03331167250871658, 0.028272030875086784, -0.055257342755794525, 0.022714128717780113, -0.04603587090969086, 0.06086885929107666, 0.008184948936104774, 0.01956881955265999, -0.0023545133881270885, -0.027878867462277412, 0.03164966404438019, 0.07262802124023438, -0.09178581088781357, 0.07391473650932312, -0.06787431985139847, -0.004143854137510061, -0.04424876719713211, 0.0569014810025692, 0.009552085772156715, 0.06987588107585907, 0.028307773172855377, 0.04103197157382965, 0.01997985504567623, 0.021034248173236847, -0.0023455778136849403, 0.022106511518359184, -0.08599558472633362, 0.010606478899717331, 0.0775604397058487, -0.015217214822769165, 0.04396282881498337, -0.030362945050001144, 0.014296854846179485, 0.054042112082242966, -0.008167078718543053, -0.002736507449299097, 0.0017591833602637053, 0.03279341012239456, -0.026449181139469147, 0.005665128584951162, -0.008707677945494652, 0.011866389773786068, -0.03928060829639435, 0.08678191155195236, -0.016423512250185013, 0.044391732662916183, 0.015806959941983223, 0.03756498545408249, -0.021641863510012627, 0.02721763774752617, -0.0293264240026474, -0.021212957799434662, 0.01711154729127884, 0.009516344405710697, 0.018210619688034058, 0.0026851280126720667, 0.07548739016056061, 0.02351832576096058, 0.009695054963231087, 0.014430887997150421, 0.04385560378432274, -0.06011827290058136, -0.03988822549581528, -0.04986028000712395, -0.06172667071223259, -0.02021217904984951, -0.0147883091121912, 0.038601506501436234, -0.035045165568590164, 0.014359403401613235, 0.0189969465136528, 0.01651286706328392, -0.012992266565561295, -0.02376852184534073, 0.0016720618586987257, 0.03032720275223255, 0.04600013047456741, -0.021766960620880127, 0.08499480038881302, 0.04903821274638176, 0.02167760580778122, -0.00012111837713746354, -0.021355926990509033, -0.0285758376121521, 0.00283479830250144, -0.02119508758187294, -0.02535904571413994, -0.02600240521132946, 0.013108428567647934, 0.0115804523229599, -0.03454477712512016, -0.014019853435456753, 0.007009926717728376, -0.012643780559301376, 0.05482843890786171, 0.05325578525662422, 0.004977092612534761, 0.022839225828647614, 0.04928840696811676, 0.0177459716796875, 0.02475143037736416, -0.04024564474821091, 0.06272745132446289, 0.017808519303798676, -0.06901806592941284, -0.007840931415557861, 0.03995971009135246, 0.012018293142318726, 0.04796594753861427, 0.009650376625359058, 0.07166298478841782, 0.012366779148578644, 0.035045165568590164, 0.02859370969235897, 0.05075383558869362, -0.01639670506119728, 0.04678645730018616, -0.02980894222855568, -0.01393049769103527, 0.036635689437389374, -0.03288276493549347, 0.04978879541158676, 0.010740512050688267, -0.03624252602458, 0.005709806457161903, -0.04814465716481209, 0.018889719620347023, -0.0028638388030231, 0.02725338004529476, 0.00480731762945652, -0.0005380866932682693, 0.0483233705163002, -0.017647679895162582, -0.02525182068347931, -0.024429749697446823, -0.06816025823354721, 0.019872628152370453, -0.0589030422270298, -0.0026851280126720667, -0.013966239988803864, 0.004731365479528904, -0.016352027654647827, -0.006849086843430996, -0.027807382866740227, 0.06304913014173508, 0.004919011611491442, -0.07834676653146744, -0.0026873620226979256, 0.006286148447543383, -0.03931635245680809, 0.007809657137840986, 0.0015648354310542345, 0.013885820284485817, -0.031846243888139725, -0.021230829879641533, 0.021212957799434662, -0.013010137714445591, -0.012491877190768719, 0.03181050345301628, -0.021016376093029976, -0.026038147509098053, -0.018425071612000465, 0.07563035935163498, -0.00967718381434679, -0.005338981747627258, -0.07613075524568558, -0.009337632916867733, 0.033955030143260956, -0.020641084760427475, -0.029290681704878807, -0.012581232003867626, -0.05868858844041824, -0.050825320184230804, -0.04013841971755028, 0.03256108611822128, 0.022088641300797462, -0.008966808207333088, 0.014377274550497532, -0.00894000194966793, 0.006388906855136156, -0.013260332867503166, 0.028772421181201935, -0.03436606377363205, 0.005714274011552334, -0.03490219637751579, -0.02920132502913475, 0.03164966404438019, 0.07009033113718033, -0.03820834308862686, -0.016566479578614235, -0.02056960016489029, -0.025341175496578217, 0.034920066595077515, -0.03066675364971161, -0.054042112082242966, 0.004851995036005974, 0.03386567533016205, 0.009507408365607262, -0.027164023369550705, 0.021230829879641533, -0.01725451648235321, 0.033186573535203934, 0.03093481995165348, 0.0241616852581501, 0.022874968126416206, 0.05150441825389862, 0.032346632331609726, 0.0020339509937912226, -0.03831557184457779, 0.019890498369932175, 0.01969391666352749, -0.028611579909920692, 0.034080129116773605, 0.019622433930635452, -0.027056798338890076, 0.03454477712512016, -0.05493566393852234, 0.0475727841258049, 0.005821500439196825, 0.012643780559301376, 0.026270471513271332, 0.007666688412427902, 0.03265044093132019, 0.03756498545408249, -0.007532655261456966, 0.09528853744268417, 0.01825529709458351, -0.01164300087839365, -0.00573214516043663, 0.054292306303977966, -0.02795035019516945, -0.025448402389883995, 0.006254874169826508, -0.028879646211862564, -0.015994606539607048, 0.0013716045068576932, 0.02096276357769966, 0.0008136921096593142, 0.0034893262200057507, -0.006804409436881542, 0.027414219453930855, -0.021498896181583405, -0.0298268124461174, -0.0052183521911501884, -0.04088900610804558, 0.01528869941830635, 0.0649792030453682, -0.013841142877936363, -0.013340752571821213, 0.030738238245248795, 0.04796594753861427, 0.033955030143260956, -0.05497140809893608, -0.03486645594239235, 0.044391732662916183, -0.00591085571795702, 0.042676109820604324, -0.00825196597725153, 0.005164738744497299, 0.03745776042342186, -0.010079282335937023, 0.0017189733916893601, -0.008886388503015041, -0.029540875926613808, -0.015002761967480183, 0.014064530842006207, 0.013716044835746288, 0.04446321725845337, 0.023089420050382614, -0.00659442413598299, -0.01747790537774563, -0.05775929242372513, -0.03386567533016205, 0.059331946074962616, 0.03427670896053314, 0.02401871606707573, -0.003958441782742739, -0.04549974203109741, -0.0293264240026474, -0.036921627819538116, 0.012545489706099033, -0.06433584541082382, -0.0045236144214868546, -0.026449181139469147, 0.035777878016233444, -0.005397062748670578, -0.020855536684393883, -0.014716824516654015, -0.0031162675004452467, -0.022589029744267464, 0.03606381639838219, -0.015360183082520962, -0.02071256749331951, 0.06658760458230972, 0.028611579909920692, 0.03079185076057911, 0.051075514405965805, -0.02105211839079857, -0.011231966316699982, -0.047501299530267715, 0.0017770543927326798, -0.05089680477976799, -0.01041883323341608, 0.04635755345225334, -0.006295084021985531, -0.04167533293366432, -0.0026091760955750942, -0.03363335132598877, -0.06419287621974945, 0.03193559870123863, -0.0830647274851799, 0.0011783735826611519, 0.01066009234637022, -0.042711853981018066, -0.033472511917352676, -0.006706118583679199, -0.03695736825466156, 0.03459838777780533, -0.001989273354411125, -0.03742201626300812, 0.03138159587979317, 0.026467053219676018, 0.018568040803074837, -0.04685794189572334, 0.012134455144405365, -0.04006693512201309, -0.029773199930787086, -0.06569404900074005, 0.0012990032555535436, 0.041210684925317764, 0.014690018258988857, 0.04192552715539932, -0.06508643180131912, 0.020230049267411232, -0.017656615003943443, -0.044034313410520554, -0.05336301028728485, -0.10443852096796036, 0.034187354147434235, -0.023571940138936043, -0.017334936186671257, -0.030255718156695366, -0.02980894222855568, 0.05954639986157417, 0.02205289900302887, 0.022035026922822, 0.019908370450139046, 0.03154243528842926, -0.009587828069925308, 0.016852417960762978, 0.013635625131428242, -0.057366129010915756, 0.007523719687014818, 0.023840004578232765, 0.04986028000712395, 0.0004900582134723663, 0.044427476823329926, 0.04078177735209465, -0.002799056004732847, -0.059796594083309174, -0.013608818873763084, -0.03938783332705498, -0.053041331470012665, 0.02959449030458927, 0.0008075489313341677, -0.04092474654316902, -0.06905380636453629, -0.04149661958217621, 0.04310501739382744, -0.013769658282399178, 0.0038824896328151226, -0.028665194287896156, -0.012420392595231533, 0.0367429181933403, -0.042568884789943695, -0.026091760024428368, -0.0058393715880811214, -0.02144528180360794, -0.0010650040348991752, -0.028057577088475227, -0.014171757735311985, -0.044784896075725555, -0.010088218376040459, 0.013430108316242695, 0.010963900946080685, 0.01219700463116169, 0.004883269313722849, -0.006232535000890493, -0.06740967184305191, -0.022731998935341835, -0.014555985108017921, -0.041961267590522766, 0.03831557184457779, 0.005624918732792139, -0.011374935507774353, 0.03204282745718956, 0.07899012416601181, -0.0010705887107178569, -0.028432870283722878, 0.028915388509631157, 0.007117153145372868, 0.0146632120013237, -0.012223810888826847, 0.008984679356217384, 0.016843482851982117, 0.019890498369932175, -0.020158564671874046, -0.05876007303595543, 0.02821841649711132, 0.025162464007735252, -0.06719521433115005, 0.012045100331306458, -0.018442941829562187, -0.06451455503702164, 0.022124383598566055, 0.049359891563653946, 0.010865610092878342, 0.031953468918800354, 0.002861604792997241, -0.03706459701061249, 0.007505848538130522, -0.001944595598615706, 0.00923934206366539, 0.05886729806661606, -0.002533223945647478, 0.05622238293290138, -0.0019021518528461456, 0.015717605128884315, 0.01590525172650814, 0.03139946609735489, -0.02132018469274044, 0.05246945843100548, -0.02746783196926117, -0.04299779236316681, 0.003650165628641844, 0.014189627952873707, -0.0295766182243824, -0.06387119740247726, 0.030613141134381294, 0.08628151565790176, -0.01182171143591404, -0.04635755345225334, 0.04875227436423302, -0.008399401791393757, 0.015074246563017368, -0.041210684925317764, 0.019193528220057487, -0.01225955318659544, 0.022356705740094185, -0.037279047071933746, -0.009650376625359058, -0.07727450132369995, -0.01872888021171093, -0.03867299109697342, 0.026770859956741333, -0.036403365433216095, -0.00018401615670882165, 0.053148556500673294, 0.045392513275146484, 0.009266149252653122 ]
30,217
networkx.classes.multidigraph
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 : MultiGraph 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 -------- MultiGraph, 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 D=MultiDiGraph(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 MultiDiGraph to use dict-like objects in the data structure, those changes do not transfer to the MultiGraph 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 : MultiGraph 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 -------- MultiGraph, 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 D=MultiDiGraph(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 MultiDiGraph to use dict-like objects in the data structure, those changes do not transfer to the MultiGraph 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, key, deepcopy(data)) for u, nbrs in self._adj.items() for v, keydict in nbrs.items() for key, data in keydict.items() if v in self._pred[u] and key in self._pred[u][v] ) else: G.add_edges_from( (u, v, key, deepcopy(data)) for u, nbrs in self._adj.items() for v, keydict in nbrs.items() for key, data in keydict.items() ) return G
(self, reciprocal=False, as_view=False)
[ -0.02595117688179016, 0.01279404480010271, 0.006172481458634138, 0.024709036573767662, -0.03722598776221275, -0.004873011726886034, -0.03797127306461334, -0.03844901919364929, 0.06757242977619171, 0.010109110735356808, -0.018526999279856682, 0.012937367893755436, -0.01364443264901638, 0.06822216510772705, 0.00692732073366642, 0.06883367896080017, -0.036022067070007324, 0.0270786564797163, 0.03714954853057861, 0.04425841197371483, 0.013472444377839565, -0.04215632751584053, -0.004428707528859377, 0.020485758781433105, -0.035353220999240875, -0.05209344998002052, -0.04146837443113327, -0.012172974646091461, -0.02688755840063095, 0.007486283779144287, 0.0006455546244978905, -0.024441497400403023, 0.008628097362816334, 0.0030050238128751516, 0.04112439602613449, 0.03040377050638199, -0.010271544568240643, 0.062336329370737076, -0.07842682301998138, -0.036041177809238434, -0.00806435663253069, -0.047315988689661026, 0.006296695675700903, 0.0010032671270892024, 0.07265564799308777, 0.02684933878481388, 0.04548144340515137, 0.021727899089455605, -0.06520280987024307, -0.04548144340515137, 0.02618049457669258, 0.01858432963490486, -0.03139748424291611, 0.05870546028017998, -0.0292762890458107, -0.0048634568229317665, -0.001516844378784299, 0.05343113839626312, -0.014571260660886765, 0.015564972534775734, -0.05839969962835312, -0.020523978397250175, 0.02929539978504181, -0.04131549596786499, -0.007123196497559547, 0.01911940425634384, -0.05171125382184982, -0.033327579498291016, -0.01481013372540474, 0.022721610963344574, -0.09738379716873169, 0.0007608109153807163, -0.0014714584685862064, 0.009244389832019806, 0.08622363954782486, 0.01877542771399021, 0.08217235654592514, 0.021135494112968445, -0.008737978525459766, -0.0055657438933849335, -0.00821723509579897, -0.023218467831611633, -0.03304092958569527, 0.022759830579161644, 0.04104795679450035, 0.008585100062191486, 0.01411262433975935, -0.006005270406603813, -0.0035162123385816813, -0.08454197645187378, -0.022205645218491554, -0.023142028599977493, -0.0015287880087271333, 0.047086670994758606, 0.034302178770303726, -0.002295570680871606, -0.04620761796832085, -0.01570829562842846, -0.011150597594678402, -0.047851063311100006, -0.024613486602902412, -0.013481998816132545, -0.0866822749376297, -0.00951192807406187, -0.020313769578933716, -0.07384046167135239, 0.000043818286940222606, -0.003504268592223525, -0.02818702906370163, -0.034550607204437256, -0.0570237934589386, 0.034340400248765945, 0.04513746500015259, 0.06031068414449692, 0.0004481856885831803, -0.01397885475307703, 0.01643447019159794, -0.02948649786412716, 0.012383182533085346, 0.017743496224284172, -0.05732955038547516, 0.05828504264354706, -0.025282330811023712, 0.01601405441761017, -0.00955970212817192, -0.022033656015992165, 0.024632595479488373, -0.006387467496097088, 0.023352235555648804, 0.01313802134245634, -0.019797803834080696, 0.0008903995621949434, -0.04567253962159157, 0.033232029527425766, 0.00359504041261971, -0.005159659311175346, -0.033442236483097076, -0.0010420839535072446, 0.03841079771518707, 0.08316606283187866, -0.051061518490314484, -0.05293428525328636, 0.03967204689979553, 0.10854394733905792, 0.006143816746771336, -0.005002003163099289, -0.00019393512047827244, 0.02902786247432232, -0.034416839480400085, -0.004791794810444117, 0.0033466124441474676, 0.003050409723073244, 0.05201701074838638, -0.0009327995358034968, -0.007600942626595497, -0.006153371650725603, -0.07219701260328293, 0.021976327523589134, -0.04525212571024895, 0.01324312575161457, -0.05400443449616432, -0.04704844951629639, 0.03974848613142967, 0.022893600165843964, 0.011723892763257027, -0.06577610224485397, 0.12337318807840347, -0.04529034346342087, 0.016969546675682068, 0.061915911734104156, -0.01589939557015896, -0.019167179241776466, -0.034951914101839066, -0.00648779422044754, -0.05629761889576912, 0.010290654376149178, 0.049074094742536545, 0.010720625519752502, -0.011418134905397892, 0.013376894406974316, 0.061801254749298096, -0.05163481459021568, -0.011293921619653702, -0.01923406310379505, 0.014943902380764484, 0.009220502339303493, -0.013520218431949615, -0.037321537733078, 0.017151089385151863, 0.013252681121230125, 0.03967204689979553, -0.005212211515754461, 0.03221920505166054, 0.02868388406932354, 0.07533102482557297, -0.0522463284432888, -0.033556897193193436, 0.03134015202522278, 0.0030408548191189766, 0.06317716091871262, 0.000602856045588851, -0.04414375126361847, 0.049265190958976746, 0.017170200124382973, -0.05966095253825188, 0.03896498307585716, -0.04307360202074051, -0.018097028136253357, 0.047812845557928085, 0.007309517357498407, 0.0050306678749620914, -0.009889347478747368, 0.0640944391489029, 0.008222012780606747, -0.05259030684828758, -0.051367275416851044, -0.05820860341191292, 0.04188879206776619, -0.017332633957266808, -0.002039976418018341, -0.04318825900554657, -0.016377141699194908, -0.03818148002028465, 0.0008014193153940141, -0.020791515707969666, -0.03812415152788162, -0.021020835265517235, 0.005527523811906576, 0.0285118967294693, -0.033384907990694046, 0.06722845137119293, -0.037206877022981644, 0.015517197549343109, -0.006029157433658838, 0.03737886622548103, -0.005336425732821226, -0.0522463284432888, 0.015564972534775734, 0.06631118059158325, 0.06948341429233551, -0.03806681931018829, -0.04609295725822449, -0.011695228517055511, 0.03269695118069649, 0.0598902702331543, 0.018861422315239906, -0.006812661420553923, 0.002508167875930667, 0.035601649433374405, 0.005804616957902908, -0.051061518490314484, -0.034130193293094635, -0.048577237874269485, 0.017485512420535088, 0.046054739505052567, -0.0005915095680393279, -0.07456663250923157, -0.023065589368343353, -0.02734619565308094, -0.003864967031404376, 0.025416100397706032, 0.02593206614255905, -0.017428182065486908, 0.02675378881394863, 0.006798328831791878, -0.03191344812512398, 0.001221835962496698, 0.002411424182355404, -0.017093760892748833, 0.018612993881106377, 0.008331894874572754, 0.036538030952215195, 0.001976675121113658, 0.0017342189094051719, -0.003661924973130226, 0.0291807409375906, 0.001841711811721325, 0.011618788354098797, -0.0021880778949707747, -0.011399025097489357, -0.04330291971564293, -0.019148070365190506, -0.01397885475307703, 0.009053291752934456, -0.022989150136709213, 0.02770928293466568, -0.00009734079503687099, -0.04219454899430275, 0.018832756206393242, -0.018756316974759102, 0.11511773616075516, 0.003862578421831131, 0.016969546675682068, 0.02788127027451992, 0.005470194388180971, 0.034187521785497665, -0.008107353933155537, -0.019950682297348976, 0.014657254330813885, 0.07173837721347809, 0.008952965028584003, -0.01647268980741501, 0.05293428525328636, 0.01456170529127121, 0.005269540939480066, -0.014361051842570305, 0.03158858045935631, 0.008441776037216187, 0.021670568734407425, 0.016998210921883583, -0.09639008343219757, -0.00324389711022377, -0.017542842775583267, 0.05882011726498604, -0.04433485120534897, -0.023868203163146973, 0.0069177658297121525, -0.036098506301641464, 0.04120083525776863, 0.04108617827296257, -0.05690913274884224, 0.0912686437368393, -0.05354579910635948, 0.009373381733894348, -0.0269831083714962, 0.021670568734407425, 0.05438663065433502, 0.04475526884198189, 0.032773394137620926, 0.048768337815999985, -0.021785229444503784, 0.0002420083328615874, -0.03248674422502518, 0.05281962454319, -0.07716557383537292, 0.025225002318620682, 0.049723830074071884, -0.01610960252583027, 0.04200344905257225, -0.04567253962159157, 0.005322093144059181, 0.05656515434384346, -0.023199357092380524, -0.05698557198047638, 0.007935364730656147, 0.016940882429480553, -0.023008259013295174, 0.010281099006533623, -0.004834792111068964, 0.002073418814688921, -0.006755331996828318, 0.06634940207004547, -0.03181789815425873, 0.04284428432583809, -0.011800331994891167, 0.016042718663811684, -0.011876771226525307, -0.025530759245157242, 0.020199110731482506, -0.008766643702983856, 0.017313523218035698, 0.035792749375104904, -0.0037431418895721436, -0.02931450866162777, 0.06279496848583221, -0.03153125196695328, -0.018756316974759102, 0.006721889600157738, -0.034168411046266556, -0.033480457961559296, -0.02679201029241085, -0.0570237934589386, 0.004435874056071043, 0.022568732500076294, -0.003735975595191121, 0.03795216232538223, -0.002620438113808632, -0.00018811257905326784, 0.024326838552951813, 0.04571076110005379, -0.009712581522762775, 0.010328873991966248, 0.00974124576896429, 0.047889284789562225, 0.07074466347694397, -0.025225002318620682, 0.1129009947180748, 0.032983601093292236, 0.036538030952215195, -0.02990691550076008, -0.020810626447200775, -0.010596411302685738, 0.036824680864810944, 0.02589384652674198, -0.021536801010370255, -0.008866970427334309, 0.034244850277900696, 0.037034887820482254, -0.0068269940093159676, -0.022950928658246994, 0.007777709048241377, 0.015192330814898014, -0.011102822609245777, 0.04326469823718071, -0.005431974772363901, 0.0017485512653365731, 0.03187523037195206, 0.06405621767044067, 0.02772839181125164, -0.034111082553863525, 0.04250030592083931, 0.004830014426261187, -0.048882994800806046, 0.016520464792847633, 0.07296140491962433, -0.004462149925529957, 0.049265190958976746, 0.014284612610936165, 0.036786459386348724, 0.04311181977391243, 0.04609295725822449, 0.048768337815999985, 0.014647699892520905, -0.01445660088211298, 0.03128282353281975, -0.030633090063929558, -0.04376155510544777, 0.034951914101839066, -0.04444951191544533, 0.11259523779153824, 0.011886326596140862, -0.03661447390913963, 0.03311736881732941, -0.03134015202522278, 0.006091264542192221, 0.012717604637145996, 0.04406731203198433, 0.032926272600889206, -0.009167950600385666, 0.05767352506518364, -0.03816236928105354, -0.019950682297348976, -0.01331001054495573, -0.07964985072612762, 0.024995682761073112, -0.0378948338329792, -0.0298495851457119, 0.010730180889368057, 0.024173960089683533, -0.02755640260875225, 0.022301195189356804, -0.0026467142160981894, 0.04509924724698067, -0.0266964603215456, -0.0882110670208931, 0.0071805259212851524, -0.015593637712299824, -0.002749429550021887, -0.020371099933981895, 0.05687091127038002, 0.04116261750459671, -0.03967204689979553, -0.035926517099142075, 0.035582538694143295, -0.01942516304552555, -0.02663912996649742, 0.05495992675423622, -0.03879299387335777, -0.07624830305576324, -0.02686844952404499, 0.034607939422130585, -0.022855380550026894, 0.011628343723714352, -0.03191344812512398, -0.01911940425634384, -0.017934594303369522, -0.005150104407221079, -0.048233259469270706, -0.048577237874269485, -0.07513993233442307, -0.024021081626415253, -0.02610405534505844, -0.024517936632037163, 0.023505115881562233, 0.000671830668579787, 0.024288618937134743, 0.015058561228215694, 0.02616138383746147, -0.013157131150364876, -0.01298514287918806, 0.00014190556248649955, -0.0298495851457119, -0.06111329793930054, -0.004020234569907188, 0.02730797603726387, 0.05794106423854828, -0.06432375311851501, -0.06722845137119293, 0.02990691550076008, -0.049991365522146225, 0.012851374223828316, -0.05346935987472534, 0.011523239314556122, 0.012201638892292976, 0.022740721702575684, 0.07242633402347565, 0.005981382913887501, 0.04639871418476105, 0.012469177134335041, -0.0010235713561996818, 0.0006622757064178586, 0.015564972534775734, 0.018278570845723152, 0.05484526976943016, 0.05308716371655464, 0.008585100062191486, -0.02654358185827732, -0.01495345775038004, 0.004154003690928221, -0.04571076110005379, 0.018574774265289307, 0.025072121992707253, -0.034550607204437256, 0.016673343256115913, -0.05331648141145706, 0.0539662167429924, -0.030747748911380768, 0.013004252687096596, 0.033442236483097076, -0.03978670760989189, 0.012268523685634136, 0.020485758781433105, 0.016587350517511368, 0.06753420829772949, 0.02681111916899681, -0.036251384764909744, 0.016023609787225723, 0.015402538701891899, -0.08125507831573486, -0.004686690866947174, 0.002333790296688676, 0.022855380550026894, -0.05981383100152016, 0.017112869769334793, 0.009316051378846169, 0.007213968317955732, 0.03772284463047981, -0.019224509596824646, 0.009717358276247978, -0.05545678362250328, -0.08461841195821762, 0.034283071756362915, 0.003843468613922596, 0.017504623159766197, 0.05194057151675224, 0.02660091035068035, -0.012239858508110046, 0.06822216510772705, 0.049991365522146225, 0.001365159871056676, -0.04047466069459915, -0.04513746500015259, -0.006884323433041573, -0.011857661418616772, -0.017084205523133278, 0.011914991773664951, -0.00652601383626461, 0.016893107444047928, -0.012115644291043282, 0.03833435848355293, -0.02950560860335827, -0.01357754785567522, -0.014131734147667885, 0.005360312759876251, -0.007352514658123255, 0.020791515707969666, 0.03286894038319588, 0.0024317284114658833, 0.014533041045069695, -0.04540500417351723, -0.021861668676137924, 0.009215724654495716, 0.020715076476335526, 0.017084205523133278, 0.00040757725946605206, -0.002976359101012349, 0.030690418556332588, 0.05438663065433502, 0.04506102576851845, -0.09172727912664413, -0.006010047625750303, -0.04559610038995743, 0.0598902702331543, 0.015431203879415989, -0.030633090063929558, -0.011112377978861332, 0.004658025689423084, 0.016558684408664703, 0.025473428890109062, 0.000010254748303850647, -0.0028139252681285143, 0.02962026745080948, 0.025416100397706032, 0.017819935455918312, -0.009526260197162628, -0.033786214888095856, 0.006397022400051355, -0.05752064660191536, 0.013004252687096596, -0.06803106516599655, 0.005135772284120321, 0.060692884027957916, -0.021938107907772064, -0.0011651036329567432, -0.00335377873852849, -0.036729130893945694, -0.05534212663769722, 0.024823695421218872, -0.06470595300197601, 0.01854611001908779, 0.008207680657505989, -0.05194057151675224, -0.031129945069551468, -0.01911940425634384, -0.05885833874344826, 0.020600417628884315, 0.02623782306909561, 0.021861668676137924, 0.0025559423957020044, 0.050450004637241364, 0.02782394178211689, -0.07533102482557297, -0.036729130893945694, 0.047851063311100006, -0.002001756802201271, -0.06676981598138809, 0.00821723509579897, 0.0071996357291936874, 0.01440882682800293, 0.07502526789903641, -0.04471704736351967, -0.02973492629826069, -0.005556188989430666, -0.03210454806685448, -0.04062753915786743, -0.0292762890458107, 0.02730797603726387, -0.04582541808485985, -0.01881364732980728, -0.015058561228215694, -0.02677289955317974, 0.06023424491286278, 0.05878189951181412, -0.04051288217306137, -0.02841634675860405, 0.04311181977391243, 0.0034612715244293213, -0.02650536224246025, 0.007940142415463924, 0.004830014426261187, 0.0006664560060016811, -0.004717743955552578, 0.050450004637241364, -0.03269695118069649, 0.03288805112242699, 0.08278387039899826, 0.021383922547101974, -0.03242941573262215, 0.0009447432239539921, -0.03216187655925751, -0.051596593111753464, 0.0031125168316066265, -0.008518215268850327, 0.02725064568221569, -0.03739797696471214, -0.0533929206430912, 0.05763530731201172, 0.004130116198211908, -0.001877542701549828, -0.03179879114031792, -0.032754283398389816, 0.0763629600405693, -0.022721610963344574, -0.04154481366276741, -0.05752064660191536, -0.04261496663093567, 0.00692732073366642, -0.04456416890025139, -0.012822709046304226, -0.05350757762789726, 0.019492046907544136, -0.016883552074432373, 0.025339661166071892, 0.01338644977658987, -0.0006330137839540839, -0.01335778459906578, 0.0034994911402463913, -0.007863703183829784, -0.017170200124382973, -0.001651807688176632, 0.04120083525776863, -0.03004068322479725, 0.005747287534177303, 0.03676735237240791, 0.021613240242004395, 0.019549375399947166, -0.012660275213420391, 0.019281838089227676, -0.015736961737275124, 0.0063301376067101955, -0.007992695085704327, -0.0031149054411798716, 0.034397728741168976, -0.008518215268850327, 0.05809394270181656, -0.06283318251371384, -0.010300208814442158, 0.018660768866539, -0.0547306090593338, -0.00038966178544797003, -0.007433731574565172, -0.020313769578933716, -0.015966279432177544, 0.034015532582998276, -0.01385464146733284, 0.00030486180912703276, -0.01397885475307703, -0.05507458746433258, 0.0022370468359440565, -0.050029587000608444, -0.03254407271742821, 0.06879545748233795, 0.03153125196695328, 0.018956970423460007, -0.03179879114031792, -0.005159659311175346, -0.006277585867792368, 0.021192822605371475, -0.017275303602218628, 0.04013068601489067, -0.03151214122772217, -0.022473182529211044, -0.03768462315201759, 0.012402292340993881, -0.0763629600405693, -0.04349401965737343, 0.014571260660886765, 0.005178769119083881, -0.01614782214164734, -0.036423373967409134, 0.07842682301998138, -0.01319535169750452, -0.006086487323045731, -0.036480702459812164, 0.046054739505052567, 0.015564972534775734, 0.017237083986401558, -0.036213167011737823, 0.005560966208577156, -0.11534705013036728, -0.016587350517511368, -0.020619528368115425, -0.01469547487795353, 0.003074296982958913, -0.023065589368343353, 0.07322894781827927, 0.031225495040416718, 0.021039944142103195 ]
30,218
networkx.classes.multigraph
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 MultiGraph
(self)
[ -0.056132230907678604, 0.029035737738013268, -0.004112073685973883, 0.0054166545160114765, -0.07651189714670181, 0.002302849432453513, -0.04231072589755058, 0.0005779160419479012, 0.05443980172276497, 0.012085001915693283, -0.0226186104118824, -0.015593266114592552, -0.02612687461078167, 0.052747372537851334, 0.012516923248767853, 0.036316707730293274, -0.018687238916754723, 0.027925079688429832, 0.046753354370594025, 0.03566441684961319, 0.0007035260205157101, -0.000441563141066581, 0.03129230812191963, 0.015602081082761288, -0.020450184121727943, -0.031063126400113106, -0.033090513199567795, 0.0018169372342526913, -0.0373392179608345, 0.007514561526477337, -0.053382035344839096, -0.03726869821548462, 0.010004724375903606, 0.03963105008006096, 0.0619499571621418, 0.047035425901412964, -0.042063914239406586, 0.0890640839934349, -0.10732821375131607, -0.02231890894472599, -0.03510027378797531, -0.029317809268832207, -0.03638722747564316, 0.009502284228801727, 0.09322463721036911, 0.04241650551557541, 0.0399131216108799, -0.020185742527246475, -0.05877665430307388, -0.06092744693160057, -0.006306943017989397, -0.0003060365852434188, -0.013327878899872303, 0.06036330386996269, -0.041323475539684296, 0.0554623119533062, -0.013089881278574467, 0.02596820890903473, -0.04047726094722748, 0.0628666877746582, -0.0375860296189785, 0.0008170157670974731, 0.06646309792995453, -0.060539599508047104, 0.0003603022778406739, -0.008277036249637604, -0.07189297676086426, 0.020767515525221825, -0.0214550644159317, 0.06628680974245071, -0.05207745358347893, -0.03416591137647629, 0.019445305690169334, 0.04728223755955696, 0.06822604686021805, -0.014570756815373898, 0.05126649886369705, 0.027501972392201424, -0.0018433814402669668, -0.002659846330061555, -0.03381332382559776, -0.03446561470627785, -0.03670455515384674, 0.029829062521457672, 0.01271084789186716, -0.02350008301436901, 0.005346136633306742, -0.003532505128532648, -0.046753354370594025, -0.06903700530529022, -0.04467307776212692, 0.00016637811495456845, -0.01763828471302986, 0.04668283462524414, -0.013319064863026142, 0.014147649519145489, -0.04142925515770912, -0.045131441205739975, 0.008343146182596684, -0.04238124564290047, -0.04643602296710014, 0.006434756331145763, -0.07256289571523666, -0.006430349312722683, -0.008946956135332584, -0.07524257898330688, -0.005888242740184069, -0.00851944088935852, -0.04421471059322357, -0.0027986783534288406, -0.050596579909324646, 0.041182439774274826, 0.012428776361048222, 0.059093981981277466, 0.02556273154914379, -0.03263214975595474, 0.005808910354971886, 0.000162383948918432, 0.02057359181344509, -0.014429721049964428, -0.04957406967878342, 0.053981438279151917, -0.026356058195233345, 0.03421879932284355, -0.004830474965274334, 0.011503228917717934, 0.024540221318602562, -0.027713526040315628, 0.006756494287401438, -0.021084845066070557, -0.007382340729236603, -0.0032129709143191576, -0.04795215651392937, 0.02466362901031971, 0.01283425372093916, 0.018008504062891006, -0.07104676216840744, 0.003614041255787015, 0.005090509541332722, 0.0645238608121872, -0.021314028650522232, -0.0036823556292802095, 0.08603180944919586, 0.06840234249830246, -0.01935715787112713, 0.025298289954662323, -0.009793170727789402, 0.024698887020349503, -0.03829120844602585, 0.004513144493103027, 0.002946325112134218, 0.010798050090670586, 0.05140753462910652, 0.019145604223012924, -0.05711948126554489, -0.006060130428522825, -0.05133701488375664, 0.013777431100606918, -0.015231861732900143, -0.016695108264684677, -0.05239478498697281, -0.04975036531686783, 0.024416815489530563, 0.0019138993229717016, -0.011027233675122261, -0.07249238342046738, 0.08666647225618362, -0.06357187032699585, -0.007232489995658398, 0.03490635007619858, -0.03832646831870079, -0.0325968898832798, -0.015320009551942348, -0.0026400131173431873, -0.047035425901412964, 0.028595000505447388, 0.03857327997684479, 0.059975456446409225, 0.026955459266901016, 0.04361530765891075, 0.059093981981277466, -0.02582717314362526, -0.0366692990064621, 0.00018331894534640014, 0.0540519542992115, -0.011432711035013199, -0.01350417360663414, 0.01188226230442524, 0.018969310447573662, 0.03490635007619858, 0.039137423038482666, 0.01863434910774231, 0.019480563700199127, 0.016034003347158432, 0.06967166811227798, -0.056907929480075836, -0.004380923230201006, -0.004250905942171812, -0.0345890186727047, 0.10084056854248047, 0.000591138144955039, -0.019727377220988274, 0.049997176975011826, 0.004826067481189966, 0.007391155231744051, 0.035593900829553604, -0.02013285458087921, 0.010463090613484383, -0.007391155231744051, -0.02057359181344509, -0.004466867074370384, 0.0051301755011081696, 0.043967898935079575, 0.03025216981768608, -0.011838189326226711, -0.07020054757595062, -0.03688085079193115, -0.008034630678594112, -0.02305934578180313, 0.010692273266613483, -0.008047852665185928, -0.007898002862930298, -0.02203683741390705, 0.01690666191279888, -0.0628666877746582, -0.04054778069257736, -0.03289658948779106, -0.05507446452975273, 0.007430821657180786, -0.023605860769748688, 0.04819897189736366, -0.06367764621973038, -0.00792885385453701, 0.03522368147969246, 0.04097088798880577, -0.009431766346096992, -0.0399131216108799, -0.020027078688144684, -0.003666929667815566, 0.054263509809970856, -0.04869259521365166, -0.04566032811999321, 0.0034443577751517296, 0.01520541775971651, 0.09153220802545547, 0.04477885365486145, -0.008188888430595398, -0.0002189910737797618, 0.029159143567085266, 0.017056511715054512, -0.018087835982441902, -0.050596579909324646, -0.050596579909324646, -0.006447978783398867, 0.0631135031580925, -0.03254400193691254, -0.08758320659399033, -0.06720353662967682, -0.008730994537472725, 0.015584451146423817, -0.028877072036266327, 0.05038502439856529, -0.0046189213171601295, 0.07319755852222443, -0.012887142598628998, -0.023746896535158157, -0.048939406871795654, 0.015311194583773613, -0.031063126400113106, 0.02833055891096592, 0.10309714078903198, 0.031168902292847633, 0.008550292812287807, 0.0355057530105114, -0.0310983844101429, -0.045413512736558914, -0.06871967017650604, 0.014438536018133163, -0.022830164059996605, -0.049820881336927414, -0.018863532692193985, -0.01283425372093916, -0.03673981502652168, -0.047035425901412964, -0.03807965666055679, 0.025298289954662323, 0.025227772071957588, -0.021931059658527374, 0.006888715550303459, -0.01107130665332079, 0.06318402290344238, 0.007386747747659683, 0.012948845513164997, 0.008444515988230705, -0.008391628041863441, -0.0161750391125679, -0.04467307776212692, -0.002116638235747814, 0.047352757304906845, 0.04636550694704056, 0.020591219887137413, -0.05976390466094017, 0.021402176469564438, 0.03300236910581589, -0.023676378652453423, -0.00627609109506011, 0.01790272630751133, 0.02275964617729187, 0.025774285197257996, 0.01732976920902729, -0.05902346596121788, 0.020185742527246475, -0.04238124564290047, 0.07721707969903946, -0.016686292365193367, 0.026320798322558403, -0.0003765544679481536, -0.03465953841805458, 0.02875366620719433, 0.08610232919454575, -0.08518559485673904, 0.053664106875658035, -0.03945475444197655, 0.01100960373878479, -0.017841024324297905, 0.037374477833509445, 0.0035589493345469236, 0.03959579020738602, 0.017735246568918228, 0.03245585411787033, 0.005495987366884947, 0.017664728686213493, -0.004107666667550802, 0.026602869853377342, -0.0877242386341095, 0.010991974733769894, 0.0563790462911129, -0.014879272319376469, 0.05049080029129982, -0.04516670107841492, 0.015540377236902714, 0.04978562146425247, -0.013178029097616673, -0.008779476396739483, 0.00354131986387074, 0.04298064857721329, -0.024875182658433914, 0.008272628299891949, -0.003481820225715637, -0.0023469231091439724, -0.02788982167840004, 0.0728449672460556, -0.028718406334519386, 0.04714120179414749, 0.011318119242787361, 0.019850783050060272, -0.004720290657132864, 0.006254054605960846, -0.03157437965273857, -0.021913431584835052, 0.045554548501968384, 0.014491423964500427, 0.004195814020931721, -0.004989140201359987, 0.08335213363170624, 0.034254059195518494, 0.009881317615509033, -0.007986149750649929, 0.008325517177581787, -0.05726051703095436, -0.042769093066453934, -0.046612318605184555, -0.0259858388453722, -0.007179601583629847, -0.0132221020758152, 0.04033622890710831, -0.02892995998263359, 0.019938930869102478, 0.02743145450949669, 0.020467814058065414, -0.008025815710425377, -0.012887142598628998, -0.0034068950917571783, 0.020027078688144684, 0.061280038207769394, -0.01631607487797737, 0.07058839499950409, 0.053664106875658035, 0.011494413949549198, 0.011750041507184505, -0.01078042108565569, -0.02905336581170559, -0.005751614458858967, -0.04125295951962471, -0.01981552504003048, -0.02321801148355007, 0.0030983793549239635, 0.03504738584160805, 0.0008131592767313123, -0.01688903197646141, 0.01511727087199688, -0.016210297122597694, 0.0352589413523674, 0.05281789228320122, -0.007316229864954948, 0.019639229401946068, 0.04393263906240463, 0.03273792564868927, 0.026779165491461754, -0.0508081316947937, 0.075665682554245, 0.016263185068964958, -0.0765824168920517, 0.007139935158193111, 0.05317047983407974, -0.010956715792417526, 0.039877861738204956, 0.0008390526054427028, 0.05518024042248726, 0.012605071067810059, 0.044849369674921036, 0.07065891474485397, 0.06533481180667877, -0.03726869821548462, 0.04834000766277313, -0.03166252747178078, -0.030745794996619225, 0.03659877926111221, -0.03920794278383255, 0.05740155279636383, 0.00557531975209713, -0.04520196095108986, 0.0007745948387309909, -0.04255754128098488, -0.00003062776158913039, 0.01115063950419426, 0.027713526040315628, 0.018458055332303047, 0.0001033665394061245, 0.05676689371466637, -0.018405167385935783, -0.02568613737821579, -0.031785935163497925, -0.0542987659573555, 0.04079459235072136, -0.07665293663740158, -0.022072095423936844, -0.014738236553966999, 0.014685348607599735, -0.005196286365389824, -0.02672627568244934, -0.007117898669093847, 0.048798371106386185, 0.0030432872008532286, -0.05881191045045853, -0.0014577368274331093, 0.009229027666151524, -0.04830474779009819, 0.014826384373009205, 0.007624745834618807, 0.010745162144303322, -0.0464007630944252, -0.005733984988182783, 0.029141513630747795, -0.003997482359409332, -0.03245585411787033, 0.036457743495702744, -0.032050374895334244, -0.031468603760004044, -0.031080754473805428, 0.08095452189445496, 0.003367228666320443, -0.00024626165395602584, -0.07538361102342606, -0.01644829474389553, 0.01967448927462101, -0.02552747167646885, -0.04978562146425247, -0.012076186947524548, -0.06554637104272842, -0.04816371202468872, -0.028277669101953506, 0.018546203151345253, 0.012032113038003445, -0.023835042491555214, 0.015575636178255081, -0.006412719842046499, -0.004588069394230843, 0.00641712686046958, 0.020485443994402885, -0.03233244642615318, 0.011767671443521976, -0.03249111399054527, -0.023729266598820686, 0.020802773535251617, 0.05500394478440285, -0.04435574635863304, -0.003911538515239954, -0.00960806105285883, -0.029987728223204613, 0.042769093066453934, -0.02997009828686714, -0.04164080694317818, -0.01614859513938427, 0.04467307776212692, 0.005033213645219803, -0.011979225091636181, 0.01879301480948925, -0.019163234159350395, 0.029476473107933998, 0.028965219855308533, 0.013733357191085815, 0.007505747023969889, 0.05641430243849754, 0.02654998190701008, -0.0068270121701061726, -0.028224781155586243, 0.020802773535251617, 0.03460665047168732, -0.01965685933828354, 0.032649777829647064, 0.020221002399921417, -0.03510027378797531, 0.02053833194077015, -0.06131529435515404, 0.03772706538438797, -0.02113773487508297, 0.023870302364230156, 0.02658523991703987, 0.014041872695088387, 0.03681033477187157, 0.04231072589755058, -0.007831891998648643, 0.10493060201406479, 0.009035103023052216, 0.0007856132579036057, -0.01598992943763733, 0.06762664765119553, -0.005707541014999151, -0.032209042459726334, -0.0007172990590333939, -0.012331814505159855, -0.005998427048325539, 0.03483583405613899, 0.018158353865146637, -0.008788290433585644, -0.005399025045335293, 0.00602046400308609, 0.009616876021027565, 0.004054778255522251, -0.03166252747178078, 0.0008181175799109042, -0.042628057301044464, 0.018105465918779373, 0.05789517983794212, -0.00020797265460714698, -0.004235479980707169, 0.04216969013214111, 0.048939406871795654, 0.03347836434841156, -0.05147805064916611, -0.028418704867362976, 0.032068006694316864, -0.01394491083920002, 0.02422289177775383, -0.008678106591105461, 0.00532409967854619, 0.046612318605184555, -0.016351332888007164, 0.01760302484035492, -0.001473162556067109, -0.03224429860711098, -0.016818514093756676, 0.0014951993944123387, 0.028700776398181915, 0.04816371202468872, 0.029546990990638733, 0.010145760141313076, -0.017259251326322556, -0.05641430243849754, -0.015663783997297287, 0.05549757182598114, 0.032685037702322006, 0.01035731378942728, -0.01909271627664566, -0.061738401651382446, -0.017876282334327698, -0.02892995998263359, 0.0161309652030468, -0.050420284271240234, 0.004303794354200363, -0.0029837877955287695, 0.030305057764053345, 0.006143870297819376, -0.013512988574802876, -0.025650879368185997, 0.0019943336956202984, -0.021472694352269173, 0.030922090634703636, 0.004431608133018017, -0.004085629712790251, 0.07161090523004532, 0.02025626040995121, 0.034747686237096786, 0.04767008498311043, -0.0443204864859581, -0.009396507404744625, -0.04886889085173607, -0.010348498821258545, -0.049397774040699005, -0.012904771603643894, 0.0552155002951622, 0.0020923977717757225, -0.011908707208931446, 0.005742799956351519, -0.03138045594096184, -0.08405730873346329, 0.022248391062021255, -0.0686844140291214, 0.012367073446512222, 0.007602708879858255, -0.04597765579819679, -0.02510436438024044, -0.014641274698078632, -0.04915096238255501, 0.03548812121152878, -0.0036933738738298416, -0.02656761184334755, 0.039701566100120544, 0.028083745390176773, 0.019727377220988274, -0.0607864111661911, 0.004861326422542334, -0.05024398863315582, -0.023852672427892685, -0.060398563742637634, -0.005676689092069864, 0.027554862201213837, 0.027960339561104774, 0.04819897189736366, -0.07834536582231522, 0.022812534123659134, -0.015646154060959816, -0.04298064857721329, -0.05235952511429787, -0.08067245781421661, 0.015337638556957245, -0.008457737974822521, -0.031221790239214897, -0.029317809268832207, -0.029740916565060616, 0.0666041374206543, 0.03698662668466568, 0.0162984449416399, -0.0002363450767006725, 0.02258335053920746, -0.002595939440652728, 0.007730522658675909, 0.016941919922828674, -0.04301590472459793, -0.006981269922107458, 0.016774440184235573, 0.0487278550863266, 0.0050640651024878025, 0.03213852271437645, 0.05317047983407974, 0.001902880845591426, -0.04495514929294586, -0.010189833119511604, -0.050455544143915176, -0.044849369674921036, 0.029546990990638733, -0.007117898669093847, -0.0487278550863266, -0.07481946796178818, -0.03684559091925621, 0.04812845215201378, -0.021507952362298965, 0.004215647000819445, -0.03430694714188576, -0.01021627802401781, 0.03934897854924202, -0.06272565573453903, -0.019180864095687866, -0.015214232727885246, -0.0035567455925047398, -0.007739337161183357, -0.025633249431848526, -0.011697153560817242, -0.04915096238255501, 0.002424052217975259, 0.03314340487122536, 0.012596256099641323, 0.015558007173240185, -0.001891862484626472, 0.0082946652546525, -0.04855155944824219, -0.018546203151345253, -0.0016439480241388083, -0.01981552504003048, 0.040300969034433365, -0.011053677648305893, -0.025950578972697258, 0.03009350597858429, 0.07104676216840744, 0.020185742527246475, 0.0011470173485577106, 0.037198182195425034, 0.0215784702450037, 0.019903670996427536, -0.007320637349039316, 0.006998899392783642, 0.04037148505449295, 0.03196222707629204, -0.012790180742740631, -0.05927027761936188, 0.01445616502314806, 0.03263214975595474, -0.05941131338477135, -0.007915631867945194, -0.02043255604803562, -0.0464007630944252, 0.009149694815278053, 0.03453613072633743, 0.023253271356225014, 0.04343901202082634, 0.01115063950419426, -0.04622447118163109, 0.010709903202950954, -0.009837244637310505, 0.008506218902766705, 0.04075933247804642, -0.013283805921673775, 0.05239478498697281, 0.012640330009162426, 0.012287740595638752, 0.017585396766662598, 0.015099640935659409, -0.02408185601234436, 0.05475713312625885, -0.043403755873441696, -0.03698662668466568, 0.018008504062891006, 0.030340317636728287, -0.054263509809970856, -0.07524257898330688, 0.03173304721713066, 0.07813381403684616, -0.012419961392879486, -0.032790813595056534, 0.0528884083032608, -0.010515978559851646, 0.006333386991173029, -0.04065355658531189, 0.010692273266613483, -0.01631607487797737, 0.03390147164463997, -0.04700016602873802, -0.012058557011187077, -0.08885252475738525, -0.016589330509305, -0.04453204199671745, 0.025439325720071793, -0.03272029757499695, 0.011714782565832138, 0.0737617015838623, 0.0399131216108799, 0.009458210319280624 ]
30,220
networkx.classes.multigraph
MultiGraph
An undirected graph class that can store multiedges. Multiedges are multiple edges between two nodes. Each edge can hold optional data or attributes. A MultiGraph holds undirected edges. Self loops are allowed. 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, in a MultiGraph each edge has a key to distinguish between multiple edges that have the same source and destination nodes. 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 array, or PyGraphviz graph. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. See Also -------- Graph DiGraph MultiDiGraph Examples -------- Create an empty graph structure (a "null graph") with no nodes and no edges. >>> G = nx.MultiGraph() 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, >>> key = G.add_edge(1, 2) a list of edges, >>> keys = G.add_edges_from([(1, 2), (1, 3)]) or a collection of edges, >>> keys = G.add_edges_from(H.edges) If some edges connect nodes not yet in the graph, the nodes are added automatically. If an edge already exists, an additional edge is created and stored using a key to identify the edge. By default the key is the lowest unused integer. >>> keys = G.add_edges_from([(4, 5, {"route": 28}), (4, 5, {"route": 37})]) >>> G[4] AdjacencyView({3: {0: {}}, 5: {0: {}, 1: {'route': 28}, 2: {'route': 37}}}) **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.MultiGraph(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. >>> key = G.add_edge(1, 2, weight=4.7) >>> keys = G.add_edges_from([(3, 4), (4, 5)], color="red") >>> keys = G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})]) >>> G[1][2][0]["weight"] = 4.7 >>> G.edges[1, 2, 0]["weight"] = 4 Warning: we protect the graph data structure by making `G.edges[1, 2, 0]` a read-only dict-like structure. However, you can assign to attributes in e.g. `G.edges[1, 2, 0]`. Thus, use 2 sets of brackets to add/change data attributes: `G.edges[1, 2, 0]['weight'] = 4`. **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 >>> G[1] # adjacency dict-like view mapping neighbor -> edge key -> edge attributes AdjacencyView({2: {0: {'weight': 4}, 1: {'color': 'blue'}}}) 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, keydict in nbrsdict.items(): ... for key, eattr in keydict.items(): ... if "weight" in eattr: ... # Do something useful with the edges ... pass But the edges() method is often more convenient: >>> for u, v, keys, weight in G.edges(data="weight", keys=True): ... if weight is not None: ... # Do something useful with the edges ... pass **Reporting:** Simple graph information is obtained using methods and object-attributes. 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, k]`, `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 MultiGraph class uses a dict-of-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_key dicts keyed by neighbor. The edge_key dict holds each edge_attr dict keyed by edge key. The inner dict (edge_attr_dict) represents the edge data and holds edge attribute values keyed by attribute names. Each of these four dicts in the dict-of-dict-of-dict-of-dict structure can be replaced 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_key_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, (default: dict) Factory function to be used to create the adjacency list dict which holds multiedge key dicts keyed by neighbor. It should require no arguments and return a dict-like object. edge_key_dict_factory : function, (default: dict) Factory function to be used to create the edge key dict which holds edge data keyed by edge key. 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 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 MultiGraph(Graph): """ An undirected graph class that can store multiedges. Multiedges are multiple edges between two nodes. Each edge can hold optional data or attributes. A MultiGraph holds undirected edges. Self loops are allowed. 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, in a MultiGraph each edge has a key to distinguish between multiple edges that have the same source and destination nodes. 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 array, or PyGraphviz graph. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. See Also -------- Graph DiGraph MultiDiGraph Examples -------- Create an empty graph structure (a "null graph") with no nodes and no edges. >>> G = nx.MultiGraph() 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, >>> key = G.add_edge(1, 2) a list of edges, >>> keys = G.add_edges_from([(1, 2), (1, 3)]) or a collection of edges, >>> keys = G.add_edges_from(H.edges) If some edges connect nodes not yet in the graph, the nodes are added automatically. If an edge already exists, an additional edge is created and stored using a key to identify the edge. By default the key is the lowest unused integer. >>> keys = G.add_edges_from([(4, 5, {"route": 28}), (4, 5, {"route": 37})]) >>> G[4] AdjacencyView({3: {0: {}}, 5: {0: {}, 1: {'route': 28}, 2: {'route': 37}}}) **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.MultiGraph(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. >>> key = G.add_edge(1, 2, weight=4.7) >>> keys = G.add_edges_from([(3, 4), (4, 5)], color="red") >>> keys = G.add_edges_from([(1, 2, {"color": "blue"}), (2, 3, {"weight": 8})]) >>> G[1][2][0]["weight"] = 4.7 >>> G.edges[1, 2, 0]["weight"] = 4 Warning: we protect the graph data structure by making `G.edges[1, 2, 0]` a read-only dict-like structure. However, you can assign to attributes in e.g. `G.edges[1, 2, 0]`. Thus, use 2 sets of brackets to add/change data attributes: `G.edges[1, 2, 0]['weight'] = 4`. **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 >>> G[1] # adjacency dict-like view mapping neighbor -> edge key -> edge attributes AdjacencyView({2: {0: {'weight': 4}, 1: {'color': 'blue'}}}) 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, keydict in nbrsdict.items(): ... for key, eattr in keydict.items(): ... if "weight" in eattr: ... # Do something useful with the edges ... pass But the edges() method is often more convenient: >>> for u, v, keys, weight in G.edges(data="weight", keys=True): ... if weight is not None: ... # Do something useful with the edges ... pass **Reporting:** Simple graph information is obtained using methods and object-attributes. 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, k]`, `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 MultiGraph class uses a dict-of-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_key dicts keyed by neighbor. The edge_key dict holds each edge_attr dict keyed by edge key. The inner dict (edge_attr_dict) represents the edge data and holds edge attribute values keyed by attribute names. Each of these four dicts in the dict-of-dict-of-dict-of-dict structure can be replaced 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_key_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
(incoming_graph_data=None, multigraph_input=None, **attr)
[ 0.0347515232861042, -0.009417727589607239, -0.028285620734095573, 0.03194025903940201, -0.036351777613162994, -0.00528733478859067, -0.051337968558073044, -0.005692805629223585, 0.05125146731734276, -0.03682753071188927, -0.01837051473557949, 0.013937371782958508, 0.028847873210906982, 0.07218455523252487, -0.007055186200886965, 0.012283052317798138, 0.01446718629449606, -0.005500882863998413, 0.037238407880067825, 0.03157263249158859, -0.0378655344247818, -0.04337993264198303, 0.03403789550065994, 0.018813829869031906, 0.017062198370695114, -0.023938976228237152, 0.009525853209197521, 0.02081415057182312, 0.059425752609968185, 0.020879026502370834, -0.07162230461835861, -0.08550561219453812, -0.056960493326187134, -0.008541910909116268, 0.01635938137769699, 0.008368910290300846, -0.026252862066030502, 0.0423419289290905, -0.08425135910511017, 0.02277122251689434, 0.04229867830872536, -0.0254959836602211, -0.005395460408180952, -0.024566104635596275, 0.06180451437830925, 0.03671940416097641, 0.034492023289203644, 0.0741308182477951, -0.01555925328284502, -0.10959596186876297, 0.014899687841534615, -0.04882945865392685, -0.0009048749343492091, 0.054365482181310654, -0.02422010339796543, 0.02694486454129219, -0.014921313151717186, 0.048180703073740005, 0.002367947483435273, 0.009612353518605232, 0.0035816559102386236, -0.019094957038760185, 0.016218818724155426, -0.03010212816298008, -0.04943495988845825, -0.023679476231336594, -0.07192505896091461, -0.03654640540480614, -0.05864724889397621, 0.002336861565709114, -0.02363622561097145, 0.0023909241426736116, 0.03903328999876976, -0.011012578383088112, 0.016099881380796432, 0.037497907876968384, -0.00839594192802906, 0.02508510649204254, -0.014618562534451485, 0.016629695892333984, 0.00892035011202097, 0.00033079631975851953, -0.03948741778731346, -0.026685362681746483, 0.05432223156094551, 0.03068600594997406, -0.0093150082975626, 0.0550142340362072, 0.027896368876099586, -0.050040461122989655, -0.05661449208855629, -0.0005967174074612558, -0.008314847946166992, 0.06340476870536804, -0.000007296356670849491, -0.03546515107154846, 0.0029437155462801456, -0.06824879348278046, 0.018532704561948776, -0.0020719540771096945, -0.06007450446486473, -0.04087142273783684, -0.04182292893528938, 0.00021608197130262852, -0.06803254038095474, -0.11236397922039032, -0.07469306886196136, -0.005349507089704275, -0.0014367169933393598, -0.03066438063979149, -0.09307439625263214, -0.009888073429465294, 0.034081146121025085, 0.04396381229162216, 0.026252862066030502, 0.045888446271419525, -0.015613316558301449, -0.02198190614581108, 0.01714869774878025, -0.017105447128415108, -0.021689966320991516, 0.04048217087984085, 0.0058549935929477215, 0.04999721422791481, 0.019559895619750023, -0.011818112805485725, 0.031745634973049164, -0.004735894966870546, 0.027247615158557892, -0.051943469792604446, 0.00885547511279583, -0.005260303616523743, -0.0069146230816841125, 0.05017021298408508, 0.02274959720671177, -0.0024922918528318405, -0.06241001561284065, -0.013645432889461517, -0.011001765727996826, 0.03970366716384888, -0.01837051473557949, -0.03899003937840462, 0.02694486454129219, 0.037087030708789825, -0.0627560168504715, -0.041693177074193954, -0.03053463064134121, -0.05670098960399628, -0.06660528481006622, -0.039963170886039734, -0.01511593908071518, -0.02969125099480152, -0.012304677627980709, 0.004087142180651426, -0.017851512879133224, 0.019451770931482315, -0.06500502675771713, 0.024436354637145996, -0.010288137011229992, 0.008741943165659904, -0.05272197350859642, -0.024003852158784866, 0.04238517954945564, 0.000714979600161314, 0.007595813367515802, -0.004706160631030798, 0.04177967831492424, -0.07728807628154755, -0.019224707037210464, 0.06180451437830925, -0.012715553864836693, -0.03163750842213631, -0.03548677638173103, 0.018413765355944633, -0.018359702080488205, 0.025322983041405678, 0.05142446979880333, -0.006379402242600918, 0.0278098676353693, 0.025128357112407684, 0.015624129213392735, -0.045585691928863525, -0.03645990416407585, 0.03228626400232315, 0.01352649461477995, -0.0017435230547562242, 0.016575632616877556, 0.001409685704857111, 0.0760338231921196, 0.00128466566093266, 0.028566746041178703, -0.0427960567176342, 0.004830504767596722, 0.039963170886039734, 0.031032007187604904, -0.021711591631174088, 0.012380365282297134, -0.01030435599386692, 0.02577710896730423, 0.11469949036836624, 0.007682313676923513, -0.05384647846221924, 0.04476394131779671, 0.010844983160495758, -0.0026544800493866205, 0.01245605293661356, 0.0008886561263352633, -0.025820359587669373, -0.03743303567171097, -0.008152659982442856, -0.02152777835726738, -0.016727007925510406, 0.07503906637430191, 0.07188180834054947, -0.0057036178186535835, -0.035357024520635605, -0.04292580857872963, 0.035638149827718735, -0.031594257801771164, -0.010320574976503849, 0.023938976228237152, -0.008417567238211632, -0.004708863794803619, -0.0025166200939565897, 0.0027869336772710085, -0.07054104655981064, 0.02636098675429821, -0.0038222349248826504, 0.03542190045118332, -0.008731130510568619, 0.09367989748716354, -0.0031356383115053177, 0.025712234899401665, 0.022836096584796906, 0.0010157035430893302, -0.011439673602581024, -0.02287934720516205, 0.02150615304708481, 0.030080502852797508, 0.027723368257284164, 0.0009575861040502787, -0.04554244503378868, -0.02463097870349884, -0.0031464509665966034, 0.047445449978113174, 0.010207043029367924, 0.040265921503305435, 0.012531740590929985, -0.0028626215644180775, -0.01080173347145319, -0.04152017459273338, 0.0074768755584955215, 0.010158387012779713, 0.027442241087555885, -0.0013441345654428005, -0.005427897907793522, -0.059858255088329315, -0.011850550770759583, -0.0044061122462153435, -0.015353815630078316, 0.025950109586119652, 0.010877421125769615, -0.007428219076246023, 0.09073888510465622, 0.04878620803356171, 0.012704741209745407, 0.028263995423913002, 0.01160186156630516, -0.076942078769207, -0.019051706418395042, 0.08758161962032318, 0.010066480375826359, 0.05557648465037346, 0.0030572472605854273, -0.012088426388800144, -0.05700374394655228, -0.008914943784475327, 0.011331547982990742, -0.03715190663933754, -0.036784280091524124, -0.03274038806557655, -0.0007920190109871328, -0.049780961126089096, -0.0187057051807642, -0.006465902552008629, -0.005719836801290512, -0.024717479944229126, 0.010023229755461216, -0.012629053555428982, -0.0254959836602211, 0.053932979702949524, -0.06824879348278046, -0.0064442772418260574, 0.03401627019047737, 0.00615774467587471, 0.026728613302111626, -0.030188627541065216, 0.02259822189807892, 0.033367518335580826, 0.02666373737156391, 0.07365506142377853, -0.011947862803936005, 0.08710587024688721, -0.026252862066030502, -0.00992591679096222, 0.007211968302726746, 0.06933004409074783, 0.02066277526319027, -0.001300884410738945, 0.026036610826849937, -0.02203596942126751, 0.02196028083562851, -0.02867487259209156, 0.0472724512219429, -0.04405031353235245, -0.02318209782242775, 0.0000699014199199155, -0.06150176003575325, 0.03991992026567459, 0.04450443759560585, -0.04748870059847832, 0.014953751116991043, -0.04089304804801941, -0.0032275449484586716, 0.009055507369339466, 0.03442714735865593, 0.09030638635158539, 0.03503264859318733, 0.042428430169820786, 0.006109088659286499, -0.044590938836336136, -0.012174926698207855, -0.011082859709858894, 0.0387737900018692, -0.054970983415842056, 0.0332377664744854, -0.00008236119174398482, -0.0015907958149909973, 0.02607986144721508, -0.027269240468740463, 0.026555612683296204, 0.021895404905080795, -0.02287934720516205, -0.018565140664577484, 0.006141526158899069, -0.04013616964221001, 0.029345249757170677, 0.003624906064942479, -0.0065307775512337685, 0.011796487495303154, -0.0250418558716774, 0.08174284547567368, -0.015040251426398754, 0.005200834479182959, -0.01021785568445921, -0.05375997722148895, -0.027744993567466736, -0.08792762458324432, 0.013407557271420956, 0.017548762261867523, 0.009309601970016956, 0.027593616396188736, 0.0036032809875905514, 0.013212931342422962, -0.0064496835693717, -0.02079252526164055, -0.003149153897538781, 0.0553169846534729, 0.05661449208855629, -0.07106005400419235, 0.027290865778923035, -0.060161005705595016, -0.02476073056459427, 0.045585691928863525, -0.017678512260317802, 0.023592974990606308, 0.009190663695335388, 0.0437043122947216, -0.002881543477997184, -0.009633978828787804, 0.0060279942117631435, -0.03271876275539398, 0.00651996536180377, 0.03879541531205177, 0.057998497039079666, -0.04221218079328537, 0.12992355227470398, -0.004270955454558134, 0.004460175056010485, 0.006671340670436621, -0.03600577637553215, -0.0009420430869795382, 0.020370837301015854, 0.01411037240177393, -0.05354372784495354, -0.01658644527196884, 0.09523690491914749, -0.0029193873051553965, -0.03555165231227875, -0.05557648465037346, 0.003468124195933342, -0.03137800842523575, -0.00023415920441038907, 0.030188627541065216, 0.04061192274093628, 0.010044855065643787, 0.039098165929317474, 0.05142446979880333, 0.0420391783118248, 0.006309120450168848, 0.05086221545934677, -0.003662749892100692, -0.06833528727293015, 0.030058877542614937, 0.03243763744831085, -0.0020057272631675005, 0.05765249580144882, 0.007995877414941788, 0.05570623651146889, 0.04856995493173599, 0.05198672041296959, 0.032070010900497437, 0.03209163621068001, -0.0038303444162011147, -0.0017300073523074389, -0.04041729494929314, -0.04089304804801941, -0.0017975857481360435, -0.023117223754525185, 0.07205480337142944, -0.010671982541680336, -0.06344801932573318, 0.03345401585102081, -0.02154940366744995, -0.016575632616877556, -0.014391498640179634, -0.01195867545902729, -0.029150623828172684, 0.01066116988658905, -0.005552242510020733, -0.01684594713151455, -0.018002888187766075, -0.006487527396529913, -0.06301552057266235, -0.03661128133535385, -0.047445449978113174, -0.018262390047311783, 0.02692323923110962, 0.03994154557585716, -0.01643506996333599, 0.015040251426398754, 0.00467642629519105, 0.0341460183262825, 0.015613316558301449, -0.03178888559341431, 0.001444826484657824, -0.0012812867062166333, -0.014164434745907784, 0.013180493377149105, 0.023549724370241165, 0.0033248579129576683, -0.014791563153266907, -0.03561652451753616, 0.009525853209197521, -0.0553169846534729, -0.007514719385653734, 0.06760003417730331, -0.005065677687525749, -0.038254786282777786, -0.011201797984540462, 0.02350647561252117, -0.010163793340325356, -0.05795524641871452, -0.062020763754844666, 0.02796124294400215, 0.0074768755584955215, -0.0036438279785215855, -0.0460614450275898, -0.07300630956888199, -0.09956192225217819, 0.019905896857380867, -0.0506892167031765, 0.05773899704217911, -0.033475641161203384, 0.031334757804870605, 0.0084986612200737, 0.05648474022746086, -0.02575548365712166, -0.03591927886009216, -0.0016664835857227445, -0.050343215465545654, -0.052808474749326706, -0.0038006098475307226, -0.00038722431054338813, 0.03788715973496437, 0.05765249580144882, -0.027334116399288177, -0.01837051473557949, 0.010055667720735073, -0.0352056510746479, -0.015483565628528595, -0.023160472512245178, 0.02137640304863453, 0.0004970392328687012, 0.04167155176401138, 0.015397065319120884, -0.02137640304863453, 0.03598415106534958, 0.04110930114984512, -0.018024513497948647, 0.01722438633441925, -0.001376572297886014, 0.04735895246267319, 0.03994154557585716, 0.021441278979182243, -0.01773257553577423, -0.015224064700305462, 0.01404549740254879, 0.037670910358428955, -0.057565994560718536, 0.06318851560354233, 0.018716517835855484, 0.014629374258220196, 0.036070652306079865, -0.05081896483898163, 0.06037725508213043, 0.0023922757245600224, -0.028458621352910995, -0.0025477062445133924, 0.019170643761754036, 0.03066438063979149, 0.06206401437520981, -0.024998607113957405, 0.06794603914022446, -0.012055988423526287, -0.0427960567176342, 0.08087784051895142, 0.02664211392402649, -0.011980300769209862, -0.03023187816143036, 0.045455943793058395, 0.03706540912389755, -0.05168396979570389, 0.003368108067661524, 0.019149018451571465, -0.014142810367047787, 0.03330264240503311, -0.03860078752040863, 0.02478235587477684, -0.0430988073348999, -0.035962529480457306, 0.026533987373113632, -0.017310885712504387, -0.004592628683894873, 0.08420810848474503, -0.03585440292954445, 0.01694325916469097, -0.013072367757558823, 0.016391819342970848, 0.011709987185895443, -0.022706346586346626, -0.015591691248118877, -0.03503264859318733, -0.021938655525445938, 0.03343239054083824, -0.02607986144721508, -0.005963119212538004, 0.008179690688848495, -0.029496625065803528, 0.017008135095238686, -0.03570302575826645, 0.015083501115441322, 0.02995075285434723, -0.03457852080464363, -0.025885235518217087, 0.0005369104910641909, -0.055965736508369446, 0.038838665932416916, -0.008714912459254265, -0.04986746236681938, -0.02137640304863453, 0.039963170886039734, 0.04216893017292023, 0.01733251102268696, 0.06409677118062973, 0.047315701842308044, -0.0029896688647568226, 0.060420505702495575, -0.015461940318346024, -0.014013059437274933, -0.018889518454670906, -0.05116496607661247, 0.04467744007706642, -0.003992532379925251, -0.011180172674357891, 0.05233272165060043, -0.007622845005244017, -0.0007744486210867763, 0.020976338535547256, -0.02908574789762497, -0.04839695617556572, 0.010790920816361904, 0.026469113305211067, 0.002257118932902813, -0.034059520810842514, 0.030080502852797508, 0.013721120543777943, -0.01411037240177393, -0.011655924841761589, -0.07023829966783524, -0.0007920190109871328, 0.032178137451410294, -0.006730809807777405, -0.03658965602517128, -0.03628690540790558, -0.036935657262802124, -0.05795524641871452, 0.0890088751912117, -0.031075257807970047, -0.0344487726688385, -0.0023760569747537374, -0.061155758798122406, -0.043552935123443604, -0.01936526969075203, -0.014661812223494053, 0.022836096584796906, -0.016370194032788277, -0.014121185056865215, -0.02218734472990036, 0.016608070582151413, 0.010628732852637768, -0.04115254804491997, 0.00989888608455658, 0.0213980283588171, 0.026988115161657333, -0.08355935662984848, 0.04766170307993889, -0.012142488732933998, -0.00881763081997633, 0.02737736701965332, -0.0735253095626831, 0.024652604013681412, -0.01001241710036993, -0.02038164995610714, -0.02318209782242775, 0.010493575595319271, 0.03010212816298008, -0.04180130362510681, 0.057263243943452835, -0.017948826774954796, -0.0011603212915360928, 0.017408199608325958, -0.010320574976503849, -0.023874102160334587, 0.007471469230949879, 0.039963170886039734, -0.008823037147521973, -0.04454768821597099, -0.017094634473323822, -0.014618562534451485, -0.012693928554654121, 0.021279091015458107, 0.053673479706048965, -0.03299989178776741, 0.01585119217634201, 0.011439673602581024, -0.005303553771227598, -0.02508510649204254, 0.08325660228729248, 0.02463097870349884, -0.02363622561097145, -0.020165398716926575, 0.032048385590314865, 0.021235840395092964, -0.042428430169820786, -0.004287174437195063, 0.029215499758720398, 0.0010184067068621516, 0.005244084633886814, -0.014975376427173615, 0.04320693388581276, 0.10232993215322495, -0.0270529892295599, -0.017062198370695114, -0.009347446262836456, 0.011418048292398453, -0.017083821818232536, -0.011731612496078014, -0.01160186156630516, -0.03194025903940201, 0.0011447783326730132, -0.052635472267866135, 0.05635498836636543, 0.0017921795370057225, -0.03730328381061554, -0.026988115161657333, -0.017289260402321815, 0.010844983160495758, -0.009131195023655891, -0.03641665354371071, -0.019732896238565445, 0.01880301721394062, -0.027312491089105606, 0.0460614450275898, 0.032351136207580566, 0.00208276673220098, -0.06941654533147812, 0.028480246663093567, 0.03483802452683449, -0.034189268946647644, -0.0437043122947216, 0.016251256689429283, 0.057392992079257965, 0.0024328229483217, 0.03423251956701279, 0.003635718487203121, 0.03604902699589729, 0.002773418091237545, -0.051943469792604446, 0.017267635092139244, 0.010947702452540398, 0.014142810367047787, 0.042687930166721344, 0.024717479944229126, -0.034816399216651917, -0.005865806248039007, 0.018986830487847328, -0.08083458989858627, 0.011169360019266605, -0.007530938368290663, -0.010585482232272625, 0.07036805152893066, 0.0009325820719823241, 0.036676157265901566, -0.035075899213552475, -0.05990150570869446, -0.013472432270646095, 0.01310480572283268, -0.010855795815587044, 0.06764328479766846, -0.03732490912079811, -0.027701742947101593, -0.029583126306533813, 0.007044373545795679, -0.0550142340362072, -0.04043892025947571, 0.01425093598663807, 0.0834728553891182, -0.02822074480354786, -0.013948184438049793, 0.046147946268320084, 0.010888233780860901, -0.03643827885389328, -0.006665934342890978, 0.050213463604450226, -0.009017663076519966, -0.0012650678399950266, -0.03706540912389755, 0.03157263249158859, -0.09912942349910736, -0.026555612683296204, 0.010434106923639774, 0.030859006568789482, -0.007817470468580723, -0.01987345889210701, 0.05635498836636543, 0.002651776885613799, 0.07002204656600952 ]
30,223
networkx.classes.multigraph
__init__
Initialize a graph with edges, name, or graph attributes. Parameters ---------- incoming_graph_data : input graph Data to initialize graph. If incoming_graph_data=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. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. See Also -------- convert Examples -------- >>> G = nx.MultiGraph() >>> G = nx.MultiGraph(name="my graph") >>> e = [(1, 2), (1, 2), (2, 3), (3, 4)] # list of edges >>> G = nx.MultiGraph(e) Arbitrary graph attribute pairs (key=value) may be assigned >>> G = nx.MultiGraph(e, day="Friday") >>> G.graph {'day': 'Friday'}
def __init__(self, incoming_graph_data=None, multigraph_input=None, **attr): """Initialize a graph with edges, name, or graph attributes. Parameters ---------- incoming_graph_data : input graph Data to initialize graph. If incoming_graph_data=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. multigraph_input : bool or None (default None) Note: Only used when `incoming_graph_data` is a dict. If True, `incoming_graph_data` is assumed to be a dict-of-dict-of-dict-of-dict structure keyed by node to neighbor to edge keys to edge data for multi-edges. A NetworkXError is raised if this is not the case. If False, :func:`to_networkx_graph` is used to try to determine the dict's graph data structure as either a dict-of-dict-of-dict keyed by node to neighbor to edge data, or a dict-of-iterable keyed by node to neighbors. If None, the treatment for True is tried, but if it fails, the treatment for False is tried. attr : keyword arguments, optional (default= no attributes) Attributes to add to graph as key=value pairs. See Also -------- convert Examples -------- >>> G = nx.MultiGraph() >>> G = nx.MultiGraph(name="my graph") >>> e = [(1, 2), (1, 2), (2, 3), (3, 4)] # list of edges >>> G = nx.MultiGraph(e) Arbitrary graph attribute pairs (key=value) may be assigned >>> G = nx.MultiGraph(e, day="Friday") >>> G.graph {'day': 'Friday'} """ # multigraph_input can be None/True/False. So check "is not False" if isinstance(incoming_graph_data, dict) and multigraph_input is not False: Graph.__init__(self) try: convert.from_dict_of_dicts( incoming_graph_data, create_using=self, multigraph_input=True ) self.graph.update(attr) except Exception as err: if multigraph_input is True: raise nx.NetworkXError( f"converting multigraph_input raised:\n{type(err)}: {err}" ) Graph.__init__(self, incoming_graph_data, **attr) else: Graph.__init__(self, incoming_graph_data, **attr)
(self, incoming_graph_data=None, multigraph_input=None, **attr)
[ 0.030362682417035103, 0.014757996425032616, 0.024514617398381233, 0.01812506467103958, -0.0636395514011383, -0.016352923586964607, -0.04997437447309494, 0.016382459551095963, 0.07647772878408432, -0.03441891446709633, 0.011617369018495083, 0.03615167737007141, -0.003376913024112582, 0.0545031800866127, -0.003883942263200879, 0.024042045697569847, -0.013448581099510193, 0.003103707917034626, 0.025262854993343353, 0.051037661731243134, -0.025971710681915283, -0.02786199375987053, -0.013054772280156612, 0.041625622659921646, 0.057614270597696304, 0.00862934160977602, -0.025341615080833435, 0.012621581554412842, 0.03231203556060791, 0.015230567194521427, -0.05217970535159111, -0.03323748707771301, -0.03376913070678711, 0.016697505488991737, 0.0672232136130333, 0.01618555374443531, -0.05859879404306412, 0.03723464906215668, -0.15012003481388092, 0.01677626743912697, 0.0634426474571228, -0.06718382984399796, -0.020202407613396645, 0.02124600112438202, 0.05674789100885391, 0.035738177597522736, -0.0016515369061380625, 0.048871710896492004, -0.062221840023994446, -0.07769853621721268, 0.007521754130721092, -0.02866930328309536, 0.007398688700050116, 0.05899260565638542, -0.08262114971876144, 0.06682940572500229, -0.0007162403198890388, 0.046626996248960495, -0.009279127232730389, 0.032449871301651, -0.02717282809317112, 0.01996612176299095, 0.049029234796762466, -0.04060171917080879, -0.046036284416913986, -0.009013306349515915, -0.07064935564994812, -0.04284643009305, -0.04839913919568062, 0.0337100587785244, -0.01662858948111534, 0.011538607068359852, 0.0020884189289063215, -0.0013561800587922335, 0.04497300088405609, 0.04784780740737915, -0.012237617745995522, 0.0586775578558445, -0.01610679179430008, 0.030579276382923126, 0.013015391305088997, 0.027724161744117737, -0.05217970535159111, -0.03502931818366051, 0.04213757440447807, 0.010120893828570843, -0.021679190918803215, 0.05233722925186157, 0.01501397229731083, -0.0628519356250763, -0.05466070398688316, 0.0016823032638058066, 0.01717992313206196, 0.06316698342561722, 0.02431771159172058, -0.011174333281815052, -0.008412746712565422, -0.06631745398044586, 0.053439896553754807, -0.015358555130660534, -0.07120068371295929, -0.04690266400575638, -0.06679002195596695, -0.04040481522679329, -0.04123181477189064, -0.11003026366233826, -0.022427428513765335, -0.0358957014977932, -0.015949267894029617, -0.04320085793733597, -0.08805571496486664, -0.03215451166033745, 0.020438693463802338, 0.048123471438884735, 0.023215046152472496, 0.026995614171028137, -0.0070245699025690556, -0.03288305923342705, 0.04761151969432831, -0.010534393601119518, -0.04615442827343941, 0.06883782893419266, 0.019276956096291542, 0.06962545216083527, 0.018892992287874222, 0.0020071957260370255, 0.04615442827343941, -0.04985623434185982, 0.04871418699622154, -0.021068787202239037, 0.020753739401698112, -0.023018142208456993, -0.017534350976347923, 0.031032158061861992, 0.000326738489093259, -0.017750944942235947, -0.07639896869659424, 0.0005208740476518869, -0.01606741175055504, 0.02855115942656994, 0.013625795021653175, -0.022250214591622353, 0.011174333281815052, 0.03985347971320152, -0.06493911892175674, 0.0048315455205738544, -0.006345249246805906, -0.05017127841711044, -0.06647497415542603, -0.04769028350710869, -0.011528761126101017, -0.02061590738594532, -0.0257944967597723, 0.015693292021751404, -0.001991197234019637, 0.014777686446905136, -0.08325124531984329, 0.007605438120663166, 0.013556878082454205, 0.03087463416159153, -0.06718382984399796, -0.010750988498330116, 0.02358916588127613, 0.021521667018532753, -0.0041497633792459965, -0.030402062460780144, 0.04717833176255226, -0.10459569841623306, -0.021639810875058174, 0.039400599896907806, -0.015929577872157097, -0.050998277962207794, -0.01756388694047928, -0.008284758776426315, -0.026719948276877403, 0.027704469859600067, 0.05954393744468689, 0.00937757920473814, 0.01679595746099949, 0.040759243071079254, 0.015959113836288452, -0.026109544560313225, -0.019700299948453903, 0.006940885446965694, 0.0010060592321678996, 0.012848022393882275, 0.003591046668589115, 0.014049139805138111, 0.06812897324562073, 0.0039159394800662994, 0.07951005548238754, -0.0060302019119262695, -0.005857910495251417, 0.05729922652244568, 0.04859604313969612, -0.026109544560313225, 0.022210832685232162, 0.03002794459462166, -0.01772140897810459, 0.08907961845397949, 0.0322529673576355, -0.037845056504011154, 0.028531469404697418, 0.012562510557472706, -0.0058923689648509026, -0.005833297502249479, -0.018863456323742867, 0.011154643259942532, -0.025420377030968666, -0.028157351538538933, -0.02855115942656994, -0.032745227217674255, 0.07313035428524017, 0.05639346316456795, -0.024652449414134026, -0.02349071390926838, 0.00994367990642786, 0.023687617853283882, -0.03461582213640213, -0.015752363950014114, 0.04580000042915344, -0.007807265501469374, 0.0027369733434170485, -0.017081469297409058, 0.0008614574326202273, -0.044421665370464325, 0.011912725865840912, 0.003999623935669661, 0.015043508261442184, 0.04127119481563568, 0.04772966355085373, -0.038711436092853546, 0.026109544560313225, 0.017869088798761368, -0.026975924149155617, 0.0029757199808955193, 0.02581418678164482, -0.009229901246726513, -0.004144840873777866, 0.021718572825193405, 0.0017795248422771692, -0.03437953442335129, -0.04639071226119995, -0.03595476970076561, 0.053951848298311234, -0.016884565353393555, 0.02790137566626072, 0.0191391222178936, -0.011666595004498959, -0.0005584090249612927, -0.04363404959440231, 0.024731211364269257, -0.024435855448246002, 0.013783318921923637, -0.00044857317698188126, -0.00022797855490352958, -0.06092226877808571, -0.04174376651644707, 0.037077128887176514, -0.012995700351893902, 0.020379621535539627, 0.017573731020092964, -0.005936672445386648, 0.0982159897685051, 0.03026423044502735, -0.040877386927604675, -0.001804137951694429, 0.018942218273878098, -0.0659630224108696, -0.007945098914206028, 0.07068873196840286, 0.0012712649768218398, 0.0557633675634861, 0.006822742521762848, 0.004558340180665255, -0.0601346492767334, -0.015279793180525303, -0.03447798639535904, -0.02193516679108143, -0.01705193519592285, -0.01796754077076912, -0.0012872634688392282, -0.031150300055742264, -0.009914143942296505, 0.007925407961010933, -0.005749613046646118, -0.004176837857812643, -0.01883392035961151, -0.013694711960852146, -0.03154410794377327, 0.031937919557094574, -0.01802661269903183, -0.015693292021751404, 0.03691960498690605, -0.01810537278652191, -0.008703181520104408, -0.005444410722702742, 0.04276767000555992, 0.01988735981285572, -0.008717949502170086, 0.05674789100885391, -0.025617282837629318, 0.052652277052402496, -0.002367777284234762, -0.03002794459462166, -0.020793121308088303, 0.02786199375987053, 0.029594754800200462, 0.002983103971928358, 0.03621074557304382, 0.000001052785592037253, 0.05974084138870239, -0.021068787202239037, 0.028984351083636284, -0.05351865664124489, 0.030283920466899872, 0.03471427410840988, -0.03656517714262009, 0.046587616205215454, 0.04355528578162193, -0.020812811329960823, 0.023805759847164154, -0.04213757440447807, -0.006350171752274036, -0.032075751572847366, 0.04859604313969612, 0.061394840478897095, 0.02437678351998329, 0.024042045697569847, 0.03654548525810242, -0.023746689781546593, 0.019493550062179565, -0.01679595746099949, 0.028807135298848152, -0.04627256840467453, 0.022978762164711952, -0.014295270666480064, -0.014984436333179474, 0.03731341287493706, -0.06375769525766373, -0.006300945766270161, 0.01871577836573124, -0.03235141932964325, -0.05710231885313988, -0.028255803510546684, -0.03384789079427719, 0.009928911924362183, -0.014521710574626923, -0.02727128006517887, 0.03313903510570526, -0.059268269687891006, 0.07931315153837204, -0.009407115168869495, 0.02872837334871292, -0.004469733219593763, -0.035679105669260025, -0.055408939719200134, -0.06076474487781525, 0.028905589133501053, 0.018686242401599884, 0.033493462949991226, 0.037943508476018906, 0.021580738946795464, 0.005793916527181864, 0.013369819149374962, -0.022388048470020294, -0.004969378467649221, 0.07379982620477676, 0.023372570052742958, -0.03611229360103607, 0.017573731020092964, -0.0513920895755291, -0.03804196044802666, 0.002877267776057124, -0.00439097173511982, 0.04698142781853676, -0.026148924604058266, 0.017002707347273827, -0.006660296581685543, -0.025282545015215874, -0.016904255375266075, -0.02280154637992382, 0.0034482909832149744, 0.03619105741381645, 0.04249200224876404, -0.045957524329423904, 0.09632571041584015, 0.008934544399380684, 0.0543062761425972, 0.005208125337958336, -0.0360926054418087, -0.020458383485674858, 0.04280705004930496, 0.0061384993605315685, -0.01602802984416485, -0.03762846067547798, 0.09963370114564896, 0.0004168838495388627, -0.03384789079427719, -0.03583662956953049, -0.03879019618034363, -0.048911090940237045, 0.008309371769428253, 0.027074376121163368, 0.02709406614303589, 0.01183396391570568, 0.04615442827343941, 0.0605284608900547, 0.033454082906246185, 0.008353675715625286, 0.08766190707683563, -0.014757996425032616, -0.061316076666116714, 0.0044623492285609245, -0.005286887288093567, 0.03075649030506611, 0.05682665482163429, -0.023726997897028923, 0.05367618054151535, 0.026975924149155617, 0.040916766971349716, 0.05729922652244568, 0.05462132394313812, -0.012355760671198368, 0.034891486167907715, -0.020734049379825592, -0.03396603465080261, -0.01033748872578144, -0.029811348766088486, 0.047414615750312805, -0.020812811329960823, 0.0016675353981554508, 0.036506105214357376, -0.014826912432909012, 0.022210832685232162, -0.01570313796401024, 0.0005177974235266447, -0.011440154165029526, -0.0010177503572776914, -0.004671560600399971, -0.0020121184643357992, -0.053991228342056274, 0.008786865510046482, -0.053242992609739304, -0.08325124531984329, -0.03461582213640213, -0.02951599285006523, 0.03727403283119202, 0.005926826968789101, -0.0008257684530690312, 0.009072377346456051, 0.004262983798980713, 0.028531469404697418, -0.013803008943796158, -0.026030782610177994, -0.0025597591884434223, 0.034832414239645004, -0.013015391305088997, 0.03164255991578102, 0.04835975915193558, 0.0033301482908427715, -0.009092067368328571, -0.04182252660393715, 0.02435709349811077, -0.055487703531980515, 0.0014743228675797582, 0.07813172787427902, -0.0037584155797958374, -0.03731341287493706, -0.010189810767769814, 0.02431771159172058, 0.024475235491991043, -0.0185090284794569, -0.024435855448246002, -0.013547033071517944, -0.04032605141401291, -0.011597678065299988, -0.04548495262861252, -0.05091951787471771, -0.08939466625452042, 0.006502772681415081, -0.007285468280315399, 0.04804471135139465, 0.0019025902729481459, 0.0191391222178936, -0.005296732299029827, 0.06352140754461288, -0.062064316123723984, -0.037923816591501236, 0.027684779837727547, -0.050289422273635864, -0.0057348450645804405, 0.0020785736851394176, 0.012946474365890026, 0.05221908912062645, 0.02801951766014099, -0.03957781568169594, -0.013094152323901653, 0.01990704983472824, -0.04906861484050751, -0.020379621535539627, 0.007511908654123545, -0.032764919102191925, -0.018056146800518036, 0.05466070398688316, 0.042216334491968155, -0.03355253487825394, 0.01733744516968727, 0.010027363896369934, 0.001438633888028562, -0.010800214484333992, -0.02201392874121666, 0.03313903510570526, 0.05154961347579956, 0.0037239573430269957, -0.04213757440447807, -0.00906253233551979, 0.019355718046426773, 0.017790326848626137, -0.042885810136795044, 0.0672232136130333, 0.037923816591501236, -0.029988562688231468, 0.004358974751085043, -0.045169904828071594, 0.04111367091536522, 0.01695348136126995, -0.03575786575675011, 0.00286250002682209, -0.009736930020153522, 0.013753782957792282, 0.02941754087805748, -0.04776904359459877, 0.0819910541176796, -0.019276956096291542, -0.03518684208393097, 0.0734453946352005, 0.08585038781166077, -0.02061590738594532, -0.034891486167907715, 0.01626431569457054, 0.035541269928216934, -0.05308546870946884, 0.03904617205262184, 0.03426139056682587, -0.025932328775525093, 0.01831212267279625, 0.02945692092180252, 0.03309965506196022, -0.0337100587785244, -0.06915287673473358, 0.008452127687633038, -0.06352140754461288, 0.023943593725562096, 0.06391521543264389, -0.01588035188615322, 0.009224978275597095, -0.0017290681134909391, 0.01250343956053257, 0.022289594635367393, -0.03654548525810242, 0.02431771159172058, -0.03508839011192322, -0.02124600112438202, 0.0164907556027174, -0.035738177597522736, -0.016057565808296204, -0.00401685293763876, -0.033335939049720764, 0.048084091395139694, -0.0011438924120739102, -0.022565262392163277, 0.006704600062221289, 0.009505567140877247, -0.00043288234155625105, -0.0010552853345870972, -0.012621581554412842, 0.03619105741381645, -0.010367024689912796, -0.036348581314086914, -0.017386671155691147, 0.030421752482652664, 0.014531555585563183, 0.019660919904708862, 0.02874806523323059, 0.013133533298969269, -0.02047807350754738, 0.025243163108825684, 0.003002794459462166, -0.012276998721063137, -0.008289681747555733, -0.046626996248960495, 0.03237110748887062, 0.042255718261003494, -0.0453668087720871, 0.012641272507607937, 0.03967626765370369, -0.02949630282819271, 0.013753782957792282, -0.04477609694004059, -0.08269990980625153, 0.04583938047289848, -0.001539547462016344, 0.014511865563690662, -0.005272119306027889, -0.0018607480451464653, -0.0047232480719685555, -0.01843026652932167, -0.014157437719404697, -0.03254832327365875, 0.018489336594939232, 0.05068323016166687, -0.03445829823613167, 0.004285135306417942, 0.004816777538508177, -0.031071538105607033, -0.09648323059082031, 0.060725364834070206, 0.008284758776426315, -0.014019603841006756, 0.001385715790092945, -0.06875906884670258, -0.047375235706567764, -0.010514703579246998, -0.0346355102956295, 0.0235104039311409, -0.016746731474995613, -0.04190129041671753, -0.02063559740781784, 0.012365605682134628, 0.05568460747599602, -0.059189509600400925, 0.012582200579345226, -0.0002525916206650436, 0.010760833509266376, -0.07525692135095596, 0.03890834003686905, 0.008668722584843636, -0.009584329091012478, 0.04060171917080879, -0.07891934365034103, -0.0012700343504548073, -0.00003270845991210081, -0.04926551878452301, -0.004526343196630478, -0.04166500270366669, 0.02362854592502117, -0.054857607930898666, 0.056354083120822906, -0.012109629809856415, 0.011932415887713432, 0.03888864815235138, 0.012404986657202244, -0.00007418532914016396, 0.017691874876618385, 0.023352880030870438, -0.038593292236328125, -0.01833181455731392, 0.005336113274097443, -0.02286061830818653, -0.023943593725562096, 0.04351590573787689, 0.0439097136259079, 0.016402149572968483, 0.018883146345615387, 0.0071328673511743546, -0.00831429474055767, -0.037923816591501236, 0.03524591401219368, 0.012296689674258232, -0.03817979246377945, 0.009318508207798004, 0.032016679644584656, 0.020911263301968575, -0.050446946173906326, -0.007506986148655415, 0.043003953993320465, -0.003785490058362484, 0.016520291566848755, 0.01679595746099949, 0.01214901078492403, 0.05749613046646118, -0.010573774576187134, 0.0011475842911750078, -0.016805803403258324, -0.01664827950298786, -0.0014903213595971465, -0.014295270666480064, -0.002914187265560031, -0.008461972698569298, 0.008732716552913189, 0.001599849434569478, 0.020438693463802338, -0.012601891532540321, -0.021620118990540504, -0.054818227887153625, -0.04335838183760643, -0.020202407613396645, -0.02794075571000576, -0.024042045697569847, 0.022407738491892815, 0.01810537278652191, -0.037825364619493484, 0.042295098304748535, 0.020990025252103806, -0.00718209333717823, -0.06336388736963272, 0.029220635071396828, 0.034281082451343536, -0.02577480673789978, -0.022506190463900566, -0.0013266444439068437, 0.04875356703996658, 0.0035073624458163977, 0.05131332576274872, 0.042295098304748535, 0.04788718745112419, 0.014757996425032616, -0.056314703077077866, -0.02583387680351734, 0.01501397229731083, 0.003598430659621954, 0.013832544907927513, 0.02011379972100258, -0.029653824865818024, -0.030717110261321068, 0.014580782502889633, -0.06915287673473358, 0.06096164882183075, -0.04249200224876404, -0.022624332457780838, 0.06895597279071808, -0.018174290657043457, 0.0399322435259819, -0.016333233565092087, -0.05966208130121231, -0.005572398658841848, 0.020812811329960823, 0.00591698195785284, 0.06773516535758972, -0.053439896553754807, -0.02496749721467495, -0.019857823848724365, 0.03666362911462784, -0.040877386927604675, -0.054148752242326736, 0.025459758937358856, 0.043122097849845886, -0.013487962074577808, -0.0014152515213936567, 0.017111005261540413, -0.017839552834630013, -0.028433017432689667, -0.0015961575554683805, 0.04056233912706375, -0.03211513161659241, 0.013724246993660927, -0.011676440015435219, 0.01318276021629572, -0.09081237763166428, -0.017130695283412933, 0.01921788416802883, 0.07769853621721268, -0.030480824410915375, -0.014984436333179474, 0.06163112446665764, 0.04205881431698799, 0.05009251832962036 ]
30,227
networkx.classes.multigraph
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_for_edge, v_for_edge : nodes Nodes can be, for example, strings or numbers. Nodes must be hashable (and not None) Python objects. key : hashable identifier, optional (default=lowest unused integer) Used to distinguish multiedges between a pair of nodes. attr : keyword arguments, optional Edge data (or labels or objects) can be assigned using keyword arguments. Returns ------- The edge key assigned to the edge. See Also -------- add_edges_from : add a collection of edges Notes ----- To replace/update edge data, use the optional key argument to identify a unique edge. Otherwise a new edge will be created. NetworkX algorithms designed for weighted graphs cannot use multigraphs directly because it is not clear how to handle multiedge weights. Convert to Graph using edge attribute 'weight' to enable weighted graph algorithms. Default keys are generated using the method `new_edge_key()`. This method can be overridden by subclassing the base class and providing a custom `new_edge_key()` method. Examples -------- The following each add an additional edge e=(1, 2) to graph G: >>> G = nx.MultiGraph() >>> e = (1, 2) >>> ekey = G.add_edge(1, 2) # explicit two-node form >>> G.add_edge(*e) # single edge as tuple of two nodes 1 >>> G.add_edges_from([(1, 2)]) # add edges from iterable container [2] Associate data to edges using keywords: >>> ekey = G.add_edge(1, 2, weight=3) >>> ekey = G.add_edge(1, 2, key=0, weight=4) # update data for key=0 >>> ekey = G.add_edge(1, 3, weight=7, capacity=15, length=342.7) For non-string attribute keys, use subscript notation. >>> ekey = G.add_edge(1, 2) >>> G[1][2][0].update({0: 5}) >>> G.edges[1, 2, 0].update({0: 5})
def add_edge(self, u_for_edge, v_for_edge, key=None, **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_for_edge, v_for_edge : nodes Nodes can be, for example, strings or numbers. Nodes must be hashable (and not None) Python objects. key : hashable identifier, optional (default=lowest unused integer) Used to distinguish multiedges between a pair of nodes. attr : keyword arguments, optional Edge data (or labels or objects) can be assigned using keyword arguments. Returns ------- The edge key assigned to the edge. See Also -------- add_edges_from : add a collection of edges Notes ----- To replace/update edge data, use the optional key argument to identify a unique edge. Otherwise a new edge will be created. NetworkX algorithms designed for weighted graphs cannot use multigraphs directly because it is not clear how to handle multiedge weights. Convert to Graph using edge attribute 'weight' to enable weighted graph algorithms. Default keys are generated using the method `new_edge_key()`. This method can be overridden by subclassing the base class and providing a custom `new_edge_key()` method. Examples -------- The following each add an additional edge e=(1, 2) to graph G: >>> G = nx.MultiGraph() >>> e = (1, 2) >>> ekey = G.add_edge(1, 2) # explicit two-node form >>> G.add_edge(*e) # single edge as tuple of two nodes 1 >>> G.add_edges_from([(1, 2)]) # add edges from iterable container [2] Associate data to edges using keywords: >>> ekey = G.add_edge(1, 2, weight=3) >>> ekey = G.add_edge(1, 2, key=0, weight=4) # update data for key=0 >>> ekey = G.add_edge(1, 3, weight=7, capacity=15, length=342.7) For non-string attribute keys, use subscript notation. >>> ekey = G.add_edge(1, 2) >>> G[1][2][0].update({0: 5}) >>> G.edges[1, 2, 0].update({0: 5}) """ u, v = u_for_edge, v_for_edge # add nodes if u not in self._adj: 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._adj: 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() if key is None: key = self.new_edge_key(u, v) if v in self._adj[u]: keydict = self._adj[u][v] datadict = keydict.get(key, self.edge_attr_dict_factory()) datadict.update(attr) keydict[key] = datadict else: # selfloops work this way without special treatment datadict = self.edge_attr_dict_factory() datadict.update(attr) keydict = self.edge_key_dict_factory() keydict[key] = datadict self._adj[u][v] = keydict self._adj[v][u] = keydict nx._clear_cache(self) return key
(self, u_for_edge, v_for_edge, key=None, **attr)
[ -0.0023442108649760485, -0.015540502034127712, -0.011135001666843891, 0.08265364170074463, -0.031626638025045395, -0.005875683855265379, -0.023300647735595703, 0.03677986189723015, 0.04102369025349617, -0.029221801087260246, -0.02162332460284233, 0.0043473998084664345, 0.05759483948349953, 0.04708630591630936, -0.0008550812490284443, 0.06280868500471115, 0.021017063409090042, 0.012387942522764206, -0.004183203913271427, 0.008831208571791649, -0.037345703691244125, -0.039528246968984604, 0.0306768286973238, -0.0032131855841726065, 0.01255971658974886, 0.012337420135736465, -0.005845370702445507, 0.026614878326654434, 0.07845023274421692, -0.017389599233865738, -0.051289718598127365, -0.08293656259775162, -0.019683288410305977, 0.008816052228212357, 0.028251783922314644, -0.008209790103137493, -0.0179150253534317, 0.018430348485708237, -0.08398742228746414, 0.01961255818605423, 0.07845023274421692, -0.030737455934286118, 0.02621070295572281, -0.015489979647099972, 0.07287262380123138, 0.07319596409797668, -0.0037739775143563747, 0.030373698100447655, -0.03370813652873039, -0.07182177156209946, -0.008043068461120129, -0.03700215741991997, 0.07493391633033752, 0.018480869010090828, -0.03995262831449509, 0.019804541021585464, -0.048460498452186584, -0.007618685718625784, -0.064263716340065, 0.061596162617206573, -0.013267021626234055, -0.018339408561587334, 0.004107421264052391, 0.01950141042470932, -0.060706980526447296, 0.004930926486849785, -0.09320259094238281, -0.017035946249961853, -0.01628822460770607, 0.04288289323449135, 0.025462981313467026, 0.009947739541530609, 0.017308764159679413, 0.004814726300537586, 0.03710320219397545, 0.05391685292124748, -0.007699520327150822, 0.0423978827893734, 0.008659434504806995, 0.022856056690216064, -0.0019286692840978503, -0.021441446617245674, -0.02920159325003624, -0.03777008876204491, 0.0632936954498291, 0.0613536573946476, -0.07396389544010162, 0.024210041388869286, 0.007876346819102764, -0.06123240664601326, -0.03756800293922424, -0.028292201459407806, -0.045469608157873154, 0.03845718502998352, 0.03126288205385208, -0.014004639349877834, 0.01792513020336628, -0.061313241720199585, 0.04199371114373207, 0.0032965466380119324, -0.0053906748071312904, -0.03611297532916069, 0.01580321602523327, 0.003680512309074402, -0.042074546217918396, -0.1391167938709259, -0.055816471576690674, 0.005693805404007435, -0.0351833738386631, -0.012115124613046646, -0.04918801039457321, 0.007138728629797697, 0.04340831935405731, 0.05274474620819092, -0.0423978827893734, 0.028837835416197777, 0.012297002598643303, -0.005264370236545801, 0.027322182431817055, 0.012812325730919838, 0.014398709870874882, 0.011064271442592144, -0.024775885045528412, 0.002912580966949463, -0.004648004658520222, -0.08172404021024704, 0.006729502230882645, 0.01983485370874405, 0.012994203716516495, -0.04231704771518707, 0.014883718453347683, 0.004867774434387684, -0.028191156685352325, 0.04591419920325279, 0.021704159677028656, -0.041427865624427795, -0.04668213054537773, 0.045510027557611465, 0.028938880190253258, 0.031566012650728226, 0.021057480946183205, -0.043044563382864, 0.037992384284734726, 0.02958555892109871, -0.06244492903351784, -0.032273318618535995, -0.03231373429298401, -0.02740301750600338, -0.027301974594593048, -0.0069922152906656265, -0.00575948366895318, 0.031626638025045395, 0.005971675273030996, 0.0016849016537889838, 0.01786450482904911, -0.021340403705835342, -0.05993904918432236, -0.0020676041021943092, -0.0028393245302140713, 0.010225609876215458, -0.022350838407874107, -0.019198279827833176, 0.04324664920568466, -0.019269010052084923, 0.029868479818105698, 0.0284336619079113, 0.02855491451919079, -0.010447905398905277, 0.016116449609398842, 0.05836276710033417, -0.02483651041984558, -0.042357467114925385, -0.03427398204803467, 0.025260893628001213, -0.021805202588438988, -0.021178733557462692, 0.00997300073504448, -0.029767436906695366, 0.02049163728952408, 0.015459666959941387, 0.03669902682304382, 0.010548949241638184, 0.04522710293531418, -0.038820941001176834, 0.002591767581179738, 0.007128624245524406, 0.02920159325003624, 0.005880736280232668, 0.03000994212925434, -0.010740932077169418, -0.007350920233875513, -0.05573563650250435, -0.02707967720925808, 0.06018155440688133, 0.021481864154338837, -0.00828557275235653, 0.007497433107346296, 0.01704605109989643, 0.0040670037269592285, 0.0767931193113327, 0.01329733431339264, -0.04571211338043213, 0.017500746995210648, 0.038538020104169846, 0.004377712961286306, -0.02522047609090805, 0.00676991930231452, -0.02784760855138302, 0.019521618261933327, -0.011337089352309704, 0.019077027216553688, -0.010953123681247234, 0.033748552203178406, 0.0809561088681221, -0.0112461494281888, -0.02319960482418537, -0.05735233426094055, 0.05569521710276604, -0.04959218576550484, 0.019107339903712273, 0.005860527511686087, -0.0017139515839517117, 0.023341065272688866, -0.021643534302711487, 0.030818291008472443, -0.0742064043879509, 0.010771244764328003, -0.007194302510470152, 0.02009756676852703, 0.02750406041741371, 0.0549272857606411, -0.007997598499059677, 0.023219812661409378, 0.030575785785913467, -0.002512195846065879, 0.024088788777589798, -0.008391669020056725, 0.01901639997959137, 0.04162995144724846, 0.008528077974915504, 0.0073105026967823505, -0.013176081702113152, -0.014883718453347683, 0.00035870468127541244, 0.030575785785913467, 0.005658440291881561, 0.05124930292367935, 0.05391685292124748, -0.036577772349119186, 0.003488529473543167, -0.016268014907836914, 0.0025260893162339926, -0.007765198592096567, 0.0327785350382328, 0.006158605683594942, -0.035931095480918884, -0.03199039399623871, -0.008492712862789631, -0.004120051860809326, -0.013267021626234055, 0.016641877591609955, 0.03449627757072449, -0.018814314156770706, 0.053027667105197906, -0.006193971261382103, -0.022815639153122902, 0.038335930556058884, 0.008619016967713833, -0.07853106409311295, 0.002675128635019064, -0.016257911920547485, -0.02178499475121498, 0.03756800293922424, -0.0034430597443133593, -0.00588578823953867, -0.023280439898371696, -0.036254435777664185, 0.0025223002303391695, -0.030252445489168167, -0.02653404325246811, -0.03884115070104599, -0.009397052228450775, -0.050360117107629776, 0.04231704771518707, -0.05213848501443863, 0.002384628402069211, -0.017470434308052063, -0.027706148102879524, 0.013610569760203362, -0.05310850217938423, 0.03314229100942612, -0.030979959294199944, -0.01878400146961212, 0.05807984620332718, 0.003781555686146021, 0.03740633279085159, 0.024371709674596786, 0.02788802608847618, 0.04276164248585701, 0.009169704280793667, 0.04195329174399376, 0.02467484027147293, 0.016742920503020287, -0.04918801039457321, -0.02554381638765335, -0.029019715264439583, 0.07501474767923355, 0.010700514540076256, -0.00705284159630537, -0.012832533568143845, -0.0613536573946476, 0.029444098472595215, -0.017945338040590286, 0.05133013427257538, -0.00817442499101162, -0.01792513020336628, 0.01955193094909191, -0.03199039399623871, 0.037891339510679245, 0.054442279040813446, -0.04599503427743912, 0.03944741189479828, -0.050966378301382065, -0.002399784978479147, 0.025806529447436333, 0.027867818251252174, 0.08241114020347595, -0.03475898876786232, 0.04223621264100075, 0.026736129075288773, -0.006481945514678955, -0.01244856882840395, -0.014368396252393723, 0.05791817605495453, -0.13612590730190277, 0.032596658915281296, 0.02837303653359413, 0.03997283801436424, 0.0016596406931057572, 0.003953329753130674, 0.01138761080801487, 0.04059930890798569, -0.04445917159318924, -0.019370052963495255, 0.007851085625588894, -0.05480603501200676, 0.02663508616387844, -0.03447606787085533, -0.005668544676154852, 0.045792948454618454, -0.0017657364951446652, 0.02984827198088169, 0.004887982737272978, -0.026816964149475098, 0.050643038004636765, -0.016965216025710106, -0.02691800892353058, -0.07739938050508499, 0.03350605070590973, 0.013277125544846058, -0.007972338236868382, -0.015439458191394806, 0.02303793467581272, 0.013236708007752895, -0.041872456669807434, 0.006492049898952246, 0.009397052228450775, 0.021825412288308144, 0.042357467114925385, -0.039083655923604965, 0.021663742139935493, -0.038659270852804184, 0.015762798488140106, 0.07254928350448608, -0.027524270117282867, 0.022815639153122902, -0.01911744475364685, 0.044540006667375565, 0.0062545971013605595, -0.018400035798549652, 0.01307503879070282, 0.006350588519126177, 0.0166216678917408, 0.06317244470119476, 0.051410969346761703, -0.04086202010512352, 0.12893159687519073, 0.004367608577013016, 0.059130698442459106, 0.02374524064362049, -0.030575785785913467, 0.023118769749999046, 0.06078781560063362, 0.02081497572362423, -0.05658440291881561, -0.06018155440688133, 0.07174094021320343, -0.015429354272782803, -0.04866258427500725, -0.08431076258420944, 0.0211989413946867, 0.00434487359598279, -0.010028574615716934, 0.02996952459216118, 0.04276164248585701, 0.0019855061545968056, -0.011205732822418213, 0.040720559656620026, 0.01304472517222166, 0.003950804006308317, -0.006461736746132374, 0.010437801480293274, -0.05310850217938423, 0.007239772006869316, 0.012054498307406902, -0.0446612611413002, 0.042357467114925385, -0.016247807070612907, 0.04025575891137123, 0.022270003333687782, 0.013620673678815365, 0.022856056690216064, -0.004423182457685471, 0.010912706144154072, -0.005415935534983873, -0.021542489528656006, -0.013236708007752895, -0.0016028037061914802, -0.040659934282302856, 0.051734309643507004, 0.0059161013923585415, -0.013620673678815365, 0.07307471334934235, -0.01651052013039589, -0.021421238780021667, 0.0097203915938735, 0.01255971658974886, -0.03938678652048111, 0.03126288205385208, -0.010548949241638184, -0.05844360217452049, -0.03698194772005081, -0.026028824970126152, -0.030434325337409973, -0.04575252905488014, -0.053310591727495193, -0.03071724623441696, 0.014722049236297607, 0.0351833738386631, -0.026715921238064766, 0.04019513353705406, 0.013236708007752895, 0.011266358196735382, 0.01550008449703455, -0.04070035368204117, 0.008669538423418999, 0.0041352082043886185, -0.02451317198574543, 0.021481864154338837, 0.0032106596045196056, 0.019693393260240555, -0.0002483461576048285, -0.02958555892109871, 0.03340500593185425, -0.05710982903838158, 0.05294683203101158, 0.08265364170074463, -0.045025017112493515, -0.022896474227309227, -0.02608945034444332, 0.007967285811901093, -0.02778698317706585, -0.026554251089692116, -0.03677986189723015, 0.012953786179423332, -0.0020170824136584997, 0.009826487861573696, -0.04672254994511604, -0.057554420083761215, -0.09635515511035919, 0.015196953900158405, -0.04672254994511604, 0.030636411160230637, -0.022189168259501457, 0.04308497905731201, 0.004648004658520222, 0.015237371437251568, 0.005355309695005417, -0.04991552606225014, 0.04061951860785484, -0.021865829825401306, -0.05573563650250435, -0.013095247559249401, 0.05605897679924965, 0.049875110387802124, 0.027059469372034073, 0.004824830684810877, -0.035547129809856415, -0.005693805404007435, -0.040336593985557556, -0.003162663895636797, -0.04025575891137123, 0.006527415011078119, -0.0017922604456543922, 0.020461324602365494, 0.030798081308603287, -0.04114494472742081, 0.03692132234573364, 0.014418917708098888, -0.0033015988301485777, 0.03981116786599159, 0.0039406996220350266, 0.05674607306718826, 0.053472258150577545, 0.04397416487336159, -0.011811994016170502, -0.017086468636989594, 0.015591023489832878, 0.0024881979916244745, -0.01808680035173893, 0.06349578499794006, 0.0423978827893734, 0.016358954831957817, 0.003619886003434658, -0.05561438202857971, 0.0899691954255104, -0.0443379208445549, -0.024917345494031906, 0.029787646606564522, 0.04215538129210472, -0.04688422009348869, 0.038214679807424545, 0.002690285211429, 0.05682690814137459, -0.03708299249410629, 0.011347193270921707, 0.055816471576690674, 0.07372139394283295, -0.044418755918741226, -0.038477394729852676, 0.04639920964837074, 0.055897306650877, -0.05399768799543381, -0.044378336519002914, 0.0005276369047351182, 0.02336127497255802, 0.014297666028141975, -0.05015803128480911, 0.008523025549948215, -0.0851191058754921, -0.05844360217452049, 0.06640584021806717, 0.0063303797505795956, 0.06765877455472946, 0.05040053650736809, -0.036254435777664185, 0.0008216105634346604, -0.035324834287166595, 0.005537187680602074, 0.02766573056578636, -0.04027596861124039, -0.004723787307739258, -0.02158290706574917, -0.015702171251177788, 0.006244492717087269, 0.008027912117540836, -0.004781887400895357, -0.03797217458486557, 0.004509069491177797, 0.011690741404891014, -0.07606559991836548, -0.0023593674413859844, -0.010801558382809162, -0.06385953724384308, -0.09150505810976028, -0.02358357049524784, -0.08168362826108932, -0.015489979647099972, -0.011468445882201195, -0.0552506260573864, -0.06822462379932404, 0.031505387276411057, 0.06143449246883392, 0.03793175891041756, 0.03158622235059738, 0.028292201459407806, 0.03724466264247894, 0.060383640229701996, -0.03688090667128563, -0.0031298247631639242, -0.04162995144724846, -0.09296008944511414, -0.007062945980578661, 0.007613633293658495, 0.002517248038202524, 0.0070275804027915, 0.029444098472595215, 0.024856720119714737, 0.015126222744584084, -0.035931095480918884, 0.005532135721296072, -0.026897799223661423, 0.045186687260866165, 0.026109660044312477, -0.0242504570633173, 0.01622759737074375, -0.009629452601075172, -0.009149495512247086, -0.03479940816760063, -0.047854237258434296, 0.01721782423555851, 0.0358300507068634, 0.03017161227762699, -0.010831871069967747, -0.04332748427987099, -0.016864173114299774, -0.04340831935405731, 0.05953487381339073, -0.0037158774212002754, 0.03013119474053383, -0.0171066764742136, -0.050683457404375076, -0.024432336911559105, -0.008012755773961544, -0.057069409638643265, 0.01885473169386387, 0.016409477218985558, -0.006204075645655394, -0.0035238945856690407, 0.011609906330704689, -0.02441212721168995, -0.028393244370818138, 0.04506543278694153, 0.011316880583763123, 0.05731191486120224, -0.04854133352637291, 0.07137718051671982, 0.02647341601550579, 0.025200268253684044, 0.012044394388794899, -0.024149414151906967, 0.02788802608847618, -0.03039390780031681, -0.010170035995543003, 0.004829883109778166, 0.07812689244747162, 0.028029488399624825, -0.043610405176877975, 0.016257911920547485, -0.001628064550459385, 0.02663508616387844, -0.00262208073399961, -0.03160643205046654, -0.03623422607779503, 0.015661753714084625, 0.05609939247369766, -0.007643946446478367, -0.052542660385370255, -0.027827400714159012, -0.01862233132123947, -0.031464967876672745, 0.020673515275120735, 0.03710320219397545, -0.05702899396419525, -0.024270666763186455, 0.020451219752430916, 0.014034952968358994, -0.04134703055024147, 0.04215538129210472, 0.012903264723718166, -0.00262208073399961, -0.027221139520406723, -0.012094915844500065, 0.0159042589366436, -0.021987082436680794, -0.030919333919882774, 0.04623753949999809, -0.028777210041880608, -0.01370150875300169, -0.012327316217124462, 0.03007056750357151, 0.07360014319419861, -0.008017807267606258, -0.01890525221824646, -0.024816302582621574, 0.009796174243092537, 0.004867774434387684, 0.01473215315490961, -0.013762135058641434, -0.08018817752599716, 0.03302104026079178, -0.0632936954498291, 0.00847250409424305, -0.0223306305706501, -0.05710982903838158, -0.05807984620332718, -0.005415935534983873, -0.006951797753572464, -0.0034329553600400686, -0.00882615614682436, -0.0083108339458704, 0.016409477218985558, -0.023563360795378685, 0.009311165660619736, 0.02625112049281597, -0.01900629699230194, -0.05056220665574074, 0.021865829825401306, 0.006562780123203993, -0.011761472560465336, -0.025462981313467026, -0.024230249226093292, 0.02216896042227745, -0.05775650590658188, 0.028312409296631813, 0.024270666763186455, 0.010983436368405819, 0.013549943454563618, -0.05322975665330887, 0.027908235788345337, -0.0035870468709617853, -0.010048783384263515, 0.061313241720199585, -0.0025020914617925882, -0.025018388405442238, -0.055654801428318024, -0.0016836385475471616, -0.04405499994754791, -0.012387942522764206, -0.013792447745800018, 0.01569206640124321, 0.06478913873434067, 0.025968199595808983, 0.035324834287166595, -0.009594087488949299, -0.04389332979917526, -0.008548286743462086, -0.009619348682463169, 0.0036603035405278206, 0.09627431631088257, -0.06001988425850868, -0.00218506739474833, -0.05925195291638374, 0.00628996267914772, -0.003703247057273984, -0.036961738020181656, 0.0143785011023283, 0.08552328497171402, -0.011640219949185848, -0.021704159677028656, 0.023785658180713654, 0.013125560246407986, -0.02691800892353058, 0.024432336911559105, 0.018885044381022453, -0.02930263616144657, 0.027221139520406723, -0.006633510813117027, 0.0403163880109787, -0.08431076258420944, -0.011074375361204147, 0.00012054183025611565, -0.0010167509317398071, 0.014469440095126629, -0.04029617831110954, 0.05100679770112038, 0.04506543278694153, 0.07206428050994873 ]
30,248
networkx.classes.multigraph
remove_edge
Remove an edge between u and v. Parameters ---------- u, v : nodes Remove an edge between nodes u and v. key : hashable identifier, optional (default=None) Used to distinguish multiple edges between a pair of nodes. If None, remove a single edge between u and v. If there are multiple edges, removes the last edge added in terms of insertion order. Raises ------ NetworkXError If there is not an edge between u and v, or if there is no edge with the specified key. See Also -------- remove_edges_from : remove a collection of edges Examples -------- >>> G = nx.MultiGraph() >>> 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 For multiple edges >>> G = nx.MultiGraph() # or MultiDiGraph, etc >>> G.add_edges_from([(1, 2), (1, 2), (1, 2)]) # key_list returned [0, 1, 2] When ``key=None`` (the default), edges are removed in the opposite order that they were added: >>> G.remove_edge(1, 2) >>> G.edges(keys=True) MultiEdgeView([(1, 2, 0), (1, 2, 1)]) >>> G.remove_edge(2, 1) # edges are not directed >>> G.edges(keys=True) MultiEdgeView([(1, 2, 0)]) For edges with keys >>> G = nx.MultiGraph() >>> G.add_edge(1, 2, key="first") 'first' >>> G.add_edge(1, 2, key="second") 'second' >>> G.remove_edge(1, 2, key="first") >>> G.edges(keys=True) MultiEdgeView([(1, 2, 'second')])
def remove_edge(self, u, v, key=None): """Remove an edge between u and v. Parameters ---------- u, v : nodes Remove an edge between nodes u and v. key : hashable identifier, optional (default=None) Used to distinguish multiple edges between a pair of nodes. If None, remove a single edge between u and v. If there are multiple edges, removes the last edge added in terms of insertion order. Raises ------ NetworkXError If there is not an edge between u and v, or if there is no edge with the specified key. See Also -------- remove_edges_from : remove a collection of edges Examples -------- >>> G = nx.MultiGraph() >>> 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 For multiple edges >>> G = nx.MultiGraph() # or MultiDiGraph, etc >>> G.add_edges_from([(1, 2), (1, 2), (1, 2)]) # key_list returned [0, 1, 2] When ``key=None`` (the default), edges are removed in the opposite order that they were added: >>> G.remove_edge(1, 2) >>> G.edges(keys=True) MultiEdgeView([(1, 2, 0), (1, 2, 1)]) >>> G.remove_edge(2, 1) # edges are not directed >>> G.edges(keys=True) MultiEdgeView([(1, 2, 0)]) For edges with keys >>> G = nx.MultiGraph() >>> G.add_edge(1, 2, key="first") 'first' >>> G.add_edge(1, 2, key="second") 'second' >>> G.remove_edge(1, 2, key="first") >>> G.edges(keys=True) MultiEdgeView([(1, 2, 'second')]) """ try: d = self._adj[u][v] except KeyError as err: raise NetworkXError(f"The edge {u}-{v} is not in the graph.") from err # remove the edge with specified data if key is None: d.popitem() else: try: del d[key] except KeyError as err: msg = f"The edge {u}-{v} with key {key} is not in the graph." raise NetworkXError(msg) from err if len(d) == 0: # remove the key entries if last edge del self._adj[u][v] if u != v: # check for selfloop del self._adj[v][u] nx._clear_cache(self)
(self, u, v, key=None)
[ 0.001811750466004014, 0.015734657645225525, -0.04023267701268196, 0.049271732568740845, -0.05931513383984566, -0.03371431306004524, -0.02751103602349758, 0.08215894550085068, 0.11689728498458862, -0.01854090206325054, -0.0005615564878098667, 0.014631854370236397, 0.03869662433862686, 0.011569601483643055, -0.015783891081809998, 0.047420598566532135, 0.02308012545108795, 0.021169910207390785, 0.039110176265239716, 0.00046124556683935225, -0.012692099437117577, -0.03759382292628288, 0.013981986790895462, 0.01621713489294052, -0.013519203290343285, 0.010417564772069454, 0.02989388257265091, -0.0028776307590305805, 0.04726305603981018, -0.012032385915517807, -0.015330953523516655, -0.029952960088849068, -0.03836184740066528, 0.01925969496369362, -0.010742498561739922, 0.03550637140870094, 0.002921939827501774, 0.03747566416859627, -0.07636921852827072, -0.0031410239171236753, -0.0028210135642439127, 0.005578025244176388, 0.07321834564208984, -0.01170745212584734, 0.06561687588691711, 0.04631779342889786, 0.03200102597475052, 0.05462821200489998, -0.0361759290099144, -0.01619744300842285, -0.004157671704888344, 0.012052078731358051, 0.02335582673549652, 0.020972980186343193, -0.01755625568330288, -0.009708618745207787, -0.033694617450237274, 0.014789397828280926, 0.002555158920586109, 0.05896066129207611, -0.010181250050663948, 0.0005720183253288269, -0.021465303376317024, 0.020618507638573647, -0.01674884557723999, -0.03408847749233246, -0.028889542445540428, -0.021721312776207924, -0.0461602509021759, 0.009851393289864063, -0.01027971412986517, 0.0031902561895549297, 0.0034241098910570145, 0.026861168444156647, 0.036235008388757706, 0.005607564467936754, 0.0045736851170659065, 0.06798002868890762, 0.006922068074345589, -0.013597974553704262, 0.03452172130346298, -0.023277053609490395, -0.006636520382016897, -0.03343861177563667, 0.05699136480689049, 0.033103831112384796, 0.02181977592408657, 0.022725652903318405, 0.03091791458427906, -0.023277053609490395, -0.0504533089697361, -0.023986000567674637, -0.09035120904445648, 0.019171075895428658, 0.017182089388370514, 0.0296772588044405, 0.0027274719905108213, -0.04785384237766266, 0.00047847689711488783, -0.06715292483568192, 0.023710299283266068, -0.0013329657958820462, -0.026585469022393227, 0.036510709673166275, -0.016551915556192398, -0.047144897282123566, -0.005450021009892225, -0.016079284250736237, -0.029519716277718544, -0.006503593176603317, -0.03846031054854393, 0.023986000567674637, 0.05033515393733978, 0.040409911423921585, -0.0010412641568109393, 0.02987418882548809, -0.028180595487356186, -0.04159148782491684, 0.03448233753442764, 0.006424821447581053, -0.013282887637615204, 0.020657893270254135, -0.039937280118465424, -0.01802888512611389, 0.026644546538591385, -0.04387586936354637, 0.016827616840600967, 0.007222385611385107, 0.016551915556192398, -0.024261701852083206, -0.016679920256137848, -0.003163178451359272, 0.0007723324815742671, 0.01051602978259325, 0.00876828096807003, -0.05139857158064842, -0.035447292029857635, -0.014966634102165699, 0.07373036444187164, 0.02081543765962124, -0.012967800721526146, 0.0035447292029857635, 0.05592794716358185, 0.07156414538621902, 0.0014634315157309175, -0.06380512565374374, -0.027727657929062843, -0.0728638768196106, -0.006621751002967358, 0.01195361465215683, -0.05919697508215904, 0.02857445552945137, 0.028397219255566597, -0.042221661657094955, 0.01221946906298399, 0.01260348130017519, -0.04072500020265579, 0.02075635828077793, -0.0430881530046463, 0.010939427651464939, 0.00830057356506586, 0.018078118562698364, 0.0649866983294487, -0.019761864095926285, 0.008221802301704884, -0.0296772588044405, 0.09066629409790039, -0.002126837382093072, -0.013499509543180466, 0.0701068639755249, -0.03930710628628731, -0.010624340735375881, -0.0461602509021759, -0.024891875684261322, -0.03658948093652725, 0.0036136542912572622, 0.011224975809454918, -0.012613327242434025, -0.006168813444674015, 0.0037687362637370825, 0.018334126099944115, -0.032119184732437134, 0.04521498829126358, -0.04048868268728256, 0.01676853746175766, 0.033635541796684265, -0.014651547186076641, -0.017566101625561714, 0.007114074192941189, -0.03513220325112343, -0.030780063942074776, -0.06967362016439438, -0.009393531829118729, 0.06660152226686478, 0.05175304412841797, -0.04044929891824722, -0.002855476224794984, 0.018993839621543884, -0.02286350354552269, 0.03343861177563667, 0.00830057356506586, -0.03977973759174347, 0.019722478464245796, 0.05124102905392647, -0.026703625917434692, -0.01005816925317049, 0.042182277888059616, -0.03584114834666252, 0.025600820779800415, 0.03146931529045105, 0.04761752858757973, -0.025659900158643723, 0.0743999257683754, 0.020972980186343193, 0.007005763240158558, -0.0371999628841877, -0.12052078545093536, 0.06026039272546768, -0.007010686211287975, 0.013381352648139, -0.009442764334380627, 0.008714125491678715, 0.05927574634552002, -0.01660114713013172, 0.021406225860118866, -0.016030052676796913, -0.020894208922982216, -0.018334126099944115, 0.04033114016056061, -0.027963973581790924, 0.10208819806575775, -0.0019569857977330685, 0.03146931529045105, -0.023710299283266068, -0.004814923740923405, 0.014060758985579014, -0.04619963467121124, 0.023848149925470352, 0.05766092613339424, 0.019043073058128357, -0.002919478341937065, -0.043245695531368256, -0.00429306086152792, 0.021406225860118866, 0.02205609157681465, 0.027707966044545174, 0.034147556871175766, 0.035230670124292374, -0.022193942219018936, 0.0048026153817772865, -0.017418405041098595, -0.027333799749612808, 0.02101236581802368, 0.05171366035938263, 0.06002407893538475, -0.029165243729948997, -0.060417938977479935, -0.04023267701268196, -0.04348200932145119, 0.01275117788463831, 0.015803582966327667, -0.010870502330362797, 0.003173024859279394, 0.05844864249229431, 0.05825171619653702, 0.011638526804745197, 0.007178076542913914, 0.03826338052749634, -0.023710299283266068, 0.0013243501307442784, -0.03172532469034195, -0.0514773428440094, 0.03763320669531822, -0.007291310932487249, -0.008851976133883, 0.025935601443052292, -0.06664090603590012, -0.020204955711960793, 0.02264687977731228, 0.007547318935394287, -0.020460963249206543, -0.04167025908827782, -0.024261701852083206, 0.047696299850940704, -0.04167025908827782, 0.03174501657485962, -0.0036185774952173233, -0.04730243980884552, 0.03995697572827339, 0.007192845921963453, 0.035466983914375305, -0.04241859167814255, -0.03347799554467201, 0.032316114753484726, 0.0005984807503409684, 0.06029978021979332, 0.007212539203464985, 0.008246418088674545, 0.035722993314266205, 0.030051425099372864, 0.06947668641805649, -0.001571742701344192, -0.05376172438263893, -0.0810561403632164, 0.0384800024330616, -0.02601437270641327, 0.06951607763767242, 0.004073977004736662, -0.00819226261228323, 0.04202473163604736, -0.052383217960596085, 0.001116958912461996, -0.060693640261888504, 0.012800410389900208, 0.01843259111046791, -0.01104773860424757, 0.0410400852560997, -0.007562088780105114, 0.037259042263031006, 0.014631854370236397, -0.021445611491799355, 0.009969550184905529, -0.07262755930423737, 0.010850809514522552, -0.00572079885751009, 0.025108497589826584, 0.016798077151179314, 0.011589295230805874, 0.013814597390592098, 0.044072799384593964, -0.007010686211287975, 0.009905548766255379, -0.032591816037893295, 0.023336132988333702, -0.07904745638370514, 0.01027971412986517, 0.0405280701816082, 0.02264687977731228, 0.048484016209840775, 0.011008352972567081, 0.02132745273411274, 0.05982714891433716, -0.01325334794819355, -0.010545569472014904, 0.004056745674461126, 0.003714580787345767, -0.026861168444156647, -0.020204955711960793, -0.017231322824954987, 0.022705959156155586, 0.04962620884180069, 0.09145401418209076, -0.0029884036630392075, -0.011766531504690647, 0.03272966668009758, 0.0032936441712081432, -0.040409911423921585, -0.019427085295319557, 0.0494292788207531, -0.022016705945134163, 0.004460450727492571, 0.002247456694021821, -0.012465630657970905, -0.029047084972262383, -0.03664856031537056, -0.01063418760895729, -0.049232348799705505, -0.019269540905952454, -0.018255354836583138, -0.022961966693401337, 0.008152876980602741, -0.05821232870221138, -0.019564935937523842, 0.05844864249229431, -0.013430584222078323, 0.05691259354352951, 0.020382191985845566, 0.05943329259753227, 0.022292407229542732, 0.0007951024454087019, 0.005218628793954849, 0.010171403177082539, 0.028475990518927574, 0.0275307297706604, -0.0032468733843415976, -0.004711535759270191, 0.051871202886104584, -0.005671566352248192, 0.043009378015995026, 0.03763320669531822, -0.03513220325112343, -0.005671566352248192, 0.026427924633026123, -0.021386532112956047, -0.07581781595945358, -0.043757710605859756, 0.06904344260692596, -0.0034634957555681467, -0.029027393087744713, -0.07581781595945358, 0.04600270465016365, 0.025305427610874176, -0.06380512565374374, 0.028141209855675697, 0.04702673852443695, -0.013046571984887123, -0.02654608152806759, 0.027412571012973785, 0.017201783135533333, -0.04214289039373398, 0.035742685198783875, 0.002737318631261587, -0.03507312387228012, 0.03095730021595955, 0.03708180412650108, -0.026959633454680443, 0.04423034191131592, -0.028475990518927574, 0.0316268615424633, 0.011845302768051624, -0.0090439822524786, 0.02101236581802368, -0.023946614935994148, -0.0499412938952446, -0.0070451488718390465, -0.02701871283352375, -0.009989243932068348, 0.002601929707452655, -0.022509029135107994, 0.07948070019483566, -0.01742825098335743, -0.06971300393342972, 0.0202640350908041, 0.006971300579607487, -0.03672733157873154, 0.023001352325081825, -0.011008352972567081, 0.014444771222770214, 0.04289122298359871, 0.02705809846520424, -0.09594400227069855, -0.016689766198396683, 0.005331863183528185, -0.0410400852560997, -0.019121844321489334, -0.009014442563056946, -0.04659349471330643, 0.038578469306230545, 0.017123010009527206, -0.011037892661988735, 0.0045736851170659065, -0.008832283318042755, -0.013036726042628288, -0.05510084331035614, -0.04163087531924248, -0.04419095441699028, -0.026073452085256577, 0.016049746423959732, -0.012918568216264248, -0.018501516431570053, 0.05462821200489998, 0.028456296771764755, -0.05439189821481705, -0.04415157064795494, -0.04627840593457222, 0.03507312387228012, 0.12493200600147247, -0.04167025908827782, -0.034423258155584335, -0.012829950079321861, 0.005415558349341154, -0.0713278278708458, -0.04604209214448929, -0.0200080256909132, -0.0008111029164865613, 0.031567782163619995, 0.01685715653002262, -0.018639367073774338, -0.02627038024365902, -0.07723570615053177, -0.0045022983103990555, -0.0614025853574276, 0.0016517452895641327, -0.005681413225829601, 0.05072901025414467, -0.003209949005395174, -0.022705959156155586, -0.015567268244922161, -0.011146203614771366, 0.006602057721465826, -0.015429417602717876, -0.061757057905197144, -0.032335806638002396, -0.0015889740316197276, 0.07991395145654678, -0.021504689007997513, -0.04080377146601677, -0.02703840658068657, 0.058881890028715134, -0.034738343209028244, 0.000992031767964363, 0.006208199076354504, 0.015232488512992859, -0.024064771831035614, 0.051359184086322784, 0.0242026224732399, -0.011500676162540913, 0.03891324996948242, -0.0030844067223370075, -0.028928928077220917, 0.0062229689210653305, 0.04139455780386925, 0.06301740556955338, 0.06837388873100281, 0.05502207204699516, -0.0050955479964613914, -0.046357180923223495, 0.02284380979835987, 0.03267058730125427, -0.014474309980869293, 0.056518737226724625, 0.03505343198776245, 0.0282987542450428, 0.07124905288219452, -0.04726305603981018, 0.04907480627298355, -0.05336786434054375, -0.009329530410468578, 0.025147883221507072, 0.020638201385736465, -0.0010800346499308944, 0.049783751368522644, -0.026861168444156647, 0.03710149601101875, -0.009688925929367542, -0.010919734835624695, 0.004334908444434404, 0.04348200932145119, -0.0210320595651865, 0.01248532347381115, 0.014070604927837849, 0.05092594027519226, -0.025069111958146095, 0.011756684631109238, -0.019692938774824142, 0.029440945014357567, 0.04107947275042534, 0.015202948823571205, -0.003665348282083869, -0.00767532316967845, -0.08735787868499756, 0.03609715774655342, 0.026427924633026123, -0.0021982244215905666, 0.0499412938952446, -0.00920644961297512, -0.021721312776207924, 0.01934831216931343, 0.016335293650627136, -0.017310094088315964, -0.04316692426800728, -0.023828456178307533, 0.006158966571092606, 0.005976807326078415, 0.015281721018254757, 0.033103831112384796, -0.003933664411306381, -0.0560854896903038, 0.06443529576063156, 0.012170236557722092, -0.07384852319955826, 0.010338793508708477, 0.0032714896369725466, -0.035998694598674774, -0.09452611207962036, 0.01404106616973877, 0.008920901454985142, -0.01715254969894886, -0.010565262287855148, -0.051871202886104584, -0.05580978840589523, -0.010624340735375881, 0.10445135086774826, 0.033084139227867126, -0.014119837433099747, 0.03588053584098816, 0.032591816037893295, 0.009393531829118729, -0.03456110879778862, 0.04190657660365105, 0.0225681085139513, -0.09145401418209076, 0.05191058665513992, -0.0014942018315196037, 0.006542979273945093, 0.0034388795029371977, 0.034679267555475235, -0.00754239596426487, -0.012121004052460194, -0.0013501971261575818, 0.041473329067230225, -0.085152268409729, 0.11303747445344925, 0.01220962218940258, -0.050768397748470306, 0.023848149925470352, -0.020874515175819397, -0.047184281051158905, 0.005942344665527344, -0.07329712063074112, -0.01986032910645008, 0.04470297321677208, -0.008517196401953697, -0.005804494023323059, -0.02808213233947754, 0.00838426873087883, 0.020047413185238838, 0.010112324729561806, -0.06096934154629707, -0.02678239718079567, 0.0019717556424438953, -0.07298203557729721, -0.0371999628841877, -0.01233762688934803, -0.022292407229542732, 0.03840123116970062, -0.00469922786578536, 0.04726305603981018, -0.043797098100185394, 0.07345466315746307, -0.012583788484334946, -0.07979579269886017, 0.012071771547198296, 0.06321433186531067, 0.026861168444156647, -0.06798002868890762, 0.046908579766750336, 0.00035724224289879203, -0.008113491348922253, 0.042064119130373, 0.023513369262218475, -0.003881970653310418, -0.05848802998661995, 0.012445937842130661, -0.04931112006306648, 0.019968640059232712, -0.0026314689312130213, -0.014444771222770214, 0.02859414741396904, -0.016926081851124763, 0.05214690417051315, 0.020933594554662704, 0.0029047084972262383, -0.050768397748470306, 0.010978813283145428, 0.040409911423921585, 0.022134864702820778, -0.037259042263031006, -0.029972653836011887, 0.0003670887090265751, 0.0071189976297318935, 0.025029726326465607, 0.054667599499225616, -0.002582236658781767, -0.03014989010989666, -0.00019662169506773353, 0.008098721504211426, -0.06053609400987625, 0.01495678722858429, 0.00916214007884264, 0.02134714648127556, -0.059630218893289566, -0.05297400802373886, -0.018353819847106934, -0.05510084331035614, -0.011668066494166851, 0.03928741440176964, -0.016630686819553375, -0.028988007456064224, -0.013115497305989265, 0.03322198987007141, 0.0889333114027977, 0.003330568317323923, -0.029007699340581894, -0.023966306820511818, 0.007931331172585487, -0.017526715993881226, 0.03820430114865303, -0.045845162123441696, -0.06419898569583893, 0.0023693067487329245, -0.0817650854587555, -0.002099759643897414, -0.05230444669723511, -0.02989388257265091, -0.03670763969421387, -0.020382191985845566, -0.05242260545492172, 0.014139530248939991, 0.004231520462781191, 0.015783891081809998, 0.0210320595651865, -0.024576788768172264, -0.011618833988904953, 0.0003775505756493658, -0.005282631143927574, -0.011638526804745197, -0.011638526804745197, -0.00954615231603384, 0.0033182601910084486, -0.013745672069489956, -0.042064119130373, 0.03682579845190048, -0.022528722882270813, 0.06715292483568192, 0.045057445764541626, -0.023493677377700806, -0.05175304412841797, -0.04824770241975784, 0.017871342599391937, -0.01881660334765911, 0.0013145037228241563, 0.02808213233947754, 0.021662233397364616, -0.006414975039660931, -0.054667599499225616, 0.014218302443623543, -0.04517560452222824, -0.021878855302929878, 0.0313708521425724, 0.0047804610803723335, 0.058054786175489426, 0.014405385591089725, 0.06026039272546768, 0.022449951618909836, -0.008079028688371181, -0.009851393289864063, 0.009600307792425156, 0.08247403055429459, 0.02577805705368519, -0.04320630803704262, -0.01581343077123165, -0.04064622521400452, -0.003817968536168337, 0.017231322824954987, -0.008674739859998226, -0.03660917282104492, 0.09602276980876923, -0.029184935614466667, -0.035466983914375305, -0.012623174116015434, -0.022666573524475098, -0.0210320595651865, 0.008851976133883, -0.010496336966753006, -0.02465556003153324, -0.02388753555715084, -0.005238322075456381, 0.0006110965041443706, -0.0614025853574276, -0.008029796183109283, 0.012160389684140682, -0.02938186563551426, -0.01051602978259325, -0.022686265408992767, 0.048168931156396866, 0.045845162123441696, 0.05041392520070076 ]
30,256
networkx.classes.multigraph
to_undirected
Returns an undirected copy of the graph. Returns ------- G : Graph/MultiGraph A deepcopy of the graph. See Also -------- 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.MultiGraph(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 MultiGraph to use dict-like objects in the data structure, those changes do not transfer to the MultiGraph created by this method. Examples -------- >>> G = nx.MultiGraph([(0, 1), (0, 1), (1, 2)]) >>> H = G.to_directed() >>> list(H.edges) [(0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 2, 0), (2, 1, 0)] >>> G2 = H.to_undirected() >>> list(G2.edges) [(0, 1, 0), (0, 1, 1), (1, 2, 0)]
def to_undirected(self, as_view=False): """Returns an undirected copy of the graph. Returns ------- G : Graph/MultiGraph A deepcopy of the graph. See Also -------- 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.MultiGraph(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 MultiGraph to use dict-like objects in the data structure, those changes do not transfer to the MultiGraph created by this method. Examples -------- >>> G = nx.MultiGraph([(0, 1), (0, 1), (1, 2)]) >>> H = G.to_directed() >>> list(H.edges) [(0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 2, 0), (2, 1, 0)] >>> G2 = H.to_undirected() >>> list(G2.edges) [(0, 1, 0), (0, 1, 1), (1, 2, 0)] """ 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, key, deepcopy(datadict)) for u, nbrs in self._adj.items() for v, keydict in nbrs.items() for key, datadict in keydict.items() ) return G
(self, as_view=False)
[ -0.04454310983419418, 0.017780277878046036, 0.003051942214369774, 0.02532118558883667, -0.037445783615112305, 0.022567275911569595, -0.04125320166349411, -0.015164988115429878, 0.07592659443616867, -0.003068114398047328, -0.02689220942556858, -0.006159332115203142, -0.026263799518346786, 0.05278635397553444, -0.0032852853182703257, 0.05252759903669357, -0.03526483476161957, 0.011727220378816128, 0.07008608430624008, 0.04920072853565216, 0.014250097796320915, -0.05718521773815155, 0.004634516313672066, 0.005503199528902769, -0.036928270012140274, -0.05929223820567131, -0.039035286754369736, -0.009001034311950207, -0.022955410182476044, 0.007910559885203838, -0.02033087983727455, -0.04421042278409004, 0.01700400747358799, 0.013427621684968472, 0.04694584757089615, 0.015858085826039314, -0.02125501073896885, 0.05995761230587959, -0.06236035004258156, -0.05341476574540138, -0.0023241890594363213, -0.049126796424388885, -0.0037196266930550337, 0.0036480065900832415, 0.08339357376098633, 0.024045884609222412, 0.037649091333150864, 0.030736593529582024, -0.04849838837981224, -0.05751790478825569, 0.02761303074657917, 0.019961226731538773, -0.03520938754081726, 0.043101463466882706, -0.037778470665216446, 0.01168101467192173, 0.019369782879948616, 0.027668477967381477, -0.013113416731357574, 0.03907225281000137, -0.05751790478825569, -0.026337729766964912, 0.026614969596266747, -0.0513816773891449, -0.002152069704607129, -0.006519743241369724, -0.06768334656953812, -0.02641166001558304, -0.006297952029854059, 0.015349813736975193, -0.07932739704847336, -0.0010009492980316281, 0.016024429351091385, 0.02443402074277401, 0.07411529868841171, 0.020755980163812637, 0.0527493916451931, 0.039183150976896286, -0.014924713410437107, 0.005863610189408064, -0.022622723132371902, -0.04129016771912575, -0.03543117642402649, 0.03896135836839676, 0.039220113307237625, 0.009675649926066399, 0.01593201607465744, 0.0045259310863912106, 0.011570118367671967, -0.09086054563522339, 0.0041770716197788715, 0.00984199345111847, -0.02142135426402092, 0.026245316490530968, 0.022345485165715218, -0.006935602053999901, -0.04750032722949982, -0.014102237299084663, -0.01752152107656002, -0.026078972965478897, -0.04047693312168121, -0.004962582606822252, -0.09241309016942978, -0.019868813455104828, -0.017512280493974686, -0.07999277114868164, 0.0013018694007769227, -0.017567727714776993, -0.032843612134456635, -0.019702469930052757, -0.036854337900877, 0.023417476564645767, 0.05097505822777748, 0.0524536669254303, 0.021513767540454865, -0.020996253937482834, 0.022345485165715218, -0.032677266746759415, 0.006307193078100681, 0.010738400742411613, -0.036946751177310944, 0.05082719773054123, 0.0004964315448887646, 0.008733036927878857, -0.023509889841079712, 0.0034146634861826897, 0.022807549685239792, -0.021495284512639046, 0.018371721729636192, -0.011283637955784798, -0.02831537090241909, -0.019425230100750923, -0.04376683756709099, 0.03877653181552887, 0.00786435417830944, -0.011551636271178722, -0.05737004429101944, -0.008511245250701904, 0.038185086101293564, 0.07004912197589874, -0.054967302829027176, -0.05212097987532616, 0.058848652988672256, 0.12154169380664825, 0.0054708546958863735, -0.008843932300806046, 0.0006058833096176386, 0.042768776416778564, -0.03644772246479988, -0.026319246739149094, -0.0022236898075789213, 0.028075095266103745, 0.042066436260938644, 0.008737657219171524, -0.029886392876505852, 0.01371410209685564, -0.07851415872573853, 0.009158137254416943, -0.04945948347449303, 0.01274376455694437, -0.05696342885494232, -0.027502134442329407, 0.0379263311624527, 0.014139202423393726, -0.0011106898309662938, -0.06812693178653717, 0.12316816300153732, -0.05115988478064537, -0.008478900417685509, 0.05829417705535889, -0.028259921818971634, -0.025191808119416237, -0.00830793660134077, -0.006066919304430485, -0.03376774117350578, 0.032640304416418076, 0.02338051050901413, 0.014028307050466537, -0.00575733557343483, 0.012337147258222103, 0.022197622805833817, -0.03984852507710457, -0.018769098445773125, 0.00477775651961565, 0.0034539392217993736, -0.005424648057669401, -0.021365905180573463, -0.024175263941287994, 0.02885136567056179, 0.01894468255341053, 0.04764818772673607, 0.015460709109902382, 0.04339718446135521, 0.022715136408805847, 0.06801602989435196, -0.048794109374284744, -0.04180768132209778, 0.016772976145148277, -0.010470402427017689, 0.10202404856681824, 0.020755980163812637, -0.05700039118528366, 0.06927285343408585, 0.01601518876850605, -0.032141271978616714, 0.02796420082449913, -0.042214296758174896, -0.018112964928150177, 0.023805610835552216, 0.01194901205599308, 0.015026368200778961, -0.004121623933315277, 0.05729611590504646, 0.021698592230677605, -0.06003154069185257, -0.036928270012140274, -0.07777485251426697, 0.015959739685058594, 0.0072405654937028885, -0.009342962875962257, -0.03332415968179703, -0.005563267972320318, -0.05326690524816513, -0.002476670779287815, -0.010923227295279503, -0.036022622138261795, -0.012411077506840229, -0.03947887197136879, 0.023620784282684326, -0.03432222083210945, 0.07178648561239243, -0.041659820824861526, -0.0021774834021925926, 0.004445069469511509, 0.0314943790435791, -0.022548792883753777, -0.04624350741505623, -0.012374112382531166, 0.054264966398477554, 0.05907044559717178, -0.06213856115937233, -0.05189919099211693, 0.0034747321624308825, 0.04624350741505623, 0.055336955934762955, 0.026799796149134636, -0.019000131636857986, 0.010396472178399563, 0.04273181036114693, 0.033564433455467224, -0.038517773151397705, -0.04055086150765419, -0.06354323774576187, 0.021384388208389282, 0.04642833396792412, -0.00006660239887423813, -0.06480005383491516, -0.03681737557053566, -0.054967302829027176, -0.009703374467790127, 0.006958705373108387, 0.01706869713962078, -0.024489467963576317, 0.023066306486725807, 0.004768515471369028, -0.03750123083591461, -0.00791518110781908, 0.0033176299184560776, -0.010719917714595795, 0.03535724803805351, 0.06088174134492874, 0.027723927050828934, 0.022604241967201233, 0.01178266853094101, -0.008649865165352821, 0.005969885271042585, -0.018168412148952484, 0.026078972965478897, -0.01807600073516369, -0.02175404131412506, -0.02210521139204502, 0.0037265578284859657, -0.031753137707710266, -0.0184271689504385, -0.039922453463077545, 0.006325675640255213, -0.0015467640478163958, -0.041844647377729416, 0.005341476295143366, -0.020256949588656425, 0.08856870234012604, 0.0019845711067318916, 0.03208582475781441, 0.003440077183768153, -0.004632206168025732, 0.02709551714360714, -0.03025604411959648, -0.000038986770960036665, 0.008076903410255909, 0.09832752496004105, 0.03873956575989723, -0.010414955206215382, 0.02779785729944706, 0.027187930420041084, 0.03999638557434082, -0.007624079938977957, 0.012152320705354214, 0.010775365866720676, -0.002682289807125926, 0.028389301151037216, -0.08405894786119461, -0.007855112664401531, -0.018048275262117386, 0.03800026327371597, -0.0591813400387764, -0.011717979796230793, 0.004567516967654228, -0.04191857576370239, 0.034599460661411285, 0.04761122167110443, -0.056556809693574905, 0.057480938732624054, -0.058331139385700226, 0.0011713359272107482, -0.015340572223067284, 0.03977459296584129, 0.044358283281326294, 0.05042058229446411, 0.01149618811905384, 0.031937964260578156, -0.02458188124001026, 0.01665283925831318, -0.02728034369647503, 0.04620654508471489, -0.0701969787478447, 0.017909657210111618, 0.0428057424724102, -0.015571605414152145, 0.030182113870978355, -0.03402649983763695, -0.004200174938887358, 0.07489156723022461, -0.022400932386517525, -0.053525660187006, 0.00937992800027132, 0.030514800921082497, -0.03380470722913742, 0.007323737256228924, -0.025358151644468307, -0.006066919304430485, -0.015155746601521969, 0.0675724521279335, -0.03271423280239105, 0.03670647740364075, -0.0175030380487442, 0.03873956575989723, 0.016643596813082695, -0.015719465911388397, 0.001618384150788188, -0.015091056935489178, 0.013788032345473766, 0.0175030380487442, 0.007245186250656843, -0.03208582475781441, 0.0847243219614029, -0.005692646373063326, -0.00858517549932003, 0.012392595410346985, -0.05097505822777748, -0.037815436720848083, -0.0392940454185009, -0.0666852816939354, -0.011588601395487785, 0.029683083295822144, -0.015294365584850311, 0.02528422139585018, -0.03397105261683464, -0.00006717998621752486, 0.017114903777837753, 0.04439524561166763, 0.013011762872338295, -0.014545819722115993, 0.018270067870616913, 0.034969113767147064, 0.07337599247694016, -0.03291754052042961, 0.08376321941614151, 0.02585718221962452, 0.02796420082449913, -0.034969113767147064, -0.009398411028087139, -0.013982100412249565, 0.02463732846081257, 0.025210291147232056, -0.021513767540454865, -0.017466073855757713, 0.03153134509921074, 0.03563448786735535, -0.004050003364682198, -0.02994184009730816, 0.019573092460632324, 0.008432694710791111, -0.010950950905680656, 0.02829688787460327, -0.015081816352903843, 0.006949464324861765, 0.01354775857180357, 0.04798087477684021, 0.0341743603348732, -0.03347202017903328, 0.04875714331865311, 0.003437766805291176, -0.03180858492851257, 0.01929585263133049, 0.09012123942375183, -0.02426767721772194, 0.06646349281072617, 0.001754693454131484, 0.029849426820874214, 0.04498669132590294, 0.046132612973451614, 0.050013963133096695, 0.024507950991392136, -0.0045628962107002735, 0.048609282821416855, -0.05526302754878998, -0.06735065579414368, 0.025210291147232056, -0.036373790353536606, 0.09921468794345856, 0.02513635903596878, -0.04158588871359825, 0.03276968002319336, -0.02070053108036518, 0.0077626993879675865, 0.027539100497961044, 0.047537293285131454, 0.034451600164175034, -0.009805028326809406, 0.0825803354382515, -0.03696523606777191, -0.02018301747739315, -0.004324932582676411, -0.07134290039539337, 0.028278404846787453, -0.0347103551030159, -0.017826484516263008, 0.00651512248441577, -0.0014116099337115884, -0.008081524632871151, 0.02038632705807686, 0.015377537347376347, 0.0357823483645916, -0.03029301017522812, -0.08731188625097275, 0.011699496768414974, -0.0230108592659235, -0.010128474794328213, -0.013806515373289585, 0.06128836050629616, 0.04905286803841591, -0.04284270852804184, -0.020460257306694984, 0.019406748935580254, -0.014370234683156013, -0.042399123311042786, 0.04210340231657028, -0.025931112468242645, -0.060475125908851624, -0.015885809436440468, 0.0495334155857563, -0.018270067870616913, 0.00540616549551487, -0.057813625782728195, -0.005655680783092976, -0.014739887788891792, -0.02034936100244522, -0.04254698380827904, -0.03984852507710457, -0.07012305408716202, -0.04018121212720871, -0.03720550984144211, 0.016440289095044136, 0.03598565608263016, -0.016606632620096207, 0.040255140513181686, 0.025043947622179985, 0.013686378486454487, 0.0010113457683473825, 0.0072405654937028885, 0.00163802201859653, -0.023121753707528114, -0.07851415872573853, -0.009962131269276142, 0.028814401477575302, 0.04228822886943817, -0.08568541705608368, -0.03474732115864754, 0.01548843365162611, -0.03472883999347687, 0.002143983729183674, -0.03807419165968895, 0.02001667395234108, 0.01820537820458412, 0.022789066657423973, 0.05644591525197029, 0.012143080122768879, 0.04409952461719513, 0.02267817221581936, -0.0013596275821328163, -0.007106566336005926, 0.01583036221563816, 0.0013145761331543326, 0.047869980335235596, 0.05208401754498482, -0.016625113785266876, -0.031438931822776794, -0.0009223981178365648, 0.028204474598169327, -0.06102960184216499, 0.027391240000724792, 0.01036874856799841, -0.031974926590919495, -0.0022352414671331644, -0.05367352068424225, 0.044690970331430435, -0.00668146600946784, 0.026670416817069054, 0.019573092460632324, -0.012438802048563957, 0.025801734998822212, 0.03757516294717789, 0.011717979796230793, 0.07145380228757858, 0.02055267058312893, -0.036188963800668716, 0.016643596813082695, 0.025746285915374756, -0.07396743446588516, -0.01574718952178955, -0.009296756237745285, 0.020829910412430763, -0.03896135836839676, 0.013501551933586597, 0.005359958857297897, 0.030681144446134567, 0.023325063288211823, -0.024489467963576317, 0.0017650899244472384, -0.0470937080681324, -0.06960553675889969, 0.02709551714360714, -0.007439253386110067, 0.025228772312402725, 0.06176890805363655, 0.017198076471686363, -0.02497001551091671, 0.02655952051281929, 0.05056844279170036, -0.0013457655441015959, -0.024544915184378624, -0.03289905935525894, 0.003846694715321064, -0.01729048788547516, -0.02108866721391678, 0.007291392423212528, -0.009412272833287716, 0.02655952051281929, -0.027354273945093155, 0.0406617596745491, -0.0054708546958863735, -0.02193886786699295, -0.015858085826039314, -0.007605596911162138, 0.0023796369787305593, 0.02230851911008358, 0.029609153047204018, 0.03190099820494652, 0.016588149592280388, -0.038887426257133484, -0.014102237299084663, 0.02691069059073925, 0.037593644112348557, 0.012789971195161343, 0.0038559359963983297, -0.008686830289661884, -0.0014000582741573453, 0.034969113767147064, 0.052342772483825684, -0.08627685904502869, 0.012771489098668098, -0.023232650011777878, 0.04587385803461075, 0.008400349877774715, -0.01353851705789566, -0.013011762872338295, -0.010932467877864838, 7.53563767830201e-7, 0.03522786870598793, -0.008520486764609814, 0.023676233366131783, 0.04047693312168121, 0.02227155491709709, 0.023990437388420105, -0.01193977054208517, -0.02478519082069397, 0.007254427298903465, -0.054080139845609665, 0.03589324280619621, -0.053525660187006, -0.005101202521473169, 0.05016182363033295, -0.021901901811361313, -0.039035286754369736, -0.011034122668206692, -0.028407782316207886, -0.08036242425441742, 0.013344449922442436, -0.0562610886991024, 0.0147953350096941, 0.009463099762797356, -0.053747452795505524, -0.04668709263205528, -0.021532248705625534, -0.04439524561166763, 0.0003658980713225901, 0.011819633655250072, 0.02476670779287815, -0.008266350254416466, 0.067276731133461, 0.032307613641023636, -0.09455706924200058, -0.0016669010510668159, 0.027206413447856903, -0.0015629363479092717, -0.07932739704847336, -0.007767320144921541, 0.023509889841079712, -0.0006076160352677107, 0.07119504362344742, -0.033564433455467224, -0.020109087228775024, -0.011311361566185951, -0.04945948347449303, -0.0551890954375267, -0.06465219706296921, 0.02192038483917713, -0.03698371723294258, -0.017928138375282288, -0.03082900680601597, -0.028185991570353508, 0.054819442331790924, 0.0721561387181282, -0.011486946605145931, -0.03859170526266098, 0.05023575574159622, 0.017715588212013245, -0.01985033042728901, 0.02319568581879139, -0.015460709109902382, -0.0037565920501947403, 0.013788032345473766, 0.03386015444993973, -0.006612156517803669, 0.0637650340795517, 0.0707884281873703, 0.0178911741822958, -0.02371319755911827, 0.01274376455694437, -0.013834238983690739, -0.05737004429101944, -0.008169316686689854, -0.024507950991392136, 0.022548792883753777, -0.04395166411995888, -0.05696342885494232, 0.05773969739675522, -0.0027169447857886553, -0.007134290412068367, -0.0428057424724102, -0.006279469467699528, 0.06897712498903275, -0.032492440193891525, -0.029350396245718002, -0.07027091085910797, -0.009860476478934288, 0.00441041449084878, -0.035523589700460434, -0.007060359697788954, -0.042251262813806534, 0.018112964928150177, -0.016976283863186836, 0.0302745271474123, 0.02020150050520897, -0.010997157543897629, -0.0021705524995923042, -0.0033499745186418295, -0.011468464508652687, -0.005322993732988834, -0.022807549685239792, 0.04147499427199364, -0.015636295080184937, 0.0015236607287079096, 0.04158588871359825, 0.03025604411959648, 0.01584884524345398, -0.01292859110981226, 0.02670738287270069, -0.010756883770227432, 0.009777304716408253, -0.0038836600724607706, 0.002839392051100731, 0.03489518165588379, 0.022086728364229202, 0.05785059183835983, -0.053747452795505524, -0.006076160352677107, 0.0036711099091917276, -0.05581750348210335, 0.0021347422152757645, -0.0038998322561383247, -0.013427621684968472, -0.03201189264655113, 0.04284270852804184, 0.0024281537625938654, 0.028093578293919563, -0.007351461332291365, -0.05581750348210335, 0.0133814150467515, -0.045393310487270355, -0.005549405701458454, 0.06391289085149765, 0.051973119378089905, 0.020719014108181, -0.017114903777837753, 0.015266641974449158, -0.003920625429600477, 0.03600413724780083, -0.015553122386336327, 0.03881349787116051, -0.026078972965478897, -0.022604241967201233, -0.0056325774639844894, 0.027742408215999603, -0.060475125908851624, -0.06934677809476852, 0.023861059918999672, 0.02123652771115303, -0.022530309855937958, -0.025432081893086433, 0.07991883903741837, -0.0032182857394218445, -0.00911193061619997, -0.04761122167110443, 0.05326690524816513, 0.007351461332291365, 0.009370687417685986, -0.04247305542230606, 0.0004583111440297216, -0.10875172168016434, -0.021994315087795258, -0.02655952051281929, -0.0077257342636585236, 0.003978383261710405, -0.023805610835552216, 0.06694404035806656, 0.04668709263205528, 0.026430143043398857 ]
30,259
networkx.exception
NetworkXAlgorithmError
Exception for unexpected termination of algorithms.
class NetworkXAlgorithmError(NetworkXException): """Exception for unexpected termination of algorithms."""
null
[ -0.01583288423717022, 0.02375813201069832, 0.02898879535496235, 0.05991487205028534, -0.013684261590242386, -0.033761557191610336, -0.1045428216457367, -0.010972064919769764, 0.09749816358089447, -0.055828969925642014, 0.06280318647623062, 0.0199540127068758, 0.02470916137099266, 0.014010077342391014, -0.03469497337937355, 0.013552173972129822, -0.021996965631842613, 0.06294407695531845, -0.0189677607268095, 0.010980871506035328, -0.06607895344495773, 0.023300228640437126, -0.03226456418633461, 0.010505355894565582, 0.039274007081985474, 0.05075680837035179, 0.02483244240283966, -0.0035421454813331366, -0.01618511788547039, -0.02860133908689022, -0.11236239969730377, -0.007903233170509338, -0.03346215933561325, 0.005895503796637058, 0.017118535935878754, 0.024321705102920532, 0.021010711789131165, 0.03541705384850502, -0.01824568212032318, 0.021327722817659378, -0.06505747884511948, -0.07263049483299255, -0.035240937024354935, -0.016088252887129784, 0.04617777839303017, -0.031190253794193268, 0.012803678400814533, 0.03333887457847595, -0.08580401539802551, -0.03559316694736481, -0.049347877502441406, -0.016114670783281326, 0.07051709294319153, 0.03909789025783539, -0.009800889529287815, 0.07925248146057129, 0.004380900878459215, 0.06882637739181519, 0.00992417149245739, -0.013314416632056236, -0.015929747372865677, 0.05466659739613533, -0.00949268601834774, 0.018175235018134117, -0.016643021255731583, 0.005367153789848089, -0.05272931605577469, -0.01587691344320774, -0.04836162179708481, 0.012116823345422745, 0.0666777491569519, 0.05128515884280205, -0.05903429165482521, -0.009545520879328251, 0.06699476391077042, 0.0026725695934146643, -0.01540139876306057, 0.03895699605345726, -0.031700991094112396, 0.015797661617398262, 0.012926959432661533, 0.024744385853409767, 0.004896041937172413, 0.007841592654585838, 0.07488478720188141, -0.012530697509646416, 0.026928231120109558, -0.013719484210014343, -0.0555119588971138, -0.001010469044558704, -0.025589745491743088, -0.011896677315235138, -0.024127976968884468, -0.000004716795046988409, 0.009589550085365772, 0.03874565660953522, 0.01315591111779213, -0.07495523244142532, 0.018474632874131203, -0.1299036145210266, 0.02655838616192341, 0.021451003849506378, -0.03656180948019028, 0.001275744754821062, -0.0007473949226550758, -0.013913213275372982, -0.011553250253200531, -0.046917468309402466, -0.0221730824559927, -0.036350470036268234, -0.05223618820309639, 0.04233843460679054, 0.004548211582005024, -0.017056895419955254, 0.022824713960289955, 0.006265348754823208, 0.006586761679500341, 0.0221730824559927, -0.023036053404211998, 0.023828579112887383, 0.035857342183589935, 0.03490631282329559, -0.0773504227399826, 0.015903331339359283, 0.010919230058789253, 0.013358445838093758, 0.026347046718001366, 0.0436064749956131, 0.010892813093960285, -0.019302381202578545, -0.014159776270389557, 0.0029983853455632925, -0.029904602095484734, 0.006925785914063454, -0.012442639097571373, -0.0048696245066821575, 0.022578150033950806, -0.007643461227416992, -0.03032728098332882, -0.0270162895321846, 0.027932096272706985, 0.033761557191610336, 0.006058411672711372, 0.057273123413324356, 0.02240203320980072, 0.01399246510118246, -0.04191575571894646, -0.0649518072605133, -0.0018789442256093025, -0.0386752113699913, 0.021010711789131165, 0.008995156735181808, -0.008480015210807323, -0.047058358788490295, -0.004253216553479433, 0.011782201938331127, 0.011579668149352074, -0.022947994992136955, -0.03520571067929268, -0.03680837154388428, -0.08087275177240372, -0.0206937026232481, 0.03310992568731308, -0.010637443512678146, -0.02544885128736496, -0.03360304981470108, -0.0034122595097869635, -0.018914924934506416, -0.05234185978770256, 0.005173425655812025, -0.014274251647293568, -0.010382074862718582, -0.0738280862569809, -0.04173963889479637, -0.021274887025356293, 0.020499974489212036, 0.013966048136353493, 0.048255953937768936, -0.028337163850665092, -0.0034276696387678385, 0.01795508898794651, -0.023529179394245148, -0.01924954727292061, -0.016237951815128326, -0.006767280865460634, 0.0067848926410079, 0.04332468658685684, 0.013314416632056236, 0.026840172708034515, -0.04589598998427391, 0.008502029813826084, -0.012099212035536766, -0.011702949181199074, 0.06498703360557556, 0.05952741578221321, -0.0706227645277977, 0.006384227424860001, 0.04173963889479637, 0.04772760346531868, 0.06319064646959305, -0.00612005265429616, 0.058118484914302826, 0.0401545874774456, -0.0443461649119854, -0.022930383682250977, -0.022613374516367912, -0.06005576625466347, -0.046213001012802124, -0.03959101438522339, 0.004277432337403297, 0.02921774797141552, 0.01039968617260456, 0.02483244240283966, 0.08312704414129257, -0.004587837960571051, 0.01540139876306057, 0.05005234479904175, 0.04226798936724663, 0.032211728394031525, -0.013120688498020172, -0.017083311453461647, -0.022067412734031677, 0.07446210831403732, -0.03666748106479645, 0.012979795224964619, -0.009730443358421326, 0.015427815727889538, 0.009800889529287815, 0.01972506195306778, -0.06801623851060867, 0.06477569043636322, -0.004411721136420965, -0.029305804520845413, 0.0036235994193702936, 0.04807983711361885, -0.027438968420028687, 0.023458734154701233, -0.030010271817445755, 0.018950147554278374, -0.0023203364107757807, -0.06403600424528122, -0.06484613567590714, -0.028530891984701157, -0.009175675921142101, 0.03381438925862312, 0.010699084959924221, 0.021820848807692528, 0.050827257335186005, -0.01540139876306057, 0.03103174827992916, -0.00754659716039896, -0.056779999285936356, -0.03094368986785412, -0.06632551550865173, 0.021944129839539528, -0.06350765377283096, -0.07241915166378021, -0.03617435321211815, 0.07460299879312515, 0.01803434267640114, 0.0391683354973793, 0.013499339111149311, -0.06702998280525208, 0.02192651852965355, 0.022859936580061913, 0.0035465483088046312, 0.006983024068176746, 0.05966830998659134, 0.06590283662080765, 0.03362066298723221, 0.08939679712057114, 0.037794627249240875, -0.032088447362184525, 0.007810771930962801, -0.024304093793034554, 0.04575509577989578, -0.03716060519218445, 0.04593121260404587, -0.00791644211858511, 0.016933612525463104, 0.02765030972659588, 0.0005839366931468248, -0.0681571289896965, 0.016220340505242348, -0.06998874247074127, 0.010584608651697636, 0.014106941409409046, -0.0431133471429348, -0.023810967803001404, 0.005472823977470398, 0.012160852551460266, 0.022789491340517998, -0.011377133429050446, -0.025396017357707024, 0.015903331339359283, -0.025853918865323067, -0.03180666267871857, -0.04367692023515701, 0.04726970195770264, 0.048643410205841064, 0.03934445232152939, 0.03018638864159584, -0.0386752113699913, -0.02921774797141552, -0.015551097691059113, 0.0003926850331481546, 0.06745266169309616, 0.01935521699488163, 0.029499534517526627, 0.020993100479245186, 0.009422238916158676, 0.008656132034957409, -0.012583532370626926, -0.008810234256088734, 0.055335842072963715, 0.04490973800420761, 0.07079888135194778, -0.042303211987018585, -0.0036037862300872803, 0.06681864708662033, -0.05505405366420746, 0.05019323527812958, -0.019760284572839737, -0.016167504712939262, -0.07868890464305878, 0.03502959385514259, 0.027051512151956558, 0.019020594656467438, -0.005446406546980143, -0.03856953978538513, 0.005089770071208477, -0.005455212201923132, -0.013261581771075726, -0.0033704317174851894, -0.0748143419623375, 0.0022091628052294254, 0.06012621521949768, -0.01700405962765217, 0.026804950088262558, -0.04332468658685684, 0.029904602095484734, 0.024550655856728554, -0.02860133908689022, 0.005785430781543255, 0.04505063220858574, -0.032828137278556824, -0.017629273235797882, -0.05780147388577461, -0.00778875732794404, 0.02287754788994789, -0.028900736942887306, 0.10235898196697235, -0.031859494745731354, 0.07312361896038055, 0.059456970542669296, 0.013481726869940758, -0.03356782719492912, -0.026699278503656387, 0.015137223526835442, 0.013305610977113247, 0.001614769222214818, -0.04469839856028557, -0.005644537508487701, 0.021838460117578506, -0.040365930646657944, -0.05695611611008644, 0.030239222571253777, 0.003425468225032091, 0.04476884379982948, -0.024075141176581383, -0.02448021061718464, -0.0917215347290039, -0.07410987466573715, -0.009844918735325336, -0.006133261136710644, 0.041563522070646286, -0.02238442189991474, 0.0016885180957615376, -0.04674135148525238, 0.019795507192611694, 0.017347486689686775, -0.0024480209685862064, -0.020905042067170143, -0.03515287861227989, -0.01314710546284914, -0.021204441785812378, 0.004728731233626604, 0.02094026654958725, 0.06896726787090302, 0.02546646259725094, -0.029605204239487648, -0.025783473625779152, 0.04593121260404587, -0.00129445712082088, -0.029517145827412605, 0.04082383215427399, 0.01157086156308651, -0.02398708276450634, -0.05065114051103592, -0.0733349621295929, -0.0738280862569809, 0.0547722689807415, 0.01729465276002884, 0.04660045728087425, 0.04772760346531868, -0.044381387531757355, 0.012460250407457352, -0.011729367077350616, 0.02532557025551796, -0.019319992512464523, -0.006454674061387777, -0.0036037862300872803, -0.061042021960020065, -0.03740717098116875, -0.024039918556809425, 0.013763513416051865, 0.021222053095698357, 0.009316569194197655, 0.05262364447116852, 0.003716060658916831, 0.01657257415354252, -0.013833960518240929, 0.06755833327770233, 0.02944669872522354, -0.013701872900128365, -0.015313340350985527, -0.004125531762838364, -0.03652658686041832, -0.03701971471309662, 0.00289051397703588, -0.03136637061834335, 0.02652316354215145, -0.016977641731500626, -0.050334129482507706, -0.011905483901500702, -0.025149453431367874, -0.05565285310149193, -0.020975489169359207, 0.010901618748903275, 0.050721585750579834, -0.008211437612771988, 0.01393963024020195, 0.027562251314520836, -0.00035966315772384405, 0.06431779265403748, -0.04223276674747467, 0.017497185617685318, -0.033057089895009995, -0.026628833264112473, 0.042549774050712585, -0.004781566094607115, -0.06967173516750336, 0.04846729338169098, -0.009659996256232262, -0.008211437612771988, -0.018007924780249596, -0.07967516034841537, 0.022472480311989784, -0.039485346525907516, 0.022349199280142784, -0.014115747064352036, 0.044487059116363525, -0.04966488480567932, 0.0009257129859179258, -0.039274007081985474, 0.01886208914220333, 0.0018635339802131057, 0.02971087396144867, 0.04258499667048454, 0.028777455911040306, -0.01840418577194214, -0.016475709155201912, -0.011060123331844807, -0.019689837470650673, 0.02252531610429287, 0.011782201938331127, 0.00796927697956562, 0.009818501770496368, 0.02021818794310093, -0.04424049332737923, 0.009739249013364315, -0.03446602076292038, 0.0389217734336853, -0.0037777014076709747, -0.00877060741186142, -0.014327086508274078, -0.0018316127825528383, -0.03485347703099251, 0.0026747712399810553, 0.0017908858135342598, -0.024392152205109596, -0.0038437452167272568, -0.0021541262976825237, 0.042690668255090714, 0.10665622353553772, -0.00833912193775177, -0.052799761295318604, 0.01272442564368248, -0.02375813201069832, -0.06371898949146271, 0.01467051450163126, -0.009818501770496368, -0.012002347968518734, -0.05854116380214691, 0.07706863433122635, 0.021098770201206207, 0.005195440258830786, 0.010884007439017296, 0.08059096336364746, -0.03057384490966797, -0.03406095504760742, 0.002525072079151869, 0.07495523244142532, 0.03094368986785412, 0.011738172732293606, 0.010364462621510029, 0.009695219807326794, -0.004477764945477247, 0.03237023577094078, 0.04987622797489166, 0.029728485271334648, 0.035610780119895935, 0.0411408431828022, 0.01803434267640114, -0.010012229904532433, 0.007586223538964987, -0.01199354138225317, -0.06343720853328705, -0.005772222299128771, 0.06960128992795944, 0.005129396449774504, 0.025501687079668045, 0.04406437650322914, 0.01741793379187584, -0.02676972560584545, 0.003432072699069977, -0.005644537508487701, 0.04603688418865204, -0.03534660488367081, -0.029305804520845413, -0.007749131415039301, 0.00654273247346282, -0.012072794139385223, -0.014547232538461685, -0.004517391324043274, 0.012460250407457352, 0.010787143371999264, 0.07854801416397095, -0.03835820034146309, -0.017136147245764732, 0.00018120749155059457, 0.03372633084654808, 0.009061199612915516, -0.020852208137512207, 0.0681571289896965, -0.011112958192825317, 0.03126069903373718, 0.037301499396562576, 0.02750941552221775, 0.013763513416051865, -0.03680837154388428, -0.03881610184907913, -0.010972064919769764, -0.06047844514250755, 0.016951223835349083, 0.013763513416051865, -0.02094026654958725, -0.06977740675210953, 0.004583435133099556, 0.028795067220926285, -0.0044381385669112206, 0.018175235018134117, 0.02275426685810089, -0.016748690977692604, -0.03576928377151489, -0.013402475044131279, -0.01667824387550354, 0.026928231120109558, -0.025043783709406853, -0.06836847215890884, 0.001931779203005135, -0.018826866522431374, -0.0039141918532550335, -0.03008071891963482, 0.03252873942255974, 0.03613913059234619, -0.04346558079123497, -0.03871043398976326, 0.007084290962666273, 0.03603345900774002, -0.050228457897901535, -0.02812582440674305, 0.005829459987580776, -0.036244798451662064, 0.01626436971127987, 0.06516315042972565, 0.018650749698281288, -0.026998678222298622, -0.0011513624340295792, 0.003511324990540743, -0.009906560182571411, 0.05854116380214691, 0.08214078843593597, 0.014881853945553303, 0.06548015773296356, -0.004497578367590904, -0.05561762675642967, 0.022120246663689613, -0.018104787915945053, -0.016132282093167305, 0.027245240285992622, -0.022190693765878677, -0.0067232521250844, -0.05565285310149193, -0.03726627677679062, -0.02483244240283966, 0.03362066298723221, 0.04772760346531868, 0.006335795391350985, 0.057308346033096313, 0.015216476283967495, 0.018932536244392395, -0.05868205800652504, -0.010522968135774136, -0.020535197108983994, 0.05991487205028534, -0.0009202093351632357, 0.019901178777217865, -0.029059242457151413, -0.013358445838093758, -0.020429527387022972, 0.010012229904532433, 0.011271463707089424, -0.07403942942619324, -0.018192846328020096, -0.014908271841704845, 0.055934637784957886, 0.04050682112574577, -0.007313242647796869, 0.008136588148772717, -0.009448656812310219, 0.05121471360325813, -0.05308154970407486, -0.017699720337986946, -0.011526832357048988, -0.029393862932920456, 0.01113937608897686, -0.021961743012070656, 0.057660579681396484, -0.011658919975161552, 0.03663225844502449, 0.0014463576953858137, -0.027192406356334686, -0.03564600273966789, 0.014159776270389557, 0.00024656325695104897, -0.041211288422346115, 0.03606868535280228, 0.012178463861346245, -0.06280318647623062, -0.005239469464868307, -0.003757888451218605, 0.00961596705019474, 0.02009490691125393, -0.022983219474554062, 0.0028927153907716274, 0.025501687079668045, -0.04748104140162468, -0.025396017357707024, -0.021609509363770485, 0.01791105978190899, -0.05480749160051346, 0.04984100162982941, 0.022789491340517998, -0.013657843694090843, -0.013428892008960247, -0.03680837154388428, -0.02911207638680935, -0.04050682112574577, 0.025836307555437088, 0.05177828669548035, 0.025378404185175896, -0.06854458898305893, -0.036209575831890106, 0.009774472564458847, 0.01278606615960598, -0.01388679537922144, 0.024515433236956596, -0.0057942369021475315, -0.025836307555437088, -0.0644586831331253, 0.04695269092917442, 0.029147300869226456, 0.04033070430159569, -0.034272294491529465, -0.031348757445812225, -0.04832639917731285, -0.015427815727889538, 0.03534660488367081, -0.027562251314520836, 0.038287751376628876, 0.01828090474009514, -0.038886550813913345, 0.010302822105586529, 0.028319552540779114, 0.012433833442628384, -0.060689788311719894, -0.015568709000945091, 0.03582211956381798, 0.015295728109776974, 0.019689837470650673, -0.045825544744729996, -0.01706570014357567, -0.009395821951329708, -0.017673302441835403, 0.03786507248878479, -0.004843207076191902, 0.009431044571101665, -0.04026025906205177, 0.035980626940727234, -0.05195440351963043, -0.015146029181778431, 0.03580451011657715, 0.02079937234520912, -0.045719873160123825, 0.0024634310975670815, 0.023652462288737297, -0.06928427517414093, 0.04860818758606911, 0.07220781594514847, 0.009228510782122612, 0.03576928377151489, -0.04068293794989586, 0.09228511154651642, -0.006864145398139954, 0.0053143189288675785, -0.0027804411947727203, 0.021028324961662292, 0.028795067220926285, 0.07573014497756958, 0.04586076736450195, -0.007440926972776651, -0.006018785294145346, -0.08693116158246994, 0.026470327749848366, -0.012380998581647873, -0.0076566701754927635, 0.07706863433122635, -0.021627120673656464, -0.008132184855639935, -0.003117264248430729, 0.0030820409301668406, -0.002091384958475828, 0.052764538675546646, 0.010919230058789253, -0.010109093971550465, 0.02956997975707054, 0.01236338634043932, -0.004953280091285706, -0.06209871917963028, 0.008585684932768345, -0.011694143526256084, 0.0009174575097858906, -0.010690278373658657, -0.027315687388181686, -0.02104593627154827, 0.029922213405370712, 0.02034146897494793 ]
30,260
networkx.exception
NetworkXError
Exception for a serious error in NetworkX
class NetworkXError(NetworkXException): """Exception for a serious error in NetworkX"""
null
[ -0.024758892133831978, 0.006367973051965237, 0.03381397947669029, 0.05775292590260506, 0.027967387810349464, -0.03217408433556557, -0.09040828049182892, 0.0022737986873835325, 0.09461497515439987, -0.055435676127672195, 0.04777093976736069, 0.001799208577722311, 0.04267299547791481, 0.018413200974464417, -0.03789589926600456, 0.010801935568451881, -0.030159860849380493, 0.04705793783068657, 0.01855580136179924, -0.002149023814126849, -0.07343890517950058, 0.00832871999591589, -0.013965869322419167, -0.008012327365577221, 0.028822988271713257, 0.04891173541545868, 0.01705850288271904, 0.001029949402436614, 0.014883855357766151, -0.0473787896335125, -0.08534599095582962, -0.033190105110406876, -0.012486396357417107, 0.009705699980258942, -0.0038858449552208185, 0.03196018189191818, 0.0024085999466478825, 0.009081825613975525, -0.04053399711847305, -0.007268134504556656, -0.0777169018983841, -0.05518613010644913, -0.04748573899269104, -0.02302986942231655, 0.043992042541503906, -0.039535798132419586, 0.01742391474545002, 0.045810189098119736, -0.1052386611700058, -0.0041487631388008595, -0.05671907588839531, 0.011532760225236416, 0.031300660222768784, 0.01128321047872305, -0.0012321515241637826, 0.055471327155828476, 0.021978195756673813, 0.09981986880302429, 0.006657628808170557, -0.007401821669191122, 0.005877786315977573, 0.0911925807595253, -0.011595147661864758, -0.0043359254486858845, -0.024206317961215973, -0.008083626627922058, -0.055435676127672195, -0.03074808418750763, -0.05015948414802551, 0.0001092476086341776, 0.04367119446396828, 0.03814544901251793, -0.06270826607942581, 0.008631745353341103, 0.09803736954927444, -0.008498057723045349, -0.026434440165758133, 0.029197312891483307, -0.02597099170088768, 0.01860927604138851, 0.014741255901753902, -0.009616575203835964, 0.0011920452816411853, 0.02368939481675625, 0.07244070619344711, -0.03235233202576637, 0.019144024699926376, -0.004333697259426117, -0.00892585702240467, 0.023956768214702606, -0.04712923988699913, 0.004115341696888208, -0.05408097803592682, 0.00013473175931721926, -0.005605955142527819, 0.04345729202032089, 0.028805162757635117, -0.069481760263443, 0.01594444178044796, -0.08898228406906128, -0.0026425528340041637, 0.046166688203811646, -0.05974932387471199, -0.0037566139362752438, -0.036541201174259186, -0.01408173143863678, -0.012254671193659306, -0.02557884156703949, 0.010489999316632748, -0.025703616440296173, -0.057289473712444305, 0.01748630218207836, 0.014919505454599857, -0.026790939271450043, 0.02039177343249321, -0.019839199259877205, 0.02450934238731861, 0.021407797932624817, -0.015748366713523865, 0.01700502820312977, 0.04816308617591858, 0.02379634417593479, -0.06192396953701973, 0.04898303747177124, 0.005222718231379986, 0.05147853493690491, 0.042066946625709534, 0.009349199943244457, 0.04352859407663345, -0.02185342088341713, -0.021586047485470772, 0.0005949086043983698, -0.0017290227115154266, 0.030961984768509865, 0.021033473312854767, 0.0024865842424333096, -0.013894569128751755, -0.008952594362199306, -0.007544421590864658, -0.03789589926600456, 0.005503461696207523, 0.039500147104263306, 0.013796532526612282, 0.028751688078045845, 0.022780319675803185, 0.028020864352583885, -0.06887570768594742, -0.07728909701108932, -0.004973168484866619, -0.01594444178044796, 0.012361621484160423, -0.0023306156508624554, -0.0037655264604836702, -0.04823438823223114, -0.04224519431591034, 0.024776717647910118, -0.0009592065471224487, -0.07015910744667053, 0.025792742148041725, -0.02269119583070278, -0.10081806778907776, -0.04195999726653099, 0.039927948266267776, -0.006341235712170601, -0.035061728209257126, -0.04274429380893707, -0.005236086901277304, -0.07026606053113937, -0.04110439494252205, 0.010151323862373829, -0.005623780190944672, -0.010338486172258854, -0.06491856276988983, -0.026541391387581825, -0.027896089479327202, 0.015543379820883274, 0.0009898432763293386, 0.06481161713600159, -0.05761032551527023, 0.013538070023059845, 0.05832332372665405, -0.015436429530382156, -0.015106667764484882, 0.0002193307736888528, -0.001314592082053423, 0.012379446066915989, 0.037289850413799286, 0.009367025457322598, 0.025525366887450218, -0.01148819737136364, 0.046523191034793854, -0.006911634933203459, 0.010258274152874947, 0.05051598325371742, 0.06388472020626068, -0.06513246893882751, 0.01966094970703125, -0.007941027171909809, 0.04923258721828461, 0.09896427392959595, 0.0000046607788135588635, 0.06990955770015717, 0.018680576235055923, -0.015231442637741566, -0.01816365122795105, -0.02629184164106846, -0.05625562742352486, -0.0466301403939724, -0.0644194632768631, -0.012014034204185009, 0.026470091193914413, 0.007441927678883076, 0.026862239465117455, 0.07457970082759857, 0.004044041503220797, 0.007718214765191078, -0.01244183350354433, 0.03149673342704773, 0.019767899066209793, -0.02044524811208248, 0.01598009094595909, -0.015293830074369907, 0.05554262921214104, -0.03220973163843155, 0.007731583900749683, -0.008266332559287548, 0.016853515058755875, -0.004304731730371714, 0.023493319749832153, -0.05479397997260094, 0.0616031214594841, 0.027325689792633057, -0.023831993341445923, 0.01631876640021801, 0.032797958701848984, -0.04748573899269104, 0.02076609805226326, 0.0031149147544056177, 0.04759268835186958, -0.0124507462605834, -0.06859051436185837, -0.043172094970941544, -0.00814155861735344, -0.008342089131474495, 0.07308240234851837, -0.011202997528016567, 0.007941027171909809, 0.05978497117757797, -0.04089049622416496, 0.03978534787893295, -0.035061728209257126, -0.04894738644361496, -0.04302949458360672, -0.038359351456165314, 0.02445586770772934, -0.05928587168455124, -0.07821600139141083, -0.012744858860969543, 0.048804786056280136, 0.0010984642431139946, -0.015855316072702408, 0.014322368428111076, -0.04128264635801315, 0.025471892207860947, 0.017602164298295975, -0.011639709584414959, 0.00002207233410445042, 0.037610702216625214, 0.053653180599212646, 0.027361338958144188, 0.10452566295862198, 0.09596967697143555, -0.022887270897626877, 0.011470372788608074, -0.021318672224879265, -0.015694892033934593, -0.03158585727214813, 0.036487728357315063, 0.029446862637996674, 0.021211722865700722, 0.004534228704869747, -0.0040841479785740376, -0.06117532029747963, 0.0393218994140625, -0.06848356127738953, -0.011773397214710712, -0.007441927678883076, -0.031015459448099136, -0.03664815053343773, -0.0030614398419857025, 0.008515882305800915, 0.01738826557993889, -0.015792928636074066, -0.028858637437224388, 0.0012254671892151237, -0.009358112700283527, -0.04235214367508888, -0.003999479115009308, 0.028341712430119514, 0.05828767269849777, 0.041353944689035416, 0.03832370042800903, -0.03158585727214813, -0.015391867607831955, 0.017628902569413185, -0.007985590025782585, 0.06220917031168938, 0.04121134802699089, 0.0008132645743899047, 0.045311089605093, -0.0032062677200883627, -0.0003651335136964917, -0.024776717647910118, 0.017878452315926552, 0.07219115644693375, 0.04595278948545456, 0.049909934401512146, -0.03750375285744667, -0.006367973051965237, 0.071157306432724, -0.04894738644361496, 0.03331487998366356, -0.012014034204185009, 0.011220823042094707, -0.08299309015274048, 0.053617529571056366, 0.030641134828329086, 0.031674984842538834, -0.01934009976685047, -0.022085146978497505, -0.009411587379872799, -0.013698494993150234, -0.012022946961224079, -0.006818053778260946, -0.043992042541503906, -0.006350148003548384, 0.05900067463517189, -0.021318672224879265, 0.04673708975315094, -0.02044524811208248, -0.0002744767989497632, 0.04930388554930687, -0.03115805983543396, 0.0116575350984931, 0.029767710715532303, -0.05746772512793541, -0.032441459596157074, -0.04834133759140968, -0.014117381535470486, 0.04327904433012009, -0.03789589926600456, 0.10702116042375565, -0.04634493961930275, 0.053653180599212646, 0.03272665664553642, 0.02973206155002117, -0.030177686363458633, -0.01710306480526924, 0.006523941643536091, 0.02711178921163082, 0.014402581378817558, -0.027610888704657555, 0.01392130646854639, -0.017218926921486855, -0.05703992769122124, -0.030231161043047905, 0.02971423603594303, 0.009777000173926353, 0.04049834609031677, -0.015338392928242683, -0.016853515058755875, -0.07019475847482681, -0.10602296143770218, 0.004888500086963177, -0.01318156998604536, 0.03443785384297371, -0.044348541647195816, -0.017628902569413185, -0.04256604611873627, 0.003415711224079132, 0.003888073144480586, -0.02554319240152836, 0.0049196938052773476, -0.03381397947669029, -0.00659969775006175, -0.007245853077620268, 0.01747738942503929, 0.021639522165060043, 0.013538070023059845, 0.049553435295820236, -0.01971442438662052, -0.033582255244255066, 0.03711160272359848, 0.01923315040767193, -0.03821675106883049, 0.002702712081372738, 0.02597099170088768, -0.018101263791322708, -0.016461366787552834, -0.06128226965665817, -0.055079177021980286, 0.04969603568315506, -0.02598881535232067, 0.04566759243607521, 0.036149054765701294, -0.005405424162745476, 0.01239727158099413, -0.00010855132131837308, 0.021069122478365898, 0.004037357401102781, -0.007134446874260902, 0.0038657919503748417, -0.038074150681495667, -0.03401005640625954, -0.004581018816679716, 0.015855316072702408, 0.015106667764484882, 0.004208922851830721, 0.04570323973894119, -0.02263772115111351, 0.003306533209979534, -0.037646349519491196, 0.06470466405153275, 0.040997445583343506, -0.02417066879570484, -0.028822988271713257, -0.01962529867887497, -0.028020864352583885, -0.016078129410743713, 0.0423164963722229, -0.03381397947669029, 0.018083438277244568, -0.008596095256507397, -0.057289473712444305, 0.01563250459730625, -0.047343138605356216, -0.042459093034267426, -0.013636107556521893, -0.010873235762119293, 0.07650480419397354, 0.009188775904476643, 0.019750073552131653, 0.05942847207188606, -0.0036496641114354134, 0.0349191278219223, -0.03415265679359436, -0.0020866363774985075, -0.008128189481794834, -0.005993648432195187, 0.018662750720977783, 0.008101452142000198, -0.06659411638975143, 0.06595241278409958, -0.008096995763480663, -0.042815595865249634, -0.03039158508181572, -0.10516736656427383, 0.010329574346542358, -0.02108694799244404, 0.027610888704657555, -0.033190105110406876, 0.026577040553092957, -0.05019513517618179, -0.019215324893593788, -0.045453689992427826, 0.015320567414164543, 0.023439845070242882, 0.006113966926932335, 0.03297620639204979, 0.012842895463109016, -0.025115393102169037, -0.0050801183097064495, -0.013912394642829895, -0.037610702216625214, 0.0162920281291008, 0.014126294292509556, -0.012914195656776428, 0.028359537944197655, 0.014696693047881126, -0.06449076533317566, 0.00511131202802062, -0.04705793783068657, 0.045061539858579636, -0.004150991328060627, -0.005476724356412888, 0.0015429746126756072, 0.017290227115154266, -0.006185267120599747, 0.01848450116813183, -0.01674656569957733, -0.022334696725010872, 0.014144118875265121, -0.0030569834634661674, -0.015552292577922344, 0.09112127870321274, 0.002600218402221799, -0.06356386840343475, 0.010436523705720901, -0.026862239465117455, -0.03160368278622627, -0.004378260113298893, -0.018716225400567055, -0.004759268835186958, -0.04538239166140556, 0.06898266077041626, 0.01557011716067791, 0.012361621484160423, 0.027254389598965645, 0.09575577825307846, -0.04901868477463722, -0.03336835652589798, 0.027218740433454514, 0.054294880479574203, 0.04645188897848129, -0.0005949086043983698, 0.01111387275159359, -0.0011976156383752823, 0.038359351456165314, 0.02484801784157753, 0.025097567588090897, 0.035810377448797226, 0.026987014338374138, 0.05372447893023491, -0.012860720977187157, -0.008645113557577133, 0.0016922587528824806, -0.0016365556512027979, -0.028020864352583885, -0.01597118005156517, 0.07479359954595566, -0.0010165807325392962, 0.030926335602998734, 0.045025892555713654, -0.0069160908460617065, 0.006278848275542259, 0.005761923734098673, -0.012744858860969543, 0.04705793783068657, -0.04958908632397652, -0.025151042267680168, -0.0022359206341207027, -0.017165452241897583, -0.002569024683907628, -0.0013079076306894422, -0.02750393934547901, -0.043172094970941544, -0.009206600487232208, 0.046523191034793854, -0.03778894990682602, -0.03629165142774582, 0.020213523879647255, 0.015400780364871025, 0.008395563811063766, -0.01023153681308031, 0.05946412310004234, 0.027200914919376373, 0.017504127696156502, 0.02675529010593891, 0.03591732680797577, 0.01244183350354433, -0.014571918174624443, -0.06602371484041214, 0.03892974928021431, -0.03263753280043602, -0.0037655264604836702, 0.012664645910263062, -0.039927948266267776, -0.053261030465364456, -0.0029589461628347635, -0.0009887291816994548, -0.010944535955786705, 0.020659148693084717, 0.017967576161026955, 0.021283023059368134, -0.04787788912653923, 0.0029299806337803602, 0.00501327496021986, 0.03598862886428833, 0.005160330794751644, -0.0460597388446331, 0.012112071737647057, -0.004603300243616104, -0.014126294292509556, -0.032459281384944916, 0.022833796218037605, 0.03711160272359848, -0.0460597388446331, -0.016051391139626503, 0.026149241253733635, 0.0034446767531335354, -0.01392130646854639, -0.06513246893882751, 0.025097567588090897, -0.03885845094919205, 0.018662750720977783, 0.036933351308107376, 0.00039354205364361405, -0.034633930772542953, 0.015062105841934681, -0.010793023742735386, -0.015088843181729317, 0.05646952614188194, 0.06994520872831345, -0.02108694799244404, 0.03292273357510567, -0.011577322147786617, -0.021283023059368134, 0.01704959012567997, -0.01626529172062874, -0.03721855208277702, 0.013047883287072182, -0.006813597399741411, -0.055792178958654404, -0.038751497864723206, -0.05422357842326164, -0.03302968293428421, 0.027557414025068283, 0.06905396282672882, -0.029375562444329262, 0.03224538266658783, 0.009901775047183037, 0.006269935518503189, -0.05646952614188194, -0.016853515058755875, -0.004155447706580162, 0.05461572855710983, 0.018448850139975548, -0.01969659887254238, -0.028822988271713257, -0.021978195756673813, -0.006367973051965237, 0.016505928710103035, -0.010267186909914017, -0.06973131000995636, -0.03461610525846481, -0.04188869521021843, 0.04270864278078079, 0.03181758522987366, -0.00949180033057928, 0.04367119446396828, 0.0026447810232639313, 0.05151418223977089, -0.07978459447622299, -0.02108694799244404, -0.014054994098842144, 0.02008874900639057, 0.00832871999591589, -0.055114828050136566, 0.054722677916288376, -0.012094247154891491, 0.01786062680184841, 0.009892862290143967, -0.02151474729180336, -0.02151474729180336, 0.014723431318998337, 0.05001688376069069, -0.08028369396924973, 0.03220973163843155, 0.009892862290143967, -0.028413012623786926, -0.002071039518341422, -0.005721817724406719, 0.029197312891483307, 0.04110439494252205, 0.018074527382850647, 0.00999981164932251, 0.021692996844649315, -0.08170969039201736, -0.020659148693084717, -0.02711178921163082, 0.02859126217663288, -0.02711178921163082, 0.03529345244169235, 0.011773397214710712, 0.005797573830932379, -0.022013846784830093, -0.01700502820312977, 0.008252964355051517, -0.03671945258975029, 0.02816346287727356, 0.045453689992427826, 0.039143647998571396, -0.03714725002646446, -0.056612126529216766, 0.004781550262123346, 0.0043582068756222725, -0.009322462603449821, 0.040248796343803406, -0.007687021046876907, -0.03335053101181984, -0.06021277233958244, 0.05012383311986923, 0.0062120044603943825, 0.07429450005292892, -0.05646952614188194, -0.0511220321059227, -0.017887365072965622, -0.007553333882242441, 0.029767710715532303, -0.01898360066115856, 0.02226339653134346, 0.01814582571387291, -0.04195999726653099, 0.035008255392313004, 0.0341704823076725, 0.008645113557577133, -0.04153219610452652, -0.002234806539490819, 0.041389595717191696, 0.004280222579836845, 0.016906989738345146, -0.042815595865249634, 0.02080174721777439, -0.022548595443367958, -0.021603871136903763, 0.03925059735774994, 0.03338618203997612, 0.012744858860969543, -0.0490543358027935, 0.03627382963895798, -0.038359351456165314, -0.010873235762119293, 0.03331487998366356, 0.04441984370350838, -0.04648754000663757, 0.0063947103917598724, 0.010926710441708565, -0.06602371484041214, 0.028359537944197655, 0.045418042689561844, 0.0490543358027935, 0.048448286950588226, -0.033154457807540894, 0.08948138356208801, 0.007005216088145971, 0.0002519170520827174, -0.03882279992103577, 0.03832370042800903, 0.016862427815794945, 0.06866180896759033, 0.04634493961930275, -0.007985590025782585, -0.03885845094919205, -0.09946337342262268, -0.016149429604411125, 0.0005550809437409043, -0.006256566848605871, 0.07871510088443756, -0.009313550777733326, 0.006755666341632605, 0.02479454316198826, 0.00417772913351655, -0.0027160807512700558, 0.01816365122795105, 0.0443841926753521, -0.038002852350473404, 0.022709021344780922, -0.0005559164565056562, -0.004035129211843014, -0.049945585429668427, 0.02076609805226326, -0.01598009094595909, -0.022833796218037605, -0.00508903106674552, -0.03165715932846069, -0.007348346523940563, 0.006510572973638773, 0.03967839851975441 ]
30,261
networkx.exception
NetworkXException
Base class for exceptions in NetworkX.
class NetworkXException(Exception): """Base class for exceptions in NetworkX."""
null
[ -0.014565885998308659, -0.028035130351781845, 0.022021284326910973, 0.05890030413866043, 0.004342349711805582, -0.04273367300629616, -0.08702386915683746, 0.014194442890584469, 0.09395748376846313, -0.045139212161302567, 0.04758012667298317, 0.01310664415359497, 0.04075264185667038, 0.03785184770822525, -0.040045130997896194, 0.009958219714462757, -0.031095115467905998, 0.07301515340805054, 0.003329724306240678, -0.023064862936735153, -0.07676496356725693, 0.014017565175890923, 0.005859076976776123, 0.0030312431044876575, 0.019191240891814232, 0.06746118515729904, 0.008720074780285358, 0.0006527896039187908, 0.015052299946546555, -0.05829891934990883, -0.09898081421852112, -0.05341709405183792, -0.014636636711657047, 0.006575431674718857, 0.0030688296537846327, 0.0224634800106287, -0.02474520355463028, 0.0326162651181221, -0.06820407509803772, -0.005328443367034197, -0.07096336781978607, -0.040469639003276825, -0.0486413910984993, -0.0295385904610157, 0.0504809208214283, -0.017130613327026367, 0.03553474694490433, 0.020411696285009384, -0.10322587937116623, -0.012195723131299019, -0.038134850561618805, 0.015892470255494118, 0.024409135803580284, 0.007486352231353521, -0.010391569696366787, 0.07273215055465698, 0.028530387207865715, 0.09749503433704376, -0.02695617452263832, 0.013522307388484478, -0.0024917658884078264, 0.0831325575709343, -0.016148941591382027, 0.010126253589987755, -0.017395930364727974, 0.0022607191931456327, -0.05914793163537979, -0.04117714986205101, -0.03365984186530113, 0.012859015725553036, 0.057449907064437866, 0.02080082893371582, -0.059926193207502365, 0.01233722548931837, 0.10669267922639847, -0.01660882495343685, -0.03912536799907684, 0.05016254261136055, -0.01975724846124649, -0.00006470549124060199, -0.00019194003834854811, -0.0027902470901608467, -0.017148301005363464, 0.006646182853728533, 0.08709461987018585, -0.025947971269488335, -0.021508339792490005, -0.009967063553631306, -0.011346709914505482, 0.017024487257003784, -0.06898234039545059, -0.010320818983018398, -0.056777771562337875, 0.006491414736956358, 0.005350552964955568, 0.027115365490317345, 0.04029276221990585, -0.060103073716163635, 0.015308772213757038, -0.06148272007703781, -0.01553871389478445, 0.04482083022594452, -0.04906589910387993, -0.015043456107378006, -0.041955411434173584, -0.020093316212296486, -0.01347808726131916, -0.009082674048841, 0.01486657839268446, -0.03457960858941078, -0.06827482581138611, -0.001363064511679113, 0.018324539065361023, -0.03330608829855919, 0.009763654321432114, -0.01667073182761669, 0.02782287634909153, 0.015582933090627193, 0.0022452424746006727, 0.017334023490548134, 0.05596413090825081, 0.033394526690244675, -0.07853373885154724, 0.07096336781978607, 0.03654295206069946, 0.02548808977007866, 0.039302244782447815, 0.01650269702076912, 0.039054617285728455, -0.013027049601078033, -0.035481683909893036, 0.006504680495709181, -0.02375468797981739, 0.014981548301875591, 0.0009849881753325462, 0.03360677883028984, -0.02340093068778515, 0.0009429797064512968, -0.02315330319106579, -0.04156627878546715, 0.01203653309494257, 0.03268701583147049, 0.038382481783628464, 0.03470342233777046, 0.006058064289391041, 0.010320818983018398, -0.05861729755997658, -0.080019511282444, -0.004408678971230984, -0.002845521317794919, 0.014725076034665108, 0.004441843368113041, -0.005328443367034197, -0.046377357095479965, -0.03831172734498978, 0.02462138794362545, -0.013973345048725605, -0.050693172961473465, 0.025965658947825432, 0.00335404509678483, -0.0701851099729538, -0.04708486795425415, 0.04340580850839615, -0.000780473230406642, -0.012611386366188526, -0.03532249480485916, -0.0113909300416708, -0.06678905338048935, -0.01650269702076912, -0.01083376444876194, -0.024603700265288353, -0.016520384699106216, -0.07227226346731186, -0.012903234921395779, -0.032032568007707596, 0.0008003719849511981, -0.018554480746388435, 0.07237838953733444, -0.04057576507329941, 0.008326522074639797, 0.0812930315732956, -0.03912536799907684, -0.01363727729767561, -0.011620870791375637, 0.010948735289275646, 0.002933960407972336, 0.048606015741825104, 0.02591259591281414, 0.030688297003507614, -0.004136729519814253, 0.042379919439554214, -0.011877343989908695, 0.012938610278069973, 0.05147143825888634, 0.06608153879642487, -0.05582262948155403, 0.007110487204045057, -0.00917111337184906, 0.04340580850839615, 0.09445273876190186, -0.0286188255995512, 0.08758988231420517, 0.030617544427514076, -0.03166112303733826, -0.005584916099905968, -0.023683935403823853, -0.02826507017016411, -0.057025399059057236, -0.05398309975862503, -0.02166752889752388, 0.014831203036010265, -0.011673933826386929, 0.020942330360412598, 0.06990209966897964, 0.024780578911304474, -0.012797107920050621, -0.0052665360271930695, 0.024108443409204483, 0.023347867652773857, 0.003984172362834215, 0.04535146430134773, -0.0054389918223023415, 0.03512793034315109, -0.023241741582751274, 0.01563599705696106, -0.005010063294321299, 0.0018273686291649938, -0.02561190351843834, 0.019863376393914223, -0.05398309975862503, 0.040398888289928436, 0.0149284852668643, -0.037887223064899445, 0.027716750279068947, 0.03969137743115425, -0.045209962874650955, 0.022870298475027084, -0.0060536423698067665, 0.038134850561618805, -0.015582933090627193, -0.038134850561618805, -0.023312492296099663, -0.01896129921078682, -0.0014835624024271965, 0.0916934460401535, -0.018943611532449722, -0.0018782210536301136, 0.06632917374372482, -0.046695735305547714, 0.049702659249305725, -0.019668810069561005, -0.0467664860188961, -0.05104693025350571, -0.046129725873470306, 0.00510734599083662, -0.048959773033857346, -0.0719892606139183, -0.016697263345122337, 0.05281570926308632, -0.0044042570516467094, -0.0012293006293475628, 0.015459118410944939, -0.029255585744976997, 0.018536793068051338, 0.0203232578933239, -0.006924765650182962, 0.012973985634744167, 0.025806469842791557, 0.04867676645517349, 0.031130490824580193, 0.09777804464101791, 0.09494799375534058, -0.014265193603932858, 0.031608060002326965, -0.030741360038518906, -0.009551400318741798, -0.02301179990172386, 0.02789362706243992, 0.016485009342432022, 0.012761732563376427, -0.006646182853728533, 0.00451038358733058, -0.055185869336128235, 0.04266292229294777, -0.05387697368860245, 0.0035419778432697058, -0.012885547243058681, -0.04216766357421875, -0.039302244782447815, 0.008715652860701084, 0.033571403473615646, 0.021455276757478714, -0.019049737602472305, -0.02936171367764473, 0.007565947249531746, -0.0017919931560754776, -0.027256866917014122, -0.003300981828942895, 0.0406111404299736, 0.026496293023228645, 0.06346374750137329, 0.017572809010744095, -0.010515384376049042, -0.018324539065361023, -0.004132307134568691, -0.028901830315589905, 0.06530328094959259, 0.040540389716625214, -0.010108565911650658, 0.02881339192390442, 0.0008711231057532132, 0.028972581028938293, -0.02591259591281414, 0.011921563185751438, 0.0781799852848053, 0.05483211576938629, 0.06512640416622162, -0.01698026806116104, 0.0024077489506453276, 0.07973650842905045, -0.05009178817272186, 0.028353510424494743, -0.00010370842210249975, 0.01871366985142231, -0.06576316058635712, 0.048040006309747696, 0.012098440900444984, 0.04697874188423157, -0.03334146365523338, -0.010117409750819206, 0.0058546545915305614, -0.02228660136461258, -0.00898981373757124, -0.006190722808241844, -0.05730840191245079, 0.0019898752216249704, 0.05553962662816048, -0.003267817199230194, 0.04609435051679611, -0.005058704875409603, 0.018731357529759407, 0.0338367223739624, -0.013486931100487709, 0.013796467334032059, -0.0093833664432168, -0.06392363458871841, -0.021083831787109375, -0.030493730679154396, -0.007035314105451107, 0.06519715487957001, -0.02456832490861416, 0.09608001261949539, -0.040788017213344574, 0.03912536799907684, 0.042379919439554214, 0.00007123476825654507, -0.04450245201587677, -0.0375334657728672, 0.004934890195727348, 0.000755047076381743, 0.02504589408636093, -0.02616022527217865, 0.009825561195611954, -0.006473727058619261, -0.0719892606139183, -0.029680093750357628, 0.04574059695005417, 0.0007152495672926307, 0.03834710642695427, -0.010444633662700653, -0.004088087938725948, -0.07209538668394089, -0.11044248938560486, -0.005580494180321693, -0.02635478973388672, 0.006288005504757166, -0.027787500992417336, -0.009056142531335354, -0.02566496655344963, 0.002887530019506812, 0.018819795921444893, -0.01883748546242714, -0.0058104353956878185, -0.020394008606672287, -0.00611112779006362, -0.0028388884384185076, 0.05833429470658302, 0.034614983946084976, 0.009224176406860352, 0.057273026555776596, -0.03521636873483658, -0.036330696195364, 0.013593058101832867, 0.009595620445907116, -0.055858004838228226, -0.025947971269488335, 0.015804030001163483, -0.00761458883062005, -0.026496293023228645, -0.047297120094299316, -0.042203038930892944, 0.04623585566878319, -0.011523587629199028, 0.04082339257001877, 0.044537827372550964, 0.004948155954480171, 0.027592934668064117, -0.008697965182363987, 0.029715469107031822, -0.018253788352012634, -0.0019014362478628755, -0.01913817599415779, -0.04149552807211876, -0.04425482451915741, 0.00780473230406642, -0.0022817235440015793, 0.02610716223716736, 0.0084591805934906, 0.03226250782608986, -0.02738068252801895, -0.009462961927056313, -0.04581134766340256, 0.06141196936368942, 0.03304076939821243, -0.03479186072945595, -0.025134334340691566, -0.029573965817689896, -0.028548074886202812, -0.017519744113087654, 0.025152022019028664, -0.035180993378162384, 0.00954255647957325, -0.003402686445042491, -0.07952425628900528, 0.02228660136461258, -0.07711871713399887, -0.05631788820028305, -0.028530387207865715, -0.0031395808327943087, 0.0609167106449604, -0.008600682951509953, -0.001337638241238892, 0.048606015741825104, -0.007225457578897476, 0.025806469842791557, -0.03601231798529625, -0.0028035128489136696, 0.010957579128444195, 0.00265537784434855, 0.0033429902978241444, 0.005226738750934601, -0.036896705627441406, 0.07121099531650543, -0.008857155218720436, -0.03059985674917698, -0.03969137743115425, -0.09551400691270828, 0.0032059098593890667, 0.01129364687949419, 0.012797107920050621, -0.019792623817920685, 0.02554115280508995, -0.0313958078622818, -0.036330696195364, -0.0375688411295414, 0.009091518819332123, 0.05653014034032822, -0.009975907392799854, 0.04750937595963478, 0.01258485484868288, -0.027982065454125404, -0.003088728291913867, -0.021260710433125496, -0.040045130997896194, 0.005080814473330975, 0.011028329841792583, 0.017572809010744095, 0.019102800637483597, 0.020199444144964218, -0.06470189243555069, 0.0026023145765066147, -0.050870053470134735, 0.025824157521128654, -0.006787685211747885, 0.000515709281899035, -0.006058064289391041, 0.024285320192575455, -0.020570887252688408, 0.01009087823331356, -0.004603244364261627, -0.022127412259578705, 0.021649841219186783, -0.006075751967728138, 0.018430665135383606, 0.07683571428060532, 0.010453477501869202, -0.06636454910039902, 0.004141151439398527, -0.04390106722712517, -0.054442983120679855, 0.02136683650314808, -0.02442682348191738, -0.015910157933831215, -0.03990362957119942, 0.07160013169050217, 0.0060226889327168465, 0.017891189083456993, 0.032775454223155975, 0.09197644889354706, -0.06261473894119263, -0.016714951023459435, 0.046129725873470306, 0.055928755551576614, 0.03183800354599953, -0.0187667328864336, 0.0020108793396502733, -0.012850170955061913, 0.04648348316550255, 0.029573965817689896, 0.03470342233777046, 0.052108198404312134, 0.030617544427514076, 0.05129455775022507, -0.003999649081379175, -0.024851329624652863, 0.012363757006824017, 0.0026620107237249613, -0.032474763691425323, -0.006774419452995062, 0.08447682857513428, -0.023064862936735153, 0.036401450634002686, 0.024055378511548042, -0.01901436224579811, 0.02025250717997551, 0.021897470578551292, -0.008667011745274067, 0.04934890195727348, -0.04708486795425415, -0.014265193603932858, 0.008176175877451897, 0.007760513108223677, -0.00799929816275835, -0.0014935118379071355, -0.03059985674917698, -0.0424860455095768, -0.02111920714378357, 0.02005794085562229, -0.034314289689064026, -0.020358633249998093, 0.03933762013912201, 0.004174315836280584, -0.0011154355015605688, -0.009365678764879704, 0.05214357376098633, 0.005646823439747095, 0.009949375875294209, 0.03986825421452522, 0.03703821077942848, 0.028512699529528618, -0.017829280346632004, -0.05122380703687668, 0.02739837020635605, -0.03220944479107857, -0.014141378924250603, 0.015025768429040909, -0.019863376393914223, -0.039620622992515564, 0.007977188564836979, -0.001806364394724369, -0.009126894176006317, 0.034314289689064026, 0.03650757670402527, 0.020394008606672287, -0.038983866572380066, 0.03291695564985275, -0.0056821987964212894, 0.018448352813720703, 0.0007799204904586077, -0.06180109828710556, 0.0012425665045157075, -0.012178035452961922, -0.029007958248257637, -0.041707783937454224, 0.006402975879609585, 0.04849988967180252, -0.045634470880031586, -0.01883748546242714, 0.022746482864022255, 0.014530510641634464, -0.0149284852668643, -0.06594003736972809, 0.0541599802672863, -0.037816472351551056, 0.014079472050070763, 0.02812356874346733, 0.001973292790353298, -0.044467076659202576, 0.010488852858543396, -0.016396570950746536, -0.011178676038980484, 0.04913664981722832, 0.05546887591481209, -0.03052910603582859, 0.047367870807647705, 0.009268396534025669, -0.020199444144964218, 0.017617028206586838, -0.023100240156054497, -0.02407306618988514, 0.01958037167787552, -0.010745326057076454, -0.043794941157102585, -0.0326162651181221, -0.06385288387537003, -0.03035222925245762, 0.0009717223583720624, 0.06877008080482483, -0.04142477735877037, 0.02308255061507225, 0.016591137275099754, 0.001106038922443986, -0.07287365198135376, -0.005766215734183788, -0.012107284739613533, 0.049773409962654114, 0.024975143373012543, -0.01915586367249489, -0.024656763300299644, -0.014274037443101406, 0.0032877158373594284, 0.007053001783788204, -0.008808514103293419, -0.08546734601259232, -0.05041017010807991, -0.017590496689081192, 0.0689469650387764, 0.035057179629802704, 0.019474243745207787, 0.05447835847735405, 0.023224053904414177, 0.030865173786878586, -0.05246195197105408, -0.02221585065126419, -0.019651122391223907, 0.009454118087887764, 0.00994053203612566, -0.05766215920448303, 0.052532702684402466, -0.019173553213477135, 0.013531151227653027, 0.036171507090330124, -0.032404009252786636, -0.026513980701565742, 0.008525509387254715, 0.039231494069099426, -0.07220151275396347, 0.031554996967315674, 0.014601261354982853, -0.006703668273985386, 0.0018483728636056185, 0.009816717356443405, 0.023613184690475464, 0.04683723673224449, 0.025328898802399635, 0.008357475511729717, 0.01705101877450943, -0.07379341125488281, -0.005531853064894676, -0.027309929952025414, 0.03399591147899628, -0.028919517993927002, 0.010931047610938549, 0.0019290733616799116, 0.004594400525093079, -0.028088193386793137, -0.005713152699172497, 0.014919641427695751, -0.029627028852701187, 0.024391446262598038, 0.04393644258379936, 0.02690311148762703, -0.04917202517390251, -0.03491567447781563, -0.0029450152069330215, 0.018819795921444893, -0.009303771890699863, 0.04549296572804451, -0.010798389092087746, -0.04825226217508316, -0.038170225918293, 0.02738068252801895, -0.004532493185251951, 0.08023176342248917, -0.04538683965802193, -0.03618919476866722, -0.01950962096452713, -0.03580006584525108, 0.009507181122899055, -0.010356194339692593, 0.013584214262664318, 0.0010507645783945918, -0.04390106722712517, 0.024780578911304474, 0.05055167153477669, -0.0016991322627291083, -0.02690311148762703, -0.00761458883062005, 0.0572376511991024, -0.003488914342597127, 0.007835686206817627, -0.02437375858426094, 0.03033454157412052, -0.011019486002624035, 0.004446265287697315, 0.01399987656623125, 0.05104693025350571, 0.03035222925245762, -0.04832301288843155, 0.013610745780169964, -0.03495104983448982, -0.016414258629083633, 0.03544630855321884, 0.038134850561618805, -0.027592934668064117, -0.0036370495799928904, -0.0046076662838459015, -0.06689517945051193, 0.013840687461197376, 0.04439632594585419, 0.04199078679084778, 0.04011588171124458, -0.02646091766655445, 0.0645957663655281, 0.010939891450107098, -0.01995181478559971, -0.02623097598552704, 0.036472201347351074, 0.00534170912578702, 0.07655270397663116, 0.023365555331110954, -0.0298569705337286, -0.0480046309530735, -0.08843889087438583, -0.02315330319106579, -0.0057087307795882225, 0.0007871061679907143, 0.08808513730764389, -0.006212832406163216, 0.017767373472452164, 0.012381445616483688, 0.0039333198219537735, -0.009843248873949051, 0.025028206408023834, 0.040469639003276825, -0.05734378099441528, 0.030369916930794716, -0.010188160464167595, -0.00255367299541831, -0.04782775416970253, 0.0071591283194720745, -0.02099539339542389, -0.014486290514469147, -0.016113566234707832, -0.037391964346170425, 0.009047298692166805, 0.01866060681641102, 0.046129725873470306 ]
30,262
networkx.exception
NetworkXNoCycle
Exception for algorithms that should return a cycle when running on graphs where such a cycle does not exist.
class NetworkXNoCycle(NetworkXUnfeasible): """Exception for algorithms that should return a cycle when running on graphs where such a cycle does not exist."""
null
[ 0.01947154849767685, 0.03454907611012459, 0.013337149284780025, 0.03115447796881199, -0.04576675593852997, -0.01673174649477005, -0.03635837882757187, -0.02586442045867443, 0.05982762575149536, -0.03794367238879204, 0.03959789127111435, 0.02162548154592514, 0.026898307725787163, -0.00019856564176734537, -0.02779434435069561, 0.009796084836125374, 0.009287756867706776, 0.06282590329647064, -0.023038461804389954, 0.02772541716694832, -0.02421019971370697, 0.013983328826725483, -0.009528997354209423, 0.05872481316328049, -0.007892007939517498, 0.06337730586528778, -0.0027678031474351883, 0.004514642525464296, -0.03742672875523567, -0.021642712876200676, -0.0481102354824543, 0.012148179113864899, -0.0483514741063118, -0.001991310389712453, 0.005324521102011204, 0.054141245782375336, -0.016929907724261284, 0.04745543748140335, -0.11710499972105026, -0.009434224106371403, -0.0003578220203053206, -0.022349203005433083, -0.030430756509304047, -0.025313014164566994, 0.04066624492406845, -0.06241234391927719, 0.027501408010721207, 0.04555997624993324, -0.08016074448823929, -0.05717398226261139, 0.03770243376493454, -0.004064470529556274, 0.05455480143427849, 0.02367602474987507, -0.0003804383159149438, 0.10924745351076126, -0.008120325393974781, 0.10552545636892319, 0.04052839055657387, -0.0004202860582154244, -0.029948275536298752, 0.044388238340616226, 0.0308443121612072, 0.0027678031474351883, -0.017748402431607246, -0.004717112053185701, -0.039770208299160004, -0.035600192844867706, -0.018989067524671555, 0.0059448531828820705, 0.021487629041075706, 0.027070622891187668, -0.032515764236450195, 0.041734594851732254, 0.041803520172834396, -0.05872481316328049, 0.0036186063662171364, 0.027777113020420074, 0.006267943419516087, 0.0006494105909951031, 0.00903790071606636, -0.027897732332348824, -0.014310726895928383, -0.035255566239356995, 0.006591033190488815, -0.04411253705620766, 0.010321644134819508, -0.036220528185367584, -0.008176327683031559, 0.0038900019135326147, -0.045353200286626816, -0.023469246923923492, -0.04149335250258446, 0.006267943419516087, 0.020539898425340652, 0.09353236109018326, 0.03708209842443466, -0.0546581894159317, -0.001248203800059855, -0.10118313133716583, 0.023538174107670784, 0.011441688984632492, -0.07774834334850311, 0.03336010500788689, -0.03615160286426544, -0.06641004234552383, -0.02887992560863495, -0.038805246353149414, -0.007211365737020969, -0.05197007954120636, -0.07047666609287262, 0.08402059227228165, 0.007064898032695055, -0.026226280257105827, -0.01431934256106615, 0.020953454077243805, -0.01785179227590561, 0.004090317524969578, -0.026898307725787163, 0.01168292947113514, 0.018937373533844948, 0.04090748354792595, -0.09077532589435577, 0.017498547211289406, 0.049247510731220245, 0.0005702535854652524, 0.02551979012787342, 0.024158505722880363, 0.055967777967453, -0.016524968668818474, 0.033170558512210846, -0.027070622891187668, -0.01997126080095768, 0.030637534335255623, -0.013216529041528702, 0.0016456043813377619, 0.013509463518857956, -0.009287756867706776, -0.013035599142313004, -0.037840284407138824, -0.0001741992891766131, -0.007973858155310154, 0.0186961330473423, 0.051556527614593506, 0.06055134907364845, 0.028087278828024864, -0.04583568125963211, -0.02355540543794632, 0.01472428161650896, 0.01505167968571186, 0.037840284407138824, 0.010468111373484135, -0.02321077510714531, -0.01847212389111519, -0.006349792703986168, 0.028345750644803047, -0.017153916880488396, -0.021453166380524635, -0.029121166095137596, -0.02726016752421856, -0.05589885264635086, -0.03168865293264389, 0.0308443121612072, 0.004842040129005909, -0.0018868447514250875, -0.03535895422101021, -0.006513491738587618, -0.05238363519310951, -0.020488204434514046, 0.06082705035805702, -0.02028142660856247, 0.007331985980272293, -0.05193561688065529, -0.03711656481027603, 0.01962663233280182, 0.016378501430153847, 0.017567472532391548, 0.021487629041075706, 0.0019169998122379184, 0.0018609976395964622, 0.03422167897224426, -0.020694982260465622, -0.03439399227499962, -0.04297525808215141, 0.0444227010011673, 0.022263044491410255, 0.003233052557334304, -0.004195860121399164, 0.022969534620642662, -0.003991236910223961, 0.026415826752781868, -0.006711653433740139, 0.02277998812496662, 0.04376790672540665, 0.05817340686917305, -0.06520383805036545, 0.0073578329756855965, 0.040769632905721664, 0.02667429856956005, 0.05338305979967117, 0.03242960572242737, 0.05038478597998619, 0.049523212015628815, 0.007082129828631878, -0.03680639714002609, 0.03646176680922508, -0.045077499002218246, -0.03659961745142937, -0.010631809942424297, 0.003719841130077839, -0.02255598083138466, -0.010838587768375874, 0.03604821115732193, 0.009184367954730988, -0.004350943490862846, 0.014560583047568798, -0.001843766076490283, -0.0016089874552562833, 0.0062722512520849705, 0.00023437476193066686, -0.01095059234648943, -0.04149335250258446, 0.02975872904062271, -0.028311287984251976, 0.02171163819730282, -0.0321539044380188, 0.010916129685938358, 0.00510912761092186, -0.0101234819740057, -0.041114263236522675, 0.041803520172834396, -0.005884543526917696, -0.002073159907013178, -0.01766224578022957, 0.06606541574001312, 0.011407226324081421, -0.03299824520945549, 0.0004760190495289862, 0.02825959213078022, 0.00001975559825950768, -0.06485921144485474, -0.019902335479855537, -0.006603956688195467, -0.008874201215803623, 0.08808721601963043, 0.012604812160134315, 0.03794367238879204, 0.047558825463056564, -0.0350143238902092, 0.02012634463608265, -0.034566305577754974, -0.06582417339086533, -0.06503152847290039, -0.03141295164823532, 0.00939114484935999, -0.08402059227228165, -0.05762200057506561, -0.04183798283338547, 0.05941407009959221, 0.031705886125564575, -0.02336585894227028, 0.01847212389111519, -0.08022967725992203, 0.06117168068885803, 0.0019191537285223603, 0.012846052646636963, -0.04493964463472366, 0.021143000572919846, -0.01831704191863537, 0.03337733820080757, 0.0454910509288311, -0.001978386892005801, 0.014026408083736897, 0.029241785407066345, -0.012217104434967041, 0.01819642074406147, -0.003200743580237031, 0.004406945779919624, 0.0202469639480114, 0.020419279113411903, -0.02181502804160118, -0.004583568312227726, -0.0496610663831234, -0.005664842203259468, -0.06754732131958008, -0.015482465736567974, 0.007637844420969486, -0.041734594851732254, 0.005664842203259468, 0.014750128611922264, 0.04638708755373955, 0.02564041130244732, 0.04225153848528862, 0.022383665665984154, 0.02398619055747986, 0.008762196637690067, 0.02551979012787342, -0.051487598568201065, 0.03246406838297844, 0.050557103008031845, 0.043354351073503494, -0.001416210550814867, -0.07223428040742874, -0.027156779542565346, -0.0024188661482185125, -0.03801259770989418, 0.0415622778236866, 0.05393446609377861, 0.017179764807224274, 0.02408958040177822, -0.010769661515951157, -0.01636127009987831, -0.013707625679671764, 0.0113124530762434, 0.016438812017440796, 0.03168865293264389, 0.043113112449645996, -0.018868448212742805, 0.028862694278359413, 0.08257315307855606, -0.05200454220175743, 0.07361279428005219, -0.060620274394750595, -0.0062722512520849705, -0.09242954850196838, 0.03825384005904198, 0.07726586610078812, 0.010261333547532558, -0.001130814547650516, 0.022728294134140015, 0.022176887840032578, -0.010614578612148762, -0.007306138519197702, 0.0002533562947064638, -0.09815039485692978, 0.010459495708346367, 0.05107404664158821, -0.018282577395439148, 0.06616879999637604, -0.029276249930262566, 0.067650705575943, 0.05589885264635086, -0.03037906251847744, -0.00925329327583313, 0.05417570844292641, -0.028018353506922722, -0.00838310457766056, 0.013543927110731602, 0.02894885092973709, 0.006586725357919931, -0.020798372104763985, 0.10917852818965912, -0.039218802005052567, 0.05534744635224342, 0.020091881975531578, 0.04683510586619377, 0.011441688984632492, -0.018454892560839653, -0.002942271763458848, -0.01719699613749981, -0.002692415378987789, -0.008477877825498581, -0.030430756509304047, 0.013931634835898876, -0.014474425464868546, -0.02112576924264431, 0.002804419957101345, 0.010795509442687035, 0.0669269859790802, -0.028535297140479088, -0.07340601831674576, -0.021177463233470917, -0.055381909012794495, -0.016585279256105423, -0.02317631244659424, 0.025295782834291458, -0.0005435986677184701, 0.015577238984405994, 0.025537023320794106, 0.0334634929895401, 0.004790345672518015, -0.03218836709856987, -0.05066049098968506, -0.013690394349396229, -0.0033364412374794483, 0.0031339717097580433, 0.03904648497700691, 0.03296378254890442, 0.0760941207408905, 0.006453181616961956, 0.021349778398871422, -0.052831653505563736, 0.02860422246158123, -0.024658218026161194, -0.04669725522398949, -0.0036746086552739143, 0.07375064492225647, 0.029276249930262566, -0.007823082618415356, -0.052797190845012665, -0.013681778684258461, 0.049557674676179886, 0.007874776609241962, 0.040114838629961014, 0.01654219999909401, 0.02035035379230976, 0.04056285321712494, -0.006707345601171255, 0.0207811389118433, 0.0012589734978973866, 0.0027871886268258095, -0.00435525132343173, -0.0481102354824543, -0.009744389913976192, -0.012501423247158527, -0.026191817596554756, -0.0018329964950680733, -0.05427909642457962, 0.03728887811303139, 0.003922310657799244, 0.06099936366081238, -0.03673747181892395, 0.04256170243024826, -0.0000998886171146296, 0.005143590737134218, -0.03323948383331299, 0.0080686304718256, -0.022107962518930435, -0.005182361230254173, 0.045663367956876755, -0.0509706549346447, -0.029172860085964203, 0.0070993611589074135, -0.08746688812971115, -0.010554268956184387, -0.04521534964442253, -0.041803520172834396, -0.021883953362703323, 0.03666854649782181, 0.05496835336089134, -0.010761045850813389, 0.015301535837352276, 0.04073517024517059, -0.02193564735352993, 0.03406659513711929, -0.03597928583621979, 0.021487629041075706, -0.007422450929880142, -0.005264210980385542, 0.0012578965397551656, -0.0050229704938828945, -0.017119454219937325, 0.01713668555021286, 0.0029961199034005404, -0.06379086524248123, -0.015465234406292439, -0.048558250069618225, -0.008189250715076923, -0.018799521028995514, 0.013216529041528702, 0.001162046566605568, 0.015784015879034996, -0.047627754509449005, 0.0029035008046776056, -0.006995972245931625, -0.0023714795242995024, -0.002461944706737995, 0.008576958440244198, 0.018627207726240158, -0.031981587409973145, -0.026346901431679726, -0.009373913519084454, 0.00419155228883028, -0.07402634620666504, 0.001064581098034978, -0.0005998701672069728, -0.01966109499335289, 0.02112576924264431, 0.06468689441680908, -0.05548529699444771, 0.015560007654130459, -0.0041161649860441685, 0.04976445436477661, -0.01931646652519703, -0.030447987839579582, -0.049833379685878754, -0.0415622778236866, -0.028001120314002037, -0.014663971960544586, 0.010562884621322155, -0.059896551072597504, -0.06516937911510468, -0.020178038626909256, 0.004661109764128923, 0.057036131620407104, 0.008098785765469074, -0.05238363519310951, -0.00013839015446137637, 0.034600768238306046, -0.038460616022348404, 0.01127799041569233, 0.011191832832992077, -0.004213091917335987, -0.038219377398490906, 0.051177434623241425, 0.011812165379524231, 0.0021345471031963825, 0.009882241487503052, 0.05176330357789993, -0.010226870886981487, 0.006306713912636042, 0.0014377498300746083, 0.06117168068885803, 0.04673171788454056, 0.05937960743904114, -0.001247126841917634, -0.024261893704533577, -0.022952303290367126, 0.07333709299564362, 0.00012735124619212002, 0.03427337110042572, 0.041079796850681305, 0.05710505694150925, 0.05545083433389664, -0.009942552074790001, -0.014474425464868546, -0.012337724678218365, -0.08622622489929199, -0.005423601716756821, 0.029483025893568993, 0.049281973391771317, -0.0008971128263510764, 0.04414699971675873, 0.06665128469467163, -0.02271106280386448, 0.000764645985327661, 0.01648189127445221, 0.02140147238969803, -0.06575524806976318, -0.009356682188808918, 0.0003292824258096516, -0.006974433083087206, 0.050591565668582916, 0.00136128521990031, 0.007568918634206057, -0.01505167968571186, 0.024434208869934082, 0.051522061228752136, -0.017093608155846596, 0.00984777882695198, -0.0404939278960228, 0.03987359628081322, -0.029551953077316284, -0.03835722804069519, 0.08974143862724304, -0.02159101888537407, -0.015301535837352276, 0.07809296995401382, 0.0575186088681221, 0.025416402146220207, -0.04611138626933098, -0.06520383805036545, 0.002209934638813138, -0.08932788670063019, -0.011183217167854309, -0.007452606223523617, 0.015111989341676235, -0.062240030616521835, 0.04425038769841194, 0.044974107295274734, -0.00984777882695198, -0.029896581545472145, -0.0033364412374794483, 0.0008271100232377648, -0.02421019971370697, 0.0014862132957205176, -0.022986765950918198, -0.021229157224297523, -0.02162548154592514, -0.08119463920593262, -0.02567487396299839, -0.03194712474942207, -0.014982753433287144, -0.037219952791929245, 0.031740348786115646, 0.01823088340461254, -0.0376335084438324, -0.0376335084438324, 0.006806426215916872, 0.014086717739701271, 0.004510334227234125, -0.052831653505563736, 0.031206171959638596, -0.0402526892721653, 0.0014840593794360757, 0.05231470987200737, -0.006819350179284811, -0.00902066845446825, 0.02586442045867443, 0.00588885135948658, -0.014474425464868546, 0.06892583519220352, 0.049902305006980896, 0.023503709584474564, 0.02729463204741478, 0.03611714020371437, -0.0415622778236866, -0.04297525808215141, 0.005048817489296198, -0.04487071931362152, -0.009270524606108665, 0.03790920972824097, -0.008456338196992874, -0.013207913376390934, -0.049281973391771317, -0.0350143238902092, -0.01857551373541355, 0.018920142203569412, -0.04583568125963211, 0.048902880400419235, -0.01138999406248331, 0.01645604334771633, -0.06117168068885803, -0.01912692002952099, -0.04290633276104927, 0.07568056881427765, 0.024227431043982506, 0.008314179256558418, -0.014767360873520374, 0.030430756509304047, -0.009236061945557594, 0.02224581316113472, -0.04997123032808304, -0.0008583420421928167, -0.039460040628910065, -0.04907519742846489, 0.042734019458293915, 0.023779412731528282, 0.011967248283326626, 0.07195857167243958, -0.09022392332553864, 0.03192989528179169, -0.04545658826828003, 0.005617455579340458, -0.07051113247871399, -0.028483601287007332, -0.0008917280356399715, -0.04349220171570778, 0.025812726467847824, -0.0010188099695369601, 0.003368750214576721, -0.010330259799957275, -0.006871044170111418, -0.03373919799923897, 0.000707566796336323, 0.04366451874375343, -0.013423306867480278, -0.0011663543991744518, 0.037219952791929245, -0.03704763576388359, 0.024451440200209618, 0.005828541237860918, 0.020953454077243805, 0.0067331925965845585, 0.019144151359796524, 0.03808152303099632, 0.04583568125963211, -0.08188389241695404, -0.04776560515165329, -0.017869023606181145, -0.03160249441862106, -0.032481301575899124, 0.009615154005587101, -0.017972411587834358, -0.02131531573832035, -0.010933361016213894, -0.037185490131378174, 0.009287756867706776, -0.0175071619451046, 0.008292639628052711, 0.052797190845012665, -0.004258324392139912, -0.06492813676595688, -0.04528427496552467, -0.01866167038679123, -0.007676614914089441, -0.02517516165971756, -0.024468671530485153, 0.027846038341522217, -0.0658586397767067, -0.034910935908555984, 0.058931589126586914, 0.012234335765242577, 0.05658811330795288, 0.002039774088189006, -0.04135550186038017, -0.06444565951824188, 0.0281045101583004, 0.05458926409482956, -0.021539323031902313, 0.041114263236522675, 0.00989085715264082, 0.003164126770570874, 0.05972423776984215, 0.008874201215803623, 0.0030262749642133713, -0.034600768238306046, -0.003405367024242878, 0.041079796850681305, 0.000502135488204658, -0.0019676173105835915, 0.020264195278286934, 0.0032481299713253975, 0.0027118008583784103, -0.030327368527650833, -0.007331985980272293, 0.02919009141623974, 0.00984777882695198, -0.04356112703680992, 0.024072349071502686, -0.020109113305807114, -0.018265346065163612, -0.02517516165971756, 0.01900629885494709, -0.05307289585471153, 0.036909785121679306, -0.01313037145882845, -0.06933939456939697, 0.04462948068976402, 0.024503134191036224, 0.02433082088828087, 0.027070622891187668, -0.01850658655166626, 0.0791957825422287, 0.023693256080150604, -0.006147323176264763, -0.04411253705620766, 0.05066049098968506, 0.0150947580114007, 0.06672021001577377, -0.01773117110133171, -0.03368750214576721, 0.00830125529319048, -0.014508889056742191, 0.03403213247656822, -0.008925896137952805, -0.01325960736721754, 0.11931062489748001, -0.009287756867706776, -0.03037906251847744, 0.005854388233274221, -0.02489945851266384, 0.011209064163267612, 0.04259616881608963, -0.0023370166309177876, -0.03075815550982952, 0.011924169957637787, -0.010959208011627197, -0.023572636768221855, -0.06034456938505173, -0.0337047353386879, 0.007237212732434273, 0.03218836709856987, 0.022814452648162842, -0.05103958025574684, -0.01807580143213272, 0.04976445436477661, 0.053451985120773315 ]
30,263
networkx.exception
NetworkXNoPath
Exception for algorithms that should return a path when running on graphs where such a path does not exist.
class NetworkXNoPath(NetworkXUnfeasible): """Exception for algorithms that should return a path when running on graphs where such a path does not exist."""
null
[ 0.02862536534667015, 0.020404836162924767, 0.015855109319090843, 0.031934257596731186, -0.02710878849029541, -0.04180923104286194, -0.02884940430521965, -0.011606973595917225, 0.06052515655755997, -0.012959827668964863, 0.05797455087304115, 0.014416085556149483, 0.008405792526900768, -0.009521681815385818, -0.06938333809375763, 0.02647113800048828, 0.0375007800757885, 0.050908684730529785, 0.008311007171869278, 0.02498902939260006, -0.021232059225440025, -0.01170175988227129, 0.005040890537202358, 0.06869398057460785, -0.009357960894703865, 0.05459672212600708, 0.029711095616221428, -0.015295010060071945, 0.007871544919908047, -0.0576988086104393, -0.05135676637291908, -0.0020605179015547037, -0.019112300127744675, 0.0061567798256874084, 0.004222284536808729, 0.0459798164665699, 0.02007739245891571, 0.04260198771953583, -0.0708654448390007, -0.06086983159184456, -0.0370526984333992, -0.013580244965851307, -0.03517421334981918, -0.025988591834902763, 0.041188813745975494, -0.045773010700941086, -0.005519128870218992, 0.025885188952088356, -0.08513504266738892, -0.008121434599161148, 0.010383373126387596, 0.008233455009758472, 0.033864445984363556, 0.021749073639512062, -0.02703985385596752, 0.058663900941610336, 0.003485538763925433, 0.0811367928981781, 0.032761480659246445, -0.03226169943809509, -0.018198907375335693, 0.04404962807893753, 0.023127777501940727, -0.004730681888759136, -0.000040963968785945326, -0.021421629935503006, -0.0459798164665699, -0.025092432275414467, -0.049357641488313675, 0.040706269443035126, 0.0016124387038871646, 0.039947979152202606, -0.048599354922771454, 0.027953246608376503, 0.07431220263242722, -0.03308892250061035, 0.0084531856700778, 0.021232059225440025, 0.030159175395965576, -0.005407108925282955, -0.004157657735049725, -0.06331703066825867, -0.027281127870082855, -0.0576988086104393, 0.011538038030266762, -0.0042632147669792175, 0.071210116147995, -0.04677256941795349, -0.011538038030266762, 0.018164439126849174, -0.05497586727142334, -0.015381178818643093, -0.03812119737267494, -0.019026130437850952, 0.03753524646162987, 0.059870269149541855, 0.05700945481657982, -0.06714294105768204, 0.0071003311313688755, -0.09657829254865646, 0.006742729805409908, 0.0038646827451884747, -0.0356050580739975, 0.03756971284747124, -0.016544461250305176, -0.041981570422649384, -0.011874097399413586, -0.032916583120822906, 0.0014067100128158927, -0.05663031339645386, -0.08541078120470047, 0.07927554100751877, 0.004769457969814539, -0.018354011699557304, -0.0011385087855160236, 0.012916743755340576, -0.03949990123510361, -0.00464020436629653, 0.00803526584059, 0.006118003744632006, 0.03407125174999237, 0.0600426085293293, -0.10877983272075653, 0.010995172895491123, 0.055561814457178116, 0.007802609354257584, 0.024179041385650635, 0.023041609674692154, 0.034278057515621185, -0.04515259340405464, 0.019405273720622063, -0.006242949049919844, -0.024937327951192856, 0.04067179933190346, -0.032795947045087814, 0.04956444725394249, -0.006354968994855881, -0.008229145780205727, 0.017285514622926712, 0.00899605080485344, 0.012528982944786549, -0.056320104748010635, 0.008345474489033222, 0.012072286568582058, 0.06307575851678848, 0.05497586727142334, -0.015975745394825935, -0.017337216064333916, 0.03252020850777626, -0.003599712857976556, 0.01837124489247799, 0.009401045739650726, -0.03539825230836868, -0.05273547023534775, 0.002294251462444663, -0.005842262879014015, -0.01651861146092415, -0.03246850520372391, 0.016604779288172722, -0.06672932952642441, -0.039568837732076645, -0.060283880680799484, 0.05421757698059082, -0.002470897976309061, -0.019077831879258156, -0.03145170956850052, -0.0017675430281087756, -0.03009023889899254, -0.030882995575666428, 0.0408441387116909, -0.012055052444338799, -0.02802218124270439, -0.09568213671445847, -0.027505166828632355, -0.003746200352907181, -0.0016102844383567572, 0.01792316697537899, 0.03825906664133072, -0.004855627194046974, -0.012641002424061298, 0.03636334836483002, -0.019267404451966286, -0.018957195803523064, -0.00023131009947974235, 0.030969163402915, 0.03756971284747124, 0.0046315873041749, -0.029349185526371002, 0.006445446517318487, 0.03505357727408409, -0.016846053302288055, 0.004717756528407335, 0.050184864550828934, 0.06045622006058693, 0.04222284257411957, -0.053218018263578415, 0.02995236963033676, 0.012589300982654095, -0.021766306832432747, 0.07527729868888855, 0.0330372229218483, 0.023506922647356987, 0.04415303096175194, 0.019388040527701378, -0.051253363490104675, 0.04556620493531227, -0.04487685114145279, -0.019594846293330193, -0.01712179370224476, 0.058698371052742004, -0.02995236963033676, -0.017440618947148323, 0.020990785211324692, 0.008250688202679157, -0.016173934563994408, 0.026815814897418022, -0.029435353353619576, 0.03027981147170067, 0.009788806550204754, 0.02245565876364708, 0.03059002012014389, -0.033709339797496796, 0.06455786526203156, -0.006023217923939228, 0.04494578763842583, -0.035673994570970535, 0.009185622446238995, -0.00394223490729928, -0.004622970707714558, -0.06693613529205322, 0.06207619979977608, -0.021576734259724617, 0.0057905614376068115, -0.0330372229218483, 0.03546718880534172, 0.021163122728466988, -0.007832768373191357, -0.01925016939640045, 0.04049946367740631, -0.0010302589507773519, -0.06242087483406067, -0.04449770599603653, -0.03284765034914017, -0.028866637498140335, 0.06407532095909119, 0.014148960821330547, 0.017070092260837555, 0.008078350685536861, -0.01719934679567814, -0.025833487510681152, -0.020060159265995026, -0.009642318822443485, -0.07451900839805603, -0.032589141279459, 0.005626840051263571, -0.08106786012649536, -0.07762109488248825, -0.06635018438100815, 0.039947979152202606, 0.02752240002155304, -0.05349375680088997, -0.013787050731480122, -0.061007700860500336, 0.03546718880534172, -0.004752224311232567, -0.011357082985341549, -0.04201603680849075, 0.020732278004288673, -0.003347668331116438, 0.03243403881788254, 0.03246850520372391, 0.06869398057460785, -0.0025225994177162647, 0.03055555187165737, -0.002436430426314473, 0.04322240501642227, -0.025230303406715393, 0.0389484204351902, 0.010607412084937096, 0.03009023889899254, -0.028952807188034058, 0.00003578035830287263, -0.025316473096609116, 0.004657438024878502, -0.06828036904335022, -0.0035178521648049355, -0.010159333236515522, -0.03825906664133072, -0.01750955544412136, 0.01572585478425026, 0.06497147679328918, 0.038052260875701904, 0.008487652987241745, 0.019836120307445526, 0.048495952039957047, 0.020129093900322914, 0.023541389033198357, -0.06259321421384811, 0.03009023889899254, 0.02298990823328495, 0.05456225574016571, 0.0199222881346941, -0.026626242324709892, -0.04442877322435379, 0.012718554586172104, -0.033330194652080536, 0.046221088618040085, 0.04615215212106705, 0.02850472740828991, 0.02343798615038395, -0.03353700041770935, -0.03308892250061035, -0.004528184421360493, 0.0016813739202916622, 0.057940080761909485, 0.046634700149297714, 0.030710656195878983, -0.03395061194896698, 0.0007415925501845777, 0.05921538546681404, -0.06803909689188004, 0.09726764261722565, -0.03496740758419037, -0.01599297858774662, -0.12373878806829453, 0.03784545511007309, 0.03414018452167511, 0.03126213699579239, -0.016665097326040268, 0.04480791464447975, 0.02261076308786869, 0.014622891321778297, -0.004467866383492947, -0.022662464529275894, -0.0811367928981781, 0.036466751247644424, 0.06018047779798508, -0.0003532931732479483, 0.03701823204755783, 0.01709594391286373, 0.06828036904335022, 0.0224901270121336, -0.005118442699313164, 0.02200758084654808, 0.04884062707424164, -0.022938206791877747, -0.021456098183989525, 0.015467348508536816, 0.01081421785056591, 0.025040730834007263, -0.01792316697537899, 0.09864635020494461, -0.04797893762588501, 0.017113177105784416, 0.018095504492521286, 0.051287829875946045, -0.015191607177257538, 0.013261419720947742, 0.018233375623822212, 0.02616092935204506, 0.034760601818561554, -0.01675126701593399, -0.05180484429001808, -0.0027444849256426096, -0.021835241466760635, -0.03324402868747711, 0.0389484204351902, 0.01925016939640045, 0.047324053943157196, -0.03970670700073242, -0.053286951035261154, -0.07114118337631226, -0.05862943455576897, -0.011951649561524391, 0.016690948978066444, 0.050839751958847046, 0.026333266869187355, 0.0073803807608783245, -0.01564830355346203, 0.027953246608376503, 0.015829257667064667, -0.013752583414316177, -0.023162245750427246, 0.01550181582570076, -0.018578050658106804, 0.017302749678492546, 0.03691482916474342, 0.04722065106034279, 0.04797893762588501, 0.01225324161350727, 0.019336339086294174, -0.06814250349998474, 0.053631629794836044, -0.00605768570676446, -0.01814720593392849, -0.016949456185102463, 0.06366170942783356, 0.012873658910393715, -0.024144573137164116, -0.04208497330546379, -0.007578569930046797, 0.03619100898504257, -0.04087860509753227, 0.06672932952642441, 0.036432281136512756, 0.005161527078598738, 0.019801652058959007, 0.018767623230814934, 0.003610484069213271, -0.012003351002931595, 0.0043256874196231365, -0.010728049091994762, -0.005924123339354992, 0.0031774844974279404, -0.01599297858774662, 0.0036126382183283567, -0.015148522332310677, -0.014941716566681862, 0.03708716854453087, -0.00884956307709217, 0.025540512055158615, -0.04211943969130516, 0.03186532109975815, -0.0007496709004044533, 0.006307575851678848, -0.006936610210686922, -0.040775202214717865, -0.054769061505794525, 0.017836997285485268, 0.061352379620075226, -0.0385003387928009, -0.053666096180677414, 0.015303626656532288, -0.07575984299182892, -0.022938206791877747, -0.03694929555058479, -0.021232059225440025, -0.042705390602350235, 0.014752144925296307, 0.04418749734759331, -0.0020120476838201284, 0.015527666546404362, 0.021749073639512062, 0.0010264890734106302, 0.023386284708976746, -0.051287829875946045, 0.0023933458141982555, 0.0158464927226305, 0.013321737758815289, 0.0010248733451589942, 0.018509116023778915, -0.031899791210889816, 0.03524314984679222, 0.02722942642867565, -0.05228739231824875, -0.006066302303224802, -0.07769003510475159, 0.009254558011889458, -0.03798332437872887, 0.041119880974292755, -0.001140663051046431, 0.047324053943157196, -0.02049100399017334, -0.04122328385710716, 0.013330355286598206, 0.007401923183351755, 0.023265648633241653, 0.022128216922283173, 0.022024814039468765, -0.045118123292922974, -0.0251096673309803, -0.03160681575536728, -0.044256433844566345, -0.05097762122750282, 0.01795763336122036, 0.005083974916487932, 0.012977061793208122, 0.049323175102472305, 0.030710656195878983, -0.05101208761334419, 0.01599297858774662, -0.03467443212866783, 0.025161368772387505, 0.0056052980944514275, -0.013158016838133335, -0.028263455256819725, -0.06845270842313766, -0.0018483265303075314, -0.009013284929096699, 0.00011410669685574248, 0.0007841385086067021, -0.03712163493037224, -0.036087606102228165, -0.014192045666277409, 0.03987904638051987, 0.01670818217098713, -0.042739856988191605, -0.003978856839239597, 0.031124267727136612, -0.032313402742147446, 0.006863366346806288, -0.012356644496321678, -0.01128814835101366, -0.005695775616914034, 0.03701823204755783, 0.029383651912212372, 0.012296326458454132, 0.030917461961507797, 0.039155226200819016, -0.02907344326376915, -0.015148522332310677, 0.01603606343269348, 0.06576423346996307, 0.047772131860256195, 0.04708277806639671, 0.022283321246504784, -0.018164439126849174, -0.012753021903336048, 0.06404085457324982, 0.01423513051122427, 0.02071504481136799, 0.038017794489860535, 0.05704392492771149, 0.009952527470886707, -0.023300116881728172, -0.0035006185062229633, 0.011434635147452354, -0.056354571133852005, 0.014967567287385464, 0.056320104748010635, 0.05928431823849678, 0.01750093884766102, 0.04997805878520012, 0.0723130851984024, 0.021042486652731895, 0.06235193833708763, 0.017819764092564583, 0.006609167438000441, -0.048875097185373306, -0.010185183957219124, 0.0035307775251567364, 0.0031107033137232065, 0.014148960821330547, -0.0024428931064903736, 0.027849843725562096, -0.021800775080919266, 0.00520892022177577, 0.04828914627432823, -0.004730681888759136, -0.014467786997556686, 0.011322615668177605, 0.02581625245511532, 0.017070092260837555, -0.0016824511112645268, 0.09209749847650528, -0.010176567360758781, -0.00632480951026082, 0.048564888536930084, 0.010271352715790272, 0.018095504492521286, -0.053252484649419785, -0.08499716967344284, 0.0063937450759112835, -0.059456657618284225, -0.008608289994299412, -0.010340288281440735, -0.02850472740828991, -0.054389916360378265, 0.039637770503759384, 0.0043558464385569096, -0.03987904638051987, 0.008629832416772842, -0.015855109319090843, -0.031813621520996094, -0.04018925502896309, 0.0019323413725942373, -0.013045997358858585, -0.02340351976454258, -0.02567838318645954, -0.04401516169309616, -0.0061438544653356075, -0.004467866383492947, -0.01168452575802803, 0.0002718364994507283, 0.025850720703601837, 0.009943910874426365, -0.038810547441244125, -0.027918778359889984, -0.02178354002535343, -0.00182893848977983, -0.004217975772917271, -0.051701441407203674, 0.060249414294958115, -0.02960769273340702, 0.008285156451165676, 0.029693860560655594, -0.003662185510620475, -0.03539825230836868, 0.04098200798034668, -0.014683209359645844, -0.026109227910637856, 0.021008018404245377, 0.053252484649419785, 0.04280879348516464, 0.029400886967778206, 0.011693142354488373, -0.03825906664133072, -0.02317947894334793, -0.024902861565351486, -0.03308892250061035, 0.006587625481188297, 0.03770758584141731, 0.0006198787596076727, -0.01122782938182354, -0.056733716279268265, -0.0332612618803978, -0.0014401006046682596, 0.03619100898504257, -0.04673810303211212, 0.04132668673992157, -0.03829353302717209, -0.024868393316864967, -0.048495952039957047, -0.011598356999456882, -0.021266525611281395, 0.0534592904150486, 0.05414864420890808, 0.011563888750970364, -0.03674248978495598, 0.0468759723007679, -0.004614353645592928, -0.011012407019734383, -0.041154347360134125, -0.00100440823007375, -0.04653129726648331, -0.07058969885110855, 0.051735907793045044, 0.01041784044355154, -0.004392468370497227, 0.06379958242177963, -0.1139499768614769, 0.02454095147550106, -0.08092998713254929, -0.016079148277640343, -0.06452339887619019, -0.015243308618664742, -0.033898912370204926, -0.0483236126601696, 0.05152910202741623, -0.0006775042857043445, -0.010090397670865059, -0.0012720709200948477, -0.010891770012676716, -0.0468759723007679, 0.02004292607307434, 0.05976686626672745, -0.030262578278779984, -0.01893996074795723, 0.016889138147234917, -0.004825467709451914, 0.0033993697725236416, -0.023231180384755135, 0.04322240501642227, 0.02045653760433197, -0.021680137142539024, 0.025730084627866745, 0.03977564349770546, -0.10526413470506668, -0.03202042728662491, -0.027470698580145836, -0.022472893819212914, -0.02764303795993328, -0.007699206471443176, -0.02083568088710308, -0.04518705978989601, -0.007440699264407158, -0.020973552018404007, -0.004752224311232567, -0.04211943969130516, -0.008444569073617458, 0.04956444725394249, -0.003599712857976556, -0.04460110887885094, -0.02400670200586319, -0.008457493968307972, 0.03598420321941376, -0.008203295059502125, -0.012813340872526169, 0.047013845294713974, -0.03129660710692406, -0.024023937061429024, -0.005303706042468548, 0.03812119737267494, 0.0887196734547615, -0.004765149671584368, -0.054045241326093674, -0.04201603680849075, 0.003214106196537614, 0.03463996574282646, -0.013407907448709011, 0.06300682574510574, 0.029469821602106094, -0.0154845817014575, 0.033743806183338165, -0.01510543841868639, -0.014036941342055798, -0.03657015413045883, 0.009142538532614708, -0.01140016783028841, -0.0005043583223596215, -0.006492839194834232, -0.011994734406471252, 0.01319248415529728, -0.0506674125790596, -0.015381178818643093, -0.0025743008591234684, 0.020180795341730118, -0.004366617649793625, -0.04094754159450531, -0.006161088589578867, -0.0014788766857236624, -0.03929309546947479, -0.013752583414316177, 0.034760601818561554, -0.046221088618040085, 0.004928870592266321, -0.020146328955888748, -0.12001628428697586, 0.04770319536328316, 0.041154347360134125, -0.0036147923674434423, 0.04356708005070686, -0.012753021903336048, 0.07300243526697159, 0.041981570422649384, -0.005704392213374376, -0.021559501066803932, 0.051253363490104675, 0.024092871695756912, 0.08010276407003403, 0.01758710667490959, 0.006574700120836496, 0.00031990266870707273, -0.04253305122256279, 0.026419436559081078, -0.001397015992552042, -0.004881477914750576, 0.0980948656797409, -0.03252020850777626, 0.014769378118216991, 0.03584633395075798, -0.009900826029479504, 0.03981010988354683, 0.05645797401666641, 0.01893996074795723, -0.03338189795613289, 0.018767623230814934, -0.006712570320814848, -0.01569138839840889, -0.05642350763082504, -0.05383843556046486, 0.002488131867721677, -0.01221015676856041, 0.009495831094682217, -0.012701320461928844, -0.011658675037324429, 0.0027444849256426096, 0.04294666275382042 ]
30,264
networkx.exception
NetworkXNotImplemented
Exception raised by algorithms not implemented for a type of graph.
class NetworkXNotImplemented(NetworkXException): """Exception raised by algorithms not implemented for a type of graph."""
null
[ -0.000993578229099512, -0.021827520802617073, 0.04503217339515686, 0.04771757870912552, -0.01003583986312151, -0.018367480486631393, -0.08896264433860779, -0.026509765535593033, 0.09371373802423477, -0.01644810475409031, 0.06080031767487526, -0.008525299839675426, -0.006868439260870218, 0.0048371716402471066, -0.044033754616975784, 0.019331471994519234, -0.02129388228058815, 0.05078169330954552, 0.01891833171248436, -0.010294051840901375, -0.07594875246286392, -0.016577210277318954, -0.00848226435482502, 0.018109267577528954, 0.044102609157562256, 0.0439993254840374, 0.005435362458229065, -0.03539225831627846, -0.0029866520781069994, -0.01625874824821949, -0.10238966345787048, -0.023428434506058693, -0.03491026163101196, -0.008383282460272312, 0.035702113062143326, 0.0632791519165039, -0.003627878613770008, 0.04017778858542442, -0.05797719955444336, -0.018746191635727882, -0.04489446058869362, -0.04764872044324875, -0.039213795214891434, -0.035116832703351974, 0.0163534265011549, -0.03131250664591789, 0.007501058746129274, 0.05098826438188553, -0.04231233894824982, -0.04227790981531143, -0.01574232429265976, -0.013452844694256783, 0.02284315414726734, 0.044102609157562256, -0.044481322169303894, 0.0630725845694542, 0.03046901524066925, 0.08703465759754181, 0.03797437623143196, 0.030951011925935745, -0.002547691809013486, 0.06420871615409851, 0.0031803110614418983, -0.007991661317646503, -0.011017045006155968, 0.010044447146356106, -0.047683149576187134, -0.03401512652635574, -0.05040298402309418, 0.03330934792757034, 0.04978327453136444, 0.03239699825644493, -0.036459535360336304, 0.031777288764715195, 0.07711932063102722, 0.009020205587148666, -0.0023088455200195312, 0.019847895950078964, 0.015277543105185032, 0.002967286156490445, -0.0074494159780442715, 0.001130753429606557, -0.025029350072145462, -0.009416131302714348, 0.05938876047730446, -0.02489163726568222, 0.02168980799615383, -0.0038387516979128122, 0.006115321069955826, -0.020553674548864365, -0.05491308495402336, -0.01757563091814518, -0.01106868777424097, 0.005925965495407581, -0.003027535742148757, 0.043896038085222244, 0.025494132190942764, -0.10225195437669754, 0.04059092700481415, -0.08042442798614502, 0.013848770409822464, 0.05918218940496445, -0.0451698862016201, -0.0035697808489203453, -0.02263658493757248, -0.04289761930704117, -0.013624986633658409, -0.05284738913178444, -0.044860031455755234, -0.0322420708835125, -0.06661869585514069, 0.0385940857231617, 0.04788971692323685, -0.046547017991542816, 0.04830285906791687, 0.003922670613974333, -0.00824556965380907, -0.00942473765462637, -0.005650539416819811, 0.02539084665477276, 0.0038753317203372717, 0.05432780459523201, -0.04771757870912552, 0.0355299711227417, 0.002158222021535039, 0.014795547351241112, 0.03413562476634979, 0.009614093229174614, 0.04720115289092064, -0.06386443227529526, 0.014718083664774895, -0.01710224151611328, -0.027232758700847626, 0.05071283504366875, 0.0004182496340945363, 0.020605318248271942, -0.03327491879463196, -0.01613825000822544, 0.0036020574625581503, -0.013642200268805027, -0.012463032267987728, -0.028041822835803032, 0.03124365210533142, 0.07147308439016342, 0.005887233652174473, 0.03391184285283089, -0.0484750010073185, -0.06796139478683472, 0.010156339034438133, -0.050058700144290924, 0.042691051959991455, -0.014683655463159084, -0.02566627226769924, -0.07278135418891907, -0.03406677022576332, 0.01814369671046734, 0.01639646105468273, -0.036528389900922775, -0.026131054386496544, -0.02642369456589222, -0.06531041860580444, -0.03649396076798439, 0.03250028192996979, -0.0005476246005855501, -0.025425273925065994, -0.034359410405159, 0.02694011852145195, -0.07181736081838608, -0.018522407859563828, 0.023635005578398705, -0.012815922498703003, -0.03632182255387306, -0.0592854768037796, -0.030710013583302498, -0.008323033340275288, 0.0207086019217968, 0.014718083664774895, 0.06741054356098175, -0.02637205272912979, 0.01269542332738638, 0.05126368999481201, -0.021276669576764107, -0.07491590827703476, -0.024530140683054924, -0.0019290588097646832, 0.013031098991632462, 0.013736878521740437, -0.015613218769431114, 0.02162095159292221, -0.02360057644546032, 0.010793261229991913, -0.037939950823783875, 0.02981487847864628, 0.05467208847403526, 0.08421154320240021, -0.07519133388996124, 0.007866858504712582, 0.0522276796400547, -0.011920787394046783, 0.09626143425703049, 0.05291624739766121, 0.03040015883743763, 0.05425894632935524, 0.0020011430606245995, -0.041727058589458466, -0.002545539988204837, -0.03873179852962494, -0.04362061247229576, -0.030623942613601685, -0.03391184285283089, 0.004389604087918997, -0.03110593929886818, 0.007862555794417858, 0.05549836531281471, -0.025253133848309517, 0.03707924485206604, -0.018574049696326256, 0.008899707347154617, 0.012402783147990704, -0.028300035744905472, 0.005650539416819811, 0.0014470630558207631, 0.028558246791362762, -0.04337961599230766, 0.05567050725221634, -0.03391184285283089, 0.024082573130726814, -0.03632182255387306, 0.02823117934167385, -0.0578739158809185, 0.07250592857599258, 0.0032792924903333187, -0.012747066095471382, -0.009390309453010559, 0.04355175793170929, -0.02943616732954979, 0.01593168079853058, -0.008865278214216232, 0.04355175793170929, 0.0019387417705729604, -0.05794277414679527, -0.04926684871315956, -0.036149680614471436, 0.01186914462596178, 0.02468506619334221, -0.013995090499520302, -0.006003429181873798, 0.037492383271455765, -0.013220454566180706, 0.03150186315178871, -0.04214019700884819, -0.07016480714082718, -0.049542274326086044, -0.04458460584282875, 0.009691556915640831, -0.060456037521362305, -0.06968281418085098, -0.056668926030397415, 0.08297212421894073, 0.006468210369348526, -0.0067995828576385975, 0.02244723029434681, -0.057254206389188766, 0.044997744262218475, 0.031140366569161415, -0.04065978154540062, -0.012144571170210838, 0.04561745375394821, 0.012540495954453945, 0.02957388013601303, 0.06593012809753418, 0.05618692934513092, -0.0049232421442866325, 0.007884073071181774, 0.018625691533088684, 0.01494186744093895, -0.02072581648826599, 0.02373828925192356, -0.007849644869565964, 0.02700897492468357, 0.004613387864083052, 0.011946608312427998, -0.0722305029630661, 0.030193589627742767, -0.06692855060100555, 0.022206231951713562, 0.012712636962532997, -0.019038831815123558, -0.020295463502407074, -0.017523987218737602, 0.04757986590266228, 0.05226210877299309, -0.0183502659201622, 0.003326631151139736, 0.02675076387822628, 0.0018967823125422, -0.0007160003297030926, -0.011146151460707188, 0.05728863552212715, 0.05446551740169525, 0.056531213223934174, 0.019865110516548157, 0.002278720960021019, -0.0263548381626606, 0.023772718384861946, -0.023910431191325188, 0.0773947462439537, 0.04926684871315956, -0.03157072141766548, 0.036011967808008194, -0.023204650729894638, 0.010061660781502724, -0.01814369671046734, -0.0009483911562711, 0.05677220970392227, 0.02167259342968464, 0.03907608240842819, -0.03477254882454872, 0.023445649072527885, 0.05126368999481201, -0.044343605637550354, 0.07112880051136017, -0.0275253988802433, -0.02122502587735653, -0.06913195550441742, 0.041210636496543884, 0.02334236539900303, 0.03745795413851738, -0.0032857477199286222, -0.006967420224100351, 0.007083615753799677, -0.013091348111629486, 0.02193080633878708, 0.004213158972561359, -0.08710351586341858, 0.01867733523249626, 0.06730726361274719, 0.003685976378619671, 0.03683824464678764, 0.005426755640655756, 0.018436336889863014, 0.02661304920911789, -0.02256772853434086, 0.019968394190073013, 0.05267524719238281, -0.009390309453010559, -0.02026103436946869, -0.02373828925192356, 0.00005268466338748112, 0.043723899871110916, -0.03380855917930603, 0.09846483916044235, -0.02623433992266655, 0.04575516656041145, 0.025425273925065994, 0.04324190318584442, -0.009717377834022045, -0.021070098504424095, -0.023841574788093567, 0.02731882967054844, 0.04300090670585632, -0.02976323664188385, 0.0046176910400390625, 0.010061660781502724, -0.03869737312197685, -0.028334463015198708, 0.02745654247701168, 0.04010893031954765, 0.05274410545825958, -0.049679987132549286, -0.01677517220377922, -0.07801444828510284, -0.10397336632013321, -0.006825403776019812, -0.023307936266064644, 0.020794672891497612, -0.0050093126483261585, 0.014399622566998005, -0.04386161267757416, 0.00710513349622488, 0.0011942305136471987, -0.0028704567812383175, -0.025442488491535187, -0.019520826637744904, 0.009743199683725834, 0.006162659730762243, 0.03866294398903847, 0.023824360221624374, 0.030055876821279526, 0.0007644151337444782, -0.027628684416413307, -0.045824021100997925, 0.004961973987519741, 0.010328480042517185, -0.05133254453539848, -0.014632013626396656, 0.03580539673566818, -0.006937295664101839, -0.03797437623143196, -0.056083645671606064, -0.041348349303007126, 0.01538943499326706, -0.0009473152458667755, 0.04985212907195091, 0.05036855489015579, 0.0007407456869259477, 0.027559828013181686, 0.014898831956088543, 0.027163902297616005, -0.006907171104103327, 0.02566627226769924, -0.005650539416819811, -0.07016480714082718, -0.014709477312862873, -0.0021453113295137882, 0.02771475538611412, 0.03155350685119629, -0.01142157707363367, 0.04183034226298332, -0.0019559559877961874, 0.04079749435186386, -0.0296427384018898, 0.07422734051942825, 0.0484750010073185, -0.022102946415543556, -0.0010091785807162523, -0.028850886970758438, -0.025562988594174385, -0.01649113930761814, 0.03256914019584656, -0.008796421810984612, -0.0014987054746598005, 0.023944858461618423, -0.03714809939265251, 0.02416864223778248, -0.06155773997306824, -0.03732024133205414, -0.044033754616975784, -0.028437748551368713, 0.057701773941516876, -0.002595030702650547, 0.025253133848309517, 0.014864403754472733, -0.020157750695943832, 0.023187438026070595, -0.03625296428799629, 0.002904884982854128, 0.002412130357697606, -0.015819787979125977, 0.013668022118508816, -0.004178730770945549, -0.025115421041846275, 0.08868721127510071, 0.016103820875287056, -0.038903940469026566, -0.0034944689832627773, -0.06562027335166931, 0.012919207103550434, 0.0008590928628109396, 0.0409352071583271, 0.00862428080290556, 0.008499477989971638, -0.0773947462439537, -0.004570352379232645, 0.021707022562623024, 0.04072863981127739, -0.00020024878904223442, -0.010216588154435158, 0.007186900824308395, 0.010655548423528671, 0.038972798734903336, -0.013538915663957596, -0.0039657060988247395, -0.07250592857599258, -0.02212016098201275, 0.01369384303689003, -0.003746225731447339, 0.046719156205654144, 0.05425894632935524, -0.05701320990920067, 0.015320578590035439, -0.03732024133205414, 0.017472345381975174, 0.013934840448200703, -0.0015019330894574523, -0.007737752981483936, -0.001804256346076727, -0.028110679239034653, 0.002261506859213114, -0.010629727505147457, -0.011851930990815163, -0.028713174164295197, -0.00106889009475708, -0.017463738098740578, 0.08641494810581207, -0.004266953095793724, -0.03707924485206604, -0.01905604638159275, -0.022739870473742485, -0.04754543676972389, 0.005026526749134064, -0.006235819775611162, 0.00362357497215271, -0.027043404057621956, 0.09226775169372559, -0.0015535755082964897, 0.05036855489015579, 0.040763068944215775, 0.07691274583339691, -0.042622193694114685, -0.035702113062143326, 0.013444238342344761, 0.07291907072067261, 0.03535782918334007, 0.028179535642266273, 0.003266381798312068, 0.016086608171463013, 0.013263490051031113, 0.03181171789765358, 0.010560871101915836, 0.05178011208772659, 0.008396193385124207, 0.04971441626548767, 0.019142115488648415, 0.01569068245589733, 0.013323739171028137, 0.0018279257928952575, -0.04406818002462387, 0.0076904138550162315, 0.04895699396729469, 0.021603737026453018, 0.04138277471065521, 0.01905604638159275, 0.03873179852962494, -0.007707627955824137, 0.020312678068876266, 0.01349588017910719, 0.03501354530453682, -0.03501354530453682, -0.013117169961333275, -0.006072285585105419, -0.012600746005773544, -0.012523282319307327, -0.0005885082064196467, 0.0036063608713448048, -0.03219043090939522, -0.0021496149711310863, 0.03873179852962494, 0.011791680939495564, -0.0320010744035244, -0.021466024219989777, 0.032293714582920074, -0.004940456245094538, -0.03924822434782982, 0.10218309611082077, 0.015966108068823814, 0.007737752981483936, 0.05136697366833687, 0.028558246791362762, 0.030555086210370064, -0.03945479169487953, -0.051470257341861725, 0.015337793156504631, -0.04740772396326065, -0.0011060080723837018, 0.008361765183508396, -0.03461762145161629, -0.06813354045152664, -0.009674343280494213, -0.006429478991776705, -0.005986214615404606, -0.015260329470038414, 0.02418585680425167, -0.012815922498703003, -0.03849080204963684, 0.0015492719830945134, -0.006881349720060825, 0.017971554771065712, -0.01847076416015625, -0.08269669860601425, -0.02795575186610222, -0.02981487847864628, 0.006786671932786703, -0.018315838649868965, 0.028317248448729515, -0.0005524660809896886, -0.059044476598501205, -0.017188312485814095, 0.013581951148808002, 0.023187438026070595, -0.014347979798913002, -0.04850942641496658, 0.04220905527472496, -0.03663167729973793, 0.011972429230809212, 0.04720115289092064, -0.01628457009792328, -0.04300090670585632, -0.006278855260461569, -0.04317304491996765, -0.035237330943346024, 0.057254206389188766, 0.06290044635534286, -0.010560871101915836, 0.03955807909369469, 0.012308104895055294, -0.05026526749134064, 0.024461284279823303, 0.0011501192348077893, -0.05684106796979904, 0.025029350072145462, 0.036975957453250885, -0.0320010744035244, -0.061420027166604996, -0.02155209518969059, -0.05253753438591957, 0.01304831262677908, 0.05945761501789093, -0.017239954322576523, 0.032483071088790894, 0.011886359192430973, -0.002754261251538992, -0.0684778243303299, -0.02738768607378006, -0.024099785834550858, 0.0298837348818779, -0.010801868513226509, 0.006605923641473055, 0.006511245854198933, 0.009312845766544342, 0.009803448803722858, -0.01665467396378517, 0.0012222034856677055, -0.0385940857231617, -0.03134693577885628, -0.0830409824848175, 0.03367084637284279, 0.023204650729894638, -0.024392426013946533, 0.03869737312197685, -0.043207474052906036, 0.023273508995771408, -0.05573936179280281, -0.04355175793170929, -0.02566627226769924, -0.0001282990851905197, -0.0033675148151814938, -0.05329495668411255, 0.06417428702116013, -0.015027938410639763, 0.016628852114081383, -0.014287730678915977, 0.0171797052025795, -0.037492383271455765, 0.02007167972624302, 0.03590868040919304, -0.05687549710273743, 0.017661700025200844, 0.019933966919779778, -0.027680326253175735, 0.0027757789939641953, -0.01279870793223381, 0.03399791195988655, 0.05701320990920067, 0.008241266012191772, 0.019899537786841393, 0.016955921426415443, -0.06957952678203583, -0.008985777385532856, -0.031777288764715195, 0.00658870954066515, -0.009020205587148666, 0.05284738913178444, 0.005908751394599676, -0.03649396076798439, -0.0183502659201622, -0.029659951105713844, -0.009097669273614883, -0.01644810475409031, 0.01458897814154625, 0.04785529151558876, 0.012945028021931648, -0.05112597718834877, -0.028041822835803032, -0.023307936266064644, 0.018298624083399773, -0.032810136675834656, -0.023514505475759506, 0.010629727505147457, -0.017851056531071663, -0.050506267696619034, 0.0053148637525737286, 0.029350096359848976, 0.049989841878414154, 0.0005113135557621717, -0.047993004322052, -0.05367366597056389, -0.03494469076395035, 0.028644317761063576, -0.0263548381626606, 0.049094706773757935, 0.03446269407868385, -0.01962411217391491, 0.04992098733782768, 0.02289479784667492, 0.004277712199836969, -0.07608646899461746, 0.012953635305166245, 0.02874760329723358, -0.0091751329600811, -0.01497629564255476, -0.033447060734033585, -0.003326631151139736, -0.015320578590035439, 0.02423750050365925, 0.022808726876974106, 0.03163957595825195, 0.03329213336110115, -0.029677165672183037, 0.01456315629184246, -0.011619539931416512, -0.02463342435657978, 0.01183471642434597, 0.03110593929886818, -0.06055932119488716, 0.007057794835418463, -0.0030189286917448044, -0.10252737998962402, 0.044343605637550354, 0.06803025305271149, 0.04072863981127739, 0.06689412146806717, -0.004060383886098862, 0.07250592857599258, -0.005512826144695282, -0.023893216624855995, -0.037561237812042236, 0.06389886140823364, 0.01096540316939354, 0.04317304491996765, 0.02091517113149166, -0.01417583879083395, -0.011817502789199352, -0.034789763391017914, 0.05164239928126335, -0.04152049124240875, -0.0022055609151721, 0.08111299574375153, -0.028782030567526817, 0.039867933839559555, 0.03773337975144386, -0.0012620111228898168, -0.018556835129857063, 0.017308810725808144, 0.040900781750679016, -0.03138136491179466, 0.028265606611967087, 0.009114883840084076, -0.004180882591754198, -0.082352414727211, -0.0200028233230114, 0.003475103061646223, 0.00662313774228096, -0.033515918999910355, -0.04888813942670822, -0.011378542520105839, 0.018883904442191124, 0.02981487847864628 ]
30,265
networkx.exception
NetworkXPointlessConcept
Raised when a null graph is provided as input to an algorithm that cannot use it. The null graph is sometimes considered a pointless concept [1]_, thus the name of the exception. References ---------- .. [1] Harary, F. and Read, R. "Is the Null Graph a Pointless Concept?" In Graphs and Combinatorics Conference, George Washington University. New York: Springer-Verlag, 1973.
class NetworkXPointlessConcept(NetworkXException): """Raised when a null graph is provided as input to an algorithm that cannot use it. The null graph is sometimes considered a pointless concept [1]_, thus the name of the exception. References ---------- .. [1] Harary, F. and Read, R. "Is the Null Graph a Pointless Concept?" In Graphs and Combinatorics Conference, George Washington University. New York: Springer-Verlag, 1973. """
null
[ -0.010213751345872879, -0.005023587495088577, 0.046851746737957, 0.033174965530633926, 0.03217550739645958, -0.014939255081117153, -0.03685717657208443, -0.012361707165837288, 0.11067673563957214, -0.032403454184532166, 0.01904228888452053, 0.004221391398459673, 0.05383041501045227, -0.0013391849352046847, -0.07168036699295044, 0.03138646110892296, 0.02158476784825325, 0.040118563920259476, -0.01569323055446148, 0.009556213393807411, -0.03073769249022007, -0.01575460098683834, 0.028703708201646805, -0.004949066322296858, 0.028475763276219368, 0.06084414944052696, 0.010617041029036045, -0.03512127697467804, -0.03042207472026348, -0.037488412111997604, -0.07280256599187851, -0.01578090339899063, -0.025354649871587753, -0.01229157019406557, 0.03959253057837486, 0.034384835511446, -0.007070721127092838, 0.041591446846723557, -0.11572661995887756, -0.030667554587125778, -0.01904228888452053, -0.010099777951836586, -0.07210119068622589, -0.005212081596255302, 0.0015474052634090185, -0.031246187165379524, 0.04941176250576973, 0.0364714190363884, -0.08591824769973755, -0.04134596511721611, -0.020935997366905212, 0.027616580948233604, 0.022128332406282425, 0.025845611467957497, -0.0512002632021904, 0.045554205775260925, 0.01557049062103033, 0.11257044225931168, -0.02775685489177704, 0.03250866010785103, 0.009100320748984814, 0.093703493475914, -0.006277292501181364, -0.0358927883207798, 0.006908528506755829, -0.0035134428180754185, -0.014395690523087978, -0.02924727275967598, -0.014807747676968575, 0.002023024018853903, 0.014343087561428547, 0.002180833136662841, -0.04208240658044815, 0.06750719249248505, 0.06298333406448364, -0.05449671670794487, 0.022443950176239014, 0.0021161753684282303, 0.054286304861307144, -0.022391347214579582, -0.0105819720774889, -0.019919006153941154, -0.031176051124930382, -0.04127582907676697, 0.03629607707262039, -0.00696989893913269, 0.00014191854279488325, 0.0004610982723534107, 0.0034959083423018456, 0.03519141301512718, -0.02891412191092968, -0.0029194671660661697, -0.030877966433763504, -0.005698659457266331, 0.03829498961567879, 0.04930655285716057, 0.02414478175342083, -0.08023712784051895, 0.030527280643582344, -0.04397611692547798, -0.02596835233271122, 0.027546443045139313, -0.06533294171094894, 0.029142066836357117, -0.021882852539420128, -0.024039575830101967, 0.0041687884368002415, -0.028756313025951385, -0.0033556337002664804, -0.05277835205197334, -0.0667707547545433, -0.0031276873778551817, 0.018411053344607353, -0.023583682253956795, 0.028282884508371353, 0.007311818189918995, -0.005852085072547197, -0.002535903360694647, -0.012475680559873581, 0.0067331851460039616, 0.03654155880212784, 0.03994321823120117, -0.0814995989203453, -0.02668726071715355, 0.025898214429616928, -0.010108545422554016, 0.037488412111997604, 0.0031846738420426846, -0.00015260351938195527, -0.036366213113069534, 0.02773931995034218, 0.014211580157279968, -0.020006678998470306, 0.04366049915552139, -0.044432010501623154, 0.019936541095376015, -0.007807163521647453, 0.0023189159110188484, -0.025477390736341476, -0.02012941800057888, 0.0039715273305773735, -0.020024212077260017, -0.010652109049260616, 0.058038655668497086, 0.01827077940106392, 0.029106998816132545, -0.055408503860235214, -0.05993236228823662, 0.0461854413151741, -0.009380870498716831, 0.0379793718457222, -0.029019327834248543, -0.02665219083428383, -0.04355529323220253, -0.014167743735015392, 0.03284181281924248, 0.004368241410702467, -0.06817349791526794, -0.012694859877228737, -0.01538638025522232, -0.020690517500042915, -0.0548824742436409, 0.04278378188610077, 0.006005510222166777, -0.016385838389396667, -0.0047912574373185635, 0.018849411979317665, -0.060633737593889236, 0.0032219344284385443, 0.012764996849000454, 0.018095435574650764, -0.03917170688509941, -0.06564855575561523, -0.013624179176986217, 0.03962760046124458, 0.0076625049114227295, 0.014351854100823402, 0.04976244643330574, -0.03366592526435852, -0.008004425093531609, 0.07925520092248917, -0.026143696159124374, -0.04657119885087013, -0.028475763276219368, 0.021882852539420128, 0.0025052183773368597, 0.028388090431690216, -0.0018246668623760343, 0.019919006153941154, 0.02449546754360199, 0.004252076614648104, -0.00913538970053196, 0.004738654475659132, 0.06834884732961655, 0.06922556459903717, -0.08016698807477951, 0.013045546598732471, 0.016552412882447243, 0.018726671114563942, 0.035349223762750626, 0.0034608396235853434, 0.043379947543144226, 0.03945225849747658, 0.004984135273844004, -0.003491524839773774, 0.03808457776904106, -0.052147116512060165, -0.02302258461713791, -0.062387168407440186, -0.027528908103704453, -0.0014465827262029052, -0.016228027641773224, 0.023197926580905914, 0.0629132017493248, -0.030439607799053192, 0.007079488597810268, -0.03692731261253357, -0.0029326179064810276, -0.021795179694890976, 0.02233874425292015, 0.005045505240559578, -0.039487324655056, 0.0533745214343071, -0.031667012721300125, 0.061720866709947586, -0.017358994111418724, 0.028440693393349648, -0.02633657306432724, 0.009933201596140862, -0.044782694429159164, 0.03780402988195419, -0.018568862229585648, -0.020427502691745758, -0.023653820157051086, 0.03538428992033005, -0.019673526287078857, 0.016596250236034393, -0.024670811370015144, 0.011248276568949223, -0.018375985324382782, -0.06501732021570206, -0.029352478682994843, -0.036050595343112946, 0.010380327701568604, 0.05677618086338043, -0.002717822091653943, -0.00677702110260725, 0.04674654081463814, -0.04579968750476837, -0.014667472802102566, -0.04572955146431923, -0.03587525337934494, -0.06217675656080246, -0.04246816411614418, 0.025337116792798042, -0.07567819952964783, -0.08837305754423141, -0.0811489075422287, 0.038575541228055954, 0.03406921774148941, -0.051375605165958405, -0.006921679247170687, -0.044116392731666565, 0.039767876267433167, 0.03734813630580902, -0.026091093197464943, -0.020252158865332603, 0.02709054946899414, 0.00705757038667798, 0.0008345248061232269, 0.1092739850282669, 0.0373130701482296, 0.02591574937105179, 0.01316828653216362, -0.009670186787843704, -0.02197052352130413, -0.0313689298927784, 0.04471255838871002, 0.036050595343112946, 0.012870202772319317, -0.0010783617617562413, 0.016710223630070686, -0.03766375407576561, 0.02233874425292015, -0.040434181690216064, 0.005448794923722744, -0.008000041358172894, -0.06547321379184723, -0.04288898780941963, -0.01114307064563036, 0.026967810466885567, 0.04359035938978195, 0.030527280643582344, 0.012256501242518425, 0.02084832638502121, 0.0453437939286232, 0.008968813344836235, -0.03405168280005455, 0.02261929400265217, 0.01685926504433155, 0.08156973123550415, 0.022093264386057854, -0.016990771517157555, -0.02337327040731907, -0.034928400069475174, -0.03401661291718483, 0.02709054946899414, 0.05625015124678612, -0.018814343959093094, -0.004420844838023186, -0.030229195952415466, 0.02274203486740589, -0.004725503735244274, 0.040083494037389755, 0.051410675048828125, 0.05737235024571419, 0.05386548116803169, -0.0446774885058403, 0.041556376963853836, 0.06312361359596252, -0.042257752269506454, 0.03619087114930153, 0.0062422240152955055, -0.04436187073588371, -0.09244102239608765, 0.016306933015584946, 0.0048833126202225685, -0.014965556561946869, -0.012335405685007572, 0.03980294242501259, 0.03143906593322754, -0.0025797393172979355, -0.0004720572324004024, -0.02119901217520237, -0.14132675528526306, 0.014185278676450253, 0.042257752269506454, 0.014185278676450253, 0.026476848870515823, -0.033876337110996246, 0.029878510162234306, 0.016990771517157555, -0.008350728079676628, 0.002792343031615019, 0.029142066836357117, -0.0010460327612236142, -0.015605559572577477, -0.04650105908513069, 0.03734813630580902, 0.01715734787285328, -0.04457228258252144, 0.08577797561883926, -0.006093182135373354, 0.032684002071619034, 0.03724293038249016, 0.04352022334933281, -0.030825363472104073, 0.004778106696903706, 0.003989061806350946, 0.003353441832587123, 0.03840019553899765, -0.04057445377111435, 0.00456769485026598, -0.014781446196138859, -0.04292405769228935, -0.01870913803577423, 0.05446165055036545, 0.047412846237421036, -0.012843901291489601, -0.03952239453792572, -0.05533836781978607, -0.08037739992141724, -0.07476641237735748, -0.027914663776755333, -0.03952239453792572, -0.014886652119457722, 0.004677284508943558, -0.00191781809553504, -0.00677702110260725, -0.006088798400014639, 0.012449379079043865, 0.027932198718190193, -0.03222811222076416, 0.0018838453106582165, -0.04765832796692848, 0.007623052690178156, 0.01241431012749672, 0.049937792122364044, 0.014956789091229439, 0.038575541228055954, 0.007491545286029577, -0.04565941169857979, 0.03626100718975067, -0.0078422324731946, -0.03185988962650299, -0.027178222313523293, 0.05558384582400322, -0.007241681218147278, -0.05439151078462601, -0.04944682866334915, 0.02933494560420513, -0.0021720658987760544, -0.03417442366480827, 0.023618752136826515, 0.016342001035809517, 0.017095977440476418, 0.008118397556245327, 0.022794637829065323, -0.001832338166423142, 0.007903601974248886, 0.005733727943152189, -0.003463031491264701, -0.026459313929080963, -0.015070762485265732, 0.014860350638628006, 0.011248276568949223, 0.013124451041221619, -0.017262553796172142, 0.01832338236272335, -0.008311275392770767, 0.03191249445080757, -0.05305890366435051, 0.06024798005819321, 0.07259215414524078, -0.02226860821247101, 0.009258129633963108, -0.011704170145094395, -0.04779860004782677, 0.02519684098660946, 0.020041747018694878, -0.037523481994867325, -0.02779192291200161, 0.0460100993514061, -0.0811489075422287, -0.012124993838369846, -0.06820856779813766, -0.03468291833996773, -0.010187449865043163, -0.02524944394826889, 0.051726292818784714, 0.032403454184532166, 0.027143152430653572, 0.04057445377111435, -0.002792343031615019, 0.01684173010289669, 0.013597877696156502, 0.001661378424614668, 0.015544189140200615, -0.03910157084465027, -0.003145221620798111, 0.01538638025522232, 0.005501398351043463, 0.07182064652442932, 0.007991273887455463, -0.09777145832777023, -0.010275120846927166, -0.06049346178770065, -0.005369890481233597, -0.02996618114411831, 0.03945225849747658, -0.005435644183307886, 0.05642549693584442, -0.0694359764456749, -0.008859223686158657, -0.003706320421770215, 0.0209184642881155, 0.021444493904709816, -0.004747421480715275, -0.014676239341497421, 0.01540391519665718, -0.0014948021853342652, -0.0025665885768830776, 0.005966058000922203, -0.028247816488146782, 0.005063039716333151, 0.0061326343566179276, -0.02414478175342083, 0.01646474190056324, 0.06487704813480377, -0.01757817156612873, 0.0036120733711868525, -0.02274203486740589, 0.03157934173941612, 0.01756063848733902, -0.010809918865561485, 0.032017700374126434, -0.06627979129552841, -0.010687178000807762, 0.021058738231658936, 0.001172608812339604, -0.03177221864461899, 0.004293720703572035, -0.007040036376565695, -0.017814885824918747, 0.008929360657930374, 0.03450757637619972, -0.026985343545675278, -0.010178682394325733, 0.021462028846144676, -0.019252700731158257, -0.012589653953909874, -0.01686803251504898, -0.021146409213542938, -0.04537886381149292, 0.08711058646440506, -0.027984801679849625, -0.018130503594875336, 0.007224146742373705, 0.048499975353479385, -0.02742370218038559, 0.000420002150349319, 0.030246730893850327, 0.08956538885831833, 0.039732806384563446, 0.036822106689214706, 0.025793008506298065, 0.024249987676739693, 0.01725378818809986, 0.039276912808418274, -0.027669183909893036, 0.05165615677833557, 0.03594538941979408, 0.029720701277256012, 0.03068508952856064, -0.010204983875155449, -0.02044503577053547, -0.02519684098660946, -0.06599923968315125, -0.00016972690355032682, 0.039487324655056, 0.059827156364917755, 0.007232913747429848, -0.00449317367747426, 0.025898214429616928, -0.004760572221130133, 0.05842440947890282, -0.024337658658623695, 0.013396233320236206, -0.03263140097260475, 0.02300504967570305, 0.006373731419444084, -0.023127790540456772, 0.03741827607154846, 0.03668183088302612, 0.0249338261783123, -0.008775935508310795, -0.01679789461195469, 0.015289941802620888, -0.03466538339853287, -0.01462363637983799, 0.01279129832983017, -0.0034520726185292006, -0.028651105239987373, -0.033858805894851685, 0.08563770353794098, 0.027897128835320473, 0.030579883605241776, 0.04983258619904518, 0.024635743349790573, 0.05383041501045227, -0.02274203486740589, -0.03543689474463463, 0.04937669262290001, -0.07231160253286362, 0.0358927883207798, -0.010494300164282322, -0.023496011272072792, -0.06249237433075905, 0.0010345258051529527, 0.013308561407029629, 0.009407171979546547, 0.015298708342015743, 0.05930112674832344, 0.029142066836357117, -0.02565273456275463, -0.006557841785252094, -0.006277292501181364, 0.017832420766353607, -0.04394104704260826, -0.04180185869336128, -0.014483362436294556, -0.028598502278327942, -0.014176511205732822, -0.027353564277291298, 0.010503067634999752, 0.01007347647100687, -0.00804826058447361, -0.014518430456519127, -0.018165573477745056, 0.0008339768974110484, -0.026582054793834686, -0.040434181690216064, 0.06543814390897751, -0.0013895961456000805, 0.023846697062253952, 0.007232913747429848, 0.012686092406511307, -0.06294827163219452, 0.04292405769228935, 0.015868574380874634, -0.02346094325184822, 0.053269315510988235, 0.03885608911514282, 0.04120568931102753, 0.020795723423361778, 0.015237338840961456, -0.04569448158144951, -0.023969437927007675, -0.011230742558836937, -0.050674233585596085, 0.007552915718406439, 0.03187742456793785, -0.04345008730888367, -0.05200684070587158, -0.021093806251883507, -0.02933494560420513, -0.034262094646692276, 0.03661169484257698, -0.007004967425018549, 0.04138103500008583, 0.02375902608036995, -0.021882852539420128, -0.06905021518468857, -0.00016301454161293805, -0.03464784845709801, 0.01762200891971588, 0.030211662873625755, -0.04127582907676697, -0.02628397010266781, 0.016640085726976395, 0.015544189140200615, 0.02160230278968811, -0.029457686468958855, -0.03871581703424454, -0.03042207472026348, -0.021760111674666405, 0.024793552234768867, 0.00018753520271275192, 0.017788585275411606, 0.0880223736166954, -0.08374398946762085, 0.011572661809623241, -0.02886151894927025, -0.009372103027999401, -0.03285934776067734, 0.026108628138899803, -0.02814261056482792, -0.09643885493278503, 0.0709439292550087, -0.0029698782600462437, -0.007658121641725302, 0.07210119068622589, 0.034963466227054596, -0.018937082961201668, 0.0409952774643898, 0.04874545708298683, -0.08178014308214188, -0.016973238438367844, -0.024285055696964264, -0.024355193600058556, 0.02119901217520237, -0.04134596511721611, 0.033139895647764206, 0.05351479724049568, -0.0015682271914556623, 0.04909614101052284, 0.02377656102180481, -0.08598838746547699, -0.03871581703424454, 0.0003745224676094949, -0.029790837317705154, 0.010012106038630009, 0.031018242239952087, -0.012142527848482132, -0.01222143229097128, -0.02970316633582115, 0.010467998683452606, 0.016727756708860397, -0.026546984910964966, -0.00917045772075653, 0.0518665686249733, 0.0011890472378581762, -0.03829498961567879, -0.04888572916388512, -0.02275956980884075, 0.0033139896113425493, -0.038961295038461685, -0.025705337524414062, 0.006093182135373354, -0.0322105772793293, -0.030457142740488052, 0.014860350638628006, 0.04124075919389725, 0.0709439292550087, -0.03415688872337341, -0.05740741640329361, -0.03959253057837486, -0.010871288366615772, 0.02053270861506462, -0.042292818427085876, 0.046676404774188995, 0.011257044039666653, -0.013711851090192795, 0.028616037219762802, 0.0150181595236063, 0.028317954391241074, -0.03473551943898201, -0.009635117836296558, 0.04541393369436264, -0.018358450382947922, -0.026196299120783806, -0.002087682019919157, 0.010985261760652065, -0.056951526552438736, 0.011204441078007221, -0.01316828653216362, 0.01972612924873829, 0.03477058932185173, -0.019638456404209137, -0.029194669798016548, 0.011186907067894936, -0.03191249445080757, 0.03356071934103966, 0.03547196462750435, -0.002389053348451853, -0.0018553519621491432, -0.016315700486302376, -0.1059073954820633, 0.008951278403401375, 0.013536508195102215, 0.028633572161197662, 0.07238174229860306, -0.02924727275967598, 0.0850064605474472, 0.0483596995472908, 0.008096479810774326, 0.009775392711162567, 0.04860518127679825, 0.026634657755494118, 0.03335030749440193, -0.0016032959101721644, -0.02959796041250229, -0.006172086577862501, -0.06364963948726654, 0.08493632823228836, -0.02197052352130413, -0.0064394851215183735, 0.06354443728923798, -0.006711267400532961, 0.022110799327492714, 0.03114098124206066, -0.02598588727414608, -0.022917378693819046, 0.001642748131416738, 0.00988936610519886, -0.04867531731724739, 0.040083494037389755, 0.04096021130681038, -0.022794637829065323, -0.04176678881049156, -0.052217256277799606, 0.021479561924934387, 0.028019869700074196, 0.006895377766340971, -0.016289398074150085, 0.012773764319717884, 0.009722789749503136, 0.055829327553510666 ]
30,266
networkx.algorithms.chordal
NetworkXTreewidthBoundExceeded
Exception raised when a treewidth bound has been provided and it has been exceeded
class NetworkXTreewidthBoundExceeded(nx.NetworkXException): """Exception raised when a treewidth bound has been provided and it has been exceeded"""
null
[ -0.036469459533691406, 0.017590751871466637, 0.018149996176362038, 0.036435566842556, 0.0028809518553316593, 0.03890979662537575, -0.06995628774166107, -0.019810780882835388, 0.046298589557409286, -0.08968233317136765, 0.06555012613534927, -0.002688182285055518, -0.007270166650414467, -0.029555175453424454, -0.012337252497673035, 0.019742993637919426, 0.022285008803009987, 0.02152240462601185, 0.020183609798550606, 0.043417636305093765, -0.01921764202415943, -0.022606998682022095, -0.007282876409590244, -0.017980528995394707, -0.003664740128442645, 0.02799607254564762, -0.015887601301074028, 0.02604719251394272, 0.03833360597491264, 0.007931090891361237, -0.10845936089754105, -0.007854830473661423, -0.0046815467067062855, 0.009396987035870552, 0.024301676079630852, 0.018810920417308807, 0.004948458168655634, 0.009930809959769249, -0.0402994304895401, -0.03130069375038147, -0.06836329400539398, -0.05250110849738121, -0.014650487340986729, 0.014031929895281792, 0.05002687871456146, -0.059381499886512756, 0.04890839383006096, 0.034740887582302094, -0.06812603771686554, -0.008096321485936642, -0.020081927999854088, -0.00543567817658186, 0.0353170782327652, 0.054127998650074005, -0.014006509445607662, 0.03592716157436371, -0.022895092144608498, 0.09910473972558975, 0.05239942669868469, -0.07266777008771896, -0.025538789108395576, 0.04928122088313103, -0.011405179277062416, -0.03411385789513588, -0.010642575100064278, -0.021064842119812965, -0.08270025998353958, 0.00171797932125628, -0.05900866910815239, -0.012896495871245861, 0.04202800244092941, 0.04572239890694618, -0.04928122088313103, 0.021793551743030548, 0.01380314864218235, -0.00980370957404375, -0.005181476473808289, 0.0353170782327652, -0.00020852476882282645, 0.00718966918066144, 0.05317898094654083, 0.01921764202415943, 0.038062456995248795, 0.015201257541775703, 0.042265258729457855, -0.01694677583873272, -0.015209730714559555, 0.0375540517270565, 0.01264229416847229, -0.03796077519655228, -0.023149294778704643, 0.03694396838545799, -0.0007710782811045647, -0.0031224433332681656, 0.019200695678591728, 0.01948879100382328, 0.01126113161444664, -0.04382435977458954, -0.01065104827284813, -0.07632827758789062, -0.01526057068258524, 0.01816694252192974, -0.03306315839290619, 0.0218104999512434, -0.025979405269026756, -0.011388232931494713, 0.021556297317147255, -0.046569738537073135, -0.043926041573286057, 0.01352352648973465, -0.06731259077787399, -0.005164529662579298, -0.00022984063252806664, 0.03411385789513588, 0.00171797932125628, 0.05084032565355301, -0.01616722345352173, 0.013065963983535767, 0.051585983484983444, 0.005567015614360571, 0.0700918585062027, 0.02269173227250576, -0.028911197558045387, -0.018014421686530113, -0.01060020737349987, 0.06361819058656693, 0.0171077698469162, 0.012540613301098347, 0.003800314385443926, -0.011498386971652508, 0.0067405798472464085, 0.0032071771565824747, -0.04382435977458954, 0.020285289734601974, 0.0032453073654323816, 0.047010354697704315, -0.008142925798892975, 0.011337392032146454, -0.00687191728502512, -0.06531286984682083, 0.016751887276768684, 0.048874497413635254, 0.010998456738889217, 0.023318761959671974, 0.01750601828098297, 0.030843131244182587, -0.01481995452195406, -0.02384411171078682, 0.0673464834690094, -0.012998176738619804, -0.01148143969476223, -0.01877702586352825, -0.039384305477142334, -0.03931651636958122, -0.015802867710590363, 0.05006077513098717, -0.0016110028373077512, -0.03799466788768768, 0.011710221879184246, -0.0003598541661631316, -0.09056356549263, -0.04033332318067551, 0.019997194409370422, -0.04233304411172867, -0.02897898480296135, -0.03277506306767464, -0.0022496844176203012, -0.03411385789513588, -0.034588366746902466, 0.057991862297058105, 0.05836469307541847, -0.014294604770839214, -0.018590612336993217, -0.03118206560611725, -0.02252226322889328, -0.01882786676287651, -0.009396987035870552, 0.016912881284952164, -0.03721511736512184, 0.015641873702406883, 0.03772352263331413, -0.036435566842556, 0.02677590399980545, -0.03901147469878197, 0.009913863614201546, -0.00629149004817009, 0.04284144565463066, -0.009422406554222107, -0.009058050811290741, 0.005736483260989189, 0.011769535019993782, -0.04118066281080246, -0.00029656855622306466, 0.008053954690694809, 0.010074857622385025, -0.05117926001548767, 0.044129401445388794, 0.00784211978316307, 0.029606016352772713, 0.05256889760494232, -0.046942565590143204, 0.033097051084041595, 0.050874218344688416, -0.012633820995688438, 0.005380601156502962, -0.006494851317256689, -0.01809915527701378, -0.029351813718676567, -0.006723633036017418, 0.017268763855099678, -0.0524333231151104, -0.01683662086725235, 0.038401391357183456, 0.07422687113285065, -0.00239585037343204, 0.02667422406375408, -0.06378766149282455, -0.00665160920470953, 0.017844954505562782, -0.04185853525996208, 0.020725905895233154, 0.010007070377469063, 0.051314834505319595, -0.05585657060146332, 0.03609663248062134, -0.04839998856186867, 0.012989702634513378, 0.013218484818935394, 0.04758654534816742, 0.002950857160612941, 0.055958252400159836, 0.04155349358916283, -0.026453915983438492, 0.011379759758710861, 0.04114677011966705, -0.04819662868976593, 0.018912600353360176, -0.051755450665950775, 0.04009607061743736, -0.02423388883471489, -0.05172155797481537, -0.020675064995884895, -0.04555293172597885, -0.02902982570230961, 0.028335006907582283, 0.00886316318064928, 0.0051179262809455395, 0.059652648866176605, 0.0013324401807039976, 0.01694677583873272, -0.061855729669332504, -0.02203080803155899, -0.055517636239528656, -0.03141932189464569, 0.005961027927696705, -0.032537806779146194, -0.07700614631175995, -0.05911035090684891, -0.0068422602489590645, 0.015006368979811668, -0.00630843685939908, 0.0540941059589386, -0.05419578775763512, 0.04663752391934395, 0.03218192607164383, -0.0017984764417633414, -0.03562211990356445, 0.03748626634478569, -0.004198563285171986, 0.00429388927295804, 0.05927981808781624, 0.08385264128446579, 0.01354894693940878, -0.014896214939653873, -0.048772819340229034, -0.010218905285000801, 0.014514912851154804, 0.019014282152056694, -0.010481580160558224, 0.020471705123782158, -0.020115822553634644, -0.03935041278600693, -0.050433602184057236, 0.042502511292696, -0.07185432314872742, -0.01794663444161415, 0.017090823501348495, -0.04440055042505264, -0.029622962698340416, -0.003217768855392933, -0.03118206560611725, 0.00833357684314251, 0.010761202313005924, 0.0173873919993639, -0.03391049802303314, -0.07246440649032593, 0.006261833477765322, -0.034588366746902466, 0.01826862432062626, 0.0695495679974556, 0.04067226126790047, -0.013455739244818687, -0.0402994304895401, -0.002048441441729665, 0.04951847717165947, 0.008719115518033504, 0.07551483064889908, 0.01899733394384384, 0.02809775248169899, 0.003895639907568693, -0.018116101622581482, -0.01333711203187704, -0.008744535967707634, -0.006189809646457434, 0.06432995945215225, 0.05538206174969673, 0.04328206181526184, -0.0010951852891594172, -0.03880811482667923, 0.06754984706640244, -0.0025992116425186396, 0.03174130991101265, 0.0047535705380141735, -0.032537806779146194, -0.10052827000617981, 0.03738458454608917, 0.0711764544248581, 0.018302517011761665, -0.021708818152546883, -0.030843131244182587, -0.020505597814917564, -0.017573805525898933, -0.008041244931519032, -0.021234309300780296, -0.07002407312393188, 0.01975993998348713, 0.07070194184780121, 0.03052114136517048, 0.018234729766845703, -0.007693835999816656, 0.01194747630506754, 0.0502302423119545, 0.020573385059833527, 0.019234590232372284, 0.07273555546998978, -0.033266518265008926, 0.0248439721763134, -0.02384411171078682, 0.03230055421590805, 0.042638085782527924, -0.044468335807323456, 0.07680278271436691, 0.01650615967810154, -0.01777716726064682, 0.029334867373108864, 0.017794113606214523, -0.002149062929674983, 0.025759097188711166, 0.009879969991743565, 0.05151819437742233, -0.04074004665017128, -0.012625347822904587, -0.02136988379061222, 0.04036721959710121, -0.04012996330857277, 0.008257316425442696, -0.00021739535441156477, 0.03285979852080345, 0.02269173227250576, 0.014896214939653873, -0.05338234081864357, -0.09463079273700714, -0.06683807820081711, 0.03599495068192482, 0.008812323212623596, 0.07226105034351349, -0.07612491399049759, -0.006325383670628071, -0.002885188441723585, 0.04460391029715538, 0.005855110939592123, -0.016353636980056763, 0.024996493011713028, -0.05534816533327103, 0.003580006305128336, -0.015167363919317722, -0.010973037220537663, -0.026098033413290977, 0.053517915308475494, -0.01772632636129856, 0.021844392642378807, -0.02389495261013508, 0.03545265272259712, 0.04351931810379028, -0.06866833567619324, 0.011489913798868656, 0.05036581680178642, -0.009515614248812199, 0.03345293551683426, -0.01226099207997322, -0.055449847131967545, 0.04023164510726929, -0.059313710778951645, 0.07863303273916245, 0.03450363501906395, -0.010049437172710896, 0.027148732915520668, 0.03470699489116669, 0.011227237991988659, 0.013311691582202911, -0.025860778987407684, 0.009185152128338814, -0.0018662635702639818, 0.034808676689863205, -0.027199573814868927, -0.010507000610232353, 0.008075138553977013, -0.001075590611435473, 0.025911619886755943, -0.039282623678445816, 0.021505458280444145, -0.02169187180697918, 0.047620438039302826, 0.021386830136179924, 0.006499088369309902, -0.048061054199934006, -0.03514761105179787, -0.0700918585062027, 0.02389495261013508, 0.02902982570230961, -0.05646665394306183, -0.004956931807100773, -0.027402935549616814, -0.04460391029715538, 0.004162551835179329, -0.03174130991101265, -0.05636497214436531, 0.009405460208654404, 0.03330041468143463, 0.0234543364495039, 0.01876007951796055, 0.011278078891336918, 0.08954676240682602, -0.01446407288312912, 0.03802856430411339, -0.0491456463932991, 0.013726888224482536, 0.002777152694761753, -0.04046889767050743, -0.0030038158874958754, 0.024301676079630852, -0.06795656681060791, 0.04521399736404419, 0.01330321840941906, -0.03619831055402756, -0.04962015897035599, -0.10696804523468018, -0.007774333003908396, -0.04704424738883972, 0.01662478595972061, -0.006338093895465136, 0.0375201590359211, -0.05697505921125412, 0.007210852578282356, -0.054568614810705185, 0.034588366746902466, -0.000025569108402123675, 0.007265929598361254, 0.03274117037653923, -0.0011110729537904263, 0.008418310433626175, -0.00803277175873518, -0.0234543364495039, -0.05436525493860245, 0.0651772990822792, 0.006359277293086052, 0.021573243662714958, 0.04328206181526184, 0.0734134316444397, -0.03346988186240196, 0.017268763855099678, -0.015430038794875145, 0.030927864834666252, -0.0001139935411629267, -0.03857085853815079, 0.014150557108223438, -0.07483696192502975, 0.003253780771046877, -0.03333430737257004, 0.031775202602148056, -0.03157184273004532, -0.0014606001786887646, -0.012981229461729527, 0.03775741532444954, 0.06138122081756592, 0.011311972513794899, -0.028911197558045387, 0.007482001092284918, 0.018031368032097816, -0.01305748987942934, -0.01727723702788353, -0.013752307742834091, 0.009871496818959713, -0.03880811482667923, 0.020878426730632782, 0.07151538878679276, -0.003287674393504858, 0.03887590020895004, 0.043688785284757614, -0.042095787823200226, 0.009913863614201546, 0.006062708795070648, 0.05212828144431114, 0.08981790393590927, 0.025437109172344208, -0.006672792602330446, 0.011828849092125893, 0.030453354120254517, 0.02467450499534607, 0.022505316883325577, 0.03731679916381836, 0.04724760726094246, 0.0375201590359211, -0.0700918585062027, 0.014548806473612785, -0.030487248674035072, 0.038503073155879974, -0.038503073155879974, 0.019183749333024025, 0.08093779534101486, 0.024877864867448807, 0.0325717031955719, 0.05050139129161835, 0.0020632699597626925, 0.004541735630482435, -0.01660783961415291, -0.013252378441393375, 0.028843410313129425, -0.011684801429510117, -0.01236267201602459, -0.04992520064115524, -0.06683807820081711, 0.02986021712422371, -0.017709380015730858, -0.020403917878866196, 0.02462366409599781, 0.0284366887062788, 0.05161987617611885, -0.04202800244092941, -0.04541735723614693, -0.019861619919538498, 0.007723492570221424, 0.05911035090684891, -0.007702309172600508, 0.030775343999266624, -0.005456861574202776, -0.008664038963615894, 0.0064482479356229305, 0.01848893240094185, -0.004524788819253445, 0.00019674147188197821, -0.03548654541373253, 0.05934760719537735, -0.02611497975885868, -0.00828273594379425, -0.04548514261841774, -0.07571819424629211, -0.028351955115795135, -0.004520552232861519, 0.044366657733917236, -0.03680839389562607, 0.046739205718040466, -0.02114957571029663, 0.003213532269001007, -0.023488231003284454, -0.047112032771110535, -0.02572520449757576, 0.01288802269846201, -0.026979265734553337, -0.07578597962856293, 0.02120041474699974, -0.008435257710516453, -0.0030504195019602776, -0.004162551835179329, 0.021725766360759735, 0.04033332318067551, -0.049552369862794876, -0.010888302698731422, -0.033266518265008926, 0.03333430737257004, -0.00041334243724122643, 0.008664038963615894, 0.01782800815999508, -0.029555175453424454, 0.050874218344688416, 0.034029122442007065, -0.04348542541265488, -0.010040963999927044, 0.03291063755750656, 0.00763028534129262, 0.00926988571882248, 0.0529756173491478, 0.007308296859264374, 0.059652648866176605, 0.017624646425247192, -0.04107898101210594, 0.018251676112413406, -0.004660363309085369, -0.035079825669527054, -0.053958531469106674, 0.03169047087430954, -0.00010035668674390763, -0.017209449782967567, -0.025640470907092094, -0.11103527247905731, -0.026250554248690605, -0.0014012864558026195, 0.010295165702700615, 0.03989270702004433, -0.0019753584638237953, 0.026420021429657936, 0.00277503440156579, -0.03504592925310135, -0.014430179260671139, 0.007884487509727478, 0.045010633766651154, 0.058873094618320465, -0.022149434313178062, -0.05565321072936058, -0.0036393199115991592, 0.0009913863614201546, -0.02748766914010048, -0.007943800650537014, -0.05450082942843437, -0.059923797845840454, 0.006160152610391378, 0.023539070039987564, 0.022285008803009987, -0.0375540517270565, -0.01887870766222477, -0.01772632636129856, 0.03074144944548607, -0.07517589628696442, -0.006846497301012278, 0.0007779629086144269, -0.008236132562160492, -0.006143205799162388, 0.007659942377358675, 0.0248439721763134, 0.01660783961415291, 0.034300271421670914, -0.006499088369309902, -0.009922336786985397, -0.04158738628029823, 0.02174271270632744, 0.03948598727583885, -0.03901147469878197, -0.008075138553977013, 0.007015964947640896, -0.05558542162179947, -0.013133750297129154, -0.018471984192728996, 0.0436209999024868, 0.001454245182685554, -0.007299823220819235, -0.0026987739838659763, 0.011413653381168842, -0.08791986852884293, -0.048874497413635254, -0.012091523967683315, 0.0001854877482401207, -0.06297421455383301, -0.01992940716445446, 0.0008182114688679576, -0.01222709845751524, -0.007117645349353552, -0.054026320576667786, 0.0000922142862691544, -0.035689909011125565, 0.008604724891483784, -0.004181616939604282, 0.01176106184720993, -0.0612795390188694, -0.028606155887246132, 0.02738598920404911, 0.002936028875410557, -0.07714171707630157, 0.051314834505319595, 0.01755685918033123, 0.03836749866604805, 0.013506580144166946, -0.008244605734944344, 0.029284026473760605, 0.0607372410595417, -0.09476636350154877, -0.08880110085010529, -0.016082489863038063, 0.003510100767016411, 0.037011757493019104, -0.03280895575881004, 0.01377772819250822, 0.026572544127702713, -0.05382295697927475, -0.02677590399980545, 0.009396987035870552, -0.015624926425516605, -0.059144243597984314, 0.010142644867300987, 0.0031118516344577074, 0.027233468368649483, 0.02152240462601185, -0.024335568770766258, 0.028419742360711098, -0.014692854136228561, -0.04565461352467537, 0.031012598425149918, 0.02560657635331154, 0.0375201590359211, -0.045247890055179596, 0.012718554586172104, -0.01673494093120098, 0.049992986023426056, 0.017912741750478745, 0.014921635389328003, -0.02694537304341793, 0.022827306762337685, 0.029351813718676567, -0.0585002675652504, -0.02152240462601185, 0.01324390433728695, 0.06395713239908218, 0.013125277124345303, -0.023691590875387192, 0.034147750586271286, 0.03150405362248421, 0.04423108324408531, -0.02081063948571682, 0.020251397043466568, 0.04941679537296295, 0.03663892671465874, 0.0861574038863182, -0.005274683702737093, -0.017133189365267754, -0.09544423967599869, 0.06090670824050903, 0.01678577996790409, -0.0023767852690070868, 0.08663191646337509, -0.01352352648973465, -0.004359557759016752, 0.034300271421670914, 0.0016226536827161908, 0.02423388883471489, -0.013701467774808407, 0.0419602133333683, -0.012277938425540924, -0.0008404541295021772, -0.007681125774979591, -0.03677450120449066, -0.038062456995248795, 0.03555433452129364, -0.02053949050605297, -0.038842007517814636, 0.025538789108395576, 0.004918801598250866, 0.003518574172630906, 0.05927981808781624, 0.03019915334880352 ]
30,267
networkx.exception
NetworkXUnbounded
Exception raised by algorithms trying to solve a maximization or a minimization problem instance that is unbounded.
class NetworkXUnbounded(NetworkXAlgorithmError): """Exception raised by algorithms trying to solve a maximization or a minimization problem instance that is unbounded."""
null
[ 0.005874231457710266, 0.01918540522456169, 0.023150619119405746, 0.04335762932896614, -0.025263091549277306, -0.017220113426446915, -0.07473304122686386, -0.06697576493024826, 0.0600149929523468, -0.06936527788639069, 0.03094252571463585, 0.01878715120255947, -0.02999018132686615, -0.01657944545149803, -0.05108027532696724, 0.061642635613679886, 0.005450005643069744, 0.03740115091204643, 0.008640358224511147, 0.050041355192661285, -0.04702848196029663, -0.004023653920739889, -0.02228485234081745, 0.03246627748012543, 0.01072685793042183, 0.033401306718587875, 0.010761488229036331, -0.019981911405920982, -0.006709697190672159, -0.029747767373919487, -0.0946803167462349, 0.018336953595280647, 0.007718316279351711, -0.03972140699625015, 0.02053600177168846, 0.008722606115043163, 0.04927947744727135, 0.042561125010252, -0.062058206647634506, -0.049452632665634155, -0.059703316539525986, -0.07646457105875015, -0.04619734734296799, -0.004441386554390192, 0.06666408479213715, -0.03913268446922302, 0.059876471757888794, 0.057348430156707764, -0.06330490857362747, 0.000031908261007629335, -0.011774436570703983, -0.026838788762688637, 0.0483444482088089, 0.03695094957947731, -0.04484675079584122, 0.09544219821691513, -0.012250607833266258, 0.09391844272613525, 0.03999845311045647, -0.04408487305045128, -0.036292966455221176, 0.03740115091204643, 0.0016211493639275432, -0.052707917988300323, -0.020587947219610214, 0.03622370585799217, -0.05596320331096649, -0.01711622066795826, -0.0696769580245018, 0.01631971448659897, 0.03968677669763565, 0.0222155898809433, -0.06725280731916428, 0.025228461250662804, 0.06642167270183563, 0.007242144085466862, 0.010224713012576103, 0.03160050883889198, -0.023098673671483994, -0.005203261971473694, 0.04235333949327469, -0.01899493671953678, 0.01754910498857498, -0.01975681073963642, 0.02538429945707321, -0.053123485296964645, 0.023670079186558723, 0.006350403651595116, 0.02725435607135296, -0.02263115905225277, -0.04758257418870926, -0.0014285161159932613, -0.00900398101657629, 0.027791133150458336, 0.021211300045251846, 0.0716162770986557, 0.015194217674434185, -0.05769473686814308, 0.01479596458375454, -0.10389208793640137, 0.014969117939472198, 0.024293432012200356, -0.05090712010860443, 0.019098827615380287, -0.024899469688534737, -0.02261384390294552, 0.030734742060303688, -0.04529694840312004, -0.02825864776968956, -0.029505351558327675, -0.05353905260562897, 0.05596320331096649, -0.00813821330666542, 0.021540291607379913, -0.0033461907878518105, 0.04547010362148285, -0.031444672495126724, 0.018839098513126373, 0.026752211153507233, 0.04799814149737358, 0.013497313484549522, 0.032587483525276184, -0.06150411441922188, -0.0023722026962786913, 0.0026384261436760426, 0.028760792687535286, 0.026215435937047005, 0.008969349786639214, 0.01876983605325222, -0.022302167490124702, -0.007826536893844604, -0.023704711347818375, -0.05250013247132301, 0.04411950334906578, -0.014769990928471088, 0.02863958477973938, -0.010389208793640137, -0.00813821330666542, 0.011341552250087261, -0.018042592331767082, 0.0001918215857585892, 0.01335013285279274, 0.01265751849859953, 0.02242337539792061, 0.05554763600230217, 0.01006021723151207, -0.005034437403082848, -0.04235333949327469, 0.01859668269753456, -0.02978239767253399, -0.027946971356868744, 0.004705445840954781, -0.012588257901370525, -0.04910632595419884, 0.015150928869843483, 0.026561742648482323, 0.042457230389118195, -0.05125342682003975, -0.02380860224366188, -0.040517911314964294, -0.07026568055152893, 0.01970486529171467, 0.020622579380869865, -0.011177056469023228, -0.017886754125356674, -0.04398098215460777, 0.016111930832266808, -0.05121879652142525, -0.03639686107635498, 0.05180751904845238, -0.010025586001574993, -0.03618907555937767, -0.07570269703865051, -0.022509951144456863, -0.01074417307972908, -0.031652454286813736, 0.005908862221986055, 0.03972140699625015, -0.01935855858027935, 0.00831136666238308, 0.02981702797114849, -0.015124956145882607, -0.013402079232037067, -0.045954931527376175, -0.015661731362342834, 0.033003050833940506, 0.02978239767253399, -0.011289606802165508, -0.006082015577703714, -0.03622370585799217, 0.0022380086593329906, -0.04145294055342674, 0.004346152301877737, 0.011722490191459656, 0.03618907555937767, -0.037435781210660934, 0.012986510992050171, 0.04910632595419884, 0.04027549922466278, 0.05056081339716911, 0.005116685293614864, 0.027548717334866524, 0.040517911314964294, -0.002458779374137521, -0.012363158166408539, -0.007038688752800226, -0.06638704240322113, -0.061261698603630066, 0.018475474789738655, 0.004129710141569376, -0.027981601655483246, 0.018111852928996086, -0.004231438040733337, 0.04581641033291817, -0.011774436570703983, 0.0290205217897892, -0.0034977002069354057, -0.004406755790114403, 0.03753967210650444, -0.005809299182146788, 0.007991032674908638, -0.021713444963097572, 0.07417894899845123, -0.06995400041341782, 0.04529694840312004, -0.006731341127306223, 0.011142426170408726, 0.02048405632376671, 0.04758257418870926, -0.035738877952098846, 0.07438673079013824, -0.009125187993049622, -0.03038843534886837, -0.024847524240612984, 0.03885563835501671, -0.0031925172079354525, 0.0005143199232406914, -0.04581641033291817, 0.022683104500174522, -0.002984733087942004, -0.05558226630091667, -0.03885563835501671, -0.04754794389009476, 0.011540679261088371, 0.03930583968758583, 0.005475978832691908, -0.00263193272985518, 0.038232285529375076, 0.008882773108780384, 0.01715085096657276, -0.04727089777588844, -0.0483444482088089, -0.06444772332906723, -0.04609345644712448, 0.022492635995149612, -0.06119243800640106, -0.0755641758441925, -0.05554763600230217, 0.031063733622431755, 0.025799866765737534, 0.012934564612805843, 0.018336953595280647, -0.06517496705055237, 0.06565979868173599, 0.0032249833457171917, 0.015098982490599155, -0.03622370585799217, 0.03130614757537842, 0.025245776399970055, 0.027150465175509453, 0.06811857968568802, 0.051391951739788055, 0.009549413807690144, -0.02730630338191986, -0.018458159640431404, 0.030267227441072464, -0.006220538634806871, 0.0619543120265007, -0.013592547737061977, 0.008185830898582935, 0.0014469136949628592, -0.024466585367918015, -0.04720163717865944, 0.03156587854027748, -0.05558226630091667, 0.013462682254612446, -0.025817183777689934, -0.056967493146657944, -0.02285625785589218, 0.0011200865264981985, 0.024847524240612984, 0.019878018647432327, 0.0030128704383969307, 0.014466973021626472, 0.012094770558178425, -0.026821473613381386, 0.013055771589279175, -0.03390344977378845, 0.04283817112445831, 0.06434383243322372, 0.0405871756374836, 0.01578293927013874, -0.041487570852041245, -0.018354268744587898, 0.02360081858932972, -0.025626713410019875, 0.06351269781589508, 0.026440534740686417, 0.0015702855307608843, 0.037643566727638245, -0.005571213085204363, -0.03504626452922821, 0.017505817115306854, -0.011774436570703983, 0.04214555397629738, 0.03489042446017265, 0.06261229515075684, -0.036500751972198486, -0.00997364055365324, 0.05440482124686241, -0.029539981856942177, 0.05281180888414383, -0.03288184478878975, -0.04626660794019699, -0.12397788465023041, 0.032829899340867996, 0.01735863648355007, 0.030821317806839943, -0.025037992745637894, -0.01343670953065157, -0.01016410905867815, -0.008268078789114952, -0.0014220229350030422, -0.006882850546389818, -0.06839562207460403, 0.030319172888994217, 0.08207474648952484, 0.020605264231562614, 0.040344759821891785, -0.03892490267753601, 0.018856413662433624, 0.059495534747838974, -0.0016438758466392756, 0.02209438383579254, 0.045366209000349045, -0.028016231954097748, -0.010960615240037441, -0.04280353710055351, 0.01684783212840557, 0.0037920610047876835, -0.05707138404250145, 0.08484520018100739, -0.022371428087353706, 0.01664004847407341, 0.022146329283714294, 0.043634675443172455, 0.01481327973306179, -0.013852277770638466, 0.027600664645433426, 0.03263942897319794, -0.026215435937047005, -0.034180495887994766, -0.023929810151457787, 0.006311444099992514, -0.0193758737295866, -0.008978007361292839, 0.00565346097573638, 0.004242260009050369, 0.05828345939517021, -0.031236886978149414, -0.03156587854027748, -0.08027394860982895, -0.07688014209270477, 0.02824133075773716, -0.03196413069963455, 0.059495534747838974, -0.055062804371118546, 0.007436941843479872, -0.04231870919466019, 0.03778208792209625, 0.0367777980864048, -0.019098827615380287, -0.005588528234511614, -0.04508916288614273, -0.011765778996050358, -0.012285239063203335, -0.013904224149882793, 0.004584238398820162, 0.060465194284915924, 0.011826382018625736, 0.02088230848312378, -0.04910632595419884, 0.04553936421871185, 0.03719336539506912, -0.05769473686814308, 0.013402079232037067, 0.07050809264183044, -0.0328645296394825, -0.0025410272646695375, -0.05398925393819809, -0.06327027827501297, 0.061469484120607376, -0.019826073199510574, 0.04914095625281334, 0.04747868329286575, -0.021349823102355003, 0.037262625992298126, 0.04370393604040146, 0.02280431240797043, 0.0044110845774412155, -0.01238047331571579, 0.009809143841266632, -0.02554013766348362, -0.007384995464235544, -0.03792060911655426, -0.021574921905994415, -0.000829513359349221, -0.023877864703536034, 0.03509820997714996, -0.0522230863571167, 0.037851348519325256, -0.038059134036302567, 0.054093144834041595, -0.00759278004989028, -0.031271517276763916, -0.05250013247132301, -0.005359100177884102, -0.08387554436922073, -0.00769667187705636, 0.016458237543702126, -0.031410038471221924, 0.01297785248607397, 0.0074802301824092865, -0.07722645252943039, 0.005034437403082848, -0.037227995693683624, -0.05592857301235199, -0.021990491077303886, 0.026267381384968758, 0.015618443489074707, 0.030423065647482872, 0.03094252571463585, 0.06351269781589508, -0.005636145360767841, 0.038578592240810394, -0.04508916288614273, 0.02339303493499756, 0.0015832721255719662, -0.04096811264753342, 0.02766992524266243, 0.02730630338191986, -0.07286298274993896, 0.04900243133306503, 0.023652764037251472, -0.007735631428658962, -0.017956014722585678, -0.09952861815690994, 0.0004656205128412694, -0.02670026570558548, 0.021574921905994415, -0.010796119458973408, 0.0202935878187418, -0.023895179852843285, 0.005839600693434477, -0.05305422469973564, 0.04709774628281593, 0.0010275576496496797, -0.005398059729486704, 0.029055152088403702, -0.02263115905225277, -0.0006612298311665654, 0.00021630656556226313, -0.03444022685289383, -0.07708792388439178, -0.0002735283924266696, -0.004999806638807058, 0.032379698008298874, 0.044985271990299225, 0.0832521915435791, -0.039790667593479156, 0.04934874176979065, -0.027981601655483246, 0.029713135212659836, 0.0042379312217235565, -0.020189695060253143, -0.002054033102467656, -0.05513206496834755, -0.028189385309815407, -0.01778286136686802, -0.006017083302140236, -0.030128704383969307, 0.004891585558652878, 0.009705252014100552, 0.051184166222810745, 0.051391951739788055, 0.005536582320928574, -0.04758257418870926, -0.011350209824740887, 0.016969040036201477, -0.04598956182599068, 0.0019858540035784245, 0.012588257901370525, -0.03698558360338211, -0.045366209000349045, 0.05308885499835014, 0.009081900119781494, 0.01711622066795826, 0.028102809563279152, 0.059322379529476166, -0.04858686402440071, -0.007216170895844698, -0.00730707636103034, 0.05589394271373749, 0.04031012952327728, 0.034319017082452774, 0.00542403245344758, 0.0159907229244709, -0.013376105576753616, 0.027444826439023018, 0.006817917805165052, 0.02555745281279087, 0.03312426060438156, 0.033418621867895126, 0.0036903333384543657, 0.01188698597252369, -0.02167881466448307, -0.0008544041775166988, -0.04879464954137802, -0.014492945745587349, 0.05575541779398918, 0.047686465084552765, 0.017765546217560768, 0.07230889052152634, 0.02863958477973938, -0.028604954481124878, 0.026596372947096825, -0.003136242274194956, 0.018250375986099243, -0.07092366367578506, 0.008597070351243019, -0.038786377757787704, 0.009523441083729267, 0.04179924726486206, -0.002367873676121235, 0.010319947265088558, 0.01816380023956299, -0.03303768113255501, 0.09010906517505646, -0.03345325216650963, -0.014839252457022667, -0.005519267171621323, 0.027600664645433426, 0.022180959582328796, -0.02590375952422619, 0.0774342343211174, -0.015817569568753242, -0.0017585899913683534, 0.049452632665634155, 0.01586085744202137, 0.015133613720536232, -0.02244069054722786, -0.023323772475123405, 0.03521941602230072, -0.020016541704535484, -0.028933946043252945, -0.019029567018151283, -0.04598956182599068, -0.04134904965758324, 0.04360004514455795, 0.04879464954137802, -0.00018613997963257134, 0.007618752773851156, 0.007900127209722996, -0.018683260306715965, -0.03118494153022766, -0.023548873141407967, -0.030907895416021347, 0.008103583008050919, -0.056621186435222626, -0.045954931527376175, 0.017263401299715042, -0.018613997846841812, -0.007852509617805481, -0.03733189031481743, 0.033574458211660385, 0.03715873509645462, -0.06372047960758209, -0.020587947219610214, -0.017904069274663925, 0.043634675443172455, 0.004688130225986242, 0.0003298032679595053, 0.014744018204510212, -0.008484520018100739, 0.009116530418395996, 0.06565979868173599, -0.03951362147927284, -0.02147103101015091, 0.02053600177168846, -0.020051172003149986, 0.006181579083204269, 0.04346152022480965, 0.021817337721586227, 0.029851658269762993, 0.04508916288614273, -0.0017488501034677029, -0.04037939012050629, -0.03715873509645462, -0.009731225669384003, -0.027998916804790497, 0.02765261009335518, 0.003724964102730155, -0.020189695060253143, 0.006129633169621229, -0.07445599138736725, -0.03231043741106987, -0.001478297752328217, 0.02978239767253399, -0.006185907870531082, 0.03601592406630516, 0.005086383316665888, 0.019618287682533264, -0.027340933680534363, -0.02361813373863697, 0.02244069054722786, 0.03798987343907356, 0.0338168740272522, 0.003079967340454459, -0.039548251777887344, 0.05163436755537987, -0.002182815922424197, 0.010025586001574993, -0.01122034527361393, -0.02280431240797043, -0.07757275551557541, -0.004391605034470558, 0.06302786618471146, 0.035531092435121536, -0.04522768780589104, 0.016891121864318848, -0.05308885499835014, 0.02593838982284069, -0.04335762932896614, -0.00967062171548605, 0.006657751277089119, -0.008216132409870625, -0.03229312226176262, 0.0039089396595954895, 0.028397168964147568, 0.0007321145385503769, 0.01084806490689516, -0.01899493671953678, -0.014432341791689396, -0.04806740581989288, 0.008406600914895535, 0.018475474789738655, -0.03577350825071335, 0.014189926907420158, 0.024501215666532516, -0.026959996670484543, -0.0261288583278656, -0.035877399146556854, 0.024830207228660583, 0.020241640508174896, -0.01715085096657276, 0.013107717968523502, 0.0023159277625381947, -0.07147775590419769, -0.0541277751326561, 0.012172689661383629, 0.011506048031151295, -0.057729367166757584, 0.039375100284814835, -0.013497313484549522, -0.035132840275764465, 0.0025128896813839674, -0.02053600177168846, 0.008631700649857521, -0.04155683517456055, 0.012138058431446552, 0.08976276218891144, 0.014449656940996647, -0.07016178965568542, -0.02533235400915146, 0.029488036409020424, 0.006354732438921928, -0.058144938200712204, 0.036673907190561295, 0.02455316297709942, 0.02067452482879162, -0.009185791946947575, 0.012363158166408539, 0.015021063387393951, 0.0696769580245018, -0.04162609577178955, -0.03135809302330017, -0.035340625792741776, 0.01580025441944599, 0.055409111082553864, -0.012830672785639763, 0.051772888749837875, 0.0328645296394825, -0.031115679070353508, 0.012510338798165321, 0.013410736806690693, 0.010562362149357796, -0.04089885205030441, 0.01657944545149803, 0.027392879128456116, 0.0004853708378504962, 0.028501061722636223, -0.010995245538651943, -0.002034553326666355, -0.02048405632376671, 0.000013603707884612959, 0.05336590111255646, 0.018839098513126373, 0.037089474499225616, -0.05630951002240181, 0.025851814076304436, -0.02673489600419998, 0.006064700428396463, 0.01915077492594719, -0.0280681774020195, -0.012241950258612633, 0.02919367514550686, 0.028864683583378792, -0.10818628966808319, -0.0011958412360399961, 0.04387709125876427, 0.056413400918245316, 0.058699026703834534, -0.03788597881793976, 0.05353905260562897, 0.008952034637331963, 0.0004266609903424978, -0.016787229105830193, 0.044223397970199585, 0.019029567018151283, 0.07417894899845123, 0.04200703278183937, -0.011254975572228432, 0.02339303493499756, -0.061469484120607376, 0.025107253342866898, -0.024241486564278603, -0.020778417587280273, 0.08449889719486237, -0.03927120938897133, 0.03139272332191467, 0.03231043741106987, 0.016189849004149437, 0.04540083929896355, 0.02941877581179142, 0.03352251276373863, -0.025869129225611687, 0.025263091549277306, -0.0022639816161245108, -0.029765082523226738, -0.06642167270183563, -0.011791751720011234, 0.010605650022625923, -0.0020572796929627657, 0.001497777528129518, -0.047894250601530075, -0.01896030455827713, 0.017904069274663925, 0.006939125247299671 ]
30,268
networkx.exception
NetworkXUnfeasible
Exception raised by algorithms trying to solve a problem instance that has no feasible solution.
class NetworkXUnfeasible(NetworkXAlgorithmError): """Exception raised by algorithms trying to solve a problem instance that has no feasible solution."""
null
[ 0.028555667027831078, 0.030587784945964813, 0.018801502883434296, 0.019048891961574554, -0.03044641949236393, -0.030923524871468544, -0.04831138253211975, -0.06672413647174835, 0.05135072395205498, -0.030517101287841797, 0.03320303186774254, 0.003973673097789288, -0.014843292534351349, -0.012678645551204681, -0.047286488115787506, 0.034775711596012115, -0.004784311167895794, 0.02852032519876957, 0.02533962018787861, 0.05350653454661369, -0.02442074939608574, -0.0008465315331704915, -0.009833681397140026, 0.06361410766839981, 0.01744086854159832, 0.039970867335796356, 0.03753232583403587, -0.021593455225229263, -0.007669034413993359, -0.028219925239682198, -0.06725425273180008, 0.0259227491915226, -0.015735656023025513, -0.022158915176987648, -0.0022662526462227106, 0.03901665285229683, 0.03175404295325279, 0.03550020605325699, -0.034280937165021896, -0.029827948659658432, -0.03961745277047157, -0.051598113030195236, -0.052976418286561966, -0.022141244262456894, 0.0401475727558136, -0.0652751475572586, 0.028909077867865562, 0.05350653454661369, -0.07824535667896271, -0.02032117359340191, 0.01794447936117649, -0.0010652049677446485, 0.039334725588560104, 0.011220822110772133, -0.024615125730633736, 0.07591284066438675, -0.005000775679945946, 0.07852808386087418, 0.04700375720858574, -0.05318846553564072, -0.027124349027872086, 0.04862945154309273, -0.00290681142359972, -0.03337973728775978, -0.017582233995199203, 0.006895946338772774, -0.0644269585609436, -0.02496853843331337, -0.047957971692085266, 0.016760550439357758, 0.03362712636590004, 0.041137125343084335, -0.06110488623380661, 0.03366246819496155, 0.04781660437583923, 0.004236523061990738, 0.023484209552407265, 0.0027367318980395794, -0.028926748782396317, -0.016884244978427887, 0.020144468173384666, -0.03760300576686859, -0.020020773634314537, -0.04233872517943382, 0.012873021885752678, -0.03445764258503914, 0.04604954645037651, -0.03926404193043709, 0.007947346195578575, -0.018289055675268173, -0.029810277745127678, -0.0004887021495960653, -0.020020773634314537, -0.0048284875229001045, 0.04149053618311882, 0.0769730731844902, 0.04152587801218033, -0.08057787269353867, -0.0020818158518522978, -0.10595283657312393, 0.007209599018096924, 0.032019101083278656, -0.04986639320850372, 0.04007688909769058, -0.023236820474267006, -0.03288495913147926, -0.007699958048760891, -0.04078371077775955, -0.004404393490403891, -0.041596557945013046, -0.06714822351932526, 0.08856497704982758, -0.004037728998810053, 0.012007162906229496, 0.007836905308067799, 0.030552443116903305, -0.024031996726989746, 0.04534272477030754, -0.012175033800303936, 0.02304244413971901, 0.05032582953572273, 0.04604954645037651, -0.08192083984613419, -0.006944540422409773, 0.020639244467020035, 0.01141519844532013, 0.024014325812458992, 0.004057608544826508, 0.04442385211586952, -0.055096887052059174, -0.0022187628783285618, -0.015603127889335155, -0.05453142896294594, 0.049548324197530746, -0.025445643812417984, 0.01101761031895876, -0.00038433526060543954, -0.02823759615421295, 0.009365410543978214, -0.013535669073462486, 0.02380227856338024, -0.017158139497041702, 0.016486655920743942, 0.02919180877506733, 0.055768370628356934, 0.017370186746120453, -0.008101963438093662, -0.013252939097583294, 0.02267136238515377, -0.028467314317822456, 0.018059339374303818, 0.00815497525036335, -0.03869858384132385, -0.0769730731844902, -0.011388693004846573, 0.020232820883393288, 0.024827172979712486, -0.06085749715566635, 0.0012899527791887522, -0.07930558919906616, -0.08637382090091705, -0.005084711126983166, 0.01919025555253029, 0.033945195376873016, -0.021487433463335037, -0.057111334055662155, 0.0043469639495015144, -0.030552443116903305, -0.03827448934316635, 0.04407044127583504, -0.001240254263393581, -0.04619091376662254, -0.09421956539154053, -0.022971762344241142, 0.007633693050593138, -0.01572682149708271, 0.01352683361619711, 0.0018200703198090196, -0.006520446389913559, -0.009975045919418335, 0.02019747905433178, -0.01644247956573963, -0.028078561648726463, -0.04417646676301956, 0.0066397227346897125, 0.03256689012050629, -0.00036914958036504686, 0.0035319083835929632, -0.010690704919397831, -0.023554891347885132, 0.013774221763014793, -0.045236699283123016, -0.0055353110656142235, 0.027672138065099716, 0.02154044434428215, -0.030340395867824554, 0.008163810707628727, 0.042939525097608566, -0.004691540729254484, 0.028343619778752327, 0.042974866926670074, 0.02726571448147297, 0.04120780527591705, 0.010178257711231709, -0.04449453577399254, 0.018624797463417053, -0.08722200989723206, -0.055945076048374176, 0.011344516649842262, 0.011591904796659946, -0.013650528155267239, 0.002844964386895299, 0.011892304755747318, 0.019596679136157036, 0.010275445878505707, 0.02341352589428425, 0.008163810707628727, -0.013252939097583294, 0.02818458527326584, 0.008128469809889793, 0.003984717186540365, -0.05046719312667847, 0.06085749715566635, -0.017007939517498016, 0.0522695928812027, -0.022282609716057777, -0.003500984748825431, 0.020462539047002792, -0.0038543965201824903, -0.05011378228664398, 0.05516757071018219, -0.020268162712454796, -0.009851351380348206, -0.023113125935196877, 0.039299383759498596, 0.0418086051940918, 0.0005342591321095824, -0.02371392585337162, 0.018077010288834572, -0.0021635424345731735, -0.06743095815181732, -0.05223425105214119, -0.02956289052963257, -0.017953315749764442, 0.037779711186885834, 0.032478537410497665, 0.01514369249343872, 0.033397406339645386, -0.016954926773905754, -0.01277583371847868, -0.01911957375705242, -0.030640795826911926, -0.06820846349000931, -0.04530738294124603, 0.006741328630596399, -0.08538427203893661, -0.05863100290298462, -0.045731477439403534, 0.041384510695934296, 0.027159690856933594, 0.0018598291790112853, 0.0035274906549602747, -0.061034202575683594, 0.02956289052963257, -0.012166198343038559, 0.014843292534351349, -0.050714582204818726, 0.0451660193502903, 0.022724373266100883, 0.010416810400784016, 0.10468055307865143, 0.06294262409210205, 0.027583785355091095, 0.010655363090336323, -0.010840904898941517, 0.03915802016854286, -0.005561816971749067, 0.05248164013028145, -0.004669452551752329, 0.03187773749232292, -0.008671839721500874, -0.02169947884976864, -0.029138796031475067, 0.032937973737716675, -0.06131693348288536, -0.0006212315638549626, -0.002186734927818179, -0.04166724160313606, -0.0071786753833293915, 0.008079875260591507, 0.035782936960458755, 0.04399975761771202, 0.030941195785999298, 0.010726045817136765, 0.017458539456129074, 0.008265417069196701, 0.027248043566942215, -0.03081750124692917, 0.0455901101231575, 0.04495397210121155, 0.05219891294836998, 0.0384865365922451, -0.040041547268629074, -0.046579666435718536, 0.013120410032570362, -0.05046719312667847, 0.05863100290298462, 0.033185359090566635, 0.0355355478823185, 0.033856842666864395, -0.0021480806171894073, -0.03366246819496155, 0.032937973737716675, 0.006149364169687033, 0.0468270517885685, 0.017953315749764442, 0.061917733401060104, -0.036118678748607635, -0.008517222478985786, 0.0409957580268383, -0.04106644168496132, 0.0669008418917656, -0.025587009266018867, -0.027795832604169846, -0.11111264675855637, 0.039970867335796356, 0.032937973737716675, 0.008866216987371445, -0.017052115872502327, 0.007607187144458294, -0.009312398731708527, -0.012042504735291004, 0.0026616319082677364, -0.00775738712400198, -0.09089749306440353, 0.03283194825053215, 0.06887994706630707, 0.0013551131123676896, 0.03120625577867031, -0.007788310758769512, 0.03509378433227539, 0.06333138048648834, -0.003043758450075984, 0.008124051615595818, 0.048947524279356, -0.027248043566942215, -0.02597576193511486, -0.02885606698691845, -0.014074621722102165, 0.013261774554848671, -0.05841895565390587, 0.08623246103525162, -0.012749328278005123, 0.011450539343059063, 0.03081750124692917, 0.05361255630850792, 0.0033706643152981997, 0.0019503909861668944, 0.009595127776265144, 0.041349172592163086, -0.0259227491915226, -0.044777266681194305, -0.033061668276786804, -0.00405539944767952, -0.03546486794948578, -0.035906631499528885, 0.02099265530705452, -0.014401528052985668, 0.068597212433815, -0.023325173184275627, -0.02374926768243313, -0.0673602744936943, -0.06937471777200699, 0.010840904898941517, 0.008128469809889793, 0.06930404156446457, -0.026081785559654236, 0.02931550145149231, -0.04262145236134529, 0.006021252367645502, 0.025799056515097618, -0.02249465510249138, -0.008857381530106068, -0.011918810196220875, -0.026117125526070595, -0.008216822519898415, -0.002152498345822096, 0.020550891757011414, 0.08036582171916962, 0.029386185109615326, 0.02751310169696808, -0.05350653454661369, 0.05340051278471947, 0.012360574677586555, -0.008539310656487942, 0.007558593060821295, 0.05177481845021248, -0.010655363090336323, -0.019720373675227165, -0.04693307727575302, -0.037921078503131866, 0.042974866926670074, -0.014277833513915539, 0.048912182450294495, 0.031435973942279816, -0.002440749667584896, 0.013818398118019104, 0.016592679545283318, 0.0057252696715295315, 0.014754938893020153, 0.0006256491760723293, 0.027636796236038208, -0.004455196671187878, -0.023236820474267006, -0.06580526381731033, 0.012448928318917751, 0.000582577136810869, 0.0045545934699475765, 0.053047098219394684, -0.01378305722028017, 0.04484794661402702, -0.04792262986302376, 0.03859255835413933, -0.008128469809889793, -0.03735562041401863, -0.036578111350536346, -0.018077010288834572, -0.06280126422643661, 0.0034987761173397303, 0.02723037265241146, -0.033609453588724136, 0.00005887894440093078, 0.04650898277759552, -0.07252008467912674, -0.024226373061537743, -0.04039495810866356, -0.04672103002667427, -0.017785444855690002, -0.006299564149230719, 0.05725269764661789, 0.05382460355758667, -0.00378592312335968, 0.05170413479208946, 0.005963822826743126, 0.01554128061980009, -0.030623124912381172, 0.002756611444056034, -0.001735030673444271, -0.02986329048871994, 0.03898131102323532, 0.04145519435405731, -0.051421403884887695, 0.03873392567038536, 0.018872186541557312, -0.02334284409880638, 0.0011618409771472216, -0.07633693516254425, -0.019419973716139793, -0.04583749920129776, 0.0259227491915226, 0.005919646471738815, 0.01756456308066845, -0.016583845019340515, 0.011547728441655636, -0.017926810309290886, 0.004296161234378815, -0.0035606231540441513, 0.008738105185329914, 0.031223924830555916, -0.03654277324676514, -0.02956289052963257, -0.021734820678830147, -0.025251267477869987, -0.08248629420995712, 0.004092949442565441, 0.005265834741294384, 0.025958091020584106, 0.04484794661402702, 0.06174102798104286, -0.048700135201215744, 0.03242552652955055, -0.0020542056299746037, 0.03901665285229683, 0.014834457077085972, -0.011653751134872437, -0.03300865367054939, -0.0497603714466095, -0.01844809204339981, -0.03675482049584389, 0.0004522565577644855, -0.01476377435028553, -0.03834517300128937, -0.0029708673246204853, 0.010363798588514328, 0.0435049831867218, 0.007642528507858515, -0.03574759513139725, -0.02258300967514515, 0.018589455634355545, -0.029138796031475067, 0.006273058243095875, 0.01949065551161766, -0.03380383178591728, -0.024774162098765373, 0.04467124119400978, 0.0018830217886716127, 0.02383762039244175, 0.02618780918419361, 0.056015755981206894, -0.036118678748607635, -0.030605455860495567, -0.001062996219843626, 0.058030202984809875, 0.0389106310904026, 0.054354723542928696, 0.03484639525413513, 0.010531669482588768, -0.014648916199803352, 0.046155571937561035, 0.016575010493397713, 0.012908362783491611, 0.03760300576686859, 0.06711288541555405, 0.04039495810866356, -0.00006112227856647223, 0.010938093066215515, 0.0011408572318032384, -0.07513533532619476, -0.02334284409880638, 0.048205357044935226, 0.04007688909769058, -0.0051023815758526325, 0.05947919189929962, 0.0526936873793602, -0.034616678953170776, 0.025728372856974602, 0.03534117341041565, 0.009047339670360088, -0.06891528517007828, -0.006697152275592089, -0.008663005195558071, -0.0079429280012846, 0.022989433258771896, -0.02714201994240284, 0.020003102719783783, -0.011989492923021317, -0.012457762844860554, 0.06803175806999207, -0.025127572938799858, -0.017617573961615562, -0.014949316158890724, 0.04103109985589981, 0.014657750725746155, 0.0012004954041913152, 0.08453608304262161, -0.00524816382676363, -0.0013683659490197897, 0.08128469437360764, 0.012113186530768871, 0.016919586807489395, -0.03564157336950302, -0.07965900003910065, 0.021222373470664024, -0.041137125343084335, -0.01823604479432106, -0.021487433463335037, -0.0401475727558136, -0.04513067752122879, 0.048876840621232986, 0.0303227249532938, -0.016822397708892822, -0.003255805466324091, 0.0060079991817474365, -0.020515549927949905, -0.030552443116903305, -0.03654277324676514, -0.03993552550673485, 0.003978090826421976, -0.03823914751410484, -0.03323837369680405, -0.017546892166137695, -0.017007939517498016, -0.014419198036193848, -0.014313174411654472, 0.029474537819623947, 0.04993707686662674, -0.05064389854669571, -0.04679171368479729, -0.01685773953795433, 0.03337973728775978, -0.008305175229907036, -0.02049787901341915, 0.04202065244317055, -0.005089128855615854, 0.01681356318295002, 0.0643916130065918, 0.0006162616773508489, -0.04110178351402283, 0.055308934301137924, -0.02735406719148159, 0.0011894513154402375, 0.02793719619512558, 0.030163690447807312, 0.031135572120547295, 0.049124229699373245, 0.007624858058989048, -0.057994864881038666, -0.003578293602913618, -0.007479075342416763, -0.0389106310904026, 0.03396286815404892, 0.0024517937563359737, -0.015399916097521782, -0.020568562671542168, -0.0844653993844986, -0.0401475727558136, 0.0058003696613013744, 0.04562545195221901, -0.03316769003868103, 0.04120780527591705, -0.011998328380286694, 0.02359023317694664, -0.037921078503131866, -0.003180705476552248, -0.008539310656487942, 0.04520135745406151, 0.024915525689721107, 0.02493319660425186, -0.0531177818775177, 0.06163500249385834, 0.005190734751522541, 0.012722821906208992, -0.025781385600566864, 0.0015373410424217582, -0.04375237226486206, -0.030375737696886063, 0.0585603229701519, 0.025869738310575485, -0.034775711596012115, 0.04088973626494408, -0.09676413238048553, 0.04873547703027725, -0.029845619574189186, -0.018465762957930565, -0.012245716527104378, -0.0075453403405845165, -0.014101128093898296, -0.030093008652329445, 0.023643244057893753, -0.015709150582551956, -0.005358605179935694, -0.02818458527326584, -0.02199987880885601, -0.05385994538664818, 0.01246659830212593, 0.030181361362338066, -0.030640795826911926, -0.003887529019266367, 0.02852032519876957, -0.020798278972506523, -0.0021767953876405954, -0.015788668766617775, 0.060751475393772125, -0.0016400512540712953, -0.015028833411633968, 0.03283194825053215, 0.011344516649842262, -0.08545495569705963, -0.036401405930519104, 0.021381409838795662, -0.010955763049423695, -0.032019101083278656, 0.02823759615421295, -0.0029863291420042515, -0.020939644426107407, 0.010637693107128143, -0.03926404193043709, -0.006657393183559179, -0.0635787695646286, -0.002995164366438985, 0.08821156620979309, 0.01949065551161766, -0.047074440866708755, -0.03500543162226677, 0.0007399558089673519, -0.017166974022984505, -0.04170258343219757, 0.005354187451303005, 0.05919646471738815, -0.009277057833969593, -0.045236699283123016, 0.016168586909770966, 0.027530772611498833, 0.06417956948280334, 0.0012579248286783695, -0.044353172183036804, -0.037709031254053116, 0.03274359554052353, 0.04901820421218872, -0.008031281642615795, 0.034404631704092026, 0.03442230075597763, -0.002301593776792288, 0.051456745713949203, -0.010319622233510017, 0.008574651554226875, -0.05488483980298042, 0.014640080742537975, -0.0041989730671048164, -0.01701677404344082, 0.02108100987970829, -0.013500328175723553, -0.020179810002446175, -0.02371392585337162, -0.014286668971180916, 0.04612023010849953, 0.02897976152598858, 0.012175033800303936, -0.05014912411570549, 0.01141519844532013, -0.005932899191975594, -0.022901078686118126, 0.0002816249616444111, -0.0056943465024232864, -0.03497008979320526, 0.007682287134230137, -0.0064409286715090275, -0.12539048492908478, 0.019897079095244408, 0.051456745713949203, 0.040925078094005585, 0.04357566684484482, -0.02542797289788723, 0.048912182450294495, 0.0338921844959259, 0.003933914005756378, -0.029050443321466446, 0.07725580036640167, 0.009718822315335274, 0.09358342736959457, 0.04947764053940773, 0.02567536197602749, 0.0133854690939188, -0.05629848688840866, 0.034528326243162155, 0.01832439750432968, -0.01848343387246132, 0.0689859688282013, -0.05400131270289421, 0.02053322084248066, 0.01823604479432106, -0.0034148406703025103, 0.04537806659936905, 0.05714667588472366, 0.03571225330233574, -0.025410301983356476, 0.0186071265488863, -0.010929257608950138, -0.03482872620224953, -0.0748526006937027, -0.026240820065140724, 0.0002676817821338773, 0.0038477701600641012, 0.006220046430826187, -0.055980417877435684, -0.030216701328754425, 0.008883886970579624, 0.012219210155308247 ]
30,269
networkx.exception
NodeNotFound
Exception raised if requested node is not present in the graph
class NodeNotFound(NetworkXException): """Exception raised if requested node is not present in the graph"""
null
[ 0.015301895327866077, -0.008484896272420883, 0.032930292189121246, 0.04293768107891083, -0.0013824307825416327, 0.00896388292312622, -0.03298161178827286, 0.014711715281009674, 0.09579721838235855, -0.023726917803287506, 0.028379926458001137, 0.006941021420061588, 0.05101201683282852, -0.019535789266228676, -0.03044982999563217, -0.023675598204135895, -0.008583259768784046, 0.06976090371608734, 0.02119513414800167, -0.020185843110084534, -0.06021539494395256, 0.016567787155508995, 0.043074533343315125, -0.00931456871330738, 0.014258389361202717, 0.009879088029265404, 0.02766144648194313, -0.0032310178503394127, 0.02259787917137146, -0.029372110962867737, -0.06435520201921463, -0.05227791145443916, -0.02957739122211933, 0.02317950502038002, -0.010118581354618073, 0.0764324963092804, 0.00046695797936990857, 0.037429340183734894, -0.078280009329319, -0.03361456096172333, -0.03890051320195198, -0.009913301095366478, -0.01590918004512787, -0.007035108283162117, 0.011042339727282524, -0.041911281645298004, 0.034144867211580276, 0.005867579486221075, -0.08218032866716385, -0.020510869100689888, -0.017269158735871315, -0.00419326638802886, 0.010212667286396027, 0.03161308169364929, 0.010460713878273964, 0.015797987580299377, -0.008052953518927097, 0.06596322357654572, 0.014429455623030663, 0.040166404098272324, 0.02400062419474125, 0.05587030574679375, -0.02831149846315384, 0.03890051320195198, -0.03481202572584152, -0.008621749468147755, -0.01269313134253025, -0.03435014560818672, -0.05847051739692688, 0.009365888312458992, 0.06654485315084457, 0.028208859264850616, -0.025027023628354073, 0.031253840774297714, 0.08758603036403656, -0.003765600500628352, 0.006213989108800888, 0.012051631696522236, 0.007869057357311249, 0.0420481376349926, 0.03705299645662308, -0.04061117768287659, -0.045743171125650406, -0.0037891219835728407, 0.03017612360417843, -0.007060768082737923, 0.0331868939101696, -0.015815094113349915, -0.022974224761128426, -0.02475331723690033, -0.054364919662475586, -0.009742234833538532, -0.030090590938925743, -0.0059873261488974094, 0.03903736546635628, 0.030843282118439674, 0.07369542866945267, -0.056930918246507645, 0.0429718941450119, -0.028619417920708656, 0.007351581007242203, 0.03780568763613701, -0.03296450525522232, 0.020579295232892036, -0.007800630759447813, -0.0470774881541729, -0.03790832683444023, -0.01234244555234909, 0.0003263627295382321, -0.01336884405463934, -0.06551845371723175, 0.004836904350668192, 0.01735469326376915, 0.000962248828727752, 0.01880020461976528, -0.001444442430511117, 0.014651842415332794, 0.04981455206871033, -0.018252791836857796, -0.010973913595080376, 0.054604414850473404, 0.03405933082103729, -0.06887135654687881, 0.0021778899244964123, 0.056280866265296936, -0.010854166932404041, 0.013967576436698437, 0.007839120924472809, 0.038284674286842346, -0.04235605522990227, 0.01763695292174816, -0.012556278146803379, -0.05299638956785202, 0.024565143510699272, -0.021913614124059677, 0.036847714334726334, -0.039105791598558426, 0.0022217256482690573, -0.01694413274526596, 0.010033047758042812, -0.011863458901643753, -0.016550680622458458, -0.011546986177563667, 0.02044244110584259, 0.0012477160198614001, 0.021417520940303802, -0.07212162017822266, -0.04269818961620331, 0.031116988509893417, -0.04187706857919693, 0.039345286786556244, -0.009126395918428898, -0.021400414407253265, -0.038182035088539124, -0.059017930179834366, 0.01312935072928667, 0.004751370754092932, -0.05429649353027344, -0.02136620134115219, -0.006094242446124554, -0.004558921325951815, -0.05392014980316162, 0.05682827904820442, -0.019244976341724396, -0.04711170494556427, -0.02557443641126156, -0.008215466514229774, -0.00037661349051631987, -0.024992810562253, 0.024103263393044472, -0.01811593770980835, -0.024205904453992844, -0.11406711488962173, -0.02819175273180008, 0.013351737521588802, -0.012291125021874905, -0.002814043313264847, -0.01927918940782547, -0.03506862372159958, -0.018492285162210464, 0.02656662091612816, -0.01933051086962223, -0.016499361023306847, -0.008108550682663918, 0.010238328017294407, -0.0010755803668871522, 0.00984487496316433, 0.012222698889672756, 0.010015941224992275, 0.008318106643855572, 0.040440112352371216, -0.008318106643855572, 0.023675598204135895, 0.07479025423526764, 0.056280866265296936, -0.053954362869262695, 0.01979238912463188, 0.000039124770410126075, -0.008283893577754498, 0.09066522121429443, 0.05313324183225632, 0.04334824159741402, 0.03705299645662308, 0.02039112150669098, -0.03214338794350624, 0.008463513106107712, 0.016619106754660606, -0.0072746011428534985, -0.04605109244585037, -0.021212240681052208, -0.029953736811876297, -0.0025125385727733374, 0.03862680494785309, 0.05049882084131241, -0.013796510174870491, 0.035444971174001694, -0.06880293041467667, 0.011461452580988407, 0.0016037480672821403, -0.005208973772823811, 0.0007275670650415123, -0.028722058981657028, 0.0470774881541729, -0.032246027141809464, 0.03086038865149021, -0.03732670098543167, 0.009767894633114338, -0.021503053605556488, 0.00036458540125750005, -0.06476575881242752, 0.0498487651348114, 0.017739592120051384, 0.014138642698526382, -0.0004402288468554616, 0.05758097022771835, -0.02044244110584259, 0.02625870145857334, -0.0005559659912250936, 0.027969365939497948, 0.000009664252502261661, -0.04803546145558357, -0.056520357728004456, -0.026224488392472267, -0.017106646671891212, 0.08840714395046234, 0.010683100670576096, 0.013300416991114616, 0.03671086207032204, -0.06815287470817566, -0.013728083111345768, -0.03469227999448776, -0.011179192923009396, -0.005281677003949881, -0.035547610372304916, 0.01683294028043747, -0.08943354338407516, -0.0764324963092804, -0.04594844952225685, 0.04895922169089317, 0.03255394846200943, -0.08560165762901306, 0.026190275326371193, -0.024907276034355164, 0.04663271829485893, -0.0019790250808000565, -0.034504104405641556, -0.05463862791657448, 0.07136892527341843, 0.00406069029122591, 0.006983788218349218, 0.07191634178161621, 0.060078542679548264, 0.04608530551195145, 0.020579295232892036, 0.03842152655124664, -0.0380793958902359, 0.003201081184670329, 0.03017612360417843, 0.003284475998952985, 0.020408228039741516, -0.03766883537173271, 0.010837060399353504, -0.03161308169364929, 0.01852649822831154, -0.06305509805679321, -0.020185843110084534, 0.020527975633740425, -0.010939700528979301, -0.031202523037791252, -0.014703162014484406, 0.01409587636590004, 0.012761558406054974, -0.03063800372183323, 0.005140547174960375, -0.05559660121798515, 0.001917013549245894, -0.02311107888817787, 0.017910659313201904, 0.01806461811065674, 0.04978033900260925, 0.051285725086927414, -0.00420609675347805, -0.02068193443119526, -0.0762956440448761, 0.0011579061392694712, -0.009015202522277832, 0.05422806739807129, 0.052962176501750946, -0.01234244555234909, 0.01415574923157692, -0.04293768107891083, 0.007881887257099152, 0.009211928583681583, 0.022700518369674683, 0.03746355324983597, 0.061070725321769714, 0.02964581735432148, -0.025232302024960518, 0.019552895799279213, 0.06213133782148361, -0.03339217230677605, 0.06079702079296112, -0.04177442938089371, 0.03255394846200943, -0.08375413715839386, 0.031527549028396606, 0.0038425803650170565, 0.05340695008635521, -0.004969480447471142, 0.028106220066547394, 0.0313393771648407, -0.038763660937547684, 0.004310874734073877, -0.04061117768287659, -0.08327515423297882, -0.0007906478131189942, 0.03756619617342949, -0.006804168689996004, 0.06230240315198898, 0.043656159192323685, 0.029902417212724686, -0.004302321467548609, -0.009836321696639061, 0.029748456552624702, 0.05829944834113121, -0.015883520245552063, 0.012419424951076508, -0.025591542944312096, -0.03814782202243805, 0.004777031019330025, -0.045572105795145035, 0.12063606828451157, -0.029423430562019348, 0.001119416207075119, 0.015986161306500435, 0.026344234123826027, 0.01852649822831154, -0.00668442202731967, -0.04105595126748085, 0.04129544273018837, -0.03409354388713837, -0.020989853888750076, -0.013001050800085068, -0.028550991788506508, -0.04762490093708038, -0.01915944367647171, 0.06391043215990067, 0.03051825612783432, 0.05036196485161781, -0.07581665366888046, -0.03010769747197628, -0.06503947079181671, -0.09709732234477997, -0.008989542722702026, -0.01828700490295887, 0.02259787917137146, 0.010477820411324501, -0.027969365939497948, 0.008643132634460926, 0.009708021767437458, 0.006564675364643335, -0.01607169397175312, -0.04916450008749962, 0.012829984538257122, -0.006966681685298681, -0.01986081525683403, 0.029372110962867737, 0.031544655561447144, 0.020887214690446854, 0.03766883537173271, 0.003908868413418531, -0.03705299645662308, 0.034144867211580276, 0.00855759996920824, -0.037771474570035934, -0.019381830468773842, 0.06610008329153061, -0.03571867570281029, -0.04608530551195145, -0.05190156400203705, -0.009579721838235855, 0.054775480180978775, -0.0347093865275383, 0.06856343895196915, 0.05292796343564987, 0.016208546236157417, -0.005025077145546675, -0.013112244196236134, 0.020220056176185608, -0.014497882686555386, -0.03257105499505997, -0.02324793115258217, -0.014164302498102188, -0.027285100892186165, 0.007616734132170677, -0.001354632549919188, 0.0409875251352787, 0.039174217730760574, 0.00887834932655096, -0.0239321980625391, 0.003560320707038045, -0.06196027249097824, 0.05922320857644081, 0.031253840774297714, 0.0009574376163072884, -0.03513704985380173, -0.017482992261648178, -0.02627580799162388, 0.006547568831592798, 0.06264454126358032, -0.035958170890808105, -0.033340852707624435, 0.026771901175379753, -0.06353408098220825, 0.027233781293034554, -0.05101201683282852, -0.030244549736380577, -0.041500724852085114, -0.017979085445404053, 0.07540609687566757, 0.030244549736380577, 0.03092881664633751, 0.023076865822076797, 0.01770537905395031, -0.0391400046646595, -0.02666926197707653, 0.0047171576879918575, 0.015635473653674126, 0.02143462747335434, -0.004678667522966862, 0.013266203925013542, -0.04211656376719475, 0.03944792598485947, 0.005794876255095005, -0.024154584854841232, -0.027011394500732422, -0.11933596432209015, 0.015062402002513409, 0.0144465621560812, 0.01409587636590004, -0.04143229499459267, 0.056520357728004456, -0.06462890654802322, -0.027575913816690445, 0.00409062672406435, -0.02579682134091854, 0.023692704737186432, -0.0051191640086472034, 0.045811597257852554, -0.011461452580988407, -0.015558494254946709, -0.03464095667004585, -0.028961552307009697, -0.0842331275343895, 0.029201045632362366, -0.001138661173172295, -0.0061027961783111095, 0.01979238912463188, 0.03005637787282467, -0.0316644012928009, 0.00730881467461586, -0.04666693136096001, 0.03842152655124664, -0.0016689671901986003, -0.006179776042699814, -0.019176550209522247, -0.02899576537311077, -0.000031456849683308974, 0.010563354007899761, -0.005602426361292601, 0.009015202522277832, -0.04071381688117981, -0.014985421672463417, -0.007710820529609919, 0.03681350126862526, -0.012966837733983994, -0.06353408098220825, -0.010033047758042812, -0.004913884215056896, -0.026481088250875473, 0.0030620896723121405, -0.000744139077141881, 0.020134521648287773, -0.02824307233095169, 0.03804517909884453, -0.02742195315659046, 0.009340228512883186, 0.05008826032280922, 0.11817271262407303, -0.010871273465454578, 0.03972163051366806, 0.056691426783800125, 0.044340427964925766, 0.036026597023010254, 0.019176550209522247, 0.026874540373682976, -0.0020175150129944086, 0.03630030155181885, 0.06842658668756485, 0.03650558367371559, 0.0547412671148777, 0.028858911246061325, 0.0762956440448761, -0.00893822219222784, -0.016858600080013275, 0.01138447318226099, -0.01741456612944603, -0.06510789692401886, -0.03551339730620384, 0.08245403319597244, -0.01313790399581194, 0.020339801907539368, 0.001701042172499001, -0.0038468569982796907, 0.006962405052036047, 0.03763462230563164, 0.04711170494556427, 0.04451149329543114, -0.03705299645662308, -0.0057136197574436665, 0.0013802924659103155, -0.005106333643198013, 0.014224176295101643, 0.01986081525683403, 0.006329459138214588, -0.03558182343840599, -0.0037869836669415236, 0.03739512711763382, -0.013411610387265682, -0.020185843110084534, 0.02567707560956478, -0.0030963029712438583, 0.016285527497529984, -0.031544655561447144, 0.07123207300901413, 0.01511372160166502, -0.02947475202381611, 0.0347093865275383, 0.031886789947748184, 0.055699240416288376, -0.0013054509181529284, -0.05415964126586914, 0.05970219522714615, -0.028858911246061325, -0.006881148554384708, -0.03616344928741455, -0.021571479737758636, -0.09846585243940353, 0.039345286786556244, 0.019997669383883476, -0.027507487684488297, 0.029833991080522537, 0.008433576673269272, 0.004528984427452087, -0.03435014560818672, -0.017277712002396584, -0.0017459470545873046, -0.008758602663874626, 0.0004220530390739441, -0.07177948951721191, -0.02463356964290142, 0.0023521638941019773, 0.0005198816652409732, -0.0027926599141210318, 0.031356483697891235, 0.039345286786556244, -0.06257610768079758, -0.019929243251681328, 0.008685899898409843, 0.02078457549214363, -0.004982310812920332, -0.05491233244538307, 0.037121422588825226, -0.02509544976055622, 0.035547610372304916, 0.05559660121798515, 0.017910659313201904, -0.0064791422337293625, 0.008147040382027626, -0.033409278839826584, -0.03169861435890198, 0.0313393771648407, 0.05545974522829056, -0.01957000233232975, 0.03127094730734825, 0.016755959019064903, -0.02632712759077549, -0.01945025660097599, -0.0431087464094162, -0.05929163470864296, 0.02714824676513672, 0.007544030901044607, -0.04478519782423973, -0.008245402947068214, -0.0390031524002552, -0.020955640822649002, -0.007715097162872553, 0.040269043296575546, -0.03958477824926376, 0.03104856237769127, 0.0075483075343072414, -0.009092181921005249, -0.042424481362104416, -0.004422068130224943, -0.00755686080083251, 0.054775480180978775, 0.06579215824604034, 0.004103456623852253, -0.03513704985380173, 0.026806114241480827, -0.01269313134253025, 0.007253217976540327, -0.014549202285706997, -0.05272268131375313, -0.04916450008749962, -0.04967769980430603, 0.04991719499230385, -0.0036950355861335993, -0.01828700490295887, 0.07773260027170181, -0.04902764782309532, 0.03506862372159958, -0.08881770819425583, -0.004922437481582165, -0.025659969076514244, -0.001744877896271646, 0.004285214934498072, -0.0478643961250782, 0.05049882084131241, -0.018902843818068504, 0.0033272425644099712, -0.010580460540950298, -0.0071719614788889885, -0.015532834455370903, 0.054775480180978775, -0.002094494877383113, -0.06791338324546814, -0.004836904350668192, 0.02167412079870701, -0.02039112150669098, 0.00910928938537836, -0.014609076082706451, 0.03476070612668991, 0.017388906329870224, 0.0012968976516276598, -0.00470005115494132, 0.019723962992429733, -0.10188718140125275, -0.028174646198749542, -0.009921854361891747, 0.0015770188765600324, -0.0351712629199028, 0.03674507513642311, -0.02613895572721958, -0.011948992498219013, -0.02627580799162388, -0.022153107449412346, 0.002047451678663492, -0.023145291954278946, 0.009331675246357918, 0.0371556356549263, -0.006547568831592798, -0.04061117768287659, 0.001822926918976009, -0.021913614124059677, 0.059633769094944, -0.049403995275497437, -0.02335057221353054, 0.03373430669307709, -0.010640333406627178, -0.03948213905096054, -0.02044244110584259, 0.011760818772017956, 0.08998095989227295, -0.05433070659637451, -0.0625418946146965, -0.03181836009025574, 0.014993974938988686, 0.011846352368593216, 0.022221533581614494, 0.028550991788506508, 0.027524594217538834, 0.009853428229689598, -0.004201820120215416, 0.0005714689032174647, -0.03409354388713837, -0.03245130926370621, 0.029543178156018257, -0.012855644337832928, 0.006876871921122074, -0.035547610372304916, -0.05847051739692688, 0.0215543732047081, 0.003470510710030794, -0.0021116016432642937, 0.02625870145857334, 0.005234633572399616, 0.012385211884975433, -0.05737569183111191, 0.01071731373667717, -0.002159714000299573, -0.04676957055926323, -0.005234633572399616, 0.04950663447380066, -0.007184791378676891, -0.024086156859993935, -0.00893822219222784, -0.12446795403957367, 0.028345713391900063, 0.07191634178161621, 0.03571867570281029, 0.06914506107568741, -0.0176540594547987, 0.060181181877851486, 0.022170213982462883, -0.016345400363206863, -0.02259787917137146, 0.054878119379282, -0.0017149412306025624, 0.05720462277531624, 0.04468255862593651, 0.013625443913042545, -0.03098013624548912, -0.05415964126586914, 0.035444971174001694, 0.016054587438702583, -0.001589848892763257, 0.07656934857368469, -0.025249410420656204, 0.01724349893629551, 0.04875393956899643, -0.00908362865447998, 0.015874966979026794, 0.06045488640666008, 0.021503053605556488, -0.01246219128370285, 0.018834417685866356, 0.03681350126862526, 0.011136426590383053, -0.04197970777750015, -0.01196609903126955, 0.008040123619139194, -0.025129662826657295, -0.01269313134253025, -0.034965984523296356, -0.0005629155784845352, 0.012941177934408188, 0.05313324183225632 ]
30,270
networkx.algorithms.tree.coding
NotATree
Raised when a function expects a tree (that is, a connected undirected graph with no cycles) but gets a non-tree graph as input instead.
class NotATree(nx.NetworkXException): """Raised when a function expects a tree (that is, a connected undirected graph with no cycles) but gets a non-tree graph as input instead. """
null
[ -0.017046136781573296, 0.03206663206219673, 0.07187410444021225, 0.015789153054356575, 0.0028214293997734785, 0.012226194143295288, -0.06558015197515488, 0.011032512411475182, 0.1199469268321991, -0.061637382954359055, 0.04814516380429268, -0.02325870655477047, -0.010263853706419468, -0.016304606571793556, -0.061637382954359055, -0.012452270835638046, -0.022824641317129135, 0.051690034568309784, 0.03535829856991768, 0.042176753282547, -0.06058838963508606, 0.026279084384441376, 0.007324865087866783, -0.008052829653024673, 0.005941279232501984, 0.019442543387413025, 0.007609720807522535, -0.011891601607203484, -0.005009845830500126, -0.013365617953240871, -0.06105862930417061, -0.0348157174885273, -0.026532288640737534, 0.0005499300896190107, -0.008107088506221771, 0.04326191917061806, -0.021251151338219643, 0.0549093596637249, -0.10866120457649231, -0.04177885875105858, -0.08514929562807083, -0.005231400486081839, -0.05429443344473839, 0.000461477815406397, 0.006411517504602671, -0.04322574660181999, 0.03685944527387619, 0.02374703250825405, -0.10460992157459259, -0.009006870910525322, -0.001672963029704988, -0.0200936421751976, 0.024361958727240562, 0.032844334840774536, -0.028847308829426765, 0.0328805036842823, 0.009992563165724277, 0.031415533274412155, 0.04420239478349686, -0.005312787834554911, 0.030113333836197853, 0.09151560068130493, 0.002032423857599497, -0.029046254232525826, -0.03798078000545502, -0.007053573615849018, -0.046155691146850586, -0.021793734282255173, -0.0549093596637249, 0.0457216277718544, -0.028485586866736412, 0.0130491117015481, -0.016015229746699333, 0.03779992088675499, 0.08992402255535126, -0.03561150282621384, 0.0059277149848639965, 0.010327155701816082, 0.01770627871155739, 0.03725733980536461, -0.03685944527387619, -0.035141266882419586, 0.0031831511296331882, 0.054619982838630676, 0.03572002053260803, 0.00018552369147073478, 0.018429722636938095, 0.025519467890262604, 0.00864062737673521, -0.002568224212154746, -0.06319278478622437, -0.04792812839150429, -0.016015229746699333, 0.005100276321172714, -0.014070975594222546, 0.07784251868724823, 0.07180176675319672, -0.07093363255262375, 0.022553350776433945, -0.051509175449609756, 0.016729630529880524, 0.057658445090055466, -0.021124549210071564, 0.002690305467694998, -0.03794461116194725, -0.06120331585407257, -0.028232380747795105, -0.024054495617747307, 0.026152480393648148, -0.022481005638837814, -0.10518868267536163, -0.015002408996224403, 0.03823398798704147, 0.021052204072475433, 0.05093041807413101, -0.021793734282255173, -0.020997947081923485, -0.02164904586970806, -0.017317427322268486, -0.013763511553406715, 0.08203849196434021, 0.041489481925964355, -0.03921063616871834, 0.00387042248621583, 0.048108991235494614, 0.021992681547999382, 0.03528595343232155, -0.011575095355510712, 0.02629717066884041, -0.017199868336319923, 0.026423772796988487, 0.021124549210071564, -0.024597078561782837, 0.04025962948799133, 0.01237992662936449, 0.03110806830227375, -0.04944736137986183, -0.016955705359578133, -0.008586369454860687, -0.030782518908381462, -0.016729630529880524, -0.03855953738093376, 0.010580360889434814, 0.007198262494057417, 0.026604633778333664, 0.041815031319856644, -0.06724406778812408, -0.06391622871160507, -0.02629717066884041, -0.01708230935037136, 0.025664156302809715, -0.022065024822950363, -0.02814195118844509, -0.017597762867808342, -0.029842043295502663, 0.03139744699001312, -0.018474936485290527, -0.07064425200223923, 0.01659398525953293, -0.0011428146390244365, -0.026260998100042343, -0.03602748364210129, 0.039391495287418365, 0.0053399172611534595, -0.005461998283863068, -0.019243596121668816, -0.0017080047400668263, -0.05071338638663292, -0.04684296250343323, 0.01200916152447462, -0.009101822972297668, -0.0055388640612363815, -0.09853299707174301, -0.004266055766493082, -0.003954070620238781, -0.0037438198924064636, 0.024651335552334785, 0.06554397940635681, -0.04235761612653732, 0.019985126331448555, 0.014911978505551815, -0.0033368829172104597, -0.004978195298463106, 0.028232380747795105, 0.034381650388240814, 0.0001286514161620289, 0.013365617953240871, 0.014523127116262913, 0.01906273514032364, -0.0020652050152420998, -0.019424457103013992, -0.011710740625858307, 0.05071338638663292, 0.04796430096030235, 0.08001285046339035, -0.07907237112522125, 0.015662550926208496, 0.0022392836399376392, 0.013962458819150925, 0.08485991507768631, 0.022607607766985893, 0.014694944955408573, 0.05910532921552658, -0.002850819379091263, -0.0026835231110453606, 0.00890287570655346, -0.030004817992448807, -0.025646070018410683, -0.03808929771184921, -0.02313210442662239, -0.010697919875383377, 0.003018115647137165, 0.03036653995513916, 0.04525138810276985, -0.05223261937499046, -0.023710859939455986, -0.01849302276968956, 0.03582853823900223, -0.00013762382150162011, -0.020202158018946648, 0.006917927879840136, 0.028991997241973877, 0.011520837433636189, -0.05870743840932846, 0.02503114379942417, -0.028521757572889328, 0.013853942044079304, -0.015933841466903687, 0.043587468564510345, -0.0484345406293869, 0.0319400280714035, -0.016250349581241608, -0.021016033366322517, -0.013338488526642323, 0.01953297294676304, -0.076829694211483, 0.026532288640737534, -0.05932236462831497, 0.021793734282255173, -0.004320313688367605, -0.05241347849369049, -0.06930588185787201, -0.020654311403632164, -0.0014785375678911805, 0.08066394925117493, -0.011566052213311195, -0.00040043724584393203, 0.029570750892162323, -0.03036653995513916, 0.020600052550435066, -0.06095011159777641, -0.0511474534869194, -0.028503673151135445, -0.025193918496370316, 0.010896867141127586, -0.04174268618226051, -0.0668100044131279, -0.05223261937499046, 0.04004259407520294, 0.020274503156542778, -0.028576016426086426, -0.011005383916199207, -0.044130049645900726, 0.07172942161560059, -0.0003447660128585994, -0.050351664423942566, -0.011095814406871796, 0.0036850401666015387, -0.00840550847351551, 0.015743939206004143, 0.09795424342155457, 0.06605038791894913, 0.02888347953557968, 0.015228484757244587, -0.00770919444039464, -0.022263972088694572, 0.0055795577354729176, 0.06355451047420502, 0.005891542881727219, -0.004293184727430344, -0.05400505289435387, -0.00496915215626359, -0.04651741310954094, 0.02211928367614746, -0.06478436291217804, -0.009648927487432957, 0.003831989597529173, -0.0036646933294832706, -0.01730838418006897, -0.0004286967741791159, 0.045540764927864075, 0.02712913043797016, -0.0065155127085745335, 0.023891720920801163, 0.007397209294140339, -0.011204330250620842, -0.042176753282547, -0.0201479010283947, 0.013103369623422623, 0.04517904296517372, 0.05783930420875549, 0.006723502650856972, -0.0016130527947098017, -0.04774726927280426, 0.015762023627758026, 0.029588837176561356, 0.020473450422286987, 0.02787065878510475, -0.023168276995420456, 0.017326470464468002, -0.029534580186009407, 0.03043888323009014, -0.014052889309823513, 0.014324180781841278, 0.031343188136816025, 0.02495879866182804, 0.04091072827577591, -0.07950643450021744, 0.03543064370751381, 0.07144004106521606, -0.06102245673537254, 0.06959526240825653, -0.012551744468510151, -0.004697861149907112, -0.10149911791086197, 0.04246613010764122, 0.05443911999464035, 0.05053252726793289, 0.01559020671993494, 0.0438406728208065, 0.006185441743582487, 0.004487610422074795, 0.01799565553665161, -0.04564928263425827, -0.08912823349237442, 0.031071895733475685, 0.07415295392274857, -0.034128446131944656, 0.05342629924416542, -0.0012897640699520707, 0.03186768293380737, 0.024850282818078995, -0.0019386024214327335, 0.00741981714963913, 0.016205133870244026, -0.015056666918098927, -0.017914269119501114, 0.006194484420120716, 0.03443590924143791, 0.07136769592761993, -0.04347895085811615, 0.10822714120149612, -0.021142635494470596, 0.018058957532048225, 0.0017080047400668263, 0.03320605307817459, 0.014722074382007122, 0.021938422694802284, -0.0269844401627779, 0.024361958727240562, 0.01082452293485403, -0.013528392650187016, 0.0008432637550868094, 0.007342950906604528, 0.002794300438836217, -0.024578992277383804, 0.042972542345523834, 0.02602587826550007, 0.03666049614548683, -0.060696907341480255, -0.005972930230200291, -0.0557413175702095, -0.08326834440231323, -0.0200936421751976, -0.029733525589108467, 0.034453995525836945, -0.02367468737065792, -0.02814195118844509, 0.0009246511617675424, 0.030655916780233383, 0.01718178205192089, -0.029588837176561356, -0.014966236427426338, -0.020274503156542778, 0.004815420601516962, -0.027038699015975, 0.059069160372018814, 0.06818454712629318, -0.011764999479055405, 0.017091352492570877, -0.03711264953017235, -0.0447811484336853, 0.024253442883491516, 0.008618020452558994, -0.058526575565338135, -0.02535669319331646, 0.04456411674618721, -0.03798078000545502, -0.06344599276781082, -0.05505404621362686, 0.003341404488310218, 0.031053811311721802, -0.018899960443377495, 0.02347574010491371, 0.059539396315813065, 0.028304725885391235, -0.005127405747771263, 0.014387481845915318, 0.010028734803199768, -0.03306136652827263, 0.034924231469631195, 0.0020199897699058056, -0.012388968840241432, 0.02819620817899704, 0.026062050834298134, 0.0014446261338889599, 0.030239935964345932, 0.024253442883491516, 0.014116190373897552, -0.05266668274998665, 0.02846750058233738, -0.038523364812135696, 0.05342629924416542, 0.05624772980809212, 0.05943087860941887, 0.002529791323468089, -0.010788350366055965, -0.031759168952703476, 0.004076151642948389, 0.06051604449748993, -0.00418466841802001, -0.042900197207927704, 0.03071017563343048, -0.08001285046339035, 0.015762023627758026, -0.05103893578052521, -0.05320926755666733, -0.05686265602707863, -0.0025795281399041414, 0.09730314463376999, -0.024054495617747307, 0.05816485360264778, 0.031614478677511215, -0.005244965199381113, 0.012235237285494804, -0.037221167236566544, 0.028793049976229668, 0.024506647139787674, 0.009621798060834408, -0.000518844579346478, 0.014785375446081161, -0.007903619669377804, 0.04463646188378334, 0.013989588245749474, -0.07791486382484436, -0.01406193245202303, -0.09180497378110886, 0.03568384796380997, -0.040006425231695175, 0.03684135898947716, -0.013501263223588467, 0.018701013177633286, -0.0558498352766037, 0.009359549731016159, -0.0041281492449343204, 0.010462800972163677, 0.028431328013539314, -0.00262926472350955, 0.006718981079757214, -0.03685944527387619, 0.01853823848068714, -0.031053811311721802, -0.03110806830227375, -0.032030459493398666, 0.029661182314157486, 0.014884849078953266, -0.008459767326712608, -0.027490852400660515, 0.019514886662364006, -0.04753023386001587, -0.006881755776703358, -0.02779831551015377, 0.029118599370121956, -0.009106344543397427, -0.02130541019141674, -0.01960531808435917, -0.02456090599298477, -0.01589767076075077, 0.007116875145584345, -0.0011303804349154234, -0.04684296250343323, -0.057513754814863205, -0.010607489384710789, -0.0013123716926202178, 0.049338843673467636, 0.019261682406067848, -0.08290661871433258, -0.020310675725340843, -0.039463840425014496, -0.039463840425014496, 0.019171250984072685, 0.001182377920486033, -0.007261563558131456, -0.027273818850517273, 0.07404443621635437, -0.002196329180151224, 0.0013813248369842768, 0.020726654678583145, 0.06861861050128937, -0.03157830610871315, -0.00689984206110239, 0.013211886398494244, 0.06413326412439346, 0.07625094056129456, 0.008798881433904171, 0.02352999895811081, 0.004403962288051844, 0.008486895821988583, 0.07719141989946365, 0.003404705785214901, 0.019044648855924606, 0.012985809706151485, 0.054800841957330704, -0.018954219296574593, 0.040549006313085556, -0.01054418832063675, 0.019026562571525574, -0.011575095355510712, 0.013980545103549957, 0.03685944527387619, 0.029498407617211342, 0.028015347197651863, 0.0384148471057415, 0.033368829637765884, -0.012126721441745758, -0.003431834978982806, 0.012334710918366909, 0.05769461765885353, -0.04098307341337204, -0.001172204501926899, 0.003461224725469947, -0.018972305580973625, -0.0019012998091056943, 0.018881874158978462, 0.011285717599093914, -0.010300026275217533, 0.02197459526360035, 0.006764196325093508, -0.025664156302809715, 0.002812386490404606, -0.013483177870512009, -0.025320520624518394, -0.00008421333768637851, -0.01247939933091402, 0.07827658206224442, 0.02841324172914028, 0.005480084102600813, 0.036479637026786804, 0.046011004596948624, -0.007483118213713169, -0.027762142941355705, -0.02192033641040325, -0.004806377459317446, -0.05414974316954613, 0.03373055160045624, -0.017317427322268486, 0.010209595784544945, -0.0036737362388521433, 0.031017638742923737, 0.026532288640737534, -0.017263170331716537, -0.011520837433636189, 0.005991016048938036, 0.005159056279808283, -0.0493750162422657, 0.003972156904637814, -0.018031828105449677, 0.014351309277117252, -0.03772757574915886, -0.082255519926548, 0.02340339682996273, -0.02041919156908989, -0.0348157174885273, 0.021359669044613838, 0.03152404725551605, -0.002862123306840658, -0.02271612547338009, -0.006402474828064442, -0.007433381397277117, -0.004815420601516962, -0.005556949879974127, -0.05877977982163429, 0.07144004106521606, -0.017199868336319923, 0.02772597037255764, 0.033242225646972656, -0.013175713829696178, -0.014251836575567722, -0.009757443331182003, -0.0494835339486599, -0.015255614183843136, 0.05979260057210922, 0.038306329399347305, 0.01748020201921463, 0.029986731708049774, -0.007587113417685032, 0.023620428517460823, -0.04441943019628525, -0.02076282724738121, -0.02671314962208271, 0.02893773838877678, 0.042176753282547, -0.01982235163450241, -0.058056335896253586, -0.016376951709389687, -0.029914386570453644, -0.03197620064020157, 0.007641371339559555, -0.03787226602435112, 0.034182704985141754, 0.014866762794554234, -0.017172738909721375, -0.035322126001119614, -0.01669345796108246, -0.018203645944595337, 0.020581966266036034, 0.034453995525836945, -0.028015347197651863, -0.02962500974535942, -0.041815031319856644, 0.020907515659928322, -0.002405449515208602, -0.021685218438506126, -0.03808929771184921, -0.07125917822122574, -0.0733933374285698, 0.02644185908138752, -0.002796561224386096, -0.01362786628305912, 0.05017080530524254, -0.08196614682674408, -0.01624130643904209, -0.07404443621635437, -0.013266144320368767, -0.020455364137887955, -0.038523364812135696, -0.01403480302542448, -0.043442778289318085, 0.020997947081923485, -0.014016716741025448, 0.009730314835906029, 0.04644507169723511, 0.0011778563493862748, -0.012633131816983223, 0.026803581044077873, 0.05892447009682655, -0.027780229225754738, 0.004153017420321703, 0.0005849718581885099, 0.0073746019043028355, 0.011584138497710228, -0.023982150480151176, 0.01561733614653349, 0.07259754836559296, 0.006149269640445709, 0.004553172271698713, 0.03888508677482605, -0.07118683308362961, -0.011041555553674698, -0.01947871595621109, -0.024054495617747307, 0.007270606700330973, 0.03358586132526398, -0.03496040403842926, -0.00433387840166688, -0.01899039000272751, -0.001899039139971137, 0.014432696625590324, 0.038523364812135696, 0.018203645944595337, -0.01528274267911911, 0.04315340146422386, -0.019569145515561104, -0.051834724843502045, -0.027002526447176933, 0.03910211846232414, -0.0420682355761528, 0.01561733614653349, 0.01853823848068714, -0.03964470326900482, -0.029299460351467133, -0.012587916105985641, 0.021323496475815773, 0.04828985035419464, -0.024380045011639595, -0.023240620270371437, -0.03461676836013794, 0.0010608619777485728, -0.008378379978239536, -0.012370883487164974, 0.05935853719711304, -0.002423535566776991, -0.007428859826177359, 0.013338488526642323, 0.03586471080780029, -0.04065752401947975, -0.03823398798704147, 0.010625575669109821, 0.0004965196130797267, 0.010553231462836266, -0.027002526447176933, -0.028214294463396072, 0.030891036614775658, -0.02602587826550007, -0.02495879866182804, -0.0039698961190879345, 0.03123467229306698, 0.01434226706624031, -0.02920902892947197, -0.03286241739988327, -0.035738106817007065, -0.02210119739174843, 0.009278162382543087, 0.0566817969083786, 0.02184799313545227, 0.02258952148258686, 0.006850105244666338, -0.08659618347883224, 0.018212689086794853, 0.0006821845890954137, 0.06322895735502243, 0.09484343975782394, -0.008568283170461655, 0.04177885875105858, 0.004198232665657997, -0.000562081637326628, -0.03537638485431671, 0.053932711482048035, 0.016178004443645477, 0.04774726927280426, 0.04738554731011391, 0.006027188152074814, -0.01933402568101883, -0.04116393253207207, 0.01129476074129343, -0.03420079126954079, -0.004978195298463106, 0.11502750962972641, -0.014387481845915318, -0.025121573358774185, 0.054547637701034546, -0.014930064789950848, 0.0017871314194053411, 0.010987297631800175, 0.042176753282547, 0.009413807652890682, 0.02955266460776329, -0.0037392983213067055, -0.012967724353075027, -0.06286723911762238, 0.005014367401599884, -0.00096364930504933, 0.005371567793190479, -0.004006068222224712, -0.04684296250343323, -0.006705416366457939, 0.012524615041911602, 0.06677383184432983 ]
30,271
networkx.algorithms.planarity
PlanarEmbedding
Represents a planar graph with its planar embedding. The planar embedding is given by a `combinatorial embedding <https://en.wikipedia.org/wiki/Graph_embedding#Combinatorial_embedding>`_. .. note:: `check_planarity` is the preferred way to check if a graph is planar. **Neighbor ordering:** In comparison to a usual graph structure, the embedding also stores the order of all neighbors for every vertex. The order of the neighbors can be given in clockwise (cw) direction or counterclockwise (ccw) direction. This order is stored as edge attributes in the underlying directed graph. For the edge (u, v) the edge attribute 'cw' is set to the neighbor of u that follows immediately after v in clockwise direction. In order for a PlanarEmbedding to be valid it must fulfill multiple conditions. It is possible to check if these conditions are fulfilled with the method :meth:`check_structure`. The conditions are: * Edges must go in both directions (because the edge attributes differ) * Every edge must have a 'cw' and 'ccw' attribute which corresponds to a correct planar embedding. As long as a PlanarEmbedding is invalid only the following methods should be called: * :meth:`add_half_edge` * :meth:`connect_components` Even though the graph is a subclass of nx.DiGraph, it can still be used for algorithms that require undirected graphs, because the method :meth:`is_directed` is overridden. This is possible, because a valid PlanarGraph must have edges in both directions. **Half edges:** In methods like `add_half_edge` the term "half-edge" is used, which is a term that is used in `doubly connected edge lists <https://en.wikipedia.org/wiki/Doubly_connected_edge_list>`_. It is used to emphasize that the edge is only in one direction and there exists another half-edge in the opposite direction. While conventional edges always have two faces (including outer face) next to them, it is possible to assign each half-edge *exactly one* face. For a half-edge (u, v) that is oriented such that u is below v then the face that belongs to (u, v) is to the right of this half-edge. See Also -------- is_planar : Preferred way to check if an existing graph is planar. check_planarity : A convenient way to create a `PlanarEmbedding`. If not planar, it returns a subgraph that shows this. Examples -------- Create an embedding of a star graph (compare `nx.star_graph(3)`): >>> G = nx.PlanarEmbedding() >>> G.add_half_edge(0, 1) >>> G.add_half_edge(0, 2, ccw=1) >>> G.add_half_edge(0, 3, ccw=2) >>> G.add_half_edge(1, 0) >>> G.add_half_edge(2, 0) >>> G.add_half_edge(3, 0) Alternatively the same embedding can also be defined in counterclockwise orientation. The following results in exactly the same PlanarEmbedding: >>> G = nx.PlanarEmbedding() >>> G.add_half_edge(0, 1) >>> G.add_half_edge(0, 3, cw=1) >>> G.add_half_edge(0, 2, cw=3) >>> G.add_half_edge(1, 0) >>> G.add_half_edge(2, 0) >>> G.add_half_edge(3, 0) After creating a graph, it is possible to validate that the PlanarEmbedding object is correct: >>> G.check_structure()
class PlanarEmbedding(nx.DiGraph): """Represents a planar graph with its planar embedding. The planar embedding is given by a `combinatorial embedding <https://en.wikipedia.org/wiki/Graph_embedding#Combinatorial_embedding>`_. .. note:: `check_planarity` is the preferred way to check if a graph is planar. **Neighbor ordering:** In comparison to a usual graph structure, the embedding also stores the order of all neighbors for every vertex. The order of the neighbors can be given in clockwise (cw) direction or counterclockwise (ccw) direction. This order is stored as edge attributes in the underlying directed graph. For the edge (u, v) the edge attribute 'cw' is set to the neighbor of u that follows immediately after v in clockwise direction. In order for a PlanarEmbedding to be valid it must fulfill multiple conditions. It is possible to check if these conditions are fulfilled with the method :meth:`check_structure`. The conditions are: * Edges must go in both directions (because the edge attributes differ) * Every edge must have a 'cw' and 'ccw' attribute which corresponds to a correct planar embedding. As long as a PlanarEmbedding is invalid only the following methods should be called: * :meth:`add_half_edge` * :meth:`connect_components` Even though the graph is a subclass of nx.DiGraph, it can still be used for algorithms that require undirected graphs, because the method :meth:`is_directed` is overridden. This is possible, because a valid PlanarGraph must have edges in both directions. **Half edges:** In methods like `add_half_edge` the term "half-edge" is used, which is a term that is used in `doubly connected edge lists <https://en.wikipedia.org/wiki/Doubly_connected_edge_list>`_. It is used to emphasize that the edge is only in one direction and there exists another half-edge in the opposite direction. While conventional edges always have two faces (including outer face) next to them, it is possible to assign each half-edge *exactly one* face. For a half-edge (u, v) that is oriented such that u is below v then the face that belongs to (u, v) is to the right of this half-edge. See Also -------- is_planar : Preferred way to check if an existing graph is planar. check_planarity : A convenient way to create a `PlanarEmbedding`. If not planar, it returns a subgraph that shows this. Examples -------- Create an embedding of a star graph (compare `nx.star_graph(3)`): >>> G = nx.PlanarEmbedding() >>> G.add_half_edge(0, 1) >>> G.add_half_edge(0, 2, ccw=1) >>> G.add_half_edge(0, 3, ccw=2) >>> G.add_half_edge(1, 0) >>> G.add_half_edge(2, 0) >>> G.add_half_edge(3, 0) Alternatively the same embedding can also be defined in counterclockwise orientation. The following results in exactly the same PlanarEmbedding: >>> G = nx.PlanarEmbedding() >>> G.add_half_edge(0, 1) >>> G.add_half_edge(0, 3, cw=1) >>> G.add_half_edge(0, 2, cw=3) >>> G.add_half_edge(1, 0) >>> G.add_half_edge(2, 0) >>> G.add_half_edge(3, 0) After creating a graph, it is possible to validate that the PlanarEmbedding object is correct: >>> G.check_structure() """ def __init__(self, incoming_graph_data=None, **attr): super().__init__(incoming_graph_data=incoming_graph_data, **attr) self.add_edge = self.__forbidden self.add_edges_from = self.__forbidden self.add_weighted_edges_from = self.__forbidden def __forbidden(self, *args, **kwargs): """Forbidden operation Any edge additions to a PlanarEmbedding should be done using method `add_half_edge`. """ raise NotImplementedError( "Use `add_half_edge` method to add edges to a PlanarEmbedding." ) def get_data(self): """Converts the adjacency structure into a better readable structure. Returns ------- embedding : dict A dict mapping all nodes to a list of neighbors sorted in clockwise order. See Also -------- set_data """ embedding = {} for v in self: embedding[v] = list(self.neighbors_cw_order(v)) return embedding def set_data(self, data): """Inserts edges according to given sorted neighbor list. The input format is the same as the output format of get_data(). Parameters ---------- data : dict A dict mapping all nodes to a list of neighbors sorted in clockwise order. See Also -------- get_data """ for v in data: ref = None for w in reversed(data[v]): self.add_half_edge(v, w, cw=ref) ref = w def remove_node(self, n): """Remove node n. Removes the node n and all adjacent edges, updating the PlanarEmbedding to account for any resulting edge removal. Attempting to remove a non-existent 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 """ try: for u in self._pred[n]: succs_u = self._succ[u] un_cw = succs_u[n]["cw"] un_ccw = succs_u[n]["ccw"] del succs_u[n] del self._pred[u][n] if n != un_cw: succs_u[un_cw]["ccw"] = un_ccw succs_u[un_ccw]["cw"] = un_cw del self._node[n] del self._succ[n] del self._pred[n] except KeyError as err: # NetworkXError if n not in self raise nx.NetworkXError( f"The node {n} is not in the planar embedding." ) from err nx._clear_cache(self) 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`. """ for n in nodes: if n in self._node: self.remove_node(n) # silently skip non-existing nodes def neighbors_cw_order(self, v): """Generator for the neighbors of v in clockwise order. Parameters ---------- v : node Yields ------ node """ succs = self._succ[v] if not succs: # v has no neighbors return start_node = next(reversed(succs)) yield start_node current_node = succs[start_node]["cw"] while start_node != current_node: yield current_node current_node = succs[current_node]["cw"] def add_half_edge(self, start_node, end_node, *, cw=None, ccw=None): """Adds a half-edge from `start_node` to `end_node`. If the half-edge is not the first one out of `start_node`, a reference node must be provided either in the clockwise (parameter `cw`) or in the counterclockwise (parameter `ccw`) direction. Only one of `cw`/`ccw` can be specified (or neither in the case of the first edge). Note that specifying
(incoming_graph_data=None, **attr)
[ 0.03174198046326637, -0.03508538752794266, -0.04050823301076889, 0.03300595283508301, -0.007848852314054966, -0.006365724839270115, -0.04668538272380829, -0.015045332722365856, 0.002803161507472396, -0.003947360906749964, -0.03092651627957821, 0.006161858793348074, 0.015738477930426598, 0.04554373025894165, -0.026523005217313766, 0.01618698425590992, 0.009607198648154736, 0.023403849452733994, 0.008776444010436535, 0.009291206486523151, -0.046155329793691635, -0.057367973029613495, -0.009892611764371395, 0.04733775183558464, -0.004905532579869032, 0.039611220359802246, -0.01061124075204134, 0.005616516340523958, -0.061404526233673096, 0.005784706212580204, 0.0005717812455259264, -0.025992952287197113, -0.014872046187520027, -0.04533986374735832, 0.022323358803987503, -0.0034147603437304497, 0.021609827876091003, 0.007293316535651684, -0.08741786330938339, 0.005099205765873194, 0.008215812034904957, -0.014719146303832531, 0.04244496300816536, -0.05231209099292755, 0.03274092823266983, 0.02366887591779232, 0.03086535632610321, 0.04680769890546799, -0.04819399118423462, -0.028887853026390076, 0.014392959885299206, -0.06800979375839233, 0.0489279106259346, 0.05002878978848457, -0.015381711535155773, 0.013618268072605133, -0.01978522352874279, 0.04297501593828201, 0.07212789356708527, -0.04884636402130127, -0.016655875369906425, -0.023933902382850647, 0.016095243394374847, 0.013750781305134296, -0.02568715251982212, 0.016604909673333168, -0.047582391649484634, -0.014556053094565868, -0.02058030292391777, 0.013903681188821793, 0.012170817703008652, -0.0136284613981843, 0.00907205045223236, -0.01435218658298254, 0.00036632223054766655, -0.04260805621743202, 0.02876553311944008, -0.014912819489836693, -0.010682594031095505, -0.031334247440099716, 0.0265433918684721, -0.007252543233335018, 0.0012849947670474648, -0.021181708201766014, 0.06535953283309937, 0.01626853086054325, 0.06022210419178009, 0.010692787356674671, -0.011732504703104496, -0.06951840221881866, -0.021834079176187515, -0.038082223385572433, 0.029030559584498405, 0.03121192939579487, 0.00808839499950409, 0.026135658845305443, 0.008139361627399921, -0.14140166342258453, 0.014117741025984287, -0.024790141731500626, 0.009010890498757362, 0.03793951869010925, -0.055859364569187164, 0.017461147159337997, 0.005631806328892708, -0.024137768894433975, -0.061975352466106415, -0.02150789462029934, -0.030131438747048378, -0.013720201328396797, -0.034575723111629486, 0.023566942662000656, -0.0056980629451572895, 0.036797866225242615, 0.043627385050058365, 0.010223894380033016, -0.037144437432289124, 0.006003862246870995, -0.02158944122493267, 0.034433018416166306, 0.04847940430045128, 0.02503478154540062, -0.015289971604943275, -0.03180314227938652, 0.02676764503121376, -0.0005160365253686905, 0.04546218365430832, 0.021956399083137512, 0.013842521235346794, -0.04562527686357498, 0.012925122864544392, 0.02589101903140545, -0.04843863099813461, 0.05267905071377754, -0.02956061251461506, 0.014087161049246788, 0.03196623548865318, -0.03361755236983299, -0.042771149426698685, 0.02087590843439102, 0.0126193230971694, -0.01697186939418316, 0.06487025320529938, 0.007033387199044228, -0.0627092719078064, 0.0013404209166765213, -0.06177148595452309, -0.07057850807905197, 0.01568751037120819, -0.04063055291771889, 0.053576063364744186, -0.0788554847240448, 0.019295943900942802, 0.007497183047235012, 0.006243405397981405, -0.011875211261212826, -0.0017481534741818905, 0.027093829587101936, -0.00044595752842724323, 0.04374970495700836, -0.04366815835237503, -0.034351471811532974, -0.025809472426772118, 0.0353911891579628, -0.04803089797496796, -0.008822313509881496, 0.10429799556732178, -0.06372860074043274, -0.0194182638078928, 0.023057278245687485, 0.026726871728897095, -0.03922387585043907, -0.05541085824370384, 0.026563778519630432, -0.04138485714793205, 0.05948818475008011, 0.005947798956185579, 0.00473224651068449, 0.024300862103700638, -0.02144673466682434, -0.005871349014341831, -0.010050607845187187, -0.015554998070001602, -0.024708595126867294, 0.022894185036420822, 0.04423898458480835, 0.027725815773010254, -0.00458953995257616, 0.06890680640935898, -0.025789085775613785, -0.012201397679746151, -0.022466065362095833, 0.020407015457749367, 0.048316311091184616, -0.013913874514400959, -0.04998801648616791, 0.026889963075518608, 0.010065898299217224, -0.06980381906032562, 0.04705233871936798, -0.015554998070001602, 0.0028490314725786448, 0.05912122502923012, -0.001239124801941216, 0.013302275910973549, 0.0244639553129673, -0.016890322789549828, -0.005942702293395996, 0.008098588325083256, 0.03667554631829262, 0.01345517486333847, -0.014790499582886696, 0.08187270164489746, -0.016360269859433174, -0.011538832448422909, -0.0584280788898468, -0.09116900712251663, 0.07702068239450455, 0.0044137053191661835, -0.019051305949687958, -0.03157888725399971, 0.03021298535168171, -0.017715981230139732, -0.02101861499249935, -0.0009409703779965639, -0.061322979629039764, 0.04342351853847504, 0.000029206235922174528, -0.013536721467971802, -0.04835708439350128, 0.035860080271959305, -0.007522666361182928, -0.04660383611917496, -0.007833561860024929, 0.03649206459522247, -0.017083995044231415, -0.05002878978848457, 0.009245336055755615, 0.01813390664756298, -0.018225645646452904, 0.014046387746930122, -0.06580804288387299, -0.036859024316072464, -0.019520197063684464, -0.019153237342834473, 0.06409556418657303, 0.04036552459001541, 0.027175376191735268, 0.009051663801074028, -0.012945509515702724, -0.07502279430627823, -0.0749412477016449, -0.016054470092058182, -0.005157817155122757, 0.006146568804979324, -0.08032331615686417, -0.05761261284351349, -0.025075554847717285, 0.0570010170340538, 0.0015468355268239975, -0.006508431397378445, -0.008807023987174034, 0.004301578737795353, 0.07881470769643784, 0.0926368460059166, 0.01452547311782837, -0.010978199541568756, 0.023995062336325645, 0.008001752197742462, -0.05259750410914421, 0.02287379838526249, 0.053412970155477524, -0.006472754757851362, 0.033372912555933, 0.0196527112275362, 0.009082243777811527, -0.02258838526904583, 0.07514511793851852, 0.0047730193473398685, 0.028092775493860245, -0.02266993187367916, -0.03306711092591286, -0.03828608989715576, -0.004426446743309498, -0.02682880498468876, -0.004339803475886583, -0.010978199541568756, -0.05504389852285385, 0.040324751287698746, -0.03314865753054619, 0.01726747490465641, 0.004650699906051159, 0.04187413677573204, 0.004699117969721556, 0.06474793702363968, 0.027868522331118584, -0.004767922684550285, -0.022771865129470825, 0.00920965988188982, 0.019897351041436195, 0.058958131819963455, -0.025136712938547134, 0.09271839261054993, -0.008414581418037415, -0.004857114516198635, 0.025850245729088783, 0.022425292059779167, 0.04187413677573204, 0.042118776589632034, 0.007879432290792465, -0.02538135275244713, -0.03653283789753914, -0.03575814887881279, 0.033250592648983, 0.03168082237243652, -0.05300523713231087, 0.01036150474101305, -0.03948890045285225, 0.03115076944231987, 0.07151629775762558, 0.0058203828521072865, 0.025625992566347122, -0.05121121183037758, 0.024402795359492302, -0.03979470208287239, -0.07021155208349228, 0.10625511407852173, -0.008965020067989826, 0.03783758357167244, -0.04497290402650833, -0.017012642696499825, -0.013057636097073555, -0.04835708439350128, 0.02799084223806858, -0.09190292656421661, 0.02236413210630417, 0.03129347413778305, 0.004406060092151165, 0.02748117595911026, -0.0075328596867620945, 0.07820311188697815, 0.039835475385189056, -0.03274092823266983, 0.039529673755168915, 0.003735849866643548, -0.020845327526330948, 0.005692966282367706, -0.02317959815263748, -0.039448127150535583, 0.056797150522470474, 0.010162734426558018, 0.04635919630527496, -0.02799084223806858, 0.03999856486916542, 0.019530391320586205, -0.00746150640770793, -0.018979951739311218, -0.03583969548344612, -0.05618555098772049, 0.03712405264377594, 0.01927555724978447, 0.026094885542988777, -0.03959083557128906, 0.04087519273161888, -0.0517820380628109, -0.006855004001408815, -0.011538832448422909, -0.007471699733287096, 0.052271317690610886, -0.03518732264637947, 0.014994366094470024, -0.07314722239971161, -0.02179330587387085, 0.033189430832862854, 0.022058332338929176, 0.05757183954119682, -0.0003166298265568912, 0.04656306281685829, 0.010458340868353844, 0.004737343173474073, 0.015198231674730778, 0.03724637255072594, 0.03267976641654968, 0.031619660556316376, 0.017206314951181412, -0.0051195924170315266, 0.039815086871385574, -0.0004991538589820266, 0.025299806147813797, -0.007267833221703768, -0.06385092437267303, -0.0014232415705919266, 0.06136375293135643, 0.008903860114514828, -0.021100161597132683, 0.04509522393345833, 0.008373808115720749, 0.030233372002840042, 0.010274861007928848, -0.025625992566347122, 0.0395500622689724, -0.039468515664339066, -0.010132154449820518, 0.057449519634246826, 0.026278365403413773, -0.02007063664495945, 0.0732695460319519, 0.05382069945335388, 0.04697079211473465, 0.04799012467265129, -0.007522666361182928, 0.017726173624396324, 0.01653355546295643, 0.005489099770784378, -0.03137502074241638, -0.06593035906553268, 0.03965199366211891, 0.02065165527164936, 0.020682236179709435, 0.0011008779983967543, 0.04309733584523201, 0.0021953850518912077, 0.08480837941169739, 0.0028006131760776043, 0.005025303922593594, -0.043994344770908356, -0.012079077772796154, -0.010906846262514591, -0.023199984803795815, 0.033699098974466324, -0.0326593816280365, -0.04350506514310837, 0.04909100383520126, -0.055573951452970505, -0.021426348015666008, 0.014810886234045029, 0.024260088801383972, -0.00042015567305497825, -0.00460482994094491, 0.011599992401897907, 0.03834724798798561, -0.009311593137681484, -0.038673434406518936, -0.040814030915498734, -0.02603372558951378, 0.04236341640353203, -0.034494176506996155, 0.02733846940100193, 0.02022353559732437, 0.01536132488399744, 0.022241812199354172, -0.015646737068891525, 0.017614047974348068, -0.01906149834394455, -0.06951840221881866, 0.005280137062072754, 0.02454550191760063, -0.02935674600303173, -0.07628676295280457, 0.015544804744422436, 0.044198211282491684, 0.011161679401993752, -0.06499257683753967, 0.015024946071207523, -0.00031885961652733386, 0.039244260638952255, 0.02395428903400898, 0.002884708112105727, -0.039835475385189056, -0.010947619564831257, 0.05940663814544678, 0.0005208146758377552, 0.014066774398088455, -0.04847940430045128, 0.08660240471363068, 0.009362559765577316, -0.04913177713751793, -0.010652014054358006, -0.03950928896665573, -0.04970260336995125, -0.018082940950989723, -0.02568715251982212, -0.002289673313498497, -0.03706289082765579, 0.015014752745628357, -0.0007708694320172071, 0.0004105994594283402, 0.013669234700500965, 0.027236536145210266, 0.0018195066368207335, -0.04627764970064163, 0.029010172933340073, 0.029744092375040054, -0.004808695986866951, 0.01596273109316826, 0.0503549724817276, -0.029621772468090057, -0.010917039588093758, 0.06201612576842308, -0.02201755903661251, 0.016869936138391495, -0.03057994320988655, -0.041547950357198715, -0.05524776503443718, 0.034494176506996155, 0.0037052698899060488, -0.03172159567475319, 0.029621772468090057, 0.029295586049556732, 0.05276059731841087, 0.01814410090446472, -0.007512473035603762, 0.07057850807905197, -0.012497004121541977, 0.030314918607473373, 0.05920277163386345, -0.018867826089262962, 0.04297501593828201, 0.019020725041627884, -0.02978486567735672, 0.016421429812908173, 0.01755288802087307, 0.06287236511707306, 0.02432124875485897, -0.027827749028801918, 0.060670606791973114, -0.018042167648673058, -0.08595003187656403, 0.00019669911125674844, -0.005687869619578123, -0.012812996283173561, 0.01085587963461876, -0.027216149494051933, 0.0597328245639801, 0.037735652178525925, 0.029519839212298393, 0.018765892833471298, 0.03274092823266983, 0.02034585550427437, -0.002790419850498438, -0.007731629069894552, -0.04289346933364868, -0.05027342587709427, -0.0461961030960083, 0.003990682773292065, 0.004686376545578241, 0.0477454848587513, 0.002859224798157811, -0.0020526787266135216, -0.027786975726485252, -0.03294479101896286, 0.03416799008846283, 0.03214971348643303, 0.015239004977047443, 0.0707823783159256, -0.013169762678444386, 0.017797527834773064, -0.016717035323381424, 0.03530964255332947, 0.053576063364744186, -0.02619681879878044, -0.017002448439598083, 0.0021112903486937284, -0.07445196807384491, 0.04533986374735832, -0.021630214527249336, -0.01631949655711651, -0.010407374240458012, -0.0067989407107234, 0.02373003587126732, 0.03357677906751633, -0.011294192634522915, 0.020029863342642784, -0.04876481741666794, -0.05826498568058014, -0.02633952535688877, -0.05549240484833717, 0.028011228889226913, 0.009005793370306492, -0.08652085810899734, -0.02236413210630417, -0.017236895859241486, 0.03612510859966278, -0.0006523721385747194, 0.02862282656133175, 0.04199645668268204, 0.00605992553755641, 0.0394277423620224, 0.023220371454954147, -0.015024946071207523, -0.006365724839270115, -0.02684919163584709, 0.0570010170340538, 0.002394154667854309, 0.017797527834773064, 0.031476955860853195, -0.013465368188917637, 0.028439348563551903, 0.05410611256957054, -0.023974675685167313, -0.04986569657921791, -0.005331103689968586, 0.015779251232743263, 0.016248144209384918, -0.0019469230901449919, 0.03274092823266983, -0.0050966572016477585, -0.019540583714842796, -0.01575886458158493, -0.07857006788253784, -0.01478030625730753, 0.03041685000061989, -0.019693484529852867, -0.08660240471363068, -0.026237592101097107, -0.0638916939496994, -0.05577781796455383, 0.03504461422562599, 0.008139361627399921, -0.012099464423954487, 0.04542141035199165, -0.0012181011261418462, -0.01410754770040512, -0.040610164403915405, -0.03174198046326637, 0.027358856052160263, 0.04533986374735832, -0.04480981081724167, -0.0014780305791646242, 0.03573776036500931, 0.02913249284029007, -0.015738477930426598, -0.028826693072915077, -0.018154293298721313, -0.02165060117840767, -0.04107905924320221, 0.009969061240553856, -0.02466782182455063, 0.014219674281775951, 0.047011565417051315, -0.05084425210952759, -0.008052718825638294, -0.021548667922616005, -0.0052444604225456715, -0.011447092518210411, 0.026441458612680435, 0.05369838327169418, -0.07025232166051865, -0.03453494980931282, 0.006493141409009695, -0.023220371454954147, 0.036655157804489136, 0.007986461743712425, -0.04423898458480835, 0.04811244457960129, 0.036655157804489136, -0.005004917271435261, 0.023363078013062477, 0.04044707119464874, -0.027440402656793594, 0.05969205126166344, -0.013638654723763466, -0.016085051000118256, -0.034677654504776, 0.012996476143598557, 0.0340864434838295, 0.0435866117477417, -0.014912819489836693, 0.03078380972146988, -0.011640765704214573, -0.03626781329512596, -0.0353911891579628, 0.019673097878694534, -0.03127308934926987, -0.03310788422822952, 0.022201038897037506, -0.05337219685316086, -0.016003504395484924, -0.015045332722365856, -0.06397324055433273, -0.016095243394374847, 0.03498345613479614, 0.007563439663499594, -0.026726871728897095, -0.016370464116334915, -0.008124072104692459, -0.026421071961522102, -0.025646379217505455, -0.015381711535155773, -0.07722455263137817, -0.02497362159192562, -0.004028907511383295, 0.06495179980993271, -0.015320551581680775, 0.01718592830002308, -0.0292140394449234, 0.007960978895425797, -0.00014159151760395616, 0.013659041374921799, -0.03749101236462593, 0.009790678508579731, -0.017715981230139732, -0.02417854219675064, -0.026502618566155434, -0.017450954765081406, 0.04660383611917496, -0.010601047426462173, -0.004676183219999075, -0.014117741025984287, 0.0020921777468174696, -0.008236197754740715, 0.050191882997751236, 0.006350434850901365, -0.08321821689605713, -0.007701049093157053, 0.025625992566347122, -0.021834079176187515, -0.0005899380776099861, -0.01136554591357708, 0.00017710884276311845, -0.011752891354262829, 0.03541157394647598, -0.001492046401835978, 0.045217543840408325, -0.05818343907594681, -0.004655796568840742, -0.03314865753054619, -0.05174126476049423, -0.016502976417541504, -0.05112966522574425, 0.002115112729370594, 0.09989448636770248, -0.01768540032207966, 0.10968006402254105, -0.03431069850921631, 0.031762368977069855, 0.0061516654677689075, 0.02483091503381729, -0.029438292607665062, 0.04656306281685829, 0.007497183047235012, 0.01374058797955513, -0.06466639041900635, -0.020488562062382698, 0.04264882951974869, 0.04839785769581795, -0.020672041922807693, 0.0516597181558609, 0.02122248150408268, 0.00020179577404633164, 0.04754161834716797, 0.0025394095573574305, -0.016288917511701584, -0.006640944629907608, 0.018979951739311218, -0.0029815444722771645, 0.012894542887806892, -0.0029484161641448736, -0.04124215245246887, -0.14034155011177063, -0.0954909697175026, -0.054350752383470535, -0.02035604976117611, 0.03239435330033302, -0.017665013670921326, 0.031558502465486526, 0.012812996283173561, 0.05345374345779419 ]
30,272
networkx.algorithms.planarity
__forbidden
Forbidden operation Any edge additions to a PlanarEmbedding should be done using method `add_half_edge`.
def __forbidden(self, *args, **kwargs): """Forbidden operation Any edge additions to a PlanarEmbedding should be done using method `add_half_edge`. """ raise NotImplementedError( "Use `add_half_edge` method to add edges to a PlanarEmbedding." )
(self, *args, **kwargs)
[ -0.015773244202136993, -0.04899303987622261, 0.016138484701514244, 0.09438464790582657, -0.06458791345357895, -0.022440986707806587, -0.012978739105165005, -0.021591592580080032, 0.016758542507886887, 0.016945408657193184, 0.042129937559366226, 0.00628126785159111, 0.0018272586166858673, -0.02103099226951599, -0.058166492730379105, -0.004036744590848684, -0.026076393201947212, 0.03305841237306595, 0.004125930834561586, -0.03139359876513481, -0.04328511282801628, -0.017803296446800232, 0.01911136321723461, 0.024547483772039413, 0.01055796630680561, 0.10756724327802658, -0.03428153693675995, 0.0025481816846877337, 0.02317146584391594, -0.007521382998675108, -0.015560896135866642, -0.0073727392591536045, 0.013862108811736107, 0.019128350540995598, 0.04002344235777855, 0.003079052781686187, 0.0028645808342844248, 0.0122822355479002, -0.11714840680360794, 0.007109426893293858, -0.06560718268156052, -0.019705938175320625, 0.04124656692147255, -0.04080488160252571, 0.004675913602113724, -0.02952493168413639, 0.039174046367406845, 0.028403732925653458, -0.0409407876431942, -0.035946350544691086, -0.02055533230304718, -0.008489691652357578, 0.07175679504871368, 0.05038604512810707, -0.024156762287020683, 0.03509695455431938, -0.00853640865534544, 0.06676235795021057, 0.031512513756752014, 0.03496105223894119, -0.007334516383707523, 0.010549472644925117, 0.000186999372090213, -0.01963798701763153, 0.034689247608184814, 0.020317502319812775, -0.052016884088516235, 0.02334134466946125, 0.0014917480293661356, 0.0769890621304512, -0.01643577218055725, -0.034859124571084976, 0.002348574111238122, 0.06540332734584808, 0.00521527836099267, -0.05405542626976967, 0.005045400001108646, 0.031104804947972298, 0.033551059663295746, -0.002484477125108242, 0.03130865842103958, -0.06441803276538849, 0.005559283308684826, 0.033992744982242584, 0.01278337836265564, -0.02295062318444252, -0.021217860281467438, -0.03380587697029114, 0.003244684776291251, -0.0688009038567543, -0.038698386400938034, -0.001909012789838016, -0.04698847234249115, 0.018312932923436165, -0.005601752549409866, 0.0316484160721302, -0.005525307264178991, -0.07739677280187607, 0.003934817388653755, 0.02016461081802845, -0.000734725734218955, 0.04586727172136307, 0.028896380215883255, 0.020844126120209694, 0.043488968163728714, -0.04807569459080696, -0.016801010817289352, -0.07692111283540726, -0.056026022881269455, 0.026586029678583145, 0.022457974031567574, 0.05327398702502251, 0.008825202472507954, 0.04760003462433815, -0.06214165687561035, 0.03149552643299103, -0.044610168784856796, -0.052152786403894424, 0.01175561174750328, 0.04807569459080696, 0.031852271407842636, -0.013547833077609539, -0.0014938715612515807, -0.030680106952786446, 0.04437233880162239, 0.03027239814400673, 0.010566459968686104, 0.0146350571885705, -0.02521001175045967, -0.06713609397411346, 0.004637690726667643, 0.01618095301091671, -0.042911380529403687, 0.03052721731364727, -0.023749053478240967, -0.025142058730125427, 0.08575481176376343, -0.0239529088139534, 0.011228987015783787, -0.027588313445448875, -0.023596161976456642, 0.00023398148186970502, 0.07495051622390747, 0.04508582875132561, -0.05412337929010391, 0.018448835238814354, -0.048109669238328934, -0.06085057929158211, 0.06662645936012268, -0.01841486059129238, 0.059729378670454025, -0.010889229364693165, -0.010727845132350922, -0.0192472655326128, -0.017718356102705002, 0.04294535517692566, 0.017871247604489326, -0.05205085873603821, 0.005066634621471167, 0.03431551530957222, -0.01562884822487831, -0.08222132921218872, 0.018041126430034637, 0.009113996289670467, 0.017200225964188576, -0.015042765997350216, 0.1013157069683075, -0.038256701081991196, -0.004229981452226639, 0.05558433756232262, 0.040567051619291306, -0.019587023183703423, -0.031019864603877068, 0.036218155175447464, 0.01663113199174404, 0.05589011684060097, 0.020198587328195572, 0.006417171098291874, 0.0004913212615065277, -0.02495519258081913, 0.06438405811786652, -0.009046045131981373, -0.00824336800724268, -0.02373206615447998, 0.068427175283432, -0.0027265544049441814, -0.005109104327857494, 0.0032829074189066887, 0.00479058176279068, -0.0005420194938778877, 0.013250544667243958, -0.03178431838750839, 0.019977744668722153, 0.022508937865495682, -0.022967610508203506, -0.0710093304514885, -0.0075256298296153545, -0.007780448067933321, -0.010328629985451698, 0.03366997465491295, -0.004348896909505129, 0.0037203452084213495, 0.007130661979317665, 0.012834342196583748, 0.012630486860871315, 0.06200575456023216, 0.021540628746151924, 0.003459156723693013, -0.02459844760596752, -0.031206732615828514, 0.028675537556409836, 0.004153536166995764, 0.036252133548259735, 0.011916995979845524, 0.028148913756012917, 0.0015788108576089144, -0.06278719753026962, 0.011747118085622787, -0.05962745100259781, 0.037475258111953735, 0.0013409806415438652, 0.019519072026014328, -0.053070131689310074, -0.03261672705411911, 0.037475258111953735, -0.04172222688794136, 0.05646770820021629, -0.023154478520154953, -0.007640297990292311, -0.035776469856500626, -0.008859178051352501, 0.022831708192825317, -0.058166492730379105, 0.022407010197639465, 0.0008037390070967376, 0.062447439879179, 0.006731446832418442, -0.057724811136722565, 0.022220144048333168, -0.015085235238075256, 0.01746353879570961, -0.03737333044409752, -0.032344918698072433, 0.055414456874132156, -0.009445260278880596, 0.05483686923980713, -0.01561185996979475, 0.054938796907663345, 0.03030637465417385, -0.0015384646831080317, -0.07481461763381958, -0.03402671962976456, -0.06523345410823822, 0.03509695455431938, 0.021183883771300316, -0.047667983919382095, -0.0015151064144447446, -0.053545791655778885, 0.05052194744348526, 0.010320136323571205, -0.055074699223041534, 0.03383985161781311, -0.006489369552582502, 0.03200516104698181, 0.07372739166021347, -0.020198587328195572, -0.006587049923837185, 0.025057120248675346, 0.0020289896056056023, -0.0031130285933613777, -0.009173453785479069, 0.022627852857112885, 0.019009435549378395, 0.01012477558106184, 0.010286159813404083, -0.01665661484003067, -0.002722307341173291, 0.0915306881070137, -0.014499153941869736, 0.03988753631711006, 0.0351988822221756, -0.015306077897548676, -0.04977448284626007, 0.047362204641103745, -0.07855194807052612, 0.0053172060288488865, 0.023613151162862778, -0.004433836322277784, 0.020113646984100342, -0.06482574343681335, 0.00626003323122859, 0.055244579911231995, 0.05521060526371002, 0.03992151468992233, 0.05048797279596329, 0.013811144977807999, 0.026586029678583145, -0.015034272335469723, 0.039785608649253845, 0.0004960991209372878, 0.03209010139107704, -0.008842190727591515, 0.03266768902540207, -0.0442364327609539, 0.015170174650847912, -0.038868263363838196, 0.07107727974653244, 0.052016884088516235, -0.015272102318704128, -0.01478794775903225, -0.0274354238063097, -0.010005860589444637, -0.05252651870250702, 0.03074805997312069, 0.03253178671002388, 0.04780388996005058, 0.022457974031567574, 0.007368491962552071, -0.0112119996920228, 0.05456506460905075, -0.004739617928862572, 0.011526275426149368, -0.020980028435587883, -0.022746767848730087, -0.0006450085202232003, -0.09295766800642014, 0.07848399877548218, -0.055992044508457184, 0.030374325811862946, 0.004663172643631697, 0.0019504207884892821, 0.0025205763522535563, -0.012545548379421234, -0.0035398490726947784, -0.14174684882164001, -0.007219848223030567, 0.02660301700234413, 0.006370454095304012, 0.007504395209252834, 0.027401447296142578, 0.010804290883243084, 0.005907534621655941, 0.0011987071484327316, 0.07828014343976974, 0.0055762710981070995, 0.0009316789219155908, -0.010812784545123577, -0.01877160556614399, 0.02459844760596752, 0.012757896445691586, 0.01184904482215643, 0.026025429368019104, -0.005402145441621542, 0.01066838763654232, 0.04090680927038193, -0.00010292265505995601, -0.014201866462826729, -0.003554713446646929, -0.0824931338429451, 0.007861140184104443, 0.04994435980916023, -0.02539687789976597, -0.0064214179292321205, 0.034383464604616165, -0.014745478518307209, -0.000008440022611466702, 0.021064968779683113, -0.019043412059545517, 0.03389081731438637, -0.021404726430773735, -0.01829594373703003, -0.060646723955869675, -0.021098945289850235, 0.0334831066429615, 0.015535414218902588, 0.041960056871175766, -0.01190850231796503, 0.04634293168783188, -0.03392479196190834, 0.05313808098435402, -0.017106793820858, 0.03883428871631622, 0.010795796290040016, -0.016928421333432198, 0.026161331683397293, 0.02974577434360981, 0.0002487131569068879, 0.0065912967547774315, 0.035436712205410004, 0.040091391652822495, -0.0022211649920791388, -0.06302502751350403, 0.011441336013376713, -0.04389667510986328, -0.05639975517988205, 0.0012793996138498187, -0.04060102999210358, 0.02342628315091133, -0.0007644544821232557, -0.012842835858464241, 0.009258393198251724, 0.018652690574526787, -0.07488256692886353, 0.0024250196292996407, 0.004862780217081308, 0.0004934447933919728, 0.016214929521083832, 0.07386329025030136, 0.0485173799097538, 0.011025132611393929, 0.004807569552212954, 0.010082305409014225, -0.01807510294020176, 0.026772895827889442, 0.023833991959691048, -0.008290084078907967, 0.06431610882282257, -0.021098945289850235, -0.031206732615828514, -0.005232266616076231, 0.08337650448083878, 0.001477945363149047, 0.06713609397411346, 0.014193371869623661, -0.018703654408454895, -0.04732822999358177, -0.014439696446061134, -0.007967314682900906, 0.025889525189995766, 0.004934978671371937, -0.026806872338056564, -0.017174744978547096, 0.01528909057378769, -0.025617720559239388, -0.015926135703921318, -0.021914362907409668, -0.014286805875599384, -0.010082305409014225, 0.026008442044258118, 0.027316506952047348, 0.012069887481629848, -0.021285811439156532, -0.01359030231833458, -0.05357976630330086, 0.00626003323122859, -0.036557912826538086, -0.05191495642066002, 0.04433836042881012, 0.06876692920923233, -0.023290380835533142, 0.055074699223041534, 0.05857420340180397, 0.05758890509605408, 0.010048329830169678, -0.045493535697460175, -0.008336801081895828, -0.010073811747133732, -0.07596979290246964, 0.007402468007057905, -0.0007867511012591422, 0.018567750230431557, 0.029507944360375404, -0.0994810163974762, 0.0112119996920228, 0.05490482226014137, 0.051711101084947586, -0.01495782658457756, -0.01278337836265564, -0.019807865843176842, 0.003554713446646929, 0.07712496817111969, -0.040872834622859955, 0.03988753631711006, -0.0685630738735199, 0.07134908437728882, 0.03331322968006134, -0.012851329520344734, 0.0016106631373986602, -0.004684407263994217, -0.04267355054616928, -0.009903932921588421, -0.015433487482368946, -0.021200871095061302, -0.012375669553875923, -0.016367821022868156, 0.008298578672111034, -0.06886886060237885, 0.020198587328195572, 0.04478004574775696, 0.029881676658988, -0.00825610850006342, -0.022831708192825317, 0.009317850694060326, -0.011127060279250145, 0.022967610508203506, 0.025889525189995766, -0.04838147759437561, -0.0018399995751678944, 0.0017285165376961231, 0.017030347138643265, -0.021064968779683113, -0.05374964699149132, -0.05048797279596329, -0.0727081149816513, 0.0454595610499382, -0.02142171375453472, -0.009122490882873535, 0.02865855023264885, 0.019875817000865936, 0.05347783863544464, 0.005631481762975454, -0.010379593819379807, 0.08568685501813889, 0.027979034930467606, 0.06893680989742279, 0.059865280985832214, -0.012137838639318943, 0.08215337991714478, 0.01544198114424944, 0.012435127049684525, 0.04494992643594742, -0.007100933231413364, 0.017429562285542488, -0.02447953261435032, -0.0023761794436722994, -0.032073114067316055, -0.06428212672472, -0.10471328347921371, 0.03326226398348808, -0.01077880896627903, -0.006846114993095398, 0.01651221700012684, -0.015416499227285385, 0.008901648223400116, -0.0067611755803227425, 0.07325173169374466, -0.013394941575825214, 0.029423004016280174, 0.04868725687265396, 0.0033805877901613712, -0.011288444511592388, -0.012605005875229836, -0.03326226398348808, -0.004149289336055517, -0.030951913446187973, -0.020878102630376816, -0.043319087475538254, -0.027945058420300484, 0.024972179904580116, -0.028029998764395714, -0.01590914838016033, 0.052458565682172775, 0.023205440491437912, 0.015153187327086926, 0.07087342441082001, -0.0008573569939471781, 0.02721458114683628, 0.003244684776291251, 0.00014758219185750932, 0.055244579911231995, -0.047973766922950745, -0.047192323952913284, 0.029372040182352066, -0.052900251001119614, -0.025668684393167496, 0.008290084078907967, 0.009912426583468914, 0.005036905873566866, -0.03506297990679741, -0.022882672026753426, -0.04019331932067871, -0.014473672024905682, 0.022152192890644073, -0.008706287480890751, -0.05391952395439148, -0.019705938175320625, -0.016062038019299507, -0.007878128439188004, -0.030374325811862946, -0.08956009149551392, -0.034689247608184814, -0.004387119319289923, -0.0049647074192762375, -0.026704944670200348, -0.0028199877124279737, 0.02896433137357235, 0.034213587641716, 0.008527914993464947, 0.023239417001605034, 0.044576190412044525, 0.0005574147216975689, -0.01816004142165184, 0.02918517403304577, -0.04376077279448509, 0.0030408301390707493, 0.038528505712747574, -0.026806872338056564, -0.011815069243311882, 0.012571029365062714, 0.01239265687763691, -0.03822272643446922, 0.02264484204351902, 0.04440631344914436, -0.008362282998859882, -0.008234873414039612, 0.04593522101640701, -0.027860119938850403, -0.009020563215017319, -0.04593522101640701, -0.06496164202690125, -0.04481402039527893, 0.05945757403969765, -0.02417374961078167, -0.04066897928714752, -0.0013866355875506997, -0.020045695826411247, -0.04739617928862572, 0.06703417003154755, 0.06411225348711014, 0.043183185160160065, -0.02451350726187229, -0.009292369708418846, -0.066966213285923, -0.027401447296142578, -0.05021616816520691, -0.021880386397242546, 0.0415523499250412, -0.039343927055597305, -0.008094724267721176, 0.04175620526075363, -0.030985889956355095, -0.017089804634451866, -0.02595747821033001, -0.023833991959691048, 0.01596011221408844, -0.027775181457400322, -0.02826782874763012, -0.00896959938108921, 0.008209392428398132, 0.042571622878313065, -0.028250841423869133, 0.007177378516644239, -0.05653565749526024, 0.000131390625028871, -0.014312286861240864, 0.08174566924571991, -0.06492766737937927, -0.041960056871175766, 0.019315216690301895, -0.02072521112859249, -0.009929414838552475, 0.04539161175489426, 0.01484740525484085, -0.013012714684009552, 0.016223423182964325, 0.019349193200469017, -0.05133736878633499, -0.0036715050227940083, 0.038698386400938034, -0.04284342750906944, 0.050623875111341476, -0.030289387330412865, 0.04223186522722244, -0.021931350231170654, -0.014686020091176033, 0.03341515734791756, -0.006519098300486803, -0.058540228754282, 0.01108459010720253, 0.014116927050054073, -0.023239417001605034, -0.034995026886463165, 0.0031257695518434048, 0.011687659658491611, -0.008026772178709507, 0.006192081607878208, 0.007627557031810284, -0.056773487478494644, -0.0041960058733820915, 0.0004926484543830156, -0.06523345410823822, -0.036693815141916275, -0.017497513443231583, -0.05143929645419121, -0.042911380529403687, 0.05857420340180397, -0.06784958392381668, 0.031597454100847244, -0.02930408902466297, -0.05945757403969765, -0.006213316228240728, -0.05840432643890381, 0.039819587022066116, 0.01402349304407835, 0.032209016382694244, -0.005058140493929386, -0.018839556723833084, -0.030459266155958176, 0.027503374963998795, 0.04019331932067871, 0.011636696755886078, 0.004837298300117254, -0.044134508818387985, -0.00025986143737100065, -0.01643577218055725, 0.0038796067237854004, -0.008765744976699352, -0.01829594373703003, 0.0073727392591536045, -0.06057877466082573, -0.021149907261133194, 0.03005155548453331, 0.040431149303913116, -0.02239002287387848, 0.018499799072742462, -0.024326641112565994, -0.02264484204351902, 0.018431847915053368, 0.01707281731069088, -0.03096890076994896, -0.023528210818767548, -0.006990511901676655, -0.00785264652222395, -0.002811493817716837, -0.03149552643299103, -0.0364220105111599, -0.03890224173665047, -0.06835921853780746, 0.020215574651956558, -0.0031002876348793507, 0.0328715443611145, 0.052152786403894424, -0.033551059663295746, 0.04743015393614769, -0.020793162286281586, -0.006625272333621979, -0.0454595610499382, 0.02887939289212227, 0.014235842041671276, 0.0029431497678160667, 0.03550466522574425, 0.005291724111884832, 0.005461602937430143, -0.0479058176279068, 0.0448479987680912, 0.01190850231796503, -0.027469398453831673, 0.07060161978006363, -0.0028072467539459467, 0.033126361668109894, 0.020793162286281586, 0.05514265224337578, -0.019196301698684692, 0.033992744982242584, -0.005478590726852417, -0.044610168784856796, 0.07012595981359482, 0.0112119996920228, -0.021370749920606613, -0.08854082226753235, -0.08011483401060104, 0.00020584531011991203, 0.005818348377943039, 0.00425333995372057, 0.006102895364165306, 0.034859124571084976, 0.04280945286154747, 0.04104271158576012 ]
30,275
networkx.algorithms.planarity
__init__
null
def __init__(self, incoming_graph_data=None, **attr): super().__init__(incoming_graph_data=incoming_graph_data, **attr) self.add_edge = self.__forbidden self.add_edges_from = self.__forbidden self.add_weighted_edges_from = self.__forbidden
(self, incoming_graph_data=None, **attr)
[ -0.026099737733602524, -0.020957542583346367, 0.016424987465143204, 0.0417737178504467, -0.07845824956893921, -0.000017291131371166557, -0.02698327787220478, -0.007404055912047625, 0.03564195707440376, -0.0006079851882532239, 0.014622568152844906, 0.03315037861466408, 0.01038158219307661, 0.017370374873280525, -0.05103320628404617, 0.00796952098608017, 0.011026564985513687, 0.03226684033870697, 0.02309570647776127, -0.006392403971403837, -0.059091079980134964, -0.0011005580890923738, -0.018218571320176125, 0.04576731473207474, 0.0242973193526268, 0.08489041775465012, -0.09174668043851852, 0.015294058248400688, 0.04491911828517914, -0.023007351905107498, -0.027601754292845726, -0.04587334021925926, 0.0006306258728727698, 0.02906842902302742, 0.061352938413619995, -0.014445860870182514, -0.02484511397778988, 0.03311503678560257, -0.13670113682746887, 0.04884202778339386, 0.022618595510721207, -0.03739136457443237, -0.028114207088947296, 0.0015009116614237428, 0.05191674456000328, 0.010072343051433563, 0.015064338222146034, 0.046262096613645554, -0.030075663700699806, -0.08453699946403503, -0.02979293093085289, 0.020392077043652534, 0.028626659885048866, 0.063084676861763, -0.01174223143607378, 0.06767907738685608, 0.002303827553987503, 0.06357945501804352, 0.022265179082751274, 0.061953745782375336, -0.02143465355038643, 0.00721409497782588, 0.01670772023499012, -0.09535151720046997, 0.006754654925316572, -0.0028715012595057487, -0.0835474357008934, -0.014905300922691822, -0.015064338222146034, 0.0455906055867672, 0.006759072188287973, -0.01287316158413887, -0.00428295461460948, 0.054143261164426804, 0.03555360436439514, -0.023961573839187622, 0.006573529448360205, 0.029739918187260628, -0.005084766075015068, 0.01274063065648079, 0.055344875901937485, -0.026735886931419373, -0.01947319693863392, -0.004117290955036879, 0.017326196655631065, -0.00903860293328762, -0.023413781076669693, -0.03507649526000023, -0.021257946267724037, -0.05350711569190025, -0.05788946896791458, 0.025604955852031708, -0.03491745516657829, 0.03253190219402313, 0.045625947415828705, 0.019791271537542343, -0.02783147431910038, -0.043540794402360916, 0.04679222032427788, 0.017458727583289146, -0.03640180081129074, 0.018819378688931465, -0.030075663700699806, -0.0018631626153364778, 0.01785632036626339, -0.09563424438238144, -0.001957038650289178, -0.08170967549085617, -0.01184825599193573, -0.015921371057629585, -0.01938484236598015, 0.04407091811299324, 0.04548458009958267, 0.09372580051422119, -0.027354363352060318, 0.048523955047130585, -0.00749240955337882, -0.04530787467956543, 0.0340869314968586, 0.018359938636422157, -0.005402840208262205, 0.01610691286623478, 0.0017516157822683454, 0.03986527398228645, 0.013571157120168209, 0.04071347042918205, 0.005394004750996828, -0.029139112681150436, 0.005654648877680302, -0.04594402015209198, 0.0034480104222893715, -0.019596891477704048, -0.007894420064985752, 0.043929554522037506, -0.025675639510154724, -0.013668346218764782, 0.01325308345258236, -0.00042106150067411363, -0.008610086515545845, 0.024049928411841393, 0.011176766827702522, -0.005601636599749327, 0.048948053270578384, -0.007231765892356634, -0.022618595510721207, 0.03643714264035225, -0.04820588231086731, -0.02966923639178276, 0.008919324725866318, -0.07428795099258423, 0.013959914445877075, -0.005575130227953196, -0.03072948195040226, 0.03244354575872421, -0.007364296354353428, 0.055592264980077744, -0.07676185667514801, -0.0387696847319603, -0.0004199570685159415, 0.0174763984978199, -0.030976872891187668, -0.05916176363825798, 0.021664373576641083, -0.03583633527159691, -0.02212381362915039, -0.03030538372695446, 0.09542220085859299, -0.06460436433553696, -0.030976872891187668, 0.038557637482881546, -0.022724619135260582, -0.09683585911989212, -0.04028937220573425, 0.04555526375770569, -0.012519746087491512, 0.046014703810214996, 0.03447568789124489, 0.01515269186347723, 0.040466081351041794, 0.01938484236598015, 0.04258657246828079, -0.005941798910498619, -0.022265179082751274, -0.012024964205920696, 0.05788946896791458, -0.030323054641485214, -0.009506878443062305, 0.01926114782691002, 0.017114147543907166, 0.04484843462705612, 0.03869900107383728, -0.009506878443062305, 0.026011385023593903, 0.024915795773267746, 0.03521785885095596, -0.022300520911812782, 0.0032337522134184837, -0.0028560394421219826, -0.069057397544384, 0.05230550095438957, 0.06633609533309937, -0.012926173396408558, 0.010690820403397083, 0.006988792680203915, 0.0025998130440711975, 0.0818510428071022, 0.007717712316662073, 0.024173622950911522, -0.004969906061887741, -0.046050045639276505, -0.025410577654838562, -0.008557073771953583, 0.06425094604492188, -0.003408251330256462, -0.01904909871518612, -0.01589486375451088, -0.03302668407559395, 0.024173622950911522, -0.01850130409002304, 0.014816947281360626, 0.06188306212425232, -0.017882827669382095, -0.05799549072980881, -0.0490187369287014, -0.0010226962622255087, 0.004947817884385586, 0.024014586582779884, -0.054143261164426804, -0.03332708775997162, 0.021469995379447937, 0.0063614798709750175, -0.002394390292465687, 0.02924513630568981, 0.012298861518502235, -0.0421978160738945, 0.07085981965065002, 0.03512950614094734, -0.01781214401125908, -0.05562760680913925, 0.0029090517200529575, -0.027089301496744156, -0.018430620431900024, -0.010408087633550167, -0.005323321558535099, 0.023643501102924347, 0.01729969121515751, 0.02049810253083706, 0.044388994574546814, -0.003028329461812973, -0.012828984297811985, -0.05665251240134239, -0.024650733917951584, -0.07485341280698776, 0.01989729516208172, 0.006083165295422077, -0.024014586582779884, -0.03230218216776848, -0.04880668595433235, 0.04078415408730507, 0.011265120469033718, -0.01159203052520752, 0.05506214126944542, -0.039653223007917404, 0.07167267054319382, 0.03486444428563118, -0.010443429462611675, 0.007121323142200708, 0.00315865152515471, -0.05216413363814354, -0.01029322762042284, 0.05234084278345108, -0.005500029306858778, 0.08460768312215805, 0.040006641298532486, 0.00331327086314559, -0.06255455315113068, -0.039229124784469604, 0.028290914371609688, -0.03933515027165413, 0.003381744958460331, 0.027513399720191956, 0.011406486853957176, -0.0039427923038601875, 0.023943902924656868, -0.05647580325603485, -0.008495226502418518, 0.03329174593091011, 0.01029322762042284, -0.04636812210083008, -0.07025901228189468, -0.00845988467335701, 0.03511183336377144, 0.03585400804877281, 0.05725331977009773, 0.04969022795557976, -0.01246673334389925, 0.03145398572087288, 0.06753771007061005, 0.01056712493300438, 0.01645149476826191, 0.06881000846624374, -0.03597770258784294, 0.0349527969956398, -0.03338009864091873, -0.02233586274087429, -0.057005926966667175, 0.07040037959814072, 0.06117623299360275, 0.00858799833804369, -0.014392848126590252, -0.009056273847818375, 0.05403723940253258, -0.024986479431390762, 0.0417737178504467, -0.025940701365470886, 0.004612072836607695, 0.009047438390552998, -0.041455645114183426, 0.020180027931928635, 0.08602134138345718, -0.010284392163157463, -0.0015362532576546073, -0.05523885041475296, -0.04841792955994606, -0.04424762725830078, 0.016990453004837036, 0.07874098420143127, -0.004267492797225714, 0.002396599156782031, 0.0055044470354914665, 0.014260317198932171, 0.0027301351074129343, -0.014781605452299118, -0.03954720124602318, -0.10079411417245865, 0.009577561169862747, 0.0017118565738201141, -0.006569111719727516, 0.009374347515404224, -0.04152632877230644, -0.03064112737774849, 0.010408087633550167, 0.019932636991143227, 0.03094153106212616, 0.006511681713163853, -0.0511392317712307, -0.025551944971084595, -0.04453035816550255, -0.026541508734226227, 0.01637197472155094, -0.021558348089456558, 0.04919544607400894, -0.019155122339725494, 0.025304554030299187, 0.072450190782547, -0.025622626766562462, -0.013995256274938583, 0.005212879274040461, -0.030287712812423706, 0.015320563688874245, 0.034528698772192, 0.02203545905649662, -0.01169805508106947, -0.018784036859869957, 0.02131095714867115, -0.008649845607578754, 0.04735768213868141, 0.013615334406495094, 0.012201671488583088, -0.029386503621935844, 0.009383182972669601, -0.08637475967407227, -0.03106522746384144, 0.013942243531346321, 0.037744779139757156, 0.01453421451151371, -0.03521785885095596, 0.011645042337477207, 0.0037351606879383326, 0.02544591948390007, -0.028538305312395096, 0.047287002205848694, 0.014304494485259056, 0.04057210683822632, 0.02092220075428486, -0.0023612575605511665, 0.018872389569878578, 0.0374973900616169, 0.06760839372873306, 0.05799549072980881, 0.004364681895822287, -0.06255455315113068, 0.015788840129971504, -0.010319733992218971, -0.03178972750902176, -0.04594402015209198, 0.03894639387726784, -0.006979957222938538, -0.0075630927458405495, -0.022830644622445107, 0.002259650733321905, -0.004616490565240383, -0.040006641298532486, 0.025710981339216232, 0.05170469358563423, 0.02019769884645939, 0.004930146969854832, 0.0703296959400177, 0.045378558337688446, -0.007055058144032955, 0.0336805023252964, 0.01938484236598015, 0.01266111247241497, 0.011379980482161045, 0.01938484236598015, -0.03613673895597458, 0.05750070884823799, -0.03260258585214615, 0.03516484797000885, 0.007280360441654921, 0.038168881088495255, 0.047074951231479645, 0.07170801609754562, -0.021770397201180458, 0.023219401016831398, 0.0015351488254964352, -0.01581534557044506, -0.020321393385529518, -0.018890060484409332, 0.03760341554880142, -0.009232981130480766, 0.04453035816550255, 0.01370368804782629, -0.02067480981349945, 0.008495226502418518, -0.01204263512045145, -0.016168761998414993, -0.03431665152311325, -0.012431392446160316, 0.03269093856215477, 0.005155449267476797, -0.03929980844259262, 0.03551826253533363, -0.03201944753527641, -0.03380419686436653, -0.03201944753527641, -0.052870966494083405, 0.06375616788864136, 0.0669369027018547, -0.04965488612651825, 0.04329340532422066, 0.0017317362362518907, 0.0485946387052536, -0.00008448840526398271, -0.10765037685632706, 0.043576136231422424, -0.008212493732571602, -0.06453368067741394, 0.008044621907174587, 0.02403225749731064, -0.016133420169353485, -0.0015064338222146034, -0.10065274685621262, -0.009436194784939289, 0.0008658681181259453, 0.023943902924656868, 0.04198576882481575, -0.01956155151128769, -0.06410957872867584, 0.015488436445593834, 0.0336805023252964, -0.013694852590560913, 0.0033618654124438763, -0.07937712967395782, -0.0008095424855127931, -0.006264290772378445, -0.02071015164256096, -0.05212879553437233, -0.03528854250907898, -0.05294165015220642, 0.03542990982532501, -0.0004900879575870931, 0.019614562392234802, 0.019508538767695427, -0.01364183984696865, -0.003282346995547414, -0.016813745722174644, -0.014684416353702545, 0.017759131267666817, 0.03336242958903313, -0.02595837228000164, -0.02330775558948517, -0.03567729890346527, -0.0010271139908581972, 0.057394687086343765, 0.04781712219119072, -0.006449833977967501, 0.0006124028586782515, 0.05011432617902756, -0.01607157289981842, -0.06743168830871582, -0.04513116553425789, -0.05128059536218643, -0.04566128924489021, 0.039617884904146194, 0.004784362856298685, -0.05294165015220642, 0.03161302208900452, 0.002650616690516472, 0.03376885503530502, 0.048912711441516876, -0.000131012246129103, 0.037992171943187714, 0.042515892535448074, 0.03802751377224922, -0.0023700930178165436, -0.04163235053420067, 0.047675758600234985, 0.00024297319760080427, -0.006025735288858414, 0.04696892574429512, 0.03242587670683861, 0.01464023906737566, -0.028502963483333588, -0.007474739104509354, -0.01803302764892578, -0.026912594214081764, -0.05601636320352554, 0.024951137602329254, -0.005173120182007551, 0.013518144376575947, -0.007722129579633474, -0.03359214961528778, 0.06838590651750565, -0.00374620477668941, 0.05937381088733673, 0.04969022795557976, 0.019791271537542343, -0.044777750968933105, -0.02915678359568119, 0.011229779571294785, 0.007726547308266163, -0.014118950814008713, 0.01968524605035782, -0.008097633719444275, -0.04414160177111626, -0.04983159154653549, 0.02595837228000164, 0.012051470577716827, -0.04675687849521637, -0.04368216171860695, 0.012722959741950035, -0.06676019728183746, -0.001679828274063766, 0.05188140273094177, -0.044176943600177765, 0.008004861883819103, 0.0119366105645895, 0.017494069412350655, 0.06043405830860138, -0.04018334671854973, -0.027796132490038872, -0.009559890255331993, -0.055768974125385284, 0.00876028835773468, -0.01359766349196434, -0.027248339727520943, 0.006145013030618429, -0.05629909783601761, 0.00773538276553154, -0.0077574714086949825, -0.019331831485033035, -0.009232981130480766, 0.01917279325425625, -0.01159203052520752, 0.0026329457759857178, 0.00041664380114525557, 0.05644046515226364, -0.012926173396408558, -0.069057397544384, -0.01515269186347723, 0.02161136083304882, -0.05665251240134239, 0.004298416431993246, -0.03090618923306465, -0.00022433603589888662, -0.014657909981906414, 0.03290298953652382, 0.014286823570728302, 0.009604067541658878, -0.02378486655652523, -0.03823956102132797, 0.005818103440105915, -0.016301292926073074, -0.05145730450749397, 0.017237843945622444, 0.019420184195041656, -0.03085317835211754, 0.010204873979091644, 0.019720587879419327, -0.05873766541481018, 0.04905407875776291, 0.01874869503080845, 0.015294058248400688, -0.0013087419793009758, 0.025905359536409378, -0.02079850435256958, 0.00004503977470449172, -0.05569829046726227, -0.040678128600120544, -0.01752057671546936, 0.06827988475561142, -0.013995256274938583, 0.04318737983703613, -0.0029156783130019903, -0.0251455157995224, -0.061989087611436844, 0.045378558337688446, 0.0387696847319603, 0.0379214882850647, -0.022176826372742653, -0.07739800214767456, -0.02164670266211033, 0.018943073228001595, -0.06025735288858414, -0.006096418481320143, 0.04081949591636658, -0.026912594214081764, -0.05442599579691887, 0.06121157482266426, -0.0040488168597221375, -0.07301565259695053, -0.041031546890735626, -0.026364799588918686, 0.03417528420686722, -0.027301350608468056, -0.012369544245302677, 0.0021304332185536623, 0.018890060484409332, 0.014675580896437168, -0.05354245752096176, 0.009515713900327682, -0.022353533655405045, -0.04096086323261261, -0.023625830188393593, 0.022229837253689766, -0.048523955047130585, -0.03171904385089874, 0.006056658923625946, -0.017114147543907166, -0.002227622317150235, 0.04908942058682442, 0.010876363143324852, -0.00596830528229475, 0.011229779571294785, 0.020233040675520897, -0.03990061581134796, 0.01553261373192072, 0.04467172548174858, -0.028273243457078934, -0.020604126155376434, 0.03362749144434929, 0.12397817522287369, 0.0010122042149305344, 0.02791982889175415, 0.04566128924489021, -0.00925065204501152, -0.0554155595600605, 0.012192836962640285, 0.017246678471565247, -0.012669947929680347, 0.028485292568802834, -0.02131095714867115, 0.03827490285038948, -0.016433823853731155, -0.0009354467620141804, 0.019367171451449394, -0.05396655574440956, 0.01421614084392786, -0.017158325761556625, -0.046650853008031845, 0.013217741623520851, 0.005398422479629517, -0.05767741799354553, -0.012811313383281231, 0.053047675639390945, -0.03193109482526779, -0.0055044470354914665, 0.022229837253689766, -0.01169805508106947, -0.014569556340575218, -0.0519874282181263, 0.010284392163157463, 0.015833016484975815, 0.003768293419852853, -0.021964777261018753, -0.06205977126955986, -0.0959169790148735, 0.03465239331126213, -0.004961070604622364, 0.057606734335422516, 0.018359938636422157, -0.03106522746384144, 0.016345469281077385, -0.01359766349196434, -0.02442101389169693, -0.004106246866285801, -0.003492187475785613, 0.01917279325425625, -0.01628362201154232, -0.0021260154899209738, -0.010337404906749725, 0.00967475026845932, -0.02152300626039505, 0.02532222494482994, 0.03489978611469269, 0.00020197145931888372, 0.006312885321676731, -0.05234084278345108, -0.03615441173315048, 0.01359766349196434, 0.0009105972712859511, 0.008022532798349857, 0.02906842902302742, 0.013270754367113113, -0.04679222032427788, -0.012007293291389942, -0.06683088093996048, 0.048311904072761536, -0.04325806349515915, 0.01806836947798729, 0.03491745516657829, -0.043929554522037506, 0.03353913500905037, -0.02092220075428486, -0.006259873043745756, -0.03357447683811188, 0.05396655574440956, 0.03396323323249817, 0.07909440249204636, 0.006021317560225725, -0.008225747384130955, -0.021381640806794167, 0.013827383518218994, 0.000709039974026382, -0.01917279325425625, 0.009436194784939289, 0.04226849973201752, 0.026152750477194786, 0.02677122876048088, 0.014419354498386383, 0.005924127995967865, -0.0025092503055930138, 0.01977360062301159, 0.00006978576857363805, -0.01024905126541853, 0.054744068533182144, 0.007461485918611288, -0.00867193378508091, -0.07146062701940536, -0.02185875177383423, -0.02774312160909176, 0.03178972750902176, -0.026947936043143272, 0.03636645898222923, 0.07153131067752838, 0.05488543584942818, 0.04286930710077286 ]
30,281
networkx.algorithms.planarity
add_half_edge
Adds a half-edge from `start_node` to `end_node`. If the half-edge is not the first one out of `start_node`, a reference node must be provided either in the clockwise (parameter `cw`) or in the counterclockwise (parameter `ccw`) direction. Only one of `cw`/`ccw` can be specified (or neither in the case of the first edge). Note that specifying a reference in the clockwise (`cw`) direction means inserting the new edge in the first counterclockwise position with respect to the reference (and vice-versa). Parameters ---------- start_node : node Start node of inserted edge. end_node : node End node of inserted edge. cw, ccw: node End node of reference edge. Omit or pass `None` if adding the first out-half-edge of `start_node`. Raises ------ NetworkXException If the `cw` or `ccw` node is not a successor of `start_node`. If `start_node` has successors, but neither `cw` or `ccw` is provided. If both `cw` and `ccw` are specified. See Also -------- connect_components
def add_half_edge(self, start_node, end_node, *, cw=None, ccw=None): """Adds a half-edge from `start_node` to `end_node`. If the half-edge is not the first one out of `start_node`, a reference node must be provided either in the clockwise (parameter `cw`) or in the counterclockwise (parameter `ccw`) direction. Only one of `cw`/`ccw` can be specified (or neither in the case of the first edge). Note that specifying a reference in the clockwise (`cw`) direction means inserting the new edge in the first counterclockwise position with respect to the reference (and vice-versa). Parameters ---------- start_node : node Start node of inserted edge. end_node : node End node of inserted edge. cw, ccw: node End node of reference edge. Omit or pass `None` if adding the first out-half-edge of `start_node`. Raises ------ NetworkXException If the `cw` or `ccw` node is not a successor of `start_node`. If `start_node` has successors, but neither `cw` or `ccw` is provided. If both `cw` and `ccw` are specified. See Also -------- connect_components """ succs = self._succ.get(start_node) if succs: # there is already some edge out of start_node leftmost_nbr = next(reversed(self._succ[start_node])) if cw is not None: if cw not in succs: raise nx.NetworkXError("Invalid clockwise reference node.") if ccw is not None: raise nx.NetworkXError("Only one of cw/ccw can be specified.") ref_ccw = succs[cw]["ccw"] super().add_edge(start_node, end_node, cw=cw, ccw=ref_ccw) succs[ref_ccw]["cw"] = end_node succs[cw]["ccw"] = end_node # when (cw == leftmost_nbr), the newly added neighbor is # already at the end of dict self._succ[start_node] and # takes the place of the former leftmost_nbr move_leftmost_nbr_to_end = cw != leftmost_nbr elif ccw is not None: if ccw not in succs: raise nx.NetworkXError("Invalid counterclockwise reference node.") ref_cw = succs[ccw]["cw"] super().add_edge(start_node, end_node, cw=ref_cw, ccw=ccw) succs[ref_cw]["ccw"] = end_node succs[ccw]["cw"] = end_node move_leftmost_nbr_to_end = True else: raise nx.NetworkXError( "Node already has out-half-edge(s), either cw or ccw reference node required." ) if move_leftmost_nbr_to_end: # LRPlanarity (via self.add_half_edge_first()) requires that # we keep track of the leftmost neighbor, which we accomplish # by keeping it as the last key in dict self._succ[start_node] succs[leftmost_nbr] = succs.pop(leftmost_nbr) else: if cw is not None or ccw is not None: raise nx.NetworkXError("Invalid reference node.") # adding the first edge out of start_node super().add_edge(start_node, end_node, ccw=end_node, cw=end_node)
(self, start_node, end_node, *, cw=None, ccw=None)
[ -0.10729610919952393, -0.007147837430238724, 0.02028493396937847, 0.021404238417744637, -0.0259992778301239, -0.013264737091958523, -0.03575882315635681, 0.0612671785056591, 0.016897566616535187, -0.0965350791811943, 0.019558368250727654, 0.04049132019281387, 0.04979921877384186, 0.02582254447042942, 0.006686369888484478, 0.02772732637822628, -0.007118382025510073, -0.004703041631728411, -0.011477777734398842, 0.008856249041855335, -0.030829958617687225, -0.05313749611377716, 0.022228989750146866, -0.009646635502576828, -0.026038551703095436, 0.008350598625838757, 0.0033260027412325144, 0.02036348171532154, -0.015876447781920433, 0.018782710656523705, -0.007280386984348297, -0.025626175105571747, -0.026038551703095436, -0.08019717037677765, 0.05600448697805405, 0.011202860623598099, 0.036622848361730576, 0.018939806148409843, -0.035798098891973495, 0.06817937642335892, -0.026254557073116302, -0.0287091713398695, 0.004450216423720121, -0.020019836723804474, -0.00883170310407877, 0.023034103214740753, 0.009789003059267998, 0.06845428794622421, 0.00103155174292624, -0.03426641970872879, 0.004543491639196873, -0.08930869400501251, -0.0032032718881964684, -0.007957860827445984, -0.006966196000576019, -0.010044283233582973, -0.023898126557469368, 0.002482842653989792, -0.0024153406266123056, 0.04276920482516289, 0.04665731266140938, -0.011310864239931107, 0.027845147997140884, -0.01134031917899847, -0.025017431005835533, 0.025194164365530014, -0.07352061569690704, -0.0245854202657938, 0.009641725569963455, 0.041512440890073776, 0.02953392267227173, 0.01730012334883213, 0.006863102316856384, -0.007614214438945055, -0.004329940304160118, -0.012037429958581924, 0.03499298542737961, 0.06315232068300247, -0.004541037138551474, 0.0006510865059681237, 0.005954894702881575, 0.015395342372357845, 0.0016924567753449082, -0.020638398826122284, 0.06476254761219025, 0.048621006309986115, -0.028178974986076355, -0.009435538202524185, -0.04740351811051369, -0.022857369855046272, -0.04701077938079834, -0.032990019768476486, -0.013608383014798164, 0.021914798766374588, 0.07964733242988586, 0.013912755064666271, -0.024231955409049988, -0.06920049339532852, 0.00409429706633091, -0.010230833664536476, -0.030751410871744156, 0.036210473626852036, -0.02391776442527771, 0.03532681241631508, 0.017447400838136673, -0.09582815319299698, -0.026627657935023308, -0.0287091713398695, -0.058950021862983704, -0.04858173057436943, -0.048542458564043045, -0.07281368970870972, 0.027118582278490067, 0.01655391976237297, -0.009317716583609581, 0.004388850647956133, -0.0037089225370436907, 0.008782611228525639, 0.03864545002579689, 0.019018353894352913, 0.038193803280591965, -0.025861818343400955, -0.031163785606622696, -0.007545485161244869, 0.014550955034792423, -0.05553320050239563, 0.04029495269060135, 0.020068928599357605, 0.013235282152891159, -0.04355468228459358, 0.03805634379386902, 0.014001121744513512, -0.047953348606824875, -0.008242595940828323, -0.04155171662569046, 0.016180818900465965, 0.01782050170004368, 0.01658337563276291, 0.017113571986556053, -0.02209153026342392, -0.0004286370531190187, -0.038370534777641296, 0.07458101212978363, 0.022327173501253128, -0.01774195395410061, 0.06680478900671005, -0.07077144831418991, 0.0024521599989384413, 0.01105558406561613, 0.06491964310407639, 0.014433133415877819, -0.010103193111717701, -0.009823367930948734, -0.009857731871306896, -0.042572833597660065, -0.02631346881389618, -0.038370534777641296, 0.057143427431583405, -0.05388369783759117, 0.038684725761413574, -0.02806115336716175, -0.029691018164157867, 0.02698112279176712, -0.00010738938726717606, 0.0036843763664364815, 0.0007136791828088462, 0.022739550098776817, -0.04740351811051369, 0.0048478636890649796, -0.007064380683004856, -0.003924928605556488, -0.007098745089024305, -0.02109004743397236, 0.017339397221803665, -0.0643698126077652, -0.0070398347452282906, 0.004410942550748587, -0.022562816739082336, -0.050427600741386414, -0.03569991514086723, 0.06743317097425461, -0.005355969071388245, 0.05423716455698013, -0.06861138343811035, 0.00804622657597065, 0.05309822037816048, 0.016907384619116783, 0.00010953717719530687, 0.049367208033800125, -0.008934796787798405, 0.019401272758841515, -0.022444995120167732, 0.0008143183658830822, 0.028610987588763237, 0.04979921877384186, -0.04948502779006958, 0.02878771908581257, 0.04108043015003204, -0.024467598646879196, 0.05192000791430473, -0.04386887326836586, 0.031576160341501236, 0.06232757121324539, -0.008105137385427952, 0.09017272293567657, -0.02054021507501602, -0.006701097823679447, -0.005071233492344618, -0.006907285191118717, 0.05188073217868805, 0.026254557073116302, -0.0008505239384248853, -0.010397747159004211, 0.002384657971560955, -0.018674707040190697, -0.04744279012084007, -0.054904818534851074, 0.050034862011671066, -0.04979921877384186, -0.0271578561514616, -0.04363323003053665, 0.04469362273812294, 0.029357189312577248, -0.048463910818099976, 0.019381636753678322, -0.043083395808935165, -0.005758525803685188, -0.047874800860881805, 0.03110487572848797, -0.0008302733767777681, -0.014865146018564701, 0.0007879312615841627, -0.044968537986278534, -0.016416462138295174, 0.03897928074002266, 0.031654708087444305, -0.029101910069584846, 0.015159699134528637, 0.02641165256500244, 0.03324529901146889, -0.042926300317049026, 0.01444295234978199, -0.01604336127638817, -0.025037068873643875, -0.009906824678182602, 0.018419427797198296, 0.05231274664402008, 0.0027025307063013315, 0.010019736364483833, 0.07937241345643997, -0.030319398269057274, -0.051016710698604584, -0.007790946401655674, -0.03110487572848797, -0.015277520753443241, -0.04932793602347374, -0.08000079542398453, -0.021168595179915428, 0.0008542058640159667, -0.00653909333050251, 0.05223419889807701, 0.034541334956884384, 0.07151764631271362, 0.0006811555358581245, -0.018596159294247627, 0.004271029494702816, -0.008399691432714462, -0.0014617230044677854, 0.004653949290513992, 0.001508360612206161, -0.025606539100408554, -0.013176371343433857, -0.0122927101328969, 0.019970744848251343, 0.0004353872500360012, -0.007854766212403774, -0.02350538969039917, 0.02574399672448635, -0.015316794626414776, 0.009636816568672657, -0.00941099226474762, -0.026038551703095436, -0.04598965868353844, 0.03045685775578022, -0.04740351811051369, -0.00653909333050251, 0.00021293781173881143, -0.06181701272726059, 0.012459623627364635, -0.030083756893873215, 0.008193503133952618, 0.006455636117607355, 0.023976674303412437, 0.03469843044877052, 0.06315232068300247, 0.03715304657816887, 0.021620245650410652, -0.04104115441441536, 0.03308820351958275, 0.06220975145697594, 0.02417304366827011, 0.014187672175467014, -0.01320582628250122, -0.05058469623327255, 0.023937400430440903, -0.082396499812603, 0.011674147099256516, -0.000392431509681046, 0.009013344533741474, -0.006278904154896736, -0.0612671785056591, -0.042415738105773926, -0.020147476345300674, -0.03245982155203819, 0.034227143973112106, -0.032577645033597946, 0.01170360203832388, -0.0014249037485569715, -0.012547989375889301, 0.0700252428650856, -0.06774736195802689, 0.005684887524694204, -0.061188630759716034, 0.0749344751238823, -0.02558690309524536, 0.026509838178753853, 0.052587661892175674, 0.03725123032927513, 0.022464632987976074, 0.003151725046336651, -0.06986814737319946, -0.013952028937637806, -0.05537610501050949, 0.0329507440328598, -0.097320556640625, -0.018262332305312157, 0.0844387412071228, -0.0058468920178711414, 0.015532800927758217, -0.00846842024475336, 0.035130444914102554, 0.06059952452778816, 0.012449804693460464, -0.01848815754055977, 0.04064841568470001, -0.0440259650349617, 0.018674707040190697, -0.028002243489027023, -0.02054021507501602, 0.038782909512519836, -0.03483588993549347, -0.010221014730632305, -0.038861457258462906, -0.0031639982480555773, 0.03923455998301506, 0.04363323003053665, -0.05761471390724182, -0.04783552885055542, 0.052587661892175674, -0.03136015683412552, 0.022032620385289192, -0.014374222606420517, -0.0015132698463276029, 0.08004007488489151, -0.06515529006719589, 0.05836091563105583, -0.05525828152894974, 0.0476391576230526, 0.03385404497385025, -0.036446116864681244, -0.028198612853884697, -0.04610747843980789, 0.009931370615959167, 0.05192000791430473, 0.005989259574562311, 0.052941128611564636, 0.0015390433836728334, 0.04536127671599388, 0.020019836723804474, 0.01701538823544979, -0.03799743205308914, 0.02069731056690216, -0.008139502257108688, 0.024801425635814667, -0.0445365272462368, -0.02366248518228531, 0.10548951476812363, -0.0019330090144649148, 0.05455135554075241, 0.0028939906042069197, -0.03548390790820122, 0.03436460345983505, 0.041001882404088974, -0.02217007800936699, -0.04516490921378136, 0.011085039004683495, 0.06456618010997772, -0.016229910776019096, 0.027904057875275612, -0.04013785719871521, 0.051605816930532455, 0.025115616619586945, 0.01815432868897915, 0.06165991723537445, -0.016210274770855904, 0.027530957013368607, 0.008134592324495316, 0.013480743393301964, 0.07524866610765457, -0.03136015683412552, -0.04665731266140938, -0.011477777734398842, -0.006362360902130604, -0.0046858591958880424, -0.008021680638194084, -0.03020157665014267, 0.02623492106795311, 0.02721676602959633, 0.011143949814140797, -0.003073177533224225, 0.008708972483873367, -0.025194164365530014, 0.03583737090229988, 0.0561223067343235, 0.016445918008685112, -0.07701598852872849, 0.03245982155203819, -0.024114133790135384, -0.03548390790820122, 0.005812527146190405, -0.0038071072194725275, 0.01604336127638817, -0.0016286367317661643, -0.019862741231918335, -0.04759988561272621, -0.0006467909552156925, 0.028512801975011826, 0.0016765017062425613, 0.06959322839975357, -0.008134592324495316, -0.06814009696245193, 0.011399229988455772, -0.05517973378300667, -0.07069289684295654, 0.0016544102691113949, -0.029435737058520317, -0.030594315379858017, -0.0816110223531723, 0.01013264898210764, -0.004418306052684784, -0.0006529274978674948, -0.015375705435872078, 0.01307818666100502, 0.03626938536763191, -0.07842984795570374, -0.03458061069250107, -0.028041517361998558, -0.016121909022331238, -0.011065402068197727, 0.018939806148409843, 0.036544300615787506, 0.013166552409529686, -0.008218050003051758, 0.039195284247398376, -0.019597642123699188, 0.004143389407545328, 0.06224902346730232, 0.007015288341790438, -0.02963210642337799, -0.03626938536763191, 0.03668176010251045, -0.047128599137067795, 0.03858654201030731, -0.05038832873106003, 0.08891595900058746, 0.021875524893403053, -0.007471846882253885, -0.0208544060587883, 0.026922212913632393, -0.08506712317466736, -0.0393916554749012, 0.008414418436586857, -0.022562816739082336, -0.03385404497385025, 0.03550354391336441, -0.021404238417744637, -0.062445394694805145, 0.002530707512050867, -0.010476294904947281, -0.002950446680188179, 0.007496392820030451, -0.024271229282021523, -0.054904818534851074, 0.004926411435008049, 0.045243456959724426, 0.04245501384139061, -0.01091812551021576, -0.048031896352767944, 0.03962729871273041, 0.005478699691593647, -0.010751212015748024, -0.04536127671599388, -0.021306054666638374, -0.008502785116434097, 0.005208692047744989, 0.03473770618438721, -0.07811565697193146, 0.015866627916693687, -0.004749679006636143, -0.019764555618166924, 0.047953348606824875, 0.034384239464998245, 0.08231795579195023, 0.05545465275645256, 0.009435538202524185, 0.031163785606622696, -0.013313828967511654, 0.06656914949417114, 0.01923435926437378, -0.019990380853414536, -0.01535606849938631, 0.012037429958581924, 0.057418342679739, 0.06814009696245193, -0.018517611548304558, 0.058635830879211426, 0.017908867448568344, -0.08671662211418152, 0.008826794102787971, 0.00016614672495052218, -0.022228989750146866, 0.023603573441505432, 0.016573557630181313, 0.011232316493988037, 0.003436460392549634, 0.05545465275645256, 0.012273073196411133, 0.07065362483263016, 0.008684426546096802, -0.05286258086562157, -0.008669698610901833, -0.035307176411151886, -0.050349052995443344, -0.004990231245756149, -0.040000397711992264, 0.026333104819059372, 0.05517973378300667, -0.046068206429481506, -0.03436460345983505, -0.04218009486794472, 0.004450216423720121, 0.047874800860881805, 0.05588666349649429, 0.030319398269057274, 0.0417088121175766, -0.005385424476116896, 0.008222959004342556, -0.010201377794146538, 0.029907023534178734, 0.027020396664738655, -0.050702519714832306, -0.04818899184465408, -0.009916642680764198, -0.04206227511167526, -0.00919007696211338, 0.03226345404982567, 0.0514879934489727, -0.01027010753750801, 0.03063358925282955, 0.03163507208228111, -0.013058549724519253, 0.05360878258943558, -0.019794011488556862, -0.03458061069250107, -0.06181701272726059, -0.012361438944935799, -0.01858634129166603, -0.004028022289276123, -0.021286416798830032, -0.08930869400501251, -0.052666209638118744, -0.0329507440328598, 0.04343685880303383, 0.003109996672719717, 0.01755540259182453, 0.02242535911500454, -0.03483588993549347, 0.02144351229071617, -0.028100427240133286, -0.002528253011405468, -0.020088566467165947, -0.046303849667310715, 0.04591111093759537, -0.009774275124073029, -0.00823768600821495, 0.022621728479862213, -0.020913315936923027, 0.021404238417744637, 0.04516490921378136, 0.020127838477492332, 0.004045204725116491, 0.004644130822271109, 0.041512440890073776, 0.01570953242480755, -0.01112431287765503, 0.05588666349649429, 0.0034855527337640524, -0.07163546979427338, -0.04426160827279091, -0.037761788815259933, 0.035955194383859634, 0.04237646609544754, 0.05470845103263855, -0.005606339778751135, -0.07772291451692581, -0.02713821828365326, -0.00781549233943224, -0.023701759055256844, 0.0031271788757294416, 0.03528754040598869, 0.04964212328195572, -0.0019526458345353603, 0.01341201364994049, 0.00003735616701305844, -0.02937682718038559, 0.03328457474708557, 0.04842463508248329, -0.03194926306605339, -0.030928144231438637, 0.03242054954171181, -0.014600047841668129, -0.04610747843980789, -0.011939245276153088, -0.026038551703095436, -0.013539654202759266, 0.005002504680305719, 0.061856288462877274, -0.00015563789929728955, 0.02383921667933464, 0.00013308612687978894, -0.03585701063275337, 0.03725123032927513, 0.008517512120306492, -0.023780304938554764, -0.015365887433290482, 0.030888870358467102, 0.04276920482516289, -0.05396224558353424, -0.05757543817162514, 0.014816053211688995, -0.014256400987505913, 0.03691740334033966, -0.039843302220106125, -0.02260209061205387, 0.05172363668680191, 0.051448721438646317, 0.028748445212841034, -0.008748246356844902, 0.04355468228459358, -0.025842182338237762, 0.02847352810204029, -0.009509176947176456, 0.060206785798072815, -0.05435498431324959, -0.04335831105709076, 0.04897446930408478, 0.07265659421682358, -0.0003623624797910452, -0.001184351509436965, -0.023603573441505432, -0.02466396801173687, -0.07458101212978363, -0.046892955899238586, 0.005463972222059965, -0.007059471681714058, -0.02731495164334774, -0.05486554279923439, -0.029592832550406456, -0.022130804136395454, -0.04104115441441536, 0.037683241069316864, 0.04881737381219864, -0.021620245650410652, -0.05671141296625137, 0.019224541261792183, 0.008056044578552246, 0.008011861704289913, -0.014325130730867386, -0.025626175105571747, -0.06397707760334015, 0.002857171231880784, 0.010073738172650337, 0.012263254262506962, 0.04932793602347374, 0.01734921522438526, -0.01631827838718891, -0.01912635751068592, -0.0234268419444561, 0.006332905497401953, -0.00012610582052730024, 0.024879973381757736, 0.025351259857416153, -0.0065047284588217735, 0.00024592169211246073, 0.019754737615585327, 0.002288928022608161, 0.034718070179224014, -0.025135252624750137, 0.05525828152894974, 0.042494285851716995, -0.012587263248860836, 0.02350538969039917, 0.0037776518147438765, 0.002754077548161149, -0.05977477505803108, -0.012587263248860836, -0.034482426941394806, -0.032656192779541016, -0.039097100496292114, -0.017830319702625275, 0.009381536394357681, -0.007786037400364876, 0.056318677961826324, -0.004069751128554344, 0.003996112383902073, -0.05140944570302963, 0.0245854202657938, -0.004749679006636143, -0.03982366621494293, -0.03634793311357498, -0.00032707740319892764, 0.047128599137067795, 0.0509774349629879, 0.13400231301784515, 0.013215645216405392, 0.007977497763931751, -0.00019115311442874372, 0.019892197102308273, 0.01141886692494154, 0.043083395808935165, 0.03053540550172329, -0.0326954647898674, 0.012135614641010761, -0.05231274664402008, -0.01279345154762268, 0.04987776651978493, 0.009406083263456821, 0.026352742686867714, 0.03120305947959423, 0.008787520229816437, 0.011163586750626564, 0.009931370615959167, 0.052941128611564636, 0.018321242183446884, 0.000883047585375607, -0.002528253011405468, -0.0234268419444561, 0.021620245650410652, -0.024035586044192314, -0.06959322839975357, 0.008885704912245274, 0.015532800927758217, 0.01766340620815754, 0.05286258086562157, -0.007849857211112976, 0.034462787210941315, 0.03151725232601166, 0.05207710340619087 ]
30,282
networkx.algorithms.planarity
add_half_edge_ccw
Adds a half-edge from start_node to end_node. The half-edge is added counter clockwise next to the existing half-edge (start_node, reference_neighbor). Parameters ---------- start_node : node Start node of inserted edge. end_node : node End node of inserted edge. reference_neighbor: node End node of reference edge. Raises ------ NetworkXException If the reference_neighbor does not exist. See Also -------- add_half_edge add_half_edge_cw connect_components
def add_half_edge_ccw(self, start_node, end_node, reference_neighbor): """Adds a half-edge from start_node to end_node. The half-edge is added counter clockwise next to the existing half-edge (start_node, reference_neighbor). Parameters ---------- start_node : node Start node of inserted edge. end_node : node End node of inserted edge. reference_neighbor: node End node of reference edge. Raises ------ NetworkXException If the reference_neighbor does not exist. See Also -------- add_half_edge add_half_edge_cw connect_components """ self.add_half_edge(start_node, end_node, cw=reference_neighbor)
(self, start_node, end_node, reference_neighbor)
[ -0.04232850298285484, -0.03457406163215637, 0.031208597123622894, -0.031069815158843994, -0.048538997769355774, -0.00653576385229826, -0.029525866732001305, 0.10040876269340515, -0.02229185588657856, -0.07542800903320312, 0.020765254274010658, 0.008036344312131405, 0.013678698800504208, 0.0014160098508000374, 0.01963764987885952, 0.008049354888498783, -0.041391726583242416, -0.0058592017740011215, -0.022465333342552185, 0.01337511371821165, -0.030584078282117844, -0.06807256489992142, -0.03320359066128731, -0.05794147774577141, -0.02354089356958866, 0.03240559250116348, -0.010833668522536755, 0.04094068333506584, -0.017729397863149643, 0.013271027244627476, 0.007906235754489899, -0.02780843898653984, -0.05051664263010025, -0.02914421632885933, 0.049024734646081924, 0.0001862172211986035, 0.04645726829767227, 0.01831922121345997, -0.012984788976609707, 0.07896694540977478, -0.027929874137043953, 0.008565450087189674, 0.0028992423322051764, 0.004636185709387064, -0.022534724324941635, 0.023436807096004486, -0.004718587268143892, 0.013635329902172089, 0.008105735294520855, -0.029404431581497192, 0.005455866456031799, -0.07986903190612793, -0.005885223392397165, -0.0013325238833203912, 0.027756396681070328, -0.027496179565787315, -0.012481704354286194, -0.03452201932668686, 0.004506077617406845, 0.04732465371489525, 0.02083464525640011, -0.03313419967889786, 0.016436990350484848, -0.002018844010308385, -0.009914238005876541, 0.05138402804732323, -0.027079833671450615, 0.008925416506826878, 0.04659605026245117, 0.022048987448215485, -0.003174637909978628, 0.008062365464866161, -0.012360270135104656, 0.0010565862758085132, -0.012672529555857182, -0.014762933366000652, 0.03806095942854881, 0.03507714718580246, -0.008088387548923492, -0.008422331884503365, -0.0006223504315130413, -0.008517744019627571, -0.004245861433446407, -0.0264726635068655, 0.04659605026245117, 0.03788748010993004, -0.043091803789138794, -0.035666968673467636, -0.05148811638355255, -0.025483841076493263, -0.03726296126842499, -0.06030077114701271, -0.016792619600892067, 0.02300311252474785, 0.05249428376555443, -0.014901715330779552, -0.014632824808359146, -0.05683122202754021, -0.004100573714822531, -0.010070367716252804, -0.0035064134281128645, 0.026663487777113914, 0.03459141030907631, 0.06571327149868011, 0.03391484543681145, -0.11241340637207031, -0.01527469139546156, -0.04208563640713692, -0.06918282061815262, -0.02347150258719921, -0.016653837636113167, -0.07542800903320312, 0.012221488170325756, -0.017234986647963524, -0.03806095942854881, 0.04094068333506584, 0.040281470865011215, 0.013245005160570145, 0.06161919981241226, -0.0018399454420432448, 0.044271450489759445, -0.0668582171201706, -0.012238835915923119, -0.012828659266233444, 0.0342618003487587, -0.05526992306113243, -0.011753099039196968, 0.013826155103743076, -0.013149593025445938, -0.012160771526396275, 0.01086836401373148, 0.03927529975771904, -0.06050894409418106, 0.014485369436442852, -0.029681995511054993, 0.03452201932668686, 0.03844260796904564, 0.03263111412525177, 0.053639236837625504, -0.012698551639914513, -0.006804653909057379, -0.05315349996089935, 0.0476716086268425, 0.0025479504838585854, -0.022101029753684998, 0.041114162653684616, -0.06973794847726822, 0.0170615091919899, 0.025050148367881775, 0.03502510115504265, 0.024009281769394875, 0.021910205483436584, -0.004527762066572905, -0.044826578348875046, -0.03677722439169884, -0.010816320776939392, -0.030861642211675644, 0.055929139256477356, -0.004675217904150486, 0.05884356051683426, 0.014103719033300877, -0.010174454189836979, -0.003996487241238356, 0.029248302802443504, 0.025830795988440514, 0.009168284945189953, 0.08819594979286194, -0.02990751713514328, 0.01635025255382061, -0.02270820178091526, -0.010044345632195473, -0.011232666671276093, -0.008383299224078655, 0.03989981859922409, -0.004510414320975542, -0.003055372042581439, 0.028051307424902916, -0.0016198459779843688, -0.012178119271993637, -0.03643026947975159, 0.05315349996089935, 0.01527469139546156, 0.032249461859464645, -0.06213963031768799, 0.01543949544429779, 0.012221488170325756, -0.011440839618444443, -0.005763789173215628, 0.05665774270892143, -0.03698539733886719, 0.03726296126842499, -0.01656709983944893, -0.011596969328820705, 0.028103351593017578, 0.01844065636396408, -0.07834243029356003, -0.004506077617406845, 0.031208597123622894, -0.04687361419200897, 0.03892834484577179, -0.04527762159705162, 0.04375101998448372, 0.02256941981613636, -0.03806095942854881, 0.1024211049079895, 0.0046882289461791515, 0.029577909037470818, -0.017287030816078186, -0.027374746277928352, 0.009281044825911522, 0.016740577295422554, 0.011041841469705105, -0.011276035569608212, 0.0034608757123351097, -0.016940075904130936, -0.024217454716563225, -0.07327688485383987, 0.014233826659619808, -0.07376262545585632, 0.0011969945626333356, -0.03353319689631462, 0.0232112854719162, 0.014129740186035633, -0.003606162965297699, -0.010478039272129536, -0.04801856353878975, -0.027548223733901978, -0.05638017877936363, -0.015066518448293209, -0.06595613807439804, -0.039171215146780014, 0.03303011134266853, -0.04107946529984474, -0.011943924240767956, 0.028207438066601753, 0.012221488170325756, -0.014129740186035633, 0.01713090017437935, 0.02732270210981369, 0.06553979218006134, -0.03695070371031761, 0.0028146719560027122, 0.013019484467804432, -0.02374906651675701, -0.01871822029352188, 0.03268315643072128, 0.04121824726462364, -0.009445848874747753, 0.03479958325624466, 0.01404300145804882, -0.06082120165228844, -0.06109876558184624, -0.020695863291621208, -0.025275668129324913, -0.017156923189759254, 0.003428348572924733, -0.020001953467726707, -0.02976873517036438, -0.01023517083376646, 0.018006961792707443, 0.020418299362063408, 0.03054938279092312, 0.07612191885709763, 0.0043217577040195465, 0.023523544892668724, -0.003421843284741044, -0.02397458627820015, 0.017356421798467636, 0.01573440618813038, -0.04340406507253647, -0.050134990364313126, -0.018978435546159744, -0.0014940747059881687, -0.00949789211153984, -0.007741432171314955, -0.0030510351061820984, 0.016263512894511223, 0.027964569628238678, 0.02886665239930153, 0.01621147058904171, -0.015769101679325104, -0.052945327013731, -0.03263111412525177, 0.04996151477098465, -0.04215502738952637, 0.0033676314633339643, -0.010842341929674149, -0.006579133216291666, 0.04066311940550804, -0.012785290367901325, 0.00046513648703694344, 0.03471284359693527, 0.03712417930364609, 0.03983042761683464, 0.0005919918767176569, 0.06220902130007744, 0.04215502738952637, -0.04718587175011635, 0.05485357716679573, 0.03486897423863411, 0.03927529975771904, 0.018353916704654694, -0.034348540008068085, -0.018076352775096893, -0.06120285391807556, -0.0917348861694336, 0.02005399577319622, -0.019516216591000557, 0.018961088731884956, -0.023454153910279274, -0.0699114203453064, -0.05173098295927048, -0.05273715406656265, 0.004744608886539936, 0.06574796140193939, -0.007672041188925505, 0.012152097187936306, -0.004558120854198933, -0.023159243166446686, 0.03320359066128731, -0.03941408172249794, -0.008270538412034512, -0.009948933497071266, 0.07646887004375458, -0.03209333121776581, 0.019255999475717545, 0.0074248360469937325, 0.005902571137994528, 0.055374011397361755, 0.011718403548002243, -0.024633802473545074, -0.041114162653684616, -0.01527469139546156, 0.04038555547595024, -0.07508105039596558, -0.015378777869045734, 0.07039716094732285, -0.03799156844615936, -0.0053951493464410305, 0.0003301493125036359, 0.02654205448925495, 0.0979800820350647, 0.03757522255182266, 0.0002484251745045185, 0.03264846280217171, -0.025188930332660675, 0.014069023542106152, -0.04402858391404152, 0.006067374721169472, 0.04409797489643097, -0.01802431046962738, -0.0006158450269140303, -0.012577117420732975, -0.020938731729984283, 0.0167839452624321, 0.0037818090058863163, -0.027860483154654503, -0.05121055245399475, -0.021268337965011597, -0.01746050827205181, -0.00803200714290142, 0.033515848219394684, 0.004627511836588383, 0.059155818074941635, -0.048781868070364, 0.050343163311481476, -0.04676952585577965, 0.05925990641117096, 0.025327712297439575, 0.01286335475742817, -0.02746148407459259, -0.007927920669317245, 0.04926760494709015, 0.053639236837625504, 0.028328871354460716, 0.011093884706497192, 0.010972450487315655, 0.060266073793172836, 0.06508874893188477, 0.026819618418812752, -0.041183553636074066, 0.0051219225861132145, -0.016931401565670967, 0.004722924437373877, -0.03840791434049606, 0.022621462121605873, 0.07161150127649307, -0.006262537091970444, 0.026108359917998314, -0.0005280220648273826, -0.08167319744825363, 0.02787782996892929, 0.008673873730003834, -0.024633802473545074, -0.028328871354460716, -0.009064198471605778, 0.054055582731962204, -0.02159794606268406, 0.049371689558029175, -0.008088387548923492, 0.03346380591392517, 0.06238250061869621, -0.03750583156943321, 0.04742874205112457, -0.011336753144860268, 0.010191801935434341, -0.014242500998079777, 0.024789931252598763, 0.06665004789829254, -0.06203554570674896, -0.049371689558029175, -0.002725764876231551, -0.025744058191776276, 0.030306514352560043, -0.004130932502448559, -0.010903059504926205, 0.04843490943312645, 0.0058938972651958466, -0.008053692057728767, 0.004100573714822531, -0.02118160016834736, -0.029872821643948555, 0.04409797489643097, 0.03335971757769585, 0.0028125036042183638, -0.07563617825508118, 0.05148811638355255, -0.026854313910007477, -0.022326551377773285, -0.03556288406252861, -0.01873556710779667, 0.03547614440321922, -0.011102558113634586, -0.00511758541688323, -0.01998460479080677, 0.00000620893524683197, 0.06658065319061279, 0.009627999737858772, 0.06151511147618294, 0.016940075904130936, -0.03983042761683464, -0.01044334378093481, -0.04444492980837822, -0.03754052519798279, -0.02361028455197811, -0.017902875319123268, -0.006869708187878132, -0.07653826475143433, 0.058739472180604935, -0.021927552297711372, 0.004766293801367283, -0.03584044799208641, 0.006782969459891319, 0.02642061933875084, -0.06439483910799026, -0.04593683406710625, -0.0018247661646455526, -0.03629148751497269, 0.02083464525640011, -0.0009112988482229412, 0.010746929794549942, 0.03164229169487953, -0.005746441427618265, 0.01059080008417368, -0.017512550577521324, -0.006774295587092638, 0.05870477855205536, -0.010816320776939392, -0.006969457492232323, -0.0038230097852647305, 0.08562847971916199, -0.012134749442338943, 0.06665004789829254, -0.03075755573809147, 0.09818825125694275, 0.04257137328386307, -0.02621244639158249, 0.01844065636396408, 0.019689694046974182, -0.08063232898712158, -0.06630308926105499, -0.00014162810111884028, -0.05429844930768013, -0.034417930990457535, 0.02402663044631481, -0.0465613529086113, -0.05554748699069023, 0.022690853103995323, 0.0028146719560027122, 0.0025414449628442526, 0.028762565925717354, 0.017434487119317055, -0.04080190137028694, -0.023870499804615974, 0.06338866800069809, 0.04649196192622185, 0.0007161367102526128, -0.01740846410393715, 0.023107198998332024, 0.03743644058704376, 0.00003395008388906717, -0.039101824164390564, -0.01802431046962738, -0.045312315225601196, -0.012342922389507294, 0.015352756716310978, -0.06463770568370819, -0.010634168982505798, -0.009558608755469322, 0.01880495809018612, 0.05749043449759483, 0.03872017189860344, 0.0932614877820015, 0.053708627820014954, 0.02033155970275402, 0.038824260234832764, -0.025830795988440514, 0.06137632951140404, 0.022742897272109985, 0.001565634272992611, -0.0494757778942585, 0.04805326089262962, 0.04073251038789749, 0.01093775499612093, 0.004718587268143892, 0.005928592756390572, 0.008049354888498783, -0.0710216760635376, 0.0173390731215477, 0.022413289174437523, -0.02333272062242031, 0.03684661537408829, 0.02145916409790516, 0.0007497479673475027, -0.00580282136797905, 0.04631848633289337, 0.014684868045151234, 0.07133393734693527, 0.030514687299728394, -0.027634961530566216, -0.04284893721342087, -0.021684683859348297, -0.022187769412994385, 0.008843014016747475, -0.055512793362140656, 0.03639557585120201, 0.07445653527975082, -0.033377066254615784, -0.04555518552660942, -0.0500309057533741, 0.008344266563653946, 0.057976171374320984, 0.024495020508766174, 0.043855104595422745, -0.045381706207990646, 0.011302057653665543, 0.007398814428597689, -0.015959927812218666, 0.019602954387664795, 0.03618740290403366, -0.041322335600852966, -0.03054938279092312, 0.020418299362063408, 0.008621830493211746, 0.044757187366485596, 0.04409797489643097, 0.06574796140193939, -0.014077696949243546, 0.0261950995773077, 0.0019082522485405207, -0.040003906935453415, 0.04257137328386307, 0.006644187495112419, -0.03920590877532959, -0.04500005766749382, 0.011666360311210155, -0.0019082522485405207, -0.022968417033553123, -0.021129556000232697, -0.08188136667013168, -0.10068632662296295, -0.04722056910395622, -0.0030640459153801203, 0.008396309800446033, 0.015153257176280022, -0.0012674698373302817, 0.011440839618444443, 0.005915581714361906, -0.012195467017591, 0.03743644058704376, -0.010972450487315655, -0.05849660560488701, 0.03684661537408829, -0.017486529424786568, -0.01565634272992611, 0.01474558562040329, -0.03611801192164421, 0.044549014419317245, 0.059988509863615036, 0.032527025789022446, 0.013175614178180695, 0.00688271876424551, 0.08021598309278488, 0.030983077362179756, -0.00522600905969739, 0.05436784029006958, 0.010365279391407967, -0.10040876269340515, -0.03771400451660156, -0.0514187254011631, -0.021198946982622147, 0.04843490943312645, 0.014650172553956509, 0.02250002883374691, -0.060266073793172836, -0.005746441427618265, 0.0004049614944960922, -0.06998081505298615, 0.008960111998021603, 0.03053203597664833, 0.03934469074010849, 0.028207438066601753, 0.02367967553436756, -0.011891881003975868, -0.011267362162470818, 0.015213974751532078, 0.01348787359893322, -0.019689694046974182, -0.03464345261454582, 0.022621462121605873, -0.03681192174553871, -0.031902506947517395, -0.048469606786966324, -0.028485001996159554, -0.004601490218192339, 0.01052140910178423, 0.013323070481419563, -0.007984301075339317, 0.014346587471663952, 0.0346781462430954, -0.042814239859580994, 0.05138402804732323, 0.005763789173215628, -0.0031009099911898375, -0.00630590645596385, 0.03032386302947998, 0.07369323074817657, -0.06418666243553162, -0.07376262545585632, -0.015049170702695847, -0.02697574719786644, 0.06158450245857239, -0.025692014023661613, -0.01571705937385559, 0.056276094168424606, 0.030306514352560043, 0.014736911281943321, -0.024824626743793488, 0.05554748699069023, -0.032804589718580246, 0.05304941162467003, -0.004636185709387064, 0.03452201932668686, -0.05939868837594986, -0.034209758043289185, 0.05683122202754021, 0.07306871563196182, -0.0055556162260472775, -0.021996943280100822, -0.03388015180826187, 0.004896401893347502, -0.06560917943716049, -0.04010799154639244, -0.02607366442680359, -0.035666968673467636, -0.026316532865166664, -0.05103707313537598, -0.014771606773138046, -0.02298576571047306, -0.007836844772100449, 0.01670588180422783, 0.03348115459084511, -0.008812655694782734, -0.027149224653840065, 0.024789931252598763, 0.01065151672810316, -0.010070367716252804, -0.03660374879837036, -0.027027791365981102, -0.03096572868525982, 0.02277759276330471, 0.00933308806270361, -0.02565731853246689, -0.006895729806274176, 0.038685478270053864, -0.01170105580240488, 0.005178302526473999, -0.028051307424902916, 0.004336936865001917, 0.021858161315321922, 0.026663487777113914, 0.043646931648254395, 0.019602954387664795, 0.01788552850484848, 0.045589879155159, -0.04770630598068237, 0.05499235913157463, -0.0485043004155159, 0.05651896074414253, 0.03597922995686531, 0.0176166370511055, 0.0070648700930178165, 0.003387147793546319, -0.0005540436832234263, -0.05221671983599663, -0.03304746001958847, -0.05707408860325813, -0.05596383288502693, -0.01809370145201683, -0.007854192517697811, 0.029248302802443504, -0.03041060082614422, 0.04500005766749382, -0.015881862491369247, -0.006618165876716375, -0.03143411874771118, -0.012316901236772537, 0.03257907181978226, -0.057837389409542084, -0.02558792755007744, -0.011067862622439861, 0.005997983738780022, 0.06030077114701271, 0.1359369456768036, 0.02277759276330471, 0.01880495809018612, -0.03198924660682678, 0.02515423484146595, 0.024789931252598763, 0.012195467017591, 0.04409797489643097, -0.011163275688886642, 0.019828476011753082, -0.049371689558029175, 0.03507714718580246, 0.043646931648254395, -0.034626103937625885, 0.012247510254383087, 0.03719357028603554, -0.019793780520558357, -0.02388784848153591, 0.003124763024970889, 0.0461450070142746, -0.002634689211845398, 0.0023224297910928726, -0.008756275288760662, -0.017287030816078186, 0.02626449055969715, -0.05388210341334343, -0.059710945934057236, 0.018059005960822105, 0.04562457650899887, 0.019793780520558357, 0.015968602150678635, -0.021198946982622147, 0.04142642021179199, 0.033845454454422, 0.010998471640050411 ]
30,283
networkx.algorithms.planarity
add_half_edge_cw
Adds a half-edge from start_node to end_node. The half-edge is added clockwise next to the existing half-edge (start_node, reference_neighbor). Parameters ---------- start_node : node Start node of inserted edge. end_node : node End node of inserted edge. reference_neighbor: node End node of reference edge. Raises ------ NetworkXException If the reference_neighbor does not exist. See Also -------- add_half_edge add_half_edge_ccw connect_components
def add_half_edge_cw(self, start_node, end_node, reference_neighbor): """Adds a half-edge from start_node to end_node. The half-edge is added clockwise next to the existing half-edge (start_node, reference_neighbor). Parameters ---------- start_node : node Start node of inserted edge. end_node : node End node of inserted edge. reference_neighbor: node End node of reference edge. Raises ------ NetworkXException If the reference_neighbor does not exist. See Also -------- add_half_edge add_half_edge_ccw connect_components """ self.add_half_edge(start_node, end_node, ccw=reference_neighbor)
(self, start_node, end_node, reference_neighbor)
[ -0.027475664392113686, -0.03793007507920265, 0.03507569059729576, -0.024726347997784615, -0.048892322927713394, -0.008755789138376713, -0.027580734342336655, 0.10093673318624496, -0.013422624208033085, -0.06412739306688309, 0.01069081760942936, 0.019402828067541122, 0.016005581244826317, -0.0023377956822514534, 0.014061796478927135, 0.007674448657780886, -0.054390959441661835, -0.004001395311206579, -0.022204680368304253, 0.01470096968114376, -0.03082037717103958, -0.08153390139341354, -0.03919091075658798, -0.05123887583613396, -0.007932744920253754, 0.027563223615288734, -0.02372818812727928, 0.04195773974061012, -0.010358097963035107, 0.009648879058659077, 0.014175621792674065, -0.0452849380671978, -0.03500564396381378, -0.0425531342625618, 0.07515969127416611, -0.01191662810742855, 0.049907997250556946, 0.024533720687031746, -0.00911477580666542, 0.053095102310180664, -0.02667013183236122, -0.00438446132466197, -0.0016165374545380473, 0.001072036917321384, -0.01842217892408371, 0.02561943791806698, 0.012582068331539631, 0.022012053057551384, 0.021784402430057526, -0.015130002982914448, -0.003931349143385887, -0.06636887788772583, -0.0008000602247193456, 0.007578135002404451, 0.02244984172284603, -0.02514662593603134, -0.01989315263926983, -0.03985635191202164, 0.0106820622459054, 0.023377956822514534, 0.0265650637447834, -0.026074739173054695, 0.029909774661064148, -0.0016274822410196066, -0.018054436892271042, 0.047491397708654404, -0.02385076880455017, 0.009911553002893925, 0.0456351712346077, 0.022204680368304253, 0.0024756991770118475, -0.00013619355740956962, -0.016959963366389275, -0.004955776501446962, -0.03512822464108467, -0.009044730104506016, 0.04651074856519699, 0.030312540009617805, -0.01339635718613863, -0.004487341735512018, -0.0014709725510329008, 0.00018072495004162192, -0.019350294023752213, -0.02402588352560997, 0.05537160858511925, 0.03192360699176788, -0.049978043884038925, -0.008589428849518299, -0.04955776408314705, -0.037579845637083054, -0.03349964693188667, -0.03216876834630966, 0.0031498949974775314, 0.020576102659106255, 0.05897899344563484, -0.01565534994006157, -0.014263180084526539, -0.061325542628765106, -0.0067113121040165424, -0.0126871382817626, -0.011741512455046177, 0.014482074417173862, 0.03491808474063873, 0.06812003999948502, 0.031836047768592834, -0.10717085748910904, -0.004693102557212114, -0.04468954727053642, -0.08972932398319244, -0.017476554960012436, -0.013790367171168327, -0.09498279541730881, -0.009281136095523834, -0.0011119851842522621, -0.03285171836614609, 0.038735609501600266, 0.041502438485622406, 0.03425264731049538, 0.09014960378408432, -0.005853244569152594, 0.04381396621465683, -0.06444260478019714, -0.011251188814640045, -0.01194289606064558, 0.03800012171268463, -0.0478416308760643, 0.0038197129033505917, 0.011759024113416672, -0.008479981683194637, -0.0025479344185441732, -0.0018201095517724752, 0.03094295784831047, -0.07607029378414154, 0.004454507492482662, -0.04630061239004135, 0.038875702768564224, 0.04500475525856018, 0.03768491372466087, 0.05684258043766022, -0.02663510851562023, -0.007284816354513168, -0.04265820235013962, 0.03835035488009453, 0.0019372182432562113, -0.040346674621105194, 0.04195773974061012, -0.08027306944131851, 0.02118900790810585, 0.03553099185228348, 0.03216876834630966, 0.011811559088528156, 0.010051645338535309, -0.009421228431165218, -0.03363974019885063, -0.03908584266901016, -0.015629082918167114, -0.019210200756788254, 0.05477621406316757, 0.0011393469758331776, 0.05334026366472244, 0.023588094860315323, -0.01847471483051777, 0.012039209716022015, 0.02553188055753708, 0.02695031836628914, 0.03288674354553223, 0.0785919576883316, -0.0283687561750412, 0.025934645906090736, -0.020856289193034172, -0.005809465888887644, 0.001419532229192555, -0.007241037208586931, 0.029086729511618614, -0.007074677385389805, 0.013676541857421398, 0.04115220531821251, -0.020681172609329224, -0.015130002982914448, -0.03775496035814285, 0.05246468633413315, 0.01819452829658985, 0.03821026161313057, -0.061430614441633224, -0.005739419721066952, 0.011802802793681622, -0.012319394387304783, -0.003749666502699256, 0.047106143087148666, -0.031730979681015015, 0.04524991661310196, -0.023798232898116112, -0.00914104375988245, 0.024673812091350555, 0.006457393988966942, -0.06391725689172745, 0.005235961638391018, 0.02705538645386696, -0.0356360599398613, 0.04479461535811424, -0.04647572711110115, 0.025689484551548958, 0.015165026299655437, -0.024638788774609566, 0.1134750247001648, -0.01819452829658985, 0.02421851083636284, -0.020383475348353386, -0.03905081748962402, 0.00742928683757782, 0.01423691213130951, 0.01767793670296669, -0.009088508784770966, 0.0073373508639633656, -0.003254964482039213, -0.03276416286826134, -0.055931977927684784, 0.01778300665318966, -0.0625513568520546, 0.00010117040073964745, -0.0531301274895668, 0.027353083714842796, 0.007000253070145845, -0.002364062936976552, 0.00605462770909071, -0.045985400676727295, -0.021819425746798515, -0.06104535982012749, -0.008317999541759491, -0.06615874171257019, -0.050188180059194565, 0.02667013183236122, -0.05113380774855614, -0.01968301273882389, 0.037509799003601074, -0.00914104375988245, -0.012984834611415863, 0.001887966995127499, 0.037474777549505234, 0.04672088846564293, -0.020243383944034576, -0.009955331683158875, -0.0006101690232753754, -0.02388579212129116, -0.020260894671082497, 0.02267749235033989, 0.040451742708683014, -0.026547551155090332, 0.05617713928222656, 0.01992817595601082, -0.05334026366472244, -0.03532085195183754, -0.014210645109415054, -0.02523418329656124, -0.013422624208033085, 0.017345217987895012, -0.027913454920053482, -0.018772410228848457, -0.01561157125979662, 0.006194720510393381, 0.034742970019578934, 0.03666924312710762, 0.0905698761343956, 0.006251633167266846, 0.031818535178899765, -0.0033359555527567863, -0.03407752886414528, 0.0053629204630851746, 0.02700285241007805, -0.04076695069670677, -0.08076339215040207, -0.016959963366389275, 0.007902099750936031, -0.010717085562646389, -0.013764100149273872, -0.02273002825677395, 0.021871959790587425, 0.0323789082467556, 0.01548899058252573, 0.000506741285789758, -0.02111896313726902, -0.04927757754921913, -0.04073192924261093, 0.06409237533807755, -0.03807016834616661, 0.003944482654333115, -0.00455738790333271, -0.0030316917691379786, 0.04770153760910034, -0.02831622026860714, -0.008401179686188698, 0.03428766876459122, 0.03996141999959946, 0.022957678884267807, -0.007254171185195446, 0.05971447750926018, 0.03789505362510681, -0.04906744137406349, 0.04609047248959541, 0.025094090029597282, 0.04794669896364212, 0.020558591932058334, -0.02413095347583294, 0.0028084192890673876, -0.04356880486011505, -0.0625513568520546, 0.03423513472080231, -0.02129407785832882, 0.012459487654268742, -0.02696782909333706, -0.07137718796730042, -0.058698806911706924, -0.05495132878422737, -0.010909712873399258, 0.06297162920236588, -0.01126870047301054, 0.02257242426276207, -0.0052272058092057705, -0.03334204480051994, 0.0367392897605896, -0.035793665796518326, -0.007902099750936031, -0.015322630293667316, 0.07950256019830704, -0.034760482609272, -0.004279391840100288, 0.00034776897518895566, 0.005980203859508038, 0.04104713723063469, 0.01197791937738657, -0.025706995278596878, -0.04402410611510277, -0.011820314452052116, 0.033166926354169846, -0.07368871569633484, -0.018737388774752617, 0.05824350565671921, -0.03283420950174332, -0.007967767305672169, -0.008129749447107315, 0.03110056184232235, 0.10401877015829086, 0.03786003217101097, 0.010069156996905804, 0.027580734342336655, -0.029086729511618614, 0.011058561503887177, -0.04087202250957489, -0.002771207131445408, 0.020103290677070618, -0.014648434706032276, 0.006706933956593275, -0.020400987938046455, -0.02239730767905712, 0.02402588352560997, 0.014420784078538418, -0.03363974019885063, -0.041572485119104385, -0.006102784536778927, -0.015629082918167114, -0.006571219302713871, 0.038805656135082245, 0.0074249086901545525, 0.052990034222602844, -0.04115220531821251, 0.061500661075115204, -0.040241606533527374, 0.06262139976024628, 0.0010490529239177704, 0.002650815062224865, -0.016872404143214226, -0.02976968139410019, 0.03824528679251671, 0.05355040356516838, 0.02677520178258419, 0.020751219242811203, -0.004706236533820629, 0.049907997250556946, 0.047316282987594604, 0.018894992768764496, -0.03110056184232235, 0.00836177822202444, -0.018036924302577972, -0.0013122737873345613, -0.01849222555756569, -0.0045179869048297405, 0.07137718796730042, -0.01599682681262493, 0.01745028607547283, -0.00014282880874816328, -0.08797816187143326, 0.02817612886428833, 0.0012750617461279035, -0.009570077061653137, -0.022957678884267807, -0.018036924302577972, 0.050083111971616745, -0.022099610418081284, 0.050258226692676544, -0.002445054007694125, 0.041747599840164185, 0.05029325187206268, -0.035898733884096146, 0.043008435517549515, -0.02139914780855179, -0.005367298610508442, -0.04409415274858475, 0.03547845780849457, 0.05477621406316757, -0.055826909840106964, -0.054496027529239655, -0.012240592390298843, -0.027685804292559624, 0.0323789082467556, 0.003156461752951145, -0.005809465888887644, 0.0567375123500824, 0.018842456862330437, -0.018597295507788658, -0.01569037325680256, -0.020015733316540718, -0.021871959790587425, 0.06552832573652267, 0.04090704396367073, 0.009167310781776905, -0.08811825513839722, 0.049943018704652786, -0.05193933844566345, -0.009535053744912148, -0.03537338599562645, -0.017240148037672043, 0.02668764442205429, -0.024918975308537483, 0.007127211894840002, -0.02103140391409397, -0.008374911732971668, 0.05547667667269707, 0.0035023156087845564, 0.06847026944160461, -0.001040297094732523, -0.041607506573200226, -0.01407055277377367, -0.04623056575655937, -0.044479407370090485, -0.027107922360301018, -0.03155586123466492, -0.010463167913258076, -0.07642052322626114, 0.05908406153321266, -0.01971803605556488, 0.0016778280260041356, -0.046125493943691254, 0.014490830712020397, 0.03346462547779083, -0.04654577374458313, -0.04090704396367073, -0.005643106065690517, -0.04398908093571663, 0.017511578276753426, -0.0069783637300133705, 0.015559036284685135, 0.014438295736908913, -0.013641518540680408, 0.004701858386397362, -0.02800101228058338, -0.0058050877414643764, 0.05628221109509468, -0.01120740920305252, -0.0030667150858789682, 0.0008509532199241221, 0.0936519131064415, -0.024463674053549767, 0.06195596233010292, -0.04048676788806915, 0.1165570616722107, 0.041537459939718246, -0.0356360599398613, 0.011181142181158066, 0.037544820457696915, -0.07424908876419067, -0.0727781131863594, 0.010620771907269955, -0.05029325187206268, -0.022012053057551384, 0.0032308860681951046, -0.041607506573200226, -0.044654522091150284, 0.0012104877969250083, 0.014998666010797024, -0.0034191354643553495, 0.03775496035814285, 0.03379734605550766, -0.017397752031683922, -0.017844296991825104, 0.054390959441661835, 0.04808679223060608, 0.009465008042752743, -0.015182537958025932, 0.036143895238637924, 0.03082037717103958, 0.01194289606064558, -0.040031466633081436, -0.026389947161078453, -0.029261846095323563, -0.01631203480064869, 0.0010348247596994042, -0.08643714338541031, -0.023010212928056717, -0.0030667150858789682, 0.01557654794305563, 0.0589439682662487, 0.027615757659077644, 0.09386205673217773, 0.06300665438175201, 0.013755343854427338, 0.01815950497984886, -0.020751219242811203, 0.06332186609506607, 0.021871959790587425, -0.012608335353434086, -0.04223792627453804, 0.03104802779853344, 0.02819363959133625, 0.0021528296638280153, 0.005612460430711508, -0.003106116084381938, 0.020190848037600517, -0.06790989637374878, 0.015883000567555428, 0.027580734342336655, -0.012371929362416267, 0.04230797290802002, 0.02533925324678421, -0.012844742275774479, -0.0021156175062060356, 0.041642531752586365, 0.019087620079517365, 0.05806839093565941, 0.03519827127456665, -0.013597739860415459, -0.0367392897605896, -0.03087291121482849, -0.036108873784542084, 0.0013735643588006496, -0.04398908093571663, 0.061325542628765106, 0.05607207119464874, -0.04283331707119942, -0.05337528884410858, -0.05908406153321266, 0.03575864061713219, 0.05050338804721832, 0.025794554501771927, 0.06962603330612183, -0.03919091075658798, -0.003360033966600895, 0.009447496384382248, -0.015550280921161175, 0.014438295736908913, 0.038665562868118286, -0.037194591015577316, -0.045705217868089676, 0.0296471007168293, 0.02138163521885872, 0.024498697370290756, 0.048472046852111816, 0.06335688382387161, 0.0014720669714733958, 0.014622166752815247, 0.010349342599511147, -0.036108873784542084, 0.03975128009915352, 0.016697289422154427, -0.03943607211112976, -0.04416419938206673, 0.00977146066725254, 0.0023574961815029383, -0.017879320308566093, -0.03234388306736946, -0.08076339215040207, -0.07410899549722672, -0.0563872791826725, 0.01205672137439251, 0.009867774322628975, 0.02411344274878502, 0.00664126593619585, 0.011820314452052116, 0.008913393132388592, -0.022134633734822273, 0.034795504063367844, -0.003257153322920203, -0.04822688549757004, 0.04048676788806915, -0.014657190069556236, -0.016583463177084923, 0.01638208143413067, -0.04055681452155113, 0.04798172414302826, 0.07085184007883072, 0.0356360599398613, 0.01613691821694374, 0.022134633734822273, 0.06927580386400223, 0.030557703226804733, 0.0025019666645675898, 0.054215844720602036, 0.023290397599339485, -0.09743441641330719, -0.04216787964105606, -0.0396462120115757, -0.008952793665230274, 0.03344711288809776, 0.013229996897280216, 0.012074233032763004, -0.051413990557193756, 0.004863840527832508, -0.0019262735731899738, -0.06332186609506607, -5.643379381581326e-7, 0.016977474093437195, 0.04931260272860527, 0.016942450776696205, 0.014622166752815247, -0.007862698286771774, -0.001619820948690176, 0.013317554257810116, 0.012406952679157257, -0.023237863555550575, -0.03407752886414528, 0.017170101404190063, -0.0283687561750412, -0.03369227424263954, -0.033236972987651825, -0.05064348131418228, -0.0026245475746691227, 0.03243144229054451, 0.03276416286826134, -0.01344013586640358, -0.0026945939753204584, 0.038945749402046204, -0.026162296533584595, 0.04507480189204216, 0.027160456404089928, -0.007871453650295734, 0.009745192714035511, 0.0309254452586174, 0.0671393871307373, -0.07081682235002518, -0.08566663414239883, 0.0032462086528539658, -0.0338323675096035, 0.03642408177256584, -0.0352858267724514, -0.017546599730849266, 0.06342693418264389, 0.03901579603552818, 0.004380083177238703, -0.03828030824661255, 0.06409237533807755, -0.025829575955867767, 0.037614867091178894, -0.013667786493897438, 0.022975189611315727, -0.0425531342625618, -0.03355218097567558, 0.05029325187206268, 0.053025055676698685, -0.0024866440799087286, 0.00158698670566082, -0.03512822464108467, 0.014937375672161579, -0.06020480394363403, -0.03532085195183754, -0.012082988396286964, -0.0396462120115757, -0.024761371314525604, -0.0396462120115757, -0.00981523934751749, -0.0265650637447834, -0.01549774594604969, 0.018842456862330437, 0.03216876834630966, -0.0008755789021961391, -0.03908584266901016, 0.03257153555750847, 0.010042889975011349, -0.029191799461841583, -0.021889472380280495, -0.01119865383952856, -0.016592219471931458, 0.019262734800577164, -0.00776200694963336, -0.02705538645386696, 0.013159950263798237, 0.018982550129294395, -0.005327897612005472, 0.006908317096531391, -0.04384899139404297, 0.01672355644404888, 0.01347515918314457, 0.025654461234807968, 0.05796332284808159, 0.017240148037672043, -0.0035176381934434175, 0.0569126270711422, -0.048612140119075775, 0.045740239322185516, -0.04209783300757408, 0.059959642589092255, 0.03905081748962402, 0.0132825318723917, 0.017117567360401154, -0.0019645800348371267, -0.000977364950813353, -0.03547845780849457, -0.03821026161313057, -0.06311172246932983, -0.05523151531815529, -0.012214325368404388, -0.008309243246912956, 0.014368249103426933, -0.02824617363512516, 0.044269267469644547, -0.023553071543574333, -0.010874689556658268, -0.02661759778857231, -0.020418498665094376, 0.02822866290807724, -0.06108038127422333, -0.024778882041573524, -0.005012689158320427, 0.008633207529783249, 0.04703609645366669, 0.14443549513816833, 0.03525080531835556, 0.030435122549533844, -0.01829959824681282, 0.023290397599339485, 0.02700285241007805, 0.014849817380309105, 0.04752642288804054, -0.0126871382817626, 0.023518048226833344, -0.050188180059194565, 0.03397246077656746, 0.040381696075201035, -0.026319900527596474, 0.0064223711378872395, 0.02819363959133625, -0.007748872973024845, -0.01203045342117548, 0.011251188814640045, 0.060169778764247894, 0.00563435023650527, 0.004990799352526665, 0.0027427508030086756, -0.00993782002478838, 0.025987181812524796, -0.04503977671265602, -0.05908406153321266, 0.024953998625278473, 0.03919091075658798, 0.020243383944034576, 0.031678441911935806, -0.023500537499785423, 0.04553010314702988, 0.03407752886414528, 0.02416597679257393 ]
30,284
networkx.algorithms.planarity
add_half_edge_first
Add a half-edge and set end_node as start_node's leftmost neighbor. The new edge is inserted counterclockwise with respect to the current leftmost neighbor, if there is one. Parameters ---------- start_node : node end_node : node See Also -------- add_half_edge connect_components
def add_half_edge_first(self, start_node, end_node): """Add a half-edge and set end_node as start_node's leftmost neighbor. The new edge is inserted counterclockwise with respect to the current leftmost neighbor, if there is one. Parameters ---------- start_node : node end_node : node See Also -------- add_half_edge connect_components """ succs = self._succ.get(start_node) # the leftmost neighbor is the last entry in the # self._succ[start_node] dict leftmost_nbr = next(reversed(succs)) if succs else None self.add_half_edge(start_node, end_node, cw=leftmost_nbr)
(self, start_node, end_node)
[ -0.09474992007017136, -0.0014408710412681103, 0.01870712637901306, 0.01688568852841854, -0.026855196803808212, 0.019375866279006004, 0.014518700540065765, 0.07071047276258469, -0.0012483883183449507, -0.0924973264336586, 0.01325161475688219, 0.03436972573399544, 0.006419025827199221, 0.0028245472349226475, 0.019868621602654457, 0.010567854158580303, -0.030322086066007614, 0.010303878225386143, -0.028615038841962814, 0.013603582978248596, -0.011201397515833378, -0.037203069776296616, 0.03410574793815613, -0.013506791554391384, -0.038258977234363556, -0.02250838652253151, -0.01423712633550167, 0.020255787298083305, 0.0184431504458189, 0.011834940873086452, 0.03021649643778801, -0.03021649643778801, -0.04353850334882736, -0.03451051190495491, 0.03751984238624573, 0.010515059344470501, 0.055681418627500534, 0.01191413402557373, -0.045967087149620056, 0.049064408987760544, -0.026344843208789825, -0.040265198796987534, -0.0027497538831084967, 0.03377137705683708, -0.03130760043859482, 0.0025517717003822327, 0.05631496012210846, 0.04086354374885559, 0.0385405533015728, 0.01491466537117958, -0.0023009940050542355, -0.05437913537025452, -0.018671929836273193, -0.010559055022895336, 0.0034052953124046326, -0.0013429798418655992, 0.006040659733116627, -0.06201685220003128, -0.03468649461865425, 0.09496110677719116, 0.07292787730693817, -0.006726997904479504, 0.014633091166615486, -0.041849054396152496, -0.012098917737603188, 0.028843820095062256, -0.04589669406414032, -0.00989911425858736, -0.01509064994752407, 0.025464922189712524, -0.01238929107785225, 0.029706142842769623, 0.00904559064656496, 0.029406968504190445, -0.008464843034744263, 0.003878253046423197, 0.05107063055038452, 0.06958417594432831, -0.011966928839683533, 0.0004347361100371927, -0.00616384856402874, -0.012653267942368984, -0.020748542621731758, -0.00442820368334651, 0.007914891466498375, 0.022983543574810028, -0.027488740161061287, 0.041356299072504044, -0.015688996762037277, -0.0454743318259716, -0.04332732409238815, -0.01506425254046917, -0.04522795230150223, 0.03938527777791023, 0.07299827039241791, -0.00841644685715437, -0.026028070598840714, -0.030163701623678207, -0.05212653428316116, 0.00042318712803535163, -0.021998031064867973, 0.022174015641212463, -0.01635773666203022, 0.05177456885576248, 0.03463369980454445, -0.07968567311763763, 0.024725787341594696, -0.02710157446563244, -0.0676131471991539, 0.018689528107643127, -0.026116063818335533, -0.0693729892373085, 0.0032095129135996103, 0.042201023548841476, -0.017985591664910316, 0.01603216491639614, 0.04987393692135811, 0.012354094535112381, 0.052830472588539124, 0.009652736596763134, 0.018249567598104477, -0.04695259779691696, -0.05290086567401886, -0.0016168553847819567, 0.007246151566505432, -0.066627636551857, 0.04853645712137222, -0.001368277589790523, -0.023933857679367065, -0.08095275610685349, 0.08179748058319092, 0.041497085243463516, -0.05180976539850235, 0.029987717047333717, -0.05233771726489067, -0.012494881637394428, 0.00016182301624212414, 0.015161043033003807, 0.05596299096941948, 0.012926043011248112, -0.021100511774420738, -0.08855527639389038, 0.05930669233202934, 0.03491527587175369, -0.03913889825344086, -0.00047020791680552065, -0.058180395513772964, 0.024497007951140404, 0.03744944930076599, 0.07236472517251968, 0.009203976020216942, -0.014263523742556572, 0.030339686200022697, -0.02618645690381527, -0.052584096789360046, -0.034088149666786194, -0.00987271685153246, 0.013014035299420357, -0.04269377887248993, 0.04550952836871147, 0.00393544789403677, -0.03741425275802612, 0.06356551498174667, -0.054062362760305405, -0.017422441393136978, -0.010717441327869892, 0.002263597445562482, -0.02277236245572567, -0.009925511665642262, -0.002976333722472191, -0.0035878790076822042, 0.007765305228531361, -0.05103543400764465, 0.02145248092710972, -0.012952441349625587, -0.0436088964343071, 0.01847834698855877, -0.01644572801887989, -0.04628385975956917, -0.0175632294267416, 0.08369810879230499, 0.009005994535982609, 0.05364000052213669, -0.06888023763895035, 0.02006220445036888, 0.02203322947025299, -0.005231131799519062, -0.00025490220286883414, 0.03192354366183281, 0.007470531389117241, 0.027647126466035843, -0.027048779651522636, -0.015293031930923462, 0.034140944480895996, 0.0461430698633194, -0.027312755584716797, 0.013832362368702888, 0.0227371659129858, -0.025552913546562195, 0.032909054309129715, -0.04533354192972183, 0.020942125469446182, 0.04279937222599983, 0.023229921236634254, 0.06476220488548279, 0.028439056128263474, 0.022367598488926888, 0.011245394125580788, -0.027259960770606995, 0.007158159743994474, -0.02324751950800419, -0.011403779499232769, -0.0403003953397274, 0.0040058414451777935, -0.04012440890073776, -0.02812228351831436, -0.02321232296526432, 0.021786849945783615, -0.03730866312980652, -0.034404922276735306, -0.054977480322122574, 0.012811653316020966, 0.02623925171792507, -0.04244740307331085, -0.013348405249416828, -0.014377913437783718, -0.025552913546562195, -0.06912661343812943, -0.006300236098468304, 0.007056968752294779, 0.013691575266420841, -0.012811653316020966, -0.04557992145419121, -0.04909960553050041, 0.047445353120565414, 0.021346889436244965, 0.010840630158782005, -0.016199350357055664, 0.002382386941462755, 0.01718486286699772, -0.03535523638129234, 0.009124783799052238, -0.005248730536550283, -0.021118110045790672, -0.06170007959008217, 0.022262008860707283, 0.005992264021188021, -0.026397638022899628, 0.01007509883493185, 0.06117212772369385, -0.0333666130900383, -0.011790945194661617, 0.01974543370306492, -0.028914213180541992, 0.03183555230498314, -0.041708268225193024, -0.032609883695840836, -0.005393917206674814, -0.013999547809362411, 0.006027460563927889, 0.01747523620724678, 0.005107942968606949, 0.08123432844877243, -0.019235078245401382, 0.005072745960205793, 0.029934922233223915, -0.028104685246944427, 0.03463369980454445, 0.03822378069162369, -0.01256527565419674, -0.05624456703662872, -0.0548366941511631, 0.027999095618724823, -0.011438976041972637, 0.054977480322122574, -0.021346889436244965, -0.0201501976698637, 0.01416673231869936, 0.047234173864126205, 0.02592248097062111, -0.009247972629964352, -0.04051157459616661, -0.05487189069390297, 0.06796512007713318, -0.038470156490802765, 0.024109842255711555, 0.030110904946923256, -0.05325283482670784, 0.032557085156440735, -0.04262338578701019, 0.007637716829776764, 0.0753212571144104, -0.006480620242655277, 0.03197633847594261, -0.018601534888148308, 0.02912539429962635, 0.0368863008916378, -0.03283866122364998, 0.06465661525726318, 0.030339686200022697, 0.024356219917535782, -0.016058562323451042, -0.020519763231277466, -0.051176220178604126, -0.009564744308590889, -0.10178929567337036, -0.02833346463739872, 0.017422441393136978, 0.02530653588473797, -0.061242520809173584, -0.07933370023965836, -0.013629980385303497, 0.003640674287453294, -0.021030118688941002, 0.029706142842769623, -0.0004124630941078067, 0.008786014281213284, -0.006397027522325516, -0.016718504950404167, 0.04441842436790466, -0.06444543600082397, 0.020115001127123833, -0.06567732244729996, 0.11192598193883896, -0.013629980385303497, 0.03158917278051376, 0.02847425267100334, 0.01038307137787342, 0.028967007994651794, 0.00014546197780873626, -0.018231969326734543, -0.019305473193526268, -0.03398256003856659, 0.03266267850995064, -0.08003763854503632, -0.016903286799788475, 0.06071456894278526, -0.0014496702933683991, -0.02815748006105423, -0.03340180963277817, 0.04325693100690842, 0.006713799200952053, 0.03188834711909294, 0.006485019810497761, 0.05976425111293793, 0.0067313979379832745, 0.048149291425943375, -0.058708347380161285, 0.01568019762635231, -0.010286279954016209, -0.03906850516796112, -0.03158917278051376, -0.007998484186828136, -0.03547842428088188, 0.07162559032440186, 0.026696810498833656, -0.03769582882523537, -0.041321102529764175, -0.005319124087691307, 0.011104606091976166, 0.055329449474811554, -0.010321476496756077, -0.04568551108241081, 0.04279937222599983, -0.057476457208395004, 0.0376606285572052, -0.03188834711909294, 0.0811639353632927, 0.012186910025775433, -0.009661535732448101, -0.019727835431694984, -0.05202094465494156, 0.014316319487988949, 0.04997952654957771, -0.008456042967736721, 0.0470229908823967, -0.0016047564567998052, 0.047938112169504166, 0.0188303142786026, 0.005283927079290152, -0.014201928861439228, 0.0053059253841638565, -0.024725787341594696, 0.02106531523168087, -0.051352206617593765, 0.005596299190074205, 0.09629858285188675, -0.034404922276735306, 0.05842677131295204, -0.005569901783019304, -0.03400015830993652, 0.016542520374059677, 0.04917000234127045, 0.00007630567415617406, -0.022649172693490982, 0.007109764032065868, 0.07813701033592224, -0.03377137705683708, 0.037731025367975235, -0.010356673039495945, 0.05920110270380974, 0.004107032436877489, 0.02198043279349804, 0.03428173437714577, -0.010963818989694118, -0.027999095618724823, -0.030726850032806396, -0.021030118688941002, 0.07701070606708527, -0.01289964560419321, -0.02247318997979164, -0.02080133929848671, -0.022279607132077217, 0.013770767487585545, 0.03459850326180458, -0.002916939090937376, 0.02386346459388733, 0.036111969500780106, 0.0002023818960878998, -0.014536299742758274, -0.020290983840823174, -0.013506791554391384, -0.0196574404835701, 0.02430342510342598, 0.012310098856687546, -0.0582507885992527, 0.02250838652253151, -0.01191413402557373, -0.046002283692359924, 0.017228858545422554, 0.011878937482833862, 0.03748464584350586, -0.003343700896948576, -0.03428173437714577, -0.04290496185421944, 0.008970797061920166, 0.02062535472214222, 0.029934922233223915, 0.0786297619342804, -0.011175000108778477, -0.01997421309351921, 0.012266102246940136, -0.04286976531147957, -0.05451992154121399, 0.008636427111923695, -0.040405984967947006, -0.04082834720611572, -0.04575590416789055, 0.04336252063512802, 0.006040659733116627, -0.04480559006333351, -0.035584017634391785, 0.05723007768392563, 0.018777519464492798, -0.05898992344737053, -0.06258000433444977, -0.03083244152367115, -0.01129818893969059, 0.03744944930076599, 0.04103952646255493, -0.0043556103482842445, 0.038294173777103424, -0.013999547809362411, 0.05071866139769554, 0.02965334616601467, -0.04853645712137222, 0.06617008149623871, 0.007738907355815172, -0.05965866148471832, -0.019463857635855675, 0.051915355026721954, -0.024866575375199318, 0.064973384141922, -0.03699189051985741, 0.11410818994045258, 0.017140867188572884, -0.005561102647334337, -0.0350736603140831, 0.0410747230052948, -0.07236472517251968, -0.027312755584716797, -0.0018885310273617506, -0.02513055130839348, -0.011588563211262226, -0.003222711617127061, -0.01744883880019188, -0.08524677157402039, 0.018724724650382996, -0.001638853340409696, -0.023053936660289764, 0.04068756103515625, -0.06374149769544601, -0.05177456885576248, 0.008412047289311886, 0.046882204711437225, 0.040089212357997894, 0.021663662046194077, -0.03204673156142235, 0.026855196803808212, 0.017132066190242767, 0.0028751427307724953, -0.03949086740612984, -0.006568612065166235, 0.02176925167441368, -0.012081319466233253, 0.04674141854047775, -0.09826960414648056, 0.0162433460354805, -0.020027007907629013, 0.02180444821715355, 0.04121551290154457, 0.032785866409540176, 0.018407952040433884, 0.05455511808395386, -0.0005972465733066201, 0.06219283491373062, 0.005891073029488325, 0.04755094647407532, -0.007769704796373844, -0.00841644685715437, -0.0640934631228447, 0.04987393692135811, 0.0334194116294384, 0.04737496003508568, -0.040617164224386215, 0.040054015815258026, -0.023441102355718613, -0.06184086576104164, 0.0071845571510493755, -0.006119852419942617, -0.003792460775002837, 0.04086354374885559, 0.049557164311409, 0.015601004473865032, -0.025042559951543808, 0.053358424454927444, 0.02618645690381527, 0.041145119816064835, 0.031149212270975113, -0.055998191237449646, -0.0002455530338920653, -0.0350736603140831, -0.024866575375199318, 0.021663662046194077, -0.059095513075590134, 0.02645043283700943, 0.04505196958780289, -0.01406114175915718, -0.02965334616601467, -0.03815338760614395, 0.02421543374657631, 0.03913889825344086, 0.04572070762515068, 0.00879481341689825, -0.02898460626602173, -0.029882125556468964, 0.00023111682094167918, 0.012723661959171295, 0.03375377878546715, 0.03818858414888382, -0.03998362272977829, -0.019463857635855675, 0.006361830979585648, 0.049416378140449524, -0.02645043283700943, 0.028227875009179115, 0.04522795230150223, -0.0009013693779706955, 0.026732008904218674, 0.04698779433965683, -0.004448002204298973, 0.034052953124046326, -0.012653267942368984, -0.008623228408396244, -0.025728898122906685, -0.00952954776585102, -0.013709173537790775, -0.030058110132813454, -0.040230002254247665, -0.05740606412291527, -0.07271669059991837, -0.05346401780843735, -0.005063946824520826, 0.02189244143664837, -0.014457106590270996, 0.048677243292331696, -0.023493897169828415, 0.03357779607176781, -0.037203069776296616, 0.01388515718281269, -0.01406114175915718, -0.06367110460996628, 0.064973384141922, -0.02338830754160881, -0.022613976150751114, -0.004579990170896053, -0.009987106546759605, -0.014395511709153652, 0.021012520417571068, 0.018548740074038506, -0.012266102246940136, 0.05624456703662872, 0.02662641741335392, 0.019076693803071976, 0.032785866409540176, 0.025588110089302063, -0.011500570923089981, -0.03187074884772301, -0.047762125730514526, -0.059447482228279114, 0.014281122013926506, 0.056033387780189514, 0.03977243974804878, 0.029354173690080643, -0.05437913537025452, -0.022455591708421707, 0.03924448788166046, -0.010805433616042137, 0.006929379887878895, 0.027136771008372307, 0.01909429207444191, 0.031061220914125443, 0.019481457769870758, 0.02141728438436985, -0.030058110132813454, -0.023317914456129074, 0.061242520809173584, -0.05364000052213669, -0.005468710791319609, -0.018249567598104477, -0.05339362099766731, -0.0394204743206501, -0.047410156577825546, -0.043644096702337265, 0.03206432983279228, -0.012600472196936607, 0.040230002254247665, -0.002476978348568082, 0.03130760043859482, 0.02618645690381527, -0.06303755939006805, 0.028615038841962814, -0.0036208759993314743, -0.026696810498833656, 0.027207165956497192, 0.04279937222599983, 0.01979822851717472, -0.03201153501868248, -0.03421133756637573, -0.02365228347480297, -0.02724236249923706, 0.052584096789360046, -0.014967461116611958, 0.02680240198969841, 0.06240401789546013, 0.028703032061457634, -0.0012395890662446618, -0.04480559006333351, 0.025605708360671997, -0.042060237377882004, 0.052830472588539124, -0.027735117822885513, 0.05554062873125076, -0.02544732391834259, -0.030797244980931282, 0.04234180971980095, 0.03653433173894882, 0.02154047228395939, -0.0026705609634518623, -0.01817917264997959, -0.016604114323854446, -0.040441181510686874, -0.04730456694960594, -0.010963818989694118, -0.011280590668320656, -0.03074444830417633, -0.02812228351831436, -0.017140867188572884, -0.01650732383131981, -0.004980354569852352, 0.0036758710630238056, 0.01988621987402439, -0.002144808182492852, -0.0635303184390068, 0.004399606492370367, 0.026397638022899628, -0.043151337653398514, -0.039350077509880066, -0.028562244027853012, -0.020202992483973503, 0.011870138347148895, -0.021346889436244965, 0.013401200994849205, 0.03903330862522125, 0.013058031909167767, 0.02447940967977047, -0.020871732383966446, -0.018231969326734543, -0.017052873969078064, 0.014993858523666859, 0.05635015666484833, 0.029670944437384605, -0.015820983797311783, 0.02521854266524315, 0.030322086066007614, -0.005398316774517298, 0.02474338561296463, 0.012732461094856262, 0.01215171255171299, 0.043468110263347626, -0.004474399611353874, -0.005055147688835859, -0.01603216491639614, 0.03903330862522125, -0.03280346468091011, 0.0034228938166052103, -0.07764425128698349, -0.03706228360533714, -0.03329622000455856, 0.009916712529957294, 0.0096351383253932, -0.04357369989156723, 0.061946459114551544, 0.01733444817364216, 0.016850491985678673, -0.03095562942326069, 0.021522874012589455, -0.013629980385303497, -0.0882033109664917, -0.02829826809465885, -0.04628385975956917, 0.007329744286835194, 0.039737243205308914, 0.12290740013122559, 0.030973229557275772, 0.0004176876391284168, 0.014008346945047379, 0.02710157446563244, 0.026397638022899628, -0.006929379887878895, 0.04198984429240227, -0.047410156577825546, 0.021311692893505096, 0.003779261838644743, -0.02912539429962635, 0.027875905856490135, 0.011799744330346584, -0.011826141737401485, -0.0016927485121414065, 0.02395145781338215, -0.01238929107785225, 0.02947736158967018, 0.055646222084760666, 0.04466480389237404, -0.04174346476793289, -0.03357779607176781, -0.014571496285498142, 0.05346401780843735, -0.014765079133212566, -0.064973384141922, -0.003163316985592246, 0.00884320866316557, 0.03625275567173958, 0.03977243974804878, -0.04047637805342674, 0.04804370179772377, 0.03222271800041199, 0.005904271733015776 ]
30,289
networkx.algorithms.planarity
check_structure
Runs without exceptions if this object is valid. Checks that the following properties are fulfilled: * Edges go in both directions (because the edge attributes differ). * Every edge has a 'cw' and 'ccw' attribute which corresponds to a correct planar embedding. Running this method verifies that the underlying Graph must be planar. Raises ------ NetworkXException This exception is raised with a short explanation if the PlanarEmbedding is invalid.
def check_structure(self): """Runs without exceptions if this object is valid. Checks that the following properties are fulfilled: * Edges go in both directions (because the edge attributes differ). * Every edge has a 'cw' and 'ccw' attribute which corresponds to a correct planar embedding. Running this method verifies that the underlying Graph must be planar. Raises ------ NetworkXException This exception is raised with a short explanation if the PlanarEmbedding is invalid. """ # Check fundamental structure for v in self: try: sorted_nbrs = set(self.neighbors_cw_order(v)) except KeyError as err: msg = f"Bad embedding. Missing orientation for a neighbor of {v}" raise nx.NetworkXException(msg) from err unsorted_nbrs = set(self[v]) if sorted_nbrs != unsorted_nbrs: msg = "Bad embedding. Edge orientations not set correctly." raise nx.NetworkXException(msg) for w in self[v]: # Check if opposite half-edge exists if not self.has_edge(w, v): msg = "Bad embedding. Opposite half-edge is missing." raise nx.NetworkXException(msg) # Check planarity counted_half_edges = set() for component in nx.connected_components(self): if len(component) == 1: # Don't need to check single node component continue num_nodes = len(component) num_half_edges = 0 num_faces = 0 for v in component: for w in self.neighbors_cw_order(v): num_half_edges += 1 if (v, w) not in counted_half_edges: # We encountered a new face num_faces += 1 # Mark all half-edges belonging to this face self.traverse_face(v, w, counted_half_edges) num_edges = num_half_edges // 2 # num_half_edges is even if num_nodes - num_edges + num_faces != 2: # The result does not match Euler's formula msg = "Bad embedding. The graph does not match Euler's formula" raise nx.NetworkXException(msg)
(self)
[ 0.059623487293720245, -0.009329299442470074, -0.047133494168519974, 0.04232083633542061, -0.015087301842868328, -0.01536422036588192, -0.03088122420012951, -0.03174062818288803, -0.02400599792599678, 0.011544650420546532, -0.01227036863565445, 0.028207525610923767, 0.0131011251360178, 0.0041466206312179565, -0.03137777000665665, 0.000026017090931418352, -0.01895461603999138, 0.0315687470138073, 0.017866039648652077, 0.014581209048628807, -0.07788103073835373, -0.04228264093399048, -0.016510091722011566, 0.04808838665485382, 0.03416605293750763, 0.05213713273406029, 0.003504455555230379, 0.004397280048578978, 0.010503817349672318, 0.028933243826031685, -0.05549835413694382, 0.018591757863759995, -0.00367156183347106, 0.008875725790858269, 0.02129410393536091, -0.01519234012812376, 0.02291741967201233, -0.03162604197859764, -0.09281555563211441, 0.018524914979934692, -0.003986676223576069, -0.01600399799644947, 0.06649871170520782, 0.0030938517302274704, -0.008197751827538013, -0.03787103667855263, 0.03804291784763336, 0.05041832476854324, -0.08044014871120453, -0.017016185447573662, -0.012146232649683952, -0.04889049753546715, 0.10389230400323868, 0.036515090614557266, -0.008799334987998009, 0.004151395056396723, -0.008326662704348564, 0.0324663445353508, 0.05416150391101837, -0.034261543303728104, -0.038787733763456345, 0.007242859806865454, 0.01389368623495102, -0.0005735323065891862, -0.030060015618801117, 0.003599944757297635, -0.034815382212400436, -0.010112311691045761, -0.029047830030322075, 0.025533825159072876, 0.023910509422421455, -0.010408328846096992, -0.010780736804008484, 0.009324525482952595, -0.013387593440711498, -0.03750817850232124, 0.005581346806138754, 0.018295740708708763, -0.0038792509585618973, -0.02849399298429489, 0.04827936738729477, 0.013989175669848919, -0.004659875296056271, -0.05045652016997337, 0.04400144889950752, 0.02782556787133217, 0.046827930957078934, 0.04457438364624977, 0.05057110637426376, -0.0243497584015131, 0.007863540202379227, -0.013884137384593487, 0.021427787840366364, 0.0025853714905679226, 0.012614130042493343, 0.04774462431669235, -0.0012497155694290996, -0.15163692831993103, -0.03359311819076538, -0.03804291784763336, -0.033574022352695465, 0.049425236880779266, -0.025304650887846947, 0.023757725954055786, 0.0035378767643123865, 0.00920993834733963, -0.04889049753546715, -0.06867586821317673, -0.008264594711363316, -0.027768274769186974, -0.02914332039654255, -0.0020279530435800552, -0.029315199702978134, 0.05251908674836159, 0.024636227637529373, -0.002333518583327532, -0.019031008705496788, 0.00020157184917479753, -0.05236630514264107, -0.000925648957490921, 0.09923242777585983, 0.030136408284306526, -0.0048890495672822, -0.05358856916427612, 0.05057110637426376, -0.003134434577077627, 0.0309958104044199, -0.017570022493600845, 0.009462985210120678, -0.02106492966413498, -0.004249271936714649, 0.02853218838572502, -0.028188427910208702, 0.06772097945213318, -0.043237533420324326, 0.021198613569140434, 0.01037968136370182, -0.059852663427591324, -0.038558561354875565, -0.01898326352238655, 0.036037642508745193, 0.02860857918858528, 0.0575227253139019, -0.02759639360010624, -0.06833210587501526, 0.0512586310505867, -0.0635194480419159, -0.07814840227365494, 0.049539823085069656, -0.025572022423148155, 0.04270279407501221, -0.0837249755859375, 0.0059060100466012955, -0.017130771651864052, -0.013053380884230137, -0.010179154574871063, -0.001624510856345296, -0.017541375011205673, 0.023318475112318993, 0.04155692085623741, -0.07749907672405243, -0.0025352395605295897, -0.035044554620981216, 0.03057565912604332, -0.029658962041139603, 0.0015146982623264194, 0.03838668018579483, -0.046369582414627075, -0.02570570632815361, 0.05446707084774971, 0.01940341666340828, -0.02049199305474758, -0.11283010244369507, 0.021752452477812767, -0.015020458959043026, 0.018372131511569023, 0.014915421605110168, -0.008398279547691345, 0.024483444169163704, -0.025075476616621017, -0.03573207929730415, -0.040334660559892654, -0.012900598347187042, -0.029124222695827484, 0.01592760719358921, 0.06592577695846558, 0.02782556787133217, -0.02203891985118389, 0.02706165425479412, -0.03957074508070946, -0.028895048424601555, -0.007218987215310335, 0.010188703425228596, 0.06963076442480087, 0.0024063291493803263, -0.036438699811697006, 0.04839395359158516, 0.017675060778856277, -0.0457584485411644, -0.018257545307278633, 0.017445886507630348, -0.012404053471982479, 0.04782101884484291, 0.006646052002906799, -0.027997449040412903, 0.017484081909060478, -0.01743633672595024, -0.0037503403145819902, 0.02536194585263729, 0.034376129508018494, -0.006120861042290926, -0.014705345034599304, 0.022630952298641205, 0.016109036281704903, 0.0033230260014533997, -0.020663874223828316, -0.024330660700798035, 0.03853946179151535, -0.00034614853211678565, 0.018314838409423828, 0.01070434506982565, 0.013989175669848919, -0.03787103667855263, -0.047171689569950104, -0.011974352411925793, -0.028341209515929222, 0.03261912986636162, 0.059699881821870804, -0.03172152861952782, -0.03386048972606659, 0.021656962111592293, 0.002871839329600334, -0.05171697959303856, 0.028513090685009956, 0.0098735885694623, 0.015087301842868328, -0.01117224246263504, -0.01016960572451353, 0.00954892486333847, -0.04847034439444542, 0.034223347902297974, -0.08876680582761765, -0.07704073190689087, -0.04212985932826996, 0.00598240178078413, 0.0016698682447895408, 0.03439522907137871, 0.02520916238427162, -0.017264457419514656, -0.025037281215190887, -0.11978171765804291, -0.03827209398150444, -0.00860835611820221, -0.014772186987102032, 0.0036834978964179754, -0.10106582194566727, -0.021924331784248352, -0.023547649383544922, 0.1028992161154747, 0.0011554199736565351, 0.0226882454007864, -0.024808106943964958, 0.04289377108216286, 0.0786067545413971, 0.06604036688804626, 0.021236808970570564, 0.012719168327748775, 0.04159511625766754, 0.013330299407243729, -0.05129682645201683, -0.0212177112698555, 0.02211531065404415, -0.026526914909482002, 0.049730803817510605, 0.0061829290352761745, 0.013330299407243729, -0.006096988916397095, 0.08311384171247482, -0.01356902252882719, 0.046522364020347595, -0.00689909840002656, -0.02524735778570175, -0.01755092479288578, 0.03168333321809769, -0.046713341027498245, -0.011162693612277508, -0.02732902392745018, -0.08059293031692505, 0.0228792242705822, -0.0412895530462265, -0.016175879165530205, -0.012575934641063213, 0.04438340291380882, -0.02713804505765438, 0.020186427980661392, 0.009396142326295376, 0.03231356292963028, -0.04610221087932587, 0.01051336620002985, -0.025266455486416817, 0.028322111815214157, 0.009749452583491802, 0.046140406280756, -0.02540014125406742, 0.016089938580989838, 0.02921971119940281, 0.00894256867468357, 0.036744263023138046, 0.07704073190689087, -0.029601668938994408, -0.013740903697907925, -0.008598807267844677, 0.013912783935666084, 0.04465077444911003, 0.06997452676296234, 0.012318113818764687, 0.019317476078867912, -0.029620766639709473, -0.010226898826658726, 0.06034920737147331, 0.02895234152674675, 0.05843942239880562, 0.0012025677133351564, 0.021561473608016968, -0.04067842289805412, -0.06546743214130402, 0.07329755276441574, -0.04094579070806503, 0.03456711024045944, -0.03307747840881348, -0.009749452583491802, -0.030327387154102325, 0.009902235120534897, 0.017608217895030975, -0.05206074193120003, 0.02200072444975376, 0.02517096698284149, 0.020434699952602386, 0.05897416174411774, -0.011678335256874561, 0.09808655828237534, 0.029849940910935402, -0.008498543873429298, 0.006087439600378275, 0.024254269897937775, -0.010809383355081081, -0.015478807501494884, -0.03294379264116287, -0.02956347167491913, 0.09105855226516724, -0.046827930957078934, 0.025953978300094604, -0.00954892486333847, 0.0428173802793026, -0.003545038402080536, -0.003967578522861004, -0.016290467232465744, -0.03282920643687248, -0.04113677144050598, 0.06733901798725128, 0.02110312506556511, 0.004519029054790735, -0.06386321038007736, 0.015612492337822914, -0.056720614433288574, -0.052633676677942276, 0.02771098166704178, -0.007386093493551016, 0.04419242590665817, 0.008150007575750351, 0.005972852930426598, -0.06600216776132584, -0.03326845541596413, -0.02125590667128563, 0.02211531065404415, 0.07199889421463013, 0.004306565038859844, 0.05885957553982735, 0.040143679827451706, -0.01190750952810049, 0.046445973217487335, 0.05167878419160843, 0.004724330734461546, 0.0006081471801735461, 0.024903597310185432, -0.0354074127972126, -0.011802471242845058, 0.024292465299367905, 0.03781374543905258, 0.03334484621882439, -0.027940155938267708, 0.002081665676087141, 0.03926518186926842, -0.017054380849003792, -0.006015822757035494, 0.07432883232831955, 0.028035644441843033, 0.04148053005337715, -0.023242084309458733, -0.02060658112168312, -0.0011524358997121453, -0.036075837910175323, -0.06153327226638794, 0.05798107385635376, 0.002795447828248143, -0.0014263706980273128, 0.04610221087932587, 0.04155692085623741, 0.039838116616010666, 0.04808838665485382, 0.03139686584472656, 0.022439973428845406, 0.028436699882149696, -0.013807745650410652, -0.06733901798725128, 0.003838667878881097, 0.021905234083533287, 0.010780736804008484, 0.025113673880696297, -0.0009560861508361995, 0.04476536065340042, 0.013521278277039528, 0.08112766593694687, 0.01588941179215908, -0.008866176940500736, -0.034452520310878754, -0.05397052690386772, 0.01880183443427086, 0.025839392095804214, 0.010188703425228596, -0.04159511625766754, -0.008441249839961529, 0.014208801090717316, -0.07176972180604935, -0.03439522907137871, 0.005968078039586544, -0.0026378906331956387, 0.0052805556915700436, -0.00013458015746437013, 0.016548287123441696, 0.043122947216033936, -0.017493631690740585, -0.02687067538499832, 0.0016328662168234587, -0.020186427980661392, 0.02694706618785858, -0.03349762782454491, 0.014963165856897831, -0.0391123965382576, 0.019269730895757675, 0.0031893409322947264, -0.015545650385320187, 0.0011100625852122903, -0.05473443865776062, -0.04629318788647652, 0.02242087572813034, 0.020893048495054245, 0.0026259543374180794, -0.04258820787072182, 0.025801196694374084, 0.011315476149320602, -0.004807883873581886, -0.08319023251533508, 0.006187703460454941, -0.03439522907137871, 0.009443886578083038, 0.0036118810530751944, 0.030709343031048775, -0.009152645245194435, 0.013721805065870285, 0.0346435010433197, -0.0146671487018466, 0.02876136265695095, -0.0026235671248286963, 0.07031828165054321, 0.004239722620695829, -0.01157329697161913, 0.014027371071279049, -0.02744361013174057, -0.03811930865049362, -0.016290467232465744, 0.01895461603999138, 0.017054380849003792, 0.0029028733260929585, 0.0025376267731189728, -0.005347398109734058, -0.028035644441843033, 0.029277004301548004, 0.017073478549718857, -0.02725263312458992, -0.05484902486205101, -0.0020912145264446735, 0.03019370138645172, 0.026679696515202522, 0.026221347972750664, 0.0012580709299072623, -0.03397507593035698, -0.006794060114771128, 0.020358309149742126, -0.028742264956235886, 0.035311926156282425, -0.003895961446687579, -0.021886136382818222, -0.056224070489406586, 0.019145594909787178, 0.02245907112956047, -0.012394504621624947, -0.0057341293431818485, 0.0520225428044796, 0.03544561192393303, -0.012910147197544575, -0.015077752992510796, 0.06447434425354004, 0.021160418167710304, 0.02771098166704178, 0.06821752339601517, -0.006316613871604204, 0.015612492337822914, 0.014514366164803505, 0.02373862825334072, 0.0164241511374712, -0.0040678419172763824, 0.059050552546978, 0.010360583662986755, -0.03084302879869938, 0.07131137698888779, -0.024655325338244438, -0.06508547067642212, 0.01951800286769867, -0.04572025313973427, 0.0005690562538802624, 0.003993838094174862, -0.0029291328974068165, 0.016328662633895874, -0.005223262123763561, 0.016261819750070572, 0.02624044567346573, 0.02280283346772194, -0.01209848839789629, -0.0026999586261808872, 0.008584483526647091, -0.049654409289360046, -0.05515459179878235, -0.03172152861952782, 0.0022941292263567448, -0.022745540365576744, 0.0545816570520401, -0.013091576285660267, -0.006254545878618956, -0.025075476616621017, -0.011315476149320602, 0.033650413155555725, 0.036782458424568176, -0.012528189457952976, 0.06252636015415192, -0.0162331722676754, 0.026412326842546463, 0.0004198543028905988, 0.028303014114499092, 0.024445248767733574, -0.03011731058359146, -0.03428064286708832, 0.016825206577777863, -0.06447434425354004, 0.0016997086349874735, -0.03317296504974365, 0.008837530389428139, -0.020472895354032516, -0.007090076804161072, 0.03393688052892685, 0.004612131044268608, 0.026660598814487457, 0.018849577754735947, -0.0571407675743103, 0.003153532510623336, -0.04503273218870163, -0.08471806347370148, 0.03750817850232124, -0.0005666690412908792, -0.06821752339601517, 0.006603081710636616, -0.047209884971380234, 0.01186931412667036, -0.023547649383544922, 0.013043832033872604, 0.023547649383544922, -0.00033898683614097536, -0.0016650938196107745, 0.00515164528042078, 0.04827936738729477, -0.032600030303001404, -0.03242814913392067, 0.024693520739674568, -0.0083075650036335, 0.036973439157009125, 0.039952702820301056, 0.018448524177074432, -0.010331937111914158, 0.02956347167491913, -0.038596756756305695, -0.05794287845492363, 0.020740265026688576, 0.019995449110865593, -0.008933019824326038, -0.021905234083533287, 0.00837918184697628, 0.005099126137793064, 0.01509685069322586, 0.0090762535110116, -0.07230446487665176, -0.004597807303071022, 0.0015087302308529615, -0.025572022423148155, -0.07921788096427917, -0.008488994091749191, -0.03790923207998276, -0.07455800473690033, 0.06080755591392517, 0.03321116045117378, 0.027157142758369446, 0.02748180739581585, -0.0011965996818616986, -0.03011731058359146, -0.034070566296577454, -0.01536422036588192, 0.005791422910988331, 0.05725535377860069, -0.06130409985780716, -0.0012330049648880959, 0.001996919047087431, 0.043313924223184586, -0.024063291028141975, -0.02226809412240982, -0.04740086570382118, -0.010322388261556625, -0.028112035244703293, 0.004970215726643801, -0.000029131682822480798, -0.020778460428118706, 0.06164786219596863, -0.046751536428928375, -0.0010086052352562547, -0.020778460428118706, 0.0210267324000597, 0.01724535971879959, 0.03393688052892685, 0.03584666550159454, -0.06451253592967987, 0.038940515369176865, 0.018897322937846184, -0.010981263592839241, 0.06500907987356186, 0.011850216425955296, -0.04915786534547806, 0.04289377108216286, 0.036629676818847656, -0.0030962389428168535, -0.01053246483206749, 0.00427553104236722, -0.0453764908015728, 0.05190795660018921, -0.0004028452676720917, -0.023280279710888863, -0.03309657424688339, 0.052748262882232666, 0.05740813910961151, 0.03168333321809769, 0.03269552066922188, -0.0001979910011868924, 0.008422152139246464, -0.020969439297914505, 0.003086690092459321, 0.0524045005440712, -0.012241722084581852, -0.02771098166704178, 0.02694706618785858, -0.04770642891526222, -0.028303014114499092, -0.02098853699862957, -0.03351672738790512, -0.02543833665549755, 0.014877225272357464, -0.04491814225912094, -0.02585848979651928, 0.020893048495054245, -0.0394943542778492, -0.03903600573539734, 0.00019664817955344915, -0.002573435427621007, -0.0704328715801239, -0.06336666643619537, -0.02752000279724598, 0.07367950677871704, 0.0017534213839098811, 0.010818932205438614, -0.05878318473696709, 0.003425676841288805, 0.0276727844029665, 0.01646234653890133, -0.040220074355602264, 0.009257682599127293, -0.03737449273467064, -0.03876863792538643, 0.025304650887846947, -0.014600306749343872, 0.033841390162706375, -0.032332662492990494, 0.02517096698284149, -0.016662875190377235, -0.02385321445763111, -0.022325387224555016, 0.02918151579797268, 0.010312839411199093, -0.10519096255302429, 0.011516003869473934, 0.043313924223184586, 0.019938156008720398, 0.017006635665893555, 0.0130056357011199, -0.03901690989732742, -0.015488356351852417, 0.05870679020881653, -0.026889773085713387, 0.015345122665166855, -0.059699881821870804, 0.005805746652185917, -0.035350121557712555, -0.03309657424688339, -0.004738654009997845, -0.03907420113682747, 0.02694706618785858, 0.06088394671678543, -0.028971439227461815, 0.11130227148532867, -0.035197339951992035, 0.025762999430298805, 0.009324525482952595, 0.056376855820417404, -0.03162604197859764, 0.032485444098711014, 0.05740813910961151, 0.008064066991209984, -0.032981988042593, -0.05446707084774971, 0.030556561425328255, 0.07883592694997787, -0.021561473608016968, 0.05217532813549042, 0.0130056357011199, -0.017541375011205673, 0.04216805472970009, -0.019575295969843864, 0.03061385452747345, -0.00537127023562789, 0.03804291784763336, -0.005991950631141663, -0.003499681130051613, -0.022439973428845406, -0.031034007668495178, -0.10114221274852753, -0.07547470182180405, -0.0337458997964859, 0.0027858989778906107, 0.06344305723905563, -0.037088025361299515, 0.03351672738790512, 0.015201888978481293, 0.052977435290813446 ]
30,292
networkx.algorithms.planarity
connect_components
Adds half-edges for (v, w) and (w, v) at some position. This method should only be called if v and w are in different components, or it might break the embedding. This especially means that if `connect_components(v, w)` is called it is not allowed to call `connect_components(w, v)` afterwards. The neighbor orientations in both directions are all set correctly after the first call. Parameters ---------- v : node w : node See Also -------- add_half_edge
def connect_components(self, v, w): """Adds half-edges for (v, w) and (w, v) at some position. This method should only be called if v and w are in different components, or it might break the embedding. This especially means that if `connect_components(v, w)` is called it is not allowed to call `connect_components(w, v)` afterwards. The neighbor orientations in both directions are all set correctly after the first call. Parameters ---------- v : node w : node See Also -------- add_half_edge """ if v in self._succ and self._succ[v]: ref = next(reversed(self._succ[v])) else: ref = None self.add_half_edge(v, w, cw=ref) if w in self._succ and self._succ[w]: ref = next(reversed(self._succ[w])) else: ref = None self.add_half_edge(w, v, cw=ref)
(self, v, w)
[ -0.02462785691022873, -0.04801223427057266, -0.05498955026268959, 0.048254020512104034, -0.04276197403669357, -0.0007464131922461092, -0.040516797453165054, 0.016398422420024872, 0.013022023253142834, 0.03861703351140022, -0.038547951728105545, 0.0009380087722092867, 0.052088093012571335, 0.02512870542705059, -0.012089410796761513, 0.014766352251172066, 0.028910962864756584, -0.010327811352908611, -0.00829851720482111, -0.008017870597541332, -0.009783787652850151, -0.04780498519539833, 0.00812581181526184, 0.031035246327519417, 0.011079082265496254, 0.011813081800937653, -0.03671726956963539, 0.0354737862944603, -0.05108639597892761, -0.0491175502538681, 0.0036721585784107447, -0.004285264294594526, 0.019153080880641937, -0.045214395970106125, 0.07564517110586166, 0.013263811357319355, 0.051569972187280655, -0.00993922259658575, -0.03958418592810631, 0.07433260977268219, 0.0491175502538681, -0.01010329369455576, 0.024247905239462852, -0.034696608781814575, 0.03310771659016609, 0.06718258559703827, 0.009835599921643734, 0.05806371569633484, 0.00684347003698349, -0.013540140353143215, -0.0002938698453363031, -0.06490286439657211, 0.021070117130875587, 0.004887576214969158, -0.001716264639981091, 0.04220931604504585, 0.0016525792889297009, 0.024766022339463234, 0.03374672681093216, 0.02704573981463909, -0.006899599451571703, -0.05989439785480499, 0.00966289360076189, 0.05108639597892761, -0.016389787197113037, 0.011139528825879097, -0.002189046936109662, -0.0333840437233448, -0.014844070188701153, 0.0035491057205945253, 0.029135480523109436, -0.011372681707143784, 0.005487729329615831, -0.0403786338865757, -0.0166920218616724, 0.03348767012357712, 0.04279651492834091, 0.04542164504528046, 0.058961786329746246, -0.028289223089814186, 0.02818559855222702, -0.01586303487420082, -0.04680329188704491, -0.06403933465480804, 0.0491175502538681, 0.06383208930492401, -0.05284799635410309, -0.02516324631869793, -0.07702682167291641, -0.009861505590379238, -0.02540503442287445, -0.013661034405231476, -0.02595769241452217, 0.02984357438981533, 0.046250633895397186, 0.05923811346292496, 0.016640210524201393, -0.09436649084091187, -0.03295228257775307, 0.006752799730747938, -0.006312399636954069, 0.009092964231967926, -0.08421138674020767, -0.00875187013298273, -0.006558505352586508, -0.10908102989196777, -0.07239830493927002, -0.03861703351140022, -0.07529976218938828, -0.03454117476940155, 0.0061915055848658085, -0.011700822971761227, 0.03730446845293045, 0.03892790526151657, 0.016778375953435898, 0.013350164517760277, 0.054333269596099854, -0.00020265954663045704, 0.04535256326198578, 0.02543957531452179, 0.027788374572992325, -0.018375905230641365, -0.011571293696761131, -0.044039998203516006, 0.029204564169049263, -0.02013750560581684, 0.006329670082777739, -0.004632835276424885, -0.022538116201758385, -0.01397190522402525, -0.0048357644118368626, -0.02158823423087597, -0.04925571382045746, -0.03813345730304718, -0.015586704947054386, -0.025007810443639755, -0.036337316036224365, -0.01822046935558319, 0.007024811580777168, 0.021087387576699257, -0.015837129205465317, -0.032175105065107346, 0.012797505594789982, 0.04580159857869148, -0.04873759672045708, 0.0365445613861084, -0.026907574385404587, -0.011225881986320019, 0.02514597587287426, 0.014541834592819214, -0.004078017547726631, 0.016916539520025253, 0.047425031661987305, -0.0002930602931883186, -0.03706268221139908, -0.03816799819469452, -0.006955728866159916, -0.010448705404996872, 0.026372186839580536, 0.02984357438981533, 0.03397124633193016, -0.0431419275701046, 0.03903152793645859, 0.06728620827198029, -0.02713209204375744, 0.039135150611400604, 0.08317515254020691, -0.010664587840437889, 0.004045634996145964, -0.03239962086081505, 0.021156469359993935, -0.0198784451931715, -0.03644093871116638, 0.017469199374318123, -0.0016471822746098042, -0.0008133367518894374, -0.0003524279163684696, -0.051293645054101944, 0.04148394986987114, -0.07833938300609589, -0.0025668409653007984, 0.02158823423087597, 0.048806678503751755, -0.05229533836245537, -0.01617390476167202, 0.05191538482904434, 0.053504280745983124, 0.01656249351799488, 0.07661232352256775, -0.012313928455114365, 0.0010297588305547833, -0.03861703351140022, -0.005030058789998293, 0.05274437367916107, 0.04555980861186981, 0.00006041332380846143, 0.02516324631869793, 0.030517127364873886, -0.04096583276987076, 0.031328845769166946, 0.01118270494043827, -0.030827999114990234, 0.015854399651288986, 0.00016825330385472625, 0.06542098522186279, 0.007374540902674198, 0.022434493526816368, -0.0048789409920573235, 0.036889974027872086, -0.008199211210012436, 0.055956702679395676, -0.015154940076172352, 0.014118704944849014, 0.019792092964053154, -0.009783787652850151, -0.057649221271276474, -0.06531736254692078, 0.012952940538525581, 0.00643329368904233, -0.013401975855231285, -0.05132818594574928, 0.03170879930257797, 0.019740281626582146, -0.000011451883437985089, 0.014679999090731144, -0.04977383464574814, -0.03878973796963692, -0.05011924356222153, -0.004870305769145489, -0.038271620869636536, -0.01368694007396698, -0.0017864264082163572, -0.035922821611166, -0.00015057793643791229, 0.02713209204375744, 0.017305128276348114, -0.05198446661233902, 0.01797868125140667, 0.03239962086081505, 0.0016342293238267303, -0.001477714627981186, -0.0737108662724495, -0.017529645934700966, 0.013773293234407902, -0.01588030532002449, 0.003594441106542945, 0.03568103536963463, -0.03369491547346115, 0.03383307904005051, 0.03531835228204727, -0.07108573615550995, -0.01547444611787796, -0.01908399909734726, -0.012780234217643738, -0.011795811355113983, -0.05495500937104225, -0.03778804466128349, -0.020068421959877014, -0.014567740261554718, -0.03816799819469452, -0.01409279927611351, 0.02906639873981476, 0.017581457272171974, 0.035750117152929306, 0.005552493967115879, -0.03284865617752075, 0.015465810894966125, 0.043487340211868286, 0.0007733984966762364, 0.006549870129674673, -0.025025080889463425, -0.005833141040056944, -0.013047928921878338, 0.012011693790555, -0.010414164513349533, -0.002629447029903531, 0.010811387561261654, 0.010560964234173298, -0.004425588063895702, -0.013678304851055145, -0.023971574380993843, -0.00538410572335124, -0.0746089369058609, 0.01006875280290842, -0.01578531600534916, 0.009472916834056377, 0.027166634798049927, -0.061172422021627426, -0.0023358468897640705, -0.02766748145222664, 0.017141057178378105, -0.0076163290068507195, 0.05091369152069092, 0.04524894058704376, 0.019671199843287468, 0.031916044652462006, 0.010353717021644115, 0.01674383506178856, -0.01381647028028965, -0.06511011719703674, 0.057580139487981796, 0.004337076097726822, 0.030758915469050407, 0.028271950781345367, -0.006325352471321821, -0.0514318086206913, 0.03307317569851875, -0.02264174073934555, 0.032209645956754684, -0.050395574420690536, -0.05713110417127609, -0.017857788130640984, -0.031121598556637764, 0.030171716585755348, 0.023332564160227776, -0.023677974939346313, -0.04870305582880974, -0.009300211444497108, -0.010172376409173012, 0.04086221009492874, 0.022158164530992508, 0.057372890412807465, -0.04507623240351677, 0.04728686809539795, -0.022572657093405724, -0.014032352715730667, 0.0730891227722168, -0.032762303948402405, 0.031397927552461624, 0.017805974930524826, -0.04704508185386658, 0.021467339247465134, -0.0016407058574259281, 0.01573350466787815, -0.11578201502561569, -0.03144973888993263, 0.05937628075480461, 0.014947693794965744, 0.027460234239697456, 0.001153891091234982, 0.10079114884138107, 0.0580291748046875, -0.019239434972405434, -0.018065035343170166, 0.05661298707127571, -0.012236211448907852, -0.0024092469830065966, -0.0059540350921452045, -0.04783952608704567, 0.008026505820453167, 0.015241293236613274, 0.01599256321787834, -0.031656987965106964, -0.0033612879924476147, -0.027287527918815613, 0.061241503804922104, -0.032192375510931015, -0.030776185914874077, 0.032485973089933395, 0.022848987951874733, -0.0004509242426138371, 0.0342303030192852, 0.004637152887880802, 0.042692892253398895, -0.026976658031344414, 0.03514564409852028, -0.00847554113715887, -0.02540503442287445, -0.048254020512104034, 0.007823576219379902, -0.03093162178993225, -0.054816845804452896, 0.06922051310539246, 0.04366004467010498, 0.005012787878513336, 0.05087915062904358, 0.00008041617547860369, 0.047425031661987305, 0.0307071041315794, -0.01965392753481865, 0.028790069743990898, 0.01625162363052368, 0.05661298707127571, 0.012080775573849678, -0.002212794031947851, -0.013825105503201485, 0.08455679565668106, 0.013479693792760372, -0.003009399864822626, 0.028876421973109245, -0.05177722126245499, 0.03233053907752037, 0.012650704942643642, -0.008233752101659775, -0.026752140372991562, 0.0009050866938196123, 0.026182210072875023, 0.0007858117460273206, 0.0034109409898519516, -0.07744131237268448, 0.047148704528808594, -0.015888940542936325, 0.0035491057205945253, 0.035922821611166, -0.04839218407869339, 0.011286328546702862, -0.016182539984583855, 0.07654324173927307, 0.01575077511370182, -0.05782192572951317, -0.05011924356222153, 0.028617363423109055, -0.010794117115437984, -0.01773689314723015, 0.004511940758675337, -0.049048468470573425, 0.005150952842086554, 0.03647547960281372, -0.0008403219981119037, 0.04203661158680916, 0.0021447911858558655, 0.011545388028025627, 0.0574074313044548, 0.06134512647986412, -0.019153080880641937, -0.04998107999563217, 0.03685543313622475, -0.04148394986987114, 0.016147999092936516, -0.013142917305231094, -0.010405529290437698, -0.0033720822539180517, 0.045179855078458786, -0.05495500937104225, -0.01006875280290842, 0.01008602324873209, 0.05699293687939644, 0.02181275188922882, 0.0325377881526947, 0.02404065802693367, -0.016294799745082855, -0.013963270001113415, -0.07695773988962173, -0.013825105503201485, 0.012892493046820164, -0.027822915464639664, -0.05868545547127724, -0.05150089040398598, -0.04856489226222038, -0.00376930576749146, 0.000007151102636271389, 0.0004568610165733844, -0.01421369332820177, -0.00014207756612449884, -0.0089807054027915, 0.04998107999563217, -0.011364046484231949, -0.04887576401233673, -0.02597496286034584, 0.01820319890975952, 0.061241503804922104, -0.027512045577168465, 0.009049788117408752, 0.0056388466618955135, -0.07536884397268295, 0.01851406879723072, 0.04124216362833977, -0.052088093012571335, -0.027563856914639473, 0.005703611299395561, 0.06832244247198105, -0.01744329370558262, 0.017676446586847305, -0.0147749874740839, 0.06573185324668884, -0.0015888940542936325, -0.006329670082777739, -0.03526654094457626, 0.044903527945280075, -0.08538578450679779, -0.09657712280750275, 0.013756022788584232, -0.009187952615320683, 0.00043257424840703607, 0.009507458657026291, 0.047390490770339966, -0.008488493971526623, -0.021156469359993935, 0.030016280710697174, -0.022538116201758385, 0.057372890412807465, 0.009887411259114742, -0.03813345730304718, 0.030534397810697556, 0.02409246936440468, 0.024783292785286903, -0.02844465710222721, -0.06725166738033295, 0.05440235137939453, -0.01339334063231945, 0.014559105038642883, -0.04089675098657608, -0.01571623422205448, -0.06469561904668808, 0.029411809518933296, 0.00812581181526184, -0.0094038350507617, 0.014731811359524727, 0.009041152894496918, 0.02735660970211029, 0.023626163601875305, -0.02792654000222683, 0.05968714877963066, 0.04859943315386772, 0.048772137612104416, -0.001722741057164967, -0.028876421973109245, 0.024489693343639374, 0.02599223330616951, -0.03429938480257988, 0.02818559855222702, -0.0259404219686985, 0.041276704519987106, 0.029135480523109436, -0.055956702679395676, 0.02571590431034565, -0.034437552094459534, -0.058478210121393204, -0.015828493982553482, -0.006364211440086365, -0.037960752844810486, 0.010750941000878811, -0.04694145545363426, 0.031674258410930634, -0.005397058557718992, 0.04068950563669205, 0.00664485851302743, 0.04441995173692703, -0.000003499655122141121, 0.0029316821601241827, -0.02322893962264061, -0.023574352264404297, -0.03986051678657532, -0.03519745543599129, 0.007529976312071085, 0.04507623240351677, 0.017771434038877487, -0.04224385693669319, -0.04732140898704529, -0.06410842388868332, -0.02262447029352188, 0.06794249266386032, -0.0013341528829187155, 0.05150089040398598, 0.05005016177892685, -0.041103996336460114, 0.0015996881993487477, -0.0835205614566803, -0.021916374564170837, 0.02566409297287464, -0.002333688084036112, -0.035542868077754974, -0.01189079973846674, -0.02573317475616932, 0.016847457736730576, 0.007106846664100885, 0.05270983278751373, -0.06859876960515976, 0.008535987697541714, 0.04151849076151848, 0.007711317390203476, 0.04773590341210365, -0.028289223089814186, -0.030499856919050217, -0.03564649075269699, -0.004375935066491365, -0.0010756338015198708, 0.02210635133087635, 0.016622940078377724, -0.08345147967338562, -0.07226014137268066, -0.00938656460493803, 0.036613646894693375, 0.033556751906871796, 0.05194992572069168, 0.004347870592027903, -0.00012791028711944818, 0.045490726828575134, 0.035819198936223984, -0.01480952836573124, -0.03785712644457817, -0.018721316009759903, 0.004736458417028189, 0.008972070179879665, 0.032762303948402405, -0.020914681255817413, -0.07661232352256775, 0.04980837553739548, 0.054333269596099854, 0.022728092968463898, 0.009550634771585464, 0.003028829349204898, 0.039687808603048325, 0.02131190523505211, -0.02599223330616951, -0.016812916845083237, 0.015249928459525108, -0.003065529279410839, -0.027270257472991943, -0.03837524354457855, 0.054022397845983505, 0.003989505581557751, 0.021415527909994125, -0.05585308000445366, -0.042727433145046234, -0.003389352699741721, -0.06531736254692078, 0.02820286899805069, 0.033591292798519135, 0.03326315060257912, 0.0386861152946949, -0.04642333835363388, -0.03201966732740402, 0.017184235155582428, -0.039342399686574936, 0.024748751893639565, 0.030171716585755348, 0.02324621006846428, 0.006226046942174435, 0.04293467849493027, 0.019463952630758286, -0.062346819788217545, 0.0094038350507617, -0.002588429255411029, -0.03671726956963539, 0.007059352472424507, 0.027684751898050308, -0.034679338335990906, 0.029498163610696793, 0.05564583092927933, -0.011536752805113792, 0.03644093871116638, 0.022330868989229202, -0.005798599682748318, 0.006903917528688908, 0.03847886994481087, 0.013583317399024963, -0.047701362520456314, -0.05937628075480461, 0.02402338758111, 0.014541834592819214, -0.017659176141023636, -0.009749246761202812, -0.043832749128341675, 0.012210304848849773, 0.041069455444812775, 0.03214056417346001, -0.0207247044891119, 0.04535256326198578, 0.0007733984966762364, -0.0013395498972386122, 0.012512540444731712, 0.0899452194571495, -0.014040987938642502, -0.006040387786924839, 0.038824278861284256, 0.06286493688821793, -0.028928233310580254, -0.020102962851524353, -0.046872373670339584, 0.013773293234407902, -0.04372912645339966, -0.017071975395083427, 0.031898774206638336, -0.026320375502109528, -0.03402305766940117, -0.010915011167526245, -0.02844465710222721, -0.02929091639816761, -0.07087849080562592, 0.061241503804922104, 0.0005451029282994568, 0.01613936387002468, -0.0681842789053917, -0.022227246314287186, -0.01393736433237791, -0.039653267711400986, -0.009809693321585655, 0.031104328110814095, -0.06193232536315918, -0.04224385693669319, -0.010491881519556046, 0.01561261061578989, 0.0267866812646389, -0.038547951728105545, -0.0246451273560524, 0.04511077329516411, -0.10528150200843811, 0.05063736066222191, 0.01755555160343647, 0.05920357257127762, -0.0020627558697015047, -0.04701053723692894, -0.002443788107484579, 0.024472422897815704, -0.03678635135293007, 0.08455679565668106, -0.042174775153398514, 0.03010263293981552, 0.04113854095339775, -0.007210470270365477, 0.006428976077586412, -0.024990539997816086, -0.05771830305457115, 0.04680329188704491, 0.03257232904434204, -0.059307198971509933, -0.019533034414052963, -0.0019202734110876918, 0.022296328097581863, -0.022779904305934906, -0.006472152657806873, 0.02761567011475563, -0.005137999542057514, 0.030171716585755348, -0.019774822518229485, 0.002629447029903531, -0.016078917309641838, -0.02906639873981476, 0.015949387103319168, -0.026631245389580727, 0.02151915244758129, -0.0023358468897640705, 0.08711284399032593, -0.008164670318365097, 0.06134512647986412, 0.06020526587963104, 0.03847886994481087, -0.04279651492834091, 0.0346275269985199, -0.008497129194438457, -0.01854861155152321, -0.01626889407634735, -0.06397025287151337, 0.013436516746878624, 0.005530905444175005, 0.02906639873981476, 0.02324621006846428, -0.0369935967028141, -0.013419246301054955, 0.046008843928575516, 0.0393078550696373, 0.014015081338584423, -0.03172606974840164, 0.029722681269049644, -0.004719187971204519, 0.03778804466128349, 0.014749081805348396, -0.05657844617962837, -0.12510813772678375, -0.022883528843522072, 0.04918663203716278, 0.016104822978377342, 0.03364310413599014, -0.029187291860580444, 0.03944602236151695, 0.0673898309469223, 0.06549006700515747 ]
30,293
networkx.algorithms.planarity
copy
null
def copy(self, as_view=False): 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()) super(self.__class__, 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.014850233681499958, -0.04623699188232422, 0.025493808090686798, -0.02168605476617813, -0.07659021764993668, 0.04895681515336037, -0.028902651742100716, -0.010552912950515747, 0.06853953748941422, 0.003912012092769146, -0.01027186494320631, 0.005634566769003868, 0.014007087796926498, 0.05820421129465103, -0.006387050729244947, 0.05214807391166687, -0.01831347495317459, -0.012701572850346565, 0.020906371995806694, 0.04177648201584816, -0.015421396121382713, -0.07753308862447739, 0.0006482244934886694, 0.0000886067355168052, -0.006645434070378542, 0.015013422816991806, -0.025312485173344612, -0.0002266519149998203, 0.0014199742581695318, -0.0030212700366973877, 0.006119601894170046, -0.08500353246927261, -0.02663613297045231, 0.01054384745657444, 0.02917463518679142, 0.01766071654856205, -0.031821928918361664, 0.027506476268172264, 0.007239262107759714, 0.022356944158673286, 0.02286464534699917, -0.049790892750024796, -0.015131281688809395, -0.007402451708912849, 0.039564356207847595, 0.005888416897505522, 0.03775114193558693, 0.03494065999984741, 0.006699830759316683, -0.054396457970142365, 0.01588376611471176, 0.024841049686074257, -0.04852164164185524, 0.039020393043756485, -0.025910846889019012, -0.0039664083160459995, 0.02937408722937107, 0.0706428661942482, -0.017388734966516495, 0.03825884312391281, -0.029210899025201797, -0.03080652840435505, -0.0010012348648160696, -0.066399946808815, -0.009591909125447273, 0.00011233435361646116, -0.0667988508939743, -0.04931945726275444, 0.032075777649879456, -0.026364151388406754, -0.009736966341733932, 0.03417911008000374, 0.032764799892902374, 0.010942754335701466, 0.030987849459052086, 0.0361192487180233, 0.029609806835651398, 0.0008981082355603576, -0.020162954926490784, -0.0213778093457222, -0.010126807726919651, -0.017325272783637047, -0.05486789345741272, 0.017207413911819458, 0.008399720303714275, 0.022792115807533264, -0.007275526411831379, 0.0013995756162330508, 0.0020489334128797054, -0.09885650128126144, 0.008830358274281025, 0.007810425013303757, -0.02605590410530567, 0.02014482207596302, 0.01983657479286194, 0.0033295166213065386, -0.03338129445910454, -0.027760326862335205, -0.02679932303726673, 0.03552088886499405, -0.04097866639494896, 0.008526644669473171, -0.08572881668806076, 0.0009785696165636182, -0.006745161022990942, -0.0013349797809496522, 0.02079758048057556, -0.01843133382499218, -0.03883907198905945, -0.03191258758306503, -0.022048698738217354, 0.09842132776975632, 0.04228417947888374, 0.023009702563285828, -0.004508106503635645, -0.0034564416855573654, 0.03026256337761879, -0.02605590410530567, 0.004007205832749605, 0.050624970346689224, -0.024587199091911316, 0.04449630528688431, 0.01848573051393032, 0.050334855914115906, -0.03916545212268829, 0.023952573537826538, 0.00615133298560977, -0.02837681956589222, -0.012556515634059906, -0.07506711035966873, -0.0036468293983489275, -0.0037578886840492487, -0.03184005990624428, 0.031132906675338745, -0.021468469873070717, 0.015593651682138443, -0.06339000910520554, -0.020308012142777443, 0.012338929809629917, 0.050624970346689224, -0.0577690415084362, -0.0600174255669117, 0.0768803283572197, 0.045076534152030945, -0.02500423975288868, -0.043879810720682144, -0.016192013397812843, 0.039963264018297195, -0.04768756404519081, -0.04246550425887108, 0.02640041522681713, 0.06299109756946564, 0.061794377863407135, 0.02902957797050476, -0.023644328117370605, 0.018159350380301476, -0.07049781084060669, -0.00888928771018982, -0.011386992409825325, 0.00258609838783741, -0.03602858632802963, 0.02629162184894085, 0.06415155529975891, -0.002212122781202197, -0.005231126211583614, -0.041450101882219315, 0.09037064760923386, -0.08094193041324615, -0.033961523324251175, 0.03528517112135887, -0.006291856989264488, -0.04511279612779617, -0.016300804913043976, 0.0008182133897207677, -0.017506593838334084, 0.00921566691249609, 0.018195616081357002, -0.009619107469916344, 0.02823176234960556, -0.02451467141509056, 0.017180215567350388, -0.013299934566020966, 0.0012545182835310698, 0.023481138050556183, 0.005462311208248138, -0.0280867051333189, -0.018676117062568665, -0.00021942738385405391, 0.04692601040005684, 0.0001664474984863773, 0.03720717877149582, 0.03006310947239399, 0.037388499826192856, -0.0339977853000164, 0.017007960006594658, -0.06962747126817703, -0.04997221380472183, -0.01843133382499218, -0.08609146624803543, 0.10139500349760056, 0.020162954926490784, -0.07089671492576599, 0.02500423975288868, 0.01245678961277008, -0.01387109700590372, 0.025022370740771294, -0.035248905420303345, -0.009455917403101921, 0.018531059846282005, 0.011205670423805714, 0.02197616919875145, 0.029845524579286575, 0.04261055961251259, -0.002733421977609396, -0.043335847556591034, -0.024986106902360916, -0.07165826857089996, 0.003816818119958043, 0.035049453377723694, -0.027597136795520782, -0.013762304559350014, -0.003120996756479144, -0.08355296403169632, -0.008046142756938934, 0.0044650426134467125, -0.03978194296360016, -0.0341247133910656, -0.06309989094734192, -0.000002616235860841698, -0.05526680126786232, 0.06447793543338776, -0.022610794752836227, -0.010725168511271477, -0.06197569891810417, -0.00024039269192144275, 0.0020817979238927364, -0.0231728907674551, 0.006414249073714018, 0.011006216518580914, 0.04888428375124931, -0.05900202691555023, -0.03205764666199684, 0.0032932523172348738, 0.001379176857881248, 0.034451089799404144, -0.000988202285952866, -0.020906371995806694, -0.024677859619259834, 0.03330876678228378, 0.021903641521930695, -0.028195498511195183, -0.040108323097229004, -0.0463457815349102, 0.04986342042684555, 0.014614515006542206, 0.012221070937812328, -0.04543917626142502, -0.04271935299038887, -0.022411340847611427, -0.010154006071388721, 0.005457777995616198, 0.013218339532613754, -0.021649790927767754, -0.022792115807533264, -0.0022075895685702562, 0.005140465218573809, -0.022338813170790672, 0.005167663563042879, -0.03898412734270096, 0.005965478252619505, 0.05145905166864395, 0.07521217316389084, 0.027107568457722664, 0.038476429879665375, 0.029990581795573235, -0.00781495776027441, -0.05312720686197281, 0.05247445032000542, -0.03588353097438812, -0.024587199091911316, -0.0043653156608343124, 0.03655442222952843, -0.0012545182835310698, 0.0023775785230100155, -0.04148636758327484, -0.016953563317656517, 0.02188550867140293, 0.004959143698215485, 0.0004127897846046835, -0.02971859835088253, 0.010743300430476665, 0.029501013457775116, 0.017189281061291695, -0.0004946677945554256, 0.03626430779695511, 0.05066123604774475, -0.03419724106788635, 0.07173079997301102, -0.03724344074726105, 0.088702492415905, 0.049935948103666306, -0.026654265820980072, 0.017896434292197227, 0.07419677078723907, 0.022447604686021805, 0.008603706955909729, 0.024877313524484634, 0.010598243214190006, 0.005684429779648781, 0.031477417796850204, -0.05508548021316528, -0.004489974584430456, 0.004945544525980949, 0.005212993826717138, -0.028104837983846664, -0.040507230907678604, 0.004263322334736586, -0.024695992469787598, 0.026219094172120094, -0.0016126283444464207, -0.09102340787649155, -0.0059564122930169106, -0.048195261508226395, -0.025421278551220894, -0.004607833456248045, 0.06788678467273712, 0.03189445659518242, 0.028648801147937775, -0.020670654252171516, 0.036536287516355515, -0.007434182800352573, 0.04166768863797188, 0.009573777206242085, 0.04221165180206299, -0.07082419097423553, 0.013245537877082825, 0.016237342730164528, -0.0022415874991565943, -0.03894786536693573, -0.04282814636826515, 0.03905665874481201, 0.06752413511276245, 0.001885743928141892, -0.02148660086095333, -0.00183248077519238, 0.007470447104424238, -0.07956388592720032, -0.004326784983277321, -0.06411529332399368, -0.02426082082092762, -0.03488626331090927, 0.055593181401491165, -0.022356944158673286, 0.019220082089304924, -0.0012250535655766726, 0.0487392283976078, 0.01708955504000187, -0.009374323301017284, -0.030897188931703568, 0.012493053451180458, 0.003358981339260936, 0.04460509493947029, 0.017225544899702072, -0.0393105074763298, 0.048158999532461166, -0.003628697246313095, 0.0050634038634598255, 0.017352471128106117, -0.04757877066731453, -0.05348985269665718, -0.01954646036028862, -0.01245678961277008, -0.006024407688528299, 0.01711675338447094, -0.01642773114144802, -0.02019921876490116, -0.04518532380461693, -0.04141383618116379, -0.007343521807342768, 0.025113031268119812, 0.045910611748695374, -0.01703515835106373, 0.010852093808352947, 0.017270876094698906, 0.05309094488620758, -0.03967314958572388, 0.06698017567396164, 0.006949147675186396, 0.03706211969256401, -0.021160222589969635, -0.039709415286779404, -0.01803242601454258, 0.01213041041046381, 0.05555691570043564, -0.035992324352264404, -0.015131281688809395, 0.018585456535220146, 0.018367871642112732, -0.024079499766230583, -0.021069562062621117, 0.03031696006655693, -0.017352471128106117, -0.005466843955218792, -0.019764047116041183, -0.0011162606533616781, -0.029337823390960693, 0.0035063051618635654, 0.03876654431223869, 0.043480902910232544, -0.04870296269655228, 0.03387086093425751, -0.0029328756500035524, -0.007538442499935627, 0.04148636758327484, 0.03615551441907883, -0.03517637774348259, 0.08101446181535721, -0.018911834806203842, 0.0058249542489647865, 0.008544777520000935, 0.01757912151515484, 0.06052512675523758, -0.008204799145460129, -0.006758760195225477, 0.06342627108097076, -0.012937291525304317, -0.04572929069399834, 0.021903641521930695, -0.04340837523341179, 0.05834927037358284, 0.02683558687567711, 0.0024818384554237127, 0.06513069570064545, 0.023553667590022087, 0.043879810720682144, 0.005503108259290457, 0.061504263430833817, -0.018911834806203842, 0.006137733813375235, 0.05294588580727577, 0.013091414235532284, -0.035357698798179626, 0.009755098260939121, -0.10487637668848038, -0.028902651742100716, -0.030933452770113945, -0.010326261632144451, 0.010462252423167229, -0.018567325547337532, -0.04326331615447998, 0.04206659644842148, 0.022393209859728813, 0.03655442222952843, -0.0015491658123210073, -0.08652663230895996, 0.048050206154584885, -0.010797697119414806, -0.061939433217048645, -0.009106873534619808, 0.05095135048031807, 0.016763174906373024, -0.024079499766230583, -0.00622839480638504, 0.022538267076015472, 0.014351598918437958, -0.025330618023872375, 0.05468657240271568, -0.028503743931651115, -0.03539396449923515, 0.019220082089304924, 0.045221589505672455, -0.035448357462882996, 0.007991746068000793, -0.1083577498793602, 0.030226299539208412, -0.0009389055776409805, -0.014405995607376099, -0.03298238664865494, -0.05283709242939949, -0.028938915580511093, -0.039818208664655685, 0.003336316207423806, 0.004326784983277321, 0.03528517112135887, -0.02877572737634182, 0.08500353246927261, 0.039854470640420914, 0.020108558237552643, -0.00788748636841774, 0.024025103077292442, -0.008037077262997627, -0.01007241103798151, -0.11909198015928268, 0.031332358717918396, 0.02634601853787899, 0.05160410702228546, -0.023481138050556183, 0.0006759893149137497, 0.03394339233636856, -0.038331370800733566, -0.00582948699593544, -0.02605590410530567, -0.003295518923550844, 0.022755851969122887, -0.0023084497079253197, 0.046418312937021255, -0.011160340160131454, 0.033562615513801575, 0.035992324352264404, 0.012212005443871021, 0.0029328756500035524, 0.009338058531284332, 0.011241935193538666, 0.024025103077292442, 0.03898412734270096, -0.01754285767674446, -0.07082419097423553, -0.0015253673773258924, 0.01386203058063984, -0.05820421129465103, 0.03216644003987312, 0.04826779291033745, 0.008998081088066101, -0.051531579345464706, -0.03626430779695511, 0.03145928680896759, 0.01694449782371521, 0.04989968612790108, 0.030969716608524323, -0.023589931428432465, 0.010625441558659077, -0.01665438339114189, 0.009691636078059673, 0.06618236005306244, 0.022048698738217354, -0.021069562062621117, 0.01037159189581871, 0.018095888197422028, -0.06908350437879562, -0.014052418991923332, -0.04014458507299423, 0.006717962678521872, -0.02669052965939045, -0.026672396808862686, -0.03898412734270096, 0.06788678467273712, 0.029591673985123634, -0.029609806835651398, 0.006423315033316612, -0.07009890675544739, -0.016328003257513046, 0.011323529295623302, 0.00449450733140111, 0.023245420306921005, 0.06487684696912766, 0.0020772647112607956, -0.057080019265413284, -0.01168617233633995, 0.05037112161517143, -0.006776892114430666, 0.014433193951845169, -0.053163472563028336, 0.018893703818321228, -0.008730631321668625, -0.028666933998465538, 0.0333268977701664, -0.0431545227766037, 0.06571092456579208, -0.002833148930221796, 0.03140489012002945, 0.011042481288313866, -0.01044412050396204, 0.017325272783637047, 0.00987295713275671, 0.019782178103923798, -0.004508106503635645, 0.010942754335701466, 0.06353506445884705, -0.0010692303767427802, 0.00012933324615005404, -0.04380728304386139, 0.023027833551168442, -0.0031527280807495117, 0.010380657389760017, -0.010997151024639606, 0.019618989899754524, -0.012284534052014351, 0.041159987449645996, 0.06708896905183792, -0.04623699188232422, 0.041159987449645996, 0.039564356207847595, 0.04971836507320404, 0.00527192372828722, -0.03854895755648613, -0.029591673985123634, -0.021105825901031494, -0.0035017719492316246, 0.004075201228260994, 0.02640041522681713, 0.02554820291697979, 0.014913695864379406, 0.05055244266986847, -0.008417852222919464, -0.026962511241436005, 0.02494984306395054, -0.01061637606471777, -0.01949206367135048, 0.02872133068740368, -0.043879810720682144, 0.0209789015352726, 0.034052181988954544, -0.011060613207519054, -0.04206659644842148, -0.03318183869123459, -0.047107335180044174, -0.07825837284326553, 0.038113784044981, -0.05845806002616882, 0.019673386588692665, 0.005766024813055992, -0.01914755441248417, -0.02946474961936474, 0.017424998804926872, -0.046454574912786484, -0.02183111198246479, 0.051277730613946915, 0.009365256875753403, -0.03080652840435505, 0.0910959392786026, 0.04572929069399834, -0.09581029415130615, -0.029537277296185493, 0.023753119632601738, 0.0034473754931241274, -0.057080019265413284, 0.001313447835855186, 0.038476429879665375, 0.0019832041580229998, 0.05874817445874214, -0.003499505575746298, -0.06647247076034546, -0.01843133382499218, -0.04369848966598511, -0.04612819850444794, -0.09145858138799667, 0.023027833551168442, -0.038476429879665375, -0.05766024813055992, -0.006876619067043066, -0.040108323097229004, 0.038621485233306885, 0.03517637774348259, -0.017760444432497025, -0.0059881433844566345, 0.04986342042684555, 0.005004474427551031, 0.00522206025198102, 0.03318183869123459, -0.01565711386501789, 0.0008618438732810318, 0.05363490805029869, 0.041051194071769714, 0.0005983610753901303, 0.06857579946517944, 0.04841284826397896, -0.007089671678841114, -0.0047279587015509605, 0.026364151388406754, 0.036935195326805115, -0.07484953105449677, 0.007416050415486097, -0.10190270096063614, 0.05555691570043564, -0.053707435727119446, -0.04068855196237564, 0.031676869839429855, -0.008562909439206123, -0.009125006385147572, -0.04848537594079971, 0.018784910440444946, 0.0620119646191597, 0.00010780131560750306, -0.03840389847755432, -0.049790892750024796, 0.01629173941910267, -0.007293658796697855, -0.018893703818321228, 0.028304291889071465, -0.03071586787700653, 0.028993312269449234, -0.019238214939832687, 0.0335988812148571, 0.038730278611183167, 0.010154006071388721, 0.06135920435190201, -0.0027855520602315664, -0.07484953105449677, -0.004918346647173166, -0.027850987389683723, 0.03836763650178909, 0.001138359191827476, 0.007910151965916157, 0.028503743931651115, 0.009474050253629684, -0.023680591955780983, -0.04032590985298157, 0.05664484575390816, -0.03521263971924782, 0.006427848245948553, 0.013653511181473732, 0.004732491914182901, 0.028358686715364456, 0.05711628124117851, 0.04007205739617348, -0.04134130850434303, 0.012937291525304317, -0.026980644091963768, -0.05943719670176506, 0.003327250014990568, -0.017814841121435165, -0.031223567202687263, 0.0513865202665329, 0.04739744961261749, 0.031042246147990227, 0.022810248658061028, 0.02094263769686222, -0.07372533529996872, 0.011115009896457195, -0.04112372174859047, 0.011541115120053291, 0.07789573073387146, 0.04852164164185524, -0.03136862441897392, -0.005802289117127657, 0.00028402317548170686, -0.021305279806256294, 0.04761503264307976, -0.031586211174726486, 0.037932462990283966, 0.006890218239277601, -0.030987849459052086, -0.016391467303037643, 0.033073049038648605, -0.058820705860853195, -0.041014932096004486, 0.014079616405069828, 0.0030076708644628525, -0.031876325607299805, 0.013046083971858025, 0.04931945726275444, 0.01803242601454258, 0.03764234855771065, 0.02605590410530567, 0.050226062536239624, 0.004079734440892935, 0.01175870094448328, -0.006241993512958288, 0.012366128154098988, -0.08311779052019119, -0.014759572222828865, -0.020380539819598198, -0.006645434070378542, 0.02777845785021782, -0.036536287516355515, 0.03512198105454445, 0.027161965146660805, 0.009066076949238777 ]
30,295
networkx.algorithms.planarity
get_data
Converts the adjacency structure into a better readable structure. Returns ------- embedding : dict A dict mapping all nodes to a list of neighbors sorted in clockwise order. See Also -------- set_data
def get_data(self): """Converts the adjacency structure into a better readable structure. Returns ------- embedding : dict A dict mapping all nodes to a list of neighbors sorted in clockwise order. See Also -------- set_data """ embedding = {} for v in self: embedding[v] = list(self.neighbors_cw_order(v)) return embedding
(self)
[ 0.013306818902492523, -0.03202507644891739, -0.04644966870546341, -0.024360349401831627, -0.003705949056893587, 0.006808655336499214, -0.0022677036467939615, -0.01625206135213375, 0.042972151190042496, -0.003721473505720496, -0.07941509038209915, -0.043859273195266724, -0.02806851640343666, 0.017937591299414635, 0.011931780725717545, 0.02164575830101967, 0.012437439523637295, 0.006387272849678993, -0.029363712295889854, -0.0036815530620515347, 0.011949523352086544, -0.06791800260543823, -0.015480265952646732, 0.035271938890218735, -0.023916788399219513, -0.024715198203921318, -0.007611500099301338, -0.00765585619956255, -0.003568445099517703, 0.025779742747545242, -0.038110729306936264, -0.05336921289563179, 0.02565554529428482, -0.008165950886905193, 0.005664268974214792, -0.016979500651359558, 0.0078643299639225, -0.024626486003398895, -0.06742121279239655, 0.015684302896261215, 0.030339546501636505, -0.0937509760260582, -0.032788001000881195, -0.036478426307439804, 0.05326275900006294, 0.018877940252423286, 0.04602384939789772, 0.013776992447674274, 0.010618841275572777, -0.06766960769891739, -0.002914193319156766, -0.07473109662532806, 0.04602384939789772, 0.03598163649439812, 0.005695318337529898, -0.027003969997167587, 0.009705106727778912, 0.021947380155324936, 0.03945915400981903, 0.026223303750157356, -0.043859273195266724, -0.011603545397520065, 0.03213153034448624, -0.02340225875377655, -0.005668704863637686, 0.013360045850276947, -0.05336921289563179, -0.0012774545466527343, -0.04691097140312195, -0.007105841301381588, 0.017094826325774193, -0.039317212998867035, 0.03736554831266403, 0.01232211384922266, -0.02950565330684185, 0.026950743049383163, 0.03743651509284973, 0.007394155487418175, 0.002216694178059697, 0.0066800229251384735, -0.011825325898826122, -0.012969712726771832, -0.02666686475276947, -0.00959865190088749, 0.022692561149597168, 0.0006780932890251279, 0.07057936489582062, 0.05730803310871124, -0.01106240227818489, -0.016314160078763962, -0.01455765962600708, 0.003725909162312746, -0.009155090898275375, 0.03000243939459324, -0.012969712726771832, -0.00985591672360897, -0.005846128799021244, -0.04031078889966011, 0.019889257848262787, 0.011399507522583008, -0.007828844711184502, 0.027660440653562546, -0.041304364800453186, 0.041375335305929184, -0.046307727694511414, -0.07820861041545868, -0.029949212446808815, -0.03521871194243431, -0.04836585000157356, -0.0032601705752313137, -0.06323400139808655, 0.04652063921093941, 0.03513000160455704, 0.025176500901579857, 0.0528724268078804, -0.0214151069521904, 0.040452729910612106, 0.04190760850906372, -0.025407152250409126, 0.010592227801680565, 0.006320738699287176, 0.03074762225151062, 0.007908686064183712, -0.02340225875377655, -0.0896347314119339, 0.02696848474442959, 0.006897367537021637, -0.011843068525195122, -0.009784947149455547, -0.0224264245480299, 0.04265278950333595, -0.03378157690167427, -0.04879166930913925, 0.06373079121112823, 0.05858548730611801, -0.03594615310430527, 0.07189230620861053, -0.018877940252423286, 0.06671151518821716, 0.04314957559108734, 0.02343774400651455, -0.015693174675107002, 0.04311409220099449, -0.009332515299320221, -0.0071014054119586945, -0.01873600110411644, 0.007478432264178991, 0.020474757999181747, -0.027820121496915817, -0.07799570262432098, 0.06628569960594177, 0.009305901825428009, 0.0345267578959465, -0.013005197048187256, -0.0033533181995153427, -0.04432057589292526, -0.02180543914437294, -0.058904848992824554, 0.016624651849269867, 0.023916788399219513, -0.03214927390217781, -0.005163045600056648, -0.03427836298942566, -0.02095380425453186, -0.03482837975025177, 0.033550925552845, 0.07962800562381744, -0.07600855082273483, 0.014655242674052715, -0.017121439799666405, -0.03051697090268135, -0.03028631955385208, -0.07976993918418884, 0.03140409290790558, 0.001215356052853167, 0.012854387052357197, -0.002517206594347954, 0.009651878848671913, 0.055214427411556244, 0.02899112179875374, -0.013537470251321793, -0.02382807619869709, -0.039778515696525574, -0.04393024370074272, 0.006946159526705742, -0.0214151069521904, 0.05053042620420456, 0.0020647747442126274, 0.05290791019797325, 0.002089170506224036, 0.015950439497828484, -0.0253894105553627, -0.03693972900509834, 0.042546335607767105, -0.010876106098294258, -0.0019572111777961254, -0.029647592455148697, 0.018824713304638863, -0.08913794159889221, 0.042120516300201416, 0.033479955047369, -0.04233342409133911, 0.007327621337026358, 0.006728814449161291, -0.025141015648841858, 0.06554051488637924, -0.049075547605752945, -0.03603486344218254, 0.025407152250409126, -0.021858667954802513, 0.03704618290066719, -0.03408319875597954, 0.06358885020017624, -0.05006912350654602, 0.02010216750204563, -0.06337594240903854, -0.06766960769891739, 0.03984948620200157, -0.003317833412438631, -0.016926273703575134, -0.03992045670747757, -0.012437439523637295, -0.04020433500409126, 0.0001779786980478093, -0.03992045670747757, -0.047904547303915024, 0.011434992775321007, -0.03120892494916916, -0.06018230319023132, -0.03564453125, 0.052730485796928406, -0.0027899963315576315, -0.04850779101252556, 0.0054557956755161285, 0.027891092002391815, 0.05145303159952164, -0.061282336711883545, 0.016589166596531868, -0.006555825937539339, 0.01799081824719906, 0.021450592204928398, -0.02934597060084343, 0.027199137955904007, 0.001420502900145948, -0.0325041227042675, -0.0035285246558487415, 0.06405015289783478, 0.02278127335011959, 0.02386356145143509, 0.0006536974688060582, -0.07093421369791031, -0.047833576798439026, 0.02196512185037136, -0.003324486780911684, 0.002118001924827695, -0.0937509760260582, -0.036833275109529495, 0.03825266659259796, 0.010051083751022816, -0.027891092002391815, -0.014362492598593235, 0.008401038125157356, 0.006276382599025965, 0.05663381889462471, 0.05138206109404564, 0.035271938890218735, 0.006626795511692762, 0.024963591247797012, -0.04762066900730133, -0.028086258098483086, 0.049465879797935486, 0.009084121324121952, -0.004408992361277342, -0.023615166544914246, 0.035467106848955154, -0.03782685101032257, 0.05205627530813217, 0.017352091148495674, -0.012499538250267506, 0.0367623046040535, -0.0004959562211297452, -0.012818901799619198, -0.05251757800579071, -0.008019575849175453, -0.024236151948571205, -0.0024750682059675455, -0.015462523326277733, -0.007247780449688435, 0.019569894298911095, -0.055995091795921326, 0.02288772724568844, -0.0009409029735252261, -0.0003226903500035405, 0.021894151344895363, 0.032326698303222656, 0.01743193157017231, 0.015072190202772617, 0.01449556089937687, 0.04361087828874588, 0.06302109360694885, 0.02203609235584736, -0.0050477199256420135, 0.10240927338600159, 0.03701069951057434, -0.03273477405309677, 0.02601039409637451, 0.04112694039940834, 0.03903333470225334, -0.002428494393825531, -0.060075849294662476, -0.036833275109529495, -0.009776076301932335, 0.021681243553757668, 0.05045945569872856, -0.039743032306432724, -0.08090545982122421, -0.03055245615541935, -0.010042211972177029, 0.04400121420621872, 0.09297030419111252, -0.03591066598892212, 0.024147439748048782, -0.0071324547752738, 0.018824713304638863, 0.028050772845745087, -0.02510553039610386, 0.0854475200176239, -0.003792443312704563, 0.08892503380775452, -0.03679778799414635, 0.009501068852841854, -0.05475312098860741, -0.0020847348496317863, 0.05461118370294571, -0.06234687939286232, 0.039743032306432724, 0.026489440351724625, 0.0367623046040535, -0.019694091752171516, -0.015693174675107002, 0.0045464965514838696, 0.013422144576907158, -0.011576931923627853, 0.017387576401233673, 0.02200060710310936, 0.001219791709445417, -0.02702171355485916, -0.017618227750062943, -0.04236891120672226, 0.029133060947060585, 0.007048178464174271, 0.03475740924477577, -0.010290605947375298, 0.07629242539405823, -0.003470861818641424, -0.016509326174855232, 0.054362788796424866, -0.08594430238008499, -0.03051697090268135, 0.04669806361198425, 0.05485957860946655, 0.03592840954661369, -0.006480420473963022, 0.014823796227574348, -0.016855303198099136, 0.00020805765234399587, -0.007070356048643589, -0.0032047254499047995, 0.09084121137857437, 0.005965890362858772, -0.028352394700050354, -0.003670464036986232, -0.01690853014588356, 0.04495930299162865, 0.02980727329850197, 0.024502288550138474, -0.024360349401831627, 0.020190879702568054, 0.0036771176382899284, -0.007624806836247444, -0.03335575759410858, 0.014433462172746658, 0.04162373021245003, 0.021432848647236824, 0.04900457710027695, -0.017325477674603462, 0.09176382422447205, -0.0032956553623080254, -0.016926273703575134, -0.008644996210932732, -0.1138353943824768, 0.016039151698350906, 0.010991431772708893, 0.031971849501132965, -0.031812168657779694, 0.003887808881700039, 0.03390577435493469, -0.023455485701560974, 0.011026917025446892, -0.050317518413066864, 0.051062699407339096, -0.06408564001321793, -0.029754046350717545, 0.020616697147488594, -0.02581522800028324, -0.027500757947564125, 0.015231871977448463, 0.02281675860285759, 0.043397970497608185, -0.026187818497419357, -0.05241112411022186, 0.045385122299194336, 0.051098182797431946, -0.02549586445093155, 0.043752819299697876, -0.02460874244570732, 0.04162373021245003, 0.037188123911619186, 0.039707545191049576, 0.032362181693315506, 0.0407366082072258, -0.007376413326710463, 0.07026000320911407, 0.005886049475520849, -0.001284108031541109, -0.015515750274062157, -0.03372834995388985, 0.0142649095505476, -0.021929636597633362, 0.035396136343479156, -0.02382807619869709, -0.03701069951057434, 0.062098488211631775, -0.08629915118217468, -0.016012538224458694, 0.03209604695439339, 0.03028631955385208, -0.009332515299320221, 0.008418780751526356, 0.07082775980234146, 0.03793330490589142, 0.012082591652870178, 0.00019918644102290273, -0.024502288550138474, 0.009483326226472855, 0.010219636373221874, -0.039743032306432724, 0.012605993077158928, 0.08083448559045792, -0.03828815370798111, 0.05507248640060425, -0.024147439748048782, 0.06426306068897247, -0.04229794070124626, -0.02787334844470024, 0.03599938005208969, -0.020847348496317863, -0.023810334503650665, -0.0014770568814128637, 0.00490578031167388, 0.02663137950003147, -0.04112694039940834, -0.02725236490368843, 0.014548787847161293, -0.009607522748410702, -0.014069742523133755, -0.022905470803380013, -0.025318440049886703, -0.04311409220099449, 0.010255121625959873, 0.10035115480422974, 0.030641168355941772, 0.03711715340614319, -0.08346036821603775, 0.03516548499464989, 0.008312325924634933, -0.04879166930913925, -0.04272376000881195, -0.037188123911619186, -0.05127560719847679, -0.0274830162525177, -0.04974975809454918, -0.011035787872970104, -0.04361087828874588, -0.007961913011968136, 0.023331288248300552, -0.01106240227818489, 0.01261486392468214, -0.023774849250912666, -0.02219577319920063, -0.016509326174855232, 0.04669806361198425, 0.021326394751667976, -0.0022998617496341467, 0.0570596382021904, 0.07387945801019669, 0.036478426307439804, 0.013501984998583794, 0.007318750023841858, 0.03747200220823288, 0.003080528462305665, -0.0385720320045948, -0.0036904243752360344, -0.02386356145143509, -0.015435909852385521, -0.00275007588788867, -0.013209234923124313, 0.022337712347507477, 0.02686203084886074, 0.03701069951057434, -0.02327806130051613, -0.04939490929245949, 0.06362433731555939, -0.0025770871434360743, -0.008352246135473251, 0.026028137654066086, -0.07551176100969315, 0.0569176971912384, -0.03626551479101181, 0.009243803098797798, 0.017822265625, 0.015427038073539734, 0.035591304302215576, 0.03454450145363808, -0.05212724581360817, 0.0894927904009819, -0.015231871977448463, -0.03511225804686546, -0.04123339429497719, 0.03090730309486389, -0.02200060710310936, -0.007540530525147915, -0.0001806123327696696, 0.05737899988889694, -0.014060871675610542, 0.018398893997073174, 0.06834381818771362, 0.0316702276468277, -0.007176810875535011, 0.03090730309486389, 0.05170142650604248, -0.04964330419898033, 0.00027972040697932243, -0.0530143640935421, 0.03449127450585365, 0.019818289205431938, 0.013590697199106216, -0.008055061101913452, -0.016633523628115654, -0.05553378909826279, -0.03408319875597954, -0.0015946003841236234, 0.016562553122639656, -0.009430098347365856, 0.01341327279806137, -0.02327806130051613, -0.005149738863110542, -0.040984999388456345, 0.07089872658252716, 0.0213441364467144, 0.013484242372214794, -0.019818289205431938, -0.012685833498835564, -0.033639635890722275, -0.036318741738796234, 0.019002137705683708, -0.013040682300925255, 0.0284588485956192, -0.07820861041545868, -0.014593143947422504, 0.029949212446808815, -0.03032180480659008, 0.030037924647331238, -0.02970081940293312, -0.008773628622293472, 0.004031965974718332, -0.04510124400258064, -0.0017587178153917193, 0.029825016856193542, -0.056846730411052704, -0.036052606999874115, -0.008906696923077106, 0.009101863950490952, 0.03367512300610542, 0.02262159064412117, 0.04978524520993233, 0.001470403396524489, 0.04758518189191818, 0.05131109058856964, -0.008214742876589298, -0.0029674204997718334, -0.052730485796928406, 0.03984948620200157, 0.003865630831569433, 0.03921075910329819, -0.02725236490368843, -0.03599938005208969, 0.05184336379170418, 0.00927041657269001, -0.03672681748867035, -0.018363408744335175, 0.02102477289736271, 0.0033466648310422897, 0.03796878829598427, 0.012889871373772621, -0.027962060645222664, 0.016394000500440598, 0.004781583324074745, -0.030055668205022812, -0.043788302689790726, -0.03999142721295357, -0.005650962237268686, 0.007673598825931549, -0.06813091039657593, -0.01834566704928875, -0.03610583394765854, 0.01294309925287962, -0.005176352337002754, -0.03921075910329819, -0.030233092606067657, 0.038146212697029114, -0.05954357609152794, 0.010432546027004719, -0.0012452964438125491, -0.02980727329850197, -0.004453348461538553, 0.013209234923124313, 0.0030162122566252947, 0.008170386776328087, 0.024768425151705742, 0.01486815232783556, -0.015072190202772617, 0.012313243001699448, 0.0031359735876321793, -0.03832363709807396, 0.0032668239437043667, 0.01654481142759323, -0.028281424194574356, 0.002136853290721774, 0.03268154710531235, 0.002173447050154209, 0.03945915400981903, -0.009527682326734066, -0.019144076853990555, -0.005535636562854052, 0.012818901799619198, 0.04393024370074272, -0.05471763759851456, -0.042546335607767105, -0.015693174675107002, -0.033550925552845, -0.03291219845414162, 0.004198301117867231, -0.006711072288453579, -0.002435147762298584, 0.029239516705274582, 0.008817984722554684, 0.024147439748048782, -0.002191189443692565, -0.03839460760354996, -0.03342672809958458, 0.039672061800956726, -0.034225136041641235, -0.11057078838348389, 0.042120516300201416, 0.05297888070344925, -0.046201273798942566, 0.03284122794866562, 0.050388485193252563, -0.03553807735443115, 0.005779594648629427, 0.05454021319746971, 0.03218475729227066, -0.001972735859453678, -0.03454450145363808, 0.011630159802734852, -0.019410213455557823, 0.026418469846248627, 0.0038634128868579865, -0.040559183806180954, -0.0067864772863686085, 0.08473782241344452, 0.0163585152477026, 0.004322498105466366, 0.010574485175311565, -0.02114897035062313, -0.026453955098986626, -0.01893116720020771, -0.04368184879422188, -0.022497395053505898, -0.019960228353738785, -0.029221773147583008, 0.04552706331014633, -0.007456254214048386, 0.02546037919819355, 0.016793204471468925, 0.04570448771119118, -0.02755398489534855, 0.032788001000881195, -0.0007573797483928502, -0.01366166677325964, 0.01713918149471283, 0.015781886875629425, 0.040452729910612106, 0.033639635890722275, -0.04084306210279465, 0.028476592153310776, 0.013058424927294254, -0.017085954546928406, 0.030694395303726196, -0.004963443148881197, 0.02735881879925728, -0.028245940804481506, -0.022178031504154205, -0.009501068852841854, 0.047798093408346176, -0.01755612902343273, 0.01896665245294571, -0.014548787847161293, 0.04801100119948387, 0.0016888570971786976, 0.044214121997356415, 0.06206300109624863, 0.045456092804670334, -0.07011806219816208, 0.015196386724710464, -0.022905470803380013, -0.03417190909385681, -0.07171487808227539, -0.05961454659700394, -0.026950743049383163, -0.0021335266064852476, -0.022674819454550743, 0.06358885020017624, -0.032592833042144775, 0.025407152250409126, 0.013067295774817467, 0.022763531655073166, -0.03587518259882927, 0.06451145559549332, -0.030641168355941772, 0.039743032306432724, -0.04974975809454918, 0.05535636469721794, 0.007163504138588905, -0.014211682602763176, 0.036833275109529495, 0.038891393691301346, -0.006320738699287176, -0.019463440403342247, 0.05773384869098663, 0.05542733520269394, -0.006440500263124704, -0.047869060188531876, 0.020687667652964592, 0.005872742738574743, 0.00928815919905901, -0.014566530473530293, -0.0011565843597054482, -0.10482224822044373, -0.06777606159448624, -0.0610339418053627, -0.060111336410045624, 0.048294879496097565, -0.07402139902114868, 0.020492499694228172, 0.065008245408535, 0.020865092054009438 ]
30,301
networkx.algorithms.planarity
is_directed
A valid PlanarEmbedding is undirected. All reverse edges are contained, i.e. for every existing half-edge (v, w) the half-edge in the opposite direction (w, v) is also contained.
def is_directed(self): """A valid PlanarEmbedding is undirected. All reverse edges are contained, i.e. for every existing half-edge (v, w) the half-edge in the opposite direction (w, v) is also contained. """ return False
(self)
[ 0.021605104207992554, 0.0193133894354105, 0.002908379305154085, 0.04733879491686821, -0.022322358563542366, -0.004635912831872702, -0.03558281809091568, -0.000967637519352138, 0.02204245515167713, 0.0398513600230217, -0.03936152532696724, -0.01230703666806221, 0.008458354510366917, 0.02436915785074234, 0.0014104546280577779, 0.01105621550232172, -0.03386840596795082, 0.03514546900987625, -0.009647947736084461, -0.0041701351292431355, -0.049193158745765686, -0.016776757314801216, 0.01875358074903488, 0.03224146366119385, -0.001382026937790215, 0.04723383113741875, -0.02419421821832657, -0.020572956651449203, -0.05549100413918495, 0.06472784280776978, -0.03887169435620308, -0.010925009846687317, 0.042440470308065414, 0.01987319625914097, 0.06462287902832031, 0.004167948383837938, 0.0004007222014479339, 0.010697588324546814, -0.10265485942363739, -0.015158561058342457, -0.038346871733665466, -0.004753997549414635, 0.040306203067302704, 0.0070763276889920235, 0.008060365915298462, -0.002274221507832408, 0.02589113637804985, -0.020433004945516586, -0.05475625768303871, -0.04513454809784889, 0.029197504743933678, -0.026835814118385315, 0.055036161094903946, 0.06955619156360626, -0.032066524028778076, 0.0066346037201583385, -0.02491147257387638, 0.0756441056728363, 0.007421834394335747, -0.007085074670612812, -0.035250432789325714, -0.022952143102884293, 0.004710262641310692, -0.016496852040290833, 0.009149367921054363, 0.029949747025966644, -0.04719884321093559, 0.01564839296042919, 0.015114826150238514, 0.04142582044005394, -0.037612125277519226, 0.009971586987376213, -0.022829685360193253, 0.036282580345869064, 0.0071375565603375435, -0.04618418961763382, 0.04457474127411842, 0.03806696832180023, -0.00642904918640852, -0.0423005186021328, -0.0154122244566679, -0.029232492670416832, 0.03789202868938446, 0.005926096346229315, 0.0022632877808064222, -0.014756198972463608, 0.014712464064359665, 0.026538414880633354, 0.009866622276604176, -0.06637228280305862, 0.0014924578135833144, -0.02363440953195095, 0.0051213717088103294, 0.004178882110863924, -0.03477809578180313, 0.048948243260383606, 0.009254331700503826, -0.09292818605899811, 0.011266143061220646, -0.06297843903303146, -0.011651012115180492, 0.01479993388056755, -0.006280350033193827, 0.0351104810833931, -0.018141290172934532, -0.014415065757930279, -0.051992204040288925, -0.060284364968538284, -0.044924620538949966, -0.011283637024462223, -0.021062789484858513, 0.022987131029367447, 0.008628921583294868, 0.07844314724206924, -0.021780043840408325, -0.042615413665771484, 0.0016619310481473804, -0.021342694759368896, -0.049613017588853836, 0.024526603519916534, 0.043525099754333496, 0.029582373797893524, -0.03297621011734009, -0.06374818086624146, 0.06955619156360626, -0.02071291022002697, 0.03659747168421745, -0.0028646443970501423, -0.047968581318855286, -0.023739373311400414, 0.03220647573471069, 0.037192270159721375, -0.05489620938897133, 0.06294345110654831, -0.028602708131074905, 0.0007424021023325622, 0.05314680561423302, -0.01870109885931015, 0.009831634350121021, 0.032801270484924316, -0.013619087636470795, 0.01306802686303854, 0.06630230695009232, 0.020992813631892204, -0.054126471281051636, 0.03775207698345184, -0.06514769792556763, -0.04660404846072197, 0.006726447492837906, -0.022147418931126595, 0.07036091387271881, -0.06693208962678909, -0.00316860293969512, -0.022077443078160286, -0.023127082735300064, -0.020310547202825546, 0.0031664161942899227, -0.020975319668650627, 0.0211502593010664, 0.030474567785859108, -0.032556354999542236, -0.05020781233906746, -0.02564622089266777, 0.039816372096538544, -0.03726224601268768, -0.031104352325201035, 0.0978265106678009, -0.03726224601268768, -0.015700874850153923, 0.060774195939302444, 0.0025388184003531933, -0.0012059934670105577, -0.08159206807613373, 0.024928966537117958, 0.00455281650647521, 0.015254777856171131, 0.01833372376859188, 0.03684238716959953, 0.01796635054051876, -0.00322983181104064, 0.010531394742429256, -0.022812191396951675, -0.012499471195042133, -0.028585214167833328, 0.06357324123382568, 0.023599421605467796, -0.018736086785793304, 0.003979887813329697, 0.04013126343488693, -0.0009725576965138316, -0.00443254504352808, -0.01968076266348362, 0.0025082039646804333, 0.007312496658414602, -0.013234219513833523, -0.06948621571063995, 0.006280350033193827, -0.006844532210379839, -0.031594183295965195, 0.008930692449212074, 0.0295998677611351, -0.05398651957511902, 0.01767769828438759, 0.0029149397742003202, 0.0010961091611534357, 0.058220069855451584, -0.037192270159721375, -0.012945568189024925, 0.03474310785531998, 0.013566605746746063, 0.01852615736424923, -0.05430141091346741, 0.05755529925227165, -0.00686639966443181, 0.015438465401530266, -0.028305310755968094, -0.09789648652076721, 0.04128586873412132, -0.05027778819203377, 0.027762996032834053, 0.017808903008699417, 0.010680094361305237, 0.008838849142193794, -0.01919092983007431, -0.00455281650647521, -0.026276005432009697, 0.027815477922558784, 0.022077443078160286, -0.045974262058734894, -0.03532040864229202, 0.01011153869330883, -0.014939885586500168, -0.034025851637125015, 0.03070199117064476, 0.032556354999542236, 0.017520252615213394, -0.023127082735300064, 0.018473675474524498, 0.04411989822983742, 0.006910134572535753, 0.01179096382111311, -0.038346871733665466, -0.041705723851919174, -0.020817873999476433, -0.006136024370789528, 0.036212604492902756, 0.01730157807469368, 0.02004813775420189, 0.006560254376381636, -0.043839991092681885, -0.07739350944757462, -0.06997604668140411, -0.03442821651697159, -0.0027443731669336557, 0.049857933074235916, -0.0773235335946083, -0.02991475909948349, -0.04086600989103317, 0.06098412349820137, -0.010426430962979794, -0.033466044813394547, 0.013829016126692295, 0.010601370595395565, 0.10223500430583954, 0.042195554822683334, 0.01044392492622137, -0.019383365288376808, 0.027570562437176704, 0.02632848732173443, -0.06073920801281929, 0.07347484678030014, -0.0035622180439531803, -0.035495348274707794, 0.01230703666806221, 0.03008970059454441, 0.02522636391222477, 0.010671347379684448, 0.04209059104323387, -0.0207653921097517, 0.03484807163476944, -0.014336342923343182, -0.019908186048269272, -0.02522636391222477, -0.005366288125514984, -0.029092540964484215, -0.0023463843390345573, -0.011537300422787666, -0.06612736731767654, 0.0295998677611351, -0.028497744351625443, 0.03635255619883537, 0.029022565111517906, 0.05989949405193329, 0.011371107771992683, 0.008838849142193794, 0.007146303541958332, 0.04289531707763672, -0.047793637961149216, 0.037367209792137146, 0.007260014768689871, 0.015578417107462883, -0.024684051051735878, 0.08040247857570648, 0.003820254700258374, -0.019295895472168922, 0.01038269605487585, -0.01501860935240984, 0.037122294306755066, 0.03234642744064331, -0.03491804748773575, -0.05265697464346886, 0.014756198972463608, -0.050347764045000076, 0.03680739924311638, 0.022759709507226944, 0.03441072255373001, -0.0030811328906565905, -0.025506269186735153, -0.012158337980508804, 0.08788991719484329, -0.009884116239845753, 0.053636640310287476, -0.046883951872587204, -0.008274667896330357, -0.03386840596795082, -0.06035434082150459, 0.08781994134187698, -0.051082514226436615, 0.07466444373130798, 0.011152432300150394, 0.047548722475767136, -0.025943618267774582, 0.0028012285474687815, 0.01425761915743351, -0.08103226125240326, -0.017389047890901566, 0.00965669471770525, 0.014694970101118088, 0.043839991092681885, -0.016059502959251404, 0.037927016615867615, 0.025681208819150925, -0.006389687769114971, 0.006227868143469095, 0.046219177544116974, 0.03393838182091713, -0.04611421376466751, -0.03094690665602684, 0.02741311676800251, 0.03827689588069916, -0.03507549315690994, 0.0571354404091835, -0.016094490885734558, 0.03967641666531563, -0.01755524054169655, 0.03498802334070206, 0.0020052511245012283, 0.025926124304533005, -0.038766730576753616, 0.061683885753154755, 0.039571452885866165, -0.01857864111661911, -0.031944066286087036, 0.019348377361893654, -0.0032210848294198513, 0.007636135909706354, 0.03418329730629921, -0.015604658052325249, 0.036282580345869064, -0.011554794386029243, -0.044679705053567886, -0.05933968722820282, -0.01480868086218834, -0.00422043027356267, -0.009158114902675152, 0.011423589661717415, 0.00376995955593884, 0.05293687805533409, 0.04265040159225464, 0.03474310785531998, -0.004388810135424137, 0.06318836659193039, 0.030422085896134377, 0.011038721539080143, 0.03320363536477089, -0.006153518334031105, 0.01645311713218689, 0.04698891565203667, -0.03806696832180023, 0.005926096346229315, -0.0349530354142189, -0.01791386865079403, 0.023179564625024796, -0.04838843643665314, -0.03077196702361107, -0.006551507394760847, -0.028847625479102135, 0.03145423159003258, -0.019383365288376808, -0.0010326933115720749, 0.032381415367126465, -0.0012147404486313462, -0.04618418961763382, 0.045904286205768585, -0.017625216394662857, 0.0320490300655365, 0.03252136707305908, 0.05531606450676918, 0.01749401167035103, -0.010102791711688042, 0.05213215574622154, 0.01163351722061634, -0.03663245961070061, -0.028042901307344437, -0.022882167249917984, -0.03129678592085838, 0.05405649542808533, 0.009053151123225689, 0.029214998707175255, 0.022094937041401863, 0.059864506125450134, 0.028375286608934402, 0.0608091838657856, 0.0006401714636012912, 0.01700417883694172, -0.03362349048256874, -0.016409382224082947, 0.01803632639348507, 0.009175608865916729, 0.017047913745045662, -0.042615413665771484, -0.05433639883995056, 0.0773235335946083, -0.05192222446203232, 0.007553039584308863, 0.019348377361893654, 0.004670901224017143, -0.006643350701779127, -0.0076011479832232, 0.02797292359173298, 0.019225919619202614, -0.04653406888246536, -0.07991264760494232, -0.025296341627836227, -0.013811522163450718, -0.038241907954216, -0.0180888082832098, -0.0024272941518574953, 0.04527450352907181, 0.020275559276342392, -0.0025541256181895733, 0.01668928749859333, -0.004224803764373064, -0.031891584396362305, -0.07123561203479767, 0.02491147257387638, 0.05062767118215561, -0.020992813631892204, -0.0439799465239048, -0.0024491616059094667, 0.017878880724310875, -0.004375689662992954, -0.09649696946144104, 0.025191375985741615, 0.03960644081234932, 0.02655590884387493, -0.03075447306036949, 0.010636359453201294, -0.03379843011498451, -0.009053151123225689, 0.05318179354071617, -0.026276005432009697, 0.04289531707763672, -0.026783332228660583, 0.06651223450899124, 0.009927851147949696, -0.03295871615409851, 0.0265034269541502, -0.032188981771469116, -0.012114603072404861, -0.07361479848623276, -0.031436737626791, -0.033483538776636124, -0.008795114234089851, 0.025628726929426193, -0.038766730576753616, -0.07424458861351013, 0.020677922293543816, 0.02284717932343483, 0.0027181319892406464, 0.011283637024462223, -0.018543651327490807, 0.030929412692785263, -0.007080701179802418, 0.05531606450676918, 0.029075047001242638, -0.03733222186565399, 0.011169926263391972, 0.013435401022434235, 0.016461864113807678, 0.027273163199424744, -0.019348377361893654, -0.041705723851919174, -0.05391654372215271, 0.03887169435620308, 0.006708953529596329, 0.009910357184708118, -0.010697588324546814, -0.0046752747148275375, 0.06259357184171677, 0.020677922293543816, -0.009971586987376213, 0.07837317138910294, 0.010557635687291622, 0.07823321968317032, 0.08320152014493942, -0.031226810067892075, 0.01033021416515112, 0.03407833352684975, 0.01105621550232172, 0.031891584396362305, -0.0010879088658839464, 0.002549752127379179, -0.014222631230950356, -0.04891325533390045, 0.03416580334305763, -0.05608580261468887, -0.04702390357851982, 0.011703494004905224, -0.012473230250179768, 0.03161167725920677, 0.006560254376381636, -0.0065121459774672985, 0.04709387943148613, 0.002068666974082589, 0.09719672799110413, -0.030719485133886337, 0.040061287581920624, -0.00008275487198261544, 0.00776734109967947, -0.012140844017267227, -0.039326537400484085, -0.05136241763830185, -0.017135383561253548, 0.016409382224082947, 0.024281688034534454, 0.02088784985244274, -0.022637251764535904, 0.01535099558532238, 0.009070645086467266, -0.05020781233906746, 0.050347764045000076, 0.014222631230950356, -0.0074786897748708725, 0.09236837923526764, 0.01747651770710945, 0.005545601714402437, 0.031821608543395996, 0.0246665570884943, 0.057485323399305344, -0.03138425573706627, -0.04817850887775421, 0.004627165850251913, -0.019330883398652077, -0.0105751296505332, 0.008777620270848274, 0.018736086785793304, -0.038346871733665466, 0.011187420226633549, 0.041460808366537094, -0.02291715517640114, -0.0415307842195034, 0.009945345111191273, -0.02832280471920967, -0.0008643135079182684, 0.0010512807639315724, -0.028865119442343712, -0.01845618151128292, -0.013033038936555386, -0.06955619156360626, -0.03381592407822609, -0.007058833725750446, 0.030264640226960182, 0.014485041610896587, 0.008366511203348637, -0.004073917865753174, 0.035180456936359406, 0.020013149827718735, 0.0009293693583458662, -0.01882355660200119, -0.03553033620119095, -0.041460808366537094, 0.029214998707175255, -0.020992813631892204, 0.011843445710837841, -0.013995208777487278, 0.03782205283641815, 0.00417450862005353, 0.05944465100765228, -0.009516742080450058, -0.005567469168454409, 0.013085520826280117, -0.0027443731669336557, -0.011616023257374763, -0.015674633905291557, -0.003218898084014654, -0.00009375697118230164, -0.028217840939760208, -0.026293499395251274, -0.05286690220236778, -0.0070763276889920235, 0.03351852670311928, -0.013933979906141758, -0.11804959177970886, 0.035180456936359406, -0.03558281809091568, -0.06465786695480347, 0.054791245609521866, 0.013138002716004848, 0.02844526246190071, 0.041880663484334946, -0.020118113607168198, 0.004697142168879509, -0.020572956651449203, -0.057485323399305344, 0.020083125680685043, 0.040796034038066864, -0.005025154910981655, 0.004373502917587757, -0.008628921583294868, 0.0335010327398777, -0.0464291051030159, -0.024264194071292877, -0.02088784985244274, -0.016418129205703735, -0.06063424423336983, -0.007929161190986633, -0.0075661600567400455, 0.02876015566289425, 0.08166204392910004, -0.077253557741642, 0.0012475417461246252, -0.009665441699326038, -0.0002711571869440377, -0.002071947092190385, 0.04495960846543312, 0.022392334416508675, -0.06875146180391312, -0.02004813775420189, -0.007968522608280182, -0.02205994911491871, 0.07592400908470154, 0.03747217357158661, -0.04989292100071907, 0.03185659646987915, 0.030806954950094223, 0.00414389418438077, 0.024351663887500763, 0.025191375985741615, -0.055840883404016495, 0.04370003938674927, -0.011554794386029243, -0.0017537747044116259, -0.03754214942455292, 0.04422486200928688, 0.08418118208646774, 0.020433004945516586, 0.00633720587939024, -0.015744609758257866, -0.045064572244882584, -0.060459304600954056, 0.024351663887500763, 0.03162917122244835, -0.01936587132513523, 0.008117221295833588, 0.007907292805612087, -0.03796200454235077, -0.06199877709150314, 0.003089879872277379, -0.048283472657203674, -0.04429483786225319, -0.005265697371214628, -0.02807788923382759, -0.025873642414808273, -0.006407181732356548, 0.005991699174046516, -0.0335010327398777, -0.0018456182442605495, 0.0054318904876708984, -0.0678417757153511, -0.03369346633553505, -0.027220681309700012, 0.043770015239715576, -0.015945792198181152, 0.06427299976348877, 0.0004444572259671986, -0.009525489062070847, 0.0374021977186203, 0.01467747613787651, 0.0020588263869285583, 0.02230486460030079, 0.004095785319805145, -0.019470835104584694, 0.011379854753613472, 0.007128809578716755, -0.006385314278304577, -0.010522647760808468, 0.026695862412452698, 0.002501643728464842, -0.002562872599810362, -0.01877107471227646, 0.019383365288376808, -0.0002398593060206622, -0.09019912034273148, -0.0029368072282522917, -0.04457474127411842, -0.02436915785074234, 0.019453341141343117, 0.019103460013866425, -0.027273163199424744, -0.0146862231194973, -0.012989304028451443, -0.04432982578873634, 0.001910127350129187, -0.037612125277519226, -0.022374840453267097, -0.07277508825063705, -0.021640092134475708, -0.0061447713524103165, -0.035250432789325714, -0.0476536862552166, 0.06721199303865433, 0.0030155302956700325, 0.1109820082783699, -0.0821518748998642, 0.05374160408973694, -0.008178450167179108, 0.033221129328012466, -0.013662823475897312, 0.01312925573438406, 0.05661062151193619, 0.010216502472758293, 0.030614519491791725, -0.032381415367126465, 0.03430575504899025, 0.028550226241350174, -0.02510390616953373, 0.05870990455150604, -0.02316207066178322, -0.048773303627967834, 0.06717700511217117, 0.02924998663365841, -0.0025759933050721884, -0.03698233887553215, -0.010741323232650757, 0.0046184188686311245, 0.04947306588292122, -0.020800380036234856, -0.020065631717443466, -0.1068534255027771, -0.10265485942363739, -0.057345371693372726, 0.003883670549839735, 0.04160076007246971, -0.0620337650179863, 0.05052270367741585, 0.015753356739878654, 0.06598740816116333 ]
30,305
networkx.algorithms.planarity
neighbors_cw_order
Generator for the neighbors of v in clockwise order. Parameters ---------- v : node Yields ------ node
def neighbors_cw_order(self, v): """Generator for the neighbors of v in clockwise order. Parameters ---------- v : node Yields ------ node """ succs = self._succ[v] if not succs: # v has no neighbors return start_node = next(reversed(succs)) yield start_node current_node = succs[start_node]["cw"] while start_node != current_node: yield current_node current_node = succs[current_node]["cw"]
(self, v)
[ -0.030816100537776947, -0.026033414527773857, -0.05403417721390724, -0.007046829909086227, -0.020758891478180885, -0.013847741298377514, -0.0010075228055939078, 0.0586811825633049, 0.01933426223695278, 0.021403368562459946, -0.07421643286943436, 0.0038456525653600693, 0.03427591547369957, 0.0014225099002942443, -0.00953145232051611, 0.054441213607788086, 0.0449097603559494, -0.024540945887565613, -0.013915580697357655, -0.031172258779406548, 0.014738135039806366, -0.020334895700216293, 0.006020757369697094, 0.028662195429205894, -0.03320744261145592, -0.0037990128621459007, -0.03320744261145592, 0.023150235414505005, -0.07001037895679474, -0.05695127323269844, -0.03269864618778229, -0.010430325753986835, -0.0006805151351727545, -0.03744741529226303, 0.05030300095677376, 0.010489685460925102, 0.019028984010219574, 0.026491330936551094, -0.06848399341106415, 0.023506393656134605, 0.022794077172875404, -0.009285533800721169, -0.05091355741024017, -0.01970737986266613, 0.021471207961440086, 0.04178914427757263, 0.02238704077899456, 0.02167472615838051, 0.02130160853266716, -0.028814835473895073, 0.0231841541826725, -0.026355652138590813, 0.017875712364912033, -0.026355652138590813, 0.020250095054507256, -0.050099484622478485, 0.0077591449953615665, -0.012779269367456436, 0.046775348484516144, 0.04440096393227577, -0.03368232026696205, -0.024507025256752968, 0.03312264382839203, 0.05684951692819595, 0.015094292350113392, 0.012363752350211143, -0.02455790527164936, -0.03500518947839737, -0.021980004385113716, -0.010811923071742058, 0.024473106488585472, -0.010430325753986835, 0.020996330305933952, -0.0059020379558205605, -0.04470624029636383, 0.010761043056845665, 0.0019715859089046717, 0.03578534722328186, 0.059291739016771317, -0.04796253889799118, -0.020317936316132545, -0.023014556616544724, -0.013389824889600277, -0.07523402571678162, -0.012304392643272877, 0.04172130301594734, 0.02013137750327587, -0.02043665386736393, -0.026796609163284302, 0.04504543915390968, -0.049963805824518204, -0.006495633628219366, -0.021284649148583412, 0.0022090242709964514, 0.013279585167765617, 0.07136717438697815, 0.01564548909664154, -0.04765726253390312, -0.03157929703593254, 0.008043223060667515, 0.017723074182868004, 0.07001037895679474, -0.07482698559761047, -0.011821036227047443, -0.01271990966051817, -0.06583825498819351, -0.06929806619882584, -0.005677319597452879, -0.030256424099206924, -0.009395773522555828, -0.06770383566617966, 0.01616276428103447, 0.011447918601334095, -0.02486318349838257, 0.052066829055547714, -0.0061776358634233475, 0.038227569311857224, 0.012007595039904118, -0.000596245750784874, 0.02542285993695259, 0.04572383314371109, -0.04826781526207924, 0.010065688751637936, -0.0003694073820952326, -0.049455009400844574, -0.019147703424096107, 0.030307304114103317, 0.022946717217564583, -0.01840146817266941, 0.03673509880900383, 0.03941475972533226, -0.02703404799103737, 0.002071225317195058, 0.009039615280926228, 0.0016599481459707022, -0.0005564960301853716, -0.007988102734088898, -0.04694494605064392, -0.0016334484098479152, 0.0036781737580895424, -0.012974307872354984, -0.04226401820778847, 0.019249463453888893, 0.011439438909292221, 0.03139273822307587, 0.001350430422462523, -0.031409695744514465, 0.05400025472044945, 0.017638275399804115, 0.008734337985515594, 0.013779901899397373, 0.05081179738044739, 0.0812039002776146, 0.02289583720266819, -0.04022883251309395, -0.02825515903532505, -0.00844602007418871, -0.028713075444102287, -0.013567903079092503, 0.022115683183073997, 0.04077155143022537, 0.014492216520011425, 0.017137957736849785, 0.02927275188267231, -0.02710188739001751, 0.055899761617183685, 0.007436906918883324, -0.04385824874043465, -0.014466777443885803, -0.012804709374904633, -0.02043665386736393, -0.036192383617162704, -0.03972003608942032, -0.00384989264421165, -0.040975067764520645, -0.003693013684824109, -0.025236301124095917, 0.02978154830634594, 0.03653157874941826, -0.04226401820778847, -0.012669029645621777, 0.03456423431634903, 0.013644223101437092, -0.06356562674045563, -0.014772054739296436, 0.038397166877985, 0.061835721135139465, -0.0063514746725559235, 0.06892494857311249, 0.0013059107586741447, -0.04955676570534706, -0.02087761089205742, 0.041687384247779846, 0.02420174703001976, 0.04334945231676102, 0.024608785286545753, -0.007776104845106602, 0.058443743735551834, -0.05376281589269638, 0.002533382037654519, 0.0021878243423998356, -0.023387674242258072, 0.0035340148024260998, -0.008636818267405033, 0.03222377225756645, 0.03368232026696205, -0.004447728395462036, -0.005694279447197914, 0.05667991563677788, 0.018655866384506226, 0.04647006839513779, -0.004668206907808781, 0.015755727887153625, -0.012982787564396858, -0.04005923494696617, -0.016188204288482666, -0.05956309661269188, 0.04253537580370903, 0.002032005460932851, -0.02325199544429779, -0.05033692345023155, 0.05128667503595352, -0.012058474123477936, -0.03071434237062931, 0.04239969700574875, -0.026067335158586502, -0.03598886355757713, -0.0760480985045433, -0.03972003608942032, -0.04226401820778847, 0.004409568849951029, -0.028780914843082428, -0.013440703973174095, -0.021199848502874374, 0.0354800671339035, -0.0066906725987792015, -0.07998278737068176, 0.013059106655418873, -0.0004088920832145959, 0.026101253926753998, 0.006406594533473253, -0.00007247698522405699, 0.02535502053797245, 0.01984305866062641, 0.010498165152966976, -0.011863435618579388, 0.012016074731945992, -0.015899887308478355, 0.042501457035541534, 0.08642754703760147, -0.05566232278943062, -0.09355069696903229, -0.03642982244491577, -0.052134670317173004, 0.003411055775359273, -0.09219390153884888, -0.026287812739610672, 0.004011011682450771, 0.019893938675522804, -0.022081762552261353, -0.014670295640826225, 0.04284065589308739, -0.005355081986635923, 0.030256424099206924, -0.011074800975620747, 0.0055458806455135345, 0.0325799286365509, 0.0030485382303595543, 0.014661815948784351, -0.011244400404393673, 0.019385142251849174, -0.00027294806204736233, -0.04172130301594734, 0.00869193859398365, -0.007377547677606344, 0.002262023976072669, -0.005812998861074448, 0.028085559606552124, -0.053355779498815536, -0.01616276428103447, -0.006220035720616579, 0.01796051301062107, -0.04891229048371315, 0.013143906369805336, -0.027152767404913902, 0.00137693015858531, 0.004642766900360584, -0.07631945610046387, 0.021776484325528145, -0.04731806367635727, 0.05891862139105797, -0.012626630254089832, 0.02803468145430088, -0.0015041292645037174, 0.08079686760902405, 0.00041286705527454615, -0.0021772244945168495, -0.009166814386844635, -0.04979420453310013, 0.015670929104089737, 0.05305050313472748, -0.05159195140004158, 0.0004886565147899091, -0.0036251742858439684, 0.03064650110900402, 0.05983445420861244, 0.029544109478592873, -0.0008824437391012907, 0.002070165239274502, -0.02991722710430622, -0.030239464715123177, -0.044672321528196335, 0.005346601828932762, -0.037345655262470245, 0.013584863394498825, -0.0855456292629242, -0.02564333751797676, -0.009243134409189224, 0.03578534722328186, 0.03826148808002472, -0.02138640731573105, 0.07665865123271942, -0.05559448525309563, 0.008751297369599342, -0.05186331272125244, 0.04124642536044121, 0.022132642567157745, 0.0041148909367620945, -0.011999114416539669, 0.00341529562138021, -0.008212821558117867, -0.006813631393015385, -0.03361448273062706, 0.08595266938209534, -0.029035313054919243, 0.0035382548812776804, 0.06570257246494293, 0.05091355741024017, 0.011083281598985195, -0.015077332966029644, 0.08968384563922882, 0.012745349667966366, -0.02355727180838585, -0.02325199544429779, 0.02165776677429676, 0.022115683183073997, -0.010404885746538639, -0.011413998901844025, -0.03273256868124008, 0.04124642536044121, 0.046775348484516144, 0.046402230858802795, -0.014568536542356014, -0.014432857744395733, 0.007012910209596157, 0.06733071804046631, 0.0333261638879776, -0.09219390153884888, 0.014517656527459621, 0.017723074182868004, 0.03164713457226753, 0.059529177844524384, 0.002450702479109168, 0.04826781526207924, -0.04931933060288429, 0.002694500843062997, -0.021250728517770767, -0.030985699966549873, -0.0077633848413825035, 0.00218146457336843, -0.06648273020982742, 0.005592520348727703, 0.05885078012943268, 0.022777117788791656, 0.02043665386736393, 0.008509619161486626, -0.025541577488183975, 0.002404063008725643, 0.015484370291233063, 0.026321733370423317, 0.019436022266745567, 0.011346159502863884, 0.06078420579433441, 0.021047210320830345, -0.03955043852329254, -0.03305480629205704, 0.07190988957881927, 0.0228110384196043, -0.011151120997965336, 0.0021104449406266212, -0.07950791716575623, -0.005838438402861357, 0.007521706633269787, 0.0485391728579998, -0.006707632448524237, 0.014721175655722618, 0.034241996705532074, 0.025982534512877464, 0.006669472437351942, -0.06919630616903305, 0.07842247933149338, 0.0011076921364292502, -0.04558815434575081, 0.00040014716796576977, -0.031257059425115585, -0.03541222959756851, -0.012584230862557888, 0.024286547675728798, 0.05440729111433029, -0.05193115025758743, -0.08140742033720016, 0.010633843950927258, 0.0529148243367672, -0.02491406351327896, -0.0019154063193127513, -0.07944007217884064, 0.003606094280257821, 0.06342995166778564, 0.008013542741537094, 0.023455513641238213, 0.06271763145923615, -0.050540439784526825, 0.07665865123271942, 0.002539742039516568, 0.030341224744915962, -0.04470624029636383, 0.05450905114412308, -0.045689914375543594, -0.0069662705063819885, 0.00514308363199234, -0.019436022266745567, -0.011040881276130676, 0.062480196356773376, -0.019537780433893204, -0.0030167384538799524, 0.025677258148789406, 0.016196684911847115, 0.010370966047048569, 0.03927908092737198, 0.05128667503595352, -0.01372902188450098, 0.03146057575941086, -0.04718238487839699, -0.015416529960930347, 0.03571750596165657, 0.04687710478901863, -0.013957981020212173, -0.0307991411536932, 0.03268168866634369, -0.01528933085501194, -0.010116567835211754, -0.016722440719604492, -0.016976838931441307, -0.021929124370217323, -0.024235667660832405, 0.03917732089757919, -0.09009087830781937, -0.010990002192556858, -0.02515150047838688, -0.005974117666482925, 0.10454069823026657, -0.0297137089073658, 0.009082015603780746, -0.035174790769815445, -0.05057435855269432, 0.018876345828175545, 0.02761068381369114, -0.018282750621438026, -0.014466777443885803, -0.040025316178798676, 0.06923022866249084, -0.009463612921535969, -0.02070801332592964, -0.05210074782371521, 0.024083029478788376, -0.00330717652104795, -0.049081891775131226, -0.03853284567594528, 0.06254803389310837, -0.053220100700855255, -0.06841615587472916, 0.021064169704914093, 0.010031769052147865, -0.0391434021294117, 0.0013546703848987818, -0.015628529712557793, -0.03883812204003334, -0.03303784504532814, 0.006758511997759342, -0.0681108757853508, 0.0651937797665596, 0.013890141621232033, -0.025185421109199524, -0.0022365842014551163, 0.050099484622478485, 0.028441717848181725, 0.03006986528635025, -0.002342583378776908, 0.11498798429965973, 0.014068219810724258, -0.0007997642969712615, 0.03534438833594322, -0.00036092742811888456, -0.034665994346141815, -0.022777117788791656, 0.04833565652370453, 0.028933554887771606, -0.01191431563347578, -0.00858169887214899, 0.0398557148873806, 0.055831924080848694, 0.017265157774090767, 0.017502594739198685, 0.04769118130207062, -0.007678585592657328, -0.035615745931863785, -0.08174661546945572, -0.004608847200870514, 0.014568536542356014, -0.008590178564190865, 0.003553094808012247, -0.05718871206045151, 0.06756816059350967, 0.06390482187271118, -0.03493735194206238, 0.06746640056371689, -0.021861284971237183, -0.04070371016860008, -0.01254183053970337, -0.002192064421251416, -0.013966460712254047, -0.018079230561852455, 0.012533350847661495, 0.035683587193489075, -0.0369386188685894, -0.0012168713146820664, 0.032122012227773666, 0.06146260350942612, -0.027508923783898354, 0.047284144908189774, 0.03108745813369751, -0.07638729363679886, -0.01622212491929531, -0.0033389762975275517, -0.006889950949698687, 0.04073762893676758, 0.022844957187771797, -0.05447513237595558, -0.06553297489881516, -0.02920491248369217, -0.023709911853075027, 0.013991900719702244, 0.00011216045095352456, 0.000602075713686645, 0.019690420478582382, -0.005812998861074448, -0.0061733960174024105, -0.023726871237158775, 0.04050019010901451, 0.03832932561635971, 0.010158968158066273, -0.007966903038322926, -0.005478041246533394, -0.07143501192331314, -0.03410631790757179, 0.03086698055267334, 0.013703582808375359, -0.028221238404512405, 0.03361448273062706, 0.06912846863269806, 0.0354800671339035, -0.027932921424508095, 0.0029976586811244488, -0.022726237773895264, -0.04446880519390106, 0.047487661242485046, 0.007704025134444237, 0.010413366369903088, 0.013559423387050629, -0.10080952197313309, -0.06037716940045357, -0.032122012227773666, 0.07957575470209122, -0.007402987219393253, -0.004981964360922575, -0.01999569684267044, -0.029645869508385658, 0.06105556711554527, 0.03514086827635765, 0.046402230858802795, 0.011922795325517654, -0.02825515903532505, -0.0033813759218901396, -0.01760435476899147, -0.011278320103883743, -0.035174790769815445, -0.042128339409828186, -0.000006032847522874363, 0.02608429454267025, 0.009828249923884869, -0.004117010626941919, 0.03095177933573723, 0.02506670169532299, 0.031850654631853104, -0.030035946518182755, 0.005812998861074448, -0.014475257135927677, -0.029594989493489265, -0.011100240983068943, -0.02398126944899559, 0.04080547019839287, 0.017485635355114937, 0.03464903309941292, 0.0012666910188272595, -0.04769118130207062, 0.014000380411744118, -0.030341224744915962, 0.012126313522458076, -0.04070371016860008, 0.00010513800225453451, 0.025829896330833435, -0.04758942127227783, 0.04175522178411484, -0.028950514271855354, -0.048946212977170944, 0.00082414411008358, 0.04463840276002884, 0.005435641389340162, 0.005304202437400818, 0.07353803515434265, -0.016323883086442947, -0.011888875626027584, 0.004345969296991825, 0.02303151600062847, -0.07672649621963501, 0.005910518113523722, 0.01170231681317091, -0.03972003608942032, -0.01979217864573002, -0.016273004934191704, -0.04826781526207924, 0.05878294259309769, 0.04392608627676964, -0.0021157448645681143, -0.047487661242485046, 0.01380534190684557, 0.016764840111136436, 0.025592457503080368, -0.05681559443473816, 0.005698519293218851, 0.012389191426336765, 0.022726237773895264, -0.015119732357561588, -0.030748261138796806, -0.00122641131747514, 0.03208809345960617, 0.015747247263789177, 0.03873636573553085, 0.026643970981240273, -0.022556640207767487, 0.020182255655527115, 0.03166409581899643, 0.004324769135564566, -0.07252044230699539, -0.022081762552261353, 0.05552664399147034, 0.031189218163490295, 0.0020627453923225403, -0.05182939022779465, -0.04341728985309601, 0.03346184268593788, 0.0217256061732769, -0.0055501204915344715, 0.010964562185108662, -0.032783444970846176, -0.04697886481881142, -0.030748261138796806, 0.009972409345209599, -0.020385775715112686, -0.055899761617183685, 0.017417795956134796, 0.035242628306150436, 0.031782813370227814, -0.007305467966943979, -0.029221871867775917, -0.0191985834389925, -0.004943804815411568, -0.018096191808581352, 0.014517656527459621, -0.01948690228164196, -0.07285964488983154, 0.008191621862351894, 0.03724389523267746, 0.03629414364695549, 0.002652101218700409, -0.0045791673474013805, 0.010243766941130161, -0.06288722902536392, 0.05345753952860832, 0.029679788276553154, 0.024591825902462006, -0.02535502053797245, 0.009260093793272972, 0.02457486465573311, -0.01862194761633873, -0.0427728146314621, 0.0812039002776146, -0.03758309409022331, 0.04239969700574875, 0.08086470514535904, 0.007504746783524752, 0.012669029645621777, -0.08568131178617477, -0.048064298927783966, -0.038939882069826126, 0.03700645640492439, -0.04541855677962303, -0.047996457666158676, 0.0325968898832798, 0.008026262745261192, -0.016205165535211563, 0.0069705103524029255, -0.027576763182878494, 0.021030250936746597, 0.0011797716142609715, 0.005656119901686907, 0.0056264400482177734, -0.0006868751370348036, -0.09070143848657608, -0.02167472615838051, -0.01140551920980215, -0.012830148451030254, -0.0002803679963108152, 0.03968611732125282, 0.02621997334063053, 0.07123149186372757, 0.0166715607047081, 0.04541855677962303, -0.08317124843597412, 0.06393874436616898, -0.06987470388412476, 0.04962460696697235, -0.035615745931863785, 0.016705481335520744, 0.007907543331384659, 0.007212188560515642, 0.03337704390287399, 0.027644602581858635, 0.02796684019267559, -0.03400455787777901, 0.04209442064166069, 0.003599734278395772, 0.06193748116493225, -0.039821796119213104, -0.007954183034598827, 0.03558182716369629, 0.004774205852299929, -0.016578281298279762, -0.03273256868124008, -0.03422503545880318, -0.03441159427165985, 0.019300343468785286, -0.035242628306150436, 0.05820630490779877, -0.04185698181390762, 0.004744526464492083, 0.06478673964738846, 0.07482698559761047 ]
30,306
networkx.algorithms.planarity
next_face_half_edge
Returns the following half-edge left of a face. Parameters ---------- v : node w : node Returns ------- half-edge : tuple
def next_face_half_edge(self, v, w): """Returns the following half-edge left of a face. Parameters ---------- v : node w : node Returns ------- half-edge : tuple """ new_node = self[w][v]["ccw"] return w, new_node
(self, v, w)
[ -0.00865316204726696, -0.04618458449840546, -0.0224904827773571, 0.0336325578391552, -0.04350223392248154, -0.012775557115674019, 0.030210839584469795, 0.06317280977964401, 0.014976460486650467, -0.0031251111067831516, -0.005665607284754515, -0.018690485507249832, 0.017865145578980446, 0.019378267228603363, -0.029557446017861366, 0.037415359169244766, 0.041851554065942764, 0.0028585954569280148, -0.009947052225470543, 0.030606314539909363, -0.01822623237967491, -0.06000901013612747, 0.00032454729080200195, 0.011365603655576706, -0.0029639119748026133, 0.014684152789413929, 0.0031573509331792593, 0.03996015340089798, 0.017366504296660423, -0.028680523857474327, -0.07063524425029755, -0.026668760925531387, 0.021269669756293297, -0.03789680823683739, 0.06306964159011841, 0.029058804735541344, -0.0010467187967151403, 0.009964246302843094, -0.07063524425029755, 0.05347507819533348, 0.0033056538086384535, -0.028233464807271957, -0.005794566124677658, 0.020530303940176964, -0.0337357223033905, 0.019498629495501518, 0.06678366661071777, -0.033099524676799774, 0.01752125471830368, -0.02176831103861332, 0.002824206370860338, -0.048179153352975845, 0.01360089611262083, 0.007866510190069675, -0.017099987715482712, -0.02983255870640278, -0.024433467537164688, -0.027494098991155624, -0.030365590006113052, 0.07269859313964844, 0.028130298480391502, -0.05055200308561325, 0.018295010551810265, 0.048866935074329376, 0.003542079124599695, 0.018982792273163795, 0.0179339237511158, -0.018019897863268852, -0.028199076652526855, 0.006142755970358849, 0.009603161364793777, 0.034492284059524536, -0.0010542413219809532, 0.018277816474437714, -0.035833459347486496, -0.006890719290822744, 0.029763780534267426, 0.05089589208364487, 0.04449951648712158, -0.018329398706555367, 0.031534820795059204, 0.026221701875329018, -0.02668595500290394, -0.03211943432688713, 0.020530303940176964, 0.051342952996492386, 0.011021711863577366, -0.018982792273163795, -0.07448682934045792, -0.003591513494029641, -0.04790404066443443, -0.024347495287656784, -0.03196468576788902, 0.028439799323678017, 0.04130132868885994, 0.00029687481583096087, -0.006108366884291172, -0.0538189671933651, -0.03621174022555351, 0.008468320593237877, -0.02900722064077854, 0.06709317117929459, -0.09023704379796982, 0.005734385456889868, 0.020771026611328125, -0.06413570046424866, -0.044774629175662994, -0.04577191546559334, -0.014555193483829498, -0.037415359169244766, -0.04673480987548828, -0.013076461851596832, -0.002005315385758877, 0.07297370582818985, -0.011950218118727207, 0.022284148260951042, 0.013231213204562664, 0.015999536961317062, 0.014985057525336742, 0.014512207359075546, 0.0740053802728653, -0.07228592783212662, -0.054266028106212616, -0.04305517300963402, 0.016317635774612427, -0.026840705424547195, 0.05227145925164223, -0.017014015465974808, -0.0061212629079818726, 0.00907872710376978, 0.03321988880634308, 0.008111532777547836, -0.041851554065942764, -0.01865609548985958, -0.05436919629573822, -0.019017182290554047, -0.0008162041776813567, -0.007135741878300905, -0.010669223964214325, -0.0005593604873865843, -0.04088865965604782, -0.011485964991152287, 0.05185879021883011, 0.038928478956222534, -0.06561443209648132, 0.029093192890286446, -0.06619904935359955, 0.010359721258282661, 0.09291939437389374, 0.04900449141860008, 0.011511757038533688, 0.027133014053106308, 0.03786241635680199, 0.0027339349035173655, -0.010247956961393356, -0.03724341467022896, -0.020495913922786713, 0.00018484151223674417, -0.004694114439189434, 0.027752017602324486, 0.0038967167492955923, -0.04508413374423981, 0.0030477354303002357, 0.0019816728308796883, 0.026101339608430862, 0.02309229224920273, 0.044327571988105774, 0.008941170759499073, 0.0213040579110384, 0.00650384183973074, 0.016971029341220856, -0.005914928391575813, -0.08129587024450302, 0.04329589754343033, -0.05117100477218628, 0.020083244889974594, -0.013738452456891537, 0.00416108313947916, 0.06327597796916962, -0.05643254145979881, 0.003763458924368024, 0.007415153551846743, 0.02917916513979435, -0.08136465400457382, 0.020117633044719696, 0.044361960142850876, 0.03923798352479935, 0.010815377347171307, 0.0673338919878006, -0.012895919382572174, -0.02893844246864319, -0.04016648977994919, 0.007664474658668041, 0.006039588712155819, 0.03076106496155262, -0.011236644349992275, 0.018965598195791245, 0.04401807114481926, -0.03406241908669472, -0.005351806525141001, -0.0021837090607732534, -0.006357687991112471, -0.013291393406689167, 0.00384728261269629, 0.009018545970320702, 0.0605592355132103, 0.03727780282497406, 0.012173747643828392, 0.00544207775965333, 0.03968504071235657, 0.00832216627895832, 0.01820903830230236, -0.03440631181001663, 0.02742532081902027, 0.008150220848619938, -0.07338637858629227, -0.09175016731023788, 0.037828028202056885, -0.04026965796947479, 0.012766960076987743, -0.04556557908654213, -0.010454291477799416, 0.020134828984737396, -0.009611758403480053, 0.02966061420738697, -0.034028030931949615, -0.03879092261195183, -0.06021534278988838, -0.045256078243255615, -0.023057902231812477, -0.007604293525218964, 0.021630754694342613, -0.030399980023503304, -0.021905867382884026, -0.021183695644140244, 0.04247055947780609, -0.029110386967658997, -0.039409928023815155, 0.023075098171830177, -0.004137440584599972, 0.015655646100640297, -0.020581886172294617, -0.008008365519344807, 0.0629320815205574, 0.032205406576395035, 0.014589582569897175, 0.03751852735877037, -0.018999988213181496, -0.014030760154128075, 0.05340629816055298, -0.09697730839252472, -0.022868763655424118, 0.001849489752203226, 0.027941158041357994, 0.017400892451405525, -0.07888863235712051, -0.047009922564029694, -0.027786407619714737, 0.01636062189936638, 0.0002815609041135758, -0.0002611423551570624, 0.04295200854539871, 0.028886858373880386, 0.008266284130513668, 0.012259719893336296, 0.010660625994205475, 0.006151353474706411, 0.0269438736140728, -0.0062889098189771175, -0.026651564985513687, 0.026135729625821114, -0.04088865965604782, -0.020616276189684868, 0.0004005794762633741, 0.011056100949645042, -0.02424432709813118, -0.031999073922634125, 0.05595109239220619, 0.013119447976350784, -0.009611758403480053, -0.01526017114520073, -0.014985057525336742, -0.0830841064453125, 0.07661895453929901, -0.07207959145307541, 0.010600445792078972, 0.01191582903265953, -0.0763438418507576, 0.06413570046424866, -0.050861503928899765, -0.01023935992270708, 0.004676919896155596, 0.03101898357272148, 0.027270570397377014, 0.04333028942346573, 0.02517283335328102, 0.04088865965604782, 0.017443880438804626, 0.03841264545917511, -0.015655646100640297, 0.08390944451093674, -0.023676907643675804, -0.04394929111003876, 0.01494207140058279, -0.017882341518998146, -0.030193645507097244, 0.013618090189993382, -0.004646829329431057, 0.0337529182434082, -0.06203796714544296, -0.10447413474321365, -0.05952756106853485, -0.006546828430145979, 0.04621897265315056, 0.007866510190069675, -0.0314660407602787, -0.03999454155564308, 0.0026866497937589884, 0.007428049109876156, 0.05794566124677658, 0.019017182290554047, 0.017916729673743248, 0.023281432688236237, 0.09298817068338394, -0.027803601697087288, -0.009921260178089142, -0.01391039788722992, -0.026410842314362526, 0.034285951405763626, 0.05007055401802063, -0.050208110362291336, -0.006778954528272152, -0.0070282756350934505, 0.01726333610713482, -0.11864245682954788, 0.03665879741311073, 0.07063524425029755, 0.06788411736488342, 0.012216733768582344, -0.01839817687869072, 0.06905334442853928, -0.0010789585066959262, -0.00932804774492979, 0.007230312097817659, 0.08659179508686066, 0.046356528997421265, 0.01660994440317154, -0.032893192023038864, 0.0628289207816124, 0.045703135430812836, -0.023264238610863686, -0.038240697234869, -0.01258641667664051, -0.003855879884213209, 0.018243426457047462, 0.04157644137740135, -0.04161083325743675, -0.040510378777980804, -0.010376916266977787, 0.0303140077739954, -0.0235909353941679, 0.022060619667172432, -0.0337013341486454, 0.05454114079475403, -0.04687236621975899, -0.002738233422860503, -0.04078549146652222, 0.04202350229024887, -0.007896601222455502, 0.027236180379986763, -0.020788220688700676, -0.0145809855312109, 0.037380971014499664, -0.00774184986948967, 0.01303347572684288, 0.029574640095233917, -0.017882341518998146, 0.05911489203572273, 0.05474747344851494, -0.017340712249279022, 0.014426235109567642, 0.007836420089006424, -0.004689815919846296, 0.058289553970098495, -0.013325782492756844, 0.021630754694342613, 0.015999536961317062, 0.00730338878929615, 0.008098636753857136, 0.03799997642636299, -0.043227121233940125, 0.02766604535281658, 0.01972215808928013, -0.0315004326403141, -0.00922488048672676, 0.021166501566767693, 0.014666958712041378, -0.03203346207737923, -0.00798687245696783, -0.046356528997421265, 0.03934115171432495, 0.03321988880634308, -0.0741429403424263, 0.02537916786968708, -0.04515291005373001, 0.0359710156917572, -0.02606695145368576, 0.10137911885976791, 0.028456995263695717, -0.07888863235712051, -0.018759263679385185, 0.008326465263962746, 0.002658708719536662, -0.01165791042149067, 0.010927141644060612, 0.0007527992711402476, 0.028474189341068268, 0.08569768071174622, -0.018810847774147987, 0.02066786028444767, -0.01090994756668806, -0.018759263679385185, 0.019636185839772224, 0.012483249418437481, -0.04800720885396004, -0.022318536415696144, -0.015010849572718143, -0.0064092716202139854, 0.007784836459904909, 0.02629048004746437, -0.010101803578436375, -0.05051761493086815, 0.04171399772167206, -0.06042167916893959, -0.029763780534267426, 0.03236015886068344, 0.014159719459712505, 0.016240261495113373, 0.04020087793469429, 0.03707147017121315, -0.007999768480658531, 0.03411400318145752, -0.058771003037691116, -0.025000888854265213, 0.00577737158164382, -0.0073463753797113895, -0.051308564841747284, -0.04095743969082832, 0.003591513494029641, -0.04161083325743675, 0.01841537281870842, 0.015999536961317062, 0.024313105270266533, 0.014176913537085056, 0.004414702765643597, -0.020530303940176964, -0.07036013156175613, -0.02783798985183239, 0.04174838960170746, 0.017847951501607895, 0.040544770658016205, 0.007711759768426418, -0.04446512833237648, 0.0033228483516722918, -0.039203595370054245, -0.016695916652679443, 0.07242348045110703, -0.035627126693725586, -0.024983692914247513, -0.04016648977994919, 0.03480178490281105, -0.028130298480391502, 0.010823974385857582, -0.034440699964761734, 0.09615197032690048, -0.0018591616535559297, -0.010815377347171307, -0.03999454155564308, 0.05543525889515877, -0.11080173403024673, -0.10832571983337402, -0.01134840864688158, -0.02943708375096321, -0.022060619667172432, 0.005652711261063814, 0.0016334831016138196, -0.09904065728187561, 0.016695916652679443, -0.022799985483288765, 0.00025227642618119717, 0.05271851643919945, 0.0009193715522997081, -0.04453390836715698, -0.023539351299405098, 0.011623521335422993, 0.02739093266427517, 0.00544207775965333, 0.008812211453914642, 0.04690675437450409, 0.008051351644098759, -0.006942302919924259, -0.060490455478429794, -0.03167237713932991, -0.09099360555410385, -0.013841619715094566, 0.005472168326377869, -0.01491627935320139, -0.014219899661839008, -0.0007420526817440987, 0.03641807660460472, 0.07820085436105728, 0.0001366161450278014, 0.01168370246887207, 0.06643977761268616, 0.0070067825727164745, 0.0028542967047542334, -0.002938120160251856, 0.06781534105539322, 0.0314316526055336, -0.010763793252408504, 0.0034217170905321836, -0.04133572056889534, 0.038515809923410416, 0.044361960142850876, -0.053337521851062775, 0.03655563294887543, -0.02833663299679756, -0.043914902955293655, 0.017177363857626915, -0.018965598195791245, -0.04198911041021347, 0.01841537281870842, -0.026634370908141136, 0.01863890141248703, -0.014391846023499966, 0.018570123240351677, -0.005983706563711166, 0.06578638404607773, 0.021510392427444458, -0.0021063333842903376, -0.005179860629141331, -0.076481394469738, -0.06155652180314064, 0.02649681456387043, -0.024175548925995827, 0.010041622444987297, 0.0061212629079818726, -0.05144612118601799, -0.024674192070961, -0.043674178421497345, -0.03416558727622032, 0.017177363857626915, 0.01538053248077631, -0.01290451642125845, -0.024811748415231705, 0.032927580177783966, -0.01732351817190647, -0.04628775268793106, 0.0020837655756622553, -0.010282346047461033, -0.04219544678926468, -0.04312395304441452, 0.04632214084267616, 0.014030760154128075, 0.01504523865878582, 0.0033035045489668846, 0.0628633052110672, -0.0006281387177295983, 0.03679635375738144, 0.009448410011827946, -0.021476004272699356, 0.08377189189195633, 0.030812649056315422, -0.026789123192429543, -0.011709494516253471, -0.018965598195791245, 0.002944568172097206, 0.001953731756657362, -0.004870358854532242, -0.06767778098583221, -0.06571760028600693, -0.027012651786208153, 0.018071481958031654, 0.0471818707883358, -0.0235909353941679, 0.023487767204642296, 0.031139345839619637, 0.044774629175662994, -0.01613709330558777, 0.08390944451093674, -0.008141623809933662, -0.021871479228138924, 0.014202705584466457, 0.005317417439073324, 0.029333917424082756, -0.037380971014499664, -0.014572388492524624, 0.010368319228291512, 0.00795678235590458, -0.007479633204638958, -0.014004968106746674, -0.003954748623073101, 0.05227145925164223, 0.016059717163443565, -0.054919421672821045, 0.009972844272851944, 0.0106778210029006, -0.027992742136120796, -0.04057915881276131, -0.049073271453380585, 0.014778723008930683, -0.003260518191382289, 0.019584601745009422, 0.004219114780426025, -0.0064608552493155, 0.03346060961484909, -0.01559546496719122, 0.009379631839692593, -0.011210852302610874, 0.0560886487364769, -0.002188007580116391, -0.014452026225626469, -0.030417174100875854, -0.016300441697239876, 0.0179511196911335, -0.01705700159072876, 0.0964958667755127, -0.016429400071501732, -0.008812211453914642, 0.0032046358101069927, -0.02242170460522175, -0.03868775814771652, 0.00008630862430436537, -0.04515291005373001, -0.05340629816055298, 0.0583927221596241, 0.0039740921929478645, -0.01865609548985958, -0.017099987715482712, 0.03473300859332085, -0.049038879573345184, 0.09071849286556244, 0.03170676529407501, -0.006370584014803171, 0.013618090189993382, 0.0269782617688179, 0.01323981024324894, -0.010488680563867092, -0.04831670969724655, 0.0016560509102419019, -0.007268999703228474, 0.05337191000580788, -0.039203595370054245, 0.0012347842566668987, 0.013944786973297596, 0.02316107042133808, 0.03476739674806595, -0.019154738634824753, 0.03251491114497185, -0.019257904961705208, -0.00022460392210632563, 0.00977510679513216, 0.05319996550679207, -0.01212216354906559, -0.013231213204562664, 0.07283615320920944, 0.021235279738903046, 0.014082343317568302, -0.045496802777051926, -0.07338637858629227, -0.004939137026667595, -0.022370120510458946, -0.03304794058203697, -0.03683074563741684, -0.029230749234557152, -0.021218085661530495, 0.030210839584469795, -0.023487767204642296, 0.0019848968368023634, -0.012766960076987743, 0.04831670969724655, 0.02604975551366806, 0.006727370899170637, -0.016584152355790138, -0.008906781673431396, -0.014529402367770672, -0.024811748415231705, 0.017443880438804626, -0.024330301210284233, -0.03686513379216194, -0.06348230689764023, -0.049967385828495026, 0.035833459347486496, 0.0179855078458786, 0.0045135715045034885, -0.05206512287259102, 0.0038967167492955923, -0.029093192890286446, 0.013016280718147755, 0.02266242913901806, 0.013325782492756844, -0.020341163501143456, -0.03686513379216194, -0.007109949830919504, 0.010033025406301022, -0.04835109785199165, 0.07661895453929901, -0.01887962594628334, 0.016910849139094353, 0.016223065555095673, -0.02063347026705742, -0.010626236908137798, -0.03284160792827606, -0.016971029341220856, 0.004986422136425972, 0.04876376688480377, -0.09952210634946823, -0.013437547720968723, -0.015449310652911663, 0.021630754694342613, -0.0002502614224795252, -0.01326560229063034, 0.0697067379951477, 0.032635271549224854, -0.002126751933246851, -0.027958352118730545, 0.03841264545917511, 0.014666958712041378, -0.09842165559530258, 0.009070130065083504, -0.012603611685335636, -0.006155651994049549, 0.015543880872428417, 0.07146058231592178, 0.015165600925683975, 0.05271851643919945, 0.04807598516345024, 0.03406241908669472, -0.0179339237511158, 0.021510392427444458, 0.0381719209253788, 0.03387328237295151, -0.02044432982802391, -0.025430751964449883, -0.003535631112754345, 0.03077826090157032, 0.006929407361894846, 0.02001446671783924, -0.01772758923470974, -0.036968301981687546, 0.05227145925164223, 0.028594551607966423, 0.04284884035587311, -0.000817278865724802, -0.012509041465818882, -0.013944786973297596, 0.02558550238609314, 0.014022162184119225, -0.04350223392248154, -0.04876376688480377, -0.006104068364948034, 0.0742117166519165, 0.002178335562348366, 0.0673338919878006, -0.052202679216861725, 0.021837089210748672, 0.05856466665863991, 0.037415359169244766 ]
30,311
networkx.algorithms.planarity
remove_edge
Remove the edge between u and v. Parameters ---------- u, v : nodes Remove the half-edges (u, v) and (v, u) and update the edge ordering around the removed edge. Raises ------ NetworkXError If there is not an edge between u and v. See Also -------- remove_edges_from : remove a collection of edges
def remove_edge(self, u, v): """Remove the edge between u and v. Parameters ---------- u, v : nodes Remove the half-edges (u, v) and (v, u) and update the edge ordering around the removed edge. Raises ------ NetworkXError If there is not an edge between u and v. See Also -------- remove_edges_from : remove a collection of edges """ try: succs_u = self._succ[u] succs_v = self._succ[v] uv_cw = succs_u[v]["cw"] uv_ccw = succs_u[v]["ccw"] vu_cw = succs_v[u]["cw"] vu_ccw = succs_v[u]["ccw"] del succs_u[v] del self._pred[v][u] del succs_v[u] del self._pred[u][v] if v != uv_cw: succs_u[uv_cw]["ccw"] = uv_ccw succs_u[uv_ccw]["cw"] = uv_cw if u != vu_cw: succs_v[vu_cw]["ccw"] = vu_ccw succs_v[vu_ccw]["cw"] = vu_cw except KeyError as err: raise nx.NetworkXError( f"The edge {u}-{v} is not in the planar embedding." ) from err nx._clear_cache(self)
(self, u, v)
[ -0.022864826023578644, 0.011432413011789322, -0.021796204149723053, 0.04034969583153725, -0.04923031106591225, -0.027434106916189194, -0.040018051862716675, 0.06864975392818451, 0.04167626053094864, -0.028023691847920418, -0.031247982755303383, 0.02209099754691124, 0.009829480201005936, 0.007503385189920664, -0.010363791137933731, 0.05674751475453377, 0.025241589173674583, 0.03496973589062691, 0.028244785964488983, -0.023951873183250427, -0.01023481972515583, -0.07203986495733261, -0.007374413311481476, 0.07893063873052597, -0.008802313357591629, -0.006222880911082029, -0.024744126945734024, -0.031247982755303383, -0.010962587781250477, -0.023804476484656334, 0.011054710485041142, -0.0014808706473559141, -0.014011845923960209, -0.01489622239023447, 0.04731416329741478, 0.02233051508665085, 0.04086558148264885, 0.03146907687187195, -0.0994924008846283, 0.0032265938352793455, -0.04926716163754463, -0.0344722718000412, 0.030824217945337296, 0.005066742654889822, 0.06459636241197586, 0.011156045831739902, 0.05696861073374748, 0.01642545871436596, -0.0008458005031570792, -0.00797781627625227, -0.003083803690969944, -0.02772890031337738, 0.0485670305788517, 0.06677045673131943, -0.0002675873402040452, -0.007636962924152613, -0.04838278517127037, 0.02783944644033909, 0.026310211047530174, 0.02684452198445797, -0.008664129301905632, -0.026770824566483498, -0.013403836637735367, 0.00855358224362135, 0.004207699093967676, 0.025075769051909447, -0.02772890031337738, -0.008235759101808071, -0.04801429435610771, -0.009645234793424606, 0.003042348427698016, -0.00452321907505393, 0.006591371260583401, 0.018212636932730675, 0.018369244411587715, 0.004442611709237099, 0.018138937652111053, 0.03506185859441757, 0.007075014989823103, -0.04676142707467079, 0.08423689752817154, -0.030013540759682655, 0.011395564302802086, -0.04436624050140381, 0.026955069974064827, 0.004762738011777401, 0.02021169662475586, -0.009184622205793858, -0.01211412064731121, -0.0713028833270073, -0.0323718786239624, -0.017844146117568016, -0.05409438535571098, 0.026052268221974373, 0.022551609203219414, 0.06212747469544411, 0.013717053458094597, -0.07461930066347122, -0.009820268489420414, -0.07255575060844421, 0.04639293625950813, 0.03738334774971008, -0.08475278317928314, 0.02459673210978508, 0.0037056312430649996, -0.0157990250736475, 0.008300245739519596, -0.03266667202115059, -0.03183756768703461, -0.029829295352101326, -0.031192708760499954, 0.032648246735334396, -0.015237076207995415, 0.024394061416387558, 0.00477195018902421, 0.009958451613783836, -0.043776653707027435, -0.03148750215768814, 0.01908780075609684, 0.044403087347745895, 0.02185147814452648, 0.008327881805598736, -0.04823538661003113, -0.04182365536689758, 0.0329061895608902, -0.055163007229566574, 0.04119722172617912, -0.00044132478069514036, -0.008493702858686447, -0.01386445015668869, -0.02765520103275776, 0.0018528156215324998, -0.01518180314451456, 0.015273925848305225, -0.03349577262997627, -0.05114646255970001, 0.003436172613874078, 0.002397490432485938, 0.06934988498687744, -0.01135871559381485, -0.00868255365639925, -0.00206009135581553, 0.05803723260760307, 0.008829950354993343, 0.015384472906589508, -0.021188195794820786, -0.01582666113972664, -0.0485670305788517, 0.020617036148905754, 0.01786256954073906, 0.004180062562227249, 0.003613508539274335, 0.012519460171461105, -0.02264373190701008, -0.00015963117766659707, 0.006430156994611025, -0.03078736923635006, -0.007512597367167473, -0.04488212615251541, 0.02684452198445797, -0.004541643895208836, -0.020064299926161766, 0.028705399483442307, -0.01639782078564167, -0.0007594355847686529, -0.015476594679057598, 0.13000339269638062, -0.030934765934944153, -0.021169770509004593, 0.03277721628546715, -0.03555931895971298, -0.042265843600034714, -0.08114157617092133, 0.009143167175352573, -0.04447678476572037, 0.010824404656887054, 0.021390864625573158, -0.00458309892565012, 0.0008768918924033642, -0.012003573589026928, 0.033901114016771317, -0.00935965497046709, 0.04300282523036003, -0.06234857067465782, 0.022201543673872948, 0.02365708164870739, 0.014942283742129803, -0.013394624926149845, 0.015651628375053406, -0.03668321669101715, -0.011395564302802086, -0.044771578162908554, 0.01257473323494196, 0.0770144835114479, 0.038912583142519, -0.04469788074493408, 0.009949239902198315, 0.02754465490579605, -0.05015153810381889, -0.020119573920965195, -0.011856176890432835, -0.00012947541836183518, 0.03697800636291504, 0.03309043496847153, -0.005246381275355816, 0.0007887996616773307, 0.03806505352258682, 0.0018781493417918682, 0.05475766584277153, 0.04930400848388672, 0.030179360881447792, -0.010474338196218014, 0.1075991839170456, -0.019290469586849213, 0.0009154682629741728, -0.05663696676492691, -0.10384058207273483, 0.09963979572057724, -0.003093015868216753, 0.010833616368472576, -0.077825166285038, 0.02002745121717453, 0.008728615008294582, -0.037272799760103226, 0.037457045167684555, -0.040202297270298004, -0.013643356040120125, -0.0017388139385730028, 0.03756759315729141, -0.057742439210414886, 0.03861778974533081, 0.008751645684242249, -0.0005530234193429351, -0.02752622961997986, 0.02671555057168007, 0.03449069708585739, -0.06850235909223557, 0.014748826622962952, 0.022109420970082283, 0.0025610080920159817, 0.018129725009202957, -0.0428185798227787, -0.02428351528942585, -0.0036549638025462627, 0.015025194734334946, 0.039465319365262985, 0.02772890031337738, 0.021040799096226692, -0.0022547002881765366, 0.015237076207995415, -0.045582257211208344, -0.05987968295812607, -0.004251457750797272, 0.020137997344136238, 0.07071329653263092, -0.07358752191066742, -0.03259297087788582, -0.03613048046827316, 0.0005561901489272714, 0.035890962928533554, -0.0024343393743038177, 0.005817541386932135, 0.01871930994093418, 0.037770260125398636, 0.077825166285038, -0.0021418503019958735, -0.008383155800402164, 0.05752134695649147, 0.016600491479039192, -0.022920100018382072, -0.02247791178524494, -0.051662348210811615, 0.0033486562315374613, 0.013846024870872498, 0.005117409862577915, 0.04650348424911499, -0.05468396842479706, 0.03935477137565613, 0.03353262320160866, 0.03397481143474579, 0.0054674758575856686, -0.05921640247106552, -0.021888326853513718, 0.05976913496851921, -0.016913708299398422, 0.013127469457685947, 0.0010922284564003348, -0.06334349513053894, 0.05361534655094147, -0.014536945149302483, 0.021390864625573158, -0.017033467069268227, -0.005135834217071533, 0.0067894347012043, 0.030068812891840935, 0.06120624765753746, 0.0376044400036335, -0.010326942428946495, 0.011460050009191036, 0.03397481143474579, 0.056489571928977966, -0.022920100018382072, 0.0004845072398893535, -0.045840200036764145, 0.06087460741400719, -0.02546268329024315, 0.03506185859441757, 0.018940404057502747, 0.01965896040201187, -0.0010772584937512875, -0.05987968295812607, -0.05519985780119896, -0.050851669162511826, 0.005306261125952005, 0.018452154472470284, 0.013477534987032413, 0.010640159249305725, -0.0015465079341083765, 0.025057343766093254, 0.007047377992421389, -0.011285017244517803, 0.006006392650306225, -0.04495582357048988, 0.03935477137565613, -0.027194589376449585, -0.020101148635149002, 0.03684903681278229, 0.010271668434143066, -0.0048686787486076355, 0.03178229182958603, -0.009184622205793858, 0.006927618756890297, -0.04963565245270729, 0.0268997959792614, -0.10899944603443146, 0.012851101346313953, 0.05951119214296341, 0.029129162430763245, 0.04631923884153366, 0.014417185448110104, 0.05556834489107132, 0.07167137414216995, 0.003399323672056198, 0.01480410061776638, -0.0077981771901249886, 0.001750329160131514, -0.05969543755054474, -0.02415454387664795, -0.03347735106945038, 0.035890962928533554, 0.03229818120598793, 0.0550893098115921, -0.021354015916585922, 0.037328071892261505, 0.02835533395409584, 0.03135852888226509, -0.0334220752120018, -0.036443695425987244, 0.013099832460284233, -0.006047848146408796, -0.00860424991697073, 0.011137621477246284, 0.0014325062511488795, 0.008475278504192829, -0.043592408299446106, -0.005227956920862198, -0.03913367539644241, -0.01348674762994051, 0.007056590635329485, -0.02846588008105755, -0.03060312382876873, -0.05899530649185181, 0.04300282523036003, 0.030492577701807022, 0.009884754195809364, 0.0788569375872612, -0.031192708760499954, 0.05553149804472923, 0.03122955746948719, 0.021740932017564774, 0.005043711978942156, 0.02216469496488571, 0.008327881805598736, 0.005789904855191708, 0.0021729415748268366, -0.02052491344511509, 0.008912860415875912, -0.007752115838229656, 0.03436172753572464, 0.045950748026371, -0.04794059693813324, 0.0059234825894236565, 0.05741079896688461, -0.029755596071481705, -0.021519837900996208, 0.008300245739519596, 0.0059142704121768475, 0.03609362989664078, 0.00009730448800837621, -0.05800038203597069, 0.027636777609586716, 0.023509684950113297, -0.06286445260047913, 0.03703328222036362, 0.01585429720580578, -0.018369244411587715, 0.017429593950510025, 0.05932694673538208, 0.0668441504240036, -0.01809287630021572, 0.0059326947666704655, 0.026770824566483498, 0.006047848146408796, -0.023454410955309868, -0.009405716322362423, -0.03905997797846794, 0.0728505477309227, -0.002791314385831356, 0.03467494249343872, -0.010032149963080883, 0.02640233375132084, 0.03773341327905655, 0.021796204149723053, -0.06651251018047333, 0.004970013629645109, -0.07716187834739685, 0.010888890363276005, -0.01232600212097168, -0.030179360881447792, 0.06400677561759949, -0.034896038472652435, -0.07465614378452301, 0.051404405385255814, -0.04167626053094864, -0.019511563703417778, 0.0342143289744854, 0.012197030708193779, 0.0005285533843562007, 0.03349577262997627, 0.03279564157128334, -0.03191126510500908, -0.004606129601597786, -0.03627787530422211, -0.04200790077447891, -0.00890364870429039, 0.02203572355210781, -0.07355067878961563, -0.007811995688825846, 0.006241305265575647, 0.004221517592668533, -0.010096635669469833, -0.015476594679057598, -0.03480391576886177, -0.06271705776453018, -0.04731416329741478, -0.01903252676129341, -0.03379056602716446, -0.0059326947666704655, -0.05302576348185539, 0.020193271338939667, 0.05280466750264168, 0.004808799363672733, -0.07730928063392639, -0.015246288850903511, -0.021888326853513718, 0.04311337321996689, 0.09050123393535614, -0.02846588008105755, -0.023012222722172737, -0.02734198421239853, 0.018102088943123817, -0.07966761291027069, -0.004509400576353073, -0.015191014856100082, 0.030068812891840935, 0.004260669928044081, -0.0446610301733017, -0.01261158287525177, 0.02454145811498165, -0.0428185798227787, -0.031082162633538246, 0.002132637891918421, -0.03835984691977501, -0.0199721772223711, 0.05015153810381889, 0.004276791121810675, -0.040644485503435135, -0.008595037274062634, 0.014481671154499054, 0.009949239902198315, 0.014647492207586765, -0.056047383695840836, -0.011524535715579987, 0.01229836605489254, 0.06069036200642586, 0.021980449557304382, -0.05442602559924126, -0.01908780075609684, 0.07716187834739685, -0.016775524243712425, 0.01148768700659275, -0.032500848174095154, -0.07001316547393799, -0.07531943172216415, 0.04259748384356499, 0.01806524023413658, -0.004408066160976887, 0.02452303282916546, 0.00037021766183897853, 0.023012222722172737, 0.03703328222036362, 0.03274036943912506, 0.06783907860517502, 0.072076715528965, 0.05707915499806404, 0.05589998885989189, -0.03742019459605217, 0.030768945813179016, 0.03371686860918999, -0.00210500112734735, 0.004518613219261169, 0.010059786960482597, 0.048530180007219315, 0.07406656444072723, -0.05295206606388092, 0.06459636241197586, -0.03371686860918999, -0.038654640316963196, 0.03347735106945038, -0.02360180765390396, -0.011874602176249027, 0.01679394766688347, -0.01649915613234043, 0.031082162633538246, 0.02817108854651451, 0.04525061696767807, -0.011082347482442856, 0.012630007229745388, 0.040202297270298004, -0.014352699741721153, 0.006752585992217064, -0.003337140893563628, -0.03931792080402374, 0.036075204610824585, -0.030179360881447792, 0.023749204352498055, 0.029589775949716568, 0.0160569678992033, -0.013790751807391644, -0.007397443987429142, -0.08792179822921753, 0.039465319365262985, 0.03299831226468086, 0.007940967567265034, 0.04160256311297417, -0.008949710056185722, -0.013698629103600979, 0.02929498441517353, 0.020248545333743095, 0.025886448100209236, -0.05162550136446953, -0.039023127406835556, 0.04989359527826309, -0.012685280293226242, -0.028815945610404015, 0.049783047288656235, 0.005545780062675476, -0.04668772965669632, 0.05033578351140022, 0.013818388804793358, -0.021869903430342674, 0.004313640296459198, 0.008443035185337067, -0.033882688730955124, -0.07944652438163757, -0.00621366873383522, 0.018599551171064377, -0.022127846255898476, 0.019548414275050163, -0.0334220752120018, -0.06426472216844559, -0.024486184120178223, 0.04875127598643303, 0.020801281556487083, -0.03953901678323746, 0.004357398487627506, 0.01827712170779705, 0.019732659682631493, 0.02859485149383545, 0.05199398845434189, 0.01624121330678463, -0.07137658447027206, 0.06776537746191025, 0.013348563574254513, -0.02172250673174858, -0.005237169098109007, 0.008935891091823578, 0.0257206279784441, -0.002019787672907114, -0.004891709424555302, -0.008470672182738781, -0.044771578162908554, 0.0961022824048996, -0.001979484222829342, -0.04267118498682976, 0.025425834581255913, -0.027986843138933182, -0.05055687576532364, -0.03152434900403023, -0.05214138701558113, -0.004150122869759798, 0.06411731988191605, -0.00030170148238539696, -0.024762552231550217, -0.01420530304312706, -0.001979484222829342, -0.005029893480241299, -0.021114498376846313, -0.05656326934695244, -0.022422637790441513, 0.025425834581255913, -0.044403087347745895, 0.0014037180226296186, -0.0357804149389267, -0.008650311268866062, 0.06382253021001816, 0.05055687576532364, 0.01122974418103695, -0.05494191125035286, 0.06481745094060898, -0.04893552139401436, -0.09735514968633652, -0.023417562246322632, 0.04373980686068535, -0.02465200424194336, -0.035448770970106125, 0.037457045167684555, 0.016775524243712425, -0.004970013629645109, 0.029700323939323425, 0.030529426410794258, -0.015366047620773315, -0.012197030708193779, -0.013772327452898026, -0.03692273423075676, 0.0318559929728508, 0.008871405385434628, -0.0021706384140998125, -0.043592408299446106, 0.0329061895608902, 0.04712991788983345, 0.04838278517127037, -0.0019334228709340096, -0.05519985780119896, 0.026512881740927696, 0.048788122832775116, 0.0021913661621510983, 0.011533748358488083, 0.04849333316087723, -0.017448019236326218, 0.016222788020968437, 0.017567778006196022, 0.027434106916189194, -0.033145707100629807, 0.0029824688099324703, 0.06153789162635803, 0.026310211047530174, -0.033145707100629807, -0.014150029979646206, -0.026807673275470734, 0.01762305200099945, -0.03347735106945038, -0.026070693507790565, -0.037770260125398636, -0.031948115676641464, -0.021740932017564774, 0.0012482610763981938, -0.027765749022364616, -0.046908821910619736, -0.0480511412024498, -0.006646644789725542, 0.0318559929728508, 0.012961648404598236, -0.0490829162299633, -0.00039958173874765635, -0.014030270278453827, -0.05232563242316246, 0.01470276527106762, -0.04768265411257744, -0.0668441504240036, -0.038212452083826065, -0.04889867082238197, 0.017272986471652985, -0.021446138620376587, -0.002448157873004675, -0.04370295628905296, 0.010971800424158573, -0.06934988498687744, 0.036443695425987244, 0.02115134708583355, 0.03285091742873192, 0.0071809557266533375, -0.022699005901813507, -0.04219214618206024, -0.024486184120178223, 0.030197784304618835, 0.016959769651293755, -0.02233051508665085, -0.012464186176657677, 0.018341608345508575, -0.000125013233628124, -0.005177289713174105, -0.0037378740962594748, -0.020045876502990723, 0.04528746381402016, 0.05777928978204727, -0.06367513537406921, -0.05881106108427048, -0.038765184581279755, 0.025886448100209236, -0.0582214780151844, 0.035264529287815094, 0.009460990317165852, 0.03773341327905655, -0.038322996348142624, -0.0430765226483345, -0.007784358691424131, -0.03987065702676773, -0.04676142707467079, 0.00893128477036953, -0.013026134110987186, 0.06953413039445877, 0.00967287179082632, 0.07730928063392639, 0.008300245739519596, 0.05383644253015518, 0.015706902369856834, 0.02577590011060238, 0.05088851973414421, 0.023325439542531967, -0.005679357796907425, 0.01054803654551506, -0.034711793065071106, -0.018009966239333153, 0.009516263380646706, 0.033200982958078384, -0.01965896040201187, 0.06887084990739822, -0.016471518203616142, -0.024983646348118782, 0.023509684950113297, 0.004744313191622496, -0.009428746998310089, 0.00967287179082632, -0.004502491559833288, -0.01833239570260048, 0.030382029712200165, 0.001812511938624084, -0.049783047288656235, -0.08991164714097977, -0.05895845592021942, 0.007756722159683704, -0.06153789162635803, 0.04016545042395592, -0.022864826023578644, 0.03668321669101715, 0.06157473847270012, 0.039391618221998215 ]
30,312
networkx.algorithms.planarity
remove_edges_from
Remove all edges specified in ebunch. Parameters ---------- ebunch: list or container of edge tuples Each pair of half-edges between the nodes given in the tuples will be removed from the graph. The nodes can be passed as: - 2-tuples (u, v) half-edges (u, v) and (v, u). - 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 pair of half-edges between the nodes given in the tuples will be removed from the graph. The nodes can be passed as: - 2-tuples (u, v) half-edges (u, v) and (v, u). - 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 # assuming that the PlanarEmbedding is valid, if the half_edge # (u, v) is in the graph, then so is half_edge (v, u) if u in self._succ and v in self._succ[u]: self.remove_edge(u, v)
(self, ebunch)
[ -0.010098216123878956, 0.008037839084863663, -0.025690771639347076, 0.014124240726232529, -0.1264076977968216, -0.024895040318369865, -0.031128274276852608, 0.04963851347565651, 0.05206359922885895, 0.027812723070383072, -0.03487958014011383, 0.01789449341595173, -0.015450460836291313, 0.023853009566664696, -0.010922367684543133, 0.03182927519083023, 0.026240205392241478, 0.0037370978388935328, 0.044712554663419724, 0.007190005853772163, -0.03201873600482941, -0.0492217019200325, 0.01081816479563713, 0.0804825946688652, -0.03978659585118294, 0.03289025276899338, -0.01339481957256794, -0.028513725847005844, -0.031223002821207047, 0.017307167872786522, 0.016388287767767906, -0.033231280744075775, -0.018983889371156693, -0.017591359093785286, 0.03802461549639702, 0.01820710301399231, 0.0386308878660202, 0.030048351734876633, -0.08684845268726349, 0.027699047699570656, -0.016056733205914497, 0.0014173974050208926, 0.06869818270206451, 0.021446868777275085, 0.08321081846952438, 0.025842340663075447, 0.06953181326389313, -0.008250981569290161, -0.014664201997220516, 0.0010361091699451208, 0.00631375377997756, 0.0011024202685803175, 0.017127182334661484, 0.04914591833949089, 0.02542552910745144, 0.010192946530878544, -0.06627310067415237, 0.03215135633945465, 0.05429922789335251, 0.03658472001552582, -0.030976705253124237, -0.021352138370275497, 0.02398563176393509, -0.010174000635743141, 0.0037205202970653772, 0.007123694755136967, -0.057861074805259705, 0.0006121925543993711, -0.0492217019200325, -0.008686739951372147, -0.04626612365245819, 0.00344817154109478, -0.02140897698700428, 0.03440593183040619, 0.048729103058576584, 0.0003040240553673357, -0.008909354917705059, 0.07483668625354767, -0.034273307770490646, -0.053692955523729324, 0.051836248487234116, -0.009430370293557644, -0.015099959447979927, -0.006370591465383768, 0.06593207269906998, 0.029896782711148262, 0.006015354301780462, 0.03137456998229027, 0.008658320643007755, -0.0654015839099884, 0.012930642813444138, -0.05285933241248131, -0.06403747200965881, -0.0011272868141531944, 0.02222365513443947, 0.06278703361749649, -0.04228746518492699, -0.027774831280112267, -0.010515028610825539, -0.07866378128528595, 0.05335192754864693, -0.03567531332373619, -0.06687936931848526, 0.019457539543509483, 0.0027092776726931334, 0.008383603766560555, -0.01763872429728508, -0.0571032352745533, 0.014901027083396912, -0.006152712740004063, -0.04997954145073891, 0.06725829094648361, 0.005788002163171768, -0.012835913337767124, -0.04691028967499733, -0.002412062371149659, 0.01451263390481472, -0.06290070712566376, 0.004944905173033476, 0.010770799592137337, 0.0028276899829506874, 0.035921610891819, -0.015251527540385723, 0.0217310581356287, 0.05789896845817566, -0.018244994804263115, 0.020632190629839897, 0.021446868777275085, -0.014114768244326115, -0.09518469125032425, 0.035485852509737015, -0.025292906910181046, -0.04547039419412613, -0.014332646504044533, -0.040696002542972565, -0.02252679131925106, 0.01818815805017948, -0.04907013103365898, 0.06619731336832047, 0.024989770725369453, -0.03309865668416023, 0.01564939320087433, 0.05452657863497734, 0.0423632487654686, -0.0553223118185997, -0.03952135145664215, -0.015175743959844112, -0.047175534069538116, 0.008454651571810246, 0.04152962565422058, -0.05630750209093094, 0.030199918895959854, -0.002635861746966839, -0.03614896163344383, -0.009567728266119957, -0.02027221769094467, -0.02108689397573471, 0.046304017305374146, -0.03936978057026863, 0.03607317805290222, -0.007587871979922056, 0.002569550881162286, -0.003095302265137434, -0.021427921950817108, -0.037967778742313385, -0.05282143875956535, 0.09033451229333878, 0.028210589662194252, -0.039824485778808594, 0.03402701020240784, -0.025198176503181458, 0.00046476899296976626, -0.06297649443149567, 0.0179608054459095, -0.017506102100014687, 0.004078126046806574, 0.028589509427547455, 0.005612751469016075, 0.008601482957601547, -0.020651137456297874, -0.01964699849486351, -0.008430968970060349, 0.003149772062897682, -0.03440593183040619, 0.04944905266165733, 0.015469406731426716, -0.024478228762745857, -0.0008016524952836335, -0.003954976797103882, -0.07176743447780609, -0.03514482453465462, -0.03167770802974701, 0.020025918260216713, 0.05342771112918854, 0.03648998960852623, -0.02605074644088745, -0.00629480741918087, 0.027054883539676666, -0.0750640407204628, -0.013565333560109138, -0.019760675728321075, -0.015137852169573307, 0.04228746518492699, 0.006943707820028067, 0.03696364164352417, 0.009956121444702148, 0.02838110364973545, -0.0316019244492054, 0.05941464751958847, 0.04266638681292534, 0.03641420602798462, -0.05558755621314049, 0.09594252705574036, -0.03910453990101814, 0.014522106386721134, -0.03910453990101814, -0.0890461876988411, 0.04304530471563339, 0.009165125899016857, 0.010751853697001934, -0.04528093338012695, -0.011557058431208134, 0.005622224882245064, -0.04994164779782295, -0.0043267919681966305, 0.009515627287328243, -0.004840702284127474, -0.01106446236371994, 0.02718750573694706, -0.026751747354865074, 0.037891995161771774, -0.05907361954450607, 0.009506153874099255, -0.032283980399370193, 0.05221516638994217, 0.0710853785276413, -0.06271125376224518, -0.004419154021888971, 0.030768299475312233, -0.0009715743944980204, -0.0004425666411407292, -0.03245449438691139, -0.022962547838687897, -0.0057169548235833645, 0.041984330862760544, 0.024080362170934677, 0.0024771890603005886, -0.027130667120218277, -0.034121740609407425, 0.0005674918065778911, -0.005456447135657072, -0.04577352851629257, 0.0477818064391613, 0.0016329081263393164, 0.05433712154626846, -0.03518271818757057, 0.0007779700099490583, -0.03385649621486664, 0.01708928868174553, 0.005465920083224773, 0.0495627298951149, -0.05827788636088371, 0.022413114085793495, 0.06043773144483566, 0.06358276307582855, 0.04505358263850212, -0.01987435109913349, 0.015829380601644516, -0.0343112014234066, -0.025596043094992638, 0.036925747990608215, -0.05217727646231651, 0.027774831280112267, 0.050547920167446136, -0.008284137584269047, 0.06055140867829323, -0.06490898877382278, 0.0316019244492054, -0.013375873677432537, 0.005991671700030565, 0.001803422113880515, -0.023549875244498253, -0.006844241637736559, 0.04929748550057411, -0.007407885044813156, -0.009795080870389938, 0.02076481282711029, -0.0790427029132843, 0.06809191405773163, -0.010685542598366737, 0.0542234443128109, -0.028570564463734627, -0.021314246580004692, -0.017686087638139725, 0.032265033572912216, 0.06263546645641327, 0.02036694623529911, -0.01234331727027893, 0.010676069185137749, 0.04850175231695175, 0.08427179604768753, -0.05259408801794052, 0.009795080870389938, -0.006777930539101362, 0.01907861977815628, -0.003163981484249234, 0.03993816301226616, 0.019438592717051506, 0.0014067402807995677, -0.006119557190686464, -0.06854661554098129, -0.03944556787610054, -0.06854661554098129, -0.06199130415916443, 0.021750004962086678, 0.023928795009851456, 0.04043075814843178, 0.0018093427643179893, 0.015298892743885517, 0.018661806359887123, -0.0009810474002733827, 0.021674221381545067, -0.031639814376831055, 0.0391424298286438, 0.010723434388637543, -0.009766661562025547, -0.002049720147624612, 0.0201206486672163, -0.00597746204584837, 0.008686739951372147, -0.015393623150885105, -0.0017477682558819652, -0.00689634308218956, 0.03899086266756058, -0.020651137456297874, 0.02855161763727665, 0.04130227491259575, 0.039028752595186234, -0.01323377899825573, -0.017525047063827515, 0.07010018825531006, 0.06214287132024765, -0.0001076813496183604, 0.01078974548727274, 0.03823302313685417, 0.029631540179252625, -0.057785291224718094, -0.017288222908973694, -0.0014458163641393185, 0.051684681326150894, 0.005338034592568874, 0.056989558041095734, -0.006299544125795364, -0.0033392319455742836, 0.02847583405673504, 0.07297997921705246, -0.026240205392241478, -0.016141990199685097, -0.01523258164525032, 0.011036043055355549, 0.04224957525730133, 0.009870864450931549, 0.013726375065743923, -0.042704276740550995, 0.021996302530169487, -0.009406687691807747, -0.026979099959135056, -0.017591359093785286, 0.0031900322064757347, -0.015990421175956726, -0.012305425480008125, -0.02726328931748867, 0.0015938320429995656, -0.023227792233228683, -0.02108689397573471, 0.03648998960852623, 0.007654183078557253, 0.04588720574975014, -0.009373531676828861, 0.09791291505098343, -0.002635861746966839, 0.04509147256612778, 0.004601508844643831, 0.010761326178908348, 0.04603877291083336, -0.022507844492793083, -0.034273307770490646, 0.02445928193628788, 0.034671176224946976, 0.0033108131028711796, -0.015450460836291313, -0.015251527540385723, 0.059604108333587646, 0.010117162950336933, -0.030900921672582626, -0.04584931209683418, 0.0048833307810127735, 0.039824485778808594, -0.020063811913132668, -0.026202313601970673, 0.015166270546615124, -0.006915288977324963, -0.044068388640880585, 0.0649847686290741, 0.02301938645541668, -0.03544795885682106, -0.02108689397573471, 0.021541599184274673, 0.060740865767002106, -0.030370432883501053, 0.08662109822034836, 0.009558255784213543, -0.019609106704592705, 0.025918124243617058, 0.0024606112856417894, -0.037096261978149414, 0.012798021547496319, -0.02019643224775791, 0.02525501511991024, 0.00833623856306076, 0.04448520019650459, 0.03505009412765503, 0.007114221807569265, -0.05611804500222206, 0.025198176503181458, -0.007592608220875263, -0.013764266856014729, -0.009103551506996155, -0.03133668005466461, 0.06365855038166046, -0.03798672556877136, -0.05695166811347008, 0.0036186855286359787, -0.029707323759794235, -0.013375873677432537, 0.031014597043395042, -0.029233673587441444, -0.0057737925089895725, 0.04160540923476219, 0.005224358756095171, -0.02749064192175865, -0.017269276082515717, -0.00571221811696887, -0.08313503861427307, -0.015081013552844524, -0.01251383125782013, -0.05933886393904686, 0.00721368845552206, 0.03207557275891304, 0.025046607479453087, -0.033003926277160645, -0.03224608674645424, -0.040051836520433426, -0.08351395279169083, -0.06536369025707245, 0.011320233345031738, 0.018794428557157516, 0.01314852200448513, -0.08427179604768753, 0.037190992385149, 0.06824348121881485, -0.03698258474469185, -0.05357927829027176, -0.00833623856306076, 0.01186966709792614, 0.030597785487771034, 0.07392728328704834, -0.006005880888551474, -0.009567728266119957, -0.0031734544318169355, 0.02966943196952343, -0.09329009056091309, -0.0014102926943451166, -0.015204162336885929, 0.06453006714582443, 0.040847569704055786, -0.06240811571478844, -0.02085954323410988, 0.024175092577934265, -0.017335588112473488, -0.030199918895959854, -0.029006320983171463, 0.003644736250862479, -0.002673753770068288, 0.018140792846679688, 0.005105946213006973, -0.05570123344659805, -0.04835018515586853, -0.0195712149143219, -0.02991572953760624, 0.0021337929647415876, -0.08268032968044281, -0.029290512204170227, 0.016312504187226295, 0.09185019135475159, 0.0343112014234066, -0.030484110116958618, -0.00826045498251915, 0.04372736066579819, -0.028741078451275826, -0.008994611911475658, 0.023682495579123497, -0.0009733506012707949, -0.056648530066013336, 0.03614896163344383, 0.022091032937169075, 0.029877837747335434, 0.03601634129881859, -0.012599088251590729, -0.004438099917024374, 0.028210589662194252, 0.020082756876945496, 0.016246192157268524, 0.034614335745573044, 0.03192400559782982, 0.003883929457515478, -0.021295301616191864, 0.03345863148570061, 0.018263941630721092, 0.03014308214187622, 0.02428876794874668, 0.01644512638449669, 0.01070448849350214, 0.10033800452947617, -0.024175092577934265, 0.008644111454486847, -0.012362263165414333, -0.016094624996185303, 0.03237871080636978, -0.015412569046020508, 0.029404187574982643, 0.045508284121751785, 0.002789798192679882, 0.05229095369577408, 0.05471603944897652, 0.05570123344659805, -0.0224510058760643, -0.020177487283945084, 0.059945136308670044, 0.0420222207903862, 0.0016565906116738915, -0.004869121126830578, -0.006446375511586666, 0.057141128927469254, -0.06775088608264923, 0.034121740609407425, 0.006574261002242565, 0.038536157459020615, 0.015819907188415527, 0.023834064602851868, -0.040203407406806946, 0.019609106704592705, 0.044864121824502945, 0.028115859255194664, 0.04562196135520935, -0.05335192754864693, -0.010335041210055351, 0.05107840895652771, 0.02525501511991024, 0.005551177076995373, -0.06831926852464676, -0.013300090096890926, 0.022413114085793495, 0.017903966829180717, -0.016227247193455696, 0.03728572279214859, -0.038138292729854584, -0.039824485778808594, 0.028665293008089066, 0.03182927519083023, -0.018226049840450287, 0.014105294831097126, -0.004715185146778822, -0.031961895525455475, -0.05357927829027176, -0.010174000635743141, -0.026031799614429474, 0.0022889133542776108, 0.02783166989684105, -0.053617171943187714, -0.024724526330828667, -0.0542234443128109, 0.022394169121980667, -0.01386846974492073, -0.02622126042842865, 0.03201873600482941, 0.0012125438079237938, -0.00241679884493351, -0.009832972660660744, 0.018424982205033302, 0.07335890084505081, -0.037096261978149414, 0.04793337360024452, 0.01278854813426733, -0.0567622072994709, -0.03120405785739422, 0.020063811913132668, -0.01090342178940773, -0.05892205238342285, 0.012835913337767124, -0.03433014824986458, -0.020651137456297874, 0.09329009056091309, -0.0055938055738806725, -0.023133061826229095, -0.001312010339461267, -0.008691476657986641, -0.022507844492793083, 0.01797027885913849, -0.010363460518419743, 0.03654683008790016, 0.11504009366035461, 0.020499568432569504, 0.0016802730970084667, -0.030010459944605827, -0.008653583936393261, 0.008483069948852062, 0.006162185687571764, -0.03328811749815941, 0.004627559799700975, 0.008653583936393261, -0.06093032658100128, -0.004033129196614027, -0.018074480816721916, -0.04512936621904373, 0.02775588631629944, 0.03518271818757057, 0.04725131765007973, -0.02125740796327591, 0.014768404886126518, -0.008918828330934048, -0.09632144868373871, -0.01439895760267973, -0.006848977878689766, -0.02750958874821663, -0.09510890394449234, 0.0001486816763645038, -0.017060870304703712, -0.04266638681292534, 0.04111281409859657, 0.04971429705619812, -0.024913987144827843, -0.05482971668243408, -0.029896782711148262, -0.04410628229379654, 0.011850721202790737, -0.007909953594207764, -0.03402701020240784, -0.03654683008790016, 0.016141990199685097, 0.04531882703304291, 0.04376525431871414, -0.008544644340872765, -0.035637419670820236, -0.035239554941654205, 0.059300970286130905, 0.011329706758260727, 0.002069850219413638, 0.019912242889404297, 0.0010645282454788685, 0.0495627298951149, -0.011367598548531532, 0.030370432883501053, 0.006332699675112963, 0.02453506551682949, 0.04403049871325493, 0.0460008829832077, 0.013773740269243717, -0.011007624678313732, 0.012087546288967133, -0.04569774493575096, -0.0386308878660202, -0.014654728583991528, -0.046152450144290924, -0.052631981670856476, 0.005409082397818565, -0.046872396022081375, -0.010969731956720352, -0.016009368002414703, -0.045356716960668564, -0.05892205238342285, 0.03929399698972702, 0.016255665570497513, -0.05661064013838768, -0.026827532798051834, 0.04050654172897339, -0.06888764351606369, 0.022242600098252296, -0.04835018515586853, -0.038763511925935745, -0.01901230774819851, -0.0402412973344326, 0.015355730429291725, 0.007891007699072361, -0.0048075467348098755, 0.026012854650616646, -0.0028347948100417852, -0.03501220420002937, 0.028494779020547867, 0.004421521909534931, 0.05460236221551895, 0.026012854650616646, -0.025065554305911064, -0.011130773462355137, 0.00362815847620368, 0.007810487411916256, -0.0018874949309974909, 0.01098867878317833, -0.04603877291083336, 0.06695515662431717, -0.024819256737828255, -0.008658320643007755, 0.0186807531863451, -0.009079868905246258, 0.06240811571478844, 0.0008288873941637576, -0.041643302887678146, -0.0194007009267807, -0.015469406731426716, 0.006498476956039667, -0.053276143968105316, 0.024478228762745857, -0.008099413476884365, 0.00793363619595766, -0.020783759653568268, -0.028115859255194664, 0.0025529731065034866, 0.008241509087383747, -0.02260257489979267, 0.0036518408451229334, -0.05846734717488289, 0.049032241106033325, 0.0017986856400966644, 0.07188111543655396, -0.014181079342961311, -0.0039739226922392845, -0.013470604084432125, 0.03806250914931297, 0.0510026253759861, -0.02381511777639389, 0.009738242253661156, -0.021768949925899506, -0.0470239631831646, 0.020802704617381096, 0.015971476212143898, -0.010316095314919949, -0.021219516173005104, 0.03343968465924263, -0.020802704617381096, -0.023152008652687073, 0.026581233367323875, 0.03319338709115982, 0.011253922246396542, -0.018008170649409294, -0.019182821735739708, -0.05213938280940056, 0.019628053531050682, -0.03775937110185623, -0.05085105821490288, -0.07949740439653397, -0.0492217019200325, -0.00826045498251915, -0.04740288481116295, 0.011917032301425934, 0.007014755625277758, 0.055360205471515656, 0.03722888603806496, 0.003320286050438881 ]
30,313
networkx.algorithms.planarity
remove_node
Remove node n. Removes the node n and all adjacent edges, updating the PlanarEmbedding to account for any resulting edge removal. Attempting to remove a non-existent 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
def remove_node(self, n): """Remove node n. Removes the node n and all adjacent edges, updating the PlanarEmbedding to account for any resulting edge removal. Attempting to remove a non-existent 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 """ try: for u in self._pred[n]: succs_u = self._succ[u] un_cw = succs_u[n]["cw"] un_ccw = succs_u[n]["ccw"] del succs_u[n] del self._pred[u][n] if n != un_cw: succs_u[un_cw]["ccw"] = un_ccw succs_u[un_ccw]["cw"] = un_cw del self._node[n] del self._succ[n] del self._pred[n] except KeyError as err: # NetworkXError if n not in self raise nx.NetworkXError( f"The node {n} is not in the planar embedding." ) from err nx._clear_cache(self)
(self, n)
[ -0.00023912682081572711, 0.025394156575202942, -0.014467728324234486, 0.024539973586797714, -0.027138113975524902, -0.007407370489090681, -0.067658431828022, 0.030697209760546684, 0.010979813523590565, -0.005383133888244629, -0.03979070112109184, 0.04989853873848915, 0.008599667809903622, 0.04160584136843681, -0.008555179461836815, -0.011255644261837006, 0.00924475397914648, 0.054062679409980774, 0.005298605654388666, -0.039541564881801605, -0.02825922891497612, -0.010125630535185337, -0.010250198654830456, 0.055877819657325745, -0.0018996678991243243, 0.009378219954669476, 0.02370358444750309, -0.025091633200645447, -0.05851155146956444, 0.01895219087600708, 0.01909455470740795, 0.0008914425270631909, -0.0020976427476853132, -0.009823107160627842, 0.02365019917488098, 0.03286825865507126, 0.013017396442592144, 0.005796879064291716, -0.09901407361030579, 0.01450331974774599, -0.008159229531884193, -0.031907305121421814, 0.05068153887987137, -0.009662947617471218, 0.039007700979709625, -0.015037184581160545, 0.059436917304992676, 0.02692456729710102, -0.045769985765218735, -0.0038593956269323826, 0.004273140802979469, -0.020073305815458298, 0.04968499392271042, 0.040609296411275864, 0.001717264181934297, -0.013675829395651817, -0.02765418216586113, 0.0025113876909017563, 0.07410039752721786, -0.00951168593019247, 0.00787450186908245, 0.0029762948397547007, -0.0388297475874424, -0.013204249553382397, -0.0016927954275161028, 0.0016638777451589704, -0.0028317065443843603, -0.019521646201610565, -0.03114209696650505, -0.00862636137753725, 0.02658645436167717, 0.00032337731681764126, 0.014369853772222996, 0.025536520406603813, 0.020589375868439674, -0.03233439475297928, 0.033704645931720734, 0.024557767435908318, -0.016638778150081635, -0.005690106190741062, 0.06061141937971115, -0.027938909828662872, 0.00872423592954874, -0.022190969437360764, 0.015793493017554283, -0.02799229696393013, 0.08200158923864365, -0.030483664944767952, -0.05285258963704109, -0.04904435575008392, -0.022279946133494377, -0.04996972158551216, -0.02980743534862995, 0.005872509907931089, 0.03148021176457405, 0.033241964876651764, 0.04747835174202919, -0.08577423542737961, 0.0030541499145329, -0.07089720666408539, 0.06484674662351608, 0.05740823224186897, -0.08249986171722412, 0.02249349281191826, 0.029362548142671585, 0.03722815215587616, -0.026461884379386902, 0.005943691823631525, -0.042744752019643784, 0.03521726280450821, -0.06470438092947006, 0.05057476460933685, -0.026871182024478912, 0.0157490037381649, 0.042744752019643784, 0.012688180431723595, -0.09296361356973648, 0.006504249293357134, -0.030892960727214813, 0.029843026772141457, 0.030715005472302437, 0.03014555014669895, -0.06787198036909103, -0.03715697303414345, 0.02583904378116131, 0.002798339817672968, 0.06609243154525757, 0.0009331507026217878, 0.010196812450885773, -0.058298006653785706, -0.050325628370046616, 0.005138446111232042, -0.023151924833655357, 0.0703277513384819, -0.05135776847600937, 0.008968924172222614, 0.026550862938165665, -0.04438193887472153, 0.0027382802218198776, 0.004657967947423458, 0.015891367569565773, 0.019165735691785812, 0.08057795464992523, 0.00028834244585596025, 0.013444487936794758, -0.031320054084062576, -0.04658857733011246, -0.05388472601771355, -0.021194422617554665, -0.051606904715299606, -0.006028220523148775, -0.043563347309827805, 0.05061035603284836, -0.04544966667890549, 0.016994686797261238, 0.05666082352399826, 0.008906640112400055, -0.013764807023108006, -0.07573758065700531, -0.0018284859834238887, -0.011727224104106426, 0.03007436916232109, -0.002393492730334401, -0.019201327115297318, -0.06128764897584915, -0.06256892532110214, 0.11282336711883545, -0.0348079688847065, -0.019450465217232704, 0.011664940044283867, -0.023187516257166862, -0.03644515201449394, -0.05285258963704109, 0.014031738974153996, -0.05278140679001808, 0.05014767497777939, -0.0051962812431156635, -0.033491101115942, -0.004146347753703594, -0.0008124751038849354, -0.0022622509859502316, -0.0237747672945261, 0.0060104248113930225, -0.03374023735523224, 0.02685338631272316, 0.020144488662481308, -0.02365019917488098, 0.011264541186392307, -0.000058530458773020655, -0.011424700729548931, 0.03493253514170647, -0.004397708922624588, -0.004104083403944969, 0.07132430374622345, 0.009956573136150837, -0.05103744938969612, 0.016638778150081635, 0.02731606923043728, -0.04427516460418701, 0.0008013529004529119, 0.04676653444766998, 0.04655298590660095, 0.04025338590145111, 0.03427410125732422, -0.032387781888246536, -0.00034117279574275017, 0.0009665172547101974, 0.022315537557005882, 0.011602655984461308, 0.07780186086893082, 0.04975617304444313, 0.009618459269404411, 0.13688287138938904, -0.01895219087600708, -0.00671334657818079, -0.07353094220161438, -0.10421035438776016, 0.07068366557359695, 0.017323903739452362, -0.013480079360306263, -0.04701567068696022, 0.03007436916232109, 0.027885524556040764, -0.02818804793059826, 0.00014062602713238448, -0.02811686508357525, 0.008332735858857632, 0.025269588455557823, 0.01750185899436474, -0.0703277513384819, 0.005383133888244629, 0.021265603601932526, -0.0076876492239534855, -0.020518193021416664, 0.05399150028824806, -0.00584136787801981, -0.04779867082834244, -0.014645683579146862, -0.002005328657105565, -0.03155139461159706, -0.04648180678486824, -0.059899598360061646, -0.029771845787763596, -0.01882762275636196, -0.007282801903784275, 0.07872722297906876, 0.049186717718839645, 0.05687436833977699, -0.055593091994524, -0.023347675800323486, 0.007652058266103268, -0.09289243072271347, 0.012901726178824902, 0.03584010526537895, 0.06267569214105606, -0.052674632519483566, -0.03925683721899986, -0.030590437352657318, 0.014725763350725174, 0.03443426266312599, 0.005209628026932478, -0.06256892532110214, 0.005013877525925636, 0.021069852635264397, 0.11446055769920349, 0.00015167870151344687, -0.01934369094669819, 0.07317502796649933, 0.049115534871816635, -0.05384913459420204, -0.005543293431401253, -0.0022055278532207012, 0.025500928983092308, 0.021781673654913902, 0.022048605605959892, 0.010552722029387951, -0.03553758189082146, 0.017724301666021347, 0.02745843306183815, 0.04527171328663826, -0.009200265631079674, -0.05765736848115921, 0.0028517262544482946, 0.020838512107729912, -0.01570451445877552, -0.012679282575845718, 0.0036258299369364977, -0.005890305154025555, 0.04185497760772705, 0.03587569668889046, 0.016193890944123268, 0.005036122165620327, -0.013230942189693451, 0.011300132609903812, 0.007634262554347515, 0.04537848383188248, -0.03119548410177231, 0.01154926884919405, 0.011611553840339184, 0.05747941508889198, 0.06929561495780945, -0.04765630513429642, -0.0008858814253471792, -0.0655941516160965, 0.04783426225185394, 0.00906235072761774, 0.022404514253139496, 0.067658431828022, -0.003256573574617505, 0.06623478978872299, -0.02028685249388218, -0.041677024215459824, -0.062035057693719864, -0.00019700157281477004, 0.04381248354911804, -0.05545073002576828, 0.019521646201610565, -0.004017330706119537, -0.007042563054710627, 0.018098007887601852, 0.0165764931589365, -0.03843824565410614, -0.067658431828022, 0.052923768758773804, -0.03094634786248207, -0.08086267858743668, 0.021532535552978516, 0.0036836653016507626, -0.018311552703380585, 0.01336440909653902, 0.02069614827632904, 0.013996148481965065, -0.05349322408437729, -0.012029747478663921, -0.12271765619516373, -0.009253651835024357, 0.03333094343543053, 0.019575033336877823, 0.02430863119661808, 0.05637609586119652, 0.016496414318680763, 0.07200052589178085, -0.038545019924640656, 0.018160291016101837, -0.031640369445085526, 0.015348604880273342, -0.022938380017876625, -0.022262150421738625, -0.021479150280356407, 0.03060823306441307, 0.03697901591658592, 0.0716802105307579, -0.029967594891786575, 0.03651633486151695, 0.014868127182126045, 0.03276148810982704, 0.004159694537520409, 0.01226108893752098, -0.053742364048957825, -0.03521726280450821, -0.01820478029549122, 0.0029340304899960756, -0.024664541706442833, -0.013061885721981525, 0.0027271579019725323, -0.01493930909782648, -0.022279946133494377, 0.01580239087343216, 0.054347410798072815, -0.011371314525604248, -0.004299833904951811, -0.08783850818872452, -0.035181671380996704, 0.03390039876103401, 0.018863214179873466, 0.04975617304444313, 0.006455312017351389, 0.0475495345890522, 0.004907104652374983, 0.01793784834444523, -0.003826029133051634, 0.025020450353622437, 0.013115271925926208, -0.024201858788728714, -0.019859760999679565, 0.024967065081000328, -0.009493891149759293, 0.010463744401931763, 0.02457556314766407, -0.005623373202979565, -0.043563347309827805, 0.01549986656755209, 0.03541301190853119, -0.010526029393076897, 0.005574435461312532, 0.041499070823192596, 0.01570451445877552, 0.001391384401358664, -0.03333094343543053, -0.03546639904379845, 0.02470013126730919, 0.025500928983092308, -0.069615937769413, 0.058298006653785706, 0.040146611630916595, -0.007923439145088196, 0.01587357185781002, 0.02537636086344719, 0.035590969026088715, -0.007287250831723213, 0.025483133271336555, 0.02295617386698723, 0.037334926426410675, -0.0358223095536232, 0.013497875072062016, -0.04950703680515289, 0.0381891094148159, 0.009324833750724792, 0.02959389053285122, -0.02470013126730919, 0.007087051402777433, -0.013622443191707134, 0.009129083715379238, -0.013150863349437714, 0.022529082372784615, -0.06844143569469452, 0.03897210955619812, -0.02954050339758396, -0.01989535056054592, 0.08086267858743668, -0.02277822047472, -0.06502469629049301, 0.04527171328663826, -0.017590835690498352, -0.006099402438849211, 0.015562150627374649, 0.009832005016505718, -0.01856069080531597, -0.024593358859419823, 0.049720581620931625, 0.024201858788728714, 0.00438658706843853, 0.021141035482287407, -0.04039574787020683, -0.015428684651851654, 0.06812111288309097, -0.010152324102818966, 0.02290278859436512, -0.0010338063584640622, -0.00997436884790659, 0.012421248480677605, -0.031177688390016556, -0.058903053402900696, -0.07609348744153976, -0.02724488638341427, -0.030501460656523705, -0.027066931128501892, -0.005516600329428911, -0.044631075114011765, 0.016256174072623253, -0.005774634424597025, 0.06691101938486099, -0.0515713132917881, -0.006468658335506916, 0.03039468638598919, 0.015010491013526917, 0.04473784565925598, -0.007345085963606834, 0.0018295982154086232, -0.027031339704990387, -0.01386268250644207, -0.047585126012563705, -0.01148698478937149, -0.033829215914011, 0.03897210955619812, 0.014672377146780491, -0.049186717718839645, -0.005351991858333349, 0.011753917671740055, -0.015295218676328659, 0.00021048721100669354, -0.01456560380756855, 0.01822257600724697, -0.01740398444235325, 0.007229415699839592, 0.008679747581481934, -0.030910756438970566, 0.004159694537520409, 0.0562337301671505, 0.02806347794830799, -0.029700662940740585, -0.04107197746634483, 0.016523107886314392, -0.008074700832366943, -0.0024780211970210075, 0.009164674207568169, -0.06812111288309097, -0.030483664944767952, 0.08228632062673569, -0.0049382466822862625, -0.007825564593076706, 0.008844356052577496, -0.020607171580195427, -0.050788313150405884, 0.04043133929371834, 0.019592829048633575, -0.021318990737199783, 0.052389904856681824, 0.013453385792672634, 0.041214343160390854, 0.02617715671658516, 0.042815934866666794, 0.05384913459420204, 0.021514739841222763, 0.029825231060385704, 0.06021991744637489, -0.062035057693719864, 0.0435277558863163, 0.038402654230594635, 0.012029747478663921, 0.009360425174236298, 0.03477237746119499, 0.0642772912979126, 0.03979070112109184, -0.020927488803863525, 0.030715005472302437, -0.03822470083832741, -0.06772961467504501, -0.008154780603945255, 0.0015404216246679425, 0.0034456506837159395, 0.000005956447694188682, -0.037406109273433685, 0.006428618915379047, 0.015962548553943634, 0.028241433203220367, -0.006081606727093458, 0.009093492291867733, 0.06014873832464218, 0.0012045318726450205, -0.008497343398630619, -0.06634156405925751, 0.0005369231221266091, 0.026622043922543526, -0.03712138161063194, 0.025465337559580803, 0.011504780501127243, 0.018436120823025703, -0.009484993293881416, 0.029914209619164467, -0.054062679409980774, -0.009467197582125664, 0.025661088526248932, 0.004778087604790926, 0.08648605644702911, 0.014690171927213669, -0.010356971994042397, -0.00197529885917902, 0.02498486079275608, 0.015108366496860981, -0.07609348744153976, -0.03000318631529808, 0.0636366531252861, -0.005859163124114275, 0.03610703721642494, 0.024130675941705704, -0.024059494957327843, -0.05096626654267311, 0.031017528846859932, 0.015446480363607407, 0.049649402499198914, 0.013942762278020382, 0.013497875072062016, -0.04117875173687935, -0.07644940167665482, -0.025216201320290565, -0.0052763610146939754, -0.021710490807890892, -0.009200265631079674, -0.04050252214074135, -0.044488709419965744, -0.009609561413526535, 0.048190172761678696, 0.008332735858857632, -0.03203187137842178, 0.04107197746634483, -0.018578486517071724, 0.004773638676851988, 0.02777875028550625, 0.01961062289774418, 0.014316467568278313, -0.044702257961034775, 0.0763782188296318, 0.010837449692189693, 0.0016749999485909939, 0.0184183269739151, 0.025465337559580803, 0.01352456770837307, -0.012625896371901035, 0.019984329119324684, -0.001331324689090252, -0.06609243154525757, 0.06242655962705612, 0.016247278079390526, -0.014147410169243813, 0.05630491301417351, -0.029611686244606972, -0.03826029226183891, -0.01961062289774418, -0.06324514746665955, -0.017920052632689476, 0.026159361004829407, -0.029754050076007843, -0.042744752019643784, -0.0031653717160224915, -0.04548525810241699, 0.007785524241626263, -0.011139973066747189, -0.048652853816747665, -0.026088180020451546, 0.02135458029806614, -0.0012946214992552996, -0.01621168665587902, -0.011495882645249367, -0.017048073932528496, 0.026693226769566536, 0.04064488783478737, -0.012688180431723595, -0.040609296411275864, 0.02678220346570015, -0.029789641499519348, -0.06844143569469452, -0.04139229655265808, -0.007087051402777433, -0.052674632519483566, -0.031782735139131546, 0.019041167572140694, -0.0005385914701037109, -0.010419256053864956, 0.06712456792593002, 0.03712138161063194, -0.016131605952978134, -0.03607144579291344, -0.04000424966216087, -0.03034130111336708, 0.01888100802898407, 0.0251094289124012, -0.03162257373332977, -0.013711420819163322, -0.002827257616445422, -0.00828824657946825, 0.03687224164605141, 0.020980875939130783, -0.031320054084062576, 0.06399255990982056, -0.01982416957616806, 0.007207171060144901, 0.029309162870049477, 0.0344698540866375, -0.03890093043446541, 0.05014767497777939, -0.0009926543571054935, 0.0024135124403983355, -0.013168658129870892, 0.05680318549275398, 0.02016228437423706, 0.03712138161063194, -0.028134660795331, -0.013853784650564194, -0.005512151401489973, -0.0007023655343800783, -0.05189163237810135, 0.009280345402657986, -0.041961751878261566, -0.012047543190419674, 0.004568990785628557, -0.05203399434685707, -0.0030274568125605583, -0.0401822030544281, -0.04431075602769852, -0.02557211183011532, 0.0006261785747483373, 0.0237747672945261, -0.02557211183011532, -0.017048073932528496, 0.021550331264734268, -0.03705019876360893, -0.0019063412910327315, -0.04701567068696022, -0.04648180678486824, -0.03167596086859703, -0.03142682462930679, 0.012705976143479347, -0.0179111547768116, 0.012287781573832035, -0.017439574003219604, 0.016149401664733887, -0.012225497514009476, 0.039541564881801605, -0.022724833339452744, 0.01994873769581318, -0.016718856990337372, -0.004468890838325024, -0.024878086522221565, -0.03546639904379845, 0.04178379848599434, 0.0190767589956522, -0.042744752019643784, -0.057230278849601746, 0.032708100974559784, -0.007923439145088196, 0.006415272131562233, 0.003530179150402546, -0.014325364492833614, 0.01500159315764904, 0.07723239809274673, -0.04199734330177307, -0.050254449248313904, -0.06278246641159058, -0.000285839952994138, -0.018000131472945213, -0.009832005016505718, 0.0024379813112318516, 0.09730570763349533, -0.01943266950547695, -0.011985259130597115, -0.06666188687086105, -0.06819229573011398, -0.014859229326248169, 0.004500032868236303, -0.030768392607569695, 0.05904541537165642, 0.013835988938808441, 0.03772642835974693, 0.02551872469484806, 0.056091368198394775, 0.017359495162963867, 0.04680212214589119, 0.037406109273433685, -0.013471181504428387, 0.0070826029404997826, 0.05861832574009895, -0.02416626736521721, -0.025661088526248932, 0.0823575034737587, 0.06078937277197838, -0.04719362407922745, 0.05228313431143761, 0.025483133271336555, -0.0172527227550745, 0.057230278849601746, -0.006464209873229265, -0.0024646746460348368, 0.024593358859419823, 0.019592829048633575, -0.019236918538808823, 0.03060823306441307, 0.004729149863123894, -0.028953252360224724, -0.047976624220609665, -0.06979388743638992, -0.013586852699518204, -0.05096626654267311, 0.010321380570530891, 0.005458764731884003, 0.00746965454891324, 0.03181832656264305, -0.007318392861634493 ]
30,314
networkx.algorithms.planarity
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`.
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`. """ for n in nodes: if n in self._node: self.remove_node(n) # silently skip non-existing nodes
(self, nodes)
[ -0.041054289788007736, 0.015041441656649113, -0.048805054277181625, 0.007153532933443785, -0.10808603465557098, 0.028313303366303444, -0.045655202120542526, 0.06954454630613327, 0.11643845587968826, 0.027428511530160904, -0.012537484057247639, -0.0019332676893100142, 0.01317453384399414, 0.042257603257894516, -0.005410495214164257, -0.03670112043619156, -0.030082883313298225, 0.007910029031336308, 0.046893905848264694, -0.024685660377144814, -0.015280335210263729, 0.011696932837367058, 0.018739867955446243, 0.03903696686029434, -0.02718077041208744, -0.012086241506040096, 0.038683049380779266, 0.01795240305364132, -0.03701964393258095, 0.02712768316268921, -0.011926978826522827, 0.007193348370492458, -0.018846042454242706, -0.023216908797621727, 0.019713137298822403, 0.04293004423379898, 0.0063041336834430695, 0.053724490106105804, -0.07743687927722931, 0.00897620152682066, -0.04395640268921852, -0.0063041336834430695, 0.04707086458802223, -0.020474057644605637, 0.04919436201453209, 0.01282061729580164, 0.06957994401454926, 0.05025611072778702, -0.02257985807955265, 0.008852330967783928, 0.040063321590423584, -0.013979692943394184, -0.005786531139165163, 0.042576130479574203, 0.005804227199405432, 0.03921392560005188, -0.02749929577112198, 0.022172855213284492, 0.04884044826030731, 0.020881060510873795, 0.05291048437356949, 0.0002412437170278281, -0.024455614387989044, -0.019306132569909096, 0.0044084698893129826, -0.005556485615670681, -0.008157770149409771, -0.03294960781931877, -0.0497252382338047, -0.007839245721697807, -0.05393684282898903, 0.003258241806179285, 0.02695072442293167, 0.029056526720523834, 0.05595416575670242, 0.031799379736185074, -0.02392474003136158, 0.07326067239046097, -0.028879567980766296, -0.026773767545819283, 0.045088935643434525, -0.014926419593393803, -0.01854521408677101, 0.02197820134460926, 0.04661077633500099, -0.0014112411299720407, 0.002152253407984972, 0.04445188492536545, -0.00917528010904789, -0.042717695236206055, -0.04367326945066452, -0.019483091309666634, -0.032224077731370926, 0.0052246893756091595, 0.04370865970849991, 0.06752722710371017, -0.01866908371448517, -0.05758218094706535, -0.012006609700620174, -0.04735399782657623, 0.05984724313020706, -0.03103845752775669, -0.04186829552054405, 0.013316100463271141, 0.0007061735959723592, -0.0422929972410202, -0.04009871557354927, -0.00393068278208375, 0.022314421832561493, 0.01918226294219494, -0.08805437386035919, 0.04477040842175484, 0.06681939214468002, 0.017271114513278008, 0.01791701279580593, -0.019341524690389633, -0.030737629160284996, -0.02861413173377514, -0.012670203112065792, 0.003941742703318596, -0.04356709495186806, 0.04091272130608559, -0.019270742312073708, 0.0403110645711422, 0.03526775911450386, 0.005114090163260698, 0.06412962824106216, 0.022792208939790726, -0.01703222095966339, -0.07538416981697083, 0.006242198403924704, -0.0044328016228973866, -0.011095275171101093, 0.02955200895667076, 0.0477433055639267, -0.021128801628947258, -0.04055880755186081, -0.026596808806061745, 0.05910401791334152, -0.0028092104475945234, -0.04809722304344177, -0.020403273403644562, 0.031728595495224, 0.034453749656677246, 0.009785785339772701, -0.01677563227713108, -0.012909096665680408, -0.053866058588027954, -0.07184500247240067, 0.003368840552866459, -0.044947367161512375, 0.029852839186787605, 0.044062577188014984, 0.00003387089600437321, -0.10058300942182541, 0.034860752522945404, -0.03432988002896309, -0.02234981395304203, -0.05644964799284935, 0.039886366575956345, -0.011758868582546711, 0.0305783674120903, 0.007529568858444691, -0.00400146609172225, -0.017076460644602776, -0.058290012180805206, 0.05053924396634102, -0.01686411164700985, -0.057723745703697205, 0.013112598098814487, -0.014811396598815918, -0.014041628688573837, -0.015324574895203114, -0.012050849385559559, -0.010546705685555935, -0.0037581485230475664, 0.02880878560245037, -0.04218682274222374, -0.028649523854255676, 0.017908163368701935, -0.035851720720529556, -0.020845668390393257, -0.00904698483645916, -0.023393865674734116, 0.026791462674736977, 0.027428511530160904, -0.016598673537373543, 0.019430004060268402, -0.009369933977723122, -0.0300121009349823, 0.03234794735908508, -0.03386978805065155, 0.0035767664667218924, 0.09428329765796661, 0.05722826346755028, -0.008843483403325081, -0.020332491025328636, -0.012210112065076828, -0.07071247696876526, 0.06151064857840538, -0.0039572264067828655, 0.00040340927080251276, 0.017987795174121857, -0.0021434056106954813, -0.0031520668417215347, -0.006675745826214552, 0.0191468708217144, -0.01854521408677101, 0.00879039615392685, -0.002364603104069829, 0.021818939596414566, -0.03160472586750984, 0.09909655898809433, 0.0026587960310280323, -0.01620936580002308, -0.012909096665680408, -0.08564773947000504, 0.036170244216918945, -0.028419477865099907, -0.05662660673260689, -0.0064766681753098965, 0.008352424018085003, -0.0010136383352801204, -0.09152275323867798, 0.017218027263879776, -0.013112598098814487, 0.014333609491586685, -0.027251554653048515, 0.049229755997657776, -0.03367513418197632, 0.06257239729166031, -0.003163126762956381, 0.03878922387957573, 0.007812702096998692, 0.05078698694705963, -0.017271114513278008, -0.013714255765080452, -0.03903696686029434, 0.024597181007266045, 0.031250808387994766, -0.07871098071336746, -0.04335474595427513, -0.013094902969896793, -0.010228180326521397, 0.048663489520549774, 0.0737561509013176, -0.0031034033745527267, 0.017297659069299698, -0.012227807193994522, 0.022686034440994263, -0.009688458405435085, -0.05867931991815567, 0.03615254908800125, 0.010829837992787361, 0.031710900366306305, 0.01646595448255539, -0.003337872913107276, -0.030967675149440765, -0.0014798124320805073, 0.0035457988269627094, 0.020314794033765793, -0.017483463510870934, -0.001039076130837202, 0.07074786722660065, 0.09138118475675583, 0.01789046823978424, 0.042399171739816666, 0.06522677093744278, -0.04038184881210327, 0.0028932655695825815, 0.04622146487236023, 0.014643286354839802, 0.07290675491094589, 0.0013493058504536748, 0.0285787396132946, -0.003076859749853611, -0.050857771188020706, -0.01319222990423441, 0.008193162269890308, 0.016227060928940773, 0.03510849550366402, -0.026879942044615746, -0.0037227568682283163, 0.00683058425784111, -0.010829837992787361, -0.016598673537373543, 0.02620750106871128, 0.004915012512356043, -0.0024088427890092134, 0.010927164927124977, 0.014386696740984917, -0.014492872171103954, -0.004888468887656927, -0.00910449679940939, -0.033144261687994, 0.01057324931025505, -0.028879567980766296, 0.0142893698066473, 0.001021933276206255, 0.04993758723139763, 0.07786158472299576, -0.06469589471817017, -0.020403273403644562, -0.06073203310370445, 0.050610028207302094, -0.024455614387989044, 0.05694513022899628, 0.025145752355456352, -0.008688644506037235, 0.015014898031949997, -0.052202653139829636, -0.008056019432842731, -0.04317778721451759, -0.049689847975969315, -0.005445886868983507, -0.018155904486775398, 0.03475457802414894, -0.014899875968694687, 0.016793327406048775, 0.0477433055639267, -0.04533667489886284, -0.025729713961482048, -0.06692557036876678, 0.07057090848684311, -0.0703231692314148, 0.022048983722925186, 0.004266903270035982, 0.09569896012544632, -0.01493526715785265, 0.01820899359881878, -0.0029352931305766106, -0.006454548332840204, 0.011997762136161327, -0.007489753421396017, -0.01319222990423441, -0.01955387555062771, 0.03471918776631355, 0.017111852765083313, 0.05319361761212349, -0.01161730196326971, -0.020403273403644562, 0.031710900366306305, -0.017872773110866547, -0.005162753630429506, -0.03275495395064354, 0.0403110645711422, 0.00581749901175499, -0.015855450183153152, 0.02387165278196335, 0.000030069058993831277, 0.006693441886454821, 0.12188877165317535, -0.010467073880136013, -0.002199810929596424, 0.0018713324097916484, 0.017970100045204163, 0.007020814344286919, 0.04275308549404144, -0.00499464338645339, -0.048061832785606384, 0.007206620182842016, 0.02392474003136158, 0.04232838749885559, -0.010175093077123165, 0.04692929983139038, -0.020597927272319794, 0.005445886868983507, 0.0050521548837423325, 0.006919063162058592, -0.06890749931335449, 0.0036984251346439123, -0.03896618261933327, -0.066288523375988, 0.038683049380779266, -0.036453377455472946, 0.0488758385181427, -0.005932521540671587, 0.01772235706448555, -0.007025238126516342, 0.06005959212779999, -0.028968047350645065, -0.03797521814703941, 0.02847256511449814, 0.0037957520689815283, 0.010555553250014782, -0.040488023310899734, 0.022986862808465958, -0.0096442187204957, 0.02820712700486183, 0.02810095250606537, -0.02852565236389637, -0.036081764847040176, 0.002399994758889079, 0.02020861953496933, -0.05107012018561363, -0.016421714797616005, 0.05276891961693764, -0.03270186483860016, -0.0365949422121048, -0.08154231309890747, 0.013900062069296837, -0.01666060835123062, -0.04324857145547867, 0.04696469008922577, 0.012121632695198059, -0.0034197161439806223, -0.011360712349414825, -0.017704661935567856, 0.055635638535022736, 0.0015793513739481568, 0.039143141359090805, 0.006821736227720976, 0.012856009416282177, 0.0057334438897669315, 0.0201555322855711, -0.04692929983139038, 0.0006967727094888687, 0.02266833744943142, 0.07609200477600098, 0.009785785339772701, 0.015059137716889381, -0.014413240365684032, 0.002194280968979001, -0.0014057112857699394, 0.04965445399284363, -0.033480480313301086, 0.014130108058452606, -0.05871471017599106, 0.004025797825306654, 0.04951288923621178, -0.03220638260245323, -0.07368537038564682, 0.009334541857242584, -0.06193535029888153, 0.019571570679545403, 0.008480719290673733, -0.0371612086892128, -0.0036807293072342873, 0.015448445454239845, 0.047460172325372696, -0.04353170469403267, 0.0015937292482703924, 0.03569245710968971, -0.10164475440979004, -0.017271114513278008, -0.007224316243082285, -0.03562167286872864, 0.0012785225408151746, 0.014475176110863686, 0.03374591842293739, -0.01403278112411499, 0.0009384311269968748, -0.00634394958615303, -0.08968238532543182, -0.008551502600312233, -0.006224502809345722, -0.05078698694705963, 0.018279775977134705, -0.02852565236389637, -0.007357034832239151, 0.051459427922964096, 0.0078613655641675, -0.019536178559064865, 0.022172855213284492, 0.007365882862359285, -0.026968421414494514, 0.057723745703697205, -0.03153394162654877, 0.008609013631939888, 0.01703222095966339, 0.05276891961693764, -0.05421997606754303, -0.00630855793133378, -0.06020116060972214, 0.0060254246927797794, 0.014607894234359264, -0.05199030041694641, -0.03576324135065079, -0.019040696322917938, -0.04275308549404144, -0.031144633889198303, -0.04930054023861885, 0.08161309361457825, 0.015740426257252693, 0.01226319931447506, 0.0014123471919447184, -0.009962743148207664, -0.04038184881210327, 0.012280895374715328, -0.00011225781781831756, 0.0026411002036184072, -0.13066589832305908, -0.0208633653819561, -0.006153719499707222, 0.048805054277181625, -0.015784665942192078, -0.04756634682416916, -0.05241500213742256, 0.021535806357860565, -0.004587640054523945, 0.0012110573006793857, 0.0700400322675705, 0.05811305344104767, -0.0048575010150671005, 0.06742104887962341, 0.002000733045861125, 0.04919436201453209, 0.021907417103648186, -0.006773072760552168, -0.02238520421087742, -0.012979879975318909, 0.013422274962067604, 0.024455614387989044, 0.01184734795242548, 0.015784665942192078, -0.04119585454463959, -0.06119212508201599, 0.07708296924829483, 0.0354447141289711, -0.0023225755430758, -0.006649202201515436, 0.01686411164700985, 0.0091487355530262, 0.0560249462723732, -0.021022627130150795, -0.00009518412844045088, -0.017394986003637314, -0.03949705883860588, 0.0185806043446064, 0.007489753421396017, 0.017801988869905472, 0.025729713961482048, -0.024402527138590813, -0.02197820134460926, 0.005352983716875315, -0.01955387555062771, 0.024402527138590813, -0.02735772915184498, 0.029392747208476067, 0.03346278518438339, 0.03670112043619156, -0.0007935466710478067, 0.040169499814510345, 0.06179378181695938, -0.035373933613300323, 0.04176212102174759, 0.021075714379549026, -0.015943927690386772, -0.02197820134460926, 0.057263653725385666, -0.045407459139823914, -0.05418458208441734, -0.008436479605734348, 0.03698424994945526, 0.06848280131816864, -0.05690973997116089, -0.014475176110863686, -0.0016368628712370992, 0.02289838343858719, 0.007197772618383169, -0.03680729493498802, -0.017642727121710777, 0.012767530046403408, 0.020686406642198563, -0.009830025024712086, -0.004640727303922176, -0.006578418891876936, -0.04622146487236023, 0.0304368007928133, 0.08048056066036224, -0.00047778699081391096, 0.0491589717566967, 0.0014919782988727093, -0.016731392592191696, -0.04884044826030731, -0.01351960189640522, -0.002835754305124283, -0.009316845797002316, -0.040488023310899734, -0.06182917580008507, -0.05765296146273613, 0.011174906976521015, 0.03878922387957573, -0.0065253316424787045, 0.05375988408923149, 0.05567103251814842, -0.03195863962173462, -0.0001418430038029328, 0.022031288594007492, 0.05729904770851135, 0.07018160074949265, -0.05319361761212349, 0.07467633485794067, -0.01351960189640522, -0.06727948784828186, -0.005627268925309181, 0.03709042817354202, -0.03052528016269207, -0.08083447813987732, 0.000701196666341275, -0.011856195516884327, -0.01233398262411356, 0.10214024037122726, 0.05064541846513748, -0.004711510613560677, -0.012847160920500755, -0.015598860569298267, -0.024650270119309425, 0.020597927272319794, -0.0018846042221412063, 0.007980812340974808, 0.05276891961693764, 0.037515126168727875, -0.014882179908454418, 0.005366255529224873, 0.02797708287835121, -0.009352237917482853, 0.023358475416898727, -0.003833355847746134, -0.052804309874773026, -0.01840364746749401, -0.0603073351085186, -0.0337282232940197, -0.012740986421704292, -0.018704475834965706, 0.013130294159054756, -0.009095648303627968, 0.005715747829526663, -0.03583402559161186, 0.037055034190416336, -0.02921578846871853, -0.1071658506989479, 0.018916824832558632, 0.008962930180132389, -0.030224449932575226, -0.04427492618560791, -0.0013636837247759104, -0.012413613498210907, -0.04710625857114792, 0.017766596749424934, 0.051176294684410095, -0.03346278518438339, -0.037833649665117264, -0.02583588846027851, -0.06844741106033325, -0.06582842767238617, -0.03638259321451187, -0.005715747829526663, 0.032772649079561234, -0.0064368522725999355, 0.02132345549762249, 0.05627268925309181, 0.019076088443398476, -0.021305760368704796, -0.012873704545199871, 0.0009235002798959613, -0.011236841790378094, 0.003258241806179285, 0.02695072442293167, -0.035002321004867554, 0.03371052443981171, 0.02378317341208458, 0.0697569027543068, 0.05942254513502121, 0.022969167679548264, -0.043602485209703445, 0.04646920785307884, -0.030118275433778763, 0.015324574895203114, 0.04919436201453209, -0.04232838749885559, -0.0457259826362133, 0.022792208939790726, -0.01866908371448517, -0.01951848343014717, 0.014475176110863686, -0.016227060928940773, 0.010820990428328514, -0.01196237001568079, -0.0013791675446555018, -0.037515126168727875, 0.05499859154224396, -0.03302038833498955, -0.03701964393258095, -0.019270742312073708, 0.047601740807294846, -0.049866802990436554, 0.028171736747026443, -0.04445188492536545, 0.015165313147008419, -0.0003953908453695476, -0.04101889580488205, 0.03010058030486107, 0.011440344154834747, -0.019996270537376404, 0.05570642277598381, 0.005613997112959623, -0.052202653139829636, 0.028773393481969833, 0.008533806540071964, 0.010971404612064362, 0.01709415577352047, -0.03896618261933327, 0.013634624890983105, -0.007427818141877651, 0.0037891161628067493, -0.0011198132997378707, 0.03390517830848694, -0.014484023675322533, 0.06533294916152954, -0.015536924824118614, -0.005419343244284391, 0.03985097259283066, 0.04707086458802223, 0.0009776937076821923, -0.005109666381031275, 0.01755424775183201, -0.04855731502175331, -0.008980625309050083, -0.015413054265081882, -0.024137090891599655, -0.016218213364481926, 0.03592250123620033, 0.03953244909644127, -0.03470149263739586, -0.00005654365668306127, 0.01877525821328163, -0.03503771126270294, 0.0070827496238052845, 0.014103563502430916, -0.021907417103648186, 0.0734730213880539, -0.04186829552054405, 0.00017834063328336924, -0.021058019250631332, -0.04469962790608406, -0.019394611939787865, 0.04324857145547867, 0.01359038520604372, -0.006370493210852146, -0.015784665942192078, -0.01712070032954216, -0.008454175665974617, 0.020049357786774635, -0.01479370053857565, -0.05053924396634102, -0.024367136880755424, 0.05570642277598381, -0.005636116955429316, -0.054467715322971344, 0.054007623344659805, 0.05305205285549164, -0.025588147342205048, -0.042116038501262665, 0.06862436980009079, 0.003415292128920555, -0.0037382408045232296, -0.035285454243421555, -0.059811852872371674, -0.0666070431470871, -0.04399179294705391, 0.023446952924132347, -0.027587775141000748, 0.00873288419097662, 0.0027981505263596773, 0.02475644461810589, 0.04009871557354927, 0.012068545445799828 ]
30,316
networkx.algorithms.planarity
set_data
Inserts edges according to given sorted neighbor list. The input format is the same as the output format of get_data(). Parameters ---------- data : dict A dict mapping all nodes to a list of neighbors sorted in clockwise order. See Also -------- get_data
def set_data(self, data): """Inserts edges according to given sorted neighbor list. The input format is the same as the output format of get_data(). Parameters ---------- data : dict A dict mapping all nodes to a list of neighbors sorted in clockwise order. See Also -------- get_data """ for v in data: ref = None for w in reversed(data[v]): self.add_half_edge(v, w, cw=ref) ref = w
(self, data)
[ 0.01395025197416544, -0.015207989141345024, -0.06430401653051376, -0.005637673195451498, -0.03893670439720154, 0.020708374679088593, -0.01181564200669527, -0.00012981484178453684, 0.007196558639407158, 0.0004032840661238879, -0.0460934042930603, 0.003361346432939172, 0.016793446615338326, -0.014995413832366467, -0.0033547033090144396, -0.013622531667351723, -0.019308920949697495, 0.0675635039806366, -0.005185950547456741, -0.0007285131723619998, 0.0005660370225086808, -0.05597815290093422, -0.04113331437110901, 0.01179792732000351, -0.0015234560705721378, 0.013985681347548962, -0.03022111766040325, 0.04751057177782059, 0.02775878645479679, 0.015411706641316414, -0.022355832159519196, -0.04488880932331085, 0.000026277817596565, -0.022727839648723602, 0.07340932637453079, -0.0397515743970871, 0.05898963660001755, -0.02439301088452339, -0.06883895397186279, 0.08531354367733002, 0.017076879739761353, -0.05987536534667015, -0.03004397079348564, 0.011018484830856323, 0.07447220385074615, 0.08311692625284195, 0.021151239052414894, 0.05682845413684845, 0.030646268278360367, -0.056226156651973724, -0.02426900900900364, -0.0764562338590622, 0.011310775764286518, -0.0015710641164332628, 0.04513681307435036, 0.059627361595630646, 0.019131774082779884, 0.022674694657325745, 0.07553508132696152, 0.0028166223783046007, 0.029353100806474686, -0.030965130776166916, -0.018246043473482132, -0.056580450385808945, -0.019787214696407318, 0.01587228663265705, -0.05013233423233032, -0.02256840653717518, -0.019432922825217247, 0.015190274454653263, 0.004174003843218088, 0.050699200481176376, 0.028981095179915428, 0.01215221919119358, 0.01181564200669527, 0.07971572130918503, 0.02506616711616516, 0.04084987938404083, -0.005469384603202343, 0.01906091533601284, 0.011115915141999722, -0.03674009069800377, 0.021328385919332504, 0.029034238308668137, -0.027209633961319923, 0.019804928451776505, 0.011496778577566147, 0.0580330491065979, -0.0066695488058030605, -0.03557092696428299, -0.0003628726117312908, -0.026766769587993622, -0.06352457404136658, -0.027475353330373764, 0.03426004573702812, 0.031549710780382156, -0.011142486706376076, -0.06054852157831192, -0.018192900344729424, 0.03780296817421913, 0.022143257781863213, -0.0031753431539982557, 0.012922804802656174, 0.016908591613173485, -0.01727174036204815, -0.1412208378314972, 0.003928213845938444, 0.005797104444354773, -0.10635849088430405, -0.011966216377913952, -0.056226156651973724, 0.011452492326498032, 0.030787983909249306, 0.02008836343884468, 0.013578245416283607, 0.004601368680596352, 0.04318820685148239, -0.014189398847520351, 0.029725108295679092, 0.03914927691221237, -0.02494216524064541, 0.0015821356792002916, -0.0010822516633197665, 0.06813037395477295, -0.04198361560702324, -0.03199257701635361, 0.05544671416282654, 0.008051288314163685, -0.06674863398075104, -0.11153115332126617, 0.07216930389404297, -0.01493341289460659, -0.07433048635721207, 0.016669442877173424, 0.012338222935795784, -0.044286515563726425, 0.0073559898883104324, -0.015376277267932892, 0.04598711431026459, -0.05700559914112091, 0.013684532605111599, -0.052506089210510254, -0.0032617016695439816, 0.0347914844751358, 0.012967091053724289, -0.00685112364590168, -0.008184147998690605, 0.032134294509887695, 0.013268239796161652, 0.010212469846010208, 0.012922804802656174, 0.0473688542842865, 0.01991121657192707, -0.011895357631146908, -0.005092949140816927, -0.06093824282288551, -0.04067273437976837, -0.0397515743970871, -0.014366544783115387, 0.052187226712703705, 0.02304670214653015, -0.0337817519903183, 0.0016895305598154664, -0.008237291127443314, -0.053072959184646606, 0.027245063334703445, 0.005761675536632538, -0.04109788313508034, 0.013418813236057758, 0.004530510399490595, 0.03656294569373131, -0.0436842180788517, -0.09112393110990524, 0.028910236433148384, 0.015190274454653263, -0.04170018061995506, -0.03463205322623253, -0.02511931024491787, 0.03833440691232681, 0.00930902548134327, -0.04184189811348915, 0.008848445490002632, 0.04772314801812172, -0.037200670689344406, -0.013401099480688572, -0.029140526428818703, 0.037200670689344406, -0.025402745231986046, 0.03691723942756653, 0.014401974156498909, -0.0305399801582098, -0.0623554103076458, -0.04134589061141014, 0.009813891723752022, 0.043577928096055984, 0.006217826623469591, -0.020619800314307213, 0.005451669916510582, -0.019858073443174362, 0.04010586813092232, -0.01285194605588913, -0.07135443389415741, 0.06720921397209167, -0.030079400166869164, 0.03776754066348076, 0.019716355949640274, 0.04485338181257248, -0.014393117278814316, 0.06309942156076431, 0.010336472652852535, 0.06944125145673752, -0.015411706641316414, 0.010168183594942093, -0.033657751977443695, 0.0032772021368145943, -0.028361083939671516, -0.0497780404984951, -0.0004234897787682712, -0.017254026606678963, -0.036492086946964264, -0.03085884265601635, 0.013064521364867687, -0.011496778577566147, 0.005717388819903135, -0.005150521639734507, -0.023755285888910294, -0.0019242489943280816, -0.0623554103076458, -0.024694159626960754, 0.013852821663022041, 0.03243544325232506, -0.0017316027078777552, -0.03291373699903488, -0.027422210201621056, 0.005566814914345741, -0.026430191472172737, -0.013197381049394608, -0.011868786066770554, -0.006045109126716852, 0.06093824282288551, -0.012807659804821014, 0.003095627296715975, 0.011045056395232677, -0.009030019864439964, -0.046483125537633896, 0.007586279883980751, 0.032807450741529465, -0.021009521558880806, 0.02286955527961254, 0.030787983909249306, -0.03578350320458412, -0.035500068217515945, -0.02983139641582966, -0.032860592007637024, -0.001169163966551423, -0.04318820685148239, 0.03829897567629814, 0.01464112102985382, 0.034419476985931396, -0.030203402042388916, -0.02951253205537796, -0.000249388423981145, 0.03337431699037552, 0.05080549046397209, 0.023082131519913673, 0.007426848169416189, -0.017670318484306335, -0.0007257452234625816, -0.049494609236717224, -0.022320402786135674, 0.004196146968752146, -0.019096344709396362, 0.04233790561556816, 0.012444510124623775, 0.034649766981601715, 0.04804201051592827, 0.046447694301605225, -0.02878623455762863, -0.009574743919074535, -0.010150468908250332, 0.05980450659990311, -0.021363813430070877, -0.03677552193403244, -0.009920178912580013, -0.026837626472115517, -0.0002625359920784831, 0.007112414110451937, 0.02327699214220047, 0.022621551528573036, -0.07195672392845154, 0.0008962483261711895, 0.029353100806474686, -0.027953647077083588, 0.056084442883729935, 0.024871306493878365, 0.0036182082258164883, 0.04265677183866501, 0.035765789449214935, 0.05055748298764229, 0.018919197842478752, 0.03688180819153786, -0.06618176400661469, 0.11854614317417145, 0.0021191097330302, -0.023879287764430046, -0.03790925443172455, 0.014517119154334068, 0.009574743919074535, -0.028042221441864967, -0.09062792360782623, 0.005301095545291901, 0.03688180819153786, -0.05502156540751457, -0.0032462014351040125, 0.01844090409576893, -0.03893670439720154, -0.012435653246939182, 0.012674800120294094, -0.016758017241954803, 0.06150510907173157, -0.034596625715494156, -0.013339097611606121, -0.04233790561556816, -0.017758892849087715, 0.015792571008205414, 0.036846380680799484, 0.0732676088809967, -0.010646478272974491, 0.007599565666168928, 0.0047386568039655685, 0.012825374491512775, -0.04655398428440094, 0.001900998642668128, 0.06614633649587631, -0.020283224061131477, 0.03762582316994667, -0.002694834256544709, -0.0060052513144910336, -0.007178843952715397, 0.00841886643320322, -0.024729589000344276, 0.05183293670415878, 0.020424939692020416, 0.003252844326198101, 0.04853801801800728, 0.016855446621775627, -0.00638168677687645, -0.015650853514671326, -0.045597393065690994, 0.07185044139623642, 0.0033458461984992027, 0.002260826528072357, -0.0073737045750021935, -0.009056592360138893, 0.0665360614657402, -0.03197486326098442, 0.04534938931465149, -0.08262091875076294, 0.01253308355808258, 0.008091146126389503, 0.08318778872489929, 0.02354271151125431, -0.006222255062311888, 0.043081920593976974, -0.01011503953486681, 0.0005552421789616346, -0.017502030357718468, 0.06660691648721695, 0.028378797695040703, 0.002599618397653103, -0.02242669090628624, -0.045278530567884445, 0.024818161502480507, 0.03716524317860603, 0.047156281769275665, 0.02363128401339054, 0.00854729674756527, 0.0421607606112957, 0.005876820534467697, 0.0026549764443188906, -0.029034238308668137, 0.003846283769235015, 0.078227698802948, 0.019574638456106186, 0.04701456427574158, -0.031602855771780014, 0.05204550921916962, 0.04382593557238579, 0.03620865195989609, -0.006173539906740189, -0.04938831925392151, 0.01011503953486681, 0.07270073890686035, 0.026217617094516754, -0.04120417311787605, -0.014251399785280228, 0.06777608394622803, -0.0207615178078413, -0.028201652690768242, -0.007227559108287096, 0.02951253205537796, -0.051514074206352234, -0.023400994017720222, 0.03766125068068504, 0.04166475310921669, -0.04035387188196182, 0.0012101290049031377, -0.0038639982230961323, 0.048467159271240234, -0.01785632222890854, -0.052187226712703705, 0.03840526565909386, 0.0891398936510086, 0.009955608285963535, 0.04573911055922508, -0.01987578719854355, 0.035942934453487396, 0.04903402924537659, 0.010956483893096447, 0.02705020271241665, 0.045632824301719666, -0.04180647060275078, 0.011239917017519474, 0.05211636796593666, 0.00932674016803503, -0.05395868793129921, 0.009805033914744854, -0.061823971569538116, -0.059627361595630646, 0.035765789449214935, 0.0023471852764487267, -0.023383278399705887, 0.04896317049860954, -0.04283391684293747, 0.030238831415772438, 0.023312421515583992, -0.0005012679612264037, 0.001760388957336545, 0.03291373699903488, 0.00853401143103838, -0.0007949428982101381, -0.014676550403237343, 0.005735103506594896, -0.09750118851661682, -0.06883895397186279, -0.002116895280778408, 0.00548267038539052, -0.026129042729735374, 0.06295771151781082, -0.015526851639151573, 0.015323134139180183, -0.014021110720932484, -0.006169111467897892, 0.0018744267290458083, -0.04637683555483818, 0.010566762648522854, -0.003784282598644495, -0.008374580182135105, 0.005008804611861706, 0.01607600413262844, 0.04471166431903839, -0.05342724919319153, -0.036084651947021484, 0.02515473961830139, -0.009167307987809181, -0.006368400529026985, 0.011691639199852943, 0.00037311387131921947, -0.0369526669383049, -0.05261237919330597, 0.03436633571982384, -0.030291974544525146, 0.019450636580586433, -0.019043201580643654, 0.013401099480688572, 0.028945665806531906, 0.0057838186621665955, -0.03293145075440407, -0.044605378061532974, -0.06759893149137497, 0.0031221993267536163, -0.030557693913578987, -0.004422008525580168, -0.02395014651119709, -0.0322582982480526, -0.025314170867204666, -0.03978700563311577, -0.0005746175302192569, -0.03401204198598862, -0.017874037846922874, 0.03925556689500809, -0.04265677183866501, -0.03565949946641922, 0.013870536349713802, 0.07553508132696152, 0.08566783368587494, 0.01598743163049221, -0.0020039647351950407, 0.04598711431026459, -0.037519533187150955, 0.00868015643209219, -0.017581745982170105, 0.01663401536643505, -0.0860929861664772, -0.005934393033385277, 0.025314170867204666, 0.010256757028400898, 0.041735611855983734, -0.016448011621832848, 0.03381718322634697, 0.026890771463513374, -0.05835191160440445, 0.03216972202062607, 0.028945665806531906, 0.01621772162616253, -0.009096450172364712, -0.07000812143087387, 0.042089901864528656, -0.0793614313006401, 0.007971572689712048, -0.02017693594098091, 0.01959235407412052, 0.02713877521455288, 0.01662515662610531, -0.02143467217683792, 0.02588103897869587, 0.0024180435575544834, -0.06529603898525238, 0.010053038597106934, -0.004884802270680666, -0.05983993783593178, 0.019680926576256752, 0.026430191472172737, 0.02444615587592125, 0.03457890823483467, 0.047971151769161224, 0.07525164633989334, 0.010938769206404686, 0.02189525216817856, -0.00541624054312706, -0.018954627215862274, -0.009769604541361332, -0.003968071658164263, -0.09686346352100372, -0.001292059081606567, 0.015491422265768051, -0.025686178356409073, -0.01201935950666666, -0.006952982861548662, -0.05080549046397209, -0.04265677183866501, 0.008759872056543827, 0.023985575884580612, 0.03349832072854042, -0.0525769479572773, -0.06699664145708084, 0.008529582992196083, -0.047829434275627136, 0.07744825631380081, 0.017989180982112885, -0.04255048185586929, 0.00019167756545357406, -0.008640298619866371, 0.019627783447504044, 0.01592542976140976, -0.0049290889874100685, -0.012958234176039696, -0.022355832159519196, -0.039716146886348724, 0.00914959330111742, 0.05108892172574997, 0.014658835716545582, 0.014579120092093945, -0.04205447435379028, -0.02758164145052433, -0.016120290383696556, -0.04542024806141853, -0.03232915326952934, 0.016403725370764732, -0.10777565836906433, -0.034738343209028244, 0.007484420668333769, -0.00398135744035244, 0.0024357582442462444, 0.04148760437965393, 0.03317945450544357, -0.018024610355496407, 0.08935247361660004, -0.011000770144164562, 0.03268344700336456, -0.0034344191662967205, -0.028361083939671516, -0.0025021880865097046, -0.007413562387228012, -0.038511551916599274, -0.04690827429294586, 0.0039304280653595924, -0.003817497519776225, -0.0042382194660604, -0.01285194605588913, -0.03477377071976662, 0.02687305584549904, -0.03691723942756653, -0.00017548531468492, 0.00894587580114603, -0.045632824301719666, -0.016793446615338326, 0.01800689660012722, -0.04102702811360359, -0.04201904311776161, 0.05211636796593666, 0.09076964110136032, 0.06154054030776024, -0.002847622847184539, -0.05771418660879135, 0.003813068848103285, 0.0040477872826159, 0.011523351073265076, 0.006138110999017954, 0.003266130341216922, 0.019698642194271088, -0.057749614119529724, 0.025686178356409073, -0.0057838186621665955, -0.033799465745687485, -0.02852051518857479, 0.021788964048027992, 0.005261237733066082, -0.020300937816500664, -0.03328574448823929, -0.01500427071005106, -0.08984848111867905, -0.00840115174651146, 0.022355832159519196, -0.03840526565909386, -0.01215221919119358, 0.017661461606621742, -0.03349832072854042, 0.030610838904976845, -0.004162932280451059, 0.03865326941013336, 0.018600335344672203, 0.03875955566763878, -0.012187648564577103, 0.019769499078392982, 0.06742178648710251, 0.02430443838238716, -0.033622320741415024, -0.06090281531214714, 0.02304670214653015, -0.0014027752913534641, 0.02017693594098091, -0.039538998156785965, 0.05735989287495613, 0.035181205719709396, 0.0647645965218544, 0.011204487644135952, -0.02283412590622902, 0.019078630954027176, -0.03404747322201729, -0.020159220322966576, 0.06533146649599075, 0.008201862685382366, -0.07128357142210007, 0.011523351073265076, 0.042763058096170425, 0.023135274648666382, 0.017696890980005264, 0.017200881615281105, 0.023135274648666382, -0.030911985784769058, 0.005340953357517719, -0.025810180231928825, 0.010185898281633854, 0.05661587789654732, -0.05937935784459114, -0.03596064820885658, -0.023967862129211426, -0.03716524317860603, 0.0058015333488583565, -0.013445385731756687, 0.028715375810861588, 0.03408290073275566, -0.004284720402210951, 0.001182449865154922, 0.09771376103162766, -0.014676550403237343, -0.011541065759956837, -0.011151344515383244, 0.037554964423179626, 0.01911405846476555, -0.025278741493821144, 0.025686178356409073, -0.02256840653717518, -0.03401204198598862, -0.02403871901333332, -0.018051182851195335, -0.060123372822999954, 0.03346288949251175, -0.016430296003818512, 0.020035218447446823, 0.04134589061141014, -0.0007506564143113792, 0.01076162327080965, 0.01642143912613392, -0.07068127393722534, 0.008427723310887814, 0.0014448475558310747, -0.019486065953969955, 0.019220346584916115, 0.01709459349513054, 0.02462330088019371, -0.056580450385808945, -0.014100826345384121, -0.01929120533168316, 0.03893670439720154, -0.04042473062872887, -0.03431319072842598, -0.03588978946208954, 0.014517119154334068, 0.018759766593575478, 0.0013474171282723546, 0.04060187563300133, 0.002519902540370822, -0.030734840780496597, -0.016811160370707512, 0.015792571008205414, -0.04938831925392151, -0.0445699468255043, -0.019344348460435867, -0.018405474722385406, 0.0369526669383049, 0.0556238628923893, 0.06600461900234222, -0.0199997890740633, 0.0034809198696166277, -0.007138986140489578, -0.005965393502265215, -0.002599618397653103, 0.10983055084943771, -0.00986703485250473, -0.03620865195989609, -0.047652289271354675, 0.012674800120294094, -0.010593334212899208, -0.0412750318646431, 0.030663982033729553, 0.023489566519856453, -0.009858177974820137, 0.01803346909582615, 0.010903339833021164, 0.04081445187330246, -0.014428546652197838, -0.01987578719854355, -0.008852873928844929, 0.026695910841226578, 0.02017693594098091, -0.0035451354924589396, 0.032807450741529465, -0.0558718666434288, -0.02614675834774971, 0.012701372615993023, -0.030415978282690048, 0.0030424834694713354, -0.02646562084555626, 0.0510534942150116, 0.06575661897659302, 0.03261258825659752 ]
30,324
networkx.algorithms.planarity
traverse_face
Returns nodes on the face that belong to the half-edge (v, w). The face that is traversed lies to the right of the half-edge (in an orientation where v is below w). Optionally it is possible to pass a set to which all encountered half edges are added. Before calling this method, this set must not include any half-edges that belong to the face. Parameters ---------- v : node Start node of half-edge. w : node End node of half-edge. mark_half_edges: set, optional Set to which all encountered half-edges are added. Returns ------- face : list A list of nodes that lie on this face.
def traverse_face(self, v, w, mark_half_edges=None): """Returns nodes on the face that belong to the half-edge (v, w). The face that is traversed lies to the right of the half-edge (in an orientation where v is below w). Optionally it is possible to pass a set to which all encountered half edges are added. Before calling this method, this set must not include any half-edges that belong to the face. Parameters ---------- v : node Start node of half-edge. w : node End node of half-edge. mark_half_edges: set, optional Set to which all encountered half-edges are added. Returns ------- face : list A list of nodes that lie on this face. """ if mark_half_edges is None: mark_half_edges = set() face_nodes = [v] mark_half_edges.add((v, w)) prev_node = v cur_node = w # Last half-edge is (incoming_node, v) incoming_node = self[v][w]["cw"] while cur_node != v or prev_node != incoming_node: face_nodes.append(cur_node) prev_node, cur_node = self.next_face_half_edge(prev_node, cur_node) if (prev_node, cur_node) in mark_half_edges: raise nx.NetworkXException("Bad planar embedding. Impossible face.") mark_half_edges.add((prev_node, cur_node)) return face_nodes
(self, v, w, mark_half_edges=None)
[ -0.00128468731418252, -0.056685831397771835, -0.07109439373016357, 0.04763944447040558, -0.039650898426771164, 0.03255605325102806, 0.008093416690826416, 0.042313747107982635, 0.06080777570605278, -0.0009410021011717618, -0.005439687520265579, -0.016378339380025864, -0.023418471217155457, -0.00005044136196374893, -0.03826475888490677, 0.028069335967302322, 0.034051623195409775, 0.015001318417489529, 0.015913251787424088, 0.0532204806804657, -0.04216783866286278, -0.06806676834821701, -0.0027745598927140236, 0.021321022883057594, 0.007268115878105164, -0.005161547567695379, 0.004498115740716457, 0.004288370721042156, 0.016305383294820786, 0.012849153019487858, -0.07266291975975037, -0.011171194724738598, -0.029127178713679314, -0.018129251897335052, 0.05515378341078758, 0.023619096726179123, 0.013560461811721325, 0.03822828456759453, -0.09987503290176392, 0.031279344111680984, 0.007103967480361462, -0.04256908968091011, 0.05435128137469292, 0.03275667876005173, -0.034544069319963455, -0.0025078190956264734, 0.09112046658992767, 0.013414552435278893, -0.003483588807284832, -0.03888487443327904, -0.02270716242492199, -0.03410634025931358, 0.04880671948194504, 0.0012459300924092531, -0.013004181906580925, -0.059020381420850754, -0.01980721205472946, -0.028415869921445847, 0.028124051168560982, 0.04421057179570198, 0.009830650873482227, -0.07200632989406586, 0.014554469846189022, 0.04388227313756943, -0.02002607472240925, 0.004390963353216648, 0.012347589246928692, -0.03093280829489231, -0.06704540550708771, -0.006875983905047178, -0.006187473889440298, -0.008029581047594547, 0.04034397006034851, 0.04683694243431091, 0.007929268293082714, -0.009538832120597363, 0.030750421807169914, 0.05577389895915985, -0.016433054581284523, -0.02267068438231945, 0.07058370858430862, 0.03087809309363365, -0.03383275866508484, -0.045158982276916504, 0.0542418472468853, 0.05022933706641197, 0.032920826226472855, 0.004938123747706413, -0.021813467144966125, -0.01677047088742256, -0.05205320566892624, -0.015566716901957989, 0.013815803453326225, 0.04924444854259491, -0.006520329508930445, 0.006679918151348829, -0.04307977110147476, -0.080104298889637, -0.0674101784825325, -0.005362173076719046, -0.024056825786828995, 0.07820747792720795, -0.06733722239732742, 0.024148019030690193, -0.0035155063960701227, -0.03873896598815918, -0.07080257683992386, -0.058327313512563705, -0.012046650983393192, -0.010122469626367092, -0.05905685946345329, 0.05095888301730156, 0.008166370913386345, 0.06522153317928314, 0.010924971662461758, 0.01159980334341526, 0.0028748726472258568, 0.0016563005046918988, -0.003444831585511565, -0.006128198001533747, 0.05847322195768356, -0.02553415857255459, -0.02102920413017273, -0.031717073172330856, -0.03104224056005478, -0.045706141740083694, 0.0639813020825386, 0.012466141022741795, 0.020828578621149063, 0.005384971387684345, 0.01818396896123886, 0.010241021402180195, -0.046143870800733566, -0.012037531472742558, -0.01576734334230423, -0.008950634859502316, -0.026208989322185516, -0.028926553204655647, -0.032446619123220444, -0.003289802698418498, -0.014171457849442959, -0.02932780422270298, 0.03591196984052658, 0.02929132804274559, -0.09119342267513275, 0.018895277753472328, -0.00014947171439416707, -0.038957830518484116, 0.0749245136976242, -0.020190224051475525, 0.0061692348681390285, -0.016469532623887062, 0.02821524441242218, 0.0022695763036608696, -0.01689814031124115, 0.016688397154211998, -0.024658702313899994, 0.00843083206564188, -0.017791837453842163, 0.07543519884347916, -0.042897384613752365, -0.02217824012041092, -0.036769188940525055, 0.023527903482317924, 0.02152164839208126, 0.03202712908387184, 0.04333511367440224, -0.018421070650219917, -0.00972121860831976, 0.0540594607591629, 0.012858272530138493, -0.011663638986647129, -0.09250660985708237, 0.03653208538889885, 0.0034995474852621555, 0.016834305599331856, 0.00104815443046391, -0.004270132165402174, 0.058327313512563705, 0.010478124022483826, -0.011818667873740196, -0.041766587644815445, 0.016852544620633125, -0.08003135025501251, -0.01705317012965679, 0.053293436765670776, 0.055555034428834915, -0.01187338400632143, 0.039030786603689194, -0.023582618683576584, -0.007072050124406815, -0.031571164727211, 0.032410141080617905, 0.03797294199466705, 0.008143573068082333, -0.04435648024082184, 0.006597843952476978, 0.028525302186608315, -0.06974472850561142, -0.032957304269075394, 0.013970832340419292, -0.007186041679233313, 0.009429399855434895, 0.0005665391217917204, -0.023126652464270592, 0.09009910374879837, 0.03585725277662277, 0.015831178054213524, 0.022415343672037125, 0.04548728093504906, -0.010724346153438091, -0.03275667876005173, 0.00114561733789742, 0.008394354954361916, -0.006789350416511297, -0.03189945966005325, -0.09476820379495621, 0.052782751619815826, -0.015247540548443794, 0.008321399800479412, -0.04326216131448746, -0.006917021237313747, -0.05807197093963623, -0.013742849230766296, -0.013332478702068329, -0.04694637283682823, 0.009511473588645458, -0.02002607472240925, -0.009096544235944748, -0.06467437744140625, -0.0032761236652731895, 0.026391375809907913, -0.06744665652513504, -0.007500659208744764, -0.0029774652794003487, 0.038483623415231705, 0.02496875822544098, -0.014846289530396461, 0.027777517214417458, 0.003727531060576439, 0.025278815999627113, -0.07543519884347916, -0.02442159876227379, 0.0441376157104969, 0.01874936744570732, 0.049536265432834625, 0.04388227313756943, -0.00860865879803896, 0.006178354378789663, 0.057160038501024246, -0.11096415668725967, -0.03547424077987671, -0.002373308874666691, 0.003483588807284832, 0.026956776157021523, -0.07364780455827713, -0.04023453965783119, -0.039577946066856384, 0.026446092873811722, 0.02932780422270298, -0.008918716572225094, 0.0013861400075256824, 0.03932260349392891, 0.017563853412866592, 0.04271499812602997, 0.013624297454953194, -0.010432527400553226, 0.028032857924699783, -0.014490635134279728, -0.020609714090824127, -0.007231638301163912, -0.029710816219449043, -0.010222782380878925, -0.0014248972292989492, 0.012575573287904263, -0.01744530163705349, -0.04971865564584732, 0.09608139097690582, -0.03137053921818733, 0.03961442410945892, -0.016378339380025864, -0.02427568845450878, -0.06018766015768051, 0.07182393968105316, -0.07404905557632446, -0.03332207724452019, 0.007281794678419828, -0.015794700011610985, 0.02987496554851532, -0.0749245136976242, 0.006424576509743929, -0.006743753794580698, 0.03939555957913399, -0.032428380101919174, 0.01050548255443573, -0.01574910432100296, 0.04110999405384064, -0.01595884934067726, 0.03587549179792404, -0.01944243721663952, 0.08331431448459625, -0.03826475888490677, 0.021886421367526054, 0.0017463540425524116, 0.015703506767749786, 0.005968609359115362, 0.02768632397055626, -0.021156873553991318, 0.04183954373002052, -0.06514858454465866, -0.07550815492868423, -0.049536265432834625, -0.0042792512103915215, 0.01385228056460619, 0.00121515232603997, -0.023692050948739052, -0.05588332936167717, -0.019551869481801987, 0.00620571244508028, 0.0410735160112381, 0.018585219979286194, 0.053402867168188095, 0.02546120434999466, 0.09586252272129059, -0.022324150428175926, 0.0072954739443957806, 0.031717073172330856, 0.011098239570856094, 0.02712092362344265, 0.0319906510412693, -0.03100576438009739, 0.006497531197965145, -0.010386930778622627, 0.031133433803915977, -0.1331423968076706, 0.03658680245280266, 0.06533096730709076, 0.07857225090265274, 0.037279870361089706, -0.024640463292598724, 0.05537264794111252, 0.0015890453942120075, -0.03862953558564186, 0.020226700231432915, 0.04519546031951904, 0.07200632989406586, 0.0032510454766452312, -0.012019293382763863, 0.042824432253837585, 0.1105264276266098, 0.008576741442084312, 0.013688133098185062, 0.01716260239481926, 0.023363754153251648, -0.03106047958135605, 0.02498699724674225, -0.03613083437085152, -0.045633189380168915, -0.0374622568488121, 0.06080777570605278, -0.016889022663235664, 0.02661024034023285, -0.013478388078510761, 0.015986207872629166, -0.01691637933254242, -0.043408069759607315, -0.0023140329867601395, 0.0508129745721817, 0.004320288542658091, 0.016205070540308952, -0.022360626608133316, -0.038483623415231705, -0.02427568845450878, 0.0023368315305560827, 0.01380668394267559, 0.053439345210790634, -0.014818930998444557, 0.04683694243431091, 0.06135493516921997, 0.04154772311449051, 0.027485698461532593, 0.03549247980117798, 0.0011564466403797269, 0.03423400968313217, 0.0024211853742599487, -0.008312280289828777, 0.02440335974097252, 0.0006457634153775871, 0.06839506328105927, 0.026792626827955246, -0.03709748387336731, 0.009110222570598125, 0.04461182281374931, -0.029637861996889114, -0.03715220093727112, -0.011736593209207058, 0.030020873993635178, 0.009009909816086292, 0.023108413442969322, -0.03468997776508331, 0.002713004359975457, 0.010405169799923897, -0.08426272124052048, 0.04297034069895744, -0.039067260921001434, 0.04048987850546837, -0.009447638876736164, 0.05898390710353851, 0.030823376029729843, -0.04092760756611824, 0.0003593590809032321, 0.004892527125775814, 0.026701433584094048, -0.025898931547999382, -0.007528016809374094, 0.04249613359570503, 0.0058044614270329475, 0.051141273230314255, 0.008727210573852062, 0.02153988555073738, 0.0019549590069800615, 0.0023938273079693317, 0.04318920522928238, 0.011773071251809597, -0.013615177944302559, -0.03822828456759453, -0.023400232195854187, -0.024713417515158653, 0.006939819548279047, 0.049572743475437164, 0.0035155063960701227, -0.06306937336921692, 0.03412457928061485, -0.059385158121585846, -0.009196856990456581, 0.05249093472957611, -0.014353844337165356, 0.0034220332745462656, -0.005836379248648882, 0.020354371517896652, -0.029491953551769257, 0.045049551874399185, -0.03804589435458183, -0.03430696576833725, 0.02991144172847271, 0.016205070540308952, -0.08572182059288025, 0.033467985689640045, -0.04982808604836464, -0.02978377230465412, -0.00011905016435775906, -0.01599532552063465, 0.016724873334169388, -0.021831706166267395, -0.014162338338792324, 0.019661301746964455, -0.05657640099525452, -0.0011353581212460995, 0.023491425439715385, 0.03914021700620651, 0.07328303158283234, 0.023035459220409393, -0.038994308561086655, -0.016223309561610222, -0.036823902279138565, 0.003556543495506048, 0.03932260349392891, -0.005343934521079063, -0.04804069548845291, -0.05515378341078758, 0.045158982276916504, -0.039504989981651306, -0.018147490918636322, -0.03997919708490372, 0.08448158949613571, 0.024056825786828995, -0.02549768052995205, -0.03649560734629631, -0.002920469269156456, -0.08798341453075409, -0.09586252272129059, 0.0008674774435348809, -0.004338527098298073, -0.01936948299407959, -0.00268564629368484, -0.002713004359975457, -0.026847343891859055, 0.03715220093727112, -0.024658702313899994, -0.03946851193904877, 0.030549796298146248, -0.017928626388311386, -0.038483623415231705, 0.0022000414319336414, 0.029510190710425377, 0.030294455587863922, 0.014536231756210327, 0.0009524013148620725, 0.04297034069895744, -0.019497154280543327, 0.018083656206727028, -0.0807608962059021, 0.00224677799269557, -0.05599275976419449, -0.02883535996079445, 0.030002636834979057, 0.0057497452944517136, 0.00483781099319458, 0.03611259534955025, 0.028580019250512123, 0.07142268866300583, 0.01442679949104786, 0.00828036293387413, 0.04110999405384064, 0.020664429292082787, 0.011098239570856094, -0.02549768052995205, 0.03921317309141159, 0.0018227285472676158, 0.016606321558356285, 0.006853185594081879, -0.041146472096443176, 0.035145945847034454, 0.0637989193201065, -0.028616495430469513, 0.0639813020825386, -0.03386923670768738, -0.01414410024881363, 0.025588873773813248, -0.033449746668338776, -0.021248066797852516, 0.01243878249078989, -0.03961442410945892, 0.021685795858502388, -0.005398650653660297, 0.001029915758408606, 0.03437992185354233, 0.02719387784600258, 0.015885895118117332, 0.013487507589161396, 0.01296770479530096, -0.009210535325109959, -0.09863480925559998, 0.01640569604933262, 0.015402569435536861, 0.006857745349407196, 0.02378324419260025, -0.05537264794111252, 0.02152164839208126, -0.03468997776508331, -0.01217432226985693, 0.021248066797852516, 0.04526841640472412, -0.005758864805102348, 0.039432037621736526, 0.005444247275590897, 0.0003787376917898655, -0.0443200021982193, -0.03262900561094284, -0.009529712609946728, -0.017773598432540894, -0.010560198687016964, 0.03983328863978386, 0.0056357537396252155, 0.006018765736371279, -0.0331944040954113, 0.05216263607144356, 0.002466781996190548, 0.013979951851069927, -0.01489188615232706, 0.013970832340419292, 0.07328303158283234, 0.00744594307616353, -0.001877444563433528, 0.005270979832857847, 0.004810452926903963, 0.0028133171144872904, 0.0014784734230488539, 0.017189960926771164, -0.07251700758934021, -0.0700000748038292, -0.07966657727956772, 0.03603963926434517, 0.0443200021982193, 0.002400666940957308, 0.05942163243889809, 0.018986470997333527, 0.05030229315161705, -0.020938009023666382, 0.08572182059288025, -0.01695285737514496, -0.039504989981651306, 0.04245965927839279, 0.02374676801264286, 0.00787455216050148, -0.039650898426771164, -0.02095624804496765, 0.014755095355212688, -0.007154123857617378, -0.042933862656354904, -0.011134716682136059, 0.024494552984833717, 0.046143870800733566, 0.03197241574525833, -0.055555034428834915, -0.03636793792247772, -0.011116478592157364, -0.009821531362831593, 0.010140708647668362, -0.03366861119866371, -0.05033876746892929, 0.021704034879803658, 0.030786899849772453, -0.02870768867433071, -0.01303154043853283, 0.03374156728386879, -0.006406337954103947, 0.034562308341264725, 0.009256131947040558, 0.029583146795630455, 0.023947393521666527, -0.04596148431301117, -0.02268892340362072, -0.0007010494591668248, 0.034507591277360916, 0.001288107130676508, 0.07448678463697433, -0.039067260921001434, -0.006319703999906778, 0.02206880785524845, -0.010496363043785095, -0.01927828975021839, -0.014016428962349892, 0.0006571626290678978, -0.02602660283446312, 0.01355134230107069, 0.0009706399869173765, -0.01850314624607563, -0.0552632138133049, 0.0021327862050384283, -0.0641636922955513, 0.04712875932455063, 0.027230355888605118, -0.0044274404644966125, -0.003549703862518072, -0.01139005832374096, 0.035072989761829376, 0.010888494551181793, 0.01547552365809679, 0.027941664680838585, -0.0011404877295717597, 0.06197505071759224, -0.018603459000587463, -0.009940083138644695, 0.014691260643303394, 0.057853106409311295, 0.03554719686508179, -0.012493498623371124, 0.03483588621020317, -0.030166784301400185, -0.004609827417880297, -0.001436296384781599, 0.02212352491915226, -0.04045340046286583, -0.016506008803844452, 0.05249093472957611, 0.015247540548443794, 0.020719146355986595, -0.03106047958135605, -0.0037138520274311304, -0.005549119785428047, -0.02597188763320446, -0.03282963111996651, -0.027941664680838585, -0.0485878549516201, -0.0043134489096701145, 0.032866109162569046, -0.041657157242298126, -0.013970832340419292, -0.02219647914171219, 0.019260050728917122, 0.0016939177876338363, -0.012247276492416859, 0.011408297345042229, 0.003437991952523589, 0.016688397154211998, -0.05048467963933945, -0.0018979631131514907, -0.014244413003325462, -0.04931740462779999, -0.04424704983830452, -0.04439295828342438, 0.09060978144407272, 0.019114142283797264, -0.0031005763448774815, 0.006255868822336197, 0.008230206556618214, -0.04056283459067345, 0.018457548692822456, -0.010706108063459396, 0.028069335967302322, -0.037827033549547195, -0.05464309826493263, 0.004240494221448898, -0.013195687904953957, -0.04136533662676811, 0.012894749641418457, 0.004552831407636404, 0.00881840381771326, 0.029054224491119385, -0.037334587424993515, -0.01599532552063465, 0.002261596964672208, -0.06339766830205917, 0.014691260643303394, 0.01887703873217106, -0.05267332121729851, -0.0031917698215693235, -0.020190224051475525, 0.035072989761829376, 0.016469532623887062, 0.023108413442969322, 0.04048987850546837, 0.04041692614555359, -0.03859305754303932, -0.03100576438009739, 0.008266683667898178, 0.01304065901786089, -0.08440863341093063, 0.004769416060298681, 0.014563589356839657, 0.03215480223298073, -0.0025351771619170904, 0.03914021700620651, -0.03607611730694771, -0.00005133192098583095, 0.03262900561094284, 0.022451819851994514, -0.03164411708712578, 0.023619096726179123, 0.030330931767821312, -0.010478124022483826, -0.07543519884347916, -0.014007309451699257, 0.02712092362344265, 0.03437992185354233, 0.0026788068935275078, 0.002918189624324441, 0.002687926171347499, -0.03470821678638458, 0.04391875118017197, 0.01605004258453846, 0.011955457739531994, -0.02938252128660679, 0.03430696576833725, 0.011125597171485424, -0.01213784422725439, -0.0175000187009573, -0.03862953558564186, -0.08915068954229355, -0.04928092658519745, 0.047785352915525436, -0.041876018047332764, 0.03303025662899017, -0.05216263607144356, 0.042277269065380096, 0.0700000748038292, 0.0396873764693737 ]
30,326
networkx.exception
PowerIterationFailedConvergence
Raised when the power iteration method fails to converge within a specified iteration limit. `num_iterations` is the number of iterations that have been completed when this exception was raised.
class PowerIterationFailedConvergence(ExceededMaxIterations): """Raised when the power iteration method fails to converge within a specified iteration limit. `num_iterations` is the number of iterations that have been completed when this exception was raised. """ def __init__(self, num_iterations, *args, **kw): msg = f"power iteration failed to converge within {num_iterations} iterations" exception_message = msg superinit = super().__init__ superinit(self, exception_message, *args, **kw)
(num_iterations, *args, **kw)
[ 0.019068848341703415, -0.04033162072300911, 0.005014028400182724, 0.07419116795063019, -0.04175766929984093, -0.04497542232275009, -0.038320522755384445, -0.021409032866358757, 0.027003536000847816, -0.021354185417294502, 0.06603708863258362, 0.05334889516234398, 0.02256084233522415, -0.00858372449874878, -0.04588955640792847, 0.04194049537181854, -0.003121769754216075, 0.00779756810516119, -0.006956564262509346, 0.0450485534965992, 0.018355824053287506, 0.0274240393191576, -0.0025595768820494413, 0.028667261824011803, -0.008327766321599483, 0.1218358650803566, -0.014178227633237839, 0.026144249364733696, 0.001041542156599462, -0.05334889516234398, -0.10940363258123398, 0.007089113816618919, -0.04205019399523735, 0.0474984347820282, 0.0451216846704483, -0.035742662847042084, -0.018794607371091843, 0.02228660136461258, -0.15942507982254028, 0.035029638558626175, -0.01987328752875328, 0.0006930283270776272, -0.026985254138708115, -0.03846678510308266, 0.014589588157832623, -0.042123325169086456, 0.01144496537744999, 0.03886900469660759, -0.02387719601392746, -0.05799270048737526, -0.018812891095876694, -0.031866732984781265, 0.04439037665724754, -0.014699284918606281, -0.030404116958379745, 0.14333631098270416, 0.014909535646438599, -0.007358783856034279, -0.003018929623067379, -0.04175766929984093, -0.0719241127371788, -0.013236668892204762, 0.025120418518781662, -0.001052968786098063, -0.00630752881988883, -0.023694369941949844, -0.04775439202785492, -0.0014111953787505627, -0.005567079875618219, 0.06570799648761749, 0.07569034397602081, 0.004895190708339214, -0.04450007155537605, 0.013602322898805141, 0.015266047790646553, 0.020769137889146805, -0.06161267310380936, -0.006572627928107977, 0.034901659935712814, -0.010156035423278809, 0.0025550061836838722, 0.008268347941339016, -0.03203127533197403, -0.011362693272531033, 0.0645013377070427, -0.0572613924741745, 0.005489378236234188, -0.0670609176158905, 0.0034942796919494867, 0.015878519043326378, -0.06234398111701012, 0.02411487139761448, 0.001420336659066379, -0.00081529380986467, 0.004863196052610874, 0.009909219108521938, 0.01061310339719057, -0.017688505351543427, -0.001821413286961615, -0.05594503879547119, 0.025870010256767273, 0.0015597421443089843, 0.05631069093942642, 0.01491867657750845, 0.028191911056637764, -0.06435507535934448, -0.0035925491247326136, -0.04460977017879486, 0.03093431517481804, -0.03945405036211014, -0.06029631942510605, 0.034426309168338776, -0.045633599162101746, -0.004991175141185522, -0.05408020317554474, 0.05089901387691498, -0.01744168810546398, -0.009360738098621368, 0.06614678353071213, 0.004515824839472771, 0.029197460040450096, 0.009379020892083645, -0.04596268758177757, 0.03711386397480965, -0.0048266309313476086, 0.017130883410573006, 0.003880501491948962, 0.018620921298861504, 0.019763590767979622, -0.009036220610141754, 0.04109949246048927, -0.006184120662510395, -0.03484681248664856, -0.027826257050037384, -0.009145916439592838, 0.010585678741335869, 0.0195076335221529, 0.0335121750831604, -0.005768189672380686, -0.028338173404335976, 0.0015597421443089843, 0.015064938925206661, 0.014543881639838219, 0.03683962672948837, 0.02729606069624424, 0.0438784621655941, 0.03312823921442032, 0.029325438663363457, 0.029069481417536736, -0.018163854256272316, -0.0028909507673233747, -0.004095322918146849, -0.0054299598559737206, -0.01923339255154133, 0.018246127292513847, 0.004780923947691917, 0.0005356257315725088, -0.02484617941081524, -0.001555171562358737, -0.02215862274169922, -0.03192158043384552, -0.021975796669721603, 0.0011323842918500304, -0.004209590144455433, -0.0004650659975595772, 0.013748584315180779, -0.01567740924656391, -0.0401853583753109, -0.01187460869550705, 0.01230425201356411, -0.001733427750878036, -0.022323166951537132, 0.010028056800365448, -0.022505994886159897, -0.015613419003784657, 0.08446604013442993, 0.027497168630361557, 0.032908845692873, 0.0007650164188817143, 0.007866128347814083, 0.019672177731990814, -0.04329341650009155, -0.05912622809410095, -0.0359620563685894, 0.008793975226581097, 0.009470434859395027, 0.01298071164637804, 0.03374984860420227, -0.021134791895747185, -0.016664674505591393, -0.002395032672211528, -0.041392017155885696, 0.02438911236822605, 0.054409291595220566, 0.005315692629665136, -0.005896168295294046, -0.005525943823158741, -0.0005067733582109213, 0.050021447241306305, 0.05163032189011574, -0.05188628286123276, 0.11861810833215714, 0.03711386397480965, -0.07408147305250168, 0.01802673563361168, 0.0004842056951019913, 0.006558916065841913, -0.031885016709566116, -0.026656165719032288, 0.007281082216650248, -0.04896105080842972, -0.03071492351591587, 0.032342083752155304, 0.06907201558351517, 0.035011354833841324, -0.014598730020225048, 0.08300342410802841, -0.03667508065700531, -0.008419180288910866, 0.04109949246048927, 0.04530451074242592, -0.009397303685545921, -0.013382931239902973, -0.02254256047308445, 0.030020181089639664, 0.029654527083039284, 0.010814212262630463, -0.03424348309636116, 0.01770678721368313, 0.00028109640697948635, -0.036126598715782166, -0.02292649634182453, -0.03883243724703789, -0.01236824132502079, -0.03168390691280365, 0.08263777196407318, -0.008935665711760521, -0.021591858938336372, -0.019215108826756477, -0.0015494581311941147, -0.011454107239842415, -0.0023584673181176186, -0.038210827857255936, 0.04245241358876228, 0.03301854431629181, -0.02914261259138584, 0.008501452393829823, 0.06618334352970123, -0.0026235664263367653, 0.029453417286276817, 0.044536639004945755, -0.06665869802236557, -0.045633599162101746, -0.022633973509073257, 0.014589588157832623, -0.02570546604692936, -0.03614488244056702, -0.03316480293869972, 0.033822979778051376, 0.04215988889336586, 0.0158510934561491, 0.03464570268988609, -0.07166815549135208, 0.03912496194243431, -0.005809325724840164, -0.035888925194740295, -0.05674947798252106, -0.005580791737884283, 0.009854371659457684, 0.06834070384502411, 0.1121094673871994, 0.024663351476192474, -0.005612786393612623, 0.03919809311628342, -0.06139327958226204, 0.03340248018503189, -0.03872274234890938, 0.03481024503707886, -0.053056374192237854, 0.034773681312799454, 0.018959151580929756, 0.012349958531558514, -0.017971886321902275, -0.004623235668987036, -0.02596142329275608, 0.01856607384979725, 0.0007073116721585393, -0.018035875633358955, -0.0009912647074088454, 0.0024978728033602238, 0.018831172958016396, 0.03214097395539284, 0.07104654610157013, 0.011316986754536629, 0.06808474659919739, -0.02934372052550316, 0.014681002125144005, -0.023182453587651253, 0.033695001155138016, -0.002225917764008045, 0.08680622279644012, -0.030916033312678337, -0.03239693120121956, -0.0018614066066220403, -0.032342083752155304, -0.050972145050764084, 0.04439037665724754, 0.0037113865837454796, 0.023932043462991714, -0.006668611895292997, -0.010658809915184975, 0.04801034927368164, 0.006979417987167835, -0.01985500380396843, 0.023456694558262825, 0.0002703838690649718, 0.05766361206769943, -0.029581395909190178, -0.02325558476150036, 0.06069853901863098, -0.0158328115940094, 0.046730563044548035, 0.04581642895936966, -0.03543185815215111, -0.014297065325081348, -0.03237864747643471, 0.028082216158509254, 0.03426176682114601, -0.017030328512191772, -0.056712910532951355, -0.04011222720146179, -0.06559830158948898, 0.014187369495630264, -0.030605226755142212, -0.062453676015138626, 0.022835083305835724, 0.06490355730056763, 0.000630752881988883, 0.006773737724870443, -0.02630879357457161, 0.040770404040813446, 0.0274240393191576, -0.035011354833841324, 0.03338419646024704, 0.00889453012496233, -0.027515452355146408, 0.04395159333944321, -0.02764343097805977, 0.0007044550147838891, 0.012468796223402023, -0.002824675990268588, -0.013520050793886185, -0.03495650738477707, -0.0025047289673238993, 0.012212838977575302, -0.01925167441368103, -0.03510276973247528, -0.05612786486744881, 0.013062983751296997, -0.037845171988010406, -0.026711013168096542, 0.00414102990180254, -0.019909851253032684, 0.034188635647296906, -0.007399919908493757, -0.005960157606750727, -0.01352919265627861, 0.006435507908463478, -0.0009986921213567257, 0.011472389101982117, -0.02802736684679985, -0.042342714965343475, -0.02777140960097313, -0.009708109311759472, 0.028795240446925163, 0.018977435305714607, -0.08914640545845032, 0.04131888598203659, -0.00584589084610343, 0.03254319354891777, 0.06442821025848389, -0.04797378554940224, -0.05104527622461319, -0.028301607817411423, -0.004652945324778557, 0.006764596328139305, 0.035139333456754684, 0.004689510446041822, 0.10984241962432861, 0.015055797062814236, -0.02704010158777237, -0.013401213102042675, -0.0007821564213372767, 0.024699917063117027, -0.035742662847042084, -0.010028056800365448, 0.031245121732354164, 0.006161267403513193, -0.02329215034842491, 0.004716934636235237, -0.0365653857588768, 0.07963940501213074, -0.0061475555412471294, 0.04439037665724754, 0.043183717876672745, -0.0031949004624038935, 0.03683962672948837, -0.019690459594130516, 0.01680179499089718, 0.027826257050037384, -0.049765489995479584, -0.00011655216076178476, -0.022469429299235344, -0.022140340879559517, -0.03058694489300251, -0.030989164486527443, -0.05495777353644371, -0.061722368001937866, -0.0035674104001373053, -0.03643740713596344, 0.025065571069717407, -0.010156035423278809, 0.05678604170680046, 0.02864897809922695, -0.011243855580687523, -0.004982033744454384, -0.04395159333944321, -0.037589214742183685, 0.006088136695325375, -0.01071365736424923, -0.058065831661224365, 0.02157357707619667, -0.0328722819685936, -0.003935349639505148, 0.014662719331681728, -0.07503216713666916, -0.07656791806221008, 0.011481530964374542, -0.034298330545425415, 0.0002325329987797886, 0.038430217653512955, -0.032616324722766876, 0.0925835520029068, 0.02058631181716919, 0.08022445440292358, -0.008985943160951138, 0.020494898781180382, -0.0112621383741498, -0.03727841004729271, 0.006188691593706608, 0.01802673563361168, -0.02694868855178356, 0.04285462945699692, -0.00040050523239187896, -0.02389547973871231, -0.01834668219089508, -0.07356955111026764, -0.004545534495264292, 0.008638571947813034, -0.008117515593767166, -0.014251358807086945, 0.045377641916275024, -0.029032915830612183, -0.015074079856276512, -0.03082462027668953, 0.022451145574450493, 0.053422026336193085, 0.019928134977817535, 0.012404806911945343, -0.00829120073467493, 0.05353172495961189, 0.02056802809238434, 0.015741398558020592, -0.06398942321538925, 0.008030672557651997, 0.010210883803665638, -0.03446287661790848, 0.007249087560921907, 0.06618334352970123, -0.04058757796883583, 0.052325066179037094, -0.03095259889960289, 0.08366160094738007, -0.019068848341703415, -0.025029005482792854, -0.04534107819199562, -0.037479519844055176, -0.02181125245988369, -0.003034926950931549, 0.020440049469470978, -0.03554155305027962, 0.03908839821815491, -0.01761537417769432, 0.07722609490156174, 0.010274873115122318, -0.021116510033607483, -0.028466152027249336, 0.03321965038776398, 0.042818065732717514, -0.027442321181297302, -0.004426696803420782, 0.015686549246311188, -0.008803116157650948, -0.03996596485376358, 0.04826630651950836, 0.00463466253131628, -0.02228660136461258, 0.03665679693222046, 0.04592612385749817, -0.014114238321781158, 0.029526548460125923, -0.01298071164637804, 0.01923339255154133, 0.00008598579006502405, 0.02789938822388649, -0.04036818444728851, -0.01996470056474209, 0.03108057752251625, 0.05996723100543022, 0.020330354571342468, 0.031044011935591698, 0.035998620092868805, -0.0064629316329956055, -0.016116192564368248, 0.01664639078080654, -0.05353172495961189, 0.0450851209461689, -0.0499848797917366, 0.05261758714914322, 0.10055480897426605, 0.005301980767399073, -0.018081583082675934, 0.010549113154411316, 0.0511915385723114, -0.005343116819858551, 0.030495531857013702, -0.0621611550450325, 0.013785149902105331, 0.010101187974214554, 0.011865467764437199, -0.027588583528995514, 0.037369824945926666, 0.06292902678251266, -0.009708109311759472, -0.014900394715368748, -0.011563803069293499, -0.025138702243566513, 0.0414285808801651, -0.007596458774060011, -0.032470062375068665, 0.048668526113033295, 0.01826440915465355, -0.026747578755021095, 0.007514186669141054, -0.01744168810546398, 0.004735217429697514, 0.028082216158509254, 0.012834450230002403, 0.03927122429013252, 0.002986934967339039, -0.04186736419796944, 0.026253946125507355, 0.054153334349393845, -0.11181695014238358, -0.009680685587227345, 0.007559893187135458, -0.00034937082091346383, 0.03835709020495415, -0.05839492008090019, 0.005722482688724995, 0.008373472839593887, 0.031263403594493866, -0.023438410833477974, -0.006362376734614372, -0.03751608356833458, 0.03788173943758011, 0.016363009810447693, 0.004401558078825474, 0.006993129849433899, -0.04567016661167145, -0.01236824132502079, -0.041501712054014206, -0.02329215034842491, -0.06362377107143402, -0.014269641600549221, 0.021774686872959137, -0.059638142585754395, -0.04329341650009155, -0.02910604700446129, 0.04131888598203659, -0.026290511712431908, -0.013264093548059464, -0.021994078531861305, -0.06687808781862259, -0.011271280236542225, 0.05656665191054344, -0.017798200249671936, -0.022597407922148705, 0.03433489799499512, 0.004716934636235237, -0.07152189314365387, 0.05433616042137146, -0.010951332747936249, 0.04471946507692337, 0.03082462027668953, -0.014105097390711308, 0.021463880315423012, 0.016481846570968628, -0.002165356418117881, 0.03755265101790428, -0.011362693272531033, 0.0010329721262678504, -0.0032977405935525894, -0.010987898334860802, -0.06753626465797424, -0.014214793220162392, -0.018081583082675934, -0.010750222951173782, 0.04863196238875389, 0.013803432695567608, -0.054884642362594604, 0.023219019174575806, -0.04910731315612793, 0.010448558256030083, -0.04322028532624245, 0.014479892328381538, 0.022487711161375046, -0.007249087560921907, -0.048083480447530746, -0.02863069623708725, -0.002737833186984062, 0.036601949483156204, 0.0016511556459590793, -0.08687935769557953, -0.04724247753620148, 0.021866099908947945, 0.008286630734801292, 0.03131825104355812, 0.011527237482368946, 0.010357145220041275, 0.0010729655623435974, 0.027588583528995514, -0.046218644827604294, -0.0032977405935525894, -0.0707540214061737, -0.0008981372811831534, -0.005727053619921207, -0.047937218099832535, 0.0347553975880146, -0.008460315875709057, 0.014589588157832623, 0.03316480293869972, -0.025284962728619576, -0.02254256047308445, -0.062088023871183395, -0.023109322413802147, 0.005461954511702061, 0.00847402773797512, 0.04036818444728851, 0.009145916439592838, -0.03981970250606537, 0.0018488372443243861, 0.0034874235279858112, -0.005905309692025185, 0.04183080047369003, 0.017130883410573006, 0.030916033312678337, -0.06055227667093277, -0.00023124749714042991, 0.016783511266112328, 0.015366602689027786, -0.039161525666713715, -0.007116538006812334, -0.01774335280060768, -0.005023169796913862, 0.05437272787094116, -0.05418990179896355, -0.005425388924777508, -0.017176588997244835, 0.013830856420099735, 0.03367672115564346, 0.018465518951416016, -0.11174381524324417, 0.004314715508371592, -0.028356455266475677, 0.0231458880007267, -0.04358593747019768, 0.05466524884104729, -0.024041740223765373, -0.02608940191566944, -0.02084226906299591, 0.011454107239842415, -0.04592612385749817, 0.02704010158777237, -0.052325066179037094, -0.030422400683164597, -0.0609179325401783, -0.07345985621213913, 0.05005801096558571, -0.04654773324728012, 0.0719606801867485, 0.023091040551662445, -0.024224568158388138, 0.031025728210806847, -0.005749906878918409, -0.009744674898684025, -0.04376876726746559, -0.018191279843449593, 0.0560547336935997, -0.016244173049926758, 0.05667634680867195, 0.0669877827167511, 0.023328715935349464, -0.060003794729709625, -0.02056802809238434, 0.022341450676321983, 0.04460977017879486, 0.012295111082494259, -0.06866979598999023, -0.0010295441607013345, 0.015110645443201065, 0.02279851771891117, 0.0025915715377777815, 0.0026761291082948446, -0.021664990112185478, 0.008021531626582146, -0.006444649305194616, -0.017990170046687126, 0.048705093562603, 0.03963687643408775, 0.021025096997618675, -0.03131825104355812, -0.04786408692598343, 0.008565441705286503, 0.01996470056474209, -0.008606577292084694, -0.029800789430737495, 0.02288993075489998, 0.06259994208812714, 0.016545835882425308, 0.00599672319367528, -0.020769137889146805, -0.016225889325141907, -0.0063486648723483086, 0.020275505259633064, 0.019068848341703415, 0.005658493377268314, 0.07883497327566147, 0.031976427882909775, 0.010485123842954636, -0.00957098975777626, -0.04738873988389969, 0.030312703922390938, 0.03769891336560249, -0.009552706964313984, -0.04724247753620148, 0.008199787698686123, -0.05711513012647629, -0.032488346099853516, -0.027259495109319687, -0.000023139033146435395, -0.050277404487133026, 0.018739759922027588, 0.01680179499089718, -0.01163693331182003, 0.04705965146422386, 0.04907074570655823, 0.032122690230607986 ]
30,327
networkx.exception
__init__
null
def __init__(self, num_iterations, *args, **kw): msg = f"power iteration failed to converge within {num_iterations} iterations" exception_message = msg superinit = super().__init__ superinit(self, exception_message, *args, **kw)
(self, num_iterations, *args, **kw)
[ 0.013048072345554829, -0.03763357549905777, 0.02805733121931553, 0.08933115005493164, -0.05205094441771507, -0.03107861801981926, -0.04247469827532768, 0.0015183733776211739, 0.017853861674666405, 0.0019092854345217347, 0.05293435975909233, 0.07470176368951797, 0.011952634900808334, 0.0015084348851814866, -0.04466557502746582, 0.025566093623638153, 0.013286595232784748, 0.03752756491303444, -0.030265873298048973, 0.0325804278254509, -0.0032266813796013594, 0.007981674745678902, -0.00288214860484004, 0.049824729561805725, 0.00043811972136609256, 0.09576242417097092, -0.019788546487689018, 0.028693391010165215, 0.02445298805832863, -0.04123791679739952, -0.08996721357107162, 0.000324379769153893, -0.03406456857919693, 0.0802849605679512, 0.041909314692020416, -0.03675015643239021, -0.04318143427371979, -0.003273060778155923, -0.13943856954574585, 0.04611437767744064, 0.02830468863248825, -0.02335755154490471, -0.013410273008048534, -0.017261972650885582, 0.007645976264029741, -0.03664414584636688, 0.015901509672403336, 0.00661237770691514, -0.023746255785226822, -0.04788121208548546, -0.03618476912379265, -0.00850730761885643, 0.04590236023068428, -0.02586645632982254, -0.034700628370046616, 0.1444563865661621, 0.03717419505119324, 0.009055026806890965, -0.024505993351340294, -0.03424125164747238, -0.06650365144014359, -0.012509187683463097, 0.0021356611978262663, 0.03551337122917175, -0.01714712753891945, -0.035177674144506454, -0.06968395411968231, -0.0001983547699637711, 0.011228232644498348, 0.05049612745642662, 0.08742296695709229, 0.008030262775719166, -0.053499747067689896, 0.004942719358950853, 0.015636485069990158, 0.03667948395013809, -0.06579691171646118, -0.02236812375485897, 0.01959419436752796, -0.013454444706439972, -0.016555238515138626, 0.028870074078440666, -0.06183920428156853, 0.007274940609931946, 0.05869423970580101, -0.04604370519518852, -0.021290354430675507, -0.05198026821017265, -0.001626592013053596, 0.032739441841840744, -0.07413637638092041, 0.01138724759221077, -0.004313284531235695, -0.004549598786979914, 0.02178506925702095, 0.02061895839869976, 0.01920549012720585, -0.03489498049020767, -0.0022317327093333006, -0.03607875853776932, 0.030654577538371086, -0.011210564523935318, 0.041767966002225876, -0.016440395265817642, 0.01865777187049389, -0.07279358059167862, -0.02236812375485897, -0.05017809942364693, 0.03971843793988228, -0.03614943102002144, -0.06869452446699142, 0.03570772334933281, -0.04074320197105408, -0.0021113671828061342, -0.056998077780008316, 0.02470034547150135, -0.0077078151516616344, 0.00075035251211375, 0.054842542856931686, 0.006373855285346508, 0.04950670152902603, 0.02328687720000744, -0.03348151221871376, 0.04830525442957878, -0.0058526392094790936, 0.03897636756300926, 0.002672336995601654, 0.022014757618308067, 0.03985978662967682, -0.03496565297245979, 0.04579634964466095, -0.02167905867099762, -0.028499038890004158, -0.03049556165933609, -0.008714910596609116, -0.0004422607598826289, -0.0035137920640408993, 0.012544524855911732, -0.016095861792564392, -0.024205632507801056, 0.02192641608417034, -0.0006818876718170941, 0.010062121786177158, 0.040389835834503174, 0.017792023718357086, 0.06318199634552002, 0.019611861556768417, 0.039365071803331375, 0.012102816253900528, -0.006709553766995668, 0.022050093859434128, 0.024364646524190903, -0.003345942823216319, -0.030654577538371086, 0.0010567879071459174, -0.003736854763701558, 0.0034872894175350666, -0.025000708177685738, 0.013321931473910809, -0.01138724759221077, -0.03272177278995514, -0.025954797863960266, 0.0003467412607278675, -0.017756685614585876, 0.0009320051758550107, 0.02524806372821331, -0.02991250716149807, -0.018516425043344498, -0.008573563769459724, 0.008299704641103745, 0.005905644036829472, -0.044241536408662796, 0.017650676891207695, -0.009867770597338676, -0.020336264744400978, 0.07470176368951797, 0.017853861674666405, 0.018092384561896324, -0.015185941942036152, 0.04826991632580757, 0.008087684400379658, -0.04579634964466095, -0.044241536408662796, -0.013321931473910809, 0.02648484893143177, -0.00265466864220798, 0.010680514387786388, 0.027244586497545242, -0.01280954945832491, -0.00330618885345757, 0.011758282780647278, -0.0134632783010602, 0.0036043422296643257, 0.051132187247276306, 0.01959419436752796, 0.016140032559633255, 0.009302383288741112, -0.016254877671599388, 0.04431220889091492, 0.05657403916120529, -0.04417086020112038, 0.10028552263975143, 0.031856026500463486, -0.09081529080867767, 0.02356957085430622, -0.0005132101941853762, -0.004397209268063307, -0.01570715755224228, -0.006391523405909538, -0.010017951019108295, -0.021767400205135345, -0.04374682158231735, 0.04010714218020439, 0.07286424934864044, 0.03735088184475899, -0.03614943102002144, 0.07035534828901291, -0.04791655018925667, 0.025265732780098915, 0.03008919022977352, 0.05993102490901947, -0.012138152495026588, -0.02644951082766056, -0.032368406653404236, -0.004748367704451084, 0.03745688870549202, 0.014010997489094734, -0.060425739735364914, -0.014558715745806694, 0.02929411455988884, -0.05314638093113899, -0.04703313112258911, -0.018428083509206772, -0.002110262867063284, -0.021042998880147934, 0.0830412209033966, -0.010503830388188362, -0.015875007957220078, -0.02014191262423992, -0.03166167438030243, 0.0027673044241964817, 0.0010661741252988577, -0.037916265428066254, 0.007668061647564173, 0.05533725395798683, -0.03213872015476227, 0.014664726331830025, 0.061521176248788834, -0.04685644805431366, 0.03653813526034355, 0.026537854224443436, -0.034594617784023285, -0.029117431491613388, -0.018428083509206772, -0.009973780252039433, -0.042898740619421005, 0.007584136910736561, -0.01619303785264492, 0.04243936389684677, 0.024364646524190903, 0.024364646524190903, 0.011714112013578415, -0.04657375440001488, 0.032880790531635284, -0.031096287071704865, -0.03203270956873894, -0.05964833125472069, -0.01629904843866825, 0.00718659907579422, 0.05491321533918381, 0.07505512982606888, 0.014205348677933216, -0.0022262113634496927, 0.07328829169273376, -0.04890597611665726, 0.027315260842442513, -0.04657375440001488, 0.003542503109201789, -0.055937979370355606, 0.02648484893143177, 0.041555944830179214, 0.0245236624032259, -0.017314977943897247, -0.010168132372200489, -0.029647482559084892, -0.013056906871497631, 0.016581742092967033, -0.03146732226014137, -0.013657630421221256, -0.005477186758071184, 0.011086885817348957, 0.05176825076341629, 0.0826878547668457, 0.02106066606938839, 0.03887035697698593, -0.034665290266275406, 0.014929750934243202, -0.015397962182760239, 0.0180040430277586, -0.0000946222644415684, 0.08650421351194382, -0.05049612745642662, -0.030142195522785187, 0.004273531027138233, -0.022050093859434128, -0.052333638072013855, 0.02586645632982254, 0.03591974452137947, 0.02775696851313114, -0.004602603614330292, 0.005742211826145649, 0.06869452446699142, 0.007129176985472441, 0.015079932287335396, 0.017297308892011642, -0.010415488854050636, 0.05841154605150223, -0.04788121208548546, -0.025919461622834206, 0.06795245409011841, -0.0025641184765845537, 0.02229745127260685, 0.028145672753453255, -0.013772474601864815, -0.007138011045753956, -0.018516425043344498, 0.02696189284324646, 0.020830977708101273, -0.015530474483966827, -0.03447094187140465, -0.03385254740715027, -0.036997511982917786, 0.032916124910116196, -0.03372886776924133, -0.038234297186136246, 0.021343359723687172, 0.037138860672712326, -0.0002196120040025562, -0.006864151917397976, -0.03169700875878334, 0.061591848731040955, 0.014947419054806232, -0.0596836693584919, 0.01670541986823082, 0.02364024519920349, -0.018746113404631615, 0.03038955293595791, -0.03968309983611107, 0.011599267832934856, 0.017756685614585876, -0.030477894470095634, -0.020742636173963547, -0.039435744285583496, 0.009134533815085888, 0.024718014523386955, 0.013472112827003002, -0.048835303634405136, -0.053464408963918686, 0.025000708177685738, -0.06456013023853302, -0.01147559005767107, 0.020018234848976135, -0.023180868476629257, 0.030901934951543808, 0.007875664159655571, -0.025848787277936935, -0.005000141449272633, -0.0007006602827459574, -0.0011981346178799868, 0.015636485069990158, -0.011281237937510014, -0.04123791679739952, -0.02915276773273945, -0.01821606233716011, 0.006007236894220114, 0.00291085965000093, -0.07399502396583557, 0.009275880642235279, 0.01629904843866825, 0.010627509094774723, 0.05498388782143593, -0.03330482915043831, -0.020230254158377647, -0.010574503801763058, -0.012853720225393772, -0.01663474552333355, 0.03159099817276001, 0.016272544860839844, 0.12226494401693344, 0.016343219205737114, -0.026573190465569496, 0.01123706717044115, 0.02328687720000744, 0.020919319242239, -0.011890796013176441, 0.009805930778384209, 0.05434782803058624, 0.007831493392586708, -0.054489172995090485, -0.006440111435949802, -0.051026180386543274, 0.034046899527311325, -0.004370706621557474, 0.05201560631394386, 0.045230962336063385, -0.002059466438367963, 0.016254877671599388, -0.018710777163505554, 0.0253894105553627, 0.030919602140784264, -0.047563184052705765, -0.019647199660539627, -0.018445750698447227, -0.034082237631082535, -0.0353366881608963, -0.04685644805431366, -0.049860067665576935, -0.03908237814903259, 0.001999835716560483, -0.016166534274816513, 0.0007674687076359987, 0.015654154121875763, 0.060425739735364914, 0.044206198304891586, -0.003315023146569729, 0.021908747032284737, -0.051167525351047516, -0.024912364780902863, 0.016307881101965904, -0.01085719745606184, -0.08615084737539291, 0.028393030166625977, -0.02270382270216942, -0.003838447853922844, 0.028976084664463997, -0.05530191957950592, -0.07088539749383926, 0.016643580049276352, -0.027862979099154472, 0.009717589244246483, 0.03848165273666382, -0.04551365599036217, 0.08494939655065536, 0.015442132949829102, 0.028976084664463997, -0.011563931591808796, 0.03268643841147423, -0.01619303785264492, -0.07484310865402222, -0.005265166517347097, 0.011864293366670609, -0.017571168020367622, 0.01711179129779339, -0.01931150071322918, -0.021396365016698837, 0.004350829869508743, -0.06848250329494476, 0.008714910596609116, 0.027279924601316452, 0.009090363048017025, -0.018516425043344498, 0.030106859281659126, -0.03717419505119324, -0.02273915894329548, -0.02568977326154709, 0.006638880353420973, 0.06410075724124908, 0.017235470935702324, 0.004668860230594873, -0.020813310518860817, 0.03770424798130989, 0.020742636173963547, 0.019876888021826744, -0.060531746596097946, -0.01242084614932537, 0.015238947235047817, -0.034665290266275406, -0.013613459654152393, 0.0627932995557785, -0.024064285680651665, 0.019223159179091454, -0.03657347336411476, 0.08671623468399048, -0.001234575523994863, -0.019611861556768417, -0.029241109266877174, -0.025990134105086327, -0.017067620530724525, 0.020707299932837486, 0.0353366881608963, -0.04130858927965164, 0.04187397658824921, -0.0070320009253919125, 0.07668061554431915, 0.011396082118153572, -0.020389270037412643, -0.04819924384355545, 0.027332928031682968, 0.032156385481357574, -0.023922938853502274, -0.019806213676929474, 0.009072694927453995, 0.003390113590285182, -0.016113530844449997, 0.014594052918255329, 0.009046192280948162, -0.0180040430277586, 0.04537230730056763, 0.03667948395013809, -0.014797238633036613, 0.022827500477433205, 0.002155537949874997, -0.009788262657821178, 0.01371946930885315, 0.010176965966820717, -0.0668923556804657, -0.06067309528589249, 0.01996522955596447, 0.023251540958881378, 0.03547803685069084, 0.052227627485990524, 0.047775205224752426, -0.010760021395981312, -0.017959872260689735, 0.020300928503274918, -0.037032850086688995, 0.06339401751756668, -0.030212869867682457, 0.061697859317064285, 0.09957879036664963, -0.024364646524190903, -0.0377395823597908, 0.007575302850455046, 0.06841182708740234, 0.004105681553483009, 0.00764155900105834, -0.04706846922636032, 0.0018132138065993786, -0.009664584882557392, -0.006691885646432638, -0.002029651077464223, 0.033499181270599365, 0.06385339796543121, -0.03728020563721657, -0.020813310518860817, -0.019223159179091454, -0.040495846420526505, 0.04572567716240883, -0.030831260606646538, -0.028410697355866432, 0.03851699084043503, -0.02068963088095188, -0.0494006909430027, 0.020919319242239, -0.02915276773273945, -0.004757201764732599, 0.0104596596211195, 0.022421129047870636, 0.042898740619421005, 0.016546403989195824, -0.013198253698647022, 0.017191298305988312, 0.04781053960323334, -0.0850907489657402, -0.0449482686817646, -0.013851981610059738, -0.008834172040224075, 0.029382456094026566, -0.08049697428941727, 0.007464875467121601, 0.0007172243786044419, 0.024877028539776802, -0.029382456094026566, 0.02470034547150135, -0.02977116033434868, 0.04441821947693825, 0.025548426434397697, 0.014691228047013283, 0.02682054601609707, -0.04102589562535286, 0.0032068046275526285, -0.043888166546821594, -0.04678577557206154, -0.04851727560162544, -0.0007746464689262211, 0.022315118461847305, -0.05413580685853958, -0.03364052623510361, -0.029188105836510658, 0.005755463149398565, -0.0387643463909626, 0.0006840961868874729, -0.0310432817786932, -0.05364109203219414, -0.014382032677531242, 0.030000848695635796, 0.0053976792842149734, -0.028569713234901428, 0.028870074078440666, -0.0030787091236561537, -0.10063888877630234, 0.04095522314310074, -0.008962268009781837, 0.03203270956873894, 0.011625770479440689, -0.02881707064807415, 0.009072694927453995, 0.05551393702626228, -0.013692966662347317, 0.054665856063365936, 0.01890512928366661, -0.008264368399977684, 0.027368266135454178, -0.01872844435274601, -0.05611466243863106, -0.010919037275016308, -0.04618505388498306, -0.004509844817221165, 0.05600865185260773, 0.03622010722756386, -0.05187425762414932, 0.017889197915792465, -0.05166224017739296, 0.025566093623638153, -0.050072088837623596, 0.022562475875020027, 0.027915984392166138, -0.028216345235705376, -0.030954940244555473, -0.04123791679739952, 0.008127438835799694, 0.02954147197306156, 0.017032284289598465, -0.08600950241088867, -0.0384109802544117, 0.013666464015841484, 0.01293322816491127, 0.028039662167429924, 0.017350314185023308, 0.009735257364809513, 0.02291584201157093, 0.024788687005639076, -0.025036044418811798, -0.026802878826856613, -0.06636229902505875, -0.03622010722756386, -0.0013107702834531665, -0.04894131422042847, 0.05010742321610451, -0.0013527326518669724, 0.011661107651889324, 0.04364081099629402, -0.028834737837314606, 0.01718246564269066, -0.06410075724124908, -0.004191814921796322, 0.015238947235047817, 0.0028468118980526924, 0.045124951750040054, 0.02662619575858116, -0.03632611781358719, 0.03406456857919693, -0.001378130866214633, -0.0077475691214203835, 0.06194521486759186, 0.012889057397842407, 0.03599041700363159, -0.06021371856331825, 0.005190076306462288, 0.003016869770362973, -0.01601635478436947, -0.035248346626758575, -0.010927870869636536, 0.0005731169367209077, 0.003644095966592431, 0.041838638484478, -0.03975377604365349, -0.018551761284470558, -0.0044524227268993855, 0.008997604250907898, 0.0193821731954813, 0.028693391010165215, -0.09095663577318192, -0.007818242534995079, -0.036997511982917786, 0.025848787277936935, -0.04113190621137619, 0.07060270756483078, -0.012836052104830742, -0.031096287071704865, -0.04311076179146767, -0.0017535832012072206, -0.03763357549905777, 0.02936478890478611, -0.04933001846075058, -0.02360490895807743, -0.07208684831857681, -0.0919460654258728, 0.04770452901721001, -0.03971843793988228, 0.051167525351047516, 0.02302185259759426, -0.03961242735385895, 0.04201532155275345, -0.0031825106125324965, -0.027014898136258125, -0.022067762911319733, -0.017164796590805054, 0.03749222680926323, -0.02630816400051117, 0.04265138506889343, 0.052121616899967194, 0.027315260842442513, -0.0655142217874527, -0.027845310047268867, 0.029665149748325348, 0.06137982755899429, 0.005680372938513756, -0.05961299315094948, -0.014037500135600567, 0.004748367704451084, -0.002614914905279875, 0.03530135378241539, 0.011873127892613411, -0.0022262113634496927, 0.0024293973110616207, -0.01464705727994442, -0.017191298305988312, 0.06971928477287292, 0.022597812116146088, 0.0017646258929744363, -0.04678577557206154, -0.03968309983611107, 0.007155679631978273, 0.02076030522584915, -0.021484706550836563, -0.0008259951137006283, 0.04197998717427254, 0.04222734272480011, 0.028446035459637642, -0.00000937768072617473, -0.03563705086708069, -0.04261604696512222, 0.025954797863960266, 0.044029515236616135, 0.036926839500665665, 0.014267188496887684, 0.05766947567462921, 0.025407079607248306, -0.00005521357525140047, -0.0008237865404225886, -0.039365071803331375, 0.03199737146496773, 0.03851699084043503, 0.005910061299800873, -0.0415206104516983, 0.008255533874034882, -0.05289902165532112, -0.01897580176591873, -0.03756289929151535, 0.014682394452393055, -0.05251032114028931, 0.004072553478181362, 0.03667948395013809, 0.006956910714507103, 0.0795782208442688, 0.08629219233989716, 0.034117572009563446 ]
30,328
networkx.algorithms.tree.mst
SpanningTreeIterator
Iterate over all spanning trees 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) as well as a modified Kruskal's Algorithm to generate minimum spanning trees which respect the partition of edges. For spanning trees 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 SpanningTreeIterator: """ Iterate over all spanning trees 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) as well as a modified Kruskal's Algorithm to generate minimum spanning trees which respect the partition of edges. For spanning trees 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 tree of the partition dict. """ mst_weight: float partition_dict: dict = field(compare=False) def __copy__(self): return SpanningTreeIterator.Partition( self.mst_weight, self.partition_dict.copy() ) def __init__(self, G, weight="weight", minimum=True, ignore_nan=False): """ Initialize the iterator Parameters ---------- G : nx.Graph 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. ignore_nan : bool, default = False If a NaN is found as an edge weight normally an exception is raised. If `ignore_nan is True` then that edge is ignored instead. """ self.G = G.copy() self.G.__networkx_cache__ = None # Disable caching self.weight = weight self.minimum = minimum self.ignore_nan = ignore_nan # Randomly create a key for an edge attribute to hold the partition data self.partition_key = ( "SpanningTreeIterators super secret partition attribute name" ) def __iter__(self): """ Returns ------- SpanningTreeIterator The iterator object for this graph """ self.partition_queue = PriorityQueue() self._clear_partition(self.G) mst_weight = partition_spanning_tree( self.G, self.minimum, self.weight, self.partition_key, self.ignore_nan ).size(weight=self.weight) self.partition_queue.put( self.Partition(mst_weight if self.minimum else -mst_weight, {}) ) 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_tree = partition_spanning_tree( self.G, self.minimum, self.weight, self.partition_key, self.ignore_nan ) self._partition(partition, next_tree) self._clear_partition(next_tree) return next_tree def _partition(self, partition, partition_tree): """ 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_tree : nx.Graph The minimum spanning tree 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_tree.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] = EdgePartition.EXCLUDED p2.partition_dict[e] = EdgePartition.INCLUDED self._write_partition(p1) p1_mst = partition_spanning_tree( self.G, self.minimum, self.weight, self.partition_key, self.ignore_nan, ) p1_mst_weight = p1_mst.size(weight=self.weight) if nx.is_connected(p1_mst): p1.mst_weight = p1_mst_weight if self.minimum else -p1_mst_weight self.partition_queue.put(p1.__copy__()) 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. 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] = EdgePartition.OPEN 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]
(G, weight='weight', minimum=True, ignore_nan=False)
[ 0.048533108085393906, -0.004880119115114212, -0.047023896127939224, -0.0013366959756240249, 0.009124781005084515, -0.0037506918888539076, -0.021168697625398636, 0.0011523882858455181, 0.006960251834243536, -0.02494172938168049, -0.017236800864338875, 0.02236018143594265, -0.011815547943115234, 0.01917296089231968, -0.06302949786186218, 0.03989485278725624, 0.009929032064974308, 0.03246793523430824, 0.009179390035569668, 0.07895566523075104, -0.03147503361105919, -0.07772446423768997, 0.009998535737395287, 0.04380689188838005, -0.03276580572128296, -0.005292174406349659, 0.013860928826034069, -0.029926102608442307, -0.03757145628333092, -0.02964808978140354, -0.01881551556289196, -0.021923303604125977, -0.007704928983002901, -0.05194869637489319, 0.025021161884069443, 0.0035322532057762146, 0.0019125798717141151, 0.0354267880320549, -0.055999740958213806, -0.03469203785061836, -0.027999870479106903, -0.003383317729458213, -0.011855264194309711, -0.04543524980545044, 0.025477897375822067, 0.047977082431316376, 0.060646530240774155, 0.06255290657281876, 0.004765935707837343, 0.005207777488976717, 0.03898138180375099, -0.023174360394477844, -0.012143206782639027, 0.008052445016801357, -0.053735923022031784, 0.031157303601503372, 0.02921121194958687, -0.06295006722211838, 0.03953740745782852, -0.053735923022031784, 0.014814116060733795, 0.014694967307150364, 0.032865095883607864, 0.0024897048715502024, -0.0632677897810936, -0.04615014046430588, -0.060090504586696625, -0.05929617956280708, -0.06255290657281876, 0.06676281243562698, 0.015032554976642132, -0.03520834818482399, 0.039557263255119324, -0.0014558443799614906, -0.04142392426729202, 0.030998438596725464, -0.023571522906422615, -0.03989485278725624, 0.03203105926513672, -0.05762810260057449, 0.01024676114320755, 0.014853832311928272, 0.016611270606517792, -0.023333225399255753, 0.0447600781917572, 0.0251403097063303, 0.0652138814330101, 0.06179829686880112, 0.026728954166173935, -0.04003385826945305, -0.021466568112373352, 0.05500683933496475, 0.04801680147647858, 0.03931896761059761, 0.05278273671865463, 0.006230467930436134, -0.03254736587405205, -0.06584934145212173, -0.0288934838026762, -0.02867504581809044, -0.009005632251501083, 0.04321114718914032, -0.020185722038149834, 0.022618334740400314, -0.0014732201816514134, -0.03949768841266632, -0.024902012199163437, 0.020572954788804054, -0.017286445945501328, -0.04380689188838005, -0.07700957357883453, 0.014138941653072834, -0.019619768485426903, 0.0214268509298563, 0.0022265855222940445, 0.003959201741963625, -0.019629696384072304, -0.000703099591191858, 0.02345237508416176, 0.0003385179443284869, 0.028397032991051674, 0.03655869513750076, -0.01917296089231968, 0.03701543062925339, -0.024286413565278053, -0.0409473292529583, 0.0950804129242897, 0.02253890410065651, 0.01990770921111107, -0.05854157358407974, 0.04340972751379013, 0.009799954481422901, 0.007412022445350885, 0.035466503351926804, -0.0031847371719777584, -0.00699003878980875, -0.05925646424293518, 0.016551697626709938, -0.03242821991443634, 0.007426916155964136, 0.03705514967441559, -0.09396836161613464, 0.005292174406349659, 0.007213442120701075, -0.00002230153768323362, -0.029012631624937057, -0.0008576201507821679, -0.0027652354910969734, 0.03054170310497284, -0.009909174405038357, -0.02549775503575802, -0.01938147097826004, 0.00892619974911213, -0.006712025962769985, 0.01860700733959675, -0.022658051922917366, -0.015926167368888855, 0.011954554356634617, -0.0204935222864151, 0.01044534146785736, -0.03091900609433651, -0.04130477458238602, 0.032527510076761246, 0.012868025340139866, -0.04186080023646355, 0.035307638347148895, -0.046110425144433975, -0.034910477697849274, -0.04229767620563507, -0.01675027795135975, 0.060289084911346436, -0.013761638663709164, -0.04487922415137291, -0.0015973331173881888, -0.05659548193216324, 0.03655869513750076, 0.03427501767873764, 0.03373885154724121, -0.01015243586152792, -0.007878687232732773, -0.0335601307451725, -0.04174165055155754, -0.03769060596823692, -0.011239664629101753, -0.0013987524434924126, 0.03687642514705658, 0.038087766617536545, -0.03111758641898632, 0.0391005277633667, -0.008906342089176178, -0.05325932800769806, -0.0539742186665535, 0.026014065369963646, 0.05230614170432091, -0.009149603545665741, 0.02851618081331253, 0.015231135301291943, 0.015340355224907398, -0.016521910205483437, 0.0876137837767601, -0.02813887782394886, 0.020433947443962097, 0.0839598998427391, 0.011219806037843227, 0.006637557875365019, 0.012897812761366367, -0.03626082465052605, 0.0012733984040096402, 0.005391464568674564, 0.043131716549396515, -0.08626343309879303, -0.0522267110645771, 0.027086399495601654, 0.051908981055021286, 0.0031574321910738945, -0.025458037853240967, -0.033440981060266495, 0.005465932190418243, 0.06072596088051796, -0.04940686374902725, -0.013791426084935665, 0.017256658524274826, 0.01127938088029623, -0.025994205847382545, 0.07740673422813416, -0.06013021990656853, 0.05298131704330444, -0.051710400730371475, 0.015241064131259918, -0.004885083995759487, 0.05306074768304825, -0.0819740891456604, 0.00987442210316658, -0.02907220646739006, 0.01603538729250431, -0.03254736587405205, -0.023789960891008377, -0.04241682589054108, 0.0007241987623274326, 0.017812684178352356, -0.07546064257621765, -0.04622957482933998, -0.020016929134726524, -0.0003633405140135437, -0.03929910808801651, -0.00858364813029766, 0.01601552963256836, 0.04773878678679466, 0.034553032368421555, 0.01996728405356407, -0.015499219298362732, -0.06600820273160934, -0.021168697625398636, -0.038683511316776276, 0.034016866236925125, -0.029866529628634453, -0.042218245565891266, -0.007699964568018913, -0.013155967928469181, 0.007938261143863201, -0.015022626146674156, -0.026550231501460075, -0.05731037259101868, 0.06723940372467041, 0.03056156076490879, 0.020771535113453865, 0.02756299264729023, 0.0032120419200509787, -0.017544599249958992, -0.007054577581584454, 0.06227489188313484, 0.0671996921300888, -0.0003205215616617352, 0.028198450803756714, -0.020374374464154243, -0.00007326540071517229, -0.05321961268782616, 0.023988541215658188, -0.021168697625398636, -0.03500976786017418, -0.024087831377983093, 0.024723289534449577, -0.03870336711406708, 0.020225439220666885, -0.03500976786017418, 0.023372942581772804, -0.009660948067903519, -0.10048180818557739, 0.004410972353070974, -0.012758806347846985, -0.024465136229991913, 0.002422683872282505, 0.02065238729119301, -0.013136109337210655, 0.09087049961090088, 0.017008433118462563, -0.019252393394708633, -0.05111465975642204, -0.0144467419013381, 0.03856436163187027, 0.07522235065698624, -0.049684878438711166, 0.01567794196307659, 0.0009544282220304012, 0.00875740684568882, 0.04595156013965607, 0.016710560768842697, 0.007307767868041992, -0.009705629199743271, 0.019411258399486542, -0.03242821991443634, 0.010554561391472816, 0.023392800241708755, -0.025060877203941345, 0.003239346668124199, -0.1154150739312172, 0.014307735487818718, -0.014168729074299335, 0.03000553511083126, 0.07422944158315659, -0.0409870445728302, 0.05814441293478012, -0.0088368384167552, 0.015419786795973778, -0.07220391929149628, 0.024723289534449577, 0.025736050680279732, 0.050360050052404404, -0.03834592178463936, -0.013225470669567585, -0.05889901891350746, -0.0015278297942131758, 0.0020441394299268723, 0.05985220521688461, -0.03433459252119064, 0.06358551979064941, 0.07951168715953827, -0.010584348812699318, 0.00004553392136585899, -0.05870043858885765, 0.0690266340970993, 0.034572891891002655, 0.0026510516181588173, 0.01847792975604534, 0.001581198419444263, -0.004837920889258385, 0.03298424556851387, -0.010554561391472816, -0.0036662952043116093, 0.07355426996946335, 0.018309134989976883, 0.06227489188313484, 0.010296406224370003, -0.004659198224544525, 0.047977082431316376, -0.02738427184522152, 0.012073703110218048, -0.03445374220609665, -0.015598509460687637, 0.006086496636271477, 0.0186367928981781, -0.01489354856312275, 0.007198548410087824, 0.025795625522732735, -0.006404225714504719, -0.05456995964050293, -0.040113288909196854, 0.029727522283792496, 0.02404811605811119, -0.06314864754676819, -0.003715940285474062, -0.10397682338953018, -0.04045087844133377, 0.021744580939412117, -0.024683574214577675, 0.031197018921375275, -0.03983527794480324, -0.0012758806115016341, -0.0015327943256124854, 0.03856436163187027, 0.08237124979496002, 0.006826209835708141, 0.02311478741466999, 0.05846214294433594, -0.009546764194965363, -0.05099551007151604, 0.07220391929149628, -0.0577075369656086, 0.05437137931585312, -0.03794876113533974, -0.015608438290655613, 0.021367277950048447, 0.044640928506851196, 0.04511752352118492, -0.023154502734541893, -0.0027155904099345207, 0.08253011852502823, -0.016859496012330055, -0.04118562489748001, -0.018130412325263023, 0.009338255040347576, -0.05234585702419281, -0.03993456810712814, 0.06755713373422623, 0.05850185826420784, -0.09658962488174438, 0.060487665235996246, 0.02402825839817524, 0.027126116678118706, 0.05425223335623741, -0.034394167363643646, -0.02758285216987133, 0.03441402688622475, 0.043131716549396515, -0.0011629379587247968, -0.04527638852596283, -0.0067815291695296764, 0.04142392426729202, 0.0688280537724495, -0.009938960894942284, 0.03506934270262718, -0.03242821991443634, 0.05417279899120331, 0.022042451426386833, 0.012709161266684532, -0.0708535760641098, -0.02478286437690258, -0.04364802688360214, -0.036419689655303955, 0.040867894887924194, 0.00922407116740942, -0.048890553414821625, -0.01993749663233757, -0.0022836774587631226, 0.002090061316266656, -0.023551665246486664, -0.03260694071650505, 0.019778631627559662, 0.01482404489070177, -0.019252393394708633, 0.027821147814393044, 0.02980695478618145, 0.04503808915615082, -0.04706361144781113, 0.022995639592409134, -0.011785761453211308, -0.0036067210603505373, 0.0465473048388958, -0.0652138814330101, 0.009090028703212738, 0.029906244948506355, -0.025994205847382545, 0.01660134270787239, 0.003013461362570524, -0.07593724131584167, 0.017028290778398514, 0.008330457843840122, -0.013811283744871616, -0.05619832128286362, 0.02809916064143181, 0.08610456436872482, 0.025775767862796783, -0.018954522907733917, 0.026014065369963646, -0.007799254730343819, 0.006265219300985336, 0.036995574831962585, 0.007704928983002901, 0.008246061392128468, -0.035684943199157715, 0.04865225777029991, -0.005163096822798252, -0.07740673422813416, -0.05663520097732544, 0.008290741592645645, 0.013533270917832851, -0.04329058155417442, -0.004758488852530718, -0.003105304902419448, -0.014228302985429764, 0.002482258016243577, -0.034354452043771744, 0.07399114966392517, 0.00942265149205923, -0.031077871099114418, -0.033838141709566116, 0.007754574064165354, -0.008375138975679874, -0.03953740745782852, -0.013860928826034069, -0.028416890650987625, -0.031077871099114418, 0.029866529628634453, 0.040709033608436584, -0.013155967928469181, 0.06743798404932022, 0.002742895158007741, 0.003509912872686982, 0.09198255836963654, -0.09333290159702301, -0.0010220697149634361, 0.057072076946496964, -0.030243832617998123, 0.015012696385383606, 0.04956572875380516, 0.02923107147216797, -0.021347418427467346, 0.03858422115445137, -0.014466599561274052, -0.00911981612443924, 0.04142392426729202, -0.04245654121041298, 0.016134677454829216, 0.04043101891875267, 0.011477961204946041, -0.018924735486507416, -0.00037885463098064065, 0.016462335363030434, 0.02047366462647915, -0.05155153572559357, 0.006146071013063192, -0.009025489911437035, 0.028079302981495857, -0.01880558766424656, -0.026709096506237984, 0.011755974031984806, -0.01024676114320755, -0.010792857967317104, 0.0353672131896019, 0.009477261453866959, 0.013155967928469181, 0.03745231032371521, 0.034910477697849274, 0.03796862065792084, 0.039974283427000046, -0.024643858894705772, 0.03743245080113411, 0.020572954788804054, -0.029389934614300728, 0.010256689973175526, 0.021367277950048447, 0.003760620951652527, 0.01974884420633316, -0.0014446742134168744, 0.027265122160315514, 0.06970180571079254, 0.04861254245042801, -0.022499186918139458, -0.013285045512020588, -0.021744580939412117, 0.044998373836278915, 0.012590012513101101, 0.026788529008626938, 0.015926167368888855, 0.051908981055021286, -0.023392800241708755, -0.016541767865419388, -0.01601552963256836, 0.03201119974255562, 0.02160557359457016, -0.025974348187446594, 0.03207077458500862, 0.007377271074801683, -0.043489161878824234, 0.04900970309972763, -0.05238557234406471, -0.029171496629714966, -0.002217897679656744, 0.030065109953284264, 0.051154375076293945, 0.050042323768138885, 0.038286346942186356, 0.027443844825029373, -0.010852431878447533, -0.04134448990225792, -0.004552461206912994, -0.03689628466963768, -0.01219285186380148, -0.05758838728070259, -0.07037697732448578, 0.015350284054875374, 0.0010841261828318238, 0.053735923022031784, -0.022975780069828033, 0.001954778330400586, 0.030879290774464607, -0.06767628341913223, 0.02386939339339733, -0.034553032368421555, 0.007744645234197378, 0.037750180810689926, -0.03636011481285095, 0.03497005254030228, -0.01881551556289196, -0.006687203422188759, -0.013096393086016178, -0.009507047943770885, -0.03125659376382828, 0.0045251562260091305, -0.062314607203006744, -0.04436291754245758, 0.03649912402033806, -0.00754606444388628, 0.0428934209048748, 0.046269290149211884, -0.0005473379278555512, 0.0059822420589625835, -0.029568657279014587, 0.030223974958062172, -0.009929032064974308, 0.011319097131490707, 0.04622957482933998, 0.005019125994294882, -0.05925646424293518, -0.035645224153995514, 0.02680838666856289, -0.05159125104546547, -0.0409870445728302, 0.016442477703094482, -0.07160817831754684, -0.004271965939551592, 0.0024264072999358177, -0.013841071166098118, -0.00577373243868351, -0.016551697626709938, -0.006304935552179813, 0.07283937931060791, -0.05194869637489319, -0.008538967929780483, -0.0005355471512302756, 0.008459535427391529, -0.04412461817264557, 0.02738427184522152, -0.00808719638735056, -0.022995639592409134, -0.022102026268839836, 0.024127548560500145, -0.029866529628634453, -0.04694446548819542, 0.006404225714504719, -0.032666515558958054, -0.0027776467613875866, 0.0033907645847648382, -0.026351651176810265, -0.03778989613056183, -0.06723940372467041, 0.005138274282217026, 0.02380981855094433, 0.022221174091100693, 0.017286445945501328, -0.0372735857963562, 0.04885083809494972, -0.013473697006702423, -0.025676477700471878, 0.005138274282217026, 0.04599127918481827, -0.016631128266453743, -0.017405593767762184, 0.038862232118844986, 0.011557393707334995, 0.03689628466963768, -0.01500276755541563, -0.009502083994448185, 0.016889283433556557, 0.01546943187713623, 0.009278680197894573, 0.016323329880833626, -0.007719822693616152, 0.008921235799789429, 0.009591445326805115, -0.03850478678941727, -0.03576437383890152, 0.002034210367128253, -0.032527510076761246, -0.06858975440263748, -0.022975780069828033, -0.0034776434767991304, -0.0010878496104851365, -0.0446806438267231, -0.029171496629714966, 0.01060420647263527, 0.056516051292419434, -0.005545364692807198, 0.005535435397177935, 0.006726919207721949, 0.054331663995981216, -0.06497558951377869, -0.07490462064743042, 0.024663716554641724, -0.03191190958023071, 0.04329058155417442, -0.02476300671696663, 0.036221109330654144, 0.028039587661623955, -0.045554399490356445, -0.02813887782394886, 0.006816280540078878, 0.0016085031675174832, 0.022042451426386833, -0.07367341965436935, 0.0316934697329998, -0.009899245575070381, 0.009725486859679222, -0.0025207330472767353, -0.004259554669260979, 0.024822579696774483, -0.10850446671247482, 0.03778989613056183, 0.03207077458500862, 0.0015787160955369473, -0.005912738852202892, 0.008484357967972755, -0.037730321288108826, -0.003760620951652527, 0.006002100184559822, 0.013463768176734447, -0.005098558031022549, -0.010073003359138966, -0.0069304644130170345, 0.014665180817246437, -0.0012758806115016341, -0.02120841294527054, -0.0013850999530404806, 0.04754020646214485, -0.04761963710188866, 0.059534478932619095, 0.04364802688360214, -0.07418972998857498, -0.03371899202466011, -0.01462546456605196, 0.018130412325263023, 0.06386353820562363, -0.011289309710264206, 0.004413454793393612, 0.0354069285094738, -0.010703496634960175, 0.03689628466963768, 0.04726219177246094, 0.004547496791929007, 0.06426069885492325, 0.005599974188953638, -0.009040383622050285, -0.08253011852502823, 0.005173025652766228, -0.030660850927233696, 0.016641058027744293, 0.004234732128679752, 0.021565858274698257, 0.01824956201016903, -0.0030804823618382215, 0.05909759923815727, -0.05532456934452057, 0.024524709209799767, 0.019490690901875496, 0.004654233809560537, -0.0015303121181204915, -0.010023358277976513, -0.008121948689222336, -0.020731819793581963, -0.07839963585138321, -0.027662284672260284, -0.00941768754273653, 0.007501383777707815, 0.029191354289650917, 0.0030382839031517506, 0.03669770434498787, 0.026033923029899597, 0.05667491629719734 ]
30,329
networkx.algorithms.tree.mst
__init__
Initialize the iterator Parameters ---------- G : nx.Graph 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. ignore_nan : bool, default = False If a NaN is found as an edge weight normally an exception is raised. If `ignore_nan is True` then that edge is ignored instead.
def __init__(self, G, weight="weight", minimum=True, ignore_nan=False): """ Initialize the iterator Parameters ---------- G : nx.Graph 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. ignore_nan : bool, default = False If a NaN is found as an edge weight normally an exception is raised. If `ignore_nan is True` then that edge is ignored instead. """ self.G = G.copy() self.G.__networkx_cache__ = None # Disable caching self.weight = weight self.minimum = minimum self.ignore_nan = ignore_nan # Randomly create a key for an edge attribute to hold the partition data self.partition_key = ( "SpanningTreeIterators super secret partition attribute name" )
(self, G, weight='weight', minimum=True, ignore_nan=False)
[ 0.01954914815723896, 0.001635718042962253, -0.05301403999328613, -0.0046930317766964436, -0.0011009640293195844, 0.009492021054029465, -0.039451487362384796, 0.026966169476509094, 0.09359574317932129, -0.022745531052350998, 0.010975425131618977, 0.055733613669872284, -0.02200382947921753, 0.02085595764219761, -0.06551701575517654, 0.014842871576547623, -0.008533989079296589, 0.04432553052902222, 0.01021606381982565, 0.0859668031334877, -0.05177786946296692, -0.05855914577841759, -0.012582446448504925, 0.03491297736763954, -0.01286499947309494, 0.0051830848678946495, -0.0004947439883835614, -0.018436595797538757, 0.009492021054029465, 0.011469893157482147, -0.034118298441171646, -0.06212637946009636, -0.059442125260829926, -0.03433021157979965, 0.0340299978852272, 0.005946861580014229, -0.03159297630190849, 0.027407659217715263, -0.0740995705127716, -0.034718722105026245, 0.025535743683576584, -0.039345528930425644, 0.0037990158889442682, -0.02188021130859852, -0.004225052893161774, 0.030815957114100456, 0.06834255158901215, 0.017588935792446136, 0.009421383030712605, -0.024052340537309647, 0.01278553158044815, 0.008485425263643265, 0.007297819014638662, 0.01939021237194538, -0.040475744754076004, 0.029968297109007835, 0.009536169469356537, -0.036308083683252335, 0.0322110615670681, -0.0017074600327759981, -0.004145585000514984, -0.014604467898607254, 0.02544744685292244, 0.009995318949222565, -0.030233191326260567, -0.03634340316057205, -0.08992254734039307, -0.02417595684528351, -0.04905829578638077, 0.05121276527643204, 0.009103510528802872, -0.027796169742941856, 0.04365446791052818, 0.027072126045823097, -0.05216637998819351, 0.028520211577415466, -0.06258553266525269, -0.006057234015315771, 0.04210042580962181, -0.03279382735490799, 0.019655106589198112, 0.04644468054175377, 0.015054786577820778, -0.010463297367095947, 0.03807404264807701, -0.024069998413324356, 0.02514723315834999, 0.034559786319732666, 0.04453744366765022, -0.01271489355713129, -0.06629403680562973, 0.028855742886662483, 0.028361275792121887, 0.012988616712391376, 0.04803404211997986, 0.04743361473083496, -0.012485318817198277, -0.05810000002384186, 0.028414255008101463, -0.025217872112989426, -0.010295531712472439, 0.02933255210518837, 0.014542658813297749, 0.026489360257983208, -0.020184893161058426, -0.04015786945819855, -0.02214510552585125, -0.025200212374329567, -0.015505106188356876, -0.02313404157757759, -0.08165787160396576, 0.016061382368206978, 0.04626808315515518, 0.008622286841273308, 0.01488702092319727, 0.01380978710949421, 0.0224453192204237, -0.025518083944916725, 0.048387233167886734, -0.010507446713745594, 0.021315105259418488, 0.02156233973801136, -0.024794042110443115, 0.06558765470981598, -0.03655531629920006, -0.025906594470143318, 0.0652344673871994, -0.004843138158321381, 0.009580318816006184, -0.023964041844010353, 0.06149063631892204, -0.013403616845607758, 0.016520531848073006, 0.01431308500468731, 0.0215446799993515, -0.012670744210481644, -0.05824127420783043, 0.007902659475803375, -0.01179659552872181, 0.06622340530157089, 0.026983829215168953, -0.07275744527578354, 0.0235578715801239, 0.02445850893855095, 0.01503712683916092, -0.0051830848678946495, -0.027690211310982704, 0.02082063816487789, 0.03434786945581436, -0.05668723210692406, -0.013279999606311321, 0.013147552497684956, 0.01537265907973051, 0.019796382635831833, 0.0026754254940897226, 0.007832021452486515, -0.0489170178771019, 0.0018034839304164052, -0.02170361578464508, -0.00043873002869077027, -0.006401595659554005, -0.005991010461002588, -0.00935074407607317, -0.015955425798892975, -0.030568722635507584, 0.032988082617521286, -0.025659359991550446, -0.00401093065738678, -0.042206380516290665, -0.0015816355589777231, 0.03062170185148716, -0.06307999789714813, -0.05474467948079109, -0.010913616977632046, -0.04799872264266014, 0.04835191369056702, 0.051530636847019196, 0.06378637999296188, -0.005505372304469347, 0.046056170016527176, -0.035707660019397736, -0.0285908505320549, -0.033147018402814865, -0.02055574394762516, 0.015354999341070652, -0.004231675527989864, 0.04315999895334244, -0.020078934729099274, 0.025835957378149033, -0.008101329207420349, -0.022321701049804688, -0.008043935522437096, 0.025129573419690132, 0.04315999895334244, 0.003618005197495222, 0.022621914744377136, 0.011920212768018246, 0.01715627685189247, -0.06389233469963074, 0.12792594730854034, -0.005443563684821129, -0.004710691515356302, 0.04718638211488724, 0.018948722630739212, -0.006304468028247356, 0.010039467364549637, -0.024652766063809395, 0.003372978651896119, 0.0038784840144217014, 0.008291170001029968, -0.06138467788696289, -0.030974892899394035, 0.05619276314973831, 0.063221275806427, -0.02629510499536991, 0.008450105786323547, -0.07113276422023773, 0.004342047963291407, 0.04676255211234093, -0.05764085054397583, -0.016343936324119568, 0.00204851059243083, 0.022692551836371422, -0.08441276103258133, 0.06728297472000122, -0.0652344673871994, 0.05280212685465813, -0.05244893580675125, -0.003156648948788643, 0.011540531180799007, 0.04715106263756752, -0.05287276580929756, 0.03136340156197548, -0.01856021210551262, 0.020591063424944878, -0.047080423682928085, -0.00539058493450284, -0.002100385492667556, -0.014330743812024593, 0.018860425800085068, -0.06488127261400223, -0.03447148948907852, -0.037473615258932114, -0.008467765524983406, 0.012467659078538418, -0.0030573136173188686, 0.013606701977550983, 0.022251063957810402, 0.008600212633609772, 0.000958031858317554, -0.030727658420801163, -0.046374041587114334, -0.017871487885713577, -0.04376042261719704, 0.024529147893190384, -0.011540531180799007, -0.040193188935518265, -0.04407829791307449, -0.0040153455920517445, 0.006154361646622419, -0.012140956707298756, -0.010445637628436089, -0.05403829738497734, 0.07318127155303955, 0.023946382105350494, 0.0258712749928236, 0.03920425474643707, 0.017668403685092926, -0.006511968094855547, -0.00007491522410418838, 0.04351319000124931, 0.06297404319047928, 0.01896638236939907, 0.019672764465212822, -0.0018884707242250443, -0.014551488682627678, -0.04948212578892708, 0.04775148630142212, -0.06816595792770386, -0.03164595738053322, -0.024952977895736694, 0.032705530524253845, -0.04485531896352768, 0.04273616895079613, -0.06106680631637573, 0.006366276182234287, 0.004962340462952852, -0.03159297630190849, -0.028979361057281494, -0.028378935530781746, 0.015249041840434074, 0.003467898815870285, 0.01026904210448265, 0.0015584573848173022, 0.06449276208877563, -0.04644468054175377, -0.017403509467840195, -0.03367680683732033, -0.0015849467599764466, 0.0712740421295166, 0.0777021273970604, -0.07229829579591751, 0.006445744540542364, -0.012644254602491856, 0.0020694814156740904, 0.08992254734039307, 0.028573190793395042, 0.04164127632975578, -0.029208935797214508, 0.03353553265333176, -0.018295317888259888, 0.034294892102479935, 0.019743403419852257, -0.002456888323649764, -0.010260212235152721, -0.1008714884519577, 0.008538403548300266, -0.02271021157503128, 0.01586712710559368, 0.06011318787932396, -0.06558765470981598, 0.0859668031334877, -0.03238765895366669, 0.005483297631144524, -0.10171914845705032, 0.0781259536743164, 0.01912531815469265, 0.07847914844751358, -0.034877657890319824, 0.0051610106602311134, -0.020449787378311157, 0.014118829742074013, -0.003659946611151099, 0.04584425315260887, -0.056298721581697464, 0.07777276635169983, 0.08299999684095383, -0.0011263496708124876, 0.0024723403621464968, -0.05276680737733841, 0.011072552762925625, 0.014842871576547623, -0.014260105788707733, 0.03477169945836067, -0.0005057812086306512, -0.008988723158836365, 0.02216276526451111, -0.02087361551821232, 0.023240000009536743, 0.055698297917842865, 0.019231276586651802, 0.0791148915886879, 0.004273616708815098, 0.017465319484472275, 0.039168935269117355, -0.0029204520396888256, -0.005854148883372545, -0.0015352792106568813, -0.02025553211569786, 0.05131871998310089, 0.006273563485592604, -0.02271021157503128, 0.016317445784807205, 0.003942499868571758, 0.023628510534763336, -0.06170254945755005, -0.00045942486030980945, 0.06943744421005249, 0.012750212103128433, -0.044042978435754776, -0.0029623934533447027, -0.07975063472986221, -0.06675318628549576, 0.02571233920753002, -0.008216116577386856, 0.00976574420928955, -0.061172764748334885, -0.013085744343698025, 0.0205380842089653, 0.0255710631608963, 0.0448906384408474, 0.026665955781936646, 0.030709998682141304, 0.04524382948875427, 0.005205159541219473, -0.08130467683076859, 0.0859668031334877, -0.004083776380866766, 0.043901700526475906, -0.057570211589336395, -0.05622808262705803, -0.036025531589984894, 0.024034680798649788, 0.02182723395526409, -0.020732339471578598, -0.04210042580962181, 0.09048765897750854, -0.03842723369598389, -0.052272338420152664, -0.0422770194709301, -0.025659359991550446, -0.0358312763273716, -0.04934084787964821, 0.08518978208303452, 0.048952337354421616, -0.03641404211521149, 0.02055574394762516, 0.02385808527469635, 0.04616212472319603, 0.015778828412294388, -0.013200531713664532, 0.004684201907366514, 0.0336238294839859, 0.02256893552839756, 0.0009900399018079042, -0.027125105261802673, 0.011169680394232273, 0.0350365936756134, 0.04683319106698036, 0.01596425473690033, 0.02716042473912239, -0.002180957468226552, 0.04732765629887581, 0.013394786976277828, 0.044360850006341934, -0.04990595579147339, 0.013068084605038166, -0.053261276334524155, -0.023911062628030777, 0.04400765895843506, -0.044042978435754776, -0.04930553212761879, 0.0011522872373461723, 0.008035106584429741, 0.026824893429875374, -0.017950957641005516, -0.0692608505487442, -0.01186723355203867, -0.005818829406052828, -0.00485196802765131, 0.010366169735789299, -0.0034701062832027674, 0.034153614193201065, -0.06488127261400223, -0.01882510632276535, -0.03378276526927948, 0.019796382635831833, 0.06611744314432144, -0.01630861684679985, -0.026665955781936646, 0.029509147629141808, -0.03304106369614601, 0.03733234107494354, -0.0034568614792078733, -0.06731829792261124, 0.04976467788219452, -0.020732339471578598, -0.006494308356195688, -0.038003403693437576, 0.03106318973004818, 0.04626808315515518, 0.010666382499039173, -0.008295584470033646, -0.012988616712391376, -0.03033914789557457, 0.00976574420928955, 0.04298340156674385, 0.018348297104239464, -0.00928010605275631, -0.01997297815978527, 0.06011318787932396, -0.020520424470305443, -0.06569361686706543, -0.08342383056879044, 0.021226808428764343, 0.010154254734516144, -0.05149531736969948, -0.013571382500231266, -0.006013085134327412, -0.05463872104883194, -0.004626808222383261, -0.023504892364144325, 0.09974127262830734, 0.02041446790099144, -0.0358312763273716, -0.006745957303792238, -0.027107445523142815, -0.02384042553603649, -0.015875956043601036, -0.0033288297709077597, -0.014472020789980888, -0.008030691184103489, -0.006375106051564217, 0.04789276421070099, 0.034718722105026245, 0.07275744527578354, 0.01287382934242487, 0.005050638224929571, 0.05704042315483093, -0.04898765683174133, -0.003436994506046176, 0.013509574346244335, 0.012750212103128433, 0.004456834867596626, 0.041782550513744354, 0.013783297501504421, -0.012008510529994965, 0.002520904177799821, 0.00585856381803751, -0.013465424999594688, 0.07862042635679245, -0.018754467368125916, 0.0025716754607856274, 0.044784680008888245, 0.012670744210481644, -0.061031486839056015, -0.015769999474287033, 0.0014006249839439988, 0.016820743680000305, 0.0011037234216928482, 0.04164127632975578, -0.015045956708490849, -0.005717286840081215, -0.02530616894364357, -0.01914297789335251, 0.0051610106602311134, 0.02025553211569786, -0.02633042447268963, 0.05425021052360535, 0.010092446580529213, 0.008900425396859646, 0.04354850947856903, 0.01598191447556019, 0.046797871589660645, 0.018454255536198616, -0.02919127605855465, 0.0765012726187706, 0.042488936334848404, -0.024529147893190384, 0.014498510397970676, 0.029102977365255356, -0.006701808422803879, -0.0025297340471297503, -0.008370637893676758, 0.05679319053888321, 0.035566382110118866, 0.026065530255436897, -0.02818468026816845, 0.008136648684740067, -0.039769358932971954, 0.0017736834706738591, -0.017350532114505768, -0.03033914789557457, -0.009306595660746098, 0.04195914790034294, -0.0051830848678946495, -0.02818468026816845, -0.022233404219150543, 0.024794042110443115, 0.016864893957972527, -0.029809361323714256, 0.0006837566033937037, -0.001389587763696909, -0.02057340368628502, 0.05997191369533539, -0.04121744632720947, -0.00963329803198576, -0.0205380842089653, 0.024511488154530525, 0.0511421263217926, 0.03372978791594505, -0.004509813617914915, 0.010392659343779087, 0.01612319052219391, -0.04054637998342514, -0.009748084470629692, -0.032581914216279984, -0.00636186171323061, -0.02832595631480217, -0.08815659582614899, 0.007050585001707077, -0.02288680709898472, 0.07088553160429001, -0.0014878191286697984, -0.006436914671212435, 0.008299999870359898, -0.04238297790288925, 0.04828127473592758, -0.06364510208368301, -0.0001717669510981068, 0.055874891579151154, -0.07173319160938263, 0.00970393605530262, -0.01431308500468731, -0.0011467685690149665, -0.03304106369614601, -0.023787446320056915, -0.048387233167886734, -0.04542042315006256, -0.03856850787997246, -0.0348246805369854, 0.06869573891162872, 0.019637446850538254, 0.07869105786085129, 0.02286914736032486, -0.030957233160734177, -0.007077074144035578, -0.024988297373056412, -0.0017869281582534313, -0.008216116577386856, 0.01727106235921383, 0.04153531789779663, 0.021650638431310654, -0.01789797842502594, -0.029721062630414963, 0.0032846806570887566, -0.03782680630683899, -0.004214015789330006, 0.010957765392959118, -0.041782550513744354, -0.019372552633285522, -0.04114680737257004, -0.016776595264673233, 0.0034082976635545492, -0.014198297634720802, -0.04556170105934143, 0.07494723051786423, -0.053261276334524155, 0.016635319218039513, 0.021315105259418488, 0.018577871844172478, -0.0640336126089096, 0.01880744658410549, -0.023540211841464043, -0.033712126314640045, -0.04640936106443405, 0.02615382894873619, -0.0034082976635545492, -0.05810000002384186, -0.016458723694086075, -0.0491289347410202, 0.018065745010972023, -0.010004148818552494, -0.015293191187083721, -0.04460808262228966, -0.048245955258607864, 0.0006296741776168346, 0.015584574081003666, 0.021014893427491188, -0.005478882696479559, -0.03118680790066719, 0.03839191421866417, 0.011761276051402092, -0.01271489355713129, -0.025412127375602722, 0.03346489369869232, -0.005832074210047722, 0.0015419014962390065, 0.039486806839704514, -0.009315425530076027, 0.004626808222383261, 0.014180637896060944, 0.03334127739071846, 0.012388191185891628, 0.01781851053237915, 0.0031235371716320515, 0.012953297235071659, -0.020908934995532036, 0.0010998602956533432, -0.011531701311469078, -0.0698612779378891, -0.0011666356585919857, 0.012140956707298756, -0.035124894231557846, -0.06880170106887817, -0.004706276580691338, -0.002450265921652317, -0.00542590394616127, 0.006317712366580963, -0.02228638157248497, -0.0067062233574688435, 0.05163659527897835, -0.029138296842575073, -0.004538510460406542, -0.009306595660746098, 0.03104553185403347, -0.07643063366413116, -0.031116168946027756, 0.03267021104693413, -0.02212744578719139, 0.014039360918104649, -0.04870510473847389, 0.06339786946773529, 0.012485318817198277, -0.019054681062698364, -0.02558872289955616, -0.020608723163604736, -0.025624042376875877, 0.010339680127799511, -0.060854893177747726, 0.04757489264011383, 0.02029084973037243, 0.0005463430425152183, -0.0021997205913066864, 0.019001701846718788, -0.024493828415870667, -0.09649191051721573, 0.03892170265316963, 0.00883861631155014, 0.028679147362709045, -0.009103510528802872, 0.004997659474611282, -0.04418425261974335, 0.006807765923440456, -0.0004751529195345938, 0.05545106157660484, 0.008485425263643265, -0.007743723224848509, -0.042488936334848404, -0.01272372342646122, 0.019937658682465553, -0.04457276314496994, -0.008145478554069996, 0.08681446313858032, -0.030551062896847725, 0.04619744420051575, 0.024493828415870667, -0.03828595578670502, -0.04111148789525032, -0.01824234053492546, 0.029985956847667694, 0.03003893606364727, 0.005765850655734539, 0.007412605918943882, 0.01294446736574173, -0.030109573155641556, 0.019337233155965805, 0.05884170159697533, 0.018789786845445633, 0.0726868063211441, -0.01229989342391491, 0.006891648750752211, -0.0670357421040535, 0.02931489236652851, -0.025535743683576584, -0.009324255399405956, 0.003803430823609233, 0.022798510268330574, 0.028643829748034477, -0.03810936212539673, 0.06795404106378555, -0.019072338938713074, 0.05290808528661728, -0.004821063484996557, 0.032440636307001114, -0.007571542169898748, -0.003891728585585952, -0.006807765923440456, -0.029208935797214508, -0.06410425156354904, -0.02445850893855095, -0.02428191341459751, 0.01071053184568882, -0.02700148895382881, -0.025076594203710556, 0.047963403165340424, 0.0658348947763443, 0.060607656836509705 ]
30,330
networkx.algorithms.tree.mst
__iter__
Returns ------- SpanningTreeIterator The iterator object for this graph
def __iter__(self): """ Returns ------- SpanningTreeIterator The iterator object for this graph """ self.partition_queue = PriorityQueue() self._clear_partition(self.G) mst_weight = partition_spanning_tree( self.G, self.minimum, self.weight, self.partition_key, self.ignore_nan ).size(weight=self.weight) self.partition_queue.put( self.Partition(mst_weight if self.minimum else -mst_weight, {}) ) return self
(self)
[ 0.03903729468584061, -0.009884673170745373, -0.07528109848499298, -0.012758749537169933, -0.01691317744553089, 0.01386003103107214, -0.015731314197182655, 0.00830437894910574, 0.016187943518161774, 0.010869558900594711, -0.001099602784961462, 0.0013228808529675007, -0.03706752508878708, 0.012731889262795448, -0.04953080788254738, 0.04501824080944061, 0.00982199888676405, 0.01201560813933611, -0.01691317744553089, 0.06743782758712769, -0.03900148347020149, -0.05558338016271591, 0.029277972877025604, 0.03276984021067619, -0.036924269050359726, 0.014737474732100964, 0.010923280380666256, -0.06134944036602974, -0.008407344110310078, -0.011738049797713757, -0.032340072095394135, -0.00466030091047287, -0.01158584002405405, -0.03264449164271355, 0.04344242066144943, 0.0253384280949831, -0.02918843738734722, 0.028006574138998985, -0.045591264963150024, -0.020037950947880745, -0.00678228260949254, -0.02143469825387001, -0.016563991084694862, -0.02105865254998207, 0.043908003717660904, 0.043048467487096786, 0.112742580473423, 0.03221472352743149, 0.03828520327806473, -0.015731314197182655, 0.023726796731352806, 0.008322286419570446, -0.010574093088507652, -0.011684328317642212, -0.0680108517408371, 0.06607688963413239, 0.036458685994148254, -0.05508198216557503, 0.012248399667441845, -0.017092246562242508, -0.004194718785583973, -0.02354772761464119, 0.05064104497432709, 0.0024622147902846336, -0.02666354738175869, -0.051715463399887085, -0.06600526720285416, -0.046701498329639435, -0.03515147417783737, 0.06428618729114532, 0.0004230532795190811, -0.04251125827431679, 0.035079844295978546, 0.033969610929489136, -0.04691638424992561, 0.024049123749136925, -0.03232216462492943, 0.00979513768106699, 0.044158704578876495, -0.07141318172216415, -0.0031740188132971525, 0.043585680425167084, 0.00029294760315679014, -0.030531464144587517, 0.027970759198069572, 0.010027929209172726, 0.06711550056934357, 0.01842631958425045, 0.004816987551748753, 0.01108444295823574, -0.03515147417783737, 0.042941026389598846, 0.038679156452417374, 0.02961820550262928, 0.05877082794904709, 0.03194611892104149, -0.04834894463419914, -0.055189426988363266, -0.033181700855493546, -0.010654674842953682, -0.016886316239833832, 0.0617792084813118, -0.00810292549431324, 0.030477741733193398, 0.005775013007223606, -0.025857731699943542, -0.002556226681917906, -0.03094332478940487, -0.029689833521842957, -0.0042081489227712154, -0.027218665927648544, 0.06947922706604004, -0.020037950947880745, 0.03620798885822296, -0.021506326273083687, 0.0022741910070180893, -0.007024027407169342, -0.029922625049948692, 0.05436570197343826, -0.004532713443040848, -0.02983308956027031, 0.04594940319657326, -0.020736325532197952, 0.056514546275138855, -0.0512140691280365, -0.008062634617090225, 0.05830524489283562, 0.00342471688054502, -0.006468909792602062, -0.05791129171848297, 0.038034502416849136, -0.004978150594979525, 0.02592935971915722, 0.026842618361115456, 0.009696649387478828, -0.001440395601093769, -0.005851117894053459, -0.010242813266813755, -0.03764054924249649, 0.06170757859945297, 0.046056848019361496, -0.06099129840731621, 0.016402827575802803, 0.00472297566011548, -0.01047560479491949, -0.028114017099142075, -0.01454945094883442, -0.0023032899480313063, 0.044588472694158554, -0.017593644559383392, -0.019572369754314423, 0.0004459966439753771, 0.07528109848499298, -0.007547807414084673, 0.0012232731096446514, -0.010887466371059418, 0.012955726124346256, -0.00010114666656590998, 0.012391655705869198, -0.02327912114560604, -0.03151635080575943, -0.0014493492199108005, -0.01785329543054104, 0.0032657922711223364, -0.034775424748659134, 0.018551670014858246, -0.03559914976358414, -0.031498443335294724, -0.038571715354919434, -0.016161082312464714, 0.0506768561899662, -0.054043374955654144, -0.05390011891722679, 0.014218171127140522, -0.06750945001840591, 0.019518647342920303, 0.04774010553956032, 0.09204206615686417, 0.007234434597194195, 0.029385413974523544, -0.018551670014858246, -0.016904223710298538, -0.03599310293793678, -0.022240513935685158, 0.0112456064671278, 0.026269594207406044, 0.031337279826402664, -0.013072121888399124, 0.0031561118084937334, -0.0040134103037416935, -0.05737408250570297, -0.039789389818906784, 0.021828653290867805, 0.025481684133410454, -0.01639387384057045, 0.03357565775513649, 0.004888615570962429, 0.007364260498434305, -0.04072055593132973, 0.09548021107912064, -0.031390998512506485, -0.00905199721455574, 0.03078216128051281, 0.014048054814338684, 0.00017179544374812394, 0.05096336826682091, -0.04354986548423767, -0.014459916390478611, -0.00040766442543826997, 0.04354986548423767, -0.10765698552131653, -0.060740601271390915, 0.025213079527020454, 0.05010383203625679, 0.011129210703074932, -0.01815771497786045, -0.05486709997057915, -0.0224912129342556, 0.053613606840372086, -0.039144739508628845, 0.01742352731525898, 0.0149702662602067, 0.004499137867242098, -0.05336290970444679, 0.020145393908023834, -0.05644291639328003, 0.037461478263139725, -0.06768852472305298, -0.03807031735777855, -0.018068179488182068, 0.04233218729496002, -0.04680894315242767, 0.02861541323363781, -0.04591359198093414, 0.017701085656881332, -0.01544480212032795, -0.03649450093507767, -0.017763759940862656, -0.03182077035307884, 0.01796969212591648, -0.047847550362348557, -0.042475443333387375, -0.017217596992850304, 0.008510309271514416, -0.05003220587968826, 0.012024561874568462, -0.011182932183146477, 0.04440940171480179, 0.07943552732467651, 0.029224250465631485, -0.024138659238815308, -0.08939182758331299, -0.04978150501847267, -0.05748152360320091, 0.04143683612346649, -0.028203550726175308, -0.03099704533815384, -0.021452605724334717, 0.019715625792741776, 0.035133566707372665, -0.015865616500377655, -0.00010506382386665791, -0.024514704942703247, 0.0802234336733818, 0.03327123820781708, 0.05755315348505974, 0.016402827575802803, 0.014988172799348831, -0.011263513937592506, 0.014271892607212067, 0.02904518134891987, 0.06643503159284592, 0.019464926794171333, 0.019357485696673393, -0.00913257896900177, -0.03135518729686737, -0.06181502342224121, 0.03259076923131943, -0.042941026389598846, -0.02397749572992325, 0.01093223411589861, 0.016519222408533096, -0.0398252047598362, 0.016984805464744568, -0.029206344857811928, 0.012069329619407654, 0.006724084727466106, -0.05415081977844238, 0.0068762945011258125, -0.021040745079517365, -0.026269594207406044, 0.03157006949186325, -0.015131428837776184, -0.0218107458204031, 0.08624019473791122, -0.01786224916577339, -0.01885608769953251, -0.026000987738370895, 0.01948283426463604, 0.05296895653009415, 0.09813044965267181, -0.08487925678491592, -0.018784459680318832, 0.03543798625469208, -0.0014997127000242472, 0.08308855444192886, 0.036297522485256195, 0.06725875288248062, -0.009759323671460152, 0.018247250467538834, -0.03285937383770943, 0.010502465069293976, 0.003106867428869009, -0.0009541082545183599, -0.004794603679329157, -0.09834533929824829, -0.008192460052669048, -0.028149830177426338, -0.008640135638415813, 0.07735831290483475, -0.06170757859945297, 0.06009594723582268, 0.017307132482528687, -0.01330491341650486, -0.08000855147838593, 0.033701006323099136, 0.0058555942960083485, 0.03266239911317825, -0.03314588963985443, 0.006831526756286621, -0.013976426795125008, -0.010538279078900814, 0.006160013843327761, 0.04756103456020355, -0.07356202602386475, 0.048921968787908554, 0.0910392701625824, 0.027433549985289574, -0.01467480044811964, -0.06210153549909592, 0.06994480639696121, 0.022133072838187218, 0.0020962401758879423, 0.03721078112721443, -0.0011236652499064803, 0.005049778614193201, -0.008071587421000004, -0.0631401389837265, 0.03373682126402855, 0.054401516914367676, 0.011469444260001183, 0.05024708807468414, 0.019518647342920303, 0.01557910442352295, 0.027433549985289574, -0.007870133966207504, 0.02940332144498825, -0.009231067262589931, -0.04953080788254738, 0.027057502418756485, 0.0335935615003109, 0.0034403856843709946, 0.004848324693739414, 0.017468294128775597, -0.015973059460520744, -0.04999639093875885, -0.024210287258028984, 0.021201908588409424, 0.02988681010901928, -0.025374243035912514, -0.005998850800096989, -0.08638344705104828, -0.05655035749077797, 0.03230425715446472, -0.01593724451959133, 0.03013750910758972, -0.0674736425280571, 0.02465796284377575, 0.02105865254998207, 0.008017866872251034, 0.06493084132671356, 0.03552751988172531, 0.047596849501132965, 0.041687533259391785, -0.012839331291615963, -0.040684740990400314, 0.04813406243920326, -0.052718255668878555, 0.06761689484119415, -0.03309216722846031, -0.02455051988363266, -0.01146049052476883, 0.012902005575597286, 0.01283037755638361, -0.03121192939579487, -0.015749221667647362, 0.09161229431629181, -0.024944474920630455, -0.002310005249455571, -0.0015366459265351295, 0.004521521739661694, -0.0701955035328865, -0.04483916983008385, 0.08495088666677475, 0.04240381717681885, -0.09247183054685593, 0.05278988555073738, 0.03839264437556267, 0.02861541323363781, 0.032913096249103546, -0.006701700855046511, -0.046594057232141495, 0.01180072408169508, 0.039467066526412964, -0.011630607768893242, -0.07084015756845474, 0.005591466091573238, 0.013152703642845154, 0.05400756374001503, 0.008899787440896034, 0.03393379598855972, 0.008138739503920078, 0.04885034263134003, -0.001816443051211536, 0.00686286436393857, -0.06675735861063004, -0.028221458196640015, -0.04555545002222061, -0.026072615757584572, 0.007346353493630886, -0.029976345598697662, -0.049029409885406494, 0.014844916760921478, 0.014092822559177876, 0.024299820885062218, -0.02259865589439869, -0.047167081385850906, 0.017333991825580597, 0.0022518073674291372, -0.01552538387477398, 0.06865549832582474, 0.005725768394768238, 0.04519731178879738, -0.05980943515896797, 0.05064104497432709, -0.027200758457183838, -0.0007554522599093616, 0.046952199190855026, -0.0360468253493309, -0.014988172799348831, 0.02872285433113575, -0.021130280569195747, 0.037927061319351196, 0.01108444295823574, -0.058842457830905914, 0.024640055373311043, 0.019142601639032364, -0.047059640288352966, -0.035670775920152664, 0.04165172204375267, 0.041042882949113846, 0.017871202901005745, -0.0031561118084937334, -0.002468929858878255, -0.014209217391908169, -0.02048562653362751, 0.03241170197725296, 0.02381633222103119, 0.011917119845747948, -0.05407918989658356, 0.06399967521429062, 0.012866191565990448, -0.07742994278669357, -0.08008018136024475, -0.007382167503237724, 0.0077716452069580555, -0.045268937945365906, 0.009544439613819122, 0.00336651923134923, -0.0025853256229311228, -0.008071587421000004, -0.016026780009269714, 0.0498531349003315, 0.04387219250202179, -0.037461478263139725, -0.020825861021876335, -0.005125883501023054, -0.017065387219190598, -0.021774932742118835, -0.011594793759286404, 0.0013564565451815724, -0.016411781311035156, 0.004006695002317429, 0.03710334002971649, 0.0009322840487584472, 0.07907738536596298, 0.0346858911216259, -0.004145474173128605, 0.04967406392097473, -0.059522923082113266, -0.010162231512367725, 0.04140102118253708, -0.009490719065070152, 0.007708970457315445, 0.02793494611978531, 0.030979139730334282, -0.015104568563401699, 0.03221472352743149, 0.004402887541800737, 0.01235584169626236, 0.06224479153752327, -0.047704294323921204, -0.029421228915452957, 0.018766554072499275, 0.021524233743548393, -0.02301051653921604, -0.032805655151605606, -0.005936176050454378, -0.01596410572528839, -0.027917038649320602, 0.0272365715354681, 0.0033351818565279245, 0.023941680788993835, -0.024998195469379425, -0.023100052028894424, 0.0011639561271294951, -0.01642073504626751, -0.007306062616407871, 0.0517512783408165, 0.0025025056675076485, 0.025141451507806778, 0.010368162766098976, 0.02718285098671913, 0.05733826756477356, 0.013098983094096184, 0.0025204126723110676, 0.027469363063573837, 0.009213159792125225, -0.0015825326554477215, 0.01394061278551817, 0.015238870866596699, -0.028579598292708397, 0.04856383055448532, -0.0008393914322368801, 0.014898638240993023, 0.07463644444942474, 0.001279232557862997, -0.03119402378797531, -0.0076955403201282024, -0.016814688220620155, 0.038894038647413254, -0.0016127506969496608, 0.013833170756697655, 0.010493511334061623, 0.05522523820400238, 0.005233325529843569, -0.026162151247262955, -0.019124694168567657, 0.024729590862989426, 0.029868904501199722, -0.010681535117328167, 0.0335935615003109, 0.020342370495200157, 0.00016158285143319517, 0.03807031735777855, -0.05923641100525856, -0.021094465628266335, 0.014191310852766037, 0.04150846600532532, 0.058949898928403854, 0.06890620291233063, 0.010287581011652946, 0.025571219623088837, 0.016304338350892067, -0.014782242476940155, 0.000636258686427027, -0.033701006323099136, -0.0009003871819004416, -0.05321965366601944, -0.05511779710650444, -0.017575737088918686, -0.02010957896709442, 0.05508198216557503, -0.004861754830926657, -0.03620798885822296, 0.02111237309873104, -0.08122622966766357, 0.03294891119003296, -0.047811735421419144, 0.018086086958646774, 0.04397963359951973, -0.049924761056900024, 0.018068179488182068, -0.016295384615659714, -0.0250698234885931, -0.06704387068748474, -0.006249548867344856, -0.08308855444192886, -0.0338800773024559, -0.04007590189576149, -0.03140890598297119, 0.06722293794155121, 0.00016060355119407177, 0.07793133705854416, 0.06614851951599121, -0.023135865107178688, -0.021309349685907364, 0.00940118357539177, -0.011057582683861256, -0.02850797027349472, 0.005645187105983496, 0.027111222967505455, 0.024998195469379425, -0.016331199556589127, -0.031014952808618546, 0.0016597566427662969, -0.04867127165198326, -0.0011275825090706348, 0.0006429738132283092, -0.05443733185529709, 0.010788977146148682, 0.003182972315698862, -0.012051422148942947, 0.022258421406149864, -0.024407263845205307, -0.04544800892472267, 0.08588205277919769, -0.10600953549146652, 0.021022837609052658, 0.003997741267085075, 0.006701700855046511, -0.04530475288629532, -0.003782857209444046, -0.031014952808618546, -0.031086580827832222, -0.03083588182926178, 0.005501931067556143, 0.007355307228863239, -0.043800562620162964, -0.006115246098488569, -0.04419451579451561, 0.0022898598108440638, -0.004438701551407576, -0.04183078929781914, -0.032071467489004135, -0.06181502342224121, -0.01193502638489008, 0.036028917878866196, 0.014137589372694492, 0.011576886288821697, -0.035079844295978546, 0.0436214916408062, -0.006079432088881731, -0.014961312524974346, -0.02539215050637722, 0.02639494277536869, 0.01520305685698986, -0.014746428467333317, 0.00864461250603199, -0.0019473880529403687, 0.01858748309314251, -0.010332348756492138, -0.026215871796011925, 0.005054255481809378, 0.04150846600532532, 0.016752013936638832, -0.00029182841535657644, 0.007144899573177099, -0.02265237644314766, 0.0032657922711223364, -0.03516938164830208, 0.00871176365762949, -0.043048467487096786, -0.028078202158212662, -0.10371743887662888, -0.025356335565447807, -0.0047990805469453335, -0.013403401710093021, -0.025087730959057808, -0.03035239316523075, -0.01291095931082964, 0.03187448903918266, -0.029976345598697662, -0.0019350770162418485, -0.009222113527357578, 0.04197404533624649, -0.05264662951231003, -0.06321176886558533, 0.015346312895417213, -0.04799080640077591, 0.03903729468584061, -0.04752522334456444, 0.04709545522928238, 0.039574507623910904, -0.0005539983394555748, 0.015865616500377655, -0.004816987551748753, -0.02571447566151619, 0.05676524341106415, -0.05887826904654503, 0.02132725715637207, -0.0003533837734721601, -0.001885832753032446, -0.002766634104773402, 0.016904223710298538, 0.010251767002046108, -0.06672154366970062, 0.03778380528092384, 0.024264007806777954, 0.011308280751109123, 0.000055539730965392664, 0.007109085563570261, -0.02634122222661972, -0.003673176746815443, 0.014433055184781551, 0.03463216871023178, 0.035831939429044724, 0.004709545522928238, 0.009696649387478828, 0.0055511752143502235, 0.0010492393048480153, -0.04462428390979767, 0.006728561595082283, 0.039144739508628845, -0.03479333221912384, 0.058412689715623856, 0.028543785214424133, -0.023673076182603836, -0.043263353407382965, -0.013788403011858463, -0.011594793759286404, 0.010108510963618755, -0.025839824229478836, -0.02295679599046707, 0.012508051469922066, -0.008335716091096401, 0.026806803420186043, 0.05006801709532738, 0.02243749238550663, 0.05236011743545532, 0.013716774992644787, 0.011747002601623535, -0.05576245114207268, 0.025105636566877365, -0.003995503298938274, -0.00039311498403549194, -0.013000493869185448, 0.012633400037884712, 0.008814728818833828, -0.0008768842089921236, 0.07499458640813828, -0.021040745079517365, 0.0739917904138565, 0.019070973619818687, 0.0033060829155147076, -0.02872285433113575, 0.0299405325204134, -0.02170330472290516, -0.021130280569195747, -0.04573452100157738, -0.056836869567632675, -0.03584984689950943, 0.00940118357539177, 0.01604468747973442, -0.01937539130449295, 0.0463433600962162, 0.0653247982263565, 0.03353984281420708 ]
30,331
networkx.algorithms.tree.mst
__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_tree = partition_spanning_tree( self.G, self.minimum, self.weight, self.partition_key, self.ignore_nan ) self._partition(partition, next_tree) self._clear_partition(next_tree) return next_tree
(self)
[ 0.01953907683491707, -0.01989336684346199, -0.069582499563694, 0.007045936770737171, -0.019592219963669777, 0.003835186129435897, -0.014366447925567627, -0.017501911148428917, 0.003580540418624878, -0.0176524855196476, -0.011735846288502216, -0.0007650443585589528, -0.042762767523527145, 0.02343626506626606, -0.023560265079140663, 0.05165543779730797, 0.011292984709143639, 0.014791595749557018, -0.011452415026724339, 0.07397568970918655, -0.05126572027802467, -0.021877389401197433, 0.036633554846048355, 0.03328551724553108, -0.03684613108634949, 0.005606634542346001, 0.022408824414014816, -0.02230253629386425, -0.03844043239951134, -0.022337965667247772, -0.01838763616979122, -0.021611671894788742, -0.004822768736630678, -0.02557971701025963, 0.04729767516255379, 0.03684613108634949, -0.04311705753207207, 0.04882112145423889, -0.06253213435411453, -0.05590691417455673, 0.032045505940914154, -0.03528725355863571, 0.004813911393284798, -0.0177764855325222, 0.02302883192896843, 0.038582149893045425, 0.09516221284866333, 0.02180653065443039, 0.002248632488772273, -0.002285168506205082, 0.03401181101799011, -0.007639371789991856, -0.025544287636876106, 0.0005159343709237874, -0.04605766385793686, 0.04102674871683121, 0.02497742511332035, -0.06837791204452515, 0.006727075669914484, -0.014277875423431396, 0.028856895864009857, -0.03907815366983414, 0.038227859884500504, 0.020052798092365265, -0.0015865536406636238, -0.04977770522236824, -0.059662386775016785, -0.056615494191646576, -0.05431261286139488, 0.0821952149271965, -0.013976728543639183, -0.021221954375505447, 0.01187756285071373, 0.019007643684744835, -0.04318791627883911, 0.01078812126070261, -0.0193087887018919, 0.00027332897298038006, 0.02756373956799507, -0.052080586552619934, 0.017413338646292686, 0.033498093485832214, 0.0023936699144542217, -0.05101771652698517, -0.008352380245923996, 0.00759508553892374, 0.0753219947218895, 0.03487982228398323, -0.02494199573993683, -0.026500869542360306, -0.029317473992705345, 0.02079680562019348, 0.027599168941378593, 0.06586245447397232, 0.07461341470479965, -0.020194513723254204, -0.04857311770319939, -0.03627926483750343, -0.008086662739515305, -0.03762556612491608, -0.01800677366554737, 0.04846683144569397, -0.03461410477757454, 0.005938781425356865, 0.019645364955067635, -0.04719138890504837, 0.009663252159953117, 0.01122212689369917, -0.028786038979887962, -0.003963616210967302, -0.045171938836574554, 0.01651875674724579, -0.01620875485241413, 0.0629572793841362, -0.034791249781847, 0.019184786826372147, -0.017236193642020226, 0.008706669323146343, 0.06122126057744026, 0.012054706923663616, -0.016111323609948158, 0.022320251911878586, -0.0582452267408371, 0.0282900333404541, -0.03392323851585388, -0.00685993442311883, 0.09629594534635544, -0.039999306201934814, -0.014641022309660912, -0.0173956248909235, 0.04024730995297432, 0.028538035228848457, 0.027085447683930397, 0.02921118587255478, -0.03588954731822014, -0.006518930662423372, -0.02857346460223198, -0.012391282245516777, -0.04155818372964859, 0.009787253104150295, 0.013595867902040482, -0.03541125729680061, 0.03528725355863571, 0.012169851921498775, 0.014065301045775414, -0.01585446484386921, -0.008737670257687569, 0.017670199275016785, 0.05728864669799805, 0.014419591054320335, -0.01301128976047039, -0.017820771783590317, 0.07617228478193283, 0.020601946860551834, 0.02752831019461155, -0.0005549616180360317, -0.00759508553892374, 0.02993747964501381, -0.03006148152053356, -0.008268236182630062, -0.008117662742733955, -0.0037598994094878435, -0.00949496403336525, -0.03231121972203255, -0.023914555087685585, 0.008427666500210762, -0.017989059910178185, 0.004244833718985319, -0.03247065097093582, 0.011505558155477047, 0.03801528736948967, -0.034277528524398804, -0.06749218702316284, 0.028360890224575996, -0.09169017523527145, 0.013232721015810966, 0.04070788621902466, 0.0785105973482132, 0.016022752970457077, 0.012063564732670784, -0.002973819151520729, -0.025420285761356354, -0.017989059910178185, -0.04722681641578674, 0.03156721219420433, 0.04747482016682625, 0.05381660535931587, -0.012045850045979023, 0.02784717082977295, 0.01980479434132576, -0.04648280888795853, -0.028502607718110085, 0.02384369820356369, 0.013294721022248268, 0.009167246520519257, 0.030858634039759636, -0.0025243142154067755, 0.04208961874246597, -0.019645364955067635, 0.09679194539785385, -0.02743973769247532, -0.023648837581276894, 0.0354289710521698, -0.008618096821010113, 0.004255905281752348, 0.03110663592815399, -0.04233761876821518, -0.0009920111624523997, -0.004503908101469278, 0.05615491792559624, -0.08325808495283127, -0.0019950938876718283, 0.00354953994974494, 0.0734088271856308, 0.000058852227084571496, -0.037590138614177704, -0.060654398053884506, -0.010779264383018017, 0.03702327609062195, -0.02288711443543434, 0.00027817278169095516, -0.0057527790777385235, 0.01805991865694523, -0.036314696073532104, 0.03815700113773346, -0.0797860398888588, 0.024286558851599693, -0.04818340018391609, -0.019415076822042465, -0.01414501667022705, 0.053887464106082916, -0.0765974372625351, 0.023914555087685585, -0.03971587494015694, 0.031053492799401283, -0.01260385662317276, -0.03907815366983414, -0.02538485825061798, -0.02880375273525715, 0.04627023637294769, -0.04800625517964363, -0.043577633798122406, -0.030734632164239883, 0.02488885261118412, -0.00820180680602789, 0.010903265327215195, -0.015376172959804535, 0.006262070499360561, 0.07043279707431793, 0.045667942613363266, -0.020424801856279373, -0.06044182553887367, -0.03241750970482826, -0.035676974803209305, 0.02834317646920681, -0.0452427938580513, -0.035039253532886505, -0.04910455271601677, -0.00407433183863759, 0.023719696328043938, -0.006966221611946821, 0.030150054022669792, -0.05828065797686577, 0.07319625467061996, -0.018423065543174744, 0.05328517034649849, 0.005491490475833416, 0.003584969090297818, 0.014897882007062435, 0.01881278306245804, 0.039680447429418564, 0.03333866223692894, 0.0010003148345276713, -0.00031249457970261574, -0.007466655690222979, -0.05229315906763077, -0.03303751349449158, 0.06972421705722809, 0.0020272014662623405, -0.06564988195896149, -0.018653353676199913, 0.018547065556049347, -0.03252379596233368, -0.004831626079976559, -0.04382563754916191, 0.05115943402051926, -0.013994443230330944, -0.09339077025651932, 0.03516325354576111, -0.030043767765164375, 0.01728047989308834, -0.01187756285071373, -0.004025616683065891, 0.02247968129813671, 0.11351442337036133, -0.025721432641148567, -0.012860716320574284, -0.012293852865695953, 0.03805071488022804, 0.03748385235667229, 0.06402014940977097, -0.07666829228401184, -0.006673932541161776, 0.03216950595378876, 0.004486193414777517, 0.04938798397779465, 0.018954498693346977, 0.01006182748824358, -0.019007643684744835, 0.010424974374473095, -0.04913998395204544, 0.013215006329119205, 0.03964501991868019, 0.035730116069316864, -0.041947901248931885, -0.10189372301101685, -0.018139632418751717, -0.009056530892848969, 0.01403872948139906, 0.056296635419130325, -0.0550566203892231, 0.06019382178783417, 0.0018256991170346737, -0.009238104335963726, -0.08644668757915497, 0.042443908751010895, -0.044711362570524216, 0.008879385888576508, -0.01800677366554737, 0.013250434771180153, -0.029831193387508392, -0.011434700340032578, 0.005708492826670408, 0.0569697842001915, -0.058847520500421524, 0.05264744907617569, 0.07475512474775314, 0.01591646485030651, 0.005978638771921396, -0.10990066826343536, 0.03294894099235535, 0.004207190126180649, 0.009202674962580204, 0.011850990355014801, 0.005416203755885363, 0.02433970384299755, 0.03098263405263424, -0.057394932955503464, 0.043896496295928955, 0.003432181430980563, 0.021275097504258156, 0.03525182604789734, -0.011027267202734947, 0.006634074728935957, 0.03571240231394768, -0.024924280121922493, 0.0008574918028898537, 0.016598472371697426, -0.016571901738643646, 0.02616429515182972, -0.0015013025840744376, -0.014959882944822311, -0.025916291400790215, 0.06657103449106216, -0.015358459204435349, -0.030274055898189545, -0.06954707205295563, 0.04382563754916191, 0.00860923994332552, -0.03528725355863571, -0.021593958139419556, -0.05828065797686577, -0.01812191866338253, 0.05672178044915199, -0.03225807845592499, 0.04584508761763573, -0.034135814756155014, 0.02965404838323593, 0.05286002531647682, -0.004924627020955086, 0.06954707205295563, 0.01943279057741165, 0.030309485271573067, 0.07262939214706421, 0.004038902465254068, -0.015119313262403011, 0.05477318912744522, -0.047120530158281326, 0.026447726413607597, -0.020548803731799126, -0.014508163556456566, -0.0042470479384064674, 0.022408824414014816, 0.007130080368369818, -0.03314380347728729, 0.0052302018739283085, 0.08425009250640869, -0.008223949931561947, -0.04301077127456665, -0.004025616683065891, -0.007138937711715698, 0.0037864712066948414, -0.08276207745075226, 0.044073641300201416, 0.014827024191617966, -0.08587982505559921, 0.07142480462789536, 0.06398472189903259, 0.007599514443427324, 0.024924280121922493, -0.04297534003853798, -0.035641543567180634, -0.01582789234817028, 0.029317473992705345, 0.008405523374676704, -0.023719696328043938, 0.022019105032086372, 0.06628760695457458, 0.07121223211288452, 0.0196276493370533, 0.03231121972203255, 0.016917333006858826, 0.019415076822042465, -0.028874611482024193, -0.007431226782500744, -0.06501216441392899, -0.01902535744011402, -0.02720944955945015, -0.04379020631313324, 0.04106217622756958, -0.02648315578699112, -0.06313442438840866, 0.027050018310546875, -0.015039597637951374, 0.02079680562019348, -0.042266763746738434, -0.04751025140285492, 0.027918029576539993, 0.016022752970457077, -0.03960958868265152, 0.056261204183101654, 0.006425929721444845, -0.008170806802809238, -0.042408477514982224, 0.05158458277583122, -0.06253213435411453, 0.009689823724329472, 0.02843174897134304, -0.03737756237387657, 0.0002567216579336673, 0.02407398633658886, -0.03025634028017521, 0.024020841345191002, 0.03865300863981247, -0.004654481075704098, 0.009920111857354641, -0.0014614450046792626, -0.05087600275874138, 0.015234457328915596, 0.020407088100910187, 0.04963598772883415, 0.0026328153908252716, 0.05406460911035538, 0.016687044873833656, -0.03425981476902962, -0.03638555482029915, 0.03473810479044914, 0.004138546530157328, -0.009955541230738163, -0.0804237648844719, 0.04573880136013031, 0.003580540418624878, -0.0917610377073288, -0.07050365209579468, 0.0026616014074534178, -0.021416813135147095, -0.02384369820356369, -0.03397638350725174, 0.016571901738643646, -0.06724418699741364, -0.004676624201238155, -0.04056617245078087, 0.05813894048333168, -0.004202761687338352, -0.039538729935884476, -0.014703023247420788, 0.0055756340734660625, -0.008932529017329216, -0.01600503735244274, -0.011204412207007408, -0.006616360507905483, -0.014658736996352673, 0.00685993442311883, 0.03434838727116585, -0.03250608220696449, 0.07075165212154388, 0.01614675298333168, -0.014242446050047874, 0.05229315906763077, -0.04800625517964363, 0.01858249492943287, -0.004300191532820463, -0.03332094848155975, -0.025810005143284798, 0.03812157362699509, 0.035730116069316864, 0.006208926904946566, 0.0295654758810997, -0.008414380252361298, 0.04832511767745018, 0.05700521543622017, -0.012789858505129814, -0.054348040372133255, 0.04120389372110367, 0.015216742642223835, 0.008644669316709042, 0.03417124226689339, 0.004231547471135855, 0.016385899856686592, -0.018547065556049347, 0.009769538417458534, -0.012205280363559723, -0.010761549696326256, 0.00910524558275938, -0.03755470737814903, -0.002849817741662264, -0.041770756244659424, 0.006403786595910788, 0.03392323851585388, 0.013427579775452614, 0.028502607718110085, 0.03723584860563278, 0.013684440404176712, 0.04846683144569397, -0.01617332547903061, -0.025827718898653984, -0.0007794373668730259, 0.06313442438840866, -0.013108719140291214, -0.03482667729258537, 0.00020966754527762532, -0.02880375273525715, 0.005451632663607597, 0.04347134754061699, 0.004386549349874258, 0.041168462485075, 0.014641022309660912, -0.019556792452931404, 0.00846309494227171, -0.01519017107784748, 0.010531261563301086, 0.030451200902462006, 0.030539773404598236, -0.004231547471135855, 0.06051268056035042, -0.019113929942250252, 0.0023383121006190777, 0.015641890466213226, 0.020690519362688065, 0.012382425367832184, -0.022178536280989647, 0.01953907683491707, 0.015783606097102165, -0.00527891656383872, 0.06554359942674637, -0.059024665504693985, -0.012975860387086868, 0.02570371888577938, 0.07950261235237122, 0.0531434565782547, 0.030079195275902748, 0.004654481075704098, 0.012497569434344769, -0.02839631959795952, 0.005221344530582428, 0.00013285863678902388, -0.045171938836574554, 0.004716481547802687, -0.051761727780103683, -0.04060159996151924, -0.002101380843669176, -0.0004113081959076226, 0.0860215425491333, 0.0061956411227583885, -0.04262105002999306, 0.0020161299034953117, -0.06440986692905426, 0.027191735804080963, -0.04120389372110367, 0.040034737437963486, 0.05817437171936035, -0.034224387258291245, 0.007510941941291094, -0.008866099640727043, -0.015021883882582188, -0.04279819503426552, -0.02285168692469597, -0.01768791303038597, -0.038405004888772964, -0.028307747095823288, -0.03153178468346596, 0.08056548237800598, 0.005146057810634375, 0.05335602909326553, 0.04060159996151924, 0.006944078486412764, -0.017112193629145622, -0.04364849254488945, -0.0055003478191792965, -0.030468914657831192, -0.0013097648043185472, 0.040318168699741364, -0.008312522433698177, -0.00949496403336525, -0.030079195275902748, 0.023949984461069107, -0.039219871163368225, -0.011833276599645615, -0.04772282391786575, -0.05930809676647186, 0.0009355462389066815, 0.011815561912953854, -0.0006543287890963256, -0.005912209395319223, -0.0016496614553034306, -0.0037510422989726067, 0.09282390028238297, -0.09353248029947281, 0.029902052134275436, 0.05463147163391113, -0.024676278233528137, -0.06880306452512741, 0.008285950869321823, -0.03592497482895851, -0.0505925714969635, -0.019822509959340096, 0.02047794498503208, -0.005788207985460758, -0.036668986082077026, -0.024693991988897324, -0.06221327185630798, 0.06504759192466736, -0.014029872603714466, -0.03379923850297928, -0.014339876361191273, -0.05108857527375221, -0.01485359575599432, 0.053391460329294205, -0.004348906222730875, 0.00646135862916708, -0.04400278255343437, 0.037767283618450165, -0.005088485777378082, -0.0015721606323495507, 0.020247656852006912, 0.007572942413389683, 0.027422023937106133, -0.00701936474069953, 0.010850122198462486, -0.006842220202088356, 0.008427666500210762, -0.022178536280989647, -0.009282390587031841, 0.00981382466852665, -0.011921849101781845, 0.02634144015610218, -0.005398489534854889, -0.004676624201238155, -0.027776313945651054, -0.05261202156543732, -0.035003822296857834, -0.03177978843450546, -0.013781869783997536, -0.035216398537158966, -0.07411740720272064, -0.029778050258755684, 0.004410906694829464, 0.008299236185848713, -0.021682530641555786, -0.024445990100502968, 0.02384369820356369, 0.06331156939268112, -0.034047242254018784, 0.001088333665393293, -0.008578239940106869, 0.031230637803673744, -0.051124006509780884, -0.0015422673895955086, 0.01269242912530899, -0.03252379596233368, 0.027546023949980736, -0.049990277737379074, 0.04038902744650841, 0.012727857567369938, -0.052434876561164856, 0.0044751218520104885, 0.01989336684346199, -0.009920111857354641, 0.014818167313933372, -0.04751025140285492, 0.015278743579983711, 0.00025741360150277615, 0.0007157759391702712, -0.022408824414014816, 0.024197986349463463, 0.028679752722382545, -0.023719696328043938, 0.05558805540204048, 0.012152137234807014, -0.01600503735244274, -0.005411775317043066, -0.022284822538495064, -0.03702327609062195, 0.029724907130002975, -0.001600946648977697, 0.028697466477751732, 0.012134422548115253, 0.030468914657831192, -0.023400835692882538, 0.03907815366983414, -0.049990277737379074, 0.006270927842706442, 0.017732199281454086, 0.00829037930816412, -0.015535603277385235, 0.069582499563694, 0.07496770471334457, -0.040034737437963486, -0.06543730944395065, 0.015526746399700642, 0.018139632418751717, 0.03461410477757454, -0.0023604552261531353, -0.00766594335436821, 0.017431054264307022, -0.008653526194393635, 0.0407787449657917, 0.04152275249361992, 0.03571240231394768, 0.043896496295928955, -0.038227859884500504, 0.028006602078676224, -0.03610211983323097, 0.022497396916151047, -0.05218687281012535, -0.02035394310951233, -0.014508163556456566, 0.01176241785287857, 0.009255819022655487, -0.021044809371232986, 0.06419729441404343, -0.024197986349463463, 0.10231886804103851, 0.028183747082948685, -0.051442865282297134, -0.025048281997442245, 0.032134074717760086, -0.016155609861016273, -0.00848080962896347, -0.05881209298968315, -0.037094131112098694, 0.006665075197815895, 0.021186525002121925, 0.045030221343040466, -0.05541091039776802, 0.01826363429427147, 0.04283362627029419, 0.04010559618473053 ]
30,332
networkx.algorithms.tree.mst
_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]
(self, G)
[ 0.05739278718829155, 0.03563164919614792, -0.0951828584074974, 0.0253349170088768, -0.019337335601449013, -0.019744250923395157, -0.02103576622903347, 0.014162431471049786, 0.05427899956703186, -0.008894643746316433, -0.0050422148779034615, -0.007023716811090708, 0.010624035261571407, -0.019319644197821617, -0.03028867207467556, 0.01243746280670166, -0.007213905453681946, 0.013481290079653263, 0.06811413168907166, -0.021389605477452278, 0.008377153426408768, -0.07586321979761124, 0.002048952504992485, 0.04122231528162956, -0.02307034470140934, 0.010747878812253475, 0.010164042934775352, -0.0241849385201931, 0.010491345077753067, -0.0032907086424529552, -0.0067406450398266315, -0.01719660684466362, -0.005555282346904278, 0.040054645389318466, 0.02752872370183468, 0.03428706154227257, 0.028625626116991043, 0.002903696382418275, -0.05926813930273056, 0.023123418912291527, 0.0026029327418655157, 0.011464403942227364, -0.02963406965136528, -0.03711777552962303, 0.09412134438753128, 0.03825006261467934, 0.07395248115062714, 0.02549414522945881, 0.007877354510128498, 0.02579490840435028, 0.006559302099049091, 0.0069750635884702206, -0.02894408255815506, 0.05555282160639763, -0.03672855347394943, -0.01312744989991188, 0.029616376385092735, -0.02368956245481968, 0.01723198965191841, 0.022168053314089775, 0.009350212290883064, -0.019514255225658417, 0.005559705197811127, 0.017364680767059326, 0.037259314209222794, -0.023424183949828148, 0.002598509890958667, 0.006072772666811943, -0.049997538328170776, -0.013437059707939625, -0.029810989275574684, -0.010694802738726139, 0.0019549638964235783, 0.026962580159306526, -0.035950105637311935, -0.003465416841208935, 0.011906703934073448, 0.024751082062721252, 0.029350997880101204, -0.07073254138231277, 0.05778201296925545, -0.01268515083938837, -0.0395238883793354, -0.00036213273415341973, 0.024998769164085388, 0.020204242318868637, 0.06613262742757797, 0.01873580925166607, 0.0016519888304173946, -0.049572933465242386, 0.0314917266368866, 0.06305421888828278, -0.025122614577412605, -0.01278245635330677, 0.05923275277018547, -0.000766283948905766, -0.07876469939947128, -0.016267776489257812, -0.0383916012942791, -0.0579589307308197, 0.0387808233499527, -0.00493163987994194, -0.0197619441896677, 0.015365486033260822, 0.010084429755806923, -0.03158018738031387, 0.037294697016477585, -0.04522070288658142, -0.04575146362185478, 0.03524242714047432, -0.038745440542697906, 0.0951828584074974, -0.006439881399273872, 0.012755918316543102, 0.01800159178674221, 0.029810989275574684, -0.003505223896354437, -0.01303014438599348, -0.0068910266272723675, -0.017187759280204773, -0.028537165373563766, 0.019337335601449013, -0.0429915152490139, -0.023778023198246956, 0.00044478746713139117, -0.010128659196197987, 0.026997962966561317, 0.04355765879154205, -0.030394824221730232, -0.05420823022723198, -0.0008381576044484973, -0.0026825466193258762, -0.029262537136673927, -0.02982868067920208, -0.02126576192677021, -0.060400426387786865, 0.02690950408577919, -0.02238035574555397, 0.028077173978090286, -0.0037440655287355185, -0.019248876720666885, -0.0094032883644104, 0.006886603776365519, 0.05739278718829155, 0.07267866283655167, -0.02959868498146534, 0.008806183934211731, -0.0314740352332592, 0.001851023524068296, -0.008399268612265587, -0.05611896514892578, 0.055411286652088165, 0.05661433935165405, -0.0717586800456047, -0.026272593066096306, 0.02526414953172207, -0.058135852217674255, -0.004330112598836422, -0.05282825604081154, -0.014985108748078346, -0.02871408686041832, -0.009182138368487358, 0.043203819543123245, 0.004714913200587034, -0.027617182582616806, 0.0005716721643693745, 0.056260500103235245, -0.025865677744150162, -0.04844064638018608, -0.02192036435008049, 0.02522876486182213, -0.04663606360554695, -0.05194365605711937, -0.022238820791244507, -0.004878563806414604, 0.08301077783107758, 0.02848408930003643, 0.0014463195111602545, 0.002970041474327445, 0.010570959188044071, -0.029067926108837128, -0.03028867207467556, -0.017320450395345688, 0.0032553246710449457, 0.03258863091468811, -0.019018881022930145, 0.002808602061122656, -0.05045752972364426, 0.0146843446418643, -0.02855485863983631, -0.08937989175319672, -0.013543211854994297, -0.0303240567445755, 0.0675479844212532, 0.05576512590050697, 0.0022756310645490885, 0.0033238809555768967, 0.03465859219431877, -0.05289902538061142, 0.04192999750375748, -0.00043207136332057416, -0.029527917504310608, 0.01673661358654499, -0.0028771585784852505, -0.06022350490093231, 0.026732584461569786, -0.002011357108131051, 0.002428224543109536, 0.055871278047561646, 0.015807785093784332, -0.0065106493420898914, -0.05254518613219261, 0.07975545525550842, 0.000721501128282398, 0.07006024569272995, -0.054986678063869476, -0.04964369907975197, 0.035525497049093246, 0.028147943317890167, -0.004285882692784071, -0.05664972588419914, 0.012693996541202068, -0.00498029263690114, -0.04242537170648575, 0.02445031888782978, -0.03071328066289425, 0.017515061423182487, -0.07324480265378952, -0.025777217000722885, -0.03495935723185539, 0.0671587586402893, -0.021708061918616295, 0.020221935585141182, -0.036073949187994, 0.05091752111911774, 0.06418650597333908, -0.06574340164661407, -0.03304862231016159, 0.03324323147535324, 0.023707255721092224, -0.033384770154953, -0.050386764109134674, -0.020929614081978798, 0.010367501527071, -0.006572571117430925, 0.0533590167760849, 0.02287573181092739, 0.05831276997923851, 0.034570131450891495, -0.014542808756232262, -0.05254518613219261, -0.07890623807907104, 0.005139520857483149, -0.020328085869550705, 0.07073254138231277, -0.04079771041870117, -0.04794526845216751, 0.0027334110345691442, 0.0029346575029194355, 0.04058540612459183, -0.036410097032785416, -0.015108952298760414, -0.04207153245806694, 0.08874297887086868, 0.08463843911886215, 0.0201511662453413, 0.052969790995121, 0.06825566291809082, -0.009244060143828392, -0.010261349380016327, 0.09277675300836563, 0.007302365265786648, 0.05378362536430359, -0.0036799320951104164, 0.03980695828795433, 0.07706627249717712, -0.036020874977111816, -0.01754160039126873, 0.018523504957556725, 0.010225965641438961, 0.05381900817155838, -0.01854119636118412, 0.025175688788294792, 0.04762681573629379, -0.009217522107064724, 0.011216715909540653, 0.02694488689303398, -0.0929182842373848, -0.0033725339453667402, 0.027581799775362015, -0.027670258656144142, 0.013737823814153671, -0.011225562542676926, 0.00892560463398695, 0.0479806549847126, 0.041753076016902924, 0.002432647394016385, -0.004144346807152033, -0.03320784866809845, 0.04384072870016098, 0.0760047510266304, -0.01926656812429428, -0.035950105637311935, 0.017709674313664436, 0.02310572750866413, 0.009872125461697578, 0.03173941373825073, 0.018169665709137917, 0.022433431819081306, -0.01447204127907753, -0.050846755504608154, 0.0010250292252749205, -0.019832711666822433, 0.05158981680870056, -0.019089648500084877, 0.0026825466193258762, 0.049891386181116104, 0.02291111648082733, 0.0011632477398961782, 0.038745440542697906, 0.018293509259819984, 0.031226348131895065, -0.01611739583313465, 0.03009406104683876, -0.05739278718829155, 0.004710489884018898, -0.009199830703437328, 0.05346516892313957, -0.04532685503363609, 0.006240846589207649, -0.03269478306174278, 0.006422189064323902, -0.018594272434711456, 0.00905829481780529, -0.04716682434082031, 0.011809397488832474, 0.033455535769462585, -0.02353033609688282, 0.009969431906938553, 0.017338141798973083, 0.029457150027155876, 0.015807785093784332, 0.02809486724436283, 0.010845184326171875, 0.029987908899784088, 0.04713143780827522, -0.020239626988768578, -0.012844378128647804, -0.022822655737400055, 0.01502933818846941, 0.02575952559709549, 0.08881374448537827, 0.024291090667247772, 0.024768773466348648, 0.08605379611253738, -0.031031735241413116, 0.008757530711591244, -0.00270687323063612, -0.04058540612459183, 0.033526305109262466, 0.08053389936685562, 0.0031403268221765757, -0.0006595791783183813, -0.022097283974289894, 0.010509037412703037, -0.010296733118593693, -0.06482341885566711, -0.01627662219107151, -0.004626453388482332, -0.02583029307425022, -0.032340943813323975, -0.08534611761569977, -0.032765548676252365, -0.008271001279354095, 0.05388977378606796, 0.028572550043463707, -0.01926656812429428, 0.025193382054567337, 0.024167247116565704, 0.06899872422218323, 0.031155578792095184, -0.010659419000148773, 0.04256690666079521, 0.009049448184669018, -0.04801603779196739, 0.0036025296431034803, -0.016055474057793617, -0.02441493421792984, 0.057675860822200775, -0.0024636085145175457, 0.012534769251942635, 0.01673661358654499, 0.0228403490036726, -0.022946499288082123, -0.0014463195111602545, 0.015471638180315495, -0.012366695329546928, -0.04691913351416588, -0.02549414522945881, -0.05077598616480827, -0.019372720271348953, -0.05300517752766609, -0.07657089829444885, 0.038603901863098145, 0.06238192692399025, -0.05870199576020241, -0.006501803174614906, 0.013109758496284485, 0.040903862565755844, -0.005037791561335325, 0.045008402317762375, 0.012614382430911064, 0.04437148943543434, 0.02460954710841179, 0.06935256719589233, -0.040054645389318466, 0.04327458515763283, -0.013835129328072071, 0.06022350490093231, 0.06248807907104492, -0.004493763204663992, 0.03196940943598747, 0.03425167500972748, -0.020664233714342117, -0.004732605069875717, -0.03497704863548279, -0.059445057064294815, 0.01608201116323471, -0.0025321647990494967, 0.03315477445721626, -0.017063915729522705, -0.0376131534576416, -0.028625626116991043, -0.013100911863148212, -0.039948493242263794, 0.06924641877412796, 0.010579804889857769, 0.024786466732621193, 0.004392034374177456, 0.061745014041662216, 0.026201823726296425, 0.002693604212254286, 0.0410807803273201, -0.06839720159769058, 0.03219940513372421, 0.03658701851963997, -0.0671941488981247, 0.02595413662493229, -0.014365889132022858, 0.029350997880101204, 0.004847602918744087, 0.013817437924444675, -0.03152710944414139, -0.07147560268640518, -0.04062078893184662, -0.012481693178415298, 0.0008829404250718653, -0.011482096277177334, -0.06790182739496231, 0.02257496863603592, 0.041470006108284, 0.05020984262228012, -0.0783400908112526, -0.01578124798834324, 0.05689741298556328, -0.004679528996348381, 0.021796520799398422, 0.018558887764811516, 0.004989138804376125, -0.000970847497228533, -0.00775351095944643, -0.042248450219631195, -0.038214679807424545, -0.03701162710785866, -0.04511455446481705, -0.0015425196615979075, -0.009244060143828392, 0.031190963461995125, -0.011252100579440594, 0.014020895585417747, -0.006024119909852743, -0.0159316286444664, 0.0025763947051018476, -0.003206671681255102, 0.019744250923395157, 0.009721743874251842, -0.04309766739606857, 0.006245269440114498, -0.025865677744150162, -0.016913535073399544, -0.04019618034362793, -0.049537546932697296, -0.026697199791669846, 0.018948111683130264, 0.06761875003576279, -0.0008635898702777922, 0.0015414138324558735, 0.027051039040088654, 0.06270038336515427, -0.06581417471170425, -0.013498981483280659, 0.04079771041870117, -0.011234408244490623, -0.040903862565755844, 0.021018074825406075, -0.03796699270606041, 0.027051039040088654, 0.0587373785674572, -0.000529930111952126, -0.011871319264173508, -0.019567331299185753, -0.028891006484627724, 0.028802545741200447, 0.03292477875947952, 0.015073568560183048, -0.02080577053129673, -0.036763936281204224, 0.0068025668151676655, 0.005502206273376942, -0.009323674254119396, -0.0326240137219429, 0.006647761911153793, -0.006196616683155298, 0.03469397500157356, -0.0656372532248497, 0.042319219559431076, -0.050351377576589584, -0.03513627499341965, -0.0012616594322025776, -0.006373536307364702, -0.027316419407725334, 0.015560097992420197, 0.05916198715567589, 0.048652950674295425, 0.0030806162394583225, 0.0232295710593462, -0.038745440542697906, -0.07777395099401474, -0.0045180898159742355, 0.03633933141827583, 0.00003471014861133881, -0.03580857068300247, 0.08343538641929626, 0.022238820791244507, -0.01619700901210308, 0.06365574896335602, 0.04072694107890129, 0.03630394488573074, -0.007222751621156931, 0.027670258656144142, -0.024751082062721252, -0.024308782070875168, 0.016099702566862106, -0.06889257580041885, 0.055340517312288284, 0.013277832418680191, -0.0314740352332592, 0.012932838872075081, 0.07052023708820343, -0.03764853626489639, -0.03547242283821106, 0.003376957029104233, 0.03980695828795433, -0.013313216157257557, 0.043628428131341934, -0.026537971571087837, -0.05109444260597229, -0.049042172729969025, 0.027440262958407402, 0.02786487154662609, 0.0218849815428257, -0.011694399639964104, 0.035790879279375076, -0.037365466356277466, -0.007766779977828264, 0.008474458940327168, -0.0013965608086436987, -0.023424183949828148, -0.002311015035957098, -0.07876469939947128, -0.011809397488832474, 0.011712091974914074, -0.007032562512904406, -0.025087229907512665, -0.014401272870600224, 0.02395494282245636, 0.00890791229903698, -0.028006406500935555, -0.021814214065670967, -0.010491345077753067, 0.04394688084721565, -0.003454359481111169, 0.0510590597987175, -0.0028683124110102654, -0.009597900323569775, -0.022398049011826515, 0.06354960054159164, -0.05802970007061958, -0.10063198953866959, -0.024733390659093857, 0.013684747740626335, 0.018558887764811516, 0.06843258440494537, 0.010783262550830841, -0.0009199830237776041, 0.026237208396196365, -0.05480976030230522, 0.025193382054567337, 0.042708441615104675, -0.037330079823732376, -0.016940072178840637, 0.057640474289655685, -0.024238014593720436, -0.019178107380867004, 0.033526305109262466, -0.018558887764811516, -0.005453553516417742, -0.08824760466814041, -0.017709674313664436, -0.015285871922969818, -0.01919580064713955, -0.06779567152261734, -0.03789622336626053, 0.013322061859071255, -0.03356168791651726, 0.024945693090558052, 0.017143530771136284, -0.009049448184669018, -0.046777598559856415, 0.039594653993844986, -0.02345956675708294, -0.11775782704353333, -0.04603453725576401, 0.08209079504013062, 0.024238014593720436, -0.07805702090263367, -0.047272972762584686, -0.0147816501557827, -0.0003032516106031835, 0.0017183336894959211, -0.0067406450398266315, 0.021796520799398422, -0.006183347664773464, -0.02192036435008049, -0.05339439958333969, -0.062240391969680786, -0.018594272434711456, -0.008324077352881432, -0.012331310659646988, 0.010854030959308147, 0.013401675969362259, 0.0383916012942791, 0.029121002182364464, -0.033880144357681274, -0.049466781318187714, 0.06638031452894211, 0.006550455931574106, -0.03941773623228073, 0.00370425870642066, -0.020098090171813965, -0.0011466615833342075, 0.026573356240987778, -0.016904687508940697, 0.013932435773313046, 0.024078786373138428, -0.009235214442014694, 0.0005655905115418136, 0.0044163609854876995, -0.013215910643339157, -0.018629657104611397, -0.018187357112765312, -0.014640114270150661, -0.015055876225233078, -0.050846755504608154, -0.057675860822200775, -0.03586164489388466, 0.050422146916389465, 0.007116599474102259, -0.022291896864771843, 0.03158018738031387, -0.029315613210201263, 0.024928001686930656, -0.012499384582042694, -0.011048641987144947, -0.002297746017575264, 0.06340806186199188, -0.03582626208662987, -0.06004658341407776, -0.021018074825406075, -0.019974246621131897, -0.002131883753463626, -0.045892998576164246, 0.04122231528162956, -0.007059100549668074, -0.027245651930570602, -0.026077980175614357, 0.010845184326171875, -0.0645049661397934, 0.05544666945934296, -0.02379571460187435, 0.017647750675678253, 0.006006427574902773, -0.038603901863098145, 0.01032327115535736, -0.030500976368784904, 0.01504703052341938, -0.055800508707761765, 0.013578595593571663, -0.05958659201860428, 0.027192575857043266, 0.00605508079752326, -0.00029468207503668964, -0.04978523775935173, -0.01493203267455101, 0.0698833242058754, 0.06496495753526688, -0.04522070288658142, -0.04536224156618118, -0.03320784866809845, -0.010447114706039429, -0.008178118616342545, 0.024308782070875168, 0.019071955233812332, 0.0767832025885582, -0.028997156769037247, 0.04380534589290619, 0.022044209763407707, -0.031420957297086716, 0.0025830292142927647, 0.005444707348942757, -0.01493203267455101, 0.022486507892608643, -0.013693593442440033, 0.02487492561340332, 0.06022350490093231, -0.0019383777398616076, 0.030960967764258385, 0.024963386356830597, 0.038214679807424545, -0.0023088036105036736, -0.034269366413354874, -0.024078786373138428, -0.036180101335048676, 0.01877119205892086, 0.011570556089282036, -0.0067892977967858315, -0.006015273742377758, 0.06853873282670975, -0.01289745420217514, 0.0007071263971738517, 0.029457150027155876, -0.016488926485180855, -0.023247264325618744, 0.02142499014735222, -0.01550702191889286, 0.007532360963523388, -0.0007977978093549609, -0.006899872794747353, -0.018788883462548256, -0.028696393594145775, -0.06369113177061081, 0.007970238104462624, -0.05551743879914284, -0.01657738722860813, 0.030182519927620888, 0.008775223046541214, 0.06627416610717773, -0.019567331299185753 ]
30,333
networkx.algorithms.tree.mst
_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_tree : nx.Graph The minimum spanning tree of the input partition.
def _partition(self, partition, partition_tree): """ 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_tree : nx.Graph The minimum spanning tree 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_tree.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] = EdgePartition.EXCLUDED p2.partition_dict[e] = EdgePartition.INCLUDED self._write_partition(p1) p1_mst = partition_spanning_tree( self.G, self.minimum, self.weight, self.partition_key, self.ignore_nan, ) p1_mst_weight = p1_mst.size(weight=self.weight) if nx.is_connected(p1_mst): p1.mst_weight = p1_mst_weight if self.minimum else -p1_mst_weight self.partition_queue.put(p1.__copy__()) p1.partition_dict = p2.partition_dict.copy()
(self, partition, partition_tree)
[ 0.02693461999297142, 0.027952345088124275, -0.07071434706449509, 0.02619764767587185, 0.014292018488049507, -0.010914224199950695, 0.015739643946290016, 0.00461485655978322, -0.06997737288475037, -0.032707579433918, 0.02116166241466999, 0.010896677151322365, -0.0225303266197443, 0.01143185980618, -0.0554133765399456, -0.0052684820257127285, 0.016301147639751434, 0.04362180083990097, 0.022442592307925224, 0.055062435567379, 0.0035466840490698814, -0.0724339485168457, 0.0038954303599894047, 0.04365689679980278, -0.026443304494023323, -0.008282176218926907, -0.0027833902277052402, -0.034655291587114334, -0.024706153199076653, -0.04176182299852371, 0.015572948381304741, -0.007308318745344877, 0.04583272337913513, -0.012072324752807617, 0.010870356112718582, 0.0345500111579895, 0.01761717163026333, 0.04783307760953903, -0.05095643922686577, -0.0032418053597211838, -0.02072298713028431, -0.0037462811451405287, -0.019266588613390923, -0.03895430266857147, 0.05436055734753609, 0.04965796321630478, 0.04109503701329231, 0.03397095948457718, 0.014748239889740944, 0.05871220678091049, 0.010808941908180714, -0.0380418598651886, -0.002849191427230835, -0.0011953882640227675, -0.06601174920797348, 0.02160033769905567, 0.04727157577872276, -0.07868067175149918, -0.0074311476200819016, -0.012195154093205929, 0.007453081198036671, 0.0320407934486866, 0.028391020372509956, 0.022582968696951866, -0.054781682789325714, -0.04288482666015625, -0.04611347243189812, -0.04628894478082657, -0.09033187478780746, 0.05786995217204094, 0.01979299820959568, -0.030882691964507103, 0.012958447448909283, -0.021144116297364235, -0.02923327498137951, 0.05600997060537338, 0.01531851664185524, -0.026215193793177605, 0.04983343556523323, -0.03295323625206947, 0.015090405941009521, 0.00020494328055065125, -0.007444307673722506, 0.008479580283164978, 0.0427093580365181, 0.05569412559270859, 0.05467640236020088, 0.02882969379425049, 0.014388526789844036, -0.024706153199076653, -0.010458001866936684, 0.0834534540772438, 0.018933195620775223, 0.02519746869802475, 0.1021234467625618, -0.018038298934698105, -0.0453764982521534, -0.04351652041077614, -0.037866391241550446, -0.03190041705965996, -0.022600514814257622, 0.026688963174819946, -0.04362180083990097, -0.005979134701192379, 0.004676271229982376, -0.06790682673454285, 0.006913511548191309, 0.028285738080739975, -0.04558706283569336, -0.013019861653447151, -0.05720316618680954, -0.020003560930490494, -0.056220535188913345, 0.04628894478082657, -0.0026495945639908314, 0.017380287870764732, -0.0043713925406336784, 0.015783511102199554, 0.02375861629843712, -0.028689319267868996, 0.01642397604882717, 0.05229001119732857, -0.007295158691704273, 0.00496579660102725, -0.0413757860660553, -0.02360069379210472, 0.09349033236503601, 0.019986014813184738, -0.005123719107359648, -0.05590469017624855, 0.0061063505709171295, 0.003469916060566902, -0.028882335871458054, 0.003454562509432435, -0.03307606279850006, -0.031145896762609482, -0.04098975285887718, 0.027057448402047157, -0.003649772610515356, -0.0318828709423542, 0.02789970487356186, -0.08338326960802078, 0.01597652956843376, 0.001157004269771278, -0.023144472390413284, -0.020582612603902817, -0.0053649903275072575, -0.0320407934486866, 0.03567301854491234, 0.021582789719104767, -0.050851158797740936, 0.01374806184321642, -0.01790669746696949, -0.045341406017541885, 0.014406073838472366, -0.014028813689947128, -0.004312171135097742, -0.0032067112624645233, -0.006316914223134518, -0.0009069596999324858, -0.04281464219093323, -0.03195305913686752, 0.057519011199474335, 0.0017733420245349407, -0.022074105218052864, 0.02045978233218193, -0.020810723304748535, -0.0443938672542572, -0.04983343556523323, -0.03200569748878479, 0.06548534333705902, 0.021916182711720467, -0.014757012948393822, -0.02075808122754097, -0.05509752780199051, 0.04569234699010849, 0.016581900417804718, -0.011221296153962612, -0.039164867252111435, -0.012326756492257118, -0.025741424411535263, -0.023776162415742874, -0.00013242488785181195, 0.03433944657444954, -0.0023337488528341055, 0.0373750738799572, 0.029461385682225227, -0.014213057234883308, 0.04042825102806091, 0.004338491708040237, -0.046008192002773285, -0.017222365364432335, -0.016046715900301933, 0.06527478247880936, 0.0006196278845891356, 0.02489916980266571, 0.017625944688916206, 0.015011444687843323, -0.033655114471912384, 0.09026168286800385, -0.0012085485504940152, 0.014493808150291443, 0.06829286366701126, 0.024618418887257576, 0.01141431275755167, -0.010019327513873577, -0.02519746869802475, 0.04165653884410858, 0.009642067365348339, 0.023688428103923798, -0.07797879725694656, -0.04481499642133713, 0.045973096042871475, 0.04544668644666672, 0.009063017554581165, -0.039866745471954346, -0.023723522201180458, 0.025215014815330505, 0.057519011199474335, -0.040568627417087555, -0.026548586785793304, 0.031321365386247635, 0.004439387004822493, -0.010615925304591656, 0.04765760898590088, -0.043305955827236176, 0.048605144023895264, -0.09236732125282288, -0.0032308383379131556, 0.014107774943113327, 0.013098823837935925, -0.07411845773458481, -0.010396587662398815, -0.041867103427648544, 0.050219468772411346, 0.06369554996490479, -0.02242504432797432, -0.06762607395648956, 0.024021821096539497, 0.027794422581791878, -0.044604431837797165, -0.041130129247903824, -0.012195154093205929, -0.008330430835485458, -0.014888615347445011, -0.01323042530566454, 0.0028228710871189833, 0.03958599641919136, 0.029759684577584267, 0.030830049887299538, -0.05292170122265816, -0.06092312932014465, -0.020740535110235214, -0.022302215918898582, 0.06348498910665512, 0.001738248043693602, -0.017520662397146225, -0.004239790141582489, -0.01716972328722477, 0.023302394896745682, -0.03311115875840187, -0.027583857998251915, -0.04555197060108185, 0.022811079397797585, 0.033690210431814194, -0.023407677188515663, 0.015581721439957619, 0.05657147616147995, -0.011686291545629501, -0.00939640961587429, 0.020635252818465233, 0.07503090053796768, 0.015967754647135735, 0.021073928102850914, 0.014011266641318798, -0.024671059101819992, -0.0437270849943161, 0.002706622239202261, 0.011221296153962612, -0.004040192812681198, -0.007668031845241785, -0.00038959787343628705, -0.037726014852523804, 0.03323398903012276, 0.00348307634703815, 0.004101607482880354, 0.001843529986217618, -0.10338682681322098, -0.014730692841112614, -0.03744526207447052, -0.08955980837345123, 0.044604431837797165, -0.00034326285822317004, -0.01583615317940712, 0.037094324827194214, 0.04569234699010849, -0.011203749105334282, -0.03214607387781143, -0.012581187300384045, 0.051377568393945694, 0.0791018009185791, 0.0007929043495096266, -0.013046182692050934, 0.00509739900007844, 0.00775138009339571, 0.015397477895021439, 0.03425171226263046, 0.050219468772411346, -0.007549589965492487, 0.0033054130617529154, -0.03221626207232475, 0.012414490804076195, 0.00009328689338872209, -0.0034414022229611874, -0.0035686178598552942, -0.061765383929014206, 0.04976324737071991, 0.0073258657939732075, 0.0024105168413370848, 0.06604684889316559, -0.021547695621848106, 0.05716807395219803, -0.010440455749630928, 0.06401139497756958, -0.05951936915516853, -0.027689140290021896, 0.030251000076532364, 0.013370801694691181, -0.027215370908379555, 0.0159414354711771, -0.06653816252946854, 0.028777053579688072, -0.03147928789258003, 0.044042930006980896, -0.0600808709859848, 0.027390841394662857, 0.052149634808301926, -0.02342522330582142, -0.02416219748556614, -0.000878445862326771, 0.05871220678091049, 0.016634540632367134, 0.017889149487018585, 0.010572058148682117, 0.003840596182271838, -0.02116166241466999, 0.018266409635543823, 0.00969470851123333, -0.05109681561589241, 0.06148463115096092, -0.011677517555654049, 0.04246370121836662, -0.008747171610593796, 0.01538870483636856, 0.07155659794807434, -0.02853139489889145, -0.010317626409232616, -0.05190397799015045, -0.023969179019331932, -0.0012546093203127384, 0.044569339603185654, -0.019108666107058525, 0.013239199295639992, 0.027285559102892876, -0.006001068279147148, -0.0367082916200161, -0.05930880457162857, 0.02993515506386757, -0.005141266155987978, -0.0547465905547142, -0.017862830311059952, -0.08457646518945694, -0.039831653237342834, 0.018213769420981407, -0.0020365468226373196, 0.027583857998251915, -0.0747501477599144, -0.007764540147036314, 0.007790860719978809, 0.05923861637711525, 0.06888946145772934, -0.0003350377082824707, 0.02153014950454235, 0.048043642193078995, -0.05032474920153618, -0.025039546191692352, 0.056325819343328476, -0.07187244296073914, 0.07861048728227615, -0.018283957615494728, 0.008545381017029285, 0.060396719723939896, 0.052114542573690414, 0.03881392627954483, -0.008668210357427597, 0.019880732521414757, 0.05590469017624855, -0.05257076397538185, -0.04642931744456291, -0.05453602597117424, 0.008448872715234756, -0.051517944782972336, -0.049482494592666626, 0.05776467174291611, 0.06699438393115997, -0.0981227308511734, 0.04558706283569336, 0.04281464219093323, 0.030514204874634743, 0.0453764982521534, -0.01679246313869953, -0.03281285986304283, 0.027057448402047157, 0.029864966869354248, 0.0036541593726724386, -0.05292170122265816, 0.043305955827236176, 0.02919818088412285, 0.04428858682513237, -0.01653803139925003, 0.014520129188895226, -0.01809094101190567, 0.03765582665801048, 0.019705262035131454, 0.01346730999648571, -0.10050912201404572, -0.006856483872979879, 0.0013346674386411905, -0.012923353351652622, 0.005584327504038811, 0.017968110740184784, -0.007496948819607496, -0.05120209977030754, -0.013476083986461163, 0.02763650007545948, -0.009589426219463348, 0.039270151406526566, 0.032918140292167664, 0.030830049887299538, 0.007760153617709875, 0.050745878368616104, 0.02997024916112423, 0.07411845773458481, -0.06892455369234085, 0.025548407807946205, -0.0021023480221629143, -0.06411667913198471, -0.006246726028621197, -0.0760837197303772, -0.005632581654936075, 0.018406786024570465, -0.007983877323567867, 0.00008423923281952739, 0.021881088614463806, -0.038357704877853394, 0.000940408674068749, -0.0034874631091952324, -0.0231971126049757, -0.0453764982521534, 0.03951580822467804, 0.06071256473660469, 0.05636091157793999, -0.05716807395219803, 0.04074409604072571, 0.019336776807904243, 0.007334639318287373, 0.010536964051425457, -0.0009102497715502977, 0.03625207021832466, -0.03888411447405815, 0.06678382307291031, -0.013405895791947842, -0.037129417061805725, -0.029127992689609528, 0.03179513290524483, -0.007532042916864157, -0.011554689146578312, -0.009738575667142868, 0.01341466885060072, 0.01775754801928997, -0.018775273114442825, -0.04369198903441429, 0.04379727318882942, 0.032654937356710434, -0.038603365421295166, -0.03140909969806671, 0.006189698353409767, 0.03586603328585625, -0.04449915140867233, 0.002616693964228034, -0.038462989032268524, -0.034356992691755295, 0.016643313691020012, 0.03969127684831619, 0.00015627781976945698, 0.04218294844031334, -0.008624342270195484, 0.022635608911514282, 0.06867889314889908, -0.10893167555332184, -0.0074311476200819016, 0.06302876770496368, -0.02960176207125187, 0.01782773621380329, -0.005259708501398563, 0.05158813297748566, -0.018371691927313805, 0.05583450198173523, -0.005518526304513216, -0.0035028166603296995, 0.009773669764399529, -0.03825242444872856, 0.008769105188548565, 0.04084937646985054, -0.0052948021329939365, 0.021179208531975746, 0.004921928979456425, 0.04155125841498375, 0.019582433626055717, -0.0347079336643219, 0.009773669764399529, 0.0004120799421798438, 0.06292348355054855, -0.05797523260116577, -0.04014749825000763, 0.000016750173017499037, -0.014520129188895226, -0.028584036976099014, 0.025320297107100487, 0.0029347329400479794, -0.03863845765590668, 0.03147928789258003, 0.061028409749269485, 0.021986370906233788, 0.04081428423523903, 0.008878774009644985, -0.03941052407026291, 0.026285381987690926, -0.02526765689253807, -0.002616693964228034, 0.0003087172517552972, -0.03660300746560097, 0.025021998211741447, 0.005430791527032852, -0.010221118107438087, 0.079452745616436, 0.0530620776116848, -0.002517992164939642, -0.02112656831741333, -0.016485391184687614, 0.04313048720359802, -0.001286413287743926, 0.018406786024570465, -0.011089693754911423, 0.038462989032268524, -0.026092365384101868, -0.03281285986304283, -0.0570627897977829, 0.039094679057598114, 0.007856662385165691, -0.005443951580673456, 0.033023424446582794, 0.04344633221626282, -0.0157659649848938, 0.023618239909410477, -0.062397073954343796, -0.04291992262005806, -0.007466241717338562, 0.03433944657444954, 0.04513084143400192, 0.04495537281036377, 0.04790326580405235, 0.0023863897658884525, -0.003092655912041664, -0.02449558861553669, -0.013827023096382618, -0.0034501757472753525, -0.05562393739819527, -0.06197594478726387, -0.03295323625206947, -0.004803486634045839, 0.018933195620775223, 0.04134069383144379, -0.028654225170612335, -0.03195305913686752, 0.027022354304790497, -0.04499046504497528, 0.0013862117193639278, 0.026180099695920944, -0.0019433284178376198, 0.0003917912545148283, -0.02075808122754097, 0.039866745471954346, 0.029882512986660004, -0.0027351360768079758, -0.0318828709423542, 0.010264985263347626, -0.03216361999511719, -0.02589934878051281, -0.07531165331602097, -0.04548178240656853, 0.036532819271087646, 0.010264985263347626, 0.03593622148036957, 0.07088981568813324, -0.018003204837441444, 0.005360603332519531, -0.02582916058599949, 0.02145996131002903, -0.004173988942056894, 0.02579406648874283, 0.030198359861969948, 0.0017152177169919014, -0.020301859825849533, 0.01712585613131523, 0.016739822924137115, -0.052149634808301926, -0.08689266443252563, 0.016774917021393776, -0.036497727036476135, -0.002768036676570773, 0.01705566793680191, -0.014748239889740944, -0.03284795209765434, -0.01772245392203331, -0.01938941702246666, 0.0694158673286438, -0.07362714409828186, 0.005764184053987265, -0.01661699451506138, 0.0048385807313025, -0.0345500111579895, 0.019775450229644775, -0.033058516681194305, 0.004500801209360361, -0.029917607083916664, 0.0031474903225898743, -0.032654937356710434, -0.015195688232779503, 0.004217856097966433, -0.028075173497200012, 0.020038655027747154, -0.0062028588727116585, -0.07036340236663818, -0.010080741718411446, -0.08927905559539795, -0.0054702721536159515, -0.003594938199967146, 0.017704905942082405, 0.028478754684329033, -0.02696971409022808, 0.0420425720512867, -0.02156524360179901, 0.018073393031954765, -0.009606973268091679, 0.08654172718524933, -0.03965618461370468, -0.025074640288949013, 0.0437270849943161, 0.004750845953822136, 0.03284795209765434, -0.014695598743855953, -0.034830763936042786, 0.032391730695962906, 0.02516237460076809, 0.022477686405181885, 0.02205655910074711, -0.0417267270386219, 0.019038477912545204, -0.02970704436302185, 0.002128668362274766, -0.03400605544447899, 0.01753821037709713, -0.01709076203405857, -0.056957509368658066, -0.045938003808259964, -0.0049175419844686985, 0.005167586728930473, -0.04849986359477043, -0.015599268488585949, -0.016643313691020012, 0.02646085061132908, -0.008054065518081188, -0.025021998211741447, 0.027952345088124275, 0.05520281195640564, -0.06092312932014465, -0.082119882106781, -0.018196221441030502, -0.0004882996436208487, 0.05520281195640564, -0.01520446129143238, 0.0056501287035644054, 0.046043284237384796, -0.06137935072183609, -0.02489916980266571, 0.0099315932020545, -0.02389899268746376, -0.006395875476300716, -0.044534243643283844, 0.023407677188515663, -0.005527299828827381, -0.018038298934698105, -0.006751202046871185, -0.03418152406811714, 0.01174770575016737, -0.10086005926132202, 0.0008587054908275604, -0.022249575704336166, 0.0034808828495442867, -0.01144940685480833, -0.012554867193102837, 0.009484144859015942, 0.009352542459964752, 0.013028635643422604, 0.04383236542344093, 0.008848066441714764, -0.006044935900717974, 0.01178279984742403, -0.0007298448472283781, -0.035760752856731415, -0.03481321409344673, 0.027847062796354294, 0.04572743922472, -0.03867355361580849, 0.03414643183350563, 0.058887679129838943, -0.06688909977674484, -0.015257102437317371, -0.03776111081242561, 0.001556198112666607, 0.02970704436302185, -0.017064440995454788, -0.014669278636574745, 0.08661191165447235, 0.002202146453782916, 0.04692063480615616, 0.023723522201180458, -0.0007808407535776496, 0.03591867536306381, 0.048815708607435226, -0.028443660587072372, -0.06046690419316292, -0.008918254636228085, -0.005829985253512859, 0.0026737216394394636, 0.01298476755619049, 0.020565064623951912, 0.012072324752807617, 0.044042930006980896, 0.03702413663268089, -0.04523612558841705, 0.019442057237029076, 0.023109378293156624, -0.009589426219463348, 0.00564135517925024, 0.020319407805800438, 0.025513313710689545, -0.0009574072901159525, -0.06015105918049812, -0.03726979345083237, 0.0160993579775095, -0.015529080294072628, 0.04920174181461334, 0.03902449086308479, 0.026074817404150963, 0.049412306398153305, 0.03386567905545235 ]
30,334
networkx.algorithms.tree.mst
_write_partition
Writes the desired partition into the graph to calculate the minimum spanning tree. 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. 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] = EdgePartition.OPEN
(self, partition)
[ 0.025281595066189766, 0.04077225551009178, -0.04021277278661728, 0.024896951392292976, 0.03236253932118416, -0.012579604052007198, -0.006595768965780735, 0.028044037520885468, -0.0794464498758316, -0.025001853704452515, 0.014432888478040695, 0.0080338129773736, -0.02599843218922615, -0.013681084848940372, -0.045527853071689606, 0.0097210006788373, 0.0052101765759289265, 0.024984370917081833, 0.011259576305747032, 0.08406218141317368, 0.021714897826313972, -0.04640204459428787, 0.004926064517349005, 0.014633952639997005, -0.015481917187571526, -0.020176321268081665, 0.04580759257078171, -0.017571233212947845, 0.010009483434259892, -0.05514394864439964, -0.0074175079353153706, -0.009362582117319107, 0.05968974158167839, 0.003997236955910921, -0.0017145065357908607, 0.050738029181957245, 0.024005277082324028, 0.043045151978731155, -0.07168363779783249, -0.014118179678916931, -0.03015957958996296, 0.03451304882764816, -0.06469011306762695, -0.023603148758411407, 0.05801129713654518, 0.05031841620802879, 0.06357114762067795, 0.037030719220638275, 0.037170588970184326, 0.02989732287824154, 0.00020830325956922024, -0.009161518886685371, -0.015892786905169487, -0.023847922682762146, -0.05741684511303902, -0.00023288986994884908, 0.05262628197669983, -0.08105496317148209, -0.016828171908855438, 0.027187330648303032, -0.03514246642589569, 0.013611149042844772, 0.012763184495270252, 0.03577188402414322, -0.03133099526166916, -0.025438949465751648, -0.04129676893353462, -0.024337468668818474, -0.08664978295564651, 0.06671823561191559, 0.03601665794849396, -0.04454875737428665, 0.020578449591994286, -0.0026881364174187183, -0.019389549270272255, 0.08168438076972961, -0.010035709477961063, -0.03302692621946335, 0.033638857305049896, -0.03460046648979187, 0.011294543743133545, -0.02428501844406128, -0.013025441206991673, 0.004364396911114454, 0.02771184593439102, 0.05692729726433754, 0.059375032782554626, 0.014284276403486729, -0.014074470847845078, -0.02283386141061783, -0.008938600309193134, 0.09259428083896637, 0.02444237284362316, 0.022291863337159157, 0.06339631229639053, -0.03463543578982353, -0.04535301402211189, -0.008803100325167179, -0.03696078434586525, 0.020176321268081665, -0.03304440900683403, 0.03255486115813255, -0.03215273469686508, -0.009450001642107964, 0.006639478262513876, -0.09539169073104858, 0.037800006568431854, 0.023026183247566223, -0.048395197838544846, -0.008143085986375809, -0.003468351671472192, 0.010726319625973701, -0.02377798780798912, 0.021330254152417183, 0.009843387641012669, 0.028183909133076668, 0.0032192072831094265, -0.0015964907361194491, -0.000054432031902251765, -0.042765408754348755, 0.022134508937597275, 0.032712217420339584, -0.009563646279275417, 0.012396024540066719, -0.02519417554140091, -0.027134880423545837, 0.06976041942834854, 0.03902387246489525, 0.01331392489373684, -0.03267724812030792, 0.011661703698337078, -0.0007037235191091895, -0.011189641430974007, -0.02626068890094757, -0.04409417882561684, -0.02311360277235508, -0.034530531615018845, -0.01933709904551506, -0.018900003284215927, -0.03238002210855484, 0.023183537647128105, -0.0794464498758316, -0.023847922682762146, -0.015350788831710815, 0.01646975241601467, -0.02494940347969532, -0.008960454724729061, -0.01260583009570837, 0.03187299147248268, -0.0027231040876358747, -0.0034180856309831142, -0.0030203289352357388, -0.014188115485012531, -0.046157270669937134, 0.0038202134892344475, -0.03671601042151451, -0.007802152074873447, -0.03313182666897774, -0.020158838480710983, -0.01933709904551506, -0.023201022297143936, -0.04717133194208145, 0.04308011755347252, 0.046017397195100784, -0.018865035846829414, 0.012291121296584606, -0.00004603160414262675, -0.024197598919272423, -0.039128776639699936, -0.02690758928656578, 0.06584404408931732, -0.011416930705308914, -0.04052748158574104, 0.005520514212548733, -0.03657614067196846, 0.03549214452505112, 0.02846364863216877, 0.0035098756197839975, -0.019686775282025337, -0.0031580140348523855, -0.020998060703277588, -0.003118675434961915, -0.00603628670796752, 0.0739215686917305, 0.035072531551122665, -0.028516100719571114, -0.002522040158510208, -0.013724793680012226, 0.04126179963350296, -0.015551852993667126, -0.043429795652627945, -0.026418043300509453, -0.02180231548845768, 0.014642694033682346, 0.009895838797092438, 0.0046506947837769985, 0.015857819467782974, -0.013637375086545944, -0.0009282812825404108, 0.08804848790168762, -0.014765080995857716, -0.004655065480619669, 0.05968974158167839, 0.019004905596375465, -0.0008681806502863765, 0.030649125576019287, 0.0006922497414052486, 0.02480953186750412, 0.029547646641731262, -0.02283386141061783, -0.04454875737428665, -0.02809648960828781, -0.00013324579049367458, 0.03446059674024582, 0.040422577410936356, -0.054654404520988464, -0.02664533257484436, 0.027851715683937073, 0.04790564998984337, 0.0020641828887164593, -0.05056319013237953, 0.05311582610011101, 0.01273695845156908, -0.021784832701086998, 0.036646075546741486, -0.08350269496440887, 0.03432072699069977, -0.12623314559459686, -0.04280037805438042, -0.00803818367421627, 0.0165833979845047, -0.06087864190340042, -0.022624054923653603, -0.009651065804064274, 0.03601665794849396, 0.05941000208258629, -0.03643626719713211, -0.04059741646051407, 0.03225763887166977, 0.01699426770210266, -0.02327095717191696, -0.036506205797195435, -0.016233721747994423, -0.0032760296016931534, -0.03351647034287453, 0.023463279008865356, 0.0200014840811491, 0.034268274903297424, 0.029058098793029785, 0.03668104112148285, -0.051647186279296875, -0.061053477227687836, -0.02975745126605034, -0.013838439248502254, 0.08630010485649109, 0.005271370057016611, 0.0013069150736555457, 0.019931547343730927, -0.03096383437514305, 0.02835874632000923, -0.08699946105480194, -0.02795661799609661, -0.016662074252963066, 0.023795470595359802, 0.05811619758605957, -0.031173640862107277, 0.01893497072160244, 0.031785573810338974, -0.023061150684952736, -0.013602407649159431, -0.012815635651350021, 0.10273489356040955, -0.020176321268081665, 0.015717949718236923, 0.027467072010040283, -0.03320176154375076, -0.018620261922478676, 0.023585665971040726, 0.03248492628335953, 0.005686610471457243, 0.0017931837355718017, -0.014380437321960926, -0.020560964941978455, 0.05972471088171005, -0.025019338354468346, 0.021889735013246536, 0.01071757823228836, -0.06969048082828522, -0.028376230970025063, -0.058710649609565735, -0.07245292514562607, 0.06594894826412201, -0.005140241235494614, -0.0029023131355643272, 0.031558286398649216, 0.05524885281920433, -0.0055685946717858315, -0.02834126353263855, 0.009563646279275417, 0.04339482635259628, 0.06727771461009979, -0.0014555274974554777, 0.004261679481714964, 0.020298708230257034, -0.01881258375942707, 0.005179579835385084, 0.015516884624958038, 0.00849276315420866, -0.010332934558391571, -0.001545132021419704, -0.0622074119746685, 0.00502659659832716, 0.0034596098121255636, 0.05514394864439964, 0.020403610542416573, -0.03070157766342163, 0.020945608615875244, -0.02636559121310711, 0.010682610794901848, 0.0777680054306984, -0.02404024451971054, 0.03773007169365883, 0.017475072294473648, 0.030754029750823975, -0.05454950034618378, -0.03286956995725632, 0.008733165450394154, 0.004834274761378765, -0.016810687258839607, -0.02323598973453045, -0.06140315532684326, 0.01907484047114849, 0.014170631766319275, 0.038464389741420746, -0.0678372010588646, 0.0535004697740078, 0.04503830522298813, -0.022659022361040115, -0.03835948929190636, 0.0473112016916275, 0.06185773387551308, 0.03647123649716377, 0.03236253932118416, 0.03536975756287575, 0.033096861094236374, 0.016688300296664238, -0.0021002432331442833, -0.018183166161179543, -0.05745181441307068, 0.07797781378030777, -0.01853284239768982, 0.06731268763542175, -0.008702568709850311, -0.002154880203306675, 0.08182425051927567, -0.04517817497253418, 0.03451304882764816, -0.06301166862249374, -0.07692877948284149, 0.033376600593328476, 0.061333220452070236, -0.015097273513674736, 0.020858190953731537, 0.017527524381875992, -0.013016699813306332, -0.015254627913236618, -0.061438124626874924, -0.002443362958729267, 0.04580759257078171, -0.057906392961740494, -0.017195330932736397, -0.08685959130525589, -0.004816790577024221, -0.00037890704697929323, -0.0038289553485810757, 0.03671601042151451, -0.05325569957494736, 0.014319243840873241, 0.029355324804782867, 0.019739225506782532, 0.04727623239159584, -0.034687887877225876, 0.06203257292509079, 0.0642705038189888, -0.04846513271331787, -0.013514988124370575, 0.036226462572813034, -0.0736418217420578, 0.04724126681685448, 0.007238299120217562, -0.03786994144320488, 0.08930732309818268, 0.010621417313814163, -0.010656384751200676, 0.01607636734843254, 0.01528959535062313, 0.02549140155315399, -0.06969048082828522, -0.028655970469117165, -0.054409630596637726, 0.013077893294394016, -0.08671972155570984, -0.0488148108124733, 0.05468937009572983, 0.05601814016699791, -0.10217540711164474, 0.030981319025158882, 0.02989732287824154, 0.04087715595960617, 0.002670652698725462, -0.013296440243721008, -0.011548059061169624, -0.003107747994363308, 0.03699574992060661, 0.042765408754348755, -0.0543396957218647, 0.08308308571577072, -0.0024848871398717165, 0.01853284239768982, -0.01579662598669529, 0.011250833980739117, 0.010612674988806248, 0.05409492179751396, 0.0268901064991951, 0.010166837833821774, -0.07504052668809891, -0.02222192846238613, -0.0016762607265263796, 0.015298337675631046, 0.03783497214317322, 0.015254627913236618, 0.003103377064689994, -0.035299818962812424, 0.018375487998127937, 0.025229142978787422, -0.007439362816512585, 0.05094783380627632, 0.017990844324231148, 0.00636847922578454, 0.02975745126605034, 0.09525182098150253, 0.027362169697880745, 0.02166244573891163, -0.04101702943444252, -0.00037890704697929323, 0.020298708230257034, -0.04594746232032776, -0.013637375086545944, -0.060668833553791046, 0.021120447665452957, 0.039373550564050674, -0.011583026498556137, 0.005301966797560453, 0.013952083885669708, 0.002345016459003091, -0.026837654411792755, -0.014424147084355354, -0.06231231242418289, -0.022921280935406685, -0.005363159812986851, 0.06395579129457474, 0.04975893348455429, -0.03668104112148285, 0.044583726674318314, 0.03515994921326637, -0.01293802261352539, -0.010446579195559025, -0.005070305895060301, 0.061193350702524185, -0.032712217420339584, 0.05982961133122444, 0.003483650041744113, -0.05748677998781204, -0.023952824994921684, 0.01058644987642765, -0.001290524029172957, -0.007334460038691759, 0.007098428439348936, -0.02809648960828781, 0.03393608331680298, -0.054374661296606064, -0.02874338999390602, 0.0029438373167067766, 0.03201286494731903, -0.005441837012767792, -0.021312769502401352, -0.02652294561266899, 0.04091212525963783, -0.02105051279067993, -0.009126551449298859, 0.008191167376935482, -0.016548430547118187, 0.025386497378349304, 0.008282956667244434, 0.019949031993746758, 0.054409630596637726, -0.021190382540225983, 0.038604263216257095, 0.013112860731780529, -0.09168512374162674, -0.04661184921860695, 0.053745243698358536, -0.05287105217576027, -0.0070853158831596375, -0.029425259679555893, 0.01487872563302517, 0.02244921773672104, 0.05864071100950241, 0.019896579906344414, 0.006858026143163443, 0.020281223580241203, -0.019127292558550835, -0.03895393759012222, 0.05510898306965828, -0.028638487681746483, 0.03685588017106056, 0.002090408466756344, 0.03867419809103012, -0.001071976381354034, -0.03748529776930809, 0.0031252317130565643, -0.024250051006674767, 0.05510898306965828, -0.034040987491607666, -0.043429795652627945, 0.02204708941280842, -0.007885199971497059, -0.05094783380627632, 0.03136596083641052, 0.04521314427256584, -0.01895245537161827, 0.024127664044499397, 0.06675320118665695, 0.032887052744627, 0.029215453192591667, 0.014546533115208149, 0.006875509861856699, 0.02297373116016388, 0.004812419880181551, 0.001040286966599524, -0.016286171972751617, -0.03449556604027748, 0.013112860731780529, -0.032082799822092056, 0.02101554535329342, 0.06112341582775116, 0.05906032398343086, -0.043150052428245544, 0.011985154822468758, -0.030212031677365303, 0.05745181441307068, -0.009039131924510002, -0.004381881095468998, -0.026208236813545227, 0.03594672307372093, 0.000792781705968082, -0.028271326795220375, -0.034023500978946686, 0.04556281864643097, -0.004646323621273041, -0.027467072010040283, 0.012894312851130962, 0.06217244267463684, 0.002094779396429658, 0.019809162244200706, -0.056227944791316986, -0.04010786861181259, -0.048255328088998795, 0.020665869116783142, 0.02286882884800434, 0.05318576097488403, 0.05745181441307068, 0.04259056970477104, -0.0004890004056505859, 0.0048386454582214355, -0.011504349298775196, 0.007762813474982977, 0.006687558721750975, -0.008951712399721146, -0.020018966868519783, -0.022536637261509895, 0.028813324868679047, 0.01931961439549923, 0.012570862658321857, -0.014144405722618103, 0.017684878781437874, 0.001110222190618515, -0.02244921773672104, -0.01056896522641182, -0.0009124365751631558, -0.011521833948791027, -0.024232566356658936, 0.029163001105189323, 0.007762813474982977, 0.02521166019141674, -0.06794210523366928, 0.018497874960303307, -0.037800006568431854, -0.015219660475850105, -0.07518040388822556, -0.07811768352985382, 0.0357893668115139, -0.008042554371058941, 0.03173312172293663, 0.055039048194885254, -0.01006193459033966, 0.0019286832539364696, 0.0008747371030040085, 0.0020619973074644804, -0.012116283178329468, 0.010944867506623268, 0.046297140419483185, -0.020945608615875244, -0.022029606625437737, -0.016906848177313805, 0.013139086775481701, -0.00737379863858223, -0.0733620822429657, -0.022099541500210762, -0.041191864758729935, -0.00842719804495573, -0.002099150326102972, -0.025928497314453125, -0.04346476122736931, -0.031925443559885025, -0.005048451479524374, 0.045492883771657944, -0.03811471536755562, -0.00295476452447474, -0.056088075041770935, -0.025963464751839638, 0.002642241306602955, -0.007050347980111837, -0.01905735768377781, -0.006840542424470186, -0.06626365333795547, -0.027257265523076057, -0.05944496765732765, 0.0033678195904940367, -0.0017374539747834206, -0.03341156989336014, 0.05720704048871994, 0.034670405089855194, -0.08483146876096725, 0.01207257341593504, -0.04895468056201935, 0.017955876886844635, -0.002373427851125598, -0.03496762737631798, -0.027257265523076057, -0.03239750862121582, 0.05276615172624588, -0.0015626158565282822, 0.022781409323215485, 0.045632753521203995, 0.08483146876096725, 0.0024805162101984024, -0.01907484047114849, 0.039128776639699936, 0.0014041687827557325, 0.005673497915267944, -0.030107127502560616, -0.028428681194782257, -0.01972174271941185, 0.0371006540954113, 0.0449683703482151, -0.012562120333313942, -0.04542294889688492, -0.01996651664376259, -0.07203331589698792, -0.007067831698805094, 0.002218259032815695, 0.04182128235697746, -0.05783645808696747, -0.052696216851472855, -0.06552933901548386, 0.028148941695690155, 0.0020456062629818916, -0.023043667897582054, -0.019004905596375465, -0.006910477764904499, 0.01194144506007433, 0.038744132965803146, -0.020438577979803085, 0.01961684040725231, 0.09427272528409958, -0.09224460273981094, -0.07182350754737854, -0.015630530193448067, -0.007299492601305246, 0.04213599115610123, -0.04650694504380226, -0.011801574379205704, 0.03629639744758606, -0.02690758928656578, -0.03594672307372093, 0.014598985202610493, 0.028621003031730652, -0.004104325547814369, -0.024739596992731094, 0.03367382660508156, 0.01293802261352539, 0.0017953692004084587, -0.0006490866071544588, -0.01735268533229828, -0.04870990663766861, -0.046751718968153, -0.0003141622873954475, -0.012903055176138878, -0.02949519455432892, 0.005730320233851671, 0.021452639251947403, -0.006377221085131168, 0.007697249297052622, 0.015403239987790585, 0.023743020370602608, -0.013593665324151516, 0.0009217248298227787, 0.0038114713970571756, -0.011775349266827106, -0.029460227116942406, -0.04636707529425621, 0.008977938443422318, 0.03190796077251434, -0.059619806706905365, -0.00900416448712349, 0.04398927465081215, -0.036611106246709824, -0.003966640215367079, -0.02049103006720543, -0.00921397004276514, 0.017667394131422043, -0.014153147116303444, -0.014196856878697872, 0.07601962238550186, 0.046681784093379974, 0.03070157766342163, 0.01324398908764124, -0.003415900282561779, 0.04402424395084381, 0.030666610226035118, 0.002812708495184779, -0.034390661865472794, -0.009554904885590076, 0.02313108555972576, -0.010472804307937622, 0.01921471208333969, 0.04926938936114311, -0.02521166019141674, 0.06559927016496658, 0.03773007169365883, -0.03811471536755562, -0.008921116590499878, 0.03678594529628754, 0.0059488676488399506, 0.0006720341043546796, 0.030386868864297867, 0.05119260773062706, 0.010874932631850243, -0.04888474568724632, -0.06671823561191559, 0.00008291152335004881, -0.028638487681746483, 0.03608659282326698, 0.023847922682762146, 0.016268689185380936, 0.027204815298318863, -0.01474759727716446 ]
30,335
networkx.utils.misc
_clear_cache
Clear the cache of a graph (currently stores converted graphs). Caching is controlled via ``nx.config.cache_converted_graphs`` configuration.
def _clear_cache(G): """Clear the cache of a graph (currently stores converted graphs). Caching is controlled via ``nx.config.cache_converted_graphs`` configuration. """ if cache := getattr(G, "__networkx_cache__", None): cache.clear()
(G)
[ -0.001892496831715107, 0.012568865902721882, 0.01804254949092865, 0.007547590881586075, -0.0035162365529686213, -0.0019820823799818754, -0.08134377002716064, 0.05471891164779663, 0.12018810212612152, -0.03431130200624466, 0.011386335827410221, 0.012676369398832321, 0.0070772659964859486, 0.01211197953671217, -0.010436727665364742, 0.015202684327960014, -0.0202642735093832, -0.029348257929086685, 0.03630010411143303, -0.030387451872229576, -0.014683087356388569, -0.07048598676919937, 0.03330794349312782, 0.02569316327571869, 0.0006315787904895842, -0.016958562657237053, 0.06066739931702614, 0.002069428563117981, 0.007596862968057394, 0.0493437759578228, -0.009146695025265217, -0.022772671654820442, -0.03359461948275566, 0.0027592380065470934, 0.002122059930115938, 0.028524070978164673, 0.0011802909430116415, 0.0008835384505800903, -0.09453077614307404, -0.04920043796300888, 0.00594848720356822, -0.006127658300101757, -0.0032004471868276596, -0.00701455632224679, 0.05002462491393089, -0.03298543393611908, -0.0023673006799072027, 0.0018902571173384786, -0.0029092938639223576, -0.043323617428541183, -0.0015151172410696745, -0.0006819707341492176, -0.02983202040195465, 0.10184096544981003, -0.011959684081375599, -0.02805822528898716, 0.018956322222948074, 0.060954075306653976, 0.019117577001452446, 0.006580065935850143, 0.015802908688783646, -0.024206042289733887, -0.029258672147989273, 0.0283628161996603, 0.04292944073677063, 0.02216348983347416, -0.03888016939163208, 0.0404927134513855, 0.024241875857114792, -0.04013437032699585, -0.0832071527838707, 0.028255313634872437, 0.0017693164991214871, 0.01870548352599144, 0.0027950722724199295, -0.03570884093642235, 0.0076103005558252335, 0.016017913818359375, -0.03262709453701973, -0.04389696568250656, 0.032877933233976364, -0.013742438517510891, -0.04192608222365379, -0.01972675882279873, 0.03171331807971001, -0.053428880870342255, 0.03909517824649811, 0.031050385907292366, -0.02304142899811268, -0.05959237366914749, 0.006145575549453497, -0.012103021144866943, 0.016582302749156952, -0.009818586520850658, 0.029957439750432968, -0.010114219971001148, -0.02900783345103264, -0.04404030367732048, -0.008707724511623383, -0.06575586646795273, 0.015561026521027088, -0.007556549273431301, -0.05952070280909538, 0.014172449707984924, 0.00403135409578681, -0.03321835771203041, 0.05561476945877075, -0.056008946150541306, 0.01285554002970457, 0.021823063492774963, -0.04765956476330757, 0.04249943047761917, 0.045832015573978424, -0.014047029428184032, 0.05926986411213875, 0.034938402473926544, -0.06708173453807831, -0.024833140894770622, -0.010597982443869114, 0.017791708931326866, -0.0441836416721344, 0.06819259375333786, -0.03004702553153038, 0.029563263058662415, 0.03769763931632042, 0.02900783345103264, 0.010992159135639668, -0.0015330343740060925, -0.0029697641730308533, -0.026338180527091026, 0.05898319184780121, 0.013419929891824722, 0.007511756382882595, 0.0545039065182209, 0.018812986090779305, -0.001034154323861003, 0.00038409847184084356, -0.018597980961203575, 0.008851061575114727, 0.07331689447164536, -0.07138184458017349, -0.013751396909356117, 0.0028533029835671186, 0.02040760964155197, 0.08707725256681442, -0.013724520802497864, 0.013930568471550941, -0.00909294281154871, -0.05930569767951965, -0.07199102640151978, -0.000511758029460907, -0.006992159876972437, 0.009298990480601788, -0.04203358665108681, -0.06009405106306076, 0.0375543050467968, -0.061240747570991516, 0.07604029774665833, -0.011171330697834492, 0.009307948872447014, -0.023363936692476273, 0.031999994069337845, 0.015578944236040115, -0.04550950974225998, -0.011395294219255447, -0.020533030852675438, 0.03712429106235504, 0.001928331097587943, -0.02511981502175331, -0.008855541236698627, -0.04228442534804344, -0.0890839695930481, -0.025746915489435196, -0.016179168596863747, 0.0059798420406877995, 0.037016790360212326, -0.0006304589915089309, 0.05045463517308235, 0.01395744364708662, 0.05045463517308235, -0.01576707325875759, -0.06052406504750252, -0.06758341193199158, 0.020138854160904884, -0.0008784992387518287, -0.012613658793270588, 0.02777155116200447, -0.06518251448869705, -0.009012316353619099, -0.0032385210506618023, 0.014450164511799812, 0.02834489941596985, -0.011726761236786842, -0.01034714188426733, 0.03644344210624695, -0.044147808104753494, -0.022933926433324814, -0.009639415889978409, -0.02938409149646759, 0.05242552235722542, -0.0404927134513855, -0.005527434404939413, 0.061455752700567245, -0.011547589674592018, -0.017908170819282532, 0.007359460927546024, -0.002994400216266513, -0.027664048597216606, -0.0169406458735466, 0.06729673594236374, -0.012506156228482723, -0.005218363832682371, 0.07983873039484024, -0.005558789242058992, -0.012022393755614758, 0.04543783888220787, -0.0405285470187664, 0.0714535117149353, -0.012577825225889683, -0.05568644031882286, -0.03859349712729454, -0.02606942318379879, -0.06156325712800026, -0.03694511950016022, 0.021840980276465416, -0.053715553134679794, 0.014226200990378857, 0.00954087171703577, 0.022055987268686295, -0.0692317858338356, 0.09825754165649414, 0.03837849199771881, 0.0795520544052124, -0.022360578179359436, 0.05160133168101311, -0.07639864087104797, -0.001716685015708208, 0.04318028315901756, 0.011153412982821465, -0.021410970017313957, -0.045258667320013046, -0.0655408576130867, -0.024940643459558487, -0.004985441453754902, 0.009818586520850658, 0.0309428833425045, 0.003572227666154504, -0.0011937287636101246, 0.0011220602318644524, -0.008940647356212139, -0.026266511529684067, -0.021823063492774963, 0.0041791703552007675, -0.014548709616065025, 0.021375134587287903, -0.06088240444660187, -0.08120042830705643, -0.01708398386836052, -0.005249719135463238, 0.01789025403559208, 0.015193725936114788, 0.0023628214839845896, -0.06575586646795273, 0.029473677277565002, 0.06245911493897438, 0.01974467746913433, 0.0449361614882946, 0.07546694576740265, -0.0068488228134810925, 0.012443446554243565, 0.10184096544981003, -0.034203801304101944, 0.052318017929792404, -0.0011926089646294713, 0.016833143308758736, 0.05737064778804779, -0.009854421019554138, 0.021446803584694862, 0.01781858503818512, 0.0677267462015152, 0.03622843697667122, -0.010069427080452442, 0.023310186341404915, -0.0004101342929061502, -0.05686897039413452, 0.023399770259857178, -0.0031086220405995846, -0.006042551714926958, 0.005536392796784639, 0.03334377706050873, 0.058947354555130005, 0.011305708438158035, 0.025531910359859467, 0.027807384729385376, -0.019242996349930763, -0.0025039189495146275, 0.03440088778734207, -0.013339302502572536, 0.021088462322950363, 0.07983873039484024, 0.012004476971924305, -0.03504590690135956, -0.002302351174876094, -0.03011869452893734, 0.07432025671005249, 0.022503914311528206, -0.030208280310034752, 0.012407612055540085, 0.061097413301467896, 0.06127658113837242, -0.045187000185251236, -0.0010391934774816036, -0.014763714745640755, 0.029778270050883293, 0.0038365053478628397, -0.01899215765297413, -0.01041881088167429, -0.029778270050883293, 0.03466964513063431, 0.012703244574368, -0.00009000558202387765, 0.042176924645900726, 0.03445464000105858, 0.037733472883701324, -0.09166403114795685, 0.007484880741685629, 0.004185889381915331, 0.06389248371124268, 0.03278834745287895, -0.04153190553188324, 0.020138854160904884, -0.005245239473879337, 0.008085104636847973, 0.006427770014852285, -0.01583874225616455, 0.03146247938275337, 0.03040536865592003, -0.005814108531922102, 0.003180290572345257, -0.004020155873149633, 0.004152294714003801, 0.028541987761855125, -0.019422167912125587, -0.015113098546862602, 0.009191486984491348, 0.043861132115125656, 0.022073904052376747, 0.016976479440927505, 0.01546248234808445, -0.05360805243253708, -0.015301228500902653, 0.05106382071971893, 0.0596282072365284, 0.02350727468729019, 0.09990591555833817, -0.01023068092763424, 0.03341544792056084, 0.018615897744894028, -0.022288909181952477, -0.00865845289081335, 0.012013435363769531, 0.03554758429527283, -0.04185441508889198, -0.05367971956729889, 0.042463596910238266, 0.007399774622172117, 0.0010151173919439316, 0.018132135272026062, 0.026714440435171127, -0.07034265249967575, -0.00359910330735147, -0.061527423560619354, -0.042893607169389725, -0.013016794808208942, -0.004613660741597414, 0.021464720368385315, 0.018454642966389656, 0.04013437032699585, -0.01834714040160179, 0.012326984666287899, 0.030763711780309677, 0.016985438764095306, 0.00825531780719757, -0.011914891190826893, 0.008918250910937786, 0.003543112426996231, 0.013572225347161293, 0.014199324883520603, 0.020891372114419937, -0.005558789242058992, -0.014763714745640755, -0.022055987268686295, 0.03520715981721878, 0.016089582815766335, 0.0010425529908388853, 0.03355878219008446, 0.03135497495532036, 0.045473676174879074, -0.03454422578215599, -0.0596282072365284, -0.024403130635619164, -0.024797307327389717, 0.0279865562915802, 0.021554306149482727, 0.01965509168803692, 0.0061634923331439495, 0.006055989768356085, -0.008972002193331718, 0.01547144167125225, -0.016671888530254364, 0.021697644144296646, -0.017478160560131073, -0.007637176662683487, 0.01701231487095356, 0.04887792840600014, 0.04461365193128586, 0.026338180527091026, -0.0152833117172122, 0.06761924922466278, 0.06503918021917343, -0.005818587727844715, 0.05471891164779663, 0.008519595488905907, -0.01722732000052929, 0.016591262072324753, -0.0033728997223079205, -0.03182082250714302, 0.015328104607760906, -0.06973347067832947, 0.06052406504750252, -0.01995968259871006, -0.042176924645900726, 0.010427769273519516, -0.03257334232330322, -0.036550942808389664, 0.03350503370165825, -0.028165727853775024, -0.03345128148794174, -0.044219475239515305, 0.02666068822145462, -0.0012329224264249206, 0.008743559010326862, 0.04970211908221245, -0.04464948549866676, -0.0009843222796916962, 0.034723397344350815, -0.010266515426337719, 0.05959237366914749, -0.011574465781450272, -0.004882417619228363, -0.03422171622514725, 0.025424405932426453, 0.01053527183830738, -0.04464948549866676, -0.058230672031641006, -0.021303467452526093, -0.0456528477370739, 0.03264500945806503, -0.0471220500767231, 0.0228443406522274, -0.020963041111826897, 0.03554758429527283, -0.009612539783120155, -0.04185441508889198, 0.008864499628543854, -0.0018141093896701932, 0.037518467754125595, 0.02046136185526848, -0.013930568471550941, -0.0014893613988533616, -0.02768196538090706, -0.05145799741148949, -0.07131017744541168, -0.033110857009887695, -0.027413208037614822, -0.012936167418956757, -0.056008946150541306, 0.04737288877367973, -0.012497197836637497, -0.029921606183052063, -0.0008197086863219738, 0.05149383097887039, 0.015946244820952415, 0.005666292272508144, 0.028452401980757713, 0.009191486984491348, 0.024026870727539062, -0.022342661395668983, -0.06098990887403488, -0.01549831684678793, -0.05471891164779663, -0.013823064975440502, -0.040385209023952484, -0.06604254245758057, 0.047838736325502396, 0.024349378421902657, -0.04045687988400459, 0.03196416050195694, -0.015776032581925392, -0.03203582763671875, -0.004958565812557936, -0.01974467746913433, -0.04181858152151108, 0.04611869156360626, 0.049522947520017624, -0.012989918701350689, 0.028918247669935226, 0.011144454590976238, 0.012649493291974068, -0.007547590881586075, -0.06346247345209122, -0.007955205626785755, 0.04579618200659752, 0.04748039320111275, 0.02135721780359745, -0.006441208068281412, -0.046799540519714355, -0.056295622140169144, -0.05206717923283577, -0.009818586520850658, -0.028971998021006584, 0.03963268920779228, 0.01820380426943302, -0.010320266708731651, -0.030011191964149475, 0.013258676044642925, 0.005151174962520599, 0.01746024191379547, 0.024098539724946022, -0.03085329756140709, 0.04794623702764511, 0.030548706650733948, -0.006391935981810093, 0.09381408989429474, 0.03665844723582268, -0.042678602039813995, -0.005030233878642321, -0.07618363201618195, -0.06088240444660187, -0.009603581391274929, -0.03934601694345474, -0.03302127122879028, 0.05676146596670151, 0.025585660710930824, 0.022647252306342125, 0.037375133484601974, 0.05565060302615166, 0.05561476945877075, -0.017343781888484955, 0.0007765956106595695, -0.09180737286806107, -0.027054864913225174, -0.004931689705699682, -0.05436057224869728, 0.042535264045000076, -0.027646129950881004, -0.04995295777916908, 0.03440088778734207, 0.03277042880654335, -0.02827323041856289, -0.024510633200407028, -0.0246718879789114, 0.0013023513602092862, 0.03411421552300453, -0.0010918250773102045, -0.027789467945694923, -0.005984321236610413, -0.01126987487077713, 0.014315786771476269, 0.07231353223323822, 0.044434480369091034, -0.06382081657648087, 0.041209399700164795, -0.042391929775476456, -0.0031735715456306934, -0.00401343684643507, -0.038342658430337906, -0.0030907047912478447, 0.02924075536429882, -0.032734595239162445, -0.017845461145043373, -0.0003843784215860069, -0.015614778734743595, 0.01395744364708662, 0.0383068211376667, 0.00015103579789865762, 0.010911531746387482, 0.008743559010326862, 0.0014479280216619372, -0.032071661204099655, 0.029563263058662415, 0.020120935514569283, 0.07331689447164536, -0.0019339302089065313, 0.0026360577903687954, 0.019063826650381088, 0.019708842039108276, -0.013133255764842033, -0.07940872013568878, -0.023973118513822556, -0.0036416565999388695, 0.021536389365792274, 0.05840984359383583, 0.0027144451159983873, -0.02916908636689186, 0.04006270319223404, -0.02864949032664299, 0.025890251621603966, 0.0618499293923378, -0.023919368162751198, -0.020640533417463303, 0.015525192953646183, 0.0020559905096888542, 0.030889131128787994, 0.04307277873158455, -0.03909517824649811, 0.008277714252471924, 0.0067637162283062935, -0.07675698399543762, -0.0018645012751221657, -0.014414330944418907, -0.001742440857924521, -0.03673011437058449, -0.014521833509206772, -0.012828664854168892, 0.05385889112949371, 0.010750277899205685, 0.009110860526561737, -0.03149831295013428, 0.047157883644104004, -0.0033012311905622482, -0.12061811238527298, -0.02651735208928585, 0.042893607169389725, 0.017505034804344177, -0.08944231271743774, -0.024851059541106224, 0.039668526500463486, 0.004022395703941584, -0.005290032364428043, -0.011242998763918877, 0.010329225100576878, -0.014333703555166721, 0.002929450711235404, -0.06962596625089645, -0.07120267301797867, -0.001230682828463614, -0.03201790899038315, 0.0618499293923378, -0.005845463369041681, -0.01746024191379547, 0.02159014157950878, 0.059843212366104126, 0.003950727172195911, 0.0246718879789114, 0.019350500777363777, 0.008241879753768444, 0.0016170209273695946, -0.007099662441760302, -0.09847254306077957, -0.0027905928436666727, 0.019332582131028175, -0.014826424419879913, 0.05400222912430763, 0.020497195422649384, -0.06066739931702614, -0.013733480125665665, 0.03837849199771881, -0.016143333166837692, 0.0014546469319611788, -0.07797534763813019, -0.03662261366844177, 0.0011377377668395638, -0.030835380777716637, -0.048268746584653854, -0.002528554992750287, 0.02864949032664299, 0.02393728494644165, -0.03852182999253273, 0.028380732983350754, -0.04464948549866676, 0.053285542875528336, -0.02225307561457157, -0.0173169057816267, -0.06288912147283554, 0.04608285799622536, -0.01767524890601635, -0.03544008359313011, 0.023991037160158157, 0.001680850749835372, -0.018060466274619102, -0.026911528781056404, 0.06955429911613464, -0.0545039065182209, 0.01670772396028042, -0.028237396851181984, 0.002739081159234047, -0.00008573626109864563, 0.03809181600809097, -0.06324746459722519, 0.01226427499204874, -0.0028465839568525553, -0.03225083276629448, 0.031569983810186386, 0.011242998763918877, -0.0027771550230681896, -0.06091824173927307, 0.019995516166090965, -0.09460244327783585, 0.055722273886203766, 0.014763714745640755, -0.009531913325190544, -0.0026226197369396687, 0.04579618200659752, 0.020819704979658127, 0.005307949613779783, -0.03234041854739189, -0.029348257929086685, -0.025800665840506554, -0.012103021144866943, -0.0014109739568084478, 0.04991712421178818, -0.007547590881586075, 0.06217243894934654, 0.040241871029138565, 0.030584540218114853, -0.024044787511229515, -0.062279943376779556, 0.03432922065258026, -0.023991037160158157, -0.04027770832180977, 0.012506156228482723, 0.026159008964896202, 0.03712429106235504, -0.034203801304101944, 0.006118699908256531, -0.00189697602763772, 0.02915116958320141, 0.027950722724199295, 0.0023762593045830727, -0.03456214442849159, -0.03970436006784439, -0.02261141687631607, 0.020282190293073654, -0.014262035489082336, -0.028309063985943794, -0.00548712071031332, 0.049021266400814056, -0.03676594793796539, -0.03223291411995888, 0.03794848173856735, -0.0061634923331439495, 0.008188128471374512, 0.020120935514569283, 0.0758969634771347, 0.03662261366844177, -0.0545039065182209, 0.0038051502779126167, -0.009684208780527115, -0.0012015674728900194, -0.027646129950881004, -0.007296750787645578, -0.03622843697667122, -0.09051733464002609, 0.003652854822576046, -0.050992149859666824, 0.049379609525203705, -0.021840980276465416 ]
30,336
networkx.utils.backends
_dispatchable
null
class _dispatchable: """Allow any of the following decorator forms: - @_dispatchable - @_dispatchable() - @_dispatchable(name="override_name") - @_dispatchable(graphs="graph") - @_dispatchable(edge_attrs="weight") - @_dispatchable(graphs={"G": 0, "H": 1}, edge_attrs={"weight": "default"}) These class attributes are currently used to allow backends to run networkx tests. For example: `PYTHONPATH=. pytest --backend graphblas --fallback-to-nx` Future work: add configuration to control these. """ _is_testing = False _fallback_to_nx = ( os.environ.get("NETWORKX_FALLBACK_TO_NX", "true").strip().lower() == "true" ) def __new__( cls, func=None, *, name=None, graphs="G", edge_attrs=None, node_attrs=None, preserve_edge_attrs=False, preserve_node_attrs=False, preserve_graph_attrs=False, preserve_all_attrs=False, mutates_input=False, returns_graph=False, ): """A decorator that makes certain input graph types dispatch to ``func``'s backend implementation. Usage can be any of the following decorator forms: - @_dispatchable - @_dispatchable() - @_dispatchable(name="override_name") - @_dispatchable(graphs="graph_var_name") - @_dispatchable(edge_attrs="weight") - @_dispatchable(graphs={"G": 0, "H": 1}, edge_attrs={"weight": "default"}) with 0 and 1 giving the position in the signature function for graph objects. When edge_attrs is a dict, keys are keyword names and values are defaults. The class attributes are used to allow backends to run networkx tests. For example: `PYTHONPATH=. pytest --backend graphblas --fallback-to-nx` Future work: add configuration to control these. Parameters ---------- func : callable, optional The function to be decorated. If ``func`` is not provided, returns a partial object that can be used to decorate a function later. If ``func`` is provided, returns a new callable object that dispatches to a backend algorithm based on input graph types. name : str, optional The name of the algorithm to use for dispatching. If not provided, the name of ``func`` will be used. ``name`` is useful to avoid name conflicts, as all dispatched algorithms live in a single namespace. For example, ``tournament.is_strongly_connected`` had a name conflict with the standard ``nx.is_strongly_connected``, so we used ``@_dispatchable(name="tournament_is_strongly_connected")``. graphs : str or dict or None, default "G" If a string, the parameter name of the graph, which must be the first argument of the wrapped function. If more than one graph is required for the algorithm (or if the graph is not the first argument), provide a dict of parameter name to argument position for each graph argument. For example, ``@_dispatchable(graphs={"G": 0, "auxiliary?": 4})`` indicates the 0th parameter ``G`` of the function is a required graph, and the 4th parameter ``auxiliary`` is an optional graph. To indicate an argument is a list of graphs, do e.g. ``"[graphs]"``. Use ``graphs=None`` if *no* arguments are NetworkX graphs such as for graph generators, readers, and conversion functions. edge_attrs : str or dict, optional ``edge_attrs`` holds information about edge attribute arguments and default values for those edge attributes. If a string, ``edge_attrs`` holds the function argument name that indicates a single edge attribute to include in the converted graph. The default value for this attribute is 1. To indicate that an argument is a list of attributes (all with default value 1), use e.g. ``"[attrs]"``. If a dict, ``edge_attrs`` holds a dict keyed by argument names, with values that are either the default value or, if a string, the argument name that indicates the default value. node_attrs : str or dict, optional Like ``edge_attrs``, but for node attributes. preserve_edge_attrs : bool or str or dict, optional For bool, whether to preserve all edge attributes. For str, the parameter name that may indicate (with ``True`` or a callable argument) whether all edge attributes should be preserved when converting. For dict of ``{graph_name: {attr: default}}``, indicate pre-determined edge attributes (and defaults) to preserve for input graphs. preserve_node_attrs : bool or str or dict, optional Like ``preserve_edge_attrs``, but for node attributes. preserve_graph_attrs : bool or set For bool, whether to preserve all graph attributes. For set, which input graph arguments to preserve graph attributes. preserve_all_attrs : bool Whether to preserve all edge, node and graph attributes. This overrides all the other preserve_*_attrs. mutates_input : bool or dict, default False For bool, whether the functions mutates an input graph argument. For dict of ``{arg_name: arg_pos}``, arguments that indicates whether an input graph will be mutated, and ``arg_name`` may begin with ``"not "`` to negate the logic (for example, this is used by ``copy=`` arguments). By default, dispatching doesn't convert input graphs to a different backend for functions that mutate input graphs. returns_graph : bool, default False Whether the function can return or yield a graph object. By default, dispatching doesn't convert input graphs to a different backend for functions that return graphs. """ if func is None: return partial( _dispatchable, name=name, graphs=graphs, edge_attrs=edge_attrs, node_attrs=node_attrs, preserve_edge_attrs=preserve_edge_attrs, preserve_node_attrs=preserve_node_attrs, preserve_graph_attrs=preserve_graph_attrs, preserve_all_attrs=preserve_all_attrs, mutates_input=mutates_input, returns_graph=returns_graph, ) if isinstance(func, str): raise TypeError("'name' and 'graphs' must be passed by keyword") from None # If name not provided, use the name of the function if name is None: name = func.__name__ self = object.__new__(cls) # standard function-wrapping stuff # __annotations__ not used self.__name__ = func.__name__ # self.__doc__ = func.__doc__ # __doc__ handled as cached property self.__defaults__ = func.__defaults__ # We "magically" add `backend=` keyword argument to allow backend to be specified if func.__kwdefaults__: self.__kwdefaults__ = {**func.__kwdefaults__, "backend": None} else: self.__kwdefaults__ = {"backend": None} self.__module__ = func.__module__ self.__qualname__ = func.__qualname__ self.__dict__.update(func.__dict__) self.__wrapped__ = func # Supplement docstring with backend info; compute and cache when needed self._orig_doc = func.__doc__ self._cached_doc = None self.orig_func = func self.name = name self.edge_attrs = edge_attrs self.node_attrs = node_attrs self.preserve_edge_attrs = preserve_edge_attrs or preserve_all_attrs self.preserve_node_attrs = preserve_node_attrs or preserve_all_attrs self.preserve_graph_attrs = preserve_graph_attrs or preserve_all_attrs self.mutates_input = mutates_input
null
[ 0.01239339541643858, -0.0423441007733345, -0.0161630529910326, 0.010245206765830517, -0.01884828880429268, 0.023361550644040108, -0.08493606746196747, -0.0017015099292621017, 0.02916579134762287, -0.05932305380702019, 0.026170719414949417, 0.01681370660662651, 0.02656317688524723, 0.03278053179383278, -0.010431108064949512, 0.018765665590763092, 0.018703699111938477, 0.018207963556051254, 0.051887016743421555, 0.004848916083574295, -0.014252404682338238, -0.039431653916835785, 0.032181516289711, 0.009692667983472347, 0.03007463924586773, 0.041084107011556625, 0.03034316375851631, 0.006336123216897249, 0.005618339404463768, 0.005184570327401161, -0.04796244204044342, -0.03676707297563553, -0.01533682644367218, 0.04104279354214668, 0.06089288368821144, -0.0008404271211475134, -0.024146465584635735, 0.08365541696548462, -0.09980814158916473, -0.06109943985939026, -0.025427116081118584, -0.05134996771812439, -0.003867772174999118, -0.03335889056324959, 0.0324706956744194, 0.03912181779742241, 0.0009391870116814971, 0.06956826150417328, -0.027410060167312622, -0.07568233460187912, 0.004823096562176943, -0.07572364807128906, 0.04127000644803047, 0.09625536948442459, -0.005566699896007776, 0.04288114979863167, 0.027058912441134453, 0.041063450276851654, 0.0374487079679966, 0.008716688491404057, 0.009883732534945011, 0.02833956480026245, -0.007441201247274876, -0.021192705258727074, -0.05250668525695801, -0.004200844559818506, -0.07464955002069473, -0.030467096716165543, -0.052341438829898834, 0.012135199271142483, -0.024766135960817337, 0.004342852160334587, 0.051763080060482025, -0.031912993639707565, 0.021337294951081276, -0.02924841269850731, -0.005127767566591501, -0.017763866111636162, 0.005546044558286667, -0.02526187151670456, 0.01922009140253067, -0.0009817893151193857, -0.06853547692298889, -0.05932305380702019, 0.02208090014755726, -0.07146857678890228, -0.015099287033081055, 0.032491352409124374, -0.01702026277780533, -0.05110210180282593, -0.047673262655735016, -0.02513793669641018, 0.005556372459977865, 0.04228213429450989, -0.01957123726606369, -0.013353883288800716, -0.02020123414695263, -0.06989874690771103, 0.07014662027359009, -0.0170409195125103, -0.019230417907238007, 0.03887395188212395, -0.05626601353287697, 0.023093026131391525, 0.002388310618698597, -0.07646725326776505, -0.04292245954275131, -0.02538580447435379, -0.021894998848438263, -0.03490806370973587, -0.04849948734045029, -0.028256941586732864, 0.027678582817316055, 0.008938736282289028, 0.058455515652894974, -0.016978951171040535, -0.058248959481716156, -0.046599168330430984, 0.03406118229031563, -0.02004631794989109, -0.02127532847225666, 0.04112541675567627, -0.0013187347212806344, 0.007962756790220737, 0.028298253193497658, 0.005169078707695007, 0.0300952959805727, 0.040257878601551056, 0.005220717750489712, -0.035073310136795044, 0.010420779697597027, 0.010999138467013836, -0.018404191359877586, 0.08898457884788513, 0.05758797749876976, 0.01839386485517025, -0.04655785486102104, 0.0582902692258358, -0.021295985206961632, 0.047673262655735016, 0.018652061000466347, -0.01156716886907816, 0.014717156998813152, 0.010947499424219131, -0.0030622014310210943, -0.025220559909939766, 0.0080815264955163, -0.06630466878414154, -0.03827493637800217, -0.03912181779742241, 0.0256336722522974, 0.02255597896873951, -0.0053704711608588696, -0.0016498707700520754, -0.018703699111938477, 0.03936968743801117, -0.06630466878414154, 0.00810734648257494, -0.01211454439908266, -0.006067599635571241, -0.06089288368821144, -0.028608087450265884, 0.013343555852770805, -0.06585024297237396, 0.03875001519918442, -0.011546513065695763, 0.03292512148618698, -0.07055973261594772, -0.03216085955500603, 0.04207557812333107, -0.03102480061352253, -0.05907518416643143, -0.0169686246663332, 0.032388072460889816, -0.010338157415390015, 0.07572364807128906, 0.01621469296514988, 0.010265862569212914, -0.013198966160416603, 0.007590954657644033, 0.043789997696876526, -0.032264139503240585, -0.061760421842336655, -0.0014704247005283833, 0.01532649900764227, 0.032388072460889816, 0.0055821919813752174, 0.002140442607924342, 0.021440574899315834, 0.01681370660662651, -0.001451060059480369, -0.002832407131791115, 0.06250402331352234, 0.025716295465826988, 0.013116343878209591, -0.0911327674984932, -0.015440105460584164, 0.03769657760858536, 0.04808637499809265, 0.0639912337064743, 0.017557309940457344, -0.0055047329515218735, 0.09584225714206696, 0.029764804989099503, -0.018559109419584274, 0.015780923888087273, 0.018765665590763092, 0.0008791564614512026, -0.036126747727394104, -0.03114873357117176, -0.03057037480175495, -0.03573428839445114, 0.008912917226552963, 0.061884354799985886, -0.031334634870290756, -0.009708159603178501, 0.06775055825710297, 0.06138861924409866, -0.002541936933994293, -0.012682574801146984, 0.042591970413923264, 0.035569045692682266, -0.017701899632811546, -0.047301460057497025, 0.044740159064531326, -0.07419512420892715, 0.025096625089645386, -0.023795319721102715, 0.03858477249741554, -0.05209357291460037, 0.03375134617090225, -0.040464434772729874, 0.045442450791597366, 0.030735621228814125, 0.0052826846949756145, -0.030053984373807907, 0.0430050827562809, 0.012682574801146984, 0.008427509106695652, -0.00649104081094265, 0.0072501362301409245, -0.01816665194928646, 0.000652589718811214, -0.030363818630576134, 0.023526795208454132, -0.022597290575504303, 0.023093026131391525, 0.033565446734428406, 0.0021314057521522045, -0.009883732534945011, -0.037180185317993164, 0.00048282602801918983, -0.021936310455203056, -0.019013533368706703, -0.04145590588450432, -0.0019429229432716966, -0.07791314274072647, -0.039906732738018036, 0.035672321915626526, -0.001840935554355383, -0.004978013690561056, -0.0011896368814632297, -0.04630998894572258, 0.059157807379961014, 0.04759063944220543, -0.052465375512838364, 0.006620138883590698, 0.009382832795381546, -0.04209623485803604, 0.0072036609053611755, 0.02125467360019684, 0.003978796303272247, 0.026067441329360008, 0.020015332847833633, -0.011071433313190937, -0.041559185832738876, -0.02668711170554161, -0.0069403015077114105, 0.008840622380375862, -0.015894530341029167, 0.007048743776977062, -0.02575760707259178, -0.043789997696876526, -0.007647757884114981, -0.015842890366911888, 0.002214028500020504, -0.020758938044309616, -0.011205694638192654, 0.03141725808382034, -0.030756276100873947, 0.04129066318273544, -0.008711524307727814, 0.027926450595259666, 0.015057975426316261, 0.02348548360168934, -0.0034365851897746325, -0.044822778552770615, -0.026046786457300186, 0.04383130744099617, -0.018930912017822266, 0.043542128056287766, -0.012073232792317867, 0.04172443225979805, 0.012765197083353996, 0.044120486825704575, -0.02080024778842926, 0.030591031536459923, -0.011907987296581268, -0.020428447052836418, 0.03596150130033493, -0.007652921602129936, 0.018837960436940193, -0.03199561685323715, -0.015450432896614075, 0.027327436953783035, 0.013260932639241219, 0.0014239494921639562, -0.037200842052698135, 0.06622204184532166, 0.060107968747615814, -0.02633596584200859, 0.06783318519592285, -0.038729362189769745, 0.04990407079458237, -0.04622736573219299, 0.020655659958720207, 0.06134730577468872, 0.005473749712109566, 0.00829324685037136, -0.00441772909834981, -0.037428054958581924, 0.0005057409289292991, 0.005272356793284416, 0.004154369235038757, -0.06134730577468872, 0.03090086579322815, 0.030818242579698563, 0.015109614469110966, 0.018837960436940193, -0.015553710982203484, 0.048953913152217865, 0.025365149602293968, -0.0027601125184446573, 0.00955840665847063, -0.05415913835167885, -0.015656989067792892, 0.032966431230306625, 0.028360219672322273, 0.04808637499809265, 0.001314861816354096, 0.0063929264433681965, -0.013116343878209591, -0.012517329305410385, 0.038006413727998734, 0.04639260843396187, -0.02420843206346035, -0.02902120165526867, -0.026397932320833206, -0.0013761832378804684, -0.03428839519619942, 0.03220217302441597, -0.020190905779600143, 0.011711758561432362, 0.037428054958581924, 0.07217087596654892, 0.0026013220194727182, 0.04040246829390526, 0.01415945403277874, 0.036477893590927124, -0.08691900968551636, 0.009134965017437935, -0.06713089346885681, 0.006692433729767799, -0.03939034044742584, -0.020862216129899025, 0.019436975941061974, -0.0019829431548714638, 0.005866207182407379, -0.03798575699329376, 0.03967951983213425, 0.04478146880865097, 0.025881540030241013, 0.01802206225693226, 0.025241214781999588, 0.041786398738622665, 0.0009204677771776915, 0.03242938593029976, 0.02408449910581112, 0.03527986630797386, -0.030260540544986725, -0.008768327534198761, -0.0015207729302346706, 0.010529221966862679, 0.03420577198266983, -0.06791580468416214, -0.039307720959186554, 0.05618339404463768, 0.021234016865491867, -0.03065299801528454, -0.07134464383125305, -0.01851779781281948, -0.025798918679356575, 0.06618072837591171, 0.04845817759633064, 0.029764804989099503, 0.02833956480026245, 0.06564368307590485, 0.09088490158319473, 0.03827493637800217, 0.0866711437702179, 0.016152724623680115, -0.013591423630714417, -0.0911327674984932, 0.006945465225726366, -0.00440481910482049, 0.03548642247915268, 0.021647131070494652, 0.01204224955290556, 0.04932571202516556, -0.0012767779408022761, 0.038151003420352936, 0.043789997696876526, 0.03397855907678604, 0.03352413326501846, 0.04062968119978905, -0.004701744299381971, -0.03019857406616211, 0.009527422487735748, -0.06299976259469986, 0.052010949701070786, -0.011536185629665852, -0.029413659125566483, -0.022142866626381874, -0.03162381425499916, 0.001799624296836555, -0.039080508053302765, -0.011846020817756653, -0.0045907204039394855, 0.01128831785172224, 0.03199561685323715, -0.03211954981088638, -0.008933572098612785, -0.004753383342176676, -0.045896872878074646, -0.057340107858181, -0.03230544924736023, -0.025571705773472786, 0.04062968119978905, -0.017598621547222137, -0.004972849972546101, 0.05110210180282593, 0.03162381425499916, 0.036023467779159546, 0.018765665590763092, -0.08972818404436111, 0.010988811030983925, 0.06704826653003693, -0.018176980316638947, -0.014737812802195549, 0.029806116595864296, 0.005140677094459534, -0.009093654341995716, -0.0375932976603508, -0.004515843465924263, -0.049408335238695145, 0.06200828775763512, 0.06039714813232422, 0.007131366059184074, -0.020314840599894524, 0.019953366369009018, 0.06407385319471359, -0.022349422797560692, -0.037779200822114944, -0.028133006766438484, 0.021037789061665535, 0.028525464236736298, -0.04701228067278862, -0.017505671828985214, -0.04932571202516556, -0.03734543174505234, 0.014097487553954124, -0.03829559311270714, 0.033441513776779175, 0.013622406870126724, 0.04031984508037567, 0.0010953954188153148, 0.0592404305934906, -0.022762537002563477, -0.00048573073581792414, 0.02771989442408085, -0.0786980614066124, 0.007229480892419815, 0.04622736573219299, -0.0340818390250206, 0.008711524307727814, 0.042839836329221725, -0.004027853719890118, -0.0160907581448555, -0.019189108163118362, -0.0656023696064949, -0.006382598541676998, -0.019953366369009018, -0.06147124245762825, 0.033916592597961426, 0.058951251208782196, -0.027885138988494873, -0.04391393065452576, 0.024890068918466568, -0.004477113950997591, -0.030756276100873947, -0.017805177718400955, 0.01049823872745037, 0.017226818948984146, 0.04515327140688896, -0.006485877092927694, -0.03399921581149101, -0.006387762725353241, 0.005458258092403412, -0.034371018409729004, -0.07175775617361069, 0.05890993773937225, 0.03858477249741554, 0.012610279954969883, -0.019209763035178185, 0.009919879958033562, 0.03784116730093956, 0.024022530764341354, 0.011990610510110855, 0.06262795627117157, 0.011319301091134548, -0.004681088495999575, 0.05044111981987953, -0.01028651837259531, 0.10269993543624878, 0.01380830816924572, 0.05345684662461281, 0.008128002285957336, 0.019757138565182686, -0.028587432578206062, -0.022060243412852287, 0.02889726683497429, 0.060107968747615814, -0.0512673445045948, 0.017836160957813263, -0.0010953954188153148, -0.040464434772729874, 0.04899522289633751, 0.004249901976436377, 0.015026992186903954, -0.07911117374897003, -0.0764259397983551, 0.015150926075875759, 0.006268992554396391, -0.016276659443974495, 0.03263594210147858, -0.055894214659929276, 0.019158123061060905, 0.03701494261622429, -0.011722086928784847, 0.01944730244576931, -0.05403520539402962, 0.03505265340209007, 0.004317032638937235, -0.05279586464166641, 0.018084028735756874, 0.03317298740148544, 0.047673262655735016, 0.022741880267858505, -0.042116887867450714, -0.033090364187955856, -0.016906656324863434, -0.019953366369009018, 0.04038181155920029, -0.01726813055574894, -0.03069430962204933, 0.02064533159136772, -0.01651419885456562, -0.01538846641778946, -0.0008036342333070934, -0.07820232212543488, -0.02150254137814045, 0.00020768620015587658, -0.024353021755814552, -0.012692902237176895, -0.003591502783820033, -0.019313041120767593, 0.0037360922433435917, 0.06820498406887054, -0.011773725971579552, -0.024063842371106148, -0.0608515702188015, -0.01946795918047428, 0.001626633107662201, -0.00843267235904932, -0.015822235494852066, 0.021915653720498085, -0.06746137887239456, 0.03810968995094299, 0.004701744299381971, -0.03432970494031906, -0.06498270481824875, 0.023175649344921112, 0.0455663837492466, -0.005773256532847881, 0.010709959082305431, -0.0012722595129162073, -0.03311102092266083, 0.011102416552603245, 0.005272356793284416, -0.05713355168700218, -0.006501368712633848, 0.03185102716088295, 0.003271339926868677, -0.015274859964847565, 0.02222548983991146, -0.04845817759633064, -0.0748974159359932, 0.0751865953207016, 0.038605425506830215, -0.029764804989099503, 0.02117205038666725, -0.01621469296514988, -0.027306782081723213, -0.008360378444194794, -0.047053590416908264, 0.023423517122864723, 0.006671777926385403, -0.06444565951824188, -0.014655190519988537, -0.015274859964847565, 0.0026400515343993902, -0.07456693053245544, 0.028401531279087067, -0.022721225395798683, 0.026604488492012024, -0.10096485912799835, 0.031912993639707565, 0.04548376053571701, -0.02480744570493698, -0.027410060167312622, -0.022865815088152885, 0.009687503799796104, -0.008138329721987247, -0.02761661633849144, -0.020614348351955414, -0.02152319625020027, 0.01439699437469244, -0.04573163017630577, 0.0843990221619606, -0.002961505204439163, -0.0016163053223863244, 0.06973350793123245, -0.0018861198332160711, -0.01892058365046978, 0.06936170160770416, 0.031210700049996376, -0.0036508876364678144, -0.03445363789796829, 0.03457757458090782, -0.03722149878740311, -0.019085828214883804, 0.00948611181229353, 0.06985744088888168, 0.04721883684396744, -0.031912993639707565, 0.011030121706426144, -0.020862216129899025, -0.020480085164308548, 0.02433236688375473, -0.028525464236736298, -0.026521865278482437, -0.009331193752586842, -0.005453093908727169, -0.027761206030845642, -0.04932571202516556, -0.01846615970134735, 0.0430050827562809, 0.002460605464875698, -0.03463954105973244, -0.03395790234208107, 0.006738908588886261, 0.041063450276851654, -0.04866473376750946, -0.006015960592776537, -0.00500641530379653, -0.03373068943619728, -0.012476017698645592, -0.014686173759400845, -0.02074860967695713, -0.045401137322187424, 0.00775103596970439, -0.01904451847076416, 0.056926995515823364, -0.03104545548558235, -0.029806116595864296, -0.053291600197553635, -0.07464955002069473, -0.019013533368706703, 0.031086767092347145, -0.02433236688375473, 0.020758938044309616, -0.0005112275830470026, -0.014262732118368149, 0.0011050777975469828, 0.0659741759300232, 0.015233548358082771, -0.05263061821460724, -0.030838899314403534, 0.00831906683743, -0.03511461988091469, 0.0041776071302592754, -0.02478679083287716, 0.05122603476047516, 0.008040214888751507, 0.055067986249923706, -0.004967685788869858, -0.006387762725353241, 0.018889600411057472, -0.027947107329964638, 0.023072371259331703, -0.007725216448307037, 0.03439167141914368, 0.06279320269823074, 0.0012102925684303045, 0.003813551040366292, -0.019943038001656532, 0.022018931806087494, -0.027058912441134453, 0.0751865953207016, -0.019457630813121796, 0.03749002143740654, 0.08212690055370331, -0.02902120165526867, 0.021564507856965065, -0.0023056878708302975, -0.05684437230229378, 0.04440966621041298, -0.02072795294225216, -0.03501134365797043, 0.04065033793449402, -0.027554649859666824, 0.002500625792890787, -0.047549325972795486, 0.01969517022371292, 0.012765197083353996, -0.00605727219954133, 0.023919252678751945, 0.04535982757806778, 0.03581691160798073, -0.006320631597191095, 0.03311102092266083, 0.003325561061501503, -0.025096625089645386, -0.010482747107744217, 0.05919911712408066, -0.04701228067278862, 0.009945699945092201, 0.008959392085671425, -0.005285266786813736, -0.09344620257616043, -0.04990407079458237, 0.0003798704710789025, 0.003031217958778143, -0.034474294632673264, 0.019457630813121796, -0.004903137218207121, 0.03441232815384865, 0.06593286246061325 ]
30,337
networkx.utils.backends
__call__
Returns the result of the original function, or the backend function if the backend is specified and that backend implements `func`.
def __call__(self, /, *args, backend=None, **kwargs): """Returns the result of the original function, or the backend function if the backend is specified and that backend implements `func`.""" if not backends: # Fast path if no backends are installed return self.orig_func(*args, **kwargs) # Use `backend_name` in this function instead of `backend` backend_name = backend if backend_name is not None and backend_name not in backends: raise ImportError(f"Unable to load backend: {backend_name}") graphs_resolved = {} for gname, pos in self.graphs.items(): if pos < len(args): if gname in kwargs: raise TypeError(f"{self.name}() got multiple values for {gname!r}") val = args[pos] elif gname in kwargs: val = kwargs[gname] elif gname not in self.optional_graphs: raise TypeError( f"{self.name}() missing required graph argument: {gname}" ) else: continue if val is None: if gname not in self.optional_graphs: raise TypeError( f"{self.name}() required graph argument {gname!r} is None; must be a graph" ) else: graphs_resolved[gname] = val # Alternative to the above that does not check duplicated args or missing required graphs. # graphs_resolved = { # val # for gname, pos in self.graphs.items() # if (val := args[pos] if pos < len(args) else kwargs.get(gname)) is not None # } # Check if any graph comes from a backend if self.list_graphs: # Make sure we don't lose values by consuming an iterator args = list(args) for gname in self.list_graphs & graphs_resolved.keys(): val = list(graphs_resolved[gname]) graphs_resolved[gname] = val if gname in kwargs: kwargs[gname] = val else: args[self.graphs[gname]] = val has_backends = any( hasattr(g, "__networkx_backend__") if gname not in self.list_graphs else any(hasattr(g2, "__networkx_backend__") for g2 in g) for gname, g in graphs_resolved.items() ) if has_backends: graph_backend_names = { getattr(g, "__networkx_backend__", "networkx") for gname, g in graphs_resolved.items() if gname not in self.list_graphs } for gname in self.list_graphs & graphs_resolved.keys(): graph_backend_names.update( getattr(g, "__networkx_backend__", "networkx") for g in graphs_resolved[gname] ) else: has_backends = any( hasattr(g, "__networkx_backend__") for g in graphs_resolved.values() ) if has_backends: graph_backend_names = { getattr(g, "__networkx_backend__", "networkx") for g in graphs_resolved.values() } backend_priority = config.backend_priority if self._is_testing and backend_priority and backend_name is None: # Special path if we are running networkx tests with a backend. # This even runs for (and handles) functions that mutate input graphs. return self._convert_and_call_for_tests( backend_priority[0], args, kwargs, fallback_to_nx=self._fallback_to_nx, ) if has_backends: # Dispatchable graphs found! Dispatch to backend function. # We don't handle calls with different backend graphs yet, # but we may be able to convert additional networkx graphs. backend_names = graph_backend_names - {"networkx"} if len(backend_names) != 1: # Future work: convert between backends and run if multiple backends found raise TypeError( f"{self.name}() graphs must all be from the same backend, found {backend_names}" ) [graph_backend_name] = backend_names if backend_name is not None and backend_name != graph_backend_name: # Future work: convert between backends to `backend_name` backend raise TypeError( f"{self.name}() is unable to convert graph from backend {graph_backend_name!r} " f"to the specified backend {backend_name!r}." ) if graph_backend_name not in backends: raise ImportError(f"Unable to load backend: {graph_backend_name}") if ( "networkx" in graph_backend_names and graph_backend_name not in backend_priority ): # Not configured to convert networkx graphs to this backend raise TypeError( f"Unable to convert inputs and run {self.name}. " f"{self.name}() has networkx and {graph_backend_name} graphs, but NetworkX is not " f"configured to automatically convert graphs from networkx to {graph_backend_name}." ) backend = _load_backend(graph_backend_name) if hasattr(backend, self.name): if "networkx" in graph_backend_names: # We need to convert networkx graphs to backend graphs. # There is currently no need to check `self.mutates_input` here. return self._convert_and_call( graph_backend_name, args, kwargs, fallback_to_nx=self._fallback_to_nx, ) # All graphs are backend graphs--no need to convert! return getattr(backend, self.name)(*args, **kwargs) # Future work: try to convert and run with other backends in backend_priority raise nx.NetworkXNotImplemented( f"'{self.name}' not implemented by {graph_backend_name}" ) # If backend was explicitly given by the user, so we need to use it no matter what if backend_name is not None: return self._convert_and_call( backend_name, args, kwargs, fallback_to_nx=False ) # Only networkx graphs; try to convert and run with a backend with automatic # conversion, but don't do this by default for graph generators or loaders, # or if the functions mutates an input graph or returns a graph. # Only convert and run if `backend.should_run(...)` returns True. if ( not self._returns_graph and ( not self.mutates_input or isinstance(self.mutates_input, dict) # If `mutates_input` begins with "not ", then assume the argument is boolean, # otherwise treat it as a node or edge attribute if it's not None. and any( not ( args[arg_pos] if len(args) > arg_pos else kwargs.get(arg_name[4:], True) ) if arg_name.startswith("not ") else ( args[arg_pos] if len(args) > arg_pos else kwargs.get(arg_name) ) is not None for arg_name, arg_pos in self.mutates_input.items() ) ) ): # Should we warn or log if we don't convert b/c the input will be mutated? for backend_name in backend_priority: if self._should_backend_run(backend_name, *args, **kwargs): return self._convert_and_call( backend_name, args, kwargs, fallback_to_nx=self._fallback_to_nx, ) # Default: run with networkx on networkx inputs return self.orig_func(*args, **kwargs)
(self, /, *args, backend=None, **kwargs)
[ 0.00287654553540051, -0.05423644557595253, -0.012913905084133148, 0.05447106808423996, -0.04543817788362503, 0.03036380745470524, -0.08399415016174316, 0.011770130135118961, 0.07367084920406342, -0.07996650040149689, 0.030813496559858322, 0.02125271037220955, -0.002813002560287714, 0.02309057116508484, -0.018867401406168938, 0.020646607503294945, -0.017870264127850533, 0.036385733634233475, 0.05384541302919388, 0.013832835480570793, -0.06291740387678146, -0.041175905615091324, 0.052437689155340195, 0.03587739169597626, 0.04743245244026184, 0.029972773045301437, 0.04027652367949486, -0.02187836542725563, -0.019014040008187294, 0.03394177183508873, -0.021917467936873436, -0.006935969460755587, 0.0012879689456894994, 0.01573912799358368, 0.060962237417697906, 0.020666159689426422, -0.03181063383817673, 0.04270093888044357, -0.08446339517831802, -0.05877244472503662, -0.0033506746403872967, -0.09760214388370514, 0.06616298854351044, 0.014829972758889198, 0.006354306358844042, 0.01843726448714733, -0.03642483800649643, 0.06127506494522095, -0.036209769546985626, -0.05153831094503403, 0.017723625525832176, -0.035505909472703934, 0.02187836542725563, 0.0819607749581337, -0.009428813122212887, 0.05501851439476013, 0.019473504275083542, 0.04942672699689865, 0.048292726278305054, -0.0035950709134340286, 0.02123315818607807, 0.0010411286493763328, -0.05102996528148651, -0.006021927110850811, -0.007879340089857578, -0.039748627692461014, -0.05607430636882782, -0.05177293345332146, -0.0566999614238739, 0.01209273375570774, -0.04895748570561409, 0.006075694225728512, 0.033746253699064255, -0.053297966718673706, 0.04227079823613167, -0.00903289020061493, -0.006305426824837923, 0.01713707484304905, -0.04618114233016968, -0.005704212002456188, 0.034137286245822906, 0.025260811671614647, -0.05216396600008011, -0.04637666046619415, 0.011789682321250439, -0.029053842648863792, 0.010284200310707092, 0.04203617945313454, -0.02964039519429207, -0.04895748570561409, -0.05247679352760315, -0.04438238590955734, 0.046689487993717194, 0.07417919486761093, 0.0034826486371457577, -0.02285595051944256, -0.03931849077343941, -0.09001608192920685, 0.024322329089045525, -0.023051466792821884, -0.0003320735995657742, 0.029210256412625313, -0.061705201864242554, -0.024380983784794807, 0.03177152946591377, -0.048449140042066574, -0.00008202553726732731, -0.017352143302559853, -0.005963271949440241, -0.03351163491606712, -0.09048531949520111, -0.010792545042932034, 0.027587464079260826, -0.03532994166016579, 0.02483067288994789, 0.0017828716663643718, -0.07093361020088196, -0.03147825598716736, 0.024224570021033287, 0.01747922971844673, -0.08141332864761353, 0.08931221812963486, 0.021526433527469635, 0.017019765451550484, 0.022660434246063232, 0.010645906440913677, 0.06815726310014725, 0.025514982640743256, 0.04751065745949745, -0.04927031323313713, 0.05056072399020195, -0.0033555624540895224, -0.021135399118065834, 0.06616298854351044, 0.04070666432380676, 0.03284687548875809, -0.06475526839494705, 0.023188330233097076, -0.04184066131711006, 0.04195797070860863, 0.022543122991919518, 0.002600377658382058, 0.027900291606783867, 0.04285735264420509, 0.005342504940927029, 0.003147825598716736, 0.014898404479026794, -0.02627749927341938, -0.02226939983665943, -0.03587739169597626, 0.02772432751953602, 0.03986594080924988, -0.0038516870699822903, -0.007131486665457487, -0.04481252282857895, 0.025984223932027817, -0.07562602311372757, 0.022699536755681038, -0.0059388321824371815, 0.00754696037620306, -0.08532366901636124, -0.025671396404504776, 0.02508484572172165, -0.043013766407966614, 0.011789682321250439, -0.013559111393988132, 0.011672371998429298, -0.020157814025878906, -0.031009014695882797, 0.06342574954032898, 0.012082957662642002, -0.04274003952741623, -0.025143500417470932, 0.0067453403025865555, -0.006212556269019842, 0.05153831094503403, 0.026453465223312378, 0.025730052962899208, -0.02594512142241001, 0.02858460135757923, 0.022953709587454796, -0.027215981855988503, -0.07402277737855911, -0.0201187115162611, 0.0032944632694125175, 0.03460652753710747, 0.013637318275868893, -0.013265836052596569, 0.04590741917490959, 0.014067456126213074, -0.002439076080918312, 0.02211298607289791, 0.07304519414901733, 0.01931709051132202, 0.018036453053355217, -0.08673138916492462, -0.0026712524704635143, 0.04031562805175781, 0.010245096869766712, 0.05916347727179527, 0.014908179640769958, -0.04207528382539749, 0.10362406820058823, 0.01641366258263588, -0.05486210063099861, -0.004543329123407602, -0.015553385950624943, 0.01189721655100584, -0.002393862698227167, 0.0013661758275702596, -0.021663296967744827, -0.05916347727179527, -0.009389709681272507, 0.05185113847255707, -0.041723351925611496, 0.02226939983665943, 0.06948678195476532, 0.0479016937315464, 0.013803508132696152, -0.033824462443590164, 0.04199707508087158, -0.016550524160265923, -0.008099296130239964, -0.030813496559858322, 0.028897428885102272, -0.056739065796136856, 0.04758886620402336, 0.02668808586895466, 0.05533134192228317, -0.02547588013112545, 0.04571190103888512, -0.05204665660858154, 0.050834450870752335, 0.010909855365753174, 0.01518190372735262, -0.06315203011035919, 0.04367852210998535, 0.008993786759674549, 0.03763704374432564, 0.022738641127943993, -0.033902667462825775, -0.0193366426974535, -0.02027512528002262, -0.03546680510044098, -0.0047583975829184055, -0.002226451179012656, 0.03548635542392731, -0.007209693547338247, -0.012415336444973946, 0.014106559567153454, -0.013823060318827629, 0.010772992856800556, -0.025690948590636253, -0.022015227004885674, -0.04680679738521576, -0.018750092014670372, -0.03491935506463051, -0.052906930446624756, 0.07226312160491943, 0.0006830879137851298, -0.006618254352360964, 0.03665946051478386, -0.07648629695177078, 0.025925569236278534, -0.0025197267532348633, -0.04391314461827278, 0.00003948529047193006, 0.006442288868129253, 0.017880039289593697, 0.04657217487692833, 0.0012561974581331015, 0.03953355923295021, -0.0012745271669700742, 0.04234900698065758, -0.024009501561522484, -0.00004158557203481905, -0.030148738995194435, 0.0006213778397068381, 0.028936533257365227, -0.0011572169605642557, 0.014663783833384514, -0.014634455554187298, -0.07085540145635605, -0.047315143048763275, -0.022582227364182472, -0.022015227004885674, 0.017664970830082893, -0.04934851825237274, 0.003790588118135929, -0.01799735054373741, 0.054119136184453964, -0.015142800286412239, 0.008304589428007603, 0.0017278825398534536, -0.017645418643951416, -0.005489143077284098, -0.033668048679828644, -0.05157741531729698, 0.03802808001637459, -0.0036757218185812235, 0.017567211762070656, -0.018495919182896614, 0.024263674393296242, 0.01652119681239128, 0.0667104423046112, -0.020959435030817986, 0.015993298962712288, -0.022621329873800278, -0.034860700368881226, 0.04438238590955734, -0.02485022507607937, -0.013197405263781548, -0.008524546399712563, -0.0264339130371809, 0.028134912252426147, 0.0076984865590929985, 0.010489492677152157, 0.005010126158595085, 0.045320868492126465, 0.03755883872509003, -0.04821452125906944, 0.0835249125957489, -0.015856437385082245, 0.06874381750822067, -0.06678864359855652, 0.04657217487692833, 0.043404798954725266, 0.03151736035943031, 0.010069130919873714, -0.007351443637162447, 0.010782768949866295, 0.020627055317163467, 0.012483767233788967, 0.041488733142614365, -0.0077180382795631886, 0.010421061888337135, 0.03759793937206268, -0.018574126064777374, 0.031908392906188965, -0.009013338945806026, 0.047080520540475845, 0.03261225298047066, -0.004303820431232452, -0.00933105405420065, -0.027137774974107742, 0.00996648520231247, 0.012288250960409641, 0.022230295464396477, 0.02035333216190338, 0.0038810146506875753, -0.05564416944980621, 0.029132049530744553, -0.04047204181551933, 0.047549761831760406, 0.013647094368934631, -0.0043453676626086235, -0.019551711156964302, -0.025143500417470932, -0.004790169186890125, -0.03445011377334595, 0.05724741145968437, -0.025280361995100975, 0.005435375962406397, 0.022464916110038757, 0.0432874895632267, -0.05470568686723709, 0.04473431408405304, -0.007693598512560129, 0.027059568092226982, -0.048449140042066574, 0.0048879277892410755, -0.04625934734940529, 0.007087495177984238, -0.02492843195796013, -0.04105859249830246, 0.059789132326841354, 0.0048903715796768665, -0.0034337693359702826, -0.027450602501630783, 0.04211438447237015, 0.056582652032375336, 0.008871588855981827, -0.010714338161051273, 0.024556949734687805, 0.04797989875078201, -0.001020965981297195, 0.015396973118185997, 0.009453252889215946, 0.04418686777353287, -0.07406188547611237, -0.0014248309889808297, -0.006789331790059805, 0.03642483800649643, 0.02684449963271618, -0.03184973821043968, -0.026981361210346222, 0.057951271533966064, 0.036385733634233475, -0.029171153903007507, -0.054431963711977005, -0.053063344210386276, -0.030793946236371994, 0.06330844014883041, 0.0735926404595375, 0.023579364642500877, -0.006427625194191933, 0.07093361020088196, 0.07844146341085434, 0.008197055198252201, 0.059867341071367264, 0.018085332587361336, -0.03847776725888252, -0.0781286358833313, -0.01726416125893593, -0.04528176411986351, 0.08141332864761353, -0.015162352472543716, 0.004765729419887066, 0.05361079424619675, 0.04144962877035141, 0.027900291606783867, 0.029327567666769028, 0.04801900312304497, 0.009350606240332127, 0.06420782208442688, -0.010333079844713211, -0.021448226645588875, -0.007038616109639406, -0.06631940603256226, 0.058342307806015015, 0.009125761687755585, -0.05920258164405823, 0.004912367556244135, -0.030813496559858322, 0.010303751565515995, -0.025299914181232452, -0.0025539423804730177, 0.04387404024600983, 0.01341247372329235, 0.025378121063113213, -0.011603940278291702, -0.004812165163457394, 0.004902591463178396, -0.08031842857599258, -0.046924106776714325, -0.024400535970926285, -0.030168291181325912, 0.019434401765465736, -0.0774247795343399, 0.015807557851076126, -0.0038810146506875753, 0.01009845919907093, 0.038458216935396194, -0.003370226128026843, -0.0574820302426815, 0.023774880915880203, 0.02674674056470394, 0.0119754234328866, -0.028623705729842186, 0.06338664889335632, 0.003389777848497033, 0.009340830147266388, -0.008803158067166805, -0.011212906800210476, -0.014360732398927212, 0.028447739779949188, 0.06123596057295799, 0.04098038747906685, -0.049153003841638565, 0.013314715586602688, 0.03018784150481224, -0.0030500669963657856, -0.026707638055086136, -0.003983661066740751, -0.004286712501198053, 0.022249847650527954, -0.02684449963271618, -0.0030598428566008806, -0.015103696845471859, -0.0498177595436573, -0.01528943795710802, -0.01721528172492981, 0.05333706736564636, 0.06487257778644562, 0.023305639624595642, -0.038692835718393326, 0.07859788089990616, -0.033335667103528976, 0.009756304323673248, 0.015807557851076126, -0.051460105925798416, -0.011388871818780899, 0.047471556812524796, -0.025026191025972366, 0.004460234194993973, 0.002222785260528326, -0.01497661042958498, -0.03503666818141937, 0.013705749996006489, -0.06190071627497673, 0.027215981855988503, -0.0005141489091329277, -0.04211438447237015, 0.02668808586895466, 0.055135827511548996, 0.015475179068744183, -0.002192235551774502, 0.057638444006443024, -0.029112497344613075, -0.021526433527469635, -0.066984161734581, 0.011085820384323597, 0.022210743278265, 0.0013331823283806443, -0.0184861421585083, -0.015700023621320724, 0.00760561553761363, -0.00413029920309782, -0.06991691887378693, -0.03978773206472397, 0.05544865503907204, 0.008329029195010662, 0.0019979404751211405, -0.004777949303388596, 0.03744152560830116, 0.023911742493510246, 0.0014920399989932775, -0.011555061675608158, 0.04410865902900696, -0.02285595051944256, -0.0016948889242485166, 0.04782348498702049, 0.027685223147273064, 0.062096234411001205, 0.03476294130086899, -0.0348411500453949, 0.017303263768553734, 0.014302076771855354, -0.04801900312304497, -0.021135399118065834, 0.014937507919967175, 0.038947008550167084, -0.03161511570215225, 0.004411354660987854, 0.01881852187216282, -0.05568327382206917, 0.015123249031603336, 0.024576501920819283, 0.018163539469242096, -0.03507576882839203, -0.05959361791610718, 0.014986386522650719, 0.054901205003261566, 0.045008040964603424, 0.02371622622013092, -0.03634663298726082, -0.0028912092093378305, 0.07128553837537766, -0.01605195552110672, -0.001036851666867733, -0.0459856241941452, 0.004746177699416876, -0.012513095512986183, -0.0440695583820343, 0.013040991500020027, -0.004846380557864904, 0.0013197405496612191, 0.01801690272986889, -0.030246498063206673, -0.01809510961174965, 0.009814959019422531, -0.0405893512070179, 0.014419387094676495, -0.012786819599568844, -0.03513442352414131, 0.0005544743034988642, 0.0010020252084359527, -0.023657571524381638, 0.012649957090616226, -0.048761967569589615, -0.029053842648863792, 0.024341881275177002, -0.0029229808133095503, 0.01537742093205452, 0.02860415354371071, -0.0067648920230567455, -0.023696674033999443, 0.04281824827194214, 0.005567349959164858, -0.02027512528002262, -0.047080520540475845, 0.01181900966912508, 0.0020614834502339363, -0.022582227364182472, 0.019346417859196663, 0.025671396404504776, -0.054588377475738525, -0.004284268710762262, 0.028017602860927582, -0.03695273399353027, -0.08821731805801392, 0.03587739169597626, 0.058576926589012146, -0.03873194009065628, 0.022308502346277237, -0.015064593404531479, -0.04469521343708038, -0.021897917613387108, 0.012376233004033566, -0.02084212377667427, 0.0069115301594138145, 0.03689407929778099, 0.002522170776501298, -0.010557924397289753, 0.01657007448375225, -0.056973688304424286, -0.058733340352773666, 0.07183298468589783, 0.03912297263741493, -0.016765592619776726, 0.021741503849625587, 0.011994974687695503, -0.0358382873237133, -0.009340830147266388, -0.0479016937315464, 0.0334920808672905, 0.006188116502016783, -0.039240285754203796, 0.0054304879158735275, -0.004411354660987854, 0.002776342909783125, -0.059867341071367264, 0.03556456416845322, -0.019268210977315903, 0.017195729538798332, -0.13279522955417633, 0.01330493949353695, 0.03523218259215355, -0.048449140042066574, -0.02547588013112545, -0.021057192236185074, -0.00561134098097682, -0.00946302805095911, -0.04039383679628372, -0.014702887274324894, -0.058576926589012146, -0.0029865240212529898, -0.02021646872162819, 0.09799318015575409, 0.024009501561522484, 0.005371832754462957, 0.04219259321689606, -0.023051466792821884, 0.01812443695962429, 0.05517492815852165, 0.06905664503574371, 0.00555268581956625, -0.017313040792942047, 0.02244536392390728, -0.04234900698065758, 0.012865026481449604, 0.0020614834502339363, 0.03855597600340843, 0.03687452897429466, -0.02516305260360241, -0.003800363978371024, -0.010802320204675198, -0.018671885132789612, 0.03679632022976875, -0.030793946236371994, -0.025299914181232452, -0.03882969915866852, -0.02723553404211998, -0.012923681177198887, -0.046924106776714325, -0.0226017776876688, 0.02309057116508484, 0.010753441601991653, -0.05102996528148651, -0.0490356907248497, -0.01333426684141159, 0.02332519181072712, -0.055292241275310516, 0.030950358137488365, -0.02852594666182995, -0.04211438447237015, 0.014409611001610756, -0.009893165901303291, 0.006437400821596384, -0.047002315521240234, -0.013480904512107372, 0.02363801933825016, 0.02969904989004135, -0.020255573093891144, -0.014673558995127678, -0.045086245983839035, -0.07015153765678406, -0.028780119493603706, 0.002134802518412471, -0.02234760671854019, 0.04344390332698822, -0.027372395619750023, -0.027607016265392303, 0.0014529365580528975, 0.0754305049777031, 0.026648983359336853, -0.07762029767036438, -0.014214093796908855, -0.005078556947410107, -0.01889672875404358, -0.02084212377667427, -0.03716780245304108, 0.04993506893515587, 0.004726626444607973, 0.012131837196648121, -0.02293415740132332, -0.013705749996006489, 0.02043153904378414, -0.018965160474181175, -0.003328678896650672, -0.008250822313129902, 0.010626355186104774, 0.03759793937206268, 0.007243908941745758, 0.02092033065855503, -0.0020333779975771904, 0.030930807814002037, -0.061314165592193604, 0.061626993119716644, 0.00776691734790802, 0.006535159423947334, 0.04848824441432953, -0.025221707299351692, 0.00574820302426815, 0.011134699918329716, -0.04575100541114807, 0.012200267985463142, 0.0023767550010234118, -0.019385522231459618, 0.025827810168266296, 0.005801970139145851, -0.020978985354304314, -0.06710147112607956, -0.0049979062750935555, 0.02107674442231655, -0.014419387094676495, 0.032397184520959854, -0.004237833432853222, 0.017039315775036812, -0.013979473151266575, 0.060101959854364395, 0.006647581700235605, -0.0532197579741478, 0.018212419003248215, 0.05716920271515846, -0.01884784922003746, 0.006075694225728512, 0.03712869808077812, -0.020783469080924988, -0.07836326211690903, -0.025690948590636253, 0.03922073170542717, 0.044851627200841904, -0.02301236428320408, 0.023911742493510246, -0.04074576497077942, 0.01361776702105999, 0.028623705729842186 ]
30,338
networkx.utils.backends
__new__
A decorator that makes certain input graph types dispatch to ``func``'s backend implementation. Usage can be any of the following decorator forms: - @_dispatchable - @_dispatchable() - @_dispatchable(name="override_name") - @_dispatchable(graphs="graph_var_name") - @_dispatchable(edge_attrs="weight") - @_dispatchable(graphs={"G": 0, "H": 1}, edge_attrs={"weight": "default"}) with 0 and 1 giving the position in the signature function for graph objects. When edge_attrs is a dict, keys are keyword names and values are defaults. The class attributes are used to allow backends to run networkx tests. For example: `PYTHONPATH=. pytest --backend graphblas --fallback-to-nx` Future work: add configuration to control these. Parameters ---------- func : callable, optional The function to be decorated. If ``func`` is not provided, returns a partial object that can be used to decorate a function later. If ``func`` is provided, returns a new callable object that dispatches to a backend algorithm based on input graph types. name : str, optional The name of the algorithm to use for dispatching. If not provided, the name of ``func`` will be used. ``name`` is useful to avoid name conflicts, as all dispatched algorithms live in a single namespace. For example, ``tournament.is_strongly_connected`` had a name conflict with the standard ``nx.is_strongly_connected``, so we used ``@_dispatchable(name="tournament_is_strongly_connected")``. graphs : str or dict or None, default "G" If a string, the parameter name of the graph, which must be the first argument of the wrapped function. If more than one graph is required for the algorithm (or if the graph is not the first argument), provide a dict of parameter name to argument position for each graph argument. For example, ``@_dispatchable(graphs={"G": 0, "auxiliary?": 4})`` indicates the 0th parameter ``G`` of the function is a required graph, and the 4th parameter ``auxiliary`` is an optional graph. To indicate an argument is a list of graphs, do e.g. ``"[graphs]"``. Use ``graphs=None`` if *no* arguments are NetworkX graphs such as for graph generators, readers, and conversion functions. edge_attrs : str or dict, optional ``edge_attrs`` holds information about edge attribute arguments and default values for those edge attributes. If a string, ``edge_attrs`` holds the function argument name that indicates a single edge attribute to include in the converted graph. The default value for this attribute is 1. To indicate that an argument is a list of attributes (all with default value 1), use e.g. ``"[attrs]"``. If a dict, ``edge_attrs`` holds a dict keyed by argument names, with values that are either the default value or, if a string, the argument name that indicates the default value. node_attrs : str or dict, optional Like ``edge_attrs``, but for node attributes. preserve_edge_attrs : bool or str or dict, optional For bool, whether to preserve all edge attributes. For str, the parameter name that may indicate (with ``True`` or a callable argument) whether all edge attributes should be preserved when converting. For dict of ``{graph_name: {attr: default}}``, indicate pre-determined edge attributes (and defaults) to preserve for input graphs. preserve_node_attrs : bool or str or dict, optional Like ``preserve_edge_attrs``, but for node attributes. preserve_graph_attrs : bool or set For bool, whether to preserve all graph attributes. For set, which input graph arguments to preserve graph attributes. preserve_all_attrs : bool Whether to preserve all edge, node and graph attributes. This overrides all the other preserve_*_attrs. mutates_input : bool or dict, default False For bool, whether the functions mutates an input graph argument. For dict of ``{arg_name: arg_pos}``, arguments that indicates whether an input graph will be mutated, and ``arg_name`` may begin with ``"not "`` to negate the logic (for example, this is used by ``copy=`` arguments). By default, dispatching doesn't convert input graphs to a different backend for functions that mutate input graphs. returns_graph : bool, default False Whether the function can return or yield a graph object. By default, dispatching doesn't convert input graphs to a different backend for functions that return graphs.
def __new__( cls, func=None, *, name=None, graphs="G", edge_attrs=None, node_attrs=None, preserve_edge_attrs=False, preserve_node_attrs=False, preserve_graph_attrs=False, preserve_all_attrs=False, mutates_input=False, returns_graph=False, ): """A decorator that makes certain input graph types dispatch to ``func``'s backend implementation. Usage can be any of the following decorator forms: - @_dispatchable - @_dispatchable() - @_dispatchable(name="override_name") - @_dispatchable(graphs="graph_var_name") - @_dispatchable(edge_attrs="weight") - @_dispatchable(graphs={"G": 0, "H": 1}, edge_attrs={"weight": "default"}) with 0 and 1 giving the position in the signature function for graph objects. When edge_attrs is a dict, keys are keyword names and values are defaults. The class attributes are used to allow backends to run networkx tests. For example: `PYTHONPATH=. pytest --backend graphblas --fallback-to-nx` Future work: add configuration to control these. Parameters ---------- func : callable, optional The function to be decorated. If ``func`` is not provided, returns a partial object that can be used to decorate a function later. If ``func`` is provided, returns a new callable object that dispatches to a backend algorithm based on input graph types. name : str, optional The name of the algorithm to use for dispatching. If not provided, the name of ``func`` will be used. ``name`` is useful to avoid name conflicts, as all dispatched algorithms live in a single namespace. For example, ``tournament.is_strongly_connected`` had a name conflict with the standard ``nx.is_strongly_connected``, so we used ``@_dispatchable(name="tournament_is_strongly_connected")``. graphs : str or dict or None, default "G" If a string, the parameter name of the graph, which must be the first argument of the wrapped function. If more than one graph is required for the algorithm (or if the graph is not the first argument), provide a dict of parameter name to argument position for each graph argument. For example, ``@_dispatchable(graphs={"G": 0, "auxiliary?": 4})`` indicates the 0th parameter ``G`` of the function is a required graph, and the 4th parameter ``auxiliary`` is an optional graph. To indicate an argument is a list of graphs, do e.g. ``"[graphs]"``. Use ``graphs=None`` if *no* arguments are NetworkX graphs such as for graph generators, readers, and conversion functions. edge_attrs : str or dict, optional ``edge_attrs`` holds information about edge attribute arguments and default values for those edge attributes. If a string, ``edge_attrs`` holds the function argument name that indicates a single edge attribute to include in the converted graph. The default value for this attribute is 1. To indicate that an argument is a list of attributes (all with default value 1), use e.g. ``"[attrs]"``. If a dict, ``edge_attrs`` holds a dict keyed by argument names, with values that are either the default value or, if a string, the argument name that indicates the default value. node_attrs : str or dict, optional Like ``edge_attrs``, but for node attributes. preserve_edge_attrs : bool or str or dict, optional For bool, whether to preserve all edge attributes. For str, the parameter name that may indicate (with ``True`` or a callable argument) whether all edge attributes should be preserved when converting. For dict of ``{graph_name: {attr: default}}``, indicate pre-determined edge attributes (and defaults) to preserve for input graphs. preserve_node_attrs : bool or str or dict, optional Like ``preserve_edge_attrs``, but for node attributes. preserve_graph_attrs : bool or set For bool, whether to preserve all graph attributes. For set, which input graph arguments to preserve graph attributes. preserve_all_attrs : bool Whether to preserve all edge, node and graph attributes. This overrides all the other preserve_*_attrs. mutates_input : bool or dict, default False For bool, whether the functions mutates an input graph argument. For dict of ``{arg_name: arg_pos}``, arguments that indicates whether an input graph will be mutated, and ``arg_name`` may begin with ``"not "`` to negate the logic (for example, this is used by ``copy=`` arguments). By default, dispatching doesn't convert input graphs to a different backend for functions that mutate input graphs. returns_graph : bool, default False Whether the function can return or yield a graph object. By default, dispatching doesn't convert input graphs to a different backend for functions that return graphs. """ if func is None: return partial( _dispatchable, name=name, graphs=graphs, edge_attrs=edge_attrs, node_attrs=node_attrs, preserve_edge_attrs=preserve_edge_attrs, preserve_node_attrs=preserve_node_attrs, preserve_graph_attrs=preserve_graph_attrs, preserve_all_attrs=preserve_all_attrs, mutates_input=mutates_input, returns_graph=returns_graph, ) if isinstance(func, str): raise TypeError("'name' and 'graphs' must be passed by keyword") from None # If name not provided, use the name of the function if name is None: name = func.__name__ self = object.__new__(cls) # standard function-wrapping stuff # __annotations__ not used self.__name__ = func.__name__ # self.__doc__ = func.__doc__ # __doc__ handled as cached property self.__defaults__ = func.__defaults__ # We "magically" add `backend=` keyword argument to allow backend to be specified if func.__kwdefaults__: self.__kwdefaults__ = {**func.__kwdefaults__, "backend": None} else: self.__kwdefaults__ = {"backend": None} self.__module__ = func.__module__ self.__qualname__ = func.__qualname__ self.__dict__.update(func.__dict__) self.__wrapped__ = func # Supplement docstring with backend info; compute and cache when needed self._orig_doc = func.__doc__ self._cached_doc = None self.orig_func = func self.name = name self.edge_attrs = edge_attrs self.node_attrs = node_attrs self.preserve_edge_attrs = preserve_edge_attrs or preserve_all_attrs self.preserve_node_attrs = preserve_node_attrs or preserve_all_attrs self.preserve_graph_attrs = preserve_graph_attrs or preserve_all_attrs self.mutates_input = mutates_input # Keep `returns_graph` private for now, b/c we may extend info on return types self._returns_graph = returns_graph if edge_attrs is not None and not isinstance(edge_attrs, str | dict): raise TypeError( f"Bad type for edge_attrs: {type(edge_attrs)}. Expected str or dict." ) from None if node_attrs is not None and not isinstance(node_attrs, str | dict): raise TypeError( f"Bad type for node_attrs: {type(node_attrs)}. Expected str or dict." ) from None if not isinstance(self.preserve_edge_attrs, bool | str | dict): raise TypeError( f"Bad type for preserve_edge_attrs: {type(self.preserve_edge_attrs)}." " Expected bool, str, or dict." ) from None if not isinstance(self.preserve_node_attrs, bool | str | dict): raise TypeError( f"Bad type for preserve_node_attrs: {type(self.preserve_node_attrs)}." " Expected bool, str, or dict." ) from None if not isinstance(self.preserve_graph_attrs, bool | set): raise TypeError( f"Bad type for preserve_graph_attrs: {type(self.preserve_graph_attrs)}." " Expected bool or set." ) from None if not isinstance
(cls, func=None, *, name=None, graphs='G', edge_attrs=None, node_attrs=None, preserve_edge_attrs=False, preserve_node_attrs=False, preserve_graph_attrs=False, preserve_all_attrs=False, mutates_input=False, returns_graph=False)
[ 0.004121344070881605, -0.05091582238674164, -0.005379438400268555, 0.0020606720354408026, -0.03805416822433472, 0.01676098257303238, -0.08835753053426743, -0.005307984538376331, 0.024090085178613663, -0.061858437955379486, 0.023334717378020287, 0.011065106838941574, 0.009875914081931114, 0.034318163990974426, -0.01088136900216341, 0.03785001486539841, -0.00097164191538468, 0.008829628117382526, 0.031194617971777916, 0.0016485375817865133, -0.015270663425326347, -0.03376694768667221, 0.0360942967236042, 0.02006826549768448, 0.03248078376054764, 0.026682831346988678, 0.03707423061132431, 0.006420619785785675, -0.007635331712663174, 0.016546621918678284, -0.03276659920811653, -0.030133020132780075, -0.005558072589337826, 0.042749691754579544, 0.04617946594953537, 0.0009863154264166951, -0.03568599000573158, 0.07725159078836441, -0.08304954320192337, -0.05908195301890373, -0.03540017455816269, -0.05524387210607529, -0.017924655228853226, -0.025600818917155266, 0.04822099953889847, 0.03476729989051819, 0.017883826047182083, 0.05365147814154625, -0.023293886333703995, -0.08631599694490433, -0.0029985010623931885, -0.06573735177516937, 0.050425853580236435, 0.08468277007341385, -0.0016013270942494273, 0.038625795394182205, 0.02155858464539051, 0.03680883347988129, 0.04246387630701065, 0.008625474758446217, 0.011116145178675652, 0.02837730385363102, -0.01732240431010723, -0.02259976603090763, -0.03168458491563797, 0.005415165331214666, -0.06340999901294708, -0.04658777266740799, -0.05173243582248688, 0.02468212880194187, -0.04127978906035423, -0.00042999780271202326, 0.05928610637784004, -0.023885931819677353, 0.030500497668981552, -0.03476729989051819, 0.017240742221474648, -0.015862708911299706, -0.00864078663289547, -0.029071424156427383, 0.015525855123996735, 0.005167629569768906, -0.06957542896270752, -0.050670839846134186, 0.022661011666059494, -0.05618297681212425, -0.031562093645334244, 0.0213544312864542, -0.029295992106199265, -0.054182276129722595, -0.04323966056108475, -0.027601521462202072, -0.004481163807213306, 0.05528470128774643, -0.012259403243660927, -0.027234043926000595, -0.01696513593196869, -0.06132763996720314, 0.08566270768642426, -0.006456346716731787, -0.011963380500674248, 0.03723755478858948, -0.06688060611486435, 0.034665223211050034, 0.010595554485917091, -0.07031038403511047, -0.03478771448135376, -0.019762035459280014, -0.0009697279892861843, -0.027846504002809525, -0.04748604819178581, -0.004241283982992172, 0.04038151353597641, 0.01305560115724802, 0.042790524661540985, -0.014780695550143719, -0.06863632798194885, -0.03795209154486656, 0.017179496586322784, -0.025008773431181908, -0.022477272897958755, 0.03501228243112564, 0.0010022649075835943, -0.002687167376279831, 0.024375898763537407, 0.008395803160965443, 0.03689049556851387, 0.029867621138691902, 0.008421322330832481, -0.02364094741642475, -0.01066700741648674, 0.007492424454540014, -0.01852690801024437, 0.10052506625652313, 0.03993237763643265, 0.010029029101133347, -0.03746212273836136, 0.042790524661540985, -0.02651950903236866, 0.026601169258356094, 0.021803567185997963, 0.000544196052942425, 0.04785352200269699, 0.008620371110737324, -0.008906185626983643, -0.03995279222726822, 0.013749722391366959, -0.07692494988441467, -0.04871096834540367, -0.048547644168138504, 0.020507194101810455, 0.012432933785021305, 0.007517943624407053, 0.0006711538298986852, -0.031990814954042435, 0.048139337450265884, -0.06283837556838989, 0.004973683971911669, -0.01378034520894289, 0.0037436604034155607, -0.05422310531139374, -0.02631535567343235, 0.033664871007204056, -0.059163615107536316, 0.04703691229224205, -0.023885931819677353, 0.047567710280418396, -0.06626814603805542, -0.042790524661540985, 0.03372611850500107, -0.03064340353012085, -0.07055536657571793, -0.009237934835255146, 0.03519602119922638, -0.03146001696586609, 0.07855817675590515, 0.035502251237630844, 0.008824524469673634, -0.025192512199282646, 0.015372740104794502, 0.07080034911632538, -0.03476729989051819, -0.06520655006170273, 0.006088871043175459, 0.025804972276091576, 0.01873106136918068, -0.015352325513958931, 0.010029029101133347, 0.030194267630577087, 0.019149575382471085, -0.01200421154499054, -0.014729657210409641, 0.06553319841623306, 0.02172190696001053, 0.01458675041794777, -0.09578870981931686, -0.027376951649785042, 0.044219594448804855, 0.04105522111058235, 0.07165779173374176, 0.03825832158327103, -0.01418865192681551, 0.08705095201730728, 0.025580402463674545, -0.029785960912704468, 0.0058387829922139645, 0.0010571310995146632, -0.009906536899507046, -0.019282275810837746, -0.038666628301143646, -0.012514594942331314, -0.03934033215045929, 0.0016204664716497064, 0.05205908045172691, -0.02278350293636322, -0.01743468828499317, 0.06475741416215897, 0.04826182872056961, -0.007793550845235586, -0.006879964843392372, 0.04515869915485382, 0.03088838793337345, -0.0395444855093956, -0.048180170357227325, 0.03929950296878815, -0.06949377059936523, -0.003664551069959998, -0.030582157894968987, 0.04246387630701065, -0.05793869495391846, 0.028458964079618454, -0.04056525230407715, 0.029255161061882973, 0.01241251826286316, 0.006078663282096386, -0.012759578414261341, 0.037400875240564346, 0.02468212880194187, 0.005609110929071903, 7.476315744270323e-8, 0.009835083037614822, -0.02178315259516239, 0.00907971616834402, -0.020456155762076378, 0.02694823034107685, -0.006221570540219545, 0.02778525836765766, 0.04185141623020172, 0.008569332771003246, -0.014750072732567787, -0.04189224913716316, -0.014688827097415924, -0.03003094345331192, -0.014658204279839993, -0.0211094468832016, 0.006272608879953623, -0.06639064103364944, -0.056264638900756836, 0.03874828666448593, 0.003011260647326708, 0.006803407333791256, 0.002054292242974043, -0.027376951649785042, 0.07288271188735962, 0.05597882345318794, -0.06357332319021225, 0.0041341036558151245, -0.003450190182775259, -0.024090085178613663, 0.004966028034687042, -0.008661202155053616, 0.027295291423797607, 0.03540017455816269, 0.01875147596001625, -0.006068455521017313, -0.05879613757133484, -0.020129511132836342, -0.017087627202272415, 0.018036941066384315, -0.017250949516892433, -0.009273662231862545, -0.025968294590711594, -0.018710646778345108, -0.009911640547215939, -0.027805672958493233, 0.003092921804636717, -0.018812723457813263, -0.02006826549768448, 0.02982679195702076, -0.041933078318834305, 0.047976016998291016, 0.004769530612975359, 0.01925165206193924, 0.022436443716287613, 0.044872887432575226, 0.00004800791430170648, -0.03568599000573158, -0.02756069041788578, 0.040524423122406006, -0.023273471742868423, 0.05630546808242798, -0.025417080149054527, 0.054549749940633774, 0.007625124417245388, 0.05038502439856529, -0.03464480862021446, 0.026009125635027885, -0.018179846927523613, -0.028418133035302162, 0.04593448340892792, -0.008610163815319538, 0.03337905928492546, -0.03268493711948395, 0.004399502649903297, 0.024988358840346336, 0.00427956273779273, 0.016638491302728653, -0.04973173514008522, 0.06132763996720314, 0.061205148696899414, -0.024518806487321854, 0.04642445221543312, -0.033848609775304794, 0.04891512170433998, -0.0500992089509964, -0.008247791789472103, 0.06373664736747742, -0.010340362787246704, 0.019241444766521454, -0.015811670571565628, -0.03290950506925583, -0.0011228428920730948, 0.03523685410618782, 0.004340808838605881, -0.07447510957717896, 0.033685289323329926, 0.038197074085474014, -0.007390347775071859, 0.017383649945259094, -0.006139909382909536, 0.06353249400854111, 0.030398420989513397, 0.014760280959308147, 0.0207215566188097, -0.07410763204097748, -0.012963731773197651, 0.03329739719629288, 0.003876359900459647, 0.0630425289273262, 0.0025901945773512125, -0.0013461355119943619, 0.0017595458775758743, -0.026049956679344177, 0.04458707198500633, 0.048996783792972565, -0.020548025146126747, -0.030541326850652695, -0.013331207446753979, -0.023089732974767685, -0.04891512170433998, 0.03329739719629288, -0.026560338214039803, 0.0034884687047451735, 0.041096050292253494, 0.0488334596157074, 0.011881719343364239, 0.02464129775762558, 0.01863919198513031, 0.027417782694101334, -0.073740154504776, 0.02856104075908661, -0.06087850034236908, 0.012096080929040909, -0.03393027186393738, -0.026968644931912422, 0.026968644931912422, -0.011830681003630161, 0.012065457180142403, -0.04413793608546257, 0.03915659338235855, 0.040687743574380875, 0.03480812907218933, 0.014658204279839993, 0.006859549321234226, 0.05638713017106056, 0.020844047889113426, 0.03956490010023117, 0.025008773431181908, 0.0316641703248024, -0.03139876946806908, -0.021252354606986046, 0.022640597075223923, 0.02151775360107422, 0.01666911318898201, -0.05630546808242798, -0.026233693584799767, 0.05132412910461426, 0.03025551326572895, -0.015903538092970848, -0.06345083564519882, -0.021436091512441635, -0.00891129020601511, 0.0668397769331932, 0.035502251237630844, 0.015903538092970848, 0.017169289290905, 0.06104182451963425, 0.07639414817094803, 0.03836039826273918, 0.06937127560377121, 0.03805416822433472, -0.0010845641372725368, -0.09619701653718948, 0.02570289559662342, -0.007135156542062759, 0.04138186573982239, 0.022926410660147667, -0.007941561751067638, 0.04536285251379013, -0.0125248022377491, 0.029867621138691902, 0.06210342049598694, 0.022742673754692078, 0.036114711314439774, 0.032623689621686935, 0.007742512505501509, -0.029500145465135574, 0.019710997119545937, -0.05054834857583046, 0.052508216351270676, 0.0022163388784974813, -0.047976016998291016, 0.005910236854106188, -0.03154167905449867, -0.01856773905456066, -0.02613161690533161, -0.009712590835988522, -0.002051740186288953, 0.015505439601838589, 0.040912311524152756, -0.009983094409108162, -0.025825386866927147, -0.003307282691821456, -0.044832054525613785, -0.04577115923166275, -0.032848257571458817, -0.0277240127325058, 0.03958531841635704, -0.026866568252444267, 0.0008191649685613811, 0.07231108099222183, 0.03501228243112564, 0.04577115923166275, 0.025355834513902664, -0.08721426874399185, 0.004698076751083136, 0.07124948501586914, -0.030745480209589005, -0.01956808939576149, 0.034256916493177414, -0.007533255033195019, -0.005981690250337124, -0.011167183518409729, 0.009176689200103283, -0.025539573282003403, 0.05528470128774643, 0.0472818948328495, -0.0071045332588255405, -0.02484545111656189, 0.00574181042611599, 0.06765639036893845, -0.02758110500872135, -0.04695525020360947, -0.02255893498659134, 0.028418133035302162, 0.014525504782795906, -0.040054868906736374, -0.03331781178712845, -0.054998889565467834, -0.03599222004413605, 0.02153816819190979, -0.027479028329253197, 0.020690932869911194, 0.00982997938990593, 0.046506110578775406, -0.00580305652692914, 0.05879613757133484, -0.02607037127017975, 0.0019930461421608925, 0.051079146564006805, -0.08892916142940521, 0.005634630098938942, 0.041361451148986816, -0.029704298824071884, 0.0030980256851762533, 0.02629493921995163, 0.008130403235554695, -0.023988008499145508, -0.02715238370001316, -0.07124948501586914, -0.002070879563689232, -0.01698555052280426, -0.07541421055793762, 0.03960573300719261, 0.044872887432575226, -0.02751985937356949, -0.04013653099536896, 0.028887685388326645, -0.0038916715420782566, -0.018669815734028816, -0.034093596041202545, 0.0061092860996723175, 0.023988008499145508, 0.050058379769325256, -0.029785960912704468, -0.028050657361745834, 0.00646655447781086, 0.004200453404337168, -0.05205908045172691, -0.08166130632162094, 0.056468792259693146, 0.04491371661424637, 0.002592746401205659, -0.03003094345331192, 0.01305560115724802, 0.0422188937664032, 0.023028487339615822, -0.011003860272467136, 0.06675811856985092, 0.005752018187195063, -0.016271015629172325, 0.035604327917099, -0.004698076751083136, 0.09578870981931686, -0.005563176237046719, 0.03733963146805763, 0.0068340301513671875, 0.024396315217018127, -0.022028136998414993, -0.04969090223312378, 0.02880602516233921, 0.06075600907206535, -0.05753038823604584, 0.037380460649728775, 0.001931800157763064, -0.048588477075099945, 0.05234489589929581, -0.0014571439241990447, 0.0070330798625946045, -0.05944943055510521, -0.08260040730237961, -0.00026093338965438306, 0.025723310187458992, -0.0007732304511591792, 0.04283135384321213, -0.037196725606918335, 0.030725065618753433, 0.053324829787015915, 0.0046597979962825775, 0.015382948331534863, -0.048996783792972565, 0.02694823034107685, 0.003131200559437275, -0.04989505559206009, 0.028887685388326645, 0.04769020155072212, 0.04658777266740799, 0.03194998577237129, -0.041769757866859436, -0.030745480209589005, -0.009181792847812176, -0.01345369964838028, 0.028642702847719193, -0.02670324593782425, -0.02878560870885849, 0.01624039188027382, -0.017853202298283577, -0.008212064392864704, -0.025233343243598938, -0.07819069921970367, -0.030786311253905296, 0.004113688133656979, -0.03456314653158188, -0.01088136900216341, 0.00021930526418145746, -0.018577946349978447, -0.004100928548723459, 0.06941210478544235, -0.012810616753995419, -0.001859070616774261, -0.051079146564006805, -0.015413571149110794, -0.000761746836360544, -0.011994004249572754, -0.008564229123294353, 0.023661362007260323, -0.05716291069984436, 0.02903059311211109, -0.004499027505517006, -0.04769020155072212, -0.07112699747085571, 0.027050307020545006, 0.038809534162282944, -0.013596607372164726, 0.004121344070881605, -0.0056754606775939465, -0.02586621791124344, 0.012606463395059109, 0.020690932869911194, -0.05442725867033005, -0.005920444615185261, 0.030582157894968987, 0.0012580944458022714, -0.024396315217018127, 0.014372389763593674, -0.045852821320295334, -0.06700310111045837, 0.08068136870861053, 0.03048008121550083, -0.015076718293130398, 0.024294238537549973, -0.032623689621686935, -0.006007209420204163, -0.006160324439406395, -0.06692143529653549, 0.02815273404121399, -0.012187949381768703, -0.0592452771961689, -0.004011611454188824, -0.02384510077536106, -0.012871863320469856, -0.073740154504776, 0.011738812550902367, -0.018016524612903595, 0.03723755478858948, -0.0915423184633255, 0.039666976779699326, 0.04973173514008522, -0.014556127600371838, -0.01813901774585247, -0.02794858068227768, 0.0217423215508461, -0.002472806256264448, -0.024090085178613663, -0.005604006815701723, -0.01784299500286579, 0.012831032276153564, -0.02984720654785633, 0.0798647552728653, -0.011575490236282349, -0.000613735755905509, 0.06251172721385956, -0.007788446731865406, -0.0315212644636631, 0.07369932532310486, 0.04205556958913803, 0.002620817394927144, -0.04201474040746689, 0.01768987998366356, -0.021272769197821617, -0.0004232990322634578, 0.0024383554700762033, 0.06573735177516937, 0.044015441089868546, -0.03603304922580719, 0.02060927078127861, -0.035706404596567154, -0.006665603723376989, 0.018179846927523613, -0.033481135964393616, -0.04556700587272644, -0.011544866487383842, -0.01139175146818161, -0.020752178505063057, -0.039891548454761505, -0.023477625101804733, 0.0349714532494545, -0.007140260189771652, -0.039238255470991135, -0.021640244871377945, 0.0045781368389725685, 0.05385563150048256, -0.03919742628931999, -0.005894925445318222, -0.003215413773432374, -0.035971805453300476, -0.016618074849247932, -0.001915212720632553, -0.028663117438554764, -0.05365147814154625, 0.01160611305385828, -0.022068968042731285, 0.057693712413311005, -0.05156911164522171, -0.012606463395059109, -0.03454273194074631, -0.07251523435115814, -0.010728253982961178, 0.03217455372214317, -0.0024574948474764824, 0.021027784794569016, 0.015372740104794502, -0.02525375783443451, 0.014974641613662243, 0.08186545968055725, 0.019374143332242966, -0.044872887432575226, -0.027907749637961388, 0.008161026984453201, -0.029275577515363693, 0.004902230110019445, -0.020762385800480843, 0.056223805993795395, 0.008829628117382526, 0.04867013543844223, -0.016628282144665718, -0.0074873208068311214, 0.029540976509451866, -0.016740567982196808, 0.006241986062377691, -0.012290026061236858, 0.028703948482871056, 0.058959461748600006, -0.014158028177917004, 0.006221570540219545, -0.005052793305367231, 0.011667358689010143, -0.026233693584799767, 0.06308335810899734, -0.026029540225863457, 0.04989505559206009, 0.073740154504776, -0.04117771238088608, 0.002155092777684331, -0.0002907589077949524, -0.0663498118519783, 0.0382787361741066, -0.0023732816334813833, -0.03662509471178055, 0.031235449016094208, -0.02486586757004261, 0.02276308834552765, -0.0335627943277359, 0.014474466443061829, 0.024314653128385544, -0.009794252924621105, 0.01554627064615488, 0.024090085178613663, 0.024559637531638145, -0.005103831645101309, 0.03213372454047203, 0.009294076822698116, -0.008273310959339142, -0.0009103959309868515, 0.0455261766910553, -0.04617946594953537, 0.0026463365647941828, 0.01875147596001625, -0.005175285041332245, -0.08186545968055725, -0.028642702847719193, 0.0080385347828269, 0.0017046796856448054, -0.03831956535577774, 0.013617021963000298, -0.005068104714155197, 0.030500497668981552, 0.057693712413311005 ]
30,339
networkx.utils.backends
__reduce__
Allow this object to be serialized with pickle. This uses the global registry `_registered_algorithms` to deserialize.
def __reduce__(self): """Allow this object to be serialized with pickle. This uses the global registry `_registered_algorithms` to deserialize. """ return _restore_dispatchable, (self.name,)
(self)
[ -0.0027447433676570654, -0.013381950557231903, -0.067656971514225, 0.046565115451812744, -0.007387244608253241, -0.025677043944597244, -0.03449079021811485, -0.0032669452484697104, 0.017848262563347816, -0.05597323551774025, 0.0386853851377964, 0.029056495055556297, -0.006572100333869457, 0.03455871716141701, -0.0020516584627330303, 0.02769792079925537, -0.0569242388010025, 0.04357625171542168, -0.002477274276316166, 0.014052746817469597, -0.043032821267843246, -0.007043355610221624, 0.015207534655928612, -0.0063003855757415295, 0.03289446607232094, 0.02893761917948723, 0.04147046059370041, -0.01612457074224949, -0.009102444164454937, 0.011038411408662796, -0.07003447413444519, 0.007675941567867994, -0.017016135156154633, -0.009985516779124737, 0.025473257526755333, -0.014069728553295135, 0.011403528042137623, 0.10352331399917603, -0.06330953538417816, -0.06259628385305405, -0.02616952545940876, -0.025337399914860725, -0.019512515515089035, -0.05621098726987839, 0.04704061523079872, 0.01992008648812771, 0.0044535743072628975, 0.06517757475376129, 0.059539493173360825, -0.0555996298789978, -0.018069030717015266, -0.031179266050457954, -0.013042307458817959, 0.0680985078215599, -0.021533392369747162, 0.058112990111112595, 0.05189751461148262, 0.01747465506196022, -0.01747465506196022, 0.04585186392068863, -0.03905899450182915, 0.012940414249897003, 0.07553669810295105, 0.022399483248591423, -0.018442638218402863, -0.0320623405277729, -0.05702613294124603, -0.0046573602594435215, -0.048874687403440475, 0.047787830233573914, 0.007387244608253241, -0.048772796988487244, 0.036443740129470825, 0.014460318721830845, 0.016786877065896988, -0.0013734331587329507, -0.028394190594553947, -0.03725888207554817, 0.007998602464795113, -0.0007456234307028353, 0.01738974265754223, -0.038991063833236694, -0.06510964781045914, -0.041742175817489624, -0.03207932040095329, -0.06728336215019226, 0.0457499697804451, -0.020633338019251823, -0.07329504936933517, -0.02362219989299774, -0.032928429543972015, 0.07078169286251068, -0.045919790863990784, 0.06847211718559265, -0.05991309881210327, -0.063547283411026, -0.04792368784546852, -0.0037297094240784645, -0.004776235669851303, -0.049180369824171066, -0.003742445958778262, -0.00544703146442771, -0.09666252136230469, -0.04771989956498146, -0.004398382268846035, -0.020633338019251823, 0.01922381855547428, -0.015733981505036354, -0.05091254785656929, -0.009900606237351894, 0.07091754674911499, 0.013314022682607174, -0.028326261788606644, 0.0834164246916771, -0.004491784144192934, 0.002799935406073928, -0.011692225001752377, -0.03508516773581505, 0.02805454656481743, -0.006686729844659567, -0.05444484204053879, 0.05661856010556221, -0.063547283411026, 0.043712109327316284, -0.0020378604531288147, 0.012779084034264088, 0.06154339015483856, 0.03387943282723427, 0.004254033789038658, -0.041504427790641785, 0.04079117625951767, 0.006720694247633219, -0.05532791465520859, -0.005990460980683565, 0.025201542302966118, 0.016200991347432137, 0.044051751494407654, -0.003886794438585639, -0.02628840133547783, 0.032045356929302216, 0.014638631604611874, 0.007017882075160742, 0.036987170577049255, 0.04935019090771675, 0.03024524636566639, -0.02968483604490757, -0.018986066803336143, 0.01622646488249302, -0.029209334403276443, -0.009340194053947926, 0.03562859445810318, 0.021244695410132408, -0.011140304617583752, 0.02219569869339466, -0.010418562218546867, 0.0028933375142514706, -0.004929075017571449, 0.00962040014564991, -0.04860297590494156, -0.054716557264328, -0.024675095453858376, 0.012914941646158695, 0.00017605735047254711, -0.0533919483423233, 0.025320418179035187, -0.009059987962245941, 0.0653134286403656, -0.04846711829304695, -0.016438741236925125, 0.023180663585662842, -0.052950408309698105, -0.05125219374895096, -0.07995206117630005, 0.049214333295822144, -0.04581789672374725, 0.05125219374895096, -0.024912845343351364, 0.044934824109077454, -0.049859654158353806, 0.014163130894303322, 0.03211328759789467, -0.03549273684620857, -0.08919036388397217, -0.02056540921330452, 0.03613806143403053, 0.01761051081120968, 0.020157838240265846, -0.002502747578546405, 0.08144649118185043, -0.008614206686615944, 0.008266071788966656, -0.017245395109057426, -0.0021057892590761185, -0.025201542302966118, 0.007399981375783682, -0.063547283411026, -0.05002947524189949, 0.01457070279866457, 0.007391490042209625, 0.0551580935716629, -0.053935375064611435, 0.022263627499341965, 0.03466061130166054, -0.004861146677285433, -0.0466330423951149, -0.009357176721096039, 0.01946156844496727, 0.0033964342437684536, 0.004086335189640522, 0.005604116711765528, 0.02452225610613823, -0.014477301388978958, -0.0180180836468935, 0.07288748025894165, 0.06361521035432816, -0.06517757475376129, 0.048874687403440475, -0.013933871872723103, 0.05879227817058563, 0.036104097962379456, 0.05121823027729988, 0.06415864080190659, -0.0035153094213455915, -0.015453776344656944, -0.03211328759789467, -0.07234404981136322, -0.024267522618174553, -0.06083013862371445, 0.012711155228316784, -0.08260127902030945, 0.037428706884384155, -0.03817592188715935, -0.03129814192652702, -0.013950853608548641, 0.03411718085408211, 0.05444484204053879, 0.010376106947660446, -0.01779731549322605, -0.009824186563491821, 0.015317918732762337, 0.041062891483306885, -0.020633338019251823, 0.003033440327271819, -0.01990310475230217, 0.036341845989227295, -0.020208783447742462, 0.050844620913267136, 0.05067479982972145, 0.009807203896343708, 0.026135561987757683, 0.055022235959768295, -0.011004447005689144, -0.049961548298597336, -0.03228310868144035, 0.014536738395690918, -0.048535045236349106, -0.015428302809596062, -0.013008343055844307, 0.029396139085292816, 0.008975077420473099, -0.00012710093869827688, -0.008720344863831997, 0.022586287930607796, 0.040077924728393555, -0.02771490439772606, -0.014239550568163395, 0.012396984733641148, -0.012660209089517593, -0.008240598253905773, 0.02825833298265934, 0.07703112810850143, -0.04507068172097206, -0.012490387074649334, 0.03583238273859024, -0.07315919548273087, -0.047448188066482544, -0.013110236264765263, 0.0005023007979616523, 0.01578492857515812, 0.02253534086048603, 0.02628840133547783, -0.01307627186179161, 0.009739275090396404, -0.03637580946087837, -0.02637331187725067, -0.00047550079762004316, 0.005824884865432978, -0.016260428354144096, -0.004963039420545101, -0.0422176793217659, 0.05121823027729988, -0.0013723716838285327, 0.000751991756260395, 0.011997903697192669, 0.07519705593585968, -0.008032566867768764, -0.05009740591049194, -0.040621355175971985, 0.0756046250462532, 0.009900606237351894, -0.03739473968744278, -0.009688328951597214, -0.004228560719639063, 0.011191250756382942, 0.02199191227555275, -0.05274662375450134, 0.02825833298265934, 0.02384296804666519, -0.06701164692640305, 0.07438191026449203, 0.0022267871536314487, -0.00558288861066103, 0.021618304774165154, -0.021754160523414612, 0.001614367705769837, 0.015657562762498856, 0.025337399914860725, 0.02948104962706566, 0.014935819432139397, 0.05485241487622261, -0.047006651759147644, 0.01072424091398716, -0.05081065744161606, -0.0222126804292202, 0.018935121595859528, -0.057569559663534164, -0.04126667603850365, -0.04279507324099541, 0.0329454131424427, -0.03674941882491112, -0.08103892207145691, -0.020718248561024666, 0.03111133724451065, 0.027307331562042236, -0.030975479632616043, 0.008393438532948494, 0.05852056294679642, -0.001998589374125004, 0.009034515358507633, -0.009493033401668072, 0.029616907238960266, 0.03657959774136543, -0.022501377388834953, 0.011505421251058578, -0.061305638402700424, 0.016718948259949684, -0.02002198062837124, 0.025337399914860725, 0.06911743432283401, -0.03841366991400719, -0.005455522332340479, -0.04031567648053169, -0.03151891008019447, 0.06181510537862778, 0.04065531864762306, -0.013611210510134697, -0.022705163806676865, -0.014366917312145233, -0.0003085978969465941, -0.03804006427526474, 0.06015085056424141, -0.04428950324654579, -0.022467412054538727, 0.025880828499794006, 0.05787523835897446, 0.007149494253098965, -0.04782179370522499, -0.022450430318713188, 0.04231956973671913, -0.1164976954460144, -0.0710534080862999, -0.018510567024350166, -0.03428700566291809, -0.00229259324260056, -0.017347287386655807, 0.05301833897829056, 0.03374357521533966, 0.059131920337677, -0.05098047852516174, 0.01694820635020733, 0.01451126579195261, 0.0189011562615633, -0.0011898133670911193, -0.01924080029129982, 0.015326409600675106, 0.061950959265232086, 0.011471456848084927, 0.021380553022027016, 0.05675441771745682, 0.041945964097976685, -0.005387593992054462, -0.0024581693578511477, -0.06463414430618286, -0.018425656482577324, -0.0031905253417789936, 0.021839072927832603, -0.012303583323955536, 0.009730784222483635, -0.023571254685521126, -0.018935121595859528, 0.012711155228316784, -0.009994007647037506, 0.04935019090771675, 0.04520653933286667, 0.0038316024001687765, 0.011921484023332596, 0.0781179890036583, 0.006385296583175659, 0.03933070972561836, -0.023775039240717888, 0.0391269214451313, -0.043474357575178146, -0.049961548298597336, -0.04999551177024841, -0.006508416961878538, -0.033471859991550446, 0.04191200062632561, -0.03902503103017807, 0.03367564454674721, 0.002965511754155159, 0.024573201313614845, 0.06490585952997208, 0.008677889592945576, -0.02893761917948723, -0.001008847146295011, -0.02178812585771084, -0.024029772728681564, 0.05366365984082222, 0.016175517812371254, -0.00020949100144207478, -0.007845763117074966, -0.014918837696313858, -0.011046902276575565, -0.03685131296515465, -0.009883623570203781, -0.043032821267843246, -0.008677889592945576, -0.026356330141425133, 0.018289798870682716, 0.05240698158740997, 0.010834624990820885, 0.006194246932864189, 0.0063003855757415295, -0.0514899417757988, 0.04014585167169571, -0.015317918732762337, -0.03617202490568161, 0.07567255198955536, -0.021312624216079712, 0.005281455349177122, 0.04299885779619217, 0.006814096122980118, -0.020293693989515305, -0.006822587456554174, -0.005030968226492405, -0.026746919378638268, 0.07791420072317123, -0.041742175817489624, 0.006741921883076429, -0.04269317910075188, 0.036036167293787, -0.053154196590185165, -0.006160282529890537, 0.013203638605773449, -0.0197842288762331, 0.04092703387141228, -0.014672596007585526, 0.015105641447007656, 0.006117827259004116, -0.027324313297867775, 0.04704061523079872, 0.03627391904592514, -0.007353280205279589, -0.07594426721334457, -0.04075721278786659, 0.0781179890036583, 0.021193750202655792, -0.01598871499300003, -0.01303381659090519, -0.05203337222337723, 0.02703561633825302, -0.059131920337677, 0.016583090648055077, 0.0016419637249782681, 0.0015867716865614057, 0.005222017876803875, 0.029226316139101982, -0.002927301684394479, 0.08321263641119003, 0.006330104544758797, -0.047108542174100876, 0.08810350298881531, -0.03569652512669563, 0.04411968216300011, 0.05203337222337723, 0.02791868895292282, -0.01823885180056095, -0.008270317688584328, 0.005103142466396093, -0.029837675392627716, 0.010741223581135273, -0.024437343701720238, -0.010486491024494171, -0.0011802609078586102, 0.004090580623596907, -0.05230508744716644, -0.01644723303616047, 0.008028321899473667, 0.011590331792831421, -0.022908948361873627, -0.04201389104127884, -0.033149197697639465, 0.0019264150178059936, 0.05695820227265358, 0.001419072737917304, -0.03902503103017807, 0.0022947159595787525, 0.01944458670914173, -0.06232456862926483, -0.013152691535651684, 0.015122623182833195, 0.027324313297867775, 0.04520653933286667, -0.00945057813078165, -0.04894261807203293, -0.03990810364484787, -0.03916088864207268, -0.012507368810474873, 0.022739127278327942, 0.029667852446436882, -0.005294192116707563, -0.029752764850854874, -0.015046203508973122, 0.012396984733641148, -0.013449879363179207, 0.07601220160722733, -0.025999704375863075, 0.01697367988526821, 0.01308476272970438, -0.006831078324466944, 0.015088658779859543, -0.005629589781165123, 0.03173967823386192, 0.0034388897474855185, -0.022739127278327942, 0.02036162279546261, 0.020259730517864227, 0.05852056294679642, 0.011717698536813259, -0.05298437550663948, 0.010860098525881767, 0.014103692956268787, 0.02002198062837124, -0.050946515053510666, 0.06901554763317108, -0.07682733982801437, 0.03885520622134209, -0.00044896616600453854, -0.016939716413617134, 0.0269167423248291, -0.01654912531375885, 0.09075272083282471, -0.0028975829482078552, -0.0034197848290205, 0.035356879234313965, 0.02452225610613823, 0.028411172330379486, -0.000057580175052862614, -0.019155889749526978, -0.029192352667450905, 0.015207534655928612, -0.016880277544260025, 0.03360771760344505, -0.004572449717670679, -0.0031650522723793983, 0.0738384798169136, 0.004196719266474247, 0.0034219075459986925, -0.023180663585662842, -0.08423157036304474, 0.006266421172767878, 0.016336848959326744, 0.011072375811636448, -0.06969483196735382, 0.006465961690992117, -0.017160484567284584, 0.023775039240717888, 0.023927878588438034, -0.002197068417444825, -0.00492058414965868, -0.021754160523414612, 0.016056643798947334, -0.011751662939786911, -0.003538660006597638, 0.005565906874835491, 0.0006904313922859728, -0.014681086875498295, 0.0015273339813575149, -0.033352985978126526, -0.02209380455315113, 0.004827182274311781, 0.010146846994757652, 0.031162284314632416, -0.019206834957003593, 0.022280609235167503, 0.012490387074649334, -0.07139305025339127, 0.06510964781045914, -0.005718746222555637, 0.009858150035142899, -0.029531996697187424, -0.0005107918987050653, 0.03328505530953407, -0.03522102162241936, 0.04378003627061844, -0.03056790865957737, -0.01654912531375885, 0.0023966089356690645, -0.04330453649163246, 0.03367564454674721, 0.01347535289824009, -0.002511238679289818, -0.024318469688296318, -0.012575297616422176, -0.03583238273859024, 0.01675291173160076, -0.030720748007297516, -0.04119874909520149, 0.03321712836623192, -0.045682039111852646, -0.01924080029129982, 0.000508138386067003, 0.07411019504070282, -0.06962690502405167, 0.01600569672882557, -0.011242197826504707, 0.05773938074707985, 0.06341142952442169, -0.03593427315354347, -0.02791868895292282, -0.018765298649668694, -0.00003179182021995075, -0.010206284932792187, -0.031383052468299866, -0.06490585952997208, -0.003152315504848957, -0.007357525639235973, -0.028988566249608994, 0.03793817013502121, 0.000030166571377776563, -0.0351530946791172, 0.009076970629394054, 0.015818892046809196, 0.0020813774317502975, 0.04269317910075188, 0.020429551601409912, 0.058656420558691025, -0.025252489373087883, 0.01280455756932497, -0.00791369192302227, -0.05478448420763016, -0.012948906049132347, -0.027103545144200325, 0.015801910310983658, 0.03593427315354347, 0.014256533235311508, -0.053493838757276535, 0.027290349826216698, 0.0154452845454216, -0.020480498671531677, -0.004895111080259085, -0.009943061508238316, 0.05886020511388779, -0.01592927612364292, -0.07241197675466537, -0.009756257757544518, 0.014001800678670406, 0.004009915050119162, 0.036443740129470825, -0.03712302818894386, -0.012880977243185043, 0.024658111855387688, -0.03848160058259964, 0.011352581903338432, -0.01835772767663002, 0.021142803132534027, -0.02552420273423195, 0.017406726256012917, 0.01879926398396492, -0.06843814998865128, 0.06293592602014542, 0.026356330141425133, 0.006623046938329935, -0.004341067746281624, -0.027511117979884148, 0.022942913696169853, -0.018731335178017616, -0.08083513379096985, 0.045682039111852646, -0.026984671130776405, 0.0197842288762331, 0.01071575004607439, 0.021957946941256523, -0.04476500302553177, 0.021312624216079712, 0.07499326765537262, -0.03370961174368858, 0.007862744852900505, 0.023825986310839653, -0.028343243524432182, 0.027765849605202675, 0.02297687716782093, -0.017542583867907524, 0.018408672884106636, 0.03756456449627876, -0.02837720885872841, 0.0291244238615036, 0.02650916948914528, -0.025795917958021164, 0.03055092692375183, -0.042625248432159424, 0.025014737620949745, 0.04659907892346382, -0.00016146330744959414, 0.039194852113723755, 0.01391688920557499, 0.03350582346320152, -0.044934824109077454, 0.01803506538271904, 0.04982569068670273, 0.06072824448347092, 0.03430398553609848, -0.07478947937488556, 0.04167424887418747, 0.050504978746175766, -0.024573201313614845, 0.05009740591049194, -0.008457121439278126, 0.000249558303039521, 0.04225164279341698, -0.013135709799826145, -0.027307331562042236, 0.03367564454674721, 0.08742421865463257, -0.031196247786283493, -0.03576445206999779, 0.040179818868637085, 0.07764248549938202, -0.023435397073626518, 0.012668699957430363, 0.021754160523414612, 0.04619150608778, 0.013814995996654034, 0.024980774149298668, 0.005145597737282515, -0.056244950741529465, 0.0038613211363554, -0.018833227455615997, 0.004619150422513485, -0.06320764124393463, -0.0842994973063469, -0.030075425282120705, -0.01729634217917919, -0.02352030761539936, 0.055701520293951035, 0.016039660200476646, 0.01879926398396492, -0.03213026747107506 ]
30,340
networkx.utils.backends
_can_backend_run
Can the specified backend run this algorithm with these arguments?
def _can_backend_run(self, backend_name, /, *args, **kwargs): """Can the specified backend run this algorithm with these arguments?""" backend = _load_backend(backend_name) # `backend.can_run` and `backend.should_run` may return strings that describe # why they can't or shouldn't be run. We plan to use the strings in the future. return ( hasattr(backend, self.name) and (can_run := backend.can_run(self.name, args, kwargs)) and not isinstance(can_run, str) )
(self, backend_name, /, *args, **kwargs)
[ 0.04694722220301628, -0.07360817492008209, -0.009878992103040218, 0.07452387362718582, -0.014932950027287006, 0.02526979148387909, -0.024741502478718758, 0.013911592774093151, 0.028686055913567543, -0.0792432501912117, 0.07635527104139328, 0.06593038141727448, 0.024248434230685234, -0.04194609448313713, -0.03574750944972038, -0.09826163202524185, 0.01659705862402916, 0.03926943242549896, -0.01425497978925705, -0.03609970211982727, -0.06191539019346237, 0.0035571414045989513, 0.07755272835493088, -0.02197679504752159, 0.04557367414236069, 0.06962840259075165, 0.04427056014537811, -0.009341898374259472, -0.02229376696050167, 0.07431256026029587, -0.008853231556713581, 0.01348015759140253, 0.027206849306821823, 0.022170500829815865, 0.04247438162565231, 0.05142006278038025, 0.0020504191052168608, 0.004635730292648077, -0.08896375447511673, -0.11037704348564148, 0.004600510932505131, -0.06825485080480576, 0.10100872814655304, 0.01659705862402916, -0.05226532369852066, -0.04173477739095688, -0.01411410328000784, 0.011252541095018387, -0.04191087558865547, -0.0249175988137722, -0.0010807898361235857, -0.033000409603118896, 0.027664698660373688, 0.06814919412136078, -0.01671152003109455, -0.007770240772515535, 0.004838240798562765, 0.058851320296525955, 0.020603245124220848, -0.0067664929665625095, 0.018419653177261353, 0.006119339726865292, -0.027365336194634438, 0.009024925529956818, 0.021606992930173874, -0.037473250180482864, -0.028052110224962234, -0.015919087454676628, -0.015690162777900696, 0.03793110325932503, -0.017838535830378532, -0.0040061865001916885, 0.001071434817276895, 0.015452433377504349, 0.015355580486357212, -0.026925094425678253, -0.04550323635339737, 0.04053732380270958, -0.0247062835842371, 0.04786292091012001, 0.05589290335774422, -0.018366824835538864, -0.001884228317067027, -0.033898502588272095, 0.01041608490049839, -0.032401684671640396, -0.04895471781492233, 0.01762722060084343, 0.02174787037074566, -0.07012146711349487, 0.0010675826342776418, -0.02909107692539692, 0.05518852174282074, 0.009315484203398228, 0.021923964843153954, -0.017407100647687912, 0.009068949148058891, -0.016949251294136047, -0.05339233949780464, -0.015707772225141525, 0.01469522062689066, 0.028052110224962234, 0.04465797170996666, -0.050891775637865067, 0.07797535508871078, 0.04384792968630791, -0.006924979388713837, -0.005194835364818573, -0.06607125699520111, -0.024177996441721916, -0.012291508726775646, 0.014924145303666592, -0.009429946541786194, -0.016940446570515633, -0.046771127730607986, -0.002962816972285509, -0.03458527475595474, -0.046841565519571304, -0.04148824140429497, 0.02461823634803295, -0.06416942179203033, 0.05606900155544281, 0.05466023087501526, -0.06254933774471283, 0.0418052151799202, 0.056245096027851105, 0.038635484874248505, 0.006035693921148777, -0.00023621642321813852, -0.016059964895248413, 0.06934664398431778, -0.007774643134325743, -0.04169955849647522, 0.0040568141266703606, 0.002507168333977461, -0.0008392080198973417, 0.06078837811946869, 0.018701406195759773, -0.0002093892835546285, 0.009473971091210842, 0.05039870738983154, 0.015065021812915802, 0.04081907868385315, 0.02555154450237751, -0.012203460559248924, 0.0020471173338592052, -0.024266043677926064, -0.025375450029969215, 0.0616336390376091, -0.026062224060297012, 0.038318514823913574, 0.021659821271896362, -0.012828601524233818, -0.01541721448302269, -0.045608893036842346, 0.020180614665150642, -0.031204231083393097, 0.004763399716466665, -0.0018302989192306995, 0.03189100697636604, -0.031838174909353256, -0.012855015695095062, -0.07064975798130035, -0.01027520839124918, 0.0026106247678399086, -0.002595216501504183, -0.051877912133932114, 0.028351472690701485, -0.021642211824655533, 0.07374905049800873, 0.04427056014537811, 0.006484739016741514, 0.011358198709785938, 0.04377749189734459, 0.029267173260450363, 0.002868165262043476, 0.004472841043025255, 0.0018236953765153885, -0.024318872019648552, -0.053040146827697754, 0.047405071556568146, -0.0033854476641863585, -0.06166885793209076, -0.0155580909922719, 0.024477358907461166, 0.010803496465086937, 0.01663227751851082, -0.006145754363387823, 0.034814201295375824, 0.01942340098321438, -0.06755046546459198, -0.007532510906457901, 0.04412968456745148, -0.018349215388298035, -0.031521204859018326, -0.03877636417746544, 0.02169504016637802, 0.02729489654302597, 0.02852756902575493, -0.004635730292648077, 0.01648259535431862, -0.04486928880214691, 0.067444808781147, 0.027136409655213356, -0.0039489553309977055, 0.020321490243077278, 0.01907120831310749, 0.06198583170771599, 0.007299183867871761, -0.02176547981798649, -0.013031112030148506, -0.08678016066551208, -0.03083442896604538, 0.10417845845222473, 0.02939044125378132, 0.03634623810648918, 0.09016120433807373, 0.02264595963060856, -0.0018809265457093716, 0.018842283636331558, 0.04229828715324402, 0.07149501889944077, 0.02555154450237751, -0.035976435989141464, 0.01820833794772625, -0.020321490243077278, 0.04645415395498276, 0.0840330645442009, 0.0032885947730392218, 0.0051243966445326805, -0.026291148737072945, -0.05585768446326256, 0.0261150524020195, 0.011675171554088593, 0.015311556868255138, -0.015927892178297043, 0.06994537264108658, 0.017019689083099365, -0.004530072212219238, -0.002267237287014723, 0.051525723189115524, -0.013541790656745434, -0.03143315389752388, -0.05455457419157028, -0.0440240278840065, -0.03648711368441582, 0.036557551473379135, 0.01217704638838768, -0.020356711000204086, -0.038001541048288345, -0.009878992103040218, 0.05747776851058006, -0.027118800207972527, -0.05046914517879486, -0.06406376510858536, -0.021219581365585327, -0.008289724588394165, -0.05254707857966423, 0.0712132677435875, 0.03631101921200752, -0.030711160972714424, 0.05525895953178406, -0.026766609400510788, 0.03602926433086395, -0.018895111978054047, 0.0012678919592872262, -0.017134150490164757, 0.03733237460255623, 0.018877502530813217, 0.019194476306438446, 0.005718721076846123, -0.028333863243460655, -0.010970787145197392, 0.02354404889047146, -0.04638371616601944, -0.012793382629752159, 0.04557367414236069, 0.05022260919213295, -0.005802366882562637, 0.003398654982447624, 0.026079833507537842, -0.018877502530813217, -0.03319411724805832, -0.02725967764854431, -0.03609970211982727, -0.05698470026254654, 0.015003388747572899, -0.023984290659427643, -0.005322504788637161, 0.0036517931148409843, -0.023649707436561584, -0.02084977924823761, 0.03528966009616852, 0.015082631260156631, 0.005529417656362057, -0.0068105170503258705, -0.0002596041886135936, -0.09657110273838043, 0.047475509345531464, -0.016376938670873642, -0.03167968988418579, 0.01469522062689066, -0.025481106713414192, 0.00426592817530036, 0.02704836241900921, 0.004415609873831272, -0.0019326547626405954, -0.027065971866250038, -0.020022127777338028, -0.0034162644296884537, -0.006735675968229771, -0.025128914043307304, 0.0540262870490551, 0.011050030589103699, 0.050926994532346725, 0.04268569499254227, 0.021906355395913124, -0.022716397419571877, -0.013268841430544853, 0.04673590883612633, -0.03409220650792122, 0.05779474228620529, -0.011824853718280792, 0.03884680196642876, -0.002200100803747773, -0.032401684671640396, 0.04906037449836731, -0.033616747707128525, 0.0071450998075306416, -0.007092271000146866, -0.015082631260156631, 0.005864000413566828, 0.0732559785246849, -0.03606448322534561, -0.0072551597841084, -0.03227841854095459, 0.0019150451989844441, -0.002548991236835718, 0.0009635759051889181, -0.014862511307001114, 0.026203101500868797, 0.00023263947514351457, 0.0020647267811000347, 0.027805576100945473, 0.023579269647598267, 0.04310832917690277, -0.0100022591650486, 0.016024746000766754, 0.08516007661819458, -0.05666772648692131, -0.062056269496679306, -0.013048721477389336, -0.051877912133932114, -0.036275796592235565, -0.00748848682269454, -0.03409220650792122, -0.0012348740128800273, 0.023984290659427643, -0.05716079846024513, -0.041206490248441696, 0.11157449334859848, -0.05142006278038025, -0.008452612906694412, 0.04638371616601944, -0.062126707285642624, -0.03051745519042015, 0.04324920475482941, -0.006119339726865292, 0.0008892853511497378, -0.007928727194666862, 0.014756853692233562, -0.02467106468975544, 0.060964472591876984, -0.011384613811969757, -0.03338782116770744, 0.03733237460255623, 0.03028853051364422, -0.023949069902300835, -0.004014991223812103, 0.049130816012620926, 0.04670068621635437, 0.040044255554676056, 0.01204497367143631, -0.01629769429564476, -0.0028131352737545967, -0.020955437794327736, -0.08825936913490295, -0.013585815206170082, 0.0019898859318345785, -0.07255159318447113, 0.013330475427210331, -0.0020085962023586035, -0.036522332578897476, 0.0025666006840765476, -0.03310607001185417, 0.0013911592541262507, -0.017354272305965424, 0.04525670036673546, -0.03912855684757233, 0.044622752815485, -0.04958866536617279, -0.01132297981530428, 0.06026008725166321, 0.033352602273225784, -0.0057275258004665375, 0.03955118730664253, 0.037121061235666275, 0.05723123624920845, -0.027242068201303482, 0.04525670036673546, -0.031574033200740814, -0.022522691637277603, -0.07388992607593536, 0.012582067400217056, -0.06621214002370834, 0.07551001012325287, 0.004371585790067911, -0.024177996441721916, -0.022839665412902832, 0.017019689083099365, -0.005234456621110439, 0.06533165276050568, 0.05575202777981758, -0.014809682965278625, 0.06300719082355499, 0.034814201295375824, 0.02405472844839096, -0.019264914095401764, -0.017231004312634468, -0.009297874756157398, -0.06107012927532196, -0.03634623810648918, 0.013920397497713566, 0.010768276639282703, 0.028245816007256508, -0.014765658415853977, 0.013418523594737053, 0.03345825895667076, 0.015927892178297043, -0.048003800213336945, -0.02285727486014366, -0.022452253848314285, -0.04148824140429497, -0.009570823051035404, -0.025128914043307304, -0.05261751636862755, -0.023350343108177185, 0.0055470275692641735, -0.01676435023546219, 0.01466880552470684, -0.0045652915723621845, 0.08720279484987259, -0.010099112056195736, -0.018366824835538864, 0.006885357666760683, 0.008928072638809681, 0.01633291319012642, 0.014281394891440868, -0.015584506094455719, 0.010944372974336147, -0.0003084433265030384, 0.037755005061626434, -0.03544814512133598, -0.023350343108177185, 0.04715853929519653, 0.03558902442455292, 0.013031112030148506, 0.06973405927419662, 0.0019777794368565083, 0.04296744987368584, -0.010389670729637146, 0.003488904098048806, 0.020427148789167404, 0.02932000160217285, 0.010019868612289429, 0.037684567272663116, -0.02495281770825386, 0.013594619929790497, -0.027400555089116096, 0.011868877336382866, -0.033035628497600555, 0.03648711368441582, -0.0008072906057350338, 0.05698470026254654, -0.01877184584736824, -0.0992477685213089, -0.007387231569737196, -0.019828421995043755, 0.01875423640012741, -0.06526121497154236, -0.02137806825339794, -0.023015761747956276, 0.06846616417169571, 0.0428265742957592, -0.01998690888285637, -0.015610920265316963, -0.01772407256066799, -0.007316793315112591, -0.02907346747815609, 0.026502463966608047, 0.034778982400894165, 0.052230104804039, -0.012080193497240543, 0.006682847160845995, 0.016068769618868828, -0.03548336774110794, -0.006867748219519854, 0.020726511254906654, -0.008734366856515408, 0.04638371616601944, -0.03986815735697746, 0.018877502530813217, 0.015619724988937378, -0.01039847545325756, 0.03694496303796768, 0.03236646577715874, 0.032736267894506454, -0.04138258472084999, -0.07952500134706497, 0.03484942018985748, 0.034743763506412506, -0.03969206288456917, -0.00004787612851941958, -0.014316613785922527, 0.037473250180482864, -0.0202158335596323, -0.03926943242549896, -0.0188070647418499, 0.02877410501241684, 0.007246355060487986, 0.034268300980329514, 0.02963697537779808, 0.0325249508023262, 0.007585339713841677, -0.0017543574795126915, -0.014316613785922527, -0.026502463966608047, 0.0343211330473423, -0.01568135805428028, 0.028281034901738167, 0.020937826484441757, 0.008021177724003792, 0.022663569077849388, -0.03969206288456917, 0.0056923069059848785, -0.024565408006310463, -0.00005179701838642359, -0.02467106468975544, 0.0634298175573349, 0.013665057718753815, 0.023667316883802414, 0.030112434178590775, 0.01907120831310749, 0.03368718549609184, 0.06466249376535416, -0.0100022591650486, 0.0702623501420021, 0.03726193681359291, -0.02852756902575493, 0.04405924677848816, 0.005789159797132015, -0.06276065111160278, 0.019810812547802925, 0.004992324858903885, -0.02199440449476242, -0.04321398586034775, 0.007391634397208691, 0.005930036306381226, 0.0019524656236171722, -0.03148598596453667, -0.01231792289763689, -0.06589516252279282, 0.04296744987368584, -0.007065856363624334, -0.009940625168383121, -0.026255929842591286, 0.012097802944481373, 0.010363255627453327, -0.05705513805150986, -0.046278055757284164, -0.015073826536536217, 0.010460108518600464, -0.024318872019648552, 0.026925094425678253, -0.0003629230777733028, 0.005709916353225708, 0.007809862494468689, -0.004512462764978409, -0.012687725014984608, -0.06082359701395035, -0.055047642439603806, 0.05645641312003136, 0.043636616319417953, -0.045362357050180435, 0.059485264122486115, 0.03648711368441582, -0.05952048301696777, 0.014660000801086426, 0.027136409655213356, -0.007070258725434542, -0.030904866755008698, -0.029003029689192772, 0.03354630991816521, -0.05254707857966423, 0.04169955849647522, 0.026255929842591286, -0.06818441301584244, -0.03602926433086395, -0.04018513113260269, -0.0014109701151028275, 0.012291508726775646, -0.006057706195861101, 0.020180614665150642, 0.023720145225524902, 0.02465345524251461, -0.03296519070863724, -0.014422271400690079, 0.02498803846538067, 0.08255385607481003, 0.014941754750907421, 0.01438705250620842, 0.05149050056934357, -0.015373189933598042, 0.02755904011428356, -0.03532487899065018, -0.012291508726775646, 0.008395382203161716, -0.026273539289832115, -0.021518943831324577, 0.0003260529483668506, 0.004347372800111771, -0.01996929943561554, 0.0334230400621891, -0.04113605245947838, -0.009245045483112335, -0.1064324900507927, -0.04134736582636833, 0.023420782759785652, -0.008910463191568851, -0.022804446518421173, 0.001452792901545763, 0.026009395718574524, -0.02433648146688938, -0.013110355474054813, 0.00234648073092103, -0.006563982460647821, -0.03384567052125931, -0.005260871257632971, 0.07089629024267197, -0.019810812547802925, -0.010600985959172249, 0.015452433377504349, 0.04469319060444832, 0.03231363743543625, 0.01669391058385372, 0.026660950854420662, -0.015566895715892315, -0.006409898400306702, 0.0049879224970936775, -0.07551001012325287, 0.0017488545272499323, -0.04081907868385315, 0.0029716219287365675, -0.012449994683265686, -0.03081681951880455, -0.02815776690840721, -0.0290206391364336, -0.04229828715324402, 0.0009041434386745095, 0.0012799985706806183, -0.024864770472049713, -0.03206710144877434, 0.00800797063857317, -0.011604733765125275, 0.013444937765598297, 0.04715853929519653, 0.009614847600460052, -0.04198131337761879, -0.025322619825601578, -0.04053732380270958, -0.07160067558288574, -0.03810719773173332, -0.04511582478880882, 0.044481877237558365, -0.015135460533201694, 0.036592770367860794, -0.0185077004134655, 0.011006006971001625, 0.021360458806157112, -0.059767019003629684, -0.052089229226112366, 0.03020048327744007, 0.02379058487713337, 0.023861022666096687, -0.010944372974336147, -0.004723777994513512, -0.05497720465064049, 0.01995168998837471, -0.0016597057692706585, 0.033581528812646866, 0.003653994295746088, -0.014712830074131489, -0.013295256532728672, -0.04659502953290939, 0.016808373853564262, 0.010882739908993244, -0.08339911699295044, -0.007374024484306574, 0.02114914357662201, -0.058569565415382385, -0.05515330284833908, 0.012617286294698715, 0.04289701208472252, -0.023332733660936356, -0.02287488430738449, -0.05550549179315567, -0.016420962288975716, 0.02789362333714962, 0.029777852818369865, -0.057442549616098404, -0.044517096132040024, 0.06895923614501953, 0.025076085701584816, -0.058252591639757156, 0.004177880007773638, -0.024177996441721916, -0.015822235494852066, -0.08227210491895676, 0.024899989366531372, 0.02030388079583645, -0.026625731959939003, 0.00027955256518907845, -0.022469863295555115, 0.022399425506591797, -0.02174787037074566, -0.020708901807665825, 0.01937057264149189, -0.06494424492120743, -0.009967039339244366, 0.02461823634803295, 0.07079063355922699, -0.0059740603901445866, 0.004386994522064924, -0.04789813980460167, 0.04296744987368584, 0.04430578276515007, -0.012379556894302368, 0.012573261745274067, 0.08093377202749252, -0.012265093624591827, 0.047405071556568146, 0.01935296319425106, -0.010653814300894737, 0.03690974414348602, -0.0021538755390793085, 0.0071450998075306416, -0.023966681212186813, 0.029196735471487045, -0.027699917554855347, -0.042157407850027084, -0.0668460801243782, 0.06279587000608444, -0.028298644348978996, -0.024195605888962746, 0.005705513991415501, -0.04902515560388565, 0.018578140065073967, 0.034479618072509766 ]
30,341
networkx.utils.backends
_convert_and_call
Call this dispatchable function with a backend, converting graphs if necessary.
def _convert_and_call(self, backend_name, args, kwargs, *, fallback_to_nx=False): """Call this dispatchable function with a backend, converting graphs if necessary.""" backend = _load_backend(backend_name) if not self._can_backend_run(backend_name, *args, **kwargs): if fallback_to_nx: return self.orig_func(*args, **kwargs) msg = f"'{self.name}' not implemented by {backend_name}" if hasattr(backend, self.name): msg += " with the given arguments" raise RuntimeError(msg) try: converted_args, converted_kwargs = self._convert_arguments( backend_name, args, kwargs, use_cache=config.cache_converted_graphs ) result = getattr(backend, self.name)(*converted_args, **converted_kwargs) except (NotImplementedError, nx.NetworkXNotImplemented) as exc: if fallback_to_nx: return self.orig_func(*args, **kwargs) raise return result
(self, backend_name, args, kwargs, *, fallback_to_nx=False)
[ 0.0024191022384911776, -0.09019733220338821, -0.012516791000962257, 0.05204761400818825, -0.05555683374404907, 0.016434259712696075, -0.06931574642658234, 0.032052017748355865, 0.07289445400238037, -0.08616694808006287, 0.054167043417692184, 0.03371976688504219, 0.014914178289473057, -0.024686135351657867, -0.02638862654566765, 0.008008661679923534, -0.029550397768616676, 0.05569581314921379, 0.009398451074957848, -0.002353955991566181, -0.03967848792672157, -0.04992818459868431, 0.05649494007229805, 0.0006183477235026658, 0.056321218609809875, 0.0731029286980629, 0.046801161020994186, -0.008534176275134087, -0.03351129963994026, 0.0038306072819978, 0.006501608993858099, 0.04148521646857262, 0.0008034720085561275, 0.035995546728372574, 0.02894236519932747, 0.043743621557950974, -0.03738533705472946, -0.0013626451836898923, -0.09096171706914902, -0.07324190437793732, -0.015626445412635803, -0.0704970732331276, 0.08338736742734909, 0.0058979191817343235, -0.018727412447333336, -0.020968448370695114, -0.0421106219291687, 0.028369076550006866, -0.006136788986623287, -0.017963029444217682, -0.02225400321185589, -0.03915731981396675, 0.019404934719204903, 0.06208884343504906, -0.01857106201350689, 0.020621001720428467, -0.007639498915523291, 0.060004159808158875, 0.0076612145639956, 0.015035784803330898, 0.009528744034469128, 0.008981514722108841, -0.048190947622060776, 0.016295282170176506, 0.008182385005056858, -0.022219259291887283, -0.020898958668112755, -0.022862035781145096, -0.06139395013451576, 0.009789329953491688, -0.019213838502764702, 0.014888119883835316, 0.029289813712239265, -0.05548734590411186, 0.03469261899590492, -0.0005037986556999385, -0.00967640895396471, 0.023661166429519653, -0.025537380948662758, 0.025745850056409836, 0.025172561407089233, 0.010388676077127457, -0.05496617406606674, -0.05079680308699608, -0.0056981369853019714, -0.044716477394104004, -0.023713283240795135, 0.01613892987370491, -0.03717686980962753, -0.03773278370499611, -0.012716573663055897, -0.07077502459287643, 0.022392982617020607, 0.04895533248782158, 0.0032768629025667906, -0.04297924041748047, 0.004547217395156622, -0.0315655916929245, 0.024686135351657867, -0.002662315499037504, 0.007960887625813484, 0.009415823966264725, -0.04846890643239021, -0.05812794342637062, 0.04659269005060196, -0.04030389338731766, 0.06035160645842552, 0.004134623799473047, -0.02866440825164318, -0.004397380631417036, -0.02920295111835003, 0.0023452697787433863, 0.01082298532128334, -0.010188894346356392, -0.0014375634491443634, -0.016764335334300995, -0.044785965234041214, -0.0372811034321785, -0.0026449430733919144, 0.04311821609735489, -0.13258591294288635, 0.03603029251098633, 0.03568284586071968, 0.004938095808029175, -0.020256182178854942, 0.045168157666921616, 0.055139895528554916, 0.000040954000724013895, 0.054028064012527466, -0.04527239128947258, 0.08310940861701965, -0.029619887471199036, -0.024981465190649033, 0.01798040047287941, 0.022201886400580406, 0.04388260096311569, -0.02421708218753338, 0.01989136077463627, -0.012664456851780415, 0.03292063623666763, 0.03036689944565296, -0.023139994591474533, 0.03318122401833534, 0.05312470346689224, 0.02060362882912159, -0.008247531950473785, 0.02979361079633236, -0.023383207619190216, -0.0033593818079680204, -0.03811497613787651, 0.011735035106539726, 0.06500740349292755, -0.010084659792482853, -0.01811937987804413, -0.03384137153625488, 0.007270336151123047, -0.022931525483727455, 0.024043356999754906, -0.014888119883835316, 0.04652320221066475, -0.055139895528554916, -0.012195402756333351, -0.0021596024744212627, -0.03669044002890587, 0.024442922323942184, -0.037698037922382355, 0.003211716655641794, -0.03776752948760986, 0.009355020709335804, 0.04676641523838043, 0.016225792467594147, -0.03286851942539215, -0.011865327134728432, 0.010093346238136292, 0.006184563040733337, -0.013263802975416183, 0.01810200698673725, 0.030227920040488243, 0.0017969543114304543, 0.004564589820802212, 0.047669779509305954, -0.019769754260778427, -0.08137217164039612, -0.0217849500477314, 0.006180219817906618, 0.05955247953534126, 0.02329634502530098, -0.0038870673161000013, 0.017763245850801468, 0.015079215168952942, 0.04009542614221573, 0.03510955721139908, 0.05625172704458237, 0.00539412023499608, 0.0034940175246447325, -0.0981886237859726, -0.00023778429022058845, 0.044577497988939285, 0.0019717637915164232, 0.05124848708510399, 0.039539508521556854, -0.0236264206469059, 0.10381726920604706, 0.05183914676308632, -0.03675993159413338, 0.008955455385148525, 0.03385874629020691, 0.047530800104141235, -0.02927244082093239, -0.032521072775125504, -0.012325695715844631, -0.039400532841682434, -0.0553831085562706, 0.03358078747987747, -0.03443203493952751, 0.05322893708944321, 0.0886685699224472, 0.0167990792542696, 0.0215938538312912, -0.02270568534731865, 0.00954611599445343, 0.03495320305228233, -0.013793660327792168, -0.06080329045653343, 0.04787824675440788, -0.07053181529045105, 0.0190227422863245, 0.012369126081466675, 0.05013665556907654, -0.015600387006998062, -0.0030944531317800283, -0.06438199430704117, 0.023383207619190216, -0.011352842673659325, 0.022688312456011772, -0.00974589865654707, 0.052534040063619614, -0.00541149266064167, 0.008503774181008339, 0.03672518581151962, 0.015817541629076004, -0.005628647282719612, -0.035995546728372574, -0.03222574293613434, -0.007713331375271082, -0.032972753047943115, 0.02466876246035099, -0.013324606232345104, -0.008912025019526482, -0.02525942400097847, 0.00984144676476717, 0.024495039135217667, -0.009467940777540207, -0.028195353224873543, -0.06698784977197647, -0.010075973346829414, -0.059344008564949036, -0.05465346947312355, 0.04113776981830597, 0.023852260783314705, -0.00007722560258116573, 0.07470118254423141, -0.062158335000276566, 0.00859932228922844, -0.005037986673414707, -0.019213838502764702, -0.046801161020994186, 0.023331090807914734, 0.05562632158398628, 0.047079116106033325, -0.0402691513299942, 0.0014538500690832734, 0.008990200236439705, 0.05472296103835106, -0.02244509942829609, -0.011135688051581383, -0.024390805512666702, 0.0020727405790239573, 0.01909223198890686, 0.0003450043732300401, 0.023383207619190216, -0.03116602823138237, -0.08032982796430588, -0.02492934837937355, -0.00133332924451679, -0.03714212402701378, 0.03686416521668434, -0.05659917742013931, 0.01618236117064953, -0.04315296187996864, 0.04853839799761772, -0.00223017786629498, -0.00021973330876789987, 0.040581852197647095, -0.01876215822994709, -0.037628550082445145, -0.05649494007229805, -0.06361760944128036, 0.07421475648880005, 0.0022258346434682608, -0.0035787078086286783, -0.02237560972571373, -0.008690527640283108, 0.01774587482213974, 0.08178910613059998, -0.0490943118929863, -0.015009726397693157, 0.004397380631417036, -0.06570229679346085, 0.03655146434903145, -0.027708927169442177, -0.04742656648159027, 0.014636220410466194, -0.032972753047943115, 0.011439704336225986, 0.01493155024945736, 0.02027355320751667, 0.051074761897325516, 0.047669779509305954, 0.02100319229066372, -0.00861235149204731, 0.05329842492938042, -0.043396174907684326, 0.09276844561100006, -0.028508055955171585, 0.025763222947716713, 0.001590657513588667, 0.004017360042780638, 0.028838131576776505, 0.0029337587766349316, 0.01646900549530983, 0.04148521646857262, 0.021437501534819603, -0.0066883619874715805, 0.021142171695828438, -0.025624243542551994, 0.027326734736561775, 0.007748076226562262, -0.015956521034240723, -0.0019467909587547183, -0.005011928267776966, 0.03752431645989418, 0.005163936410099268, 0.009346334263682365, 0.012369126081466675, 0.06254052370786667, 0.0010770867811515927, -0.0010770867811515927, 0.03641248494386673, -0.024234453216195107, -0.0627489909529686, -0.057572029531002045, -0.04791299253702164, 0.011066198348999023, -0.005706822965294123, 0.019144350662827492, -0.004469041712582111, -0.018935881555080414, -0.005728538613766432, -0.07414526492357254, 0.06302694976329803, -0.021750204265117645, -0.021437501534819603, -0.0030184490606188774, 0.027118267491459846, -0.04492494463920593, 0.023765400052070618, 0.02105531096458435, -0.018449455499649048, -0.004241029266268015, -0.005389777012169361, -0.01916172169148922, 0.023800143972039223, -0.010293127968907356, -0.06010839343070984, 0.06149818375706673, 0.030158430337905884, 0.0027274617459625006, 0.00014210054359864444, 0.03919206187129021, 0.04297924041748047, -0.006175877060741186, -0.021663343533873558, -0.0005214425036683679, 0.06438199430704117, 0.0029359301552176476, -0.05020614340901375, 0.021489620208740234, 0.03286851942539215, -0.08581949770450592, -0.00770898861810565, 0.02157648093998432, 0.01715521328151226, -0.00020806124666705728, -0.016642728820443153, -0.015174763277173042, 0.04770452156662941, 0.03724635764956474, -0.019856616854667664, -0.005850145127624273, -0.07622995227575302, -0.012490732595324516, 0.06264475733041763, 0.04867737740278244, -0.00326383369974792, 0.03104442171752453, 0.050623081624507904, 0.07289445400238037, 0.002671001711860299, 0.05680764466524124, 0.01573936641216278, -0.004829518496990204, -0.08971090614795685, -0.005880546756088734, -0.05496617406606674, 0.1181321069598198, -0.01512264646589756, -0.004547217395156622, -0.015791483223438263, -0.004529844969511032, -0.03465787321329117, 0.06003890559077263, 0.0015472265658900142, 0.003489674534648657, 0.06914202868938446, -0.007934829220175743, 0.01168291736394167, -0.014193224720656872, -0.05590428039431572, 0.026544978842139244, -0.008881622925400734, -0.05625172704458237, -0.008390854112803936, 0.007630812935531139, 0.034744735807180405, -0.006010839249938726, 0.008290962316095829, 0.05753728374838829, 0.012117226608097553, -0.028768641874194145, -0.0009440796566195786, -0.004362635780125856, 0.018414709717035294, -0.06952422112226486, -0.07407578080892563, -0.05892707407474518, -0.03891410306096077, -0.015730679035186768, -0.08915499597787857, -0.012968473136425018, 0.021819693967700005, 0.04085981100797653, 0.058683861047029495, -0.013272489421069622, -0.027900023385882378, -0.01092721987515688, 0.02899448201060295, -0.004786087665706873, 0.02388700656592846, 0.06969793885946274, -0.0022204057313501835, -0.0030922815203666687, -0.015018411912024021, -0.01811937987804413, 0.0005333860171958804, 0.05857962742447853, 0.019457051530480385, 0.045967284590005875, -0.04016491398215294, -0.029480908066034317, 0.02630176581442356, 0.010154149495065212, -0.01078824046999216, 0.004612363874912262, -0.00892071146517992, 0.04690539464354515, -0.053055211901664734, -0.001248638960532844, 0.014566730707883835, -0.00328120612539351, -0.016295282170176506, 0.00446035573258996, 0.038080230355262756, 0.058961816132068634, 0.005233426112681627, -0.02393912337720394, 0.06924626231193542, -0.014558044262230396, -0.003339837770909071, -0.0128294937312603, -0.01741579920053482, 0.0424928143620491, 0.04019965976476669, -0.02656235173344612, -0.01785879395902157, -0.002805637428537011, -0.03773278370499611, -0.05319419130682945, -0.006723106373101473, -0.043917346745729446, 0.000608032860327512, -0.02072523534297943, -0.020777352154254913, 0.03097493201494217, 0.025554753839969635, 0.019526541233062744, 0.028160609304904938, 0.08630592375993729, 0.0016601469833403826, 0.005641676485538483, -0.07706382870674133, 0.0016438603634014726, -0.00948531273752451, 0.004608020652085543, -0.006844712886959314, 0.0009147637756541371, 0.006749165244400501, -0.025346284732222557, -0.12160658091306686, 0.009528744034469128, 0.0553831085562706, 0.0035765361972153187, 0.0004402809718158096, 0.01869266852736473, 0.03168720006942749, 0.00977195706218481, -0.0017274648416787386, 0.02041253261268139, 0.03908782824873924, -0.00005296536619425751, -0.012612339109182358, 0.03908782824873924, 0.012612339109182358, 0.03724635764956474, 0.02664921246469021, -0.04447326436638832, -0.05034512281417847, 0.04363938793540001, -0.03497057780623436, 0.01299453154206276, -0.00030591656104661524, 0.02183706685900688, -0.0395047664642334, 0.0056981369853019714, 0.0015092245303094387, -0.10659684985876083, 0.004838204476982355, 0.015113960020244122, 0.037698037922382355, -0.02124640718102455, -0.0341714471578598, -0.02388700656592846, 0.02774367295205593, 0.06910727918148041, 0.03245158493518829, -0.00006307662260951474, -0.005198681261390448, 0.04555035009980202, -0.043917346745729446, -0.020516766235232353, -0.034015096724033356, 0.00791745726019144, 0.019457051530480385, -0.0016167160356417298, -0.026267020031809807, 0.0016894628060981631, 0.02452978305518627, 0.032243113964796066, -0.024373432621359825, -0.03634299337863922, 0.015791483223438263, -0.04527239128947258, 0.018536316230893135, -0.005954379215836525, -0.004842547699809074, 0.021176917478442192, 0.05361112952232361, -0.03147873282432556, 0.014636220410466194, -0.021350640803575516, -0.04652320221066475, 0.00324646127410233, -0.04120725765824318, 0.010110718198120594, 0.007908770814538002, -0.038288701325654984, -0.009346334263682365, 0.002490763319656253, -0.011283352971076965, -0.05013665556907654, -0.03787176311016083, -0.010466852225363255, 0.00022977672051638365, 0.005976094864308834, 0.020221436396241188, 0.0030184490606188774, -0.07907901704311371, 0.027708927169442177, 0.03133975341916084, -0.06677938252687454, -0.08901601284742355, 0.008078151382505894, 0.043743621557950974, -0.022618822753429413, 0.04381311312317848, 0.0168946273624897, -0.05006716400384903, -0.04461224004626274, -0.0071313572116196156, 0.0007366969948634505, 0.01810200698673725, 0.03203464671969414, 0.015609072521328926, 0.06479893624782562, 0.045237645506858826, -0.035526491701602936, -0.005246455315500498, 0.043917346745729446, 0.019509170204401016, 0.035126928240060806, 0.00879041850566864, -0.0008376738987863064, -0.042875003069639206, 0.03036689944565296, -0.02060362882912159, 0.03502269461750984, 0.022271376103162766, -0.010875102132558823, 0.027083521708846092, 0.04155470430850983, 0.0011118315160274506, -0.035648100078105927, 0.03012368641793728, -0.023574303835630417, -0.026944542303681374, -0.1055545061826706, -0.0199434794485569, 0.044785965234041214, -0.01982187293469906, -0.03556123748421669, -0.005059702321887016, 0.030870698392391205, -0.010744810104370117, -0.017893539741635323, 0.025224678218364716, -0.027934767305850983, -0.026475489139556885, -0.025902200490236282, 0.0594482459127903, 0.029446164146065712, 0.006362630054354668, 0.023661166429519653, -0.005737224593758583, 0.02459927275776863, 0.024790368974208832, 0.07775872200727463, -0.000022987849661149085, -0.04440377280116081, 0.017728501930832863, -0.037559058517217636, -0.0030597082804888487, 0.0027535203844308853, 0.01824098639190197, 0.01065794751048088, 0.011526565998792648, 0.009989111684262753, -0.05058833584189415, -0.0037784900050610304, 0.0064494917169213295, -0.06420827656984329, -0.026075923815369606, -0.03299012780189514, -0.006979349069297314, -0.0053072585724294186, -0.059344008564949036, -0.008634067140519619, 0.034206192940473557, -0.026336509734392166, -0.010492910631000996, -0.011578683741390705, -0.054028064012527466, -0.02060362882912159, -0.06358286738395691, 0.059482987970113754, -0.04926803708076477, -0.05368061736226082, 0.009224727749824524, -0.010649261996150017, 0.02190655656158924, -0.039991192519664764, 0.012273577973246574, 0.04499443247914314, 0.022479845210909843, -0.016408201307058334, -0.02105531096458435, -0.03328545764088631, -0.04728758707642555, -0.03863614797592163, 0.0017676384886726737, 0.024164963513612747, 0.04965022951364517, -0.024842485785484314, -0.025294167920947075, -0.03477948158979416, 0.07894004136323929, -0.008938083425164223, -0.06017788499593735, 0.0036764275282621384, -0.004308347124606371, -0.02015194669365883, -0.039539508521556854, -0.03554386645555496, 0.05072731524705887, 0.03745482489466667, -0.017737187445163727, -0.010814298875629902, -0.006740478798747063, 0.04019965976476669, -0.01388052199035883, -0.0009104206692427397, -0.022844664752483368, 0.007113984785974026, 0.058301668614149094, -0.025815339758992195, 0.048121459782123566, 0.015730679035186768, 0.03351129963994026, -0.060594819486141205, 0.04099879041314125, 0.030227920040488243, 0.007665557321161032, 0.01784142293035984, -0.012447302229702473, -0.003971757832914591, -0.004112908151000738, -0.027517830953001976, 0.03905308246612549, -0.011517880484461784, 0.00757869565859437, 0.011934816837310791, -0.014340889640152454, -0.022097652778029442, -0.030036823824048042, -0.0011346328537911177, 0.0698021724820137, -0.0017350652487948537, 0.04850365221500397, 0.0026427714619785547, 0.04829518496990204, 0.037559058517217636, 0.05058833584189415, 0.0431877076625824, -0.009928308427333832, 0.04054710641503334, 0.04079031944274902, -0.03017580322921276, -0.0004047218826599419, 0.03154822066426277, -0.0057241953909397125, -0.05489668250083923, -0.026805564761161804, 0.07275547832250595, -0.01675564981997013, -0.012881611473858356, -0.0006460349541157484, -0.05774575099349022, 0.025276795029640198, 0.023973867297172546 ]
30,342
networkx.utils.backends
_convert_and_call_for_tests
Call this dispatchable function with a backend; for use with testing.
def _convert_and_call_for_tests( self, backend_name, args, kwargs, *, fallback_to_nx=False ): """Call this dispatchable function with a backend; for use with testing.""" backend = _load_backend(backend_name) if not self._can_backend_run(backend_name, *args, **kwargs): if fallback_to_nx or not self.graphs: return self.orig_func(*args, **kwargs) import pytest msg = f"'{self.name}' not implemented by {backend_name}" if hasattr(backend, self.name): msg += " with the given arguments" pytest.xfail(msg) from collections.abc import Iterable, Iterator, Mapping from copy import copy from io import BufferedReader, BytesIO, StringIO, TextIOWrapper from itertools import tee from random import Random import numpy as np from numpy.random import Generator, RandomState from scipy.sparse import sparray # We sometimes compare the backend result to the original result, # so we need two sets of arguments. We tee iterators and copy # random state so that they may be used twice. if not args: args1 = args2 = args else: args1, args2 = zip( *( (arg, copy(arg)) if isinstance( arg, BytesIO | StringIO | Random | Generator | RandomState ) else tee(arg) if isinstance(arg, Iterator) and not isinstance(arg, BufferedReader | TextIOWrapper) else (arg, arg) for arg in args ) ) if not kwargs: kwargs1 = kwargs2 = kwargs else: kwargs1, kwargs2 = zip( *( ((k, v), (k, copy(v))) if isinstance( v, BytesIO | StringIO | Random | Generator | RandomState ) else ((k, (teed := tee(v))[0]), (k, teed[1])) if isinstance(v, Iterator) and not isinstance(v, BufferedReader | TextIOWrapper) else ((k, v), (k, v)) for k, v in kwargs.items() ) ) kwargs1 = dict(kwargs1) kwargs2 = dict(kwargs2) try: converted_args, converted_kwargs = self._convert_arguments( backend_name, args1, kwargs1, use_cache=False ) result = getattr(backend, self.name)(*converted_args, **converted_kwargs) except (NotImplementedError, nx.NetworkXNotImplemented) as exc: if fallback_to_nx: return self.orig_func(*args2, **kwargs2) import pytest pytest.xfail( exc.args[0] if exc.args else f"{self.name} raised {type(exc).__name__}" ) # Verify that `self._returns_graph` is correct. This compares the return type # to the type expected from `self._returns_graph`. This handles tuple and list # return types, but *does not* catch functions that yield graphs. if ( self._returns_graph != ( isinstance(result, nx.Graph) or hasattr(result, "__networkx_backend__") or isinstance(result, tuple | list) and any( isinstance(x, nx.Graph) or hasattr(x, "__networkx_backend__") for x in result ) ) and not ( # May return Graph or None self.name in {"check_planarity", "check_planarity_recursive"} and any(x is None for x in result) ) and not ( # May return Graph or dict self.name in {"held_karp_ascent"} and any(isinstance(x, dict) for x in result) ) and self.name not in { # yields graphs "all_triads", "general_k_edge_subgraphs", # yields graphs or arrays "nonisomorphic_trees", } ): raise RuntimeError(f"`returns_graph` is incorrect for {self.name}") def check_result(val, depth=0): if isinstance(val, np.number): raise RuntimeError( f"{self.name} returned a numpy scalar {val} ({type(val)}, depth={depth})" ) if isinstance(val, np.ndarray | sparray): return if isinstance(val, nx.Graph): check_result(val._node, depth=depth + 1) check_result(val._adj, depth=depth + 1) return if isinstance(val, Iterator): raise NotImplementedError if isinstance(val, Iterable) and not isinstance(val, str): for x in val: check_result(x, depth=depth + 1) if isinstance(val, Mapping): for x in val.values(): check_result(x, depth=depth + 1) def check_iterator(it): for val in it: try: check_result(val) except RuntimeError as exc: raise RuntimeError( f"{self.name} returned a numpy scalar {val} ({type(val)})" ) from exc yield val if self.name in {"from_edgelist"}: # numpy scalars are explicitly given as values in some tests pass elif isinstance(result, Iterator): result = check_iterator(result) else: try: check_result(result) except RuntimeError as exc: raise RuntimeError( f"{self.name} returned a numpy scalar {result} ({type(result)})" ) from exc check_result(result) if self.name in { "edmonds_karp", "barycenter", "contracted_edge", "contracted_nodes", "stochastic_graph", "relabel_nodes", "maximum_branching", "incremental_closeness_centrality", "minimal_branching", "minimum_spanning_arborescence", "recursive_simple_cycles", "connected_double_edge_swap", }: # Special-case algorithms that mutate input graphs bound = self.__signature__.bind(*converted_args, **converted_kwargs) bound.apply_defaults() bound2 = self.__signature__.bind(*args2, **kwargs2) bound2.apply_defaults() if self.name in { "minimal_branching", "minimum_spanning_arborescence", "recursive_simple_cycles", "connected_double_edge_swap", }: G1 = backend.convert_to_nx(bound.arguments["G"]) G2 = bound2.arguments["G"] G2._adj = G1._adj nx._clear_cache(G2) elif self.name == "edmonds_karp": R1 = backend.convert_to_nx(bound.arguments["residual"]) R2 = bound2.arguments["residual"] if R1 is not None and R2 is not None: for k, v in R1.edges.items(): R2.edges[k]["flow"] = v["flow"] R2.graph.update(R1.graph) nx._clear_cache(R2) elif self.name == "barycenter" and bound.arguments["attr"] is not None: G1 = backend.convert_to_nx(bound.arguments["G"]) G2 = bound2.arguments["G"] attr = bound.arguments["attr"] for k, v in G1.nodes.items(): G2.nodes[k][attr] = v[attr] nx._clear_cache(G2) elif ( self.name in {"contracted_nodes", "contracted_edge"} and not bound.arguments["copy"] ): # Edges and nodes changed; node "contraction" and edge "weight" attrs G1 = backend.convert_to_nx(bound.arguments["G"]) G2 = bound2.arguments["G"] G2.__dict__.update(G1.__dict__) nx._clear_cache(G2) elif self.name == "stochastic_graph" and not bound.arguments["copy"]: G1 = backend.convert_to_nx(bound.arguments["G"]) G2 = bound2.arguments["G"] for k, v in G1.edges.items(): G2.edges[k]["weight"] = v["weight"] nx._clear_cache(G2) elif ( self.name == "relabel_nodes" and not bound.arguments["copy"] or self.name in {"incremental_closeness_centrality"} ): G1 = backend.convert_to_nx(bound.arguments["G"])
(self, backend_name, args, kwargs, *, fallback_to_nx=False)
[ 0.005886954255402088, -0.07232295721769333, -0.01400359533727169, 0.025134658440947533, -0.02754388004541397, 0.024764008820056915, -0.092616006731987, 0.007662016898393631, 0.10721032321453094, -0.05999886244535446, 0.013829853385686874, 0.045265551656484604, 0.03935832902789116, 0.025621136650443077, -0.02601495198905468, 0.04135056957602501, 0.008420689962804317, 0.04202236980199814, 0.02545897662639618, 0.02800719067454338, -0.06977473944425583, -0.054763440042734146, 0.03581399470567703, 0.07227662205696106, 0.022876014932990074, 0.002451208420097828, 0.04906470701098442, -0.04424626752734184, -0.0027610480319708586, 0.018277646973729134, -0.05935022607445717, -0.04466324672102928, -0.007349281571805477, 0.029350794851779938, 0.04962068051099777, 0.00445937504991889, -0.012335673905909061, 0.011484337970614433, -0.08969714492559433, -0.015393530949950218, -0.01849771849811077, -0.07181331515312195, 0.034169238060712814, -0.014258417300879955, -0.01408467534929514, 0.005079054273664951, -0.023675227537751198, 0.029512954875826836, -0.04422309994697571, -0.02559797093272209, -0.0009266233537346125, -0.058191947638988495, 0.01228934247046709, 0.10461577773094177, 0.002063184743747115, 0.04130423814058304, 0.007210288196802139, 0.0546707808971405, 0.029142305254936218, -0.014513238333165646, 0.027520714327692986, 0.023744724690914154, -0.030601736158132553, 0.0051369681023061275, -0.03903400897979736, -0.007146582938730717, -0.05985986813902855, -0.04350496828556061, -0.04125790670514107, 0.01359819807112217, -0.026872077956795692, 0.026895243674516678, 0.041535891592502594, -0.010882033035159111, 0.023269830271601677, -0.001631725812330842, -0.03775990381836891, 0.007395613007247448, -0.0012842420255765319, -0.043157484382390976, 0.02330457791686058, 0.06648522615432739, -0.04074826464056969, -0.0915040597319603, -0.01758267916738987, -0.019899236038327217, -0.008165868930518627, 0.07362022995948792, 0.003020212985575199, -0.056153375655412674, -0.047141965478658676, -0.034841038286685944, 0.04369029030203819, 0.0651879534125328, 0.01692245900630951, 0.014061509631574154, -0.025574805215001106, -0.09859272837638855, 0.025667468085885048, -0.023953214287757874, 0.007812593132257462, 0.0658365935087204, -0.01912318915128708, 0.019760243594646454, 0.013459204696118832, -0.026617256924510002, -0.008183242753148079, -0.022933928295969963, 0.014443742111325264, -0.02571379952132702, -0.1037818193435669, 0.014408993534743786, 0.013922516256570816, -0.03655529394745827, 0.005420746747404337, -0.01743210293352604, -0.04723462462425232, -0.0350726954638958, -0.03521168977022171, 0.03134303539991379, -0.0013074076268821955, 0.023652061820030212, 0.018231315538287163, 0.02156715840101242, 0.03669428452849388, 0.013957264833152294, 0.06027685105800629, 0.04691030830144882, 0.019389593973755836, -0.02024671994149685, 0.06523428857326508, -0.017212029546499252, -0.03664795309305191, 0.06667055189609528, 0.02300342544913292, 0.030184756964445114, -0.04637749865651131, 0.020072977989912033, -0.007239244878292084, -0.0025540057104080915, 0.04003012925386429, -0.03280246630311012, 0.040817759931087494, 0.015416696667671204, 0.01224301103502512, -0.01686454564332962, 0.013320211321115494, -0.05142759904265404, -0.0016954311868175864, -0.014096258208155632, 0.031250372529029846, 0.016181159764528275, 0.01677188277244568, -0.00999015849083662, -0.04686397686600685, -0.0075461892411112785, -0.03152836114168167, -0.021856728941202164, -0.01497654989361763, 0.01160595752298832, -0.0712573379278183, -0.07097934931516647, 0.03342793881893158, -0.03813055157661438, 0.019598083570599556, -0.009729545563459396, -0.04498756304383278, -0.03970581293106079, -0.04109574481844902, 0.009590552188456059, -0.003020212985575199, -0.040400780737400055, -0.06648522615432739, -0.010795162059366703, -0.02203047089278698, 0.03393758088350296, 0.02571379952132702, 0.028493668884038925, -0.013169635087251663, -0.006694853771477938, 0.019343262538313866, -0.05054730549454689, -0.08112587779760361, -0.015625186264514923, 0.0019198477966710925, 0.0546707808971405, 0.018358726054430008, -0.000667096464894712, 0.04568253085017204, 0.03655529394745827, -0.0007803906337358057, 0.010945738293230534, 0.05411480367183685, 0.038871850818395615, 0.05550473928451538, -0.08223782479763031, -0.002766839461401105, 0.05647769570350647, 0.01228934247046709, 0.06560493260622025, -0.030022596940398216, -0.014049926772713661, 0.07287892699241638, 0.012046104297041893, -0.031667355448007584, -0.009358895942568779, -0.02775236964225769, 0.049342695623636246, 0.010835702531039715, 0.00858284905552864, -0.03326578065752983, -0.02300342544913292, -0.027428051456809044, 0.047721102833747864, -0.02847050316631794, 0.0018822037382051349, 0.049806006252765656, 0.024926168844103813, 0.011860779486596584, -0.05138126760721207, 0.02765970677137375, -0.023443572223186493, -0.02038571424782276, -0.04426943138241768, 0.024856671690940857, -0.04058610275387764, 0.04860139638185501, 0.02724272757768631, 0.07102568447589874, -0.035397011786699295, 0.05249321460723877, -0.021914642304182053, 0.06273240596055984, -0.039844803512096405, 0.028076687827706337, -0.0640760064125061, 0.03706493601202965, 0.021022768691182137, -0.010569297708570957, 0.002817514119669795, -0.03838537260890007, -0.024625016376376152, -0.02867899276316166, -0.028447337448596954, -0.021323921158909798, -0.035605501383543015, 0.025574805215001106, 0.017918579280376434, -0.016934042796492577, 0.009567386470735073, -0.02525048702955246, -0.03157469257712364, 0.0004361645260360092, -0.03164418786764145, -0.035860326141119, -0.06338103860616684, -0.03597615286707878, -0.06333471089601517, 0.08381308615207672, -0.008826087228953838, 0.02457868494093418, 0.03266347572207451, -0.07732672244310379, 0.050176654011011124, -0.036925941705703735, -0.016482314094901085, 0.006329996045678854, 0.03361326456069946, 0.02677941508591175, 0.04118840768933296, -0.02796086110174656, 0.011559627018868923, -0.04563619941473007, 0.03155152499675751, -0.05165925249457359, 0.04799909144639969, -0.019760243594646454, 0.012741071172058582, -0.005249900743365288, 0.01915793865919113, 0.007650434039533138, 0.005139864049851894, -0.06986740231513977, -0.01927376538515091, -0.03843170404434204, -0.017003538087010384, -0.0016809527296572924, -0.060184188187122345, 0.023652061820030212, -0.04274050146341324, 0.04503389447927475, -0.029327629134058952, 0.009133031591773033, -0.0038281127344816923, 0.040562938898801804, 0.0017851978773251176, -0.0755661353468895, -0.08047723770141602, 0.02821568213403225, 0.011646497063338757, 0.01890311762690544, -0.019296931102871895, 0.0680604875087738, 0.018740957602858543, 0.06384435296058655, -0.004346442874521017, 0.0225980281829834, -0.021740900352597237, -0.03674061596393585, 0.037597741931676865, -0.04445475712418556, -0.000008155461728165392, 0.02856316603720188, -0.04190654307603836, 0.06898710876703262, -0.03780623525381088, 0.01747843250632286, 0.006080965977162123, 0.06277873367071152, 0.0354665108025074, -0.05156658962368965, 0.04190654307603836, -0.009880121797323227, 0.04966701194643974, -0.03208433464169502, 0.014038343913853168, 0.020258303731679916, 0.03400707617402077, 0.02765970677137375, 0.009903287515044212, 0.010273936204612255, 0.006764350458979607, 0.02657092548906803, 0.022713854908943176, 0.00013121131632942706, 0.015266120433807373, 0.04901837557554245, -0.0009613717556931078, 0.01764059253036976, -0.03704176843166351, 0.08158918470144272, 0.008519143797457218, -0.0032258075661957264, 0.0024497604463249445, 0.005493139382451773, 0.01614641211926937, 0.006804890464991331, -0.010383972898125648, 0.02402271144092083, -0.01170441135764122, -0.060740161687135696, 0.022470617666840553, -0.024045877158641815, 0.06180577725172043, 0.0354665108025074, 0.05249321460723877, -0.0361846424639225, -0.028586331754922867, -0.006770141888409853, -0.016690803691744804, 0.07005272805690765, -0.01165228895843029, -0.018787289038300514, 0.022424286231398582, 0.025736963376402855, -0.032176997512578964, 0.010673543438315392, 0.0049400608986616135, 0.02423120103776455, -0.05698733776807785, -0.026339270174503326, -0.06921876966953278, -0.014432159252464771, -0.033659592270851135, -0.019563335925340652, 0.030022596940398216, -0.014293165877461433, 0.00472867488861084, -0.03169051930308342, 0.05749697983264923, 0.050732631236314774, 0.013042223639786243, -0.04216136410832405, 0.008907167240977287, 0.053697824478149414, -0.02125442400574684, 0.012196680530905724, 0.01942434161901474, 0.013134886510670185, -0.05114961043000221, -0.0010996413184329867, -0.005015349015593529, 0.05050097405910492, 0.01579892821609974, -0.03889501467347145, -0.0029825689271092415, 0.05193724110722542, 0.044848572462797165, -0.06819947808980942, -0.048786722123622894, -0.05726532265543938, -0.008021083660423756, 0.03398391231894493, 0.030370080843567848, -0.010273936204612255, -0.031204042956233025, 0.06231542304158211, 0.026455096900463104, -0.008611805737018585, 0.05985986813902855, 0.006266290787607431, -0.014015178196132183, -0.07857766002416611, -0.01656339317560196, -0.05902590975165367, 0.08932649344205856, -0.02213471569120884, 0.04695663973689079, 0.059720877557992935, 0.032431818544864655, 0.043574463576078415, 0.017872247844934464, 0.05536574497818947, 0.02330457791686058, 0.06606824696063995, 0.009631091728806496, -0.02075636386871338, -0.0069207181222736835, -0.06449298560619354, 0.020988019183278084, 0.019818156957626343, -0.05944288894534111, -0.029049642384052277, -0.05082529038190842, -0.008988246321678162, -0.03122720681130886, -0.03574449568986893, 0.012115600518882275, 0.05087162181735039, 0.007407195400446653, -0.02703423611819744, 0.030277417972683907, 0.022829683497548103, -0.06430765986442566, -0.035605501383543015, -0.04109574481844902, -0.01815023459494114, 0.0055539486929774284, -0.08043090999126434, -0.016621306538581848, 0.013100137934088707, 0.0004553485196083784, 0.053234513849020004, -0.008293279446661472, -0.04028495028614998, 0.027775535359978676, 0.005999886430799961, -0.004068455658853054, -0.04790642857551575, 0.06347370147705078, 0.015486192889511585, -0.009185153990983963, -0.03685644641518593, -0.0003261279780417681, 0.009584760293364525, 0.043111152946949005, 0.04023861885070801, 0.0340302437543869, -0.02953612059354782, 0.01732785627245903, 0.0015028673224151134, -0.03157469257712364, -0.006677479483187199, 0.007963169366121292, 0.023536233231425285, 0.008339609950780869, -0.05990619957447052, -0.014791226014494896, -0.022818099707365036, -0.028493668884038925, -0.014918636530637741, -0.0017649279907345772, 0.06208376586437225, 0.02372155897319317, 0.000598323589656502, -0.035906657576560974, 0.07528814673423767, -0.023281412199139595, 0.0016433086711913347, 0.0017880935920402408, -0.06921876966953278, -0.01732785627245903, 0.030138425529003143, -0.013841436244547367, -0.01635490171611309, 0.009463140740990639, 0.010036488994956017, -0.02525048702955246, 0.021381834521889687, -0.060137856751680374, 0.02033938281238079, -0.019296931102871895, -0.05448545515537262, 0.024717679247260094, 0.07718772441148758, 0.014258417300879955, -0.005539470352232456, 0.010511384345591068, -0.017652174457907677, -0.0016838484443724155, -0.052215225994586945, 0.021080682054162025, 0.04575202986598015, 0.0000623480009380728, -0.015196623280644417, 0.001410204917192459, 0.005041410215198994, -0.004743153229355812, -0.0835350975394249, -0.014860722236335278, 0.038570698350667953, 0.002868189010769129, 0.019354846328496933, 0.0027610480319708586, 0.03159785643219948, 0.02264435961842537, 0.012694740667939186, -0.0148259736597538, 0.062176428735256195, -0.018740957602858543, -0.024161703884601593, -0.008246948011219501, 0.01978340931236744, 0.0706086978316307, 0.024045877158641815, 0.00536572840064764, 0.01495338510721922, 0.016378067433834076, -0.028030356392264366, -0.018439805135130882, 0.036879610270261765, 0.03609197959303856, -0.029350794851779938, -0.0018344246782362461, 0.017652174457907677, -0.0011090523330494761, 0.028377840295433998, 0.007082877214998007, 0.004908208269625902, -0.05337350815534592, -0.03138936683535576, -0.024601850658655167, 0.06958941370248795, 0.028285179287195206, 0.04424626752734184, -0.045867856591939926, 0.02863266132771969, 0.03986797109246254, 0.01819656603038311, -0.006839638575911522, -0.03400707617402077, 0.007812593132257462, -0.007024963386356831, -0.057867631316185, 0.015219788998365402, 0.021486079320311546, 0.02187989465892315, 0.033196281641721725, -0.02156715840101242, -0.02796086110174656, 0.010546131990849972, -0.021138595417141914, 0.024601850658655167, -0.009880121797323227, -0.038964513689279556, -0.0025438708253204823, -0.01326229702681303, -0.03312678635120392, 0.005171716678887606, -0.057867631316185, 0.007922629825770855, -0.002465686993673444, 0.01351711805909872, 0.007644642610102892, 0.03301095589995384, -0.002207969781011343, -0.04762843996286392, 0.03745875135064125, 0.002494643907994032, 0.0051572383381426334, -0.03210749849677086, 0.011316387914121151, 0.004123474005609751, -0.029976265504956245, 0.017130950465798378, 0.008044249378144741, -0.06745818257331848, 0.01840505748987198, 0.026038117706775665, -0.05045464262366295, -0.0506862998008728, 0.02826201356947422, 0.057774968445301056, -0.017906997352838516, 0.013146469369530678, 0.023791054263710976, -0.036508962512016296, -0.03138936683535576, 0.023443572223186493, 0.013134886510670185, 0.01569468341767788, 0.021393416449427605, 0.036416299641132355, -0.03352060168981552, 0.01461748406291008, -0.05443912371993065, -0.028864318504929543, 0.05337350815534592, 0.018022824078798294, -0.009376270696520805, 0.02330457791686058, 0.01464064884930849, -0.031111380085349083, 0.006196793634444475, -0.04948168992996216, 0.012115600518882275, 0.043412305414676666, -0.03613831102848053, 0.018439805135130882, -0.03046274371445179, -0.01101523544639349, -0.06143512949347496, 0.055782727897167206, -0.053697824478149414, 0.004369608126580715, -0.09071642905473709, 0.042948994785547256, 0.05114961043000221, -0.023188749328255653, 0.021787231788039207, 0.013378124684095383, 0.010540341027081013, -0.021937808021903038, 0.008241157047450542, -0.03138936683535576, -0.05856259539723396, 0.00435802573338151, -0.015856841579079628, 0.10452311486005783, 0.05152025818824768, 0.005907224025577307, 0.07945795357227325, -0.033451102674007416, 0.0003311954496894032, 0.03050907514989376, 0.06036951392889023, 0.0027393302880227566, 0.0021109639201313257, 0.007766262162476778, -0.01962124928832054, 0.009654257446527481, 0.022018887102603912, 0.025783294811844826, 0.033358439803123474, -0.020686866715550423, 0.006665897089987993, 0.014663814567029476, 0.0007427465752698481, 0.008293279446661472, 0.0017909891903400421, -0.03368275985121727, -0.018370307981967926, -0.003857069881632924, -0.0081484941765666, -0.04359763115644455, -0.02541264519095421, 0.014026761054992676, 0.034725211560726166, -0.0179301630705595, -0.030578570440411568, -0.008287487551569939, 0.03194534033536911, -0.0800139307975769, 0.006260499358177185, -0.021277589723467827, -0.05911857262253761, -0.024509187787771225, -0.015984253957867622, 0.008403316140174866, -0.06912610679864883, -0.025134658440947533, 0.0073724472895264626, 0.05013032630085945, 0.005076158791780472, -0.04512655735015869, -0.007858924567699432, -0.0683848038315773, -0.03771357238292694, 0.005319397430866957, -0.026802580803632736, 0.06027685105800629, -0.03775990381836891, -0.036624789237976074, -0.01487230509519577, 0.05550473928451538, 0.01651706174015999, -0.09349630028009415, -0.016470730304718018, 0.019134772941470146, -0.05063996836543083, -0.012219845317304134, -0.0012205367675051093, 0.023478319868445396, -0.028794821351766586, -0.010389764793217182, -0.01160016655921936, -0.0065500689670443535, 0.03831587731838226, -0.03826954588294029, -0.0006316241342574358, -0.01794174499809742, 0.029211802408099174, 0.07074769586324692, 0.021937808021903038, -0.017443684861063957, 0.03669428452849388, 0.058145616203546524, -0.04799909144639969, 0.05657035857439041, 0.03477154299616814, 0.012984310276806355, 0.05652402713894844, -0.021277589723467827, 0.013053806498646736, -0.027845032513141632, -0.04033128172159195, 0.02626977302134037, 0.0026408766862004995, 0.027891363948583603, 0.041744381189346313, 0.0067238109186291695, 0.003303991397842765, -0.055226754397153854, -0.03820004686713219, 0.02483350597321987, -0.002164534293115139, 0.031204042956233025, 0.03799155727028847, 0.020154058933258057, -0.03576766327023506, 0.08673194795846939, 0.000862918037455529, -0.014165754429996014, 0.02740488573908806, 0.04804542288184166, -0.00397289777174592, 0.009387852624058723, 0.010163900442421436, -0.0066543142311275005, -0.06426133215427399, -0.02162507362663746, 0.03215382993221283, 0.009393644519150257, 0.02340882271528244, 0.002026988659054041, -0.015752596780657768, 0.029837273061275482, 0.06435399502515793 ]
30,343
networkx.utils.backends
_convert_arguments
Convert graph arguments to the specified backend. Returns ------- args tuple and kwargs dict
def _convert_arguments(self, backend_name, args, kwargs, *, use_cache): """Convert graph arguments to the specified backend. Returns ------- args tuple and kwargs dict """ bound = self.__signature__.bind(*args, **kwargs) bound.apply_defaults() if not self.graphs: bound_kwargs = bound.kwargs del bound_kwargs["backend"] return bound.args, bound_kwargs # Convert graphs into backend graph-like object # Include the edge and/or node labels if provided to the algorithm preserve_edge_attrs = self.preserve_edge_attrs edge_attrs = self.edge_attrs if preserve_edge_attrs is False: # e.g. `preserve_edge_attrs=False` pass elif preserve_edge_attrs is True: # e.g. `preserve_edge_attrs=True` edge_attrs = None elif isinstance(preserve_edge_attrs, str): if bound.arguments[preserve_edge_attrs] is True or callable( bound.arguments[preserve_edge_attrs] ): # e.g. `preserve_edge_attrs="attr"` and `func(attr=True)` # e.g. `preserve_edge_attrs="attr"` and `func(attr=myfunc)` preserve_edge_attrs = True edge_attrs = None elif bound.arguments[preserve_edge_attrs] is False and ( isinstance(edge_attrs, str) and edge_attrs == preserve_edge_attrs or isinstance(edge_attrs, dict) and preserve_edge_attrs in edge_attrs ): # e.g. `preserve_edge_attrs="attr"` and `func(attr=False)` # Treat `False` argument as meaning "preserve_edge_data=False" # and not `False` as the edge attribute to use. preserve_edge_attrs = False edge_attrs = None else: # e.g. `preserve_edge_attrs="attr"` and `func(attr="weight")` preserve_edge_attrs = False # Else: e.g. `preserve_edge_attrs={"G": {"weight": 1}}` if edge_attrs is None: # May have been set to None above b/c all attributes are preserved pass elif isinstance(edge_attrs, str): if edge_attrs[0] == "[": # e.g. `edge_attrs="[edge_attributes]"` (argument of list of attributes) # e.g. `func(edge_attributes=["foo", "bar"])` edge_attrs = { edge_attr: 1 for edge_attr in bound.arguments[edge_attrs[1:-1]] } elif callable(bound.arguments[edge_attrs]): # e.g. `edge_attrs="weight"` and `func(weight=myfunc)` preserve_edge_attrs = True edge_attrs = None elif bound.arguments[edge_attrs] is not None: # e.g. `edge_attrs="weight"` and `func(weight="foo")` (default of 1) edge_attrs = {bound.arguments[edge_attrs]: 1} elif self.name == "to_numpy_array" and hasattr( bound.arguments["dtype"], "names" ): # Custom handling: attributes may be obtained from `dtype` edge_attrs = { edge_attr: 1 for edge_attr in bound.arguments["dtype"].names } else: # e.g. `edge_attrs="weight"` and `func(weight=None)` edge_attrs = None else: # e.g. `edge_attrs={"attr": "default"}` and `func(attr="foo", default=7)` # e.g. `edge_attrs={"attr": 0}` and `func(attr="foo")` edge_attrs = { edge_attr: bound.arguments.get(val, 1) if isinstance(val, str) else val for key, val in edge_attrs.items() if (edge_attr := bound.arguments[key]) is not None } preserve_node_attrs = self.preserve_node_attrs node_attrs = self.node_attrs if preserve_node_attrs is False: # e.g. `preserve_node_attrs=False` pass elif preserve_node_attrs is True: # e.g. `preserve_node_attrs=True` node_attrs = None elif isinstance(preserve_node_attrs, str): if bound.arguments[preserve_node_attrs] is True or callable( bound.arguments[preserve_node_attrs] ): # e.g. `preserve_node_attrs="attr"` and `func(attr=True)` # e.g. `preserve_node_attrs="attr"` and `func(attr=myfunc)` preserve_node_attrs = True node_attrs = None elif bound.arguments[preserve_node_attrs] is False and ( isinstance(node_attrs, str) and node_attrs == preserve_node_attrs or isinstance(node_attrs, dict) and preserve_node_attrs in node_attrs ): # e.g. `preserve_node_attrs="attr"` and `func(attr=False)` # Treat `False` argument as meaning "preserve_node_data=False" # and not `False` as the node attribute to use. Is this used? preserve_node_attrs = False node_attrs = None else: # e.g. `preserve_node_attrs="attr"` and `func(attr="weight")` preserve_node_attrs = False # Else: e.g. `preserve_node_attrs={"G": {"pos": None}}` if node_attrs is None: # May have been set to None above b/c all attributes are preserved pass elif isinstance(node_attrs, str): if node_attrs[0] == "[": # e.g. `node_attrs="[node_attributes]"` (argument of list of attributes) # e.g. `func(node_attributes=["foo", "bar"])` node_attrs = { node_attr: None for node_attr in bound.arguments[node_attrs[1:-1]] } elif callable(bound.arguments[node_attrs]): # e.g. `node_attrs="weight"` and `func(weight=myfunc)` preserve_node_attrs = True node_attrs = None elif bound.arguments[node_attrs] is not None: # e.g. `node_attrs="weight"` and `func(weight="foo")` node_attrs = {bound.arguments[node_attrs]: None} else: # e.g. `node_attrs="weight"` and `func(weight=None)` node_attrs = None else: # e.g. `node_attrs={"attr": "default"}` and `func(attr="foo", default=7)` # e.g. `node_attrs={"attr": 0}` and `func(attr="foo")` node_attrs = { node_attr: bound.arguments.get(val) if isinstance(val, str) else val for key, val in node_attrs.items() if (node_attr := bound.arguments[key]) is not None } preserve_graph_attrs = self.preserve_graph_attrs # It should be safe to assume that we either have networkx graphs or backend graphs. # Future work: allow conversions between backends. for gname in self.graphs: if gname in self.list_graphs: bound.arguments[gname] = [ self._convert_graph( backend_name, g, edge_attrs=edge_attrs, node_attrs=node_attrs, preserve_edge_attrs=preserve_edge_attrs, preserve_node_attrs=preserve_node_attrs, preserve_graph_attrs=preserve_graph_attrs, graph_name=gname, use_cache=use_cache, ) if getattr(g, "__networkx_backend__", "networkx") == "networkx" else g for g in bound.arguments[gname] ] else: graph = bound.arguments[gname] if graph is None: if gname in self.optional_graphs: continue raise TypeError( f"Missing required graph argument `{gname}` in {self.name} function" ) if isinstance(preserve_edge_attrs, dict): preserve_edges = False edges = preserve_edge_attrs.get(gname, edge_attrs) else: preserve_edges = preserve_edge_attrs edges = edge_attrs if isinstance(preserve_node_attrs, dict): preserve_nodes = False nodes = preserve_node_attrs.get(gname, node_attrs) else: preserve_nodes = preserve_node_attrs nodes = node_attrs if isinstance(preserve_graph_attrs, set): preserve_graph = gname in preserve_graph_attrs else: prese
(self, backend_name, args, kwargs, *, use_cache)
[ 0.0030682128854095936, -0.03189120069146156, 0.009981176815927029, 0.011048601008951664, -0.04856527969241142, 0.030656833201646805, -0.04589419066905975, 0.049860354512929916, 0.06366098672151566, -0.08195391297340393, 0.013972636312246323, 0.01571289263665676, -0.0027950331568717957, 0.03646443039178848, -0.026043131947517395, 0.03359098732471466, -0.014529113657772541, 0.03199237957596779, 0.04168520122766495, 0.0054028877057135105, -0.0268727894872427, -0.058925874531269073, 0.026812082156538963, 0.006308427546173334, 0.03897363692522049, -0.015055237337946892, 0.038993872702121735, 0.006520900875329971, 0.018555983901023865, 0.05767127126455307, -0.059168700128793716, -0.07883764058351517, 0.009819292463362217, 0.0058075981214642525, 0.05281474441289902, -0.005888540297746658, -0.026387136429548264, 0.0892791748046875, -0.06989353150129318, -0.08272286504507065, -0.02644784189760685, -0.07806868851184845, 0.0036171015817672014, 0.01942611299455166, 0.005736773833632469, 0.02408028580248356, 0.013001330196857452, 0.0317293182015419, -0.0647537112236023, -0.06127319484949112, 0.028370218351483345, -0.024464759975671768, 0.061961203813552856, 0.10352499037981033, -0.0010889247059822083, 0.028491631150245667, -0.005848069209605455, 0.07891858369112015, 0.0036651610862463713, 0.005230885464698076, 0.039115287363529205, 0.029179640114307404, -0.03951999917626381, -0.04496335610747337, -0.04625843092799187, -0.00785138737410307, -0.06074707210063934, -0.033145803958177567, -0.034501586109399796, 0.006111131049692631, -0.061839789152145386, -0.010031766258180141, 0.03690961375832558, 0.010724833235144615, 0.03164837509393692, -0.013102508150041103, -0.004206461366266012, 0.053583692759275436, -0.035735953599214554, -0.0025901482440531254, 0.015733126550912857, 0.021348487585783005, -0.03122342936694622, -0.042332734912633896, 0.01138248760253191, -0.0193552877753973, -0.06151602417230606, 0.07564042508602142, 0.019132697954773903, -0.07689502835273743, -0.05698326230049133, -0.014013106934726238, 0.024565936997532845, 0.1010967269539833, 0.02830951102077961, -0.009272933006286621, -0.026306193321943283, -0.05977576598525047, 0.06519889086484909, -0.00925269816070795, 0.0006576548330485821, 0.005493947304785252, -0.05139825493097305, 0.004029400646686554, -0.007041965611279011, -0.04990082606673241, -0.015399240888655186, -0.023533925414085388, 0.0268727894872427, -0.01757456175982952, -0.0710671916604042, -0.01117001473903656, 0.03223520517349243, -0.007770444732159376, -0.01896069571375847, 0.0029164461884647608, -0.0634586364030838, -0.027641739696264267, -0.003837163094431162, 0.014245815575122833, -0.03363145887851715, 0.03187096491456032, 0.018394099548459053, 0.007087495643645525, 0.01402322482317686, 0.0020007884595543146, 0.04245414957404137, 0.03033306449651718, 0.013132861815392971, -0.056254785507917404, 0.043344512581825256, -0.02381722256541252, -0.034967001527547836, 0.061758849769830704, 0.033489808440208435, -0.03875104710459709, -0.03743573650717735, 0.031466253101825714, -0.027864329516887665, 0.04743209108710289, 0.034845590591430664, -0.014923705719411373, 0.04395157843828201, -0.0051752375438809395, -0.035897836089134216, -0.03927716985344887, 0.011352134868502617, -0.057266559451818466, -0.0613541379570961, -0.04208990931510925, 0.019061872735619545, 0.015793833881616592, -0.0049425289034843445, -0.015763480216264725, -0.012647208757698536, 0.031081778928637505, -0.0804160088300705, -0.01589501090347767, -0.04637984186410904, 0.013851222582161427, -0.04868669435381889, -0.05139825493097305, 0.03245779499411583, -0.06948882341384888, 0.048848576843738556, -0.01705855503678322, 0.045934662222862244, -0.03703102841973305, -0.027742916718125343, 0.049779411405324936, 0.0006054851110093296, -0.03379334136843681, -0.025112297385931015, 0.03599901497364044, 0.005139825399965048, 0.08482735604047775, 0.04945564270019531, -0.004831233527511358, -0.019921882078051567, 0.05026506632566452, 0.05475735291838646, -0.0439920499920845, -0.038568928837776184, -0.011777080595493317, 0.055283479392528534, -0.024100519716739655, 0.00864563137292862, -0.005827833898365498, 0.03207332268357277, 0.004907116759568453, 0.009535995312035084, -0.0006867434130981565, 0.06018047779798508, 0.037557151168584824, 0.013254274614155293, -0.060868486762046814, -0.02919987589120865, 0.016927024349570274, -0.0019894058350473642, 0.06422758102416992, 0.003642396070063114, -0.07940423488616943, 0.0605042465031147, 0.01931481622159481, -0.04075436666607857, 0.007213967852294445, 0.004808468744158745, 0.002351116156205535, -0.008691161870956421, -0.011078954674303532, -0.011190250515937805, -0.04306121543049812, 0.05111495777964592, 0.017402559518814087, -0.018211979418992996, -0.0006646108231507242, 0.020458124577999115, 0.06483464688062668, -0.029806941747665405, 0.006500665098428726, 0.03413734585046768, -0.01370957400649786, 0.01640089973807335, -0.030515184625983238, 0.026893023401498795, -0.07636890560388565, 0.04265650361776352, -0.013588161207735538, 0.08033506572246552, -0.008003153838217258, 0.0486462228000164, -0.008256097324192524, 0.01753409020602703, 0.02403981424868107, 0.03460276126861572, -0.06159696355462074, 0.040046121925115585, 0.0010807039216160774, 0.0007986712153069675, -0.020488478243350983, -0.01845480687916279, 0.008883398957550526, -0.04670361056923866, 0.008847987279295921, 0.040086593478918076, -0.019800469279289246, 0.07337404787540436, 0.01803997904062271, -0.013841104693710804, -0.023068508133292198, -0.039459291845560074, 0.005620419513434172, -0.01355780754238367, 0.00440122839063406, -0.041401900351047516, -0.029564114287495613, -0.02059977315366268, -0.021044954657554626, 0.030414007604122162, 0.015540889464318752, 0.024889705702662468, 0.0019160520751029253, -0.04561089351773262, 0.05771174281835556, 0.05750938504934311, -0.022481678053736687, 0.03458252549171448, -0.03658584505319595, -0.06074707210063934, 0.01834351196885109, 0.014286287128925323, -0.01159496046602726, 0.013567925430834293, 0.04666313901543617, -0.009060460142791271, -0.019638584926724434, 0.0019286993192508817, -0.019689174368977547, 0.028066685423254967, 0.006035247817635536, 0.03083895333111286, -0.026731140911579132, -0.045975133776664734, 0.011078954674303532, -0.021975789219141006, -0.02268403396010399, -0.017503736540675163, -0.024019578471779823, 0.027661975473165512, -0.01377028040587902, 0.05941152572631836, 0.0020842598751187325, 0.009338698349893093, 0.017716210335493088, 0.0053421808406710625, -0.018141156062483788, -0.021732963621616364, -0.014620172791182995, 0.055283479392528534, -0.004805939272046089, 0.06621066480875015, -0.01617830991744995, 0.09551171958446503, -0.00017437338829040527, 0.0372333824634552, -0.01448864210397005, 0.036666788160800934, -0.014164873398840427, -0.02090330608189106, 0.019264228641986847, -0.043263569474220276, -0.029989061877131462, 0.0034956885501742363, -0.001741520594805479, 0.01095754187554121, -0.0040724012069404125, 0.04346592724323273, -0.04020800441503525, 0.03976282477378845, 0.03943905606865883, -0.06519889086484909, 0.015854541212320328, -0.0435873381793499, 0.025840776041150093, -0.029948590323328972, 0.05378604680299759, 0.046096544712781906, 0.041401900351047516, 0.05609289929270744, -0.002481382340192795, -0.009156579151749611, 0.053381338715553284, 0.009768703952431679, 0.03741550073027611, -0.06920552253723145, 0.005433240905404091, 0.013021565973758698, 0.0063387807458639145, 0.0016302252188324928, -0.0236958097666502, 0.023716045543551445, 0.034258756786584854, -0.011746726930141449, 0.036322783678770065, -0.004649113863706589, 0.00816503819078207, 0.012950741685926914, 0.0052106501534581184, 0.06018047779798508, -0.010077295824885368, -0.05184343829751015, 0.03976282477378845, -0.05402887612581253, 0.03707149624824524, 0.02966529317200184, -0.014306521974503994, -0.011119426228106022, -0.025112297385931015, -0.03711196780204773, -0.013628631830215454, 0.059897180646657944, -0.0036980437580496073, 0.002060230355709791, 0.009510700590908527, 0.05491923913359642, -0.01857621967792511, 0.041320960968732834, 0.014245815575122833, 0.04990082606673241, -0.07847339659929276, 0.0317293182015419, -0.053462281823158264, 0.027985742315649986, -0.03415758162736893, -0.0655631273984909, 0.010482006706297398, -0.012181791476905346, 0.00971811544150114, -0.0004941896768286824, 0.01780726946890354, -0.006455135066062212, 0.002473793923854828, -0.002127260435372591, 0.016623491421341896, 0.027398912236094475, -0.002979682292789221, 0.0528956837952137, -0.0037511619739234447, 0.0325792096555233, -0.028329746797680855, -0.03731432557106018, 0.0016972554149106145, 0.006844669114798307, 0.018636927008628845, -0.024424288421869278, -0.015227239578962326, 0.038184452801942825, 0.03456228971481323, -0.047877274453639984, -0.038649868220090866, -0.04459911584854126, -0.03245779499411583, 0.04119954630732536, 0.03529077023267746, -0.00113951344974339, 0.003763809334486723, 0.07418346405029297, 0.08138731867074966, 0.06167790666222572, 0.059856709092855453, 0.03500747308135033, -0.018131038174033165, -0.0989922285079956, -0.0028228568844497204, 0.02055930159986019, 0.052652858197689056, 0.029564114287495613, 0.021854376420378685, 0.053583692759275436, -0.02919987589120865, 0.016997847706079483, 0.04650125652551651, 0.0114229591563344, 0.009844587184488773, 0.05742844566702843, 0.02024565078318119, -0.04006635770201683, -0.004355698823928833, -0.050669778138399124, 0.0774616226553917, -0.010826010257005692, -0.060908958315849304, 0.022785210981965065, -0.04548947885632515, -0.014346993528306484, 0.025618186220526695, 0.020488478243350983, -0.021773435175418854, 0.037051260471343994, 0.01993199996650219, -0.04585371911525726, 0.001035174005664885, -0.0046541728079319, -0.05208626389503479, -0.052571915090084076, -0.04269697517156601, -0.02924034558236599, 0.022906623780727386, -0.020073648542165756, -0.04544900730252266, 0.058035511523485184, 0.03029259480535984, 0.04621795937418938, -0.04310168698430061, -0.08960293978452682, -0.01421546284109354, 0.006880081258714199, -0.00533206295222044, -0.019284464418888092, 0.03565501049160957, 0.0006282500689849257, -0.014083931222558022, -0.03431946411728859, 0.00373851484619081, -0.001708637923002243, 0.05597148463129997, 0.05945199728012085, -0.015965836122632027, -0.08474641293287277, -0.0015758421504870057, 0.05750938504934311, -0.0448419414460659, -0.014306521974503994, -0.025962188839912415, 0.011686020530760288, 0.03458252549171448, -0.020184945315122604, -0.045003827661275864, -0.04917234554886818, -0.04666313901543617, -0.023088743910193443, -0.024889705702662468, 0.03970211744308472, 0.033914756029844284, 0.03059612773358822, 0.008023388683795929, 0.03444087877869606, -0.04472053050994873, -0.007380911149084568, 0.035311006009578705, -0.08272286504507065, -0.027621503919363022, 0.04731067642569542, -0.01163543201982975, 0.03832609951496124, 0.049738943576812744, 0.01663360930979252, -0.03322674706578255, -0.0009276727214455605, -0.04350639879703522, -0.017281144857406616, -0.02776315249502659, -0.010633773170411587, -0.009232462383806705, 0.025314653292298317, -0.015803951770067215, -0.028957048431038857, 0.06908411532640457, -0.025881247594952583, 0.027277499437332153, -0.007305027451366186, 0.018434571102261543, 0.059006817638874054, 0.019598115235567093, -0.007760327309370041, 0.01640089973807335, 0.00046984379878267646, 0.014306521974503994, -0.05083166062831879, -0.040815070271492004, 0.04662267118692398, 0.03897363692522049, 0.022542385384440422, -0.02497064881026745, 0.019840940833091736, 0.007881740108132362, 0.006955964490771294, -0.029017755761742592, 0.061799321323633194, -0.04180661216378212, 0.010234121233224869, 0.02013435587286949, 0.029523644596338272, 0.04682502523064613, 0.022137673571705818, 0.017119262367486954, 0.04803915694355965, 0.02885587140917778, -0.01225261576473713, -0.02102471888065338, 0.03288274258375168, 0.041361432522535324, -0.06216355785727501, 0.02986764721572399, -0.01954752579331398, -0.020741421729326248, 0.03980329632759094, -0.007608560845255852, -0.0010067177936434746, -0.04281838983297348, -0.08498924225568771, 0.008423040620982647, 0.04152331501245499, 0.03844751417636871, 0.017503736540675163, -0.06766762584447861, 0.0003225038235541433, 0.015692656859755516, 0.003280685981735587, -0.005061412695795298, -0.04860575124621391, -0.0060656010173261166, -0.015115943737328053, -0.019962353631854057, 0.005671008490025997, 0.05139825493097305, 0.0136488676071167, 0.030414007604122162, -0.00796774122864008, 0.0040799896232783794, -0.009080695919692516, -0.02936176024377346, -0.015753362327814102, -0.03401593118906021, -0.03138531371951103, -0.01138248760253191, -0.008342098444700241, -0.00401422381401062, -0.00011904184793820605, -0.05580960214138031, 0.0018793751951307058, 0.011180132627487183, -0.04666313901543617, 0.03840704262256622, 0.008969400078058243, 0.023635104298591614, 0.02292685955762863, 0.08474641293287277, 0.01834351196885109, -0.008888457901775837, -0.04391110688447952, -0.006374192889779806, 0.0439920499920845, -0.058966346085071564, -0.006794080603867769, 0.02217814512550831, -0.016846081241965294, 0.003852339694276452, -0.014397582039237022, -0.060787543654441833, -0.047917742282152176, 0.004262109287083149, 0.0626087412238121, 0.006778903771191835, -0.017867976799607277, 0.010163296945393085, -0.050588835030794144, 0.0006481694290414453, -0.03389452025294304, 0.0006026395130902529, 0.004090107046067715, 0.0355335958302021, -0.0011129543418064713, -0.04391110688447952, -0.01815127395093441, -0.033489808440208435, -0.03500747308135033, 0.07377875596284866, 0.01297097746282816, 0.006090895738452673, 0.011736609973013401, -0.02276497520506382, -0.022522149607539177, 0.009515759535133839, -0.06244685873389244, 0.005802539177238941, 0.004907116759568453, -0.034339699894189835, -0.045287124812603, -0.02780362404882908, -0.01760491356253624, -0.08628431707620621, 0.05779268592596054, -0.04289933294057846, 0.013952400535345078, -0.08766033500432968, 0.016997847706079483, 0.02478852868080139, -0.028835635632276535, -0.0023473219480365515, 0.026124073192477226, -0.029301052913069725, -0.013325098901987076, -0.012151437811553478, -0.02458617277443409, -0.0008688632515259087, 0.033105332404375076, -0.005812657065689564, 0.04735114797949791, 0.002103230683133006, 0.02153060771524906, 0.02318992093205452, -0.02381722256541252, -0.01237402856349945, 0.043304041028022766, 0.08612243086099625, -0.034845590591430664, 0.0035842189099639654, 0.0057671270333230495, -0.0473916195333004, 0.0007917152834124863, 0.010947423987090588, 0.05419075861573219, 0.02323039248585701, -0.01648184284567833, 0.008104330860078335, -0.0363834910094738, 0.004246932454407215, 0.06062565743923187, 0.019112462177872658, -0.07851386815309525, -0.028673751279711723, -0.0045707011595368385, -0.0037208087742328644, -0.038933165371418, -0.04403252154588699, 0.018869634717702866, 0.019223757088184357, -0.021146133542060852, -0.026670433580875397, -0.019557643681764603, 0.028147626668214798, -0.033833812922239304, -0.009576465934515, -0.013618513941764832, -0.01633007638156414, 0.001003555953502655, 0.015389123000204563, 0.017787033692002296, -0.04245414957404137, 0.009667525999248028, -0.02559795044362545, 0.06232544407248497, -0.023979106917977333, 0.02171272784471512, -0.07131002098321915, -0.07329310476779938, -0.03227567672729492, 0.021085426211357117, -0.003553865710273385, 0.04476100206375122, -0.01252579502761364, -0.05933058634400368, -0.011938964948058128, 0.05969482287764549, 0.0021626725792884827, -0.05479782447218895, 0.0018831694032996893, 0.02318992093205452, 0.01271803304553032, -0.04820103943347931, -0.01605689525604248, 0.05334086716175079, -0.012809093110263348, -0.009525877423584461, 0.0009264080435968935, -0.020660480484366417, 0.03272085636854172, -0.04265650361776352, 0.007568089757114649, -0.027196558192372322, 0.022522149607539177, 0.07353592664003372, 0.007067260332405567, -0.012121085077524185, -0.0019615821074694395, 0.003171919845044613, -0.060828015208244324, 0.046865496784448624, -0.03605972230434418, -0.005061412695795298, 0.05390746146440506, -0.0023473219480365515, 0.037597622722387314, -0.004525171127170324, -0.03858916461467743, 0.004573230631649494, 0.0010414975695312023, -0.058156922459602356, 0.03266015276312828, 0.022076968103647232, 0.02335180528461933, -0.0482415109872818, 0.026326429098844528, 0.028754692524671555, -0.014124402776360512, 0.004325345158576965, 0.017159732058644295, 0.019608231261372566, -0.05759032815694809, 0.05269332975149155, 0.05981623753905296, -0.010006471537053585, -0.004816057160496712, 0.03193167224526405, -0.025800306349992752, 0.014518995769321918, 0.047796331346035004, -0.021813904866576195, -0.10053013265132904, -0.05091260373592377, 0.030899660661816597, -0.011675902642309666, -0.00909587275236845, 0.03474441170692444, -0.014741586521267891, 0.025456301867961884, 0.05087213218212128 ]
30,344
networkx.utils.backends
_convert_graph
null
def _convert_graph( self, backend_name, graph, *, edge_attrs, node_attrs, preserve_edge_attrs, preserve_node_attrs, preserve_graph_attrs, graph_name, use_cache, ): if ( use_cache and (nx_cache := getattr(graph, "__networkx_cache__", None)) is not None ): cache = nx_cache.setdefault("backends", {}).setdefault(backend_name, {}) # edge_attrs: dict | None # node_attrs: dict | None # preserve_edge_attrs: bool (False if edge_attrs is not None) # preserve_node_attrs: bool (False if node_attrs is not None) # preserve_graph_attrs: bool key = edge_key, node_key, graph_key = ( frozenset(edge_attrs.items()) if edge_attrs is not None else preserve_edge_attrs, frozenset(node_attrs.items()) if node_attrs is not None else preserve_node_attrs, preserve_graph_attrs, ) if cache: warning_message = ( f"Using cached graph for {backend_name!r} backend in " f"call to {self.name}.\n\nFor the cache to be consistent " "(i.e., correct), the input graph must not have been " "manually mutated since the cached graph was created. " "Examples of manually mutating the graph data structures " "resulting in an inconsistent cache include:\n\n" " >>> G[u][v][key] = val\n\n" "and\n\n" " >>> for u, v, d in G.edges(data=True):\n" " ... d[key] = val\n\n" "Using methods such as `G.add_edge(u, v, weight=val)` " "will correctly clear the cache to keep it consistent. " "You may also use `G.__networkx_cache__.clear()` to " "manually clear the cache, or set `G.__networkx_cache__` " "to None to disable caching for G. Enable or disable " "caching via `nx.config.cache_converted_graphs` config." ) # Do a simple search for a cached graph with compatible data. # For example, if we need a single attribute, then it's okay # to use a cached graph that preserved all attributes. # This looks for an exact match first. for compat_key in itertools.product( (edge_key, True) if edge_key is not True else (True,), (node_key, True) if node_key is not True else (True,), (graph_key, True) if graph_key is not True else (True,), ): if (rv := cache.get(compat_key)) is not None: warnings.warn(warning_message) return rv if edge_key is not True and node_key is not True: # Iterate over the items in `cache` to see if any are compatible. # For example, if no edge attributes are needed, then a graph # with any edge attribute will suffice. We use the same logic # below (but switched) to clear unnecessary items from the cache. # Use `list(cache.items())` to be thread-safe. for (ekey, nkey, gkey), val in list(cache.items()): if edge_key is False or ekey is True: pass elif ( edge_key is True or ekey is False or not edge_key.issubset(ekey) ): continue if node_key is False or nkey is True: pass elif ( node_key is True or nkey is False or not node_key.issubset(nkey) ): continue if graph_key and not gkey: continue warnings.warn(warning_message) return val backend = _load_backend(backend_name) rv = backend.convert_from_nx( graph, edge_attrs=edge_attrs, node_attrs=node_attrs, preserve_edge_attrs=preserve_edge_attrs, preserve_node_attrs=preserve_node_attrs, preserve_graph_attrs=preserve_graph_attrs, name=self.name, graph_name=graph_name, ) if use_cache and nx_cache is not None: # Remove old cached items that are no longer necessary since they # are dominated/subsumed/outdated by what was just calculated. # This uses the same logic as above, but with keys switched. cache[key] = rv # Set at beginning to be thread-safe for cur_key in list(cache): if cur_key == key: continue ekey, nkey, gkey = cur_key if ekey is False or edge_key is True: pass elif ekey is True or edge_key is False or not ekey.issubset(edge_key): continue if nkey is False or node_key is True: pass elif nkey is True or node_key is False or not nkey.issubset(node_key): continue if gkey and not graph_key: continue cache.pop(cur_key, None) # Use pop instead of del to be thread-safe return rv
(self, backend_name, graph, *, edge_attrs, node_attrs, preserve_edge_attrs, preserve_node_attrs, preserve_graph_attrs, graph_name, use_cache)
[ 0.03547866642475128, -0.045595861971378326, -0.03831617906689644, 0.037689968943595886, -0.01404078584164381, 0.0007564656552858651, -0.04238653928041458, 0.020430076867341995, 0.10864730924367905, -0.08539928495883942, 0.028277261182665825, 0.02751406840980053, 0.0025782210286706686, 0.03254331275820732, 0.004461741074919701, 0.02062576822936535, -0.030410287901759148, 0.03451978415250778, 0.025283198803663254, -0.000640274491161108, -0.022328274324536324, -0.0965145006775856, 0.030821237713098526, 0.010166116058826447, 0.029705801978707314, -0.002793480409309268, 0.05307123437523842, 0.009735597297549248, 0.01570415496826172, 0.05800263211131096, -0.029823215678334236, -0.02015610970556736, 0.015498679131269455, 0.015938982367515564, 0.016917433589696884, 0.024989662691950798, -0.028159847483038902, 0.015244281850755215, -0.07577131688594818, -0.0716618224978447, 0.018786277621984482, -0.06594765931367874, 0.021447667852044106, -0.01969623751938343, 0.016966357827186584, 0.0058511425741016865, -0.01571393944323063, 0.019843006506562233, 0.02612466737627983, -0.07154440879821777, -0.009623074904084206, -0.042503952980041504, -0.004285619594156742, 0.11201318353414536, -0.015254066325724125, -0.0027445578016340733, -0.0046525392681360245, 0.08258134871721268, -0.006428429391235113, 0.04723966121673584, -0.010156331583857536, -0.031564861536026, -0.03978385776281357, 0.014207122847437859, -0.031114771962165833, -0.015488894656300545, -0.041603777557611465, -0.0542062371969223, -0.029197007417678833, 0.0016376839485019445, -0.02952967956662178, 0.0035468884743750095, 0.04035135731101036, -0.014089708216488361, 0.017122909426689148, -0.016447776928544044, 0.008879452012479305, 0.04070360213518143, -0.044617410749197006, -0.012847074307501316, 0.04821811243891716, 0.009280617348849773, -0.0325237438082695, -0.07862839847803116, 0.039666444063186646, 0.0009546022047288716, 0.006653473246842623, 0.04923570156097412, -0.02708354964852333, -0.05134915933012962, -0.033189091831445694, -0.029412265866994858, 0.02700527384877205, 0.06410817056894302, 0.04426516592502594, -0.007641709875315428, -0.01924614980816841, -0.07796305418014526, 0.05174053832888603, 0.0007858192548155785, 0.00838044099509716, 0.02162378840148449, -0.07956771552562714, -0.0008506416925229132, 0.00589517317712307, -0.07256199419498444, 0.004990105051547289, -0.018336189910769463, 0.021388959139585495, -0.06391248106956482, -0.06637818366289139, 0.022347843274474144, 0.036124445497989655, -0.00184193579480052, 0.020038696005940437, 0.003857546951621771, -0.06845249980688095, -0.0290208850055933, 0.016467345878481865, 0.027298809960484505, -0.05217105895280838, 0.05894194543361664, -0.00017657999705988914, 0.03297382965683937, 0.01208388153463602, -0.02066490612924099, 0.06406903266906738, 0.009495876729488373, 0.011653362773358822, -0.014862685464322567, 0.025400612503290176, -0.0012768798042088747, 0.0033560902811586857, 0.0767497718334198, 0.017817610874772072, 0.0013270254712551832, -0.03553737699985504, 0.036672379821538925, 0.010792325250804424, 0.04226912558078766, -0.004447064362466335, -0.029118729755282402, 0.05898108333349228, 0.017846964299678802, 0.027240103110671043, -0.05941160395741463, 0.004373680334538221, -0.039666444063186646, -0.03823790326714516, -0.06305144727230072, 0.03733772784471512, 0.02303275838494301, -0.002255331724882126, -0.00791078433394432, -0.041094981133937836, 0.018394896760582924, -0.0807809978723526, 0.02749449945986271, -0.03406969830393791, 0.03538082167506218, -0.05620228126645088, -0.027944589033722878, 0.03199537843465805, -0.0461437962949276, 0.03622229024767876, -0.03692677617073059, 0.009217017330229282, -0.04810069873929024, -0.019089598208665848, 0.021799908950924873, -0.005308101885020733, -0.04293447360396385, -0.05260157585144043, -0.009769842959940434, -0.027748897671699524, 0.010880385525524616, 0.04187774285674095, -0.009168094955384731, 0.012661168351769447, 0.04438257962465286, 0.01911895163357258, -0.04872690886259079, -0.05451934412121773, 0.01427561417222023, -0.0048531219363212585, 0.020273525267839432, 0.04888346046209335, -0.015586739405989647, 0.05604572966694832, 0.02663346193730831, 0.01775890402495861, 0.014128846116364002, 0.010430297814309597, 0.03154529258608818, -0.004728368949145079, -0.08915654569864273, -0.012925350107252598, 0.020332232117652893, -0.06039005517959595, 0.10582936555147171, -0.012230649590492249, -0.042112573981285095, 0.07616270333528519, 0.05299295857548714, -0.028746917843818665, -0.002042518462985754, -0.009246370755136013, -0.009720920585095882, 0.0013624943094328046, 0.04446085914969444, -0.03997954726219177, -0.019060244783759117, 0.02064533717930317, 0.013414576649665833, -0.03493073582649231, 0.035243839025497437, 0.028394676744937897, 0.07706287503242493, -0.010508574545383453, -0.041525501757860184, 0.00045895512448623776, -0.017122909426689148, -0.030371148139238358, -0.0240307804197073, 0.030371148139238358, -0.08031133562326431, 0.016985926777124405, 0.017445798963308334, 0.03921635448932648, -0.0290208850055933, 0.06657387316226959, 0.005753297358751297, 0.04359981790184975, -0.016858726739883423, 0.08500790596008301, -0.06896129250526428, 0.020058264955878258, 0.02649647928774357, -0.0007589118322357535, 0.013336299918591976, -0.004097267519682646, -0.045047927647829056, -0.03164313733577728, -0.00714269932359457, 0.023248018696904182, -0.03788565844297409, 0.03637884557247162, 0.0031016927678138018, -0.021878186613321304, -0.015850922092795372, -0.017514290288090706, 0.015136651694774628, 0.01568458415567875, -0.006418644916266203, -0.017064202576875687, -0.05956815555691719, -0.07757167518138885, -0.05753297731280327, 0.032210636883974075, 0.0028179415967315435, 0.008732683956623077, 0.008150504902005196, -0.06375592947006226, -0.0039871917106211185, 0.05154484882950783, -0.02500923164188862, 0.020821457728743553, 0.05960729345679283, -0.03541995957493782, 0.02847295254468918, -0.014461520127952099, -0.017113124951720238, 0.028844764456152916, 0.04179946705698967, 0.007333497516810894, -0.015938982367515564, 0.004574263002723455, 0.022269567474722862, -0.00233850022777915, 0.04853121563792229, -0.02367853745818138, -0.0023727461230009794, -0.03843359276652336, -0.0077982619404792786, -0.03551780804991722, -0.03647669032216072, -0.029294852167367935, -0.05815918371081352, 0.01868843287229538, -0.012798151932656765, 0.038120489567518234, -0.011154352687299252, -0.021310683339834213, 0.009941072203218937, -0.0142462607473135, 0.00037945591611787677, -0.03727902099490166, -0.03949031978845596, 0.07267941534519196, 0.05361916869878769, 0.04371723532676697, 0.0027421116828918457, 0.04023394361138344, -0.006824702490121126, 0.09588829427957535, -0.001544731087051332, -0.007622140925377607, -0.012993842363357544, 0.00111054303124547, 0.07843270897865295, -0.03949031978845596, -0.026653030887246132, 0.012661168351769447, 0.028825195506215096, 0.008395117707550526, -0.05154484882950783, 0.01496053021401167, 0.015488894656300545, 0.06195557862520218, 0.0290208850055933, -0.015175789594650269, 0.057885218411684036, -0.04880518466234207, 0.06884387880563736, -0.04817897453904152, -0.003216660814359784, 0.035733066499233246, 0.03201494738459587, 0.06203385442495346, -0.030136320739984512, -0.0031310461927205324, 0.012739444151520729, -0.011624009348452091, 0.042151711881160736, -0.060742296278476715, 0.03541995957493782, 0.020821457728743553, -0.0373181588947773, 0.016349932178854942, -0.004610954783856869, 0.0639907568693161, -0.008336410857737064, -0.021936893463134766, -0.005577176343649626, -0.00984322652220726, 0.010205253958702087, 0.01576286181807518, -0.010224822908639908, 0.007695524487644434, -0.0067611029371619225, -0.0816420316696167, 0.018893906846642494, 0.007411773782223463, 0.050448983907699585, 0.06633904576301575, -0.028355538845062256, -0.025968115776777267, -0.056397970765829086, -0.03798350691795349, -0.01582156866788864, 0.010263960808515549, 0.007778692990541458, 0.005151549819856882, 0.017357738688588142, 0.007216083351522684, -0.009691567160189152, 0.01181969977915287, 0.03107563406229019, 0.036144014447927475, -0.09220931679010391, -0.01965709961950779, -0.03483289107680321, 0.004603616427630186, -0.011624009348452091, -0.020019127056002617, 0.015958551317453384, -0.024402592331171036, 0.04242567718029022, -0.006927439942955971, 0.026418203487992287, 0.03686806932091713, 0.03579177334904671, -0.02168249525129795, 0.029686233028769493, 0.04919656366109848, 0.019285287708044052, 0.06923525780439377, -0.023463279008865356, 0.076945461332798, -0.04864863306283951, -0.04520447924733162, 0.0191385205835104, 0.0423082634806633, 0.006873624864965677, -0.024735266342759132, 0.029236145317554474, 0.06755232065916061, 0.022249998524785042, -0.032739002257585526, -0.05553693324327469, -0.035126425325870514, -0.0246569886803627, 0.03772910684347153, 0.05768952891230583, -0.019060244783759117, 0.02712268754839897, 0.07984168082475662, 0.042621366679668427, 0.012886212207376957, 0.03596789389848709, 0.0019238811219111085, -0.008982188999652863, -0.0657128319144249, -0.00356645742431283, 0.003603149438276887, 0.05808090791106224, 0.03737686574459076, -0.04340412840247154, 0.0540105476975441, 0.035224270075559616, -0.007064423058182001, 0.01916787400841713, 0.009070249274373055, -0.05271899327635765, 0.01379617303609848, -0.027181396260857582, -0.022954482585191727, 0.013189532794058323, -0.07444062829017639, 0.06743490695953369, 0.027846742421388626, -0.05604572966694832, 0.039079371839761734, -0.05013587698340416, 0.00614957045763731, 0.003808624343946576, 0.021878186613321304, 0.005826681386679411, -0.025224491953849792, -0.028257692232728004, -0.013160179369151592, -0.005953880026936531, 0.022308705374598503, -0.05025329440832138, -0.043482404202222824, -0.010567281395196915, -0.06199471652507782, 0.06555628031492233, -0.021799908950924873, -0.010988015681505203, 0.01911895163357258, 0.032132361084222794, 0.040116529911756516, -0.02565501071512699, -0.07764995098114014, 0.0061397859826684, 0.005234717857092619, -0.003688763827085495, -0.01820899173617363, 0.06579110771417618, -0.010577065870165825, 0.00098884804174304, -0.02166292630136013, 0.0019483424257487059, 0.012563323602080345, 0.0335804708302021, 0.02956881746649742, 0.002661389298737049, -0.02749449945986271, -0.006902978755533695, 0.013326515443623066, -0.05678935348987579, -0.014422382228076458, -0.03786608949303627, -0.016545623540878296, -0.017044633626937866, -0.02708354964852333, 0.0025855593848973513, -0.018913475796580315, -0.047944147139787674, -0.005572284106165171, -0.00441526435315609, 0.009867687709629536, 0.020958440378308296, 0.045948103070259094, -0.022915344685316086, 0.03939247503876686, -0.018365543335676193, -0.03788565844297409, 0.032269347459077835, -0.08899999409914017, -0.025498459115624428, 0.0034221357200294733, 0.009583937004208565, 0.006785564590245485, 0.04712224751710892, -0.014197338372468948, -0.006545843556523323, -0.0005604695179499686, -0.051936231553554535, -0.005342347547411919, -0.056358832865953445, -0.024950524792075157, 0.03988170251250267, 0.032249778509140015, 0.019441841170191765, -0.034617628902196884, 0.0326215885579586, 0.046887416392564774, -0.012465477921068668, -0.026339927688241005, 0.023326294496655464, 0.07894150167703629, 0.019960420206189156, 0.0034735044464468956, -0.008160289376974106, -0.04269964247941971, -0.031173478811979294, -0.078863225877285, -0.03046899475157261, 0.049979325383901596, 0.046965695917606354, 0.06113367900252342, -0.010811894200742245, -0.009021326899528503, 0.03144744783639908, 0.016535839065909386, -0.01580199971795082, 0.0313691683113575, -0.05185795575380325, -0.04540017247200012, -0.0026075744535773993, -0.0017232985701411963, 0.06637818366289139, 0.022054307162761688, -0.06371679157018661, 0.04121239855885506, 0.03412840515375137, -0.06136850640177727, -0.019989773631095886, 0.019070029258728027, 0.008967512287199497, -0.0192363653331995, -0.005963664501905441, 0.0412515364587307, 0.003698548534885049, 0.047513626515865326, 0.02414819411933422, 0.0024057687260210514, -0.04958794638514519, -0.07393182814121246, -0.001985034439712763, 0.0423082634806633, -0.02510707825422287, 0.048022422939538956, -0.05134915933012962, -0.00034062357735820115, 0.024402592331171036, 0.013199317269027233, -0.010929308831691742, -0.01404078584164381, -0.00786186195909977, -0.013101471588015556, -0.004302742425352335, 0.01006827037781477, -0.001026762998662889, -0.0037963935174047947, 0.007460696157068014, 0.011164137162268162, 0.03888368234038353, 0.01724032312631607, -0.04195601865649223, 0.0571807324886322, -0.01572372391819954, -0.004865352530032396, -0.009544799104332924, -0.04195601865649223, -0.022426119074225426, 0.011379396542906761, -0.05561520904302597, -0.016839157789945602, 0.003688763827085495, 0.024970093742012978, 0.05659366026520729, 0.04242567718029022, 0.006007695104926825, -0.0009448176715523005, 0.07514511048793793, 0.048452939838171005, -0.016486914828419685, -0.018610157072544098, -0.012211080640554428, 0.0671609416604042, -0.00983344204723835, 0.029236145317554474, 0.01875692419707775, -0.01725989207625389, 0.011643578298389912, -0.0030845697037875652, -0.05510641634464264, -0.036731086671352386, 0.02025395631790161, 0.06817853450775146, -0.026790015399456024, -0.0048531219363212585, 0.008683761581778526, -0.02610509842634201, -0.010831463150680065, 0.03872712701559067, -0.02315017394721508, 0.008072229102253914, 0.04907914996147156, -0.007661278825253248, -0.020009342581033707, 0.06164247542619705, -0.04446085914969444, -0.018864553421735764, 0.03354133293032646, -0.05616314336657524, -0.02947097271680832, 0.02017567865550518, 0.007382419891655445, -0.009358893148601055, 0.012837289832532406, -0.05271899327635765, 0.02949054166674614, 0.019412487745285034, -0.025263629853725433, -0.006668149959295988, 0.004146190360188484, 0.0076270331628620625, -0.09549691528081894, 0.017612135037779808, 0.02518535405397415, 0.014383244328200817, -0.06352110207080841, 0.03154529258608818, 0.04630034789443016, -0.01619338057935238, 0.028140278533101082, -0.014079923741519451, 0.027729328721761703, -0.004314973019063473, 0.009691567160189152, -0.06003781408071518, -0.042543090879917145, 0.059294190257787704, -0.01496053021401167, 0.06152505800127983, 0.028746917843818665, -0.01728924550116062, 0.014637641608715057, 0.030742960050702095, -0.027964157983660698, 0.05659366026520729, 0.0795285776257515, -0.004253820050507784, -0.013747249729931355, -0.013287377543747425, -0.07757167518138885, 0.013218886218965054, 0.013903802260756493, 0.017817610874772072, 0.01406035479158163, 0.015351911075413227, 0.0015691923908889294, -0.042151711881160736, 0.022249998524785042, 0.05119260773062706, 0.005557607393711805, -0.058785393834114075, -0.030234165489673615, -0.003625164506956935, -0.01008783932775259, -0.042034298181533813, -0.026848722249269485, 0.03211279213428497, -0.003402566770091653, -0.03281727805733681, -0.019891928881406784, 0.005626098718494177, 0.033286936581134796, -0.03688763827085495, 0.0375138483941555, -0.0601552277803421, -0.019989773631095886, -0.004777291789650917, -0.022269567474722862, -0.012602461501955986, -0.05968556925654411, 0.01401143241673708, -0.009960641153156757, 0.04332585260272026, -0.05569348484277725, 0.003830639412626624, -0.05761125311255455, -0.045478448271751404, 0.03299339860677719, 0.011976252309978008, -0.025889838114380836, 0.013590698130428791, 0.0013845094945281744, -0.02211301401257515, -0.004146190360188484, 0.03389357775449753, -0.0008818298229016364, -0.08218996226787567, 0.005234717857092619, -0.07937202602624893, -0.02162378840148449, -0.026653030887246132, -0.030742960050702095, 0.04148636385798454, 0.01029331423342228, 0.017396876588463783, -0.008629946038126945, -0.018345974385738373, -0.008522316813468933, -0.016046611592173576, 0.029216576367616653, -0.021917324513196945, 0.03293469175696373, 0.04001868516206741, 0.025694148615002632, -0.020019127056002617, -0.0067170727998018265, 0.00614957045763731, -0.07076164335012436, 0.019862575456500053, 0.0012952258111909032, 0.023287156596779823, 0.06923525780439377, 0.009417599998414516, 0.022856637835502625, -0.0024644758086651564, -0.06618249416351318, 0.002906002337113023, -0.0007693078368902206, 0.01924614980816841, 0.07968512922525406, 0.000757077184971422, 0.0005139930290170014, -0.07244458049535751, 0.03831617906689644, -0.039666444063186646, -0.012113234959542751, 0.00955947581678629, 0.019461410120129585, -0.001571638509631157, -0.01156530249863863, 0.03428495675325394, 0.010156331583857536, -0.024324316531419754, 0.032249778509140015, 0.06766973435878754, -0.02356112375855446, -0.023248018696904182, 0.03534168377518654, 0.012817720882594585, -0.06387334316968918, -0.01478440873324871, 0.01716204732656479, -0.024911386892199516, -0.0054891156032681465, -0.05029243230819702, -0.04219084978103638, 0.03393271565437317, 0.02469612844288349 ]
30,345
networkx.utils.backends
_make_doc
Generate the backends section at the end for functions having an alternate backend implementation(s) using the `backend_info` entry-point.
def _make_doc(self): """Generate the backends section at the end for functions having an alternate backend implementation(s) using the `backend_info` entry-point.""" if not self.backends: return self._orig_doc lines = [ "Backends", "--------", ] for backend in sorted(self.backends): info = backend_info[backend] if "short_summary" in info: lines.append(f"{backend} : {info['short_summary']}") else: lines.append(backend) if "functions" not in info or self.name not in info["functions"]: lines.append("") continue func_info = info["functions"][self.name] # Renaming extra_docstring to additional_docs if func_docs := ( func_info.get("additional_docs") or func_info.get("extra_docstring") ): lines.extend( f" {line}" if line else line for line in func_docs.split("\n") ) add_gap = True else: add_gap = False # Renaming extra_parameters to additional_parameters if extra_parameters := ( func_info.get("extra_parameters") or func_info.get("additional_parameters") ): if add_gap: lines.append("") lines.append(" Additional parameters:") for param in sorted(extra_parameters): lines.append(f" {param}") if desc := extra_parameters[param]: lines.append(f" {desc}") lines.append("") else: lines.append("") if func_url := func_info.get("url"): lines.append(f"[`Source <{func_url}>`_]") lines.append("") lines.pop() # Remove last empty line to_add = "\n ".join(lines) return f"{self._orig_doc.rstrip()}\n\n {to_add}"
(self)
[ -0.046114370226860046, -0.043369900435209274, 0.017161985859274864, 0.0004717063275165856, -0.0114744259044528, -0.015094602480530739, -0.05637003481388092, 0.06149786710739136, -0.019897431135177612, -0.03827817738056183, 0.051350537687540054, -0.0030040245037525892, 0.0048615094274282455, 0.015320299193263054, -0.04116709902882576, 0.0016915976302698255, 0.010436220094561577, -0.041672658175230026, -0.012584853917360306, -0.01610572449862957, -0.037086497992277145, -0.01801060512661934, 0.045933812856674194, -0.010535527020692825, 0.015302243642508984, 0.05463668331503868, -0.022858573123812675, -0.02005993202328682, 0.022515513002872467, -0.07482300698757172, -0.06008951738476753, -0.07908416539430618, 0.04983385652303696, 0.00251200539059937, 0.09230096638202667, -0.004080598242580891, -0.0037285112775862217, -0.0004395445284899324, -0.02603638358414173, -0.0218293946236372, 0.06420622766017914, -0.0598367378115654, 0.006974031217396259, -0.04459768906235695, 0.005452835001051426, 0.06799793243408203, 0.0010771380038931966, 0.04282822459936142, -0.041708771139383316, -0.005407695658504963, 0.0008367709233425558, -0.02072799578309059, 0.0014241468161344528, 0.018209218978881836, -0.031633663922548294, -0.008535853587090969, 0.017026567831635475, -0.0043130661360919476, 0.03176005557179451, 0.04383934661746025, 0.01537446677684784, 0.007213269826024771, 0.0011973215732723475, -0.004376261029392481, 0.008653216063976288, 0.04466991126537323, -0.024303032085299492, -0.043225452303886414, -0.03380035236477852, 0.019590482115745544, 0.018958531320095062, -0.005931312218308449, -0.012629993259906769, -0.014182787388563156, -0.00829661451280117, -0.011465397663414478, -0.09056761860847473, -0.033962856978178024, 0.03501008823513985, -0.05637003481388092, -0.015166825614869595, 0.0000835078171803616, 0.0020380422938615084, -0.02916002832353115, 0.11339007318019867, -0.03165172040462494, 0.0026338817551732063, 0.023129409179091454, 0.021287722513079643, -0.005687559489160776, -0.03733928129076958, -0.03237394988536835, 0.037014275789260864, 0.000593582633882761, -0.0004897620528936386, -0.04983385652303696, -0.0315975546836853, -0.05351722612977028, 0.018245330080389977, 0.018344637006521225, 0.00801675021648407, -0.00022019544849172235, -0.029105860739946365, 0.0007098164642229676, 0.04470602422952652, -0.03165172040462494, -0.006739306729286909, 0.002147505059838295, -0.0182543583214283, -0.037628173828125, -0.02589193731546402, -0.09540655463933945, 0.023526635020971298, -0.062256209552288055, 0.02946697548031807, -0.002717389492318034, -0.00798063911497593, 0.012268878519535065, 0.04044486954808235, -0.015103630721569061, -0.03432397171854973, -0.03296979144215584, -0.062183983623981476, -0.025837771594524384, -0.018525194376707077, -0.06543401628732681, 0.045933812856674194, 0.052253324538469315, 0.022136343643069267, -0.09663434326648712, 0.0001166570364148356, 0.017866158857941628, -0.01482376642525196, -0.011302895843982697, 0.05705615505576134, -0.0240863636136055, 0.016719618812203407, 0.010183439590036869, -0.04044486954808235, 0.06853960454463959, -0.02159467153251171, -0.0299183689057827, -0.010725112631917, 0.04087820649147034, -0.05546724796295166, 0.01117650605738163, -0.023309966549277306, -0.009244541637599468, -0.0005470326286740601, -0.012205683626234531, 0.015067518688738346, 0.009533433243632317, 0.020276600494980812, 0.007398341316729784, 0.0013835214776918292, -0.010499415919184685, -0.05748949199914932, 0.01904881000518799, 0.005385125987231731, 0.016376560553908348, 0.0018292726017534733, -0.02412247471511364, 0.04015597701072693, -0.04311711713671684, 0.01525710429996252, 0.05120609328150749, -0.0208904966711998, -0.07312576472759247, -0.014146676287055016, 0.015329327434301376, 0.008328212425112724, -0.021052997559309006, -0.027228062972426414, 0.03672538325190544, 0.009253568947315216, 0.032608676701784134, 0.029141971841454506, 0.053408894687891006, -0.04734216257929802, 0.0017807477852329612, 0.04217822104692459, 0.020312713459134102, -0.0842842161655426, 0.01727934740483761, 0.00829661451280117, 0.010129272937774658, 0.017848104238510132, 0.021305778995156288, 0.06550624221563339, 0.007429938763380051, -0.010102189145982265, -0.0037127125542610884, 0.03277117758989334, -0.015482801012694836, 0.0034509042743593454, -0.023544691503047943, 0.022298844531178474, 0.032536450773477554, 0.07168130576610565, -0.0065361796878278255, 0.02291274070739746, 0.02193772979080677, 0.050447750836610794, 0.0050917197950184345, 0.05395056679844856, 0.05243388190865517, 0.028473909944295883, 0.0017965466249734163, -0.1072511225938797, 0.06073952466249466, 0.03329479321837425, -0.02423080988228321, -0.04311711713671684, -0.01117650605738163, 0.009686906822025776, -0.021576615050435066, 0.045103251934051514, 0.06539791077375412, -0.0891953781247139, 0.018308525905013084, 0.033962856978178024, -0.016223086044192314, 0.057742271572351456, -0.05897006392478943, 0.020836329087615013, -0.025639157742261887, 0.08038417249917984, -0.03141699731349945, 0.014399456791579723, -0.05546724796295166, 0.004085112363100052, -0.04900329187512398, -0.02856418862938881, 0.002304364461451769, -0.00867578573524952, -0.0421421080827713, -0.007696261163800955, 0.01251263078302145, 0.04676437750458717, 0.0051684570498764515, 0.005416723433881998, 0.02758917771279812, 0.042467109858989716, 0.023418301716446877, -0.061100639402866364, -0.011600815691053867, 0.0359489880502224, -0.044128239154815674, 0.009289680980145931, 0.005443807225674391, -0.012765411287546158, 0.000029799031835864298, 0.013514724560081959, 0.0029024609830230474, 0.022443290799856186, 0.039650414139032364, -0.01662934012711048, -0.056045033037662506, 0.01029177475720644, -0.02516970783472061, 0.026090551167726517, 0.048714399337768555, -0.07518412172794342, 0.02648777700960636, 0.019464092329144478, -0.021666893735527992, 0.03241006284952164, -0.0040873694233596325, -0.029864201322197914, 0.04896717891097069, 0.02717389538884163, 0.07023684680461884, -0.019771041348576546, 0.004531992133706808, -0.008093487471342087, -0.013758477754890919, 0.02363497018814087, -0.004568103235214949, -0.02634333074092865, -0.033096179366111755, 0.04315323010087013, -0.06377288699150085, -0.004676437936723232, 0.028853079304099083, 0.0771341398358345, -0.0462949275970459, -0.03082115575671196, 0.02415858581662178, 0.032265614718198776, -0.010490387678146362, 0.005060122348368168, 0.008206335827708244, 0.0005038680974394083, 0.042286552488803864, 0.014796682633459568, 0.01117650605738163, -0.001629530917853117, 0.011357063427567482, 0.014318205416202545, -0.05272277444601059, -0.018091855570673943, 0.050592195242643356, 0.030622543767094612, 0.03856706991791725, 0.011934847570955753, -0.05196443200111389, 0.00039214821299538016, -0.08060084283351898, 0.03199477866292, -0.04286433756351471, -0.06911738961935043, -0.03737539052963257, 0.043333787471055984, 0.0440199039876461, -0.045247696340084076, 0.004353691358119249, -0.023923860862851143, 0.0197529848664999, 0.03009892627596855, 0.061425644904375076, -0.0583200566470623, 0.029864201322197914, 0.023689137771725655, -0.02280440554022789, 0.07944528013467789, -0.045933812856674194, -0.0028686064761132, -0.010752196423709393, 0.004915676545351744, 0.013505697250366211, -0.016331421211361885, -0.012034153565764427, 0.026144718751311302, 0.03044198639690876, -0.05391445383429527, 0.004601957742124796, 0.0223891232162714, -0.051531095057725906, -0.05290333181619644, -0.047992169857025146, 0.047883834689855576, -0.0317961648106575, -0.0064955540001392365, 0.010454276576638222, -0.030983658507466316, -0.0317961648106575, 0.014300149865448475, -0.0402643121778965, 0.057670049369335175, -0.016620313748717308, 0.008215364068746567, -0.0289794709533453, 0.0017277090810239315, 0.02787807025015354, 0.0711396336555481, -0.03195866942405701, -0.05893395096063614, -0.01708073541522026, -0.020637717097997665, -0.02814890630543232, 0.0060486746951937675, 0.025675268843770027, 0.0001419068721588701, 0.08067306876182556, -0.00885182898491621, 0.002669993322342634, 0.033023957163095474, 0.04120320826768875, 0.003166526323184371, -0.014778627082705498, 0.0023269341327250004, -0.054058898240327835, 0.07182575017213821, -0.034937866032123566, -0.022858573123812675, -0.02002382092177868, -0.0019409925444051623, -0.003320000134408474, -0.0677451565861702, -0.04828106239438057, 0.037917062640190125, 0.03903651982545853, 0.025783604010939598, -0.006513610016554594, -0.0028573216404765844, -0.02415858581662178, -0.0003893270040862262, 0.03491980955004692, -0.00959662813693285, -0.013866811990737915, 0.022714126855134964, 0.023508580401539803, -0.04900329187512398, 0.03009892627596855, -0.06001729518175125, -0.05355333909392357, -0.007899388670921326, -0.0011702378978952765, -0.048678286373615265, -0.02648777700960636, 0.030243372544646263, -0.06879238784313202, 0.006432359106838703, 0.008734466508030891, 0.006342080421745777, -0.031398940831422806, 0.07345076650381088, 0.06900905817747116, 0.026596112176775932, 0.07525634765625, -0.04225044324994087, -0.020836329087615013, -0.06012563034892082, 0.022894684225320816, 0.013397363014519215, 0.04661993309855461, -0.025241931900382042, 0.03336701542139053, -0.0033154860138893127, 0.011970958672463894, 0.030983658507466316, 0.0436587892472744, 0.07749525457620621, 0.07059796154499054, 0.02863641083240509, 0.009307736530900002, -0.04087820649147034, -0.009831353090703487, -0.010138300247490406, -0.0038120190147310495, 0.03277117758989334, -0.019825207069516182, -0.008472657762467861, -0.00003949694291804917, -0.022678015753626823, -0.04531991854310036, 0.02825723960995674, -0.018173107877373695, 0.037050388753414154, -0.03190449997782707, 0.05275888741016388, -0.053986676037311554, -0.04188932850956917, 0.009948715567588806, -0.03585870936512947, -0.004753174725919962, -0.0021125220227986574, -0.030261429026722908, -0.03871151804924011, -0.009370931424200535, 0.06268954277038574, 0.0861620157957077, 0.02471831440925598, 0.02020437829196453, 0.007664663717150688, -0.054131124168634415, 0.06727570295333862, -0.06265343725681305, -0.001991774421185255, 0.021811340004205704, 0.0044845957309007645, 0.0417809933423996, 0.05572002753615379, 0.023309966549277306, 0.048606064170598984, 0.007154589053243399, 0.07843415439128876, 0.00514588737860322, -0.07771192491054535, -0.0055205440148711205, 0.0474143847823143, -0.062147874385118484, -0.03529898077249527, 0.020276600494980812, 0.006436872761696577, 0.022443290799856186, -0.053986676037311554, -0.02332802303135395, -0.00747056445106864, -0.06994795799255371, -0.04911162704229355, -0.004335635807365179, -0.04405601695179939, 0.027065562084317207, -0.003911325708031654, -0.009948715567588806, 0.017541155219078064, -0.058536723256111145, -0.0062337457202374935, -0.03560592979192734, -0.008233419619500637, 0.034973978996276855, 0.011799429543316364, -0.025458600372076035, 0.0036066349130123854, 0.04495880380272865, 0.05001441389322281, 0.015320299193263054, -0.03842262551188469, -0.03634621575474739, 0.018507137894630432, -0.05922284349799156, -0.06677014380693436, 0.008395921438932419, 0.04680049046874046, -0.01998770982027054, -0.05113386735320091, 0.037267055362463, -0.04362268000841141, -0.012449435889720917, -0.017685601487755775, -0.009786213748157024, -0.01318972185254097, 0.011799429543316364, -0.016196003183722496, -0.016159892082214355, -0.027372509241104126, 0.024375256150960922, 0.01735157147049904, -0.008946621790528297, 0.021666893735527992, 0.008404948748648167, -0.04095042869448662, -0.011465397663414478, 0.022190509364008904, 0.0186335276812315, -0.007484106346964836, 0.026180829852819443, 0.018507137894630432, 0.03338507190346718, -0.0006313868216238916, 0.010905670002102852, 0.049725521355867386, 0.011564704589545727, -0.03156144171953201, 0.004897620528936386, 0.00897370558232069, 0.0008965805754996836, 0.05759782716631889, -0.02863641083240509, 0.03464897349476814, 0.06839516013860703, -0.045933812856674194, -0.06680625677108765, 0.026776669546961784, 0.006472984328866005, 0.030658654868602753, -0.009203915484249592, 0.03788095340132713, -0.005845547188073397, -0.03654482588171959, 0.0025955133605748415, 0.07305354624986649, 0.02002382092177868, -0.03491980955004692, 0.03871151804924011, 0.015383494086563587, 0.009036900475621223, 0.014706403948366642, 0.004270183853805065, -0.03165172040462494, 0.012575826607644558, -0.015248076058924198, -0.00022894120775163174, 0.04835328459739685, 0.11642344295978546, 0.05301166698336601, 0.019825207069516182, -0.019590482115745544, -0.009208429604768753, -0.030766988173127174, -0.015031407587230206, 0.06088397279381752, -0.016150863841176033, -0.04438101872801781, 0.03842262551188469, 0.004482338670641184, 0.017306432127952576, 0.005358042195439339, -0.07944528013467789, -0.03856706991791725, 0.030658654868602753, 0.02325579896569252, -0.011275812983512878, 0.023833582177758217, -0.04712549224495888, -0.00002064773070742376, 0.0009056084672920406, 0.017622407525777817, -0.014345289207994938, -0.080528624355793, 0.014697376638650894, -0.011853596195578575, -0.050519973039627075, 0.03340312838554382, 0.04835328459739685, -0.07030907273292542, -0.02600027248263359, 0.0013711081119254231, 0.017866158857941628, -0.07930082827806473, 0.03269895538687706, 0.00595388188958168, -0.02099883183836937, 0.00026491162134334445, 0.03287951275706291, 0.02370719239115715, -0.05001441389322281, -0.02072799578309059, -0.0036134058609604836, 0.030008647590875626, 0.0601978525519371, -0.03051420859992504, -0.04651159793138504, -0.033096179366111755, -0.04492269456386566, -0.004292753525078297, -0.01029177475720644, 0.05207276716828346, -0.03508231043815613, 0.015645302832126617, 0.02852807752788067, 0.019355759024620056, 0.011691094376146793, -0.0718618631362915, 0.020601604133844376, 0.03932541236281395, -0.03477536514401436, -0.004748661071062088, 0.020944664254784584, 0.01892242021858692, -0.045103251934051514, 0.0342336930334568, -0.0666256994009018, 0.035732317715883255, 0.032680898904800415, 0.0008294357685372233, 0.039830971509218216, -0.0037713937927037477, -0.011447342112660408, 0.059367287904024124, 0.001485084998421371, -0.00796709768474102, -0.02874474599957466, -0.022190509364008904, 0.004202474374324083, -0.03425174951553345, -0.03741150349378586, 0.007935499772429466, -0.016268225386738777, -0.02291274070739746, 0.05431168153882027, -0.0019511489663273096, 0.019139088690280914, 0.03224755823612213, 0.034793421626091, -0.007691747043281794, -0.04109487682580948, 0.019139088690280914, -0.03416147083044052, 0.04824494943022728, -0.07063407450914383, 0.043369900435209274, -0.028510021045804024, -0.006305968854576349, 0.026253052055835724, 0.02637944370508194, 0.021811340004205704, 0.014191815629601479, -0.05611725524067879, 0.044164352118968964, 0.042286552488803864, -0.030550319701433182, -0.01381264440715313, 0.013821672648191452, -0.004127994645386934, 0.016286281868815422, 0.017514072358608246, -0.024032196030020714, -0.024700257927179337, 0.015636274591088295, 0.008048348128795624, -0.025837771594524384, -0.03044198639690876, -0.011528592556715012, 0.004263412673026323, 0.038964297622442245, 0.02731834165751934, -0.048172727227211, -0.05875339359045029, -0.0432615652680397, -0.006852155085653067, 0.020186321809887886, -0.03560592979192734, 0.06088397279381752, -0.05109775811433792, 0.004653868265450001, -0.09627322852611542, 0.005177484825253487, -0.031055880710482597, 0.0756174623966217, 0.019590482115745544, 0.009298708289861679, -0.019012698903679848, 0.010002882219851017, 0.042575445026159286, 0.018109912052750587, -0.05618947744369507, -0.05423945561051369, -0.02043910324573517, 0.03380035236477852, 0.06160620227456093, 0.021684950217604637, 0.007389313541352749, 0.04409212991595268, -0.07648413628339767, 0.002834751969203353, 0.03751983866095543, 0.03405313566327095, -0.015627246350049973, -0.002527804346755147, 0.053047776222229004, 0.036219824105501175, -0.04048097878694534, 0.024700257927179337, 0.025946104899048805, -0.054961685091257095, -0.045103251934051514, -0.02551276795566082, -0.037628173828125, -0.026541944593191147, -0.028166960924863815, -0.025530822575092316, -0.01888630911707878, 0.02423080988228321, -0.007362229749560356, 0.025223875418305397, -0.012693188153207302, 0.006590346805751324, -0.024447478353977203, -0.02265995927155018, 0.04925607144832611, -0.019518259912729263, 0.07117574661970139, -0.01593419536948204, 0.007384799420833588, 0.05998118221759796, -0.019861320033669472, 0.047992169857025146, 0.06684236973524094, 0.02332802303135395, 0.03733928129076958, -0.052289437502622604, -0.007831679657101631, -0.009786213748157024, -0.041492100805044174, 0.05369778349995613, 0.029936425387859344, -0.009253568947315216, -0.03694205358624458, 0.0346309170126915, 0.005385125987231731, 0.06449511647224426, 0.044344909489154816, 0.055864475667476654, 0.00283700879663229, -0.040805984288454056, 0.03867540508508682 ]
30,346
networkx.utils.backends
_should_backend_run
Can/should the specified backend run this algorithm with these arguments?
def _should_backend_run(self, backend_name, /, *args, **kwargs): """Can/should the specified backend run this algorithm with these arguments?""" backend = _load_backend(backend_name) # `backend.can_run` and `backend.should_run` may return strings that describe # why they can't or shouldn't be run. We plan to use the strings in the future. return ( hasattr(backend, self.name) and (can_run := backend.can_run(self.name, args, kwargs)) and not isinstance(can_run, str) and (should_run := backend.should_run(self.name, args, kwargs)) and not isinstance(should_run, str) )
(self, backend_name, /, *args, **kwargs)
[ 0.04670579731464386, -0.06092213839292526, -0.000592531287111342, 0.06325037777423859, -0.015530383214354515, 0.015142343938350677, -0.018061457201838493, 0.02363510988652706, 0.027374396100640297, -0.08572136610746384, 0.07450351119041443, 0.06991758942604065, 0.03330080956220627, -0.037992555648088455, -0.027550777420401573, -0.0929882824420929, 0.024481739848852158, 0.040285512804985046, -0.004008267540484667, -0.04226098582148552, -0.056971196085214615, 0.011323686689138412, 0.054149094969034195, -0.014639656990766525, 0.04832850769162178, 0.056159842759370804, 0.036969542503356934, -0.011535344645380974, -0.012796471826732159, 0.07295135408639908, -0.007738734595477581, 0.011067933402955532, 0.03349483013153076, 0.019331403076648712, 0.040073856711387634, 0.042296264320611954, 0.0070199803449213505, 0.00010624223796185106, -0.07372742891311646, -0.1116141602396965, 0.008836708962917328, -0.07161085307598114, 0.09623369574546814, 0.020054565742611885, -0.05647732689976692, -0.03497643396258354, -0.012814109213650227, 0.016500480473041534, -0.05492517352104187, -0.02201239950954914, 0.0006465481128543615, -0.03869808092713356, 0.023811491206288338, 0.09094225615262985, -0.0143398093059659, -0.01012429315596819, 0.004656469449400902, 0.04628248140215874, 0.019684165716171265, -0.003503375919535756, 0.02379385195672512, 0.010856276378035545, -0.031766291707754135, -0.005097422748804092, 0.024181891232728958, -0.04226098582148552, -0.0329304113984108, -0.0225239060819149, -0.012426070868968964, 0.0363345704972744, -0.025769324973225594, 0.0027471405919641256, 0.0003453217213973403, 0.007844563573598862, 0.012999310158193111, -0.02830921672284603, -0.042649026960134506, 0.04275485500693321, -0.022276973351836205, 0.029526248574256897, 0.04716438800096512, -0.0038142481353133917, -0.002923521911725402, -0.03448256477713585, 0.0021926413755863905, -0.022576820105314255, -0.04857544228434563, 0.026192639023065567, 0.037251755595207214, -0.07048201560974121, 0.005339947063475847, -0.02573404833674431, 0.06011078506708145, 0.005860272329300642, 0.02719801291823387, -0.00078489730367437, 0.006424692925065756, -0.024869779124855995, -0.05019814893603325, -0.014392723329365253, 0.011614715680480003, 0.03321262076497078, 0.0573592372238636, -0.04776408523321152, 0.07485627382993698, 0.042895957827568054, 0.0020294885616749525, -0.011403058655560017, -0.06995286792516708, -0.0308314710855484, -0.010688713751733303, -0.0036885763984173536, -0.011694087646901608, -0.010344769805669785, -0.044448114931583405, -0.022559182718396187, -0.0351351760327816, -0.039685819298028946, -0.03862752765417099, 0.022118229418992996, -0.06131017953157425, 0.04388369619846344, 0.0529497005045414, -0.054607685655355453, 0.0376397930085659, 0.04589444398880005, 0.04211988300085068, 0.025980982929468155, -0.009551053866744041, -0.007791649084538221, 0.0640617311000824, -0.0039994483813643456, -0.037040095776319504, -0.0046079643070697784, 0.004241973161697388, 0.012867024168372154, 0.05584235489368439, 0.02453465387225151, 0.015689127147197723, 0.002321620238944888, 0.05573652684688568, 0.017867436632514, 0.034147441387176514, 0.019313763827085495, -0.015918422490358353, 0.008422212675213814, -0.039685819298028946, -0.024217167869210243, 0.04854016378521919, -0.01674741506576538, 0.053619951009750366, 0.018061457201838493, -0.029455695301294327, -0.022594459354877472, -0.04765825718641281, 0.01579495519399643, -0.04331927374005318, -0.0007148958975449204, -0.0006355242803692818, 0.029614439234137535, -0.02830921672284603, -0.026227915659546852, -0.049422070384025574, -0.01987818442285061, -0.004405125975608826, 0.004433787893503904, -0.06628413498401642, 0.018431857228279114, -0.020195672288537025, 0.07023508101701736, 0.03305387496948242, 0.013854759745299816, 0.017620503902435303, 0.038451146334409714, 0.030778557062149048, -0.00903954729437828, 0.004169215448200703, -0.00885434728115797, -0.033089153468608856, -0.03550557792186737, 0.05312608182430267, -0.015830231830477715, -0.05351411923766136, -0.011138486675918102, 0.025892792269587517, 0.004323549568653107, 0.0009237976628355682, -0.012426070868968964, 0.03321262076497078, 0.032648198306560516, -0.06797739863395691, -0.0031704558059573174, 0.02758605219423771, -0.0093834912404418, -0.027762433513998985, -0.038592252880334854, 0.0342356339097023, 0.02972026728093624, 0.049704283475875854, -0.01337852980941534, 0.007363923825323582, -0.03933305665850639, 0.07704339921474457, 0.015803774818778038, -0.0035739282611757517, 0.02349400334060192, 0.010829818435013294, 0.05848807469010353, -0.0010461622150614858, -0.019684165716171265, -0.026333745568990707, -0.08000660687685013, -0.031395889818668365, 0.0967981219291687, 0.026968717575073242, 0.03876863420009613, 0.09214165061712265, 0.026880526915192604, -0.021624362096190453, 0.024658121168613434, 0.037181202322244644, 0.06501419097185135, 0.03462367132306099, -0.03926250338554382, 0.01837894320487976, -0.018061457201838493, 0.04487143084406853, 0.08177042007446289, 0.006168940104544163, 0.005556014366447926, -0.0336359366774559, -0.05287914723157883, 0.04395424947142601, 0.0033732946030795574, 0.014348627999424934, -0.011023838073015213, 0.06367368996143341, 0.02321179397404194, -0.0044404021464288235, 0.0014220750890672207, 0.046670522540807724, -0.0033336086198687553, -0.035999447107315063, -0.0628623366355896, -0.04913986101746559, -0.03349483013153076, 0.027903540059924126, 0.012822928838431835, -0.013819484040141106, -0.029014742001891136, -0.017285378649830818, 0.06123962625861168, -0.01682678610086441, -0.050586190074682236, -0.06487308442592621, -0.011253134347498417, -0.003909053280949593, -0.04353093355894089, 0.0671660453081131, 0.036722611635923386, -0.025698771700263023, 0.06198043003678322, -0.021694913506507874, 0.043037064373493195, -0.02284139208495617, 0.0014033346669748425, -0.016209451481699944, 0.03474713861942291, 0.016403472051024437, 0.0240231491625309, 0.0154157355427742, -0.03134297579526901, -0.011879288591444492, 0.02578696236014366, -0.03862752765417099, -0.016738595440983772, 0.02957916259765625, 0.029967201873660088, -0.00997436884790659, 0.003095493884757161, 0.03386523202061653, -0.027074547484517097, -0.023441089317202568, -0.02714509889483452, -0.032365988940000534, -0.07002341747283936, 0.002603830536827445, -0.015662670135498047, -0.004846079275012016, 0.005961691960692406, -0.027109822258353233, -0.035629045218229294, 0.02714509889483452, 0.004524183459579945, 0.004149372689425945, -0.011517706327140331, 0.00448229257017374, -0.10723990201950073, 0.031184233725070953, -0.021165769547224045, -0.0323307141661644, 0.022065315395593643, -0.029843734577298164, 0.003201322630047798, 0.04049717262387276, 0.024270081892609596, -0.008580955676734447, -0.02645721100270748, -0.019595975056290627, -0.00982444453984499, -0.011491249315440655, -0.02601625770330429, 0.04529474675655365, 0.005379633046686649, 0.051044780761003494, 0.03529392182826996, 0.024270081892609596, -0.03231307491660118, -0.0063276831060647964, 0.03679316118359566, -0.03982692211866379, 0.05520738288760185, -0.01689733937382698, 0.03668733313679695, 0.00006004546958138235, -0.027744796127080917, 0.02691580355167389, -0.029014742001891136, 0.0025553256273269653, -0.01696789264678955, -0.007681410294026136, 0.0005462311673909426, 0.06631941348314285, -0.020813006907701492, 0.010979742743074894, -0.03626401722431183, -0.0015995589783415198, -0.0035739282611757517, 0.01397822704166174, -0.016571033746004105, 0.03210141882300377, -0.006005787290632725, 0.008214964531362057, 0.030337603762745857, 0.03335372358560562, 0.03975636884570122, -0.010547608137130737, 0.010706352069973946, 0.08466307818889618, -0.046811625361442566, -0.057041749358177185, -0.031536996364593506, -0.04698800668120384, -0.024517016485333443, -0.0034438471775501966, -0.03017885982990265, -0.01711781695485115, 0.012205594219267368, -0.04656469449400902, -0.03626401722431183, 0.11570620536804199, -0.04497725889086723, 0.002434063469991088, 0.054819341748952866, -0.05869973450899124, -0.030214136466383934, 0.03615818917751312, 0.005829405505210161, -0.015327544882893562, -0.007143447175621986, 0.010291855782270432, -0.025892792269587517, 0.0646614283323288, -0.0072272284887731075, -0.03975636884570122, 0.027974091470241547, 0.03291277214884758, -0.030655089765787125, -0.0077078677713871, 0.04490670934319496, 0.039474159479141235, 0.041696567088365555, 0.007090532686561346, -0.006843599025160074, -0.007368333637714386, -0.02853851206600666, -0.07358632236719131, -0.018731705844402313, -0.0060013774782419205, -0.07810168713331223, 0.019613612443208694, 0.005066555924713612, -0.03721647709608078, 0.0062086256220936775, -0.042649026960134506, 0.0015797159867361188, -0.008029763586819172, 0.04381314292550087, -0.047940466552972794, 0.05256165936589241, -0.04670579731464386, -0.020583711564540863, 0.060004957020282745, 0.03409452736377716, 0.00437646359205246, 0.03827476501464844, 0.030954938381910324, 0.05471351370215416, -0.020883560180664062, 0.06268595159053802, -0.04501253738999367, -0.03534683585166931, -0.07408019155263901, 0.011667630635201931, -0.06071048229932785, 0.07224582880735397, 0.014013503678143024, -0.005705938674509525, -0.007403609808534384, 0.024658121168613434, -0.0007187542505562305, 0.07034090906381607, 0.06928262114524841, -0.007196361664682627, 0.0689651295542717, 0.040285512804985046, 0.023529279977083206, -0.022488629445433617, -0.02208295278251171, -0.0018795644864439964, -0.0677657350897789, -0.04025023803114891, -0.01008019782602787, 0.029914287850260735, 0.02979082055389881, -0.015451012179255486, 0.015027696266770363, 0.029914287850260735, 0.0093834912404418, -0.05196196585893631, -0.03585834056138992, -0.02691580355167389, -0.0419435016810894, -0.008104725740849972, -0.02543419972062111, -0.05280859395861626, -0.018484771251678467, -0.0022863440681248903, 0.004621192812919617, 0.01950778439640999, -0.01704726368188858, 0.08360479027032852, -0.020636625587940216, -0.018114371225237846, 0.00520766107365489, -0.0001697671104921028, 0.02358219400048256, 0.017699874937534332, -0.01950778439640999, 0.007324238307774067, -0.004563868977129459, 0.03337136283516884, -0.03506462648510933, -0.02890891395509243, 0.05954636633396149, 0.03150172159075737, 0.006314454600214958, 0.06737770140171051, -0.010635798797011375, 0.05012759566307068, -0.009850901551544666, 0.0024186300579458475, 0.03349483013153076, 0.03929777815937996, 0.0010241145500913262, 0.027709519490599632, -0.033759403973817825, 0.02624555490911007, -0.029614439234137535, 0.02231224812567234, -0.02105994150042534, 0.04589444398880005, -0.0027537548448890448, 0.0683654323220253, -0.018625877797603607, -0.09270606935024261, -0.015301087871193886, -0.021518532186746597, 0.01941959373652935, -0.06631941348314285, -0.027903540059924126, -0.037922002375125885, 0.07563234865665436, 0.037922002375125885, -0.017073720693588257, -0.01964888907968998, -0.0020063386764377356, -0.0001329061487922445, -0.025681134313344955, 0.037251755595207214, 0.03760451823472977, 0.0456475093960762, -0.009912635199725628, 0.016773872077465057, 0.006552569568157196, -0.050374530255794525, -0.018132008612155914, 0.011888107284903526, -0.0231236033141613, 0.05421964451670647, -0.0330362394452095, 0.022665010765194893, 0.015089429914951324, -0.026651231572031975, 0.048152126371860504, 0.02321179397404194, 0.02682761289179325, -0.04226098582148552, -0.06903568655252457, 0.020142756402492523, 0.023846767842769623, -0.036969542503356934, -0.012355517596006393, -0.0060410634614527225, 0.03467658534646034, -0.021077578887343407, -0.026192639023065567, -0.004383078310638666, 0.040285512804985046, -0.009207109920680523, 0.03451784327626228, 0.02652776427567005, 0.044060077518224716, 0.010873913764953613, 0.0016833400586619973, -0.022135866805911064, -0.016033070161938667, 0.035558491945266724, -0.009551053866744041, 0.017814522609114647, 0.02950861118733883, 0.01196747925132513, 0.02328234724700451, -0.03462367132306099, 0.0031594319734722376, -0.014489732682704926, 0.002009645802900195, -0.01814964786171913, 0.046952731907367706, 0.007809286937117577, 0.012293784879148006, 0.026510126888751984, 0.017832159996032715, 0.027691882103681564, 0.05693592131137848, -0.00963924452662468, 0.0769728496670723, 0.053866881877183914, -0.022259334102272987, 0.053549397736787796, 0.004206696525216103, -0.059123050421476364, 0.027462586760520935, 0.01097092404961586, -0.017100177705287933, -0.03596416860818863, 0.0006233980529941618, 0.0036158189177513123, -0.004369849339127541, -0.03127242624759674, -0.009586329571902752, -0.06663689762353897, 0.051185887306928635, 0.015839051455259323, -0.020442605018615723, -0.03127242624759674, 0.007615267299115658, 0.008730879984796047, -0.05824114382266998, -0.049704283475875854, -0.0032895132899284363, 0.017982084304094315, -0.01689733937382698, 0.02194184809923172, 0.005238527897745371, -0.0030712413135915995, 0.015803774818778038, 0.003344632452353835, -0.007994487881660461, -0.07450351119041443, -0.058382246643304825, 0.06409700214862823, 0.041096869856119156, -0.0493515208363533, 0.05139754340052605, 0.022188780829310417, -0.04790519177913666, 0.01100619975477457, 0.02795645408332348, 0.004420559387654066, -0.03432382270693779, -0.018872810527682304, 0.053408291190862656, -0.04638831317424774, 0.03809838369488716, 0.022118229418992996, -0.08028881996870041, -0.04395424947142601, -0.04719966650009155, 0.0007904092199169099, 0.019454870373010635, -0.00152459682431072, 0.035734873265028, 0.02363510988652706, 0.022947221994400024, -0.034570757299661636, -0.011764639988541603, 0.022276973351836205, 0.08402810245752335, 0.00042827610741369426, 0.018661152571439743, 0.040885210037231445, -0.011597078293561935, 0.024711035192012787, -0.031166596338152885, -0.011447153985500336, 0.008206144906580448, -0.05873500928282738, -0.026880526915192604, -0.020513158291578293, 0.007822515442967415, -0.028415044769644737, 0.03342427685856819, -0.04882237687706947, -0.01293757651001215, -0.09517540782690048, -0.031836844980716705, 0.031043129041790962, -0.011297229677438736, -0.042578473687171936, 0.011993936263024807, 0.03481769189238548, -0.019313763827085495, -0.006133663468062878, -0.004947498440742493, -0.02379385195672512, -0.0339357852935791, -0.01689733937382698, 0.08106489479541779, -0.01623590849339962, -0.0035430616699159145, 0.030408155173063278, 0.041343804448843, 0.04240209236741066, 0.017611684277653694, 0.03742813691496849, -0.016853243112564087, -0.00390243879519403, 0.006054291967302561, -0.07845444977283478, 0.003690781071782112, -0.03215433284640312, 0.006746589206159115, -0.023899681866168976, -0.03137825429439545, -0.022065315395593643, -0.02795645408332348, -0.03979164734482765, 0.0061645302921533585, -0.01645638607442379, -0.03046106919646263, -0.017673417925834656, 0.0012390793999657035, -0.013960588723421097, 0.02120104618370533, 0.04046189785003662, 0.004369849339127541, -0.03561140596866608, -0.027409670874476433, -0.04603555053472519, -0.07429184764623642, -0.030002478510141373, -0.044589221477508545, 0.041484907269477844, -0.0035673140082508326, 0.04536530002951622, -0.02363510988652706, 0.01780570298433304, 0.018590601161122322, -0.05016287416219711, -0.04779936373233795, 0.01964888907968998, 0.01770869456231594, 0.03522336855530739, -0.006155711133033037, -0.007610857952386141, -0.06229791417717934, 0.00716990465298295, 0.012408432550728321, 0.027109822258353233, 0.005406090524047613, -0.011394239030778408, -0.010785723105072975, -0.036969542503356934, 0.018925726413726807, 0.019684165716171265, -0.08826126158237457, -0.014595561660826206, 0.020724816247820854, -0.05947581306099892, -0.05376105383038521, 0.013105139136314392, 0.030655089765787125, -0.02897946536540985, -0.025487113744020462, -0.06818905472755432, -0.0036599142476916313, 0.01830838993191719, 0.02416425384581089, -0.06025189161300659, -0.04092048853635788, 0.06522584706544876, 0.023105965927243233, -0.05760616809129715, 0.00022929583792574704, -0.02779771015048027, -0.01725892163813114, -0.09581038355827332, 0.04010913148522377, 0.018290752544999123, -0.03612291440367699, 0.001361444010399282, -0.01889044977724552, 0.026862889528274536, -0.016050709411501884, -0.026704145595431328, 0.008166459389030933, -0.07901887595653534, -0.001951219397597015, 0.02349400334060192, 0.05894666910171509, -0.0003486288769636303, 0.0018034999957308173, -0.038662806153297424, 0.034147441387176514, 0.04501253738999367, -0.00038335396675392985, 0.019172659143805504, 0.08113545179367065, -0.019066831097006798, 0.04137907922267914, 0.015839051455259323, -0.008426621556282043, 0.033089153468608856, 0.000023356757083092816, 0.010953285731375217, -0.014983600936830044, 0.024887416511774063, -0.018961001187562943, -0.04346038028597832, -0.05884084105491638, 0.06247429549694061, -0.015177620574831963, -0.022859031334519386, 0.01837894320487976, -0.04663524404168129, 0.017594045028090477, 0.03957998752593994 ]
30,347
networkx.lazy_imports
_lazy_import
Return a lazily imported proxy for a module or library. Warning ------- Importing using this function can currently cause trouble when the user tries to import from a subpackage of a module before the package is fully imported. In particular, this idiom may not work: np = lazy_import("numpy") from numpy.lib import recfunctions This is due to a difference in the way Python's LazyLoader handles subpackage imports compared to the normal import process. Hopefully we will get Python's LazyLoader to fix this, or find a workaround. In the meantime, this is a potential problem. The workaround is to import numpy before importing from the subpackage. Notes ----- We often see the following pattern:: def myfunc(): import scipy as sp sp.argmin(...) .... This is to prevent a library, in this case `scipy`, from being imported at function definition time, since that can be slow. This function provides a proxy module that, upon access, imports the actual module. So the idiom equivalent to the above example is:: sp = lazy.load("scipy") def myfunc(): sp.argmin(...) .... The initial import time is fast because the actual import is delayed until the first attribute is requested. The overall import time may decrease as well for users that don't make use of large portions of the library. Parameters ---------- fullname : str The full name of the package or subpackage to import. For example:: sp = lazy.load("scipy") # import scipy as sp spla = lazy.load("scipy.linalg") # import scipy.linalg as spla Returns ------- pm : importlib.util._LazyModule Proxy module. Can be used like any regularly imported module. Actual loading of the module occurs upon first attribute request.
def _lazy_import(fullname): """Return a lazily imported proxy for a module or library. Warning ------- Importing using this function can currently cause trouble when the user tries to import from a subpackage of a module before the package is fully imported. In particular, this idiom may not work: np = lazy_import("numpy") from numpy.lib import recfunctions This is due to a difference in the way Python's LazyLoader handles subpackage imports compared to the normal import process. Hopefully we will get Python's LazyLoader to fix this, or find a workaround. In the meantime, this is a potential problem. The workaround is to import numpy before importing from the subpackage. Notes ----- We often see the following pattern:: def myfunc(): import scipy as sp sp.argmin(...) .... This is to prevent a library, in this case `scipy`, from being imported at function definition time, since that can be slow. This function provides a proxy module that, upon access, imports the actual module. So the idiom equivalent to the above example is:: sp = lazy.load("scipy") def myfunc(): sp.argmin(...) .... The initial import time is fast because the actual import is delayed until the first attribute is requested. The overall import time may decrease as well for users that don't make use of large portions of the library. Parameters ---------- fullname : str The full name of the package or subpackage to import. For example:: sp = lazy.load("scipy") # import scipy as sp spla = lazy.load("scipy.linalg") # import scipy.linalg as spla Returns ------- pm : importlib.util._LazyModule Proxy module. Can be used like any regularly imported module. Actual loading of the module occurs upon first attribute request. """ try: return sys.modules[fullname] except: pass # Not previously loaded -- look it up spec = importlib.util.find_spec(fullname) if spec is None: try: parent = inspect.stack()[1] frame_data = { "spec": fullname, "filename": parent.filename, "lineno": parent.lineno, "function": parent.function, "code_context": parent.code_context, } return DelayedImportErrorModule(frame_data, "DelayedImportErrorModule") finally: del parent module = importlib.util.module_from_spec(spec) sys.modules[fullname] = module loader = importlib.util.LazyLoader(spec.loader) loader.exec_module(module) return module
(fullname)
[ -0.0010005844524130225, -0.014698700048029423, 0.007135762833058834, 0.027533365413546562, 0.03380506858229637, 0.01382493320852518, 0.036406952887773514, 0.042445652186870575, 0.02308686263859272, -0.06694995611906052, -0.014164731837809086, 0.015989933162927628, -0.03718363493680954, 0.010465784929692745, -0.01332979928702116, -0.021805336698889732, -0.006878486834466457, 0.053824037313461304, -0.013339507393538952, -0.02370820753276348, 0.001062476192601025, 0.0509503148496151, 0.032038118690252304, -0.020776234567165375, -0.054134711623191833, 0.024776143953204155, 0.031610943377017975, 0.02394121140241623, 0.002205047756433487, -0.07681381702423096, 0.028776055201888084, -0.012203610502183437, 0.02368878945708275, 0.0038639912381768227, 0.02549457550048828, -0.03331964462995529, 0.02665959857404232, -0.02104807272553444, -0.005427062977105379, -0.0473775789141655, 0.020523812621831894, -0.02654309570789337, 0.023048028349876404, -0.048775605857372284, 0.02665959857404232, 0.003179540392011404, -0.03034883551299572, 0.00965997762978077, 0.007329932879656553, -0.02050439640879631, 0.03246529400348663, 0.005475605838000774, 0.022446099668741226, -0.013465718366205692, 0.017125830054283142, 0.05840646103024483, -0.004606693051755428, -0.008024092763662338, -0.027009105309844017, 0.02234901487827301, 0.04240681976079941, -0.04399901628494263, -0.009810459800064564, 0.0047426121309399605, -0.0288148894906044, -0.025766413658857346, -0.0011814056197181344, -0.062018029391765594, -0.023436369374394417, -0.0436883419752121, -0.059998657554388046, 0.025028565898537636, 0.030620673671364784, -0.04330000281333923, 0.039436012506484985, -0.0028300336562097073, -0.026562511920928955, -0.065707266330719, 0.030678926035761833, -0.03114493377506733, -0.004456210881471634, -0.023921795189380646, -0.04100879281759262, 0.02229076251387596, -0.0616685226559639, -0.052659016102552414, 0.025805247947573662, 0.02252376824617386, 0.07122170925140381, 0.04803775995969772, -0.053396862000226974, 0.05731910467147827, 0.00038105942076072097, 0.047998927533626556, 0.014009395614266396, -0.0508338138461113, 0.045474711805582047, 0.050756145268678665, -0.016892826184630394, 0.004390678368508816, 0.024387802928686142, -0.004905229900032282, -0.05976565182209015, 0.028426548466086388, 0.041280630975961685, -0.00831534806638956, 0.038503993302583694, 0.006917321123182774, 0.012417198158800602, -0.04889211058616638, -0.019106369465589523, -0.08900772035121918, -0.03873699903488159, 0.03605744615197182, 0.028717804700136185, -0.04924161732196808, 0.05176583305001259, -0.03570793941617012, 0.05658125877380371, 0.020290808752179146, -0.04263982176780701, -0.0026115919463336468, -0.04997946321964264, 0.012873498722910881, 0.03939717635512352, 0.02473730966448784, 0.042329151183366776, -0.014659865759313107, 0.04217381402850151, -0.048853274434804916, 0.06838682293891907, -0.018485022708773613, -0.026912018656730652, 0.024776143953204155, -0.02419363334774971, -0.019853925332427025, 0.004021754488348961, 0.07075569778680801, -0.029882825911045074, 0.020290808752179146, -0.08061955869197845, -0.016300605610013008, -0.017310291528701782, 0.06236753612756729, 0.05491139367222786, -0.0612025149166584, 0.0436883419752121, 0.06267821043729782, 0.0003200777864549309, -0.010116278193891048, 0.04089228808879852, -0.023319866508245468, 0.007436726707965136, 0.03168861195445061, -0.06256170570850372, -0.032387625426054, -0.033280808478593826, -0.0270867720246315, -0.030484754592180252, -0.052736684679985046, -0.013281255960464478, -0.03164977580308914, -0.04450386017560959, -0.036970045417547226, -0.005839675199240446, -0.022756772115826607, 0.03310605511069298, -0.09879390895366669, -0.024717893451452255, 0.0545230507850647, -0.04019327461719513, 0.03856224566698074, 0.056348253041505814, 0.01915491186082363, 0.034814756363630295, 0.022756772115826607, -0.042989328503608704, 0.023067444562911987, -0.0545230507850647, 0.045591212809085846, 0.0358438566327095, 0.03368856757879257, -0.04997946321964264, -0.03863991051912308, -0.022213095799088478, 0.06590143591165543, 0.04163013771176338, -0.028737220913171768, 0.047804754227399826, 0.053163859993219376, -0.02036847546696663, 0.0684644877910614, 0.07627014070749283, -0.0013616200303658843, 0.0010115065379068255, 0.005737735889852047, -0.07025085389614105, 0.004538733512163162, 0.04279515892267227, 0.06667812168598175, -0.11083247512578964, 0.048969779163599014, 0.01486374530941248, 0.015727803111076355, 0.009907545521855354, 0.004133402835577726, -0.012290987186133862, 0.03883408382534981, -0.04240681976079941, 0.019718006253242493, -0.03298955410718918, -0.019834507256746292, -0.018368521705269814, 0.07234789431095123, 0.00023330788826569915, -0.0074027469381690025, 0.033766236156225204, 0.032387625426054, 0.022698521614074707, -0.044037848711013794, 0.04330000281333923, 0.05355219915509224, -0.010077444836497307, 0.00889785960316658, 0.02056264691054821, -0.024271301925182343, -0.037086550146341324, 0.0008519226685166359, 0.014921995811164379, 0.014523946680128574, 0.057590942829847336, -0.003186821937561035, 0.03264004737138748, -0.016766615211963654, 0.05630942061543465, 0.0064707291312515736, -0.011553139425814152, 0.04858143627643585, 0.04594071954488754, -0.004351844545453787, -0.009999776259064674, 0.04516403749585152, 0.007723127957433462, -0.0466785654425621, -0.021086907014250755, 0.015465673059225082, -0.04163013771176338, -0.029261481016874313, -0.017378251999616623, -0.006033845711499453, -0.02320336364209652, 0.08893004804849625, -0.0022099020425230265, 0.00152302416972816, -0.01735883578658104, -0.027378028258681297, 0.03704771399497986, 0.020407309755682945, -0.01504820678383112, 0.021455829963088036, -0.044542692601680756, -0.04221264645457268, -0.015397713519632816, -0.021805336698889732, -0.030135247856378555, -0.04415435343980789, -0.0013798235449939966, 0.007096928544342518, 0.026698431000113487, 0.05871713161468506, 0.09242511540651321, -0.007135762833058834, 0.034193411469459534, -0.021630583330988884, -0.020213140174746513, -0.026446010917425156, -0.023319866508245468, -0.0002449884486850351, 0.036775875836610794, 0.025397490710020065, -0.02615475468337536, 0.025766413658857346, -0.08178457617759705, 0.009043486788868904, -0.07801767438650131, -0.021883005276322365, -0.052231840789318085, -0.016154978424310684, -0.0180384311825037, 0.04446502402424812, 0.026329508051276207, -0.02364995703101158, 0.04314466565847397, -0.04489219933748245, -0.059998657554388046, -0.03817390277981758, -0.06205686554312706, -0.026115920394659042, 0.000018383614587946795, -0.005135807208716869, -0.009242511354386806, -0.012048274278640747, -0.01188322901725769, 0.0508338138461113, 0.039669014513492584, -0.09995892643928528, -0.0270285215228796, -0.04990179464221001, -0.060425832867622375, 0.024465471506118774, -0.030581839382648468, -0.0001837034069467336, 0.030620673671364784, -0.022795606404542923, 0.028853723779320717, -0.01022307202219963, -0.00008502540003973991, -0.0025314968079328537, 0.027669284492731094, 0.04372717812657356, -0.042756326496601105, 0.06691112369298935, 0.01663069613277912, 0.0542900487780571, -0.01624235510826111, 0.013621054589748383, 0.05409587547183037, 0.030931346118450165, -0.02382471039891243, 0.000950828252825886, -0.043377671390771866, -0.01815493404865265, -0.024387802928686142, 0.06962951272726059, -0.00825224258005619, 0.020582063123583794, 0.0047086323611438274, -0.04648439586162567, 0.005621233489364386, -0.03883408382534981, 0.05681426450610161, -0.04330000281333923, -0.026057669892907143, -0.019164619967341423, -0.016960784792900085, -0.040775787085294724, 0.06885282695293427, 0.00022648158483207226, 0.02363053895533085, -0.03244587779045105, 0.024523723870515823, -0.02949448488652706, -0.040969956666231155, -0.002002382418140769, 0.005941614508628845, 0.022756772115826607, -0.0325041264295578, 0.008888150565326214, -0.01425210852175951, -0.05203767120838165, -0.008922130800783634, -0.03326139226555824, -0.038503993302583694, -0.015659844502806664, 0.03914475440979004, 0.011494887992739677, 0.0005900959949940443, -0.0051794955506920815, -0.03498950973153114, -0.016902534291148186, -0.04407668486237526, -0.025164484977722168, 0.004303301684558392, 0.02192183956503868, -0.013630762696266174, -0.051299821585416794, 0.0086454376578331, -0.01661127805709839, -0.012727870605885983, 0.04240681976079941, 0.039241839200258255, -0.004036317579448223, 0.012863789685070515, -0.022213095799088478, -0.04058161750435829, 0.008839608170092106, 0.039241839200258255, -0.02326161600649357, -0.01236865483224392, -0.03559143841266632, 0.025203319266438484, -0.052231840789318085, -0.028096457943320274, 0.03236820921301842, -0.01231040433049202, -0.048542603850364685, 0.05110565200448036, 0.012601659633219242, -0.011028879322111607, -0.03145560622215271, 0.06667812168598175, 0.024174217134714127, 0.07188189029693604, 0.027106190100312233, -0.011533722281455994, 0.019795672968029976, 0.06885282695293427, -0.018252018839120865, 0.02609650418162346, -0.0014028812292963266, -0.024581974372267723, -0.007101783063262701, -0.05456188693642616, -0.05755211040377617, 0.03730013594031334, 0.005111536011099815, -0.011106547899544239, 0.01542683970183134, 0.015679260715842247, -0.03120318613946438, 0.029882825911045074, -0.033766236156225204, -0.047183409333229065, -0.01915491186082363, -0.04135829955339432, -0.003774187294766307, -0.0434553399682045, -0.017805427312850952, -0.05056197568774223, 0.03306722268462181, -0.04807659238576889, -0.006276558618992567, 0.00803380087018013, -0.0342322438955307, 0.043377671390771866, -0.04912511259317398, 0.0012451177462935448, 0.05098915100097656, -0.048853274434804916, -0.047804754227399826, 0.05665892735123634, 0.0328536331653595, 0.02992166019976139, -0.029475068673491478, 0.01576663739979267, 0.006407623644918203, -0.011087130755186081, 0.011077421717345715, 0.018455898389220238, -0.009126009419560432, -0.01570838689804077, -0.03467883542180061, 0.06279470771551132, 0.0047304765321314335, -0.07588179409503937, 0.015116166323423386, 0.024581974372267723, -0.0073930383659899235, 0.017281167209148407, 0.05627058446407318, -0.013989978469908237, 0.011912355199456215, 0.052231840789318085, -0.035047758370637894, 0.029261481016874313, -0.009485224261879921, 0.03405749052762985, 0.00441494956612587, -0.03836807236075401, 0.04279515892267227, 0.035921525210142136, -0.021203409880399704, 0.013747265562415123, -0.058212291449308395, -0.01883452944457531, 0.02924206480383873, -0.007708565331995487, 0.05984332039952278, 0.12854081392288208, -0.059804487973451614, -0.0046964967623353004, -0.042756326496601105, 0.04283399134874344, 0.009917253628373146, -0.003740207524970174, -0.00019341193547006696, 0.01704816147685051, 0.01747533679008484, 0.024329552426934242, -0.008276513777673244, -0.029106145724654198, 0.051377490162849426, 0.03217403590679169, 0.02801879122853279, 0.028795471414923668, 0.03205753490328789, 0.03700888156890869, 0.022756772115826607, 0.07316341251134872, -0.029766324907541275, -0.017523879185318947, -0.004548442084342241, 0.05836762487888336, 0.01822289265692234, 0.009470662102103233, 0.025649910792708397, 0.014999664388597012, 0.024834396317601204, 0.0343487448990345, -0.0034780774731189013, 0.011087130755186081, 0.024154799059033394, -0.030814845114946365, 0.024174217134714127, -0.017960762605071068, 0.010543453507125378, -0.011339551769196987, 0.10625004768371582, -0.011096838861703873, -0.041513632982969284, 0.05456188693642616, 0.013756973668932915, -0.02431013621389866, -0.06194036081433296, -0.047066908329725266, 0.017572421580553055, 0.03514484316110611, 0.019795672968029976, 0.04042628034949303, 0.039300091564655304, 0.06792081147432327, 0.01631031557917595, 0.014057938009500504, 0.005834820680320263, 0.048853274434804916, -0.020912153646349907, -0.053824037313461304, -0.03526134788990021, 0.019232578575611115, -0.010747332125902176, -0.0003021777083631605, 0.01326183881610632, 0.055804576724767685, 0.031552691012620926, 0.017077287659049034, -0.002985370112583041, -0.03644578531384468, 0.04997946321964264, -0.06112484633922577, -0.051066819578409195, 0.03126143664121628, 0.01636856608092785, -0.0029246918857097626, -0.09281345456838608, -0.014009395614266396, -0.09413381665945053, -0.013223005458712578, -0.012028857134282589, -0.04935811832547188, -0.0014696272555738688, 0.011426928453147411, 0.02566932886838913, 0.024970315396785736, -0.009970651008188725, -0.02714502438902855, -0.014320068061351776, 0.020154889672994614, 0.013116211630403996, -0.020950987935066223, -0.04015444219112396, 0.009485224261879921, -0.029086727648973465, 0.00781535916030407, 0.05576574429869652, -0.015650134533643723, 0.10081327706575394, 0.06675578653812408, -0.02357228845357895, 0.05102798342704773, -0.004145538434386253, 0.03126143664121628, -0.01428123377263546, 0.0051794955506920815, 0.004934355616569519, 0.007033823058009148, -0.03429049625992775, 0.0036431222688406706, 0.1019006296992302, 0.034193411469459534, -0.06508592516183853, -0.02475672774016857, 0.005776569712907076, 0.04745524749159813, -0.05219300836324692, 0.054950226098299026, 0.016455942764878273, -0.07028968632221222, 0.07623130083084106, 0.0467950701713562, 0.004783873446285725, -0.03137793764472008, -0.0023688790388405323, -0.027009105309844017, -0.005043576471507549, -0.03514484316110611, 0.011087130755186081, -0.027183858677744865, -0.018543275073170662, -0.004555723164230585, 0.05755211040377617, -0.058833636343479156, -0.040037937462329865, 0.00027699623024091125, -0.026193588972091675, -0.006261995993554592, -0.0073542045429348946, -0.06271704286336899, -0.049280449748039246, 0.03681471198797226, -0.023669373244047165, -0.049707625061273575, -0.0007196440710686147, -0.003613996785134077, -0.009582309983670712, 0.024853812530636787, -0.027222691103816032, -0.004747466649860144, -0.028795471414923668, 0.02788287214934826, -0.0065435427241027355, -0.03935834392905235, -0.0012341956607997417, 0.05005713179707527, 0.009592018090188503, 0.00034313552896492183, -0.044659193605184555, 0.05541623756289482, -0.007533811964094639, 0.0013494843151420355, 0.03267887979745865, -0.045591212809085846, -0.03256237879395485, -0.008727960288524628, -0.018009305000305176, -0.022989775985479355, -0.015135583467781544, -0.0037984587252140045, -0.007179451175034046, 0.07576529681682587, -0.029455652460455894, -0.010892960242927074, 0.046018388122320175, 0.02302861027419567, 0.04221264645457268, -0.004630964249372482, -0.02376645803451538, 0.0269702710211277, -0.027921704575419426, 0.044853366911411285, -0.007533811964094639, 0.04120296239852905, -0.0540570430457592, -0.010980336926877499, 0.010825000703334808, -0.008291076868772507, -0.0037353532388806343, 0.006422186270356178, -0.005004742182791233, 0.01847531460225582, -0.013223005458712578, -0.004480482079088688, 0.018455898389220238, 0.0008161225123330951, -0.0508338138461113, 0.018543275073170662, -0.0036868106108158827, 0.0005072702188044786, -0.01767921634018421, -0.02615475468337536, 0.04827076569199562, 0.0288148894906044, 0.03448466584086418, -0.024174217134714127, 0.015989933162927628, -0.05479488894343376, 0.04007677361369133, 0.0326206311583519, -0.007553229108452797, 0.028581885620951653, -0.02425188384950161, 0.059377312660217285, 0.03574677184224129, 0.013572512194514275, 0.07110520452260971, -0.03891175240278244, -0.013980269432067871, 0.0007354204426519573, -0.003558172844350338, 0.04314466565847397, -0.04741641506552696, 0.03891175240278244, -0.0006917321006767452, -0.009271637536585331, -0.0051649329252541065, -0.06318305432796478, 0.034251660108566284, -0.08675534278154373, 0.01895103231072426, -0.02541690692305565, 0.017446212470531464, 0.028212960809469223, 0.03003816306591034, 0.058328792452812195, 0.022018924355506897, 0.06100834533572197, -0.06761013716459274, -0.03256237879395485, 0.002013304503634572, -0.009640561416745186, 0.024834396317601204, 0.025280987843871117, -0.036348700523376465, 0.011232757940888405, -0.013854059390723705, -0.006431894842535257, 0.03957192972302437, -0.03355264663696289, -0.016844283789396286, -0.009417264722287655, 0.017572421580553055, -0.004130975343286991, 0.005329977720975876, -0.01498995628207922, 0.0009738859953358769, 0.04135829955339432, -0.032717715948820114, 0.03704771399497986, 0.018921906128525734, 0.011339551769196987, -0.06850332021713257, -0.03588269278407097, -0.04535820707678795, -0.03867874667048454, 0.07887202501296997, -0.04197964444756508, -0.025028565898537636, 0.034445829689502716, -0.030873095616698265, 0.000537912710569799, 0.03091192990541458, 0.04326116666197777, 0.04252332076430321, -0.029941078275442123, -0.000682023586705327, -0.0009702452807687223, -0.04314466565847397, -0.057396773248910904, -0.0035314743872731924, -0.037144798785448074, -0.07421193271875381, -0.04524170607328415, -0.02671784907579422, -0.029475068673491478, -0.023164529353380203, -0.01716466434299946, -0.009732792153954506, -0.03947484493255615, -0.015912264585494995 ]
30,349
networkx.classes.function
add_cycle
Add a cycle to the Graph G_to_add_to. Parameters ---------- G_to_add_to : graph A NetworkX graph nodes_for_cycle: iterable container A container of nodes. A cycle will be constructed from the nodes (in order) and added to the graph. attr : keyword arguments, optional (default= no attributes) Attributes to add to every edge in cycle. See Also -------- add_path, add_star Examples -------- >>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc >>> nx.add_cycle(G, [0, 1, 2, 3]) >>> nx.add_cycle(G, [10, 11, 12], weight=7)
def add_cycle(G_to_add_to, nodes_for_cycle, **attr): """Add a cycle to the Graph G_to_add_to. Parameters ---------- G_to_add_to : graph A NetworkX graph nodes_for_cycle: iterable container A container of nodes. A cycle will be constructed from the nodes (in order) and added to the graph. attr : keyword arguments, optional (default= no attributes) Attributes to add to every edge in cycle. See Also -------- add_path, add_star Examples -------- >>> G = nx.Graph() # or DiGraph, MultiGraph, MultiDiGraph, etc >>> nx.add_cycle(G, [0, 1, 2, 3]) >>> nx.add_cycle(G, [10, 11, 12], weight=7) """ nlist = iter(nodes_for_cycle) try: first_node = next(nlist) except StopIteration: return G_to_add_to.add_node(first_node) G_to_add_to.add_edges_from( pairwise(chain((first_node,), nlist), cyclic=True), **attr )
(G_to_add_to, nodes_for_cycle, **attr)
[ -0.003356833243742585, 0.010001355782151222, -0.007846737280488014, 0.025034615769982338, -0.06145346909761429, 0.049676671624183655, -0.036258261650800705, 0.004402915947139263, 0.01836109720170498, 0.00256056129001081, 0.028549810871481895, 0.01912837289273739, 0.06798423826694489, 0.051211223006248474, 0.02510599046945572, -0.027068790048360825, -0.020323896780610085, -0.03954148665070534, -0.029299244284629822, 0.037293191999197006, -0.0142213748767972, 0.003546421881765127, -0.0058705550618469715, -0.015452585183084011, -0.012481620535254478, 0.07290907949209213, -0.021430201828479767, 0.09414300322532654, -0.05267440155148506, 0.004249014891684055, 0.010777553543448448, -0.0632021427154541, -0.10684766620397568, -0.005005138926208019, 0.0006953440606594086, 0.075014628469944, -0.018735812976956367, 0.025070302188396454, -0.04014817252755165, 0.040041111409664154, 0.08379369229078293, 0.05624312907457352, 0.02510599046945572, 0.013810970820486546, 0.04521576315164566, -0.02524873986840248, -0.006405863910913467, 0.05342383310198784, -0.002449038438498974, -0.0621672123670578, 0.02389262244105339, -0.0547085739672184, 0.025320114567875862, -0.00821699295192957, 0.08950366079807281, 0.07301614433526993, -0.026444261893630028, 0.04882017523050308, 0.02530227042734623, 0.024178121238946915, 0.01654996909201145, -0.049997854977846146, 0.022750630974769592, 0.029977301135659218, -0.007976103574037552, 0.013239975087344646, -0.04803505539894104, -0.04207528382539749, 0.028478436172008514, -0.018575221300125122, -0.004353846423327923, -0.007182061672210693, 0.0005999921122565866, -0.031440477818250656, 0.020216835662722588, -0.014756683260202408, -0.008212531916797161, 0.014917275868356228, -0.004670570604503155, 0.01907484233379364, -0.022054729983210564, -0.004706257954239845, -0.037079066038131714, -0.011196878738701344, 0.01534552313387394, -0.004612579010426998, -0.09871096909046173, -0.0036423313431441784, 0.0035932613536715508, -0.054101891815662384, -0.0007494325400330126, -0.07290907949209213, -0.0036044137086719275, 0.024445775896310806, 0.03847087174654007, -0.0014297210145741701, -0.00021537821157835424, -0.0376143753528595, 0.02767547219991684, 0.03147616609930992, -0.0031873187981545925, -0.03672219440340996, -0.08322270214557648, -0.028210781514644623, -0.023018285632133484, -0.09607011079788208, -0.08150970935821533, -0.015318757854402065, -0.02653348073363304, -0.006905485410243273, -0.04732131212949753, 0.05902673304080963, 0.06355901807546616, -0.04079054296016693, -0.05809886381030083, 0.060204412788152695, 0.06355901807546616, -0.01971721276640892, -0.027693316340446472, 0.028549810871481895, -0.022643567994236946, 0.004799936898052692, 0.009912137873470783, 0.0641300156712532, 0.005080974195152521, -0.0019594538025557995, -0.032082851976156235, -0.00020241370657458901, -0.024552837014198303, -0.05113985016942024, 0.01996702328324318, -0.023410845547914505, -0.020448802039027214, 0.04093329235911369, 0.002774684689939022, -0.02665838599205017, -0.03379583731293678, 0.006526308599859476, -0.002950890688225627, 0.007668300997465849, -0.02639073133468628, -0.009064565412700176, 0.03595491871237755, 0.039969734847545624, -0.007703987881541252, 0.007199905347079039, -0.05338814854621887, 0.0024066597688943148, -0.06334489583969116, 0.04136154055595398, 0.024160277098417282, 0.026890354230999947, 0.03395643085241318, 0.03447389602661133, -0.038506556302309036, 0.016764091327786446, -0.040683481842279434, 0.05235321447253227, -0.025908954441547394, 0.04211097210645676, -0.005014060530811548, 0.0010984985856339335, 0.03531254827976227, 0.03006651997566223, 0.02107333019375801, 0.01059911772608757, 0.06070403754711151, 0.010313618928194046, -0.021412357687950134, 0.050069231539964676, -0.01117011345922947, -0.01583622395992279, 0.03993404656648636, -0.006182818673551083, 0.00347727769985795, -0.022786317393183708, 0.01749568060040474, 0.0074051073752343655, 0.02530227042734623, -0.008399889804422855, -0.02767547219991684, 0.035794325172901154, -0.005625205114483833, -0.006780580151826143, 0.02223316580057144, -0.016844388097524643, -0.008390967734158039, 0.015898676589131355, 0.04821349307894707, -0.02505245991051197, 0.07148159295320511, 0.05845573917031288, -0.009358985349535942, 0.031636759638786316, 0.035044893622398376, -0.06106090918183327, -0.007008086424320936, 0.0042646280489861965, -0.040612105280160904, 0.15145674347877502, 0.023839091882109642, 0.03491998836398125, 0.0024713429156690836, -0.002009639050811529, 0.05420895293354988, -0.027122320607304573, -0.003776158671826124, -0.007463098969310522, -0.0031427096109837294, -0.031137138605117798, 0.024838335812091827, 0.025534236803650856, 0.04089760407805443, 0.02453499473631382, -0.04339571297168732, 0.051496721804142, -0.04410945996642113, 0.00325869326479733, 0.005888398736715317, -0.021091172471642494, -0.02556992508471012, 0.0364723838865757, -0.07230239361524582, -0.06170327961444855, -0.008957503363490105, -0.02908512018620968, 0.027604099363088608, 0.011642970144748688, 0.03704338148236275, -0.029656115919351578, 0.030601829290390015, 0.045751072466373444, 0.013962642289698124, 0.013766362331807613, 0.08193796128034592, -0.0038988336455076933, -0.02960258536040783, 0.031440477818250656, -0.030084364116191864, -0.0101797915995121, -0.019413871690630913, -0.008319593034684658, -0.03886343166232109, -0.01124148815870285, 0.03491998836398125, 0.03404565155506134, 0.0017787870019674301, 0.016318000853061676, -0.026729760691523552, 0.050568852573633194, -0.010367150418460369, -0.02730075642466545, -0.027265070006251335, -0.002763532567769289, -0.03347465395927429, 0.015265227295458317, -0.033563870936632156, -0.03982698544859886, 0.02465989999473095, 0.005611822474747896, 0.016817623749375343, 0.06798423826694489, -0.0471428744494915, 0.0450730137526989, -0.01063480507582426, 0.029388461261987686, -0.005304019432514906, 0.0035486523993313313, -0.04885586351156235, 0.01769196055829525, 0.03083379566669464, -0.04521576315164566, 0.0823662057518959, 0.02587326616048813, 0.027729004621505737, 0.004269089084118605, -0.01319536566734314, 0.012213965877890587, -0.02139451541006565, -0.021680012345314026, -0.02851412445306778, 0.010866771452128887, -0.03024495579302311, -0.025712674483656883, -0.038506556302309036, 0.00032313703559339046, 0.03049476630985737, 0.021608637645840645, 0.013579003512859344, -0.025034615769982338, 0.018173739314079285, -0.0374002531170845, 0.010126261040568352, 0.06941172480583191, 0.01573808304965496, 0.060668349266052246, -0.03242187947034836, 0.009903215803205967, -0.011678657494485378, 0.024160277098417282, 0.041325852274894714, -0.031101450324058533, -0.036650821566581726, -0.036258261650800705, -0.026105234399437904, -0.026747604832053185, 0.01702282577753067, 0.029067276045680046, -0.005161270499229431, 0.005335245747119188, -0.025998171418905258, 0.0449659526348114, -0.040112484246492386, 0.053209710866212845, -0.06455826014280319, -0.018842875957489014, 0.019752901047468185, -0.02999514527618885, 0.025784047320485115, 0.02093058079481125, -0.030905170366168022, 0.014497950673103333, -0.09271550923585892, -0.02703310176730156, -0.002160194795578718, 0.07030390948057175, 0.0579204298555851, 0.039969734847545624, 0.03918461501598358, 0.00835081934928894, 0.015684552490711212, 0.03392074257135391, -0.014747762121260166, 0.04914136230945587, -0.037079066038131714, -0.03615119680762291, 0.01682654581964016, -0.07187414914369583, -0.003816306823864579, -0.007128531113266945, -0.01590759865939617, 0.04671462997794151, -0.0449659526348114, -0.014239218086004257, 0.009528499096632004, -0.041647035628557205, 0.0139091107994318, -0.015747005119919777, -0.021162547171115875, -0.060668349266052246, 0.0019048077519983053, 0.05524388328194618, -0.06834111362695694, -0.008324054069817066, -0.010608038865029812, 0.056278813630342484, 0.026926040649414062, -0.018575221300125122, -0.016077112406492233, -0.035865701735019684, -0.03743594139814377, 0.013132913038134575, 0.02974533475935459, 0.03192225843667984, -0.018173739314079285, 0.06452257186174393, 0.00592408562079072, 0.029263556003570557, 0.07337301224470139, -0.016906840726733208, 0.017932850867509842, 0.0589553602039814, 0.04182547330856323, 0.0396842360496521, -0.06234565004706383, 0.03889911621809006, 0.011161191388964653, 0.023143190890550613, 0.009269766509532928, 0.04735700041055679, 0.006298801861703396, -0.07119609415531158, -0.01836109720170498, 0.023036127910017967, 0.10470642894506454, -0.00918054860085249, 0.10263656824827194, -0.036900632083415985, 0.075014628469944, -0.03443821147084236, -0.024517150595784187, -0.03170813247561455, 0.037935562431812286, 0.03172597661614418, -0.060454223304986954, -0.06609281152486801, 0.0708749070763588, 0.02858549915254116, -0.01373959705233574, -0.024249495938420296, 0.03743594139814377, 0.035794325172901154, 0.06148915737867355, 0.011339628137648106, 0.02169785648584366, 0.03563373163342476, -0.0048133195377886295, -0.03197578713297844, 0.0020129848271608353, 0.0482848696410656, -0.0024557297583669424, -0.0018100134329870343, -0.0321720689535141, -0.009706935845315456, 0.01059911772608757, -0.04996217042207718, -0.041647035628557205, -0.047178562730550766, 0.02184060588479042, 0.024499306455254555, 0.018932092934846878, 0.0005224838387221098, -0.010260088369250298, -0.00026068431907333434, 0.03911324217915535, -0.01836109720170498, 0.0579204298555851, 0.000302784115774557, -0.019663682207465172, 0.03718612715601921, -0.03950580209493637, 0.042681965976953506, 0.014390889555215836, -0.027729004621505737, 0.021929822862148285, -0.02253650687634945, -0.000026852574592339806, -0.04200391098856926, 0.041718412190675735, -0.009956746362149715, -0.03404565155506134, -0.0236249677836895, -0.01323105301707983, -0.058027490973472595, -0.02749703638255596, -0.05342383310198784, 0.005964234005659819, -0.021412357687950134, 0.043716900050640106, -0.010286853648722172, 0.016523202881217003, -0.0025940178893506527, -0.005727805662900209, 0.043966710567474365, -0.012115825898945332, 0.000875453173648566, 0.04111172631382942, -0.056921184062957764, 0.0019839887972921133, -0.0017966306768357754, 0.00027866734308190644, -0.0010466405656188726, 0.028995901346206665, 0.017772257328033447, 0.010295775718986988, -0.03343896567821503, 0.029566898941993713, -0.022768475115299225, 0.01615740917623043, 0.02569483034312725, 0.032207757234573364, -0.027282914146780968, 0.004534512758255005, -0.08379369229078293, 0.05927654355764389, -0.003069104626774788, -0.05196065455675125, -0.04360983520746231, -0.008939659222960472, -0.08750516921281815, -0.003608874510973692, -0.019110530614852905, 0.05131828412413597, 0.0022315692622214556, -0.025837579742074013, 0.023981841281056404, 0.06666380912065506, 0.004166488070040941, -0.024874022230505943, 0.009582030586898327, -0.013311349786818027, -0.049284111708402634, -0.06273820996284485, 0.05271008983254433, 0.047749560326337814, 0.020181147381663322, -0.02871040441095829, -0.053530894219875336, 0.027336444705724716, 0.01457824744284153, 0.004324850160628557, 0.008917354978621006, 0.031047919765114784, -0.04182547330856323, 0.0267832912504673, 0.042681965976953506, -0.006374637596309185, -0.005469073075801134, 0.0003462779859546572, 0.0461079441010952, 0.04089760407805443, 0.023143190890550613, -0.011187957599759102, 0.010857850313186646, 0.03590138629078865, -0.04625069350004196, -0.030583985149860382, 0.015461507253348827, 0.030334174633026123, -0.02510599046945572, 0.008319593034684658, 0.03886343166232109, -0.01729940064251423, 0.001847931183874607, -0.005174653138965368, 0.021233921870589256, -0.0077262925915420055, -0.0784406065940857, -0.012338871136307716, 0.013962642289698124, 0.0021891905926167965, 0.02478480525314808, 0.015648866072297096, 0.06327351927757263, -0.02646210603415966, -0.055529382079839706, 0.029977301135659218, 0.008431116119027138, -0.05531525984406471, -0.04635775461792946, -0.013400567695498466, -0.00020185609173495322, 0.015729160979390144, -0.009474968537688255, -0.028995901346206665, 0.03922030329704285, 0.05171084403991699, -0.03267168998718262, 0.002099972451105714, -0.033117782324552536, -0.023785561323165894, 0.01271358784288168, -0.08572080731391907, 0.01056343037635088, 0.05124691128730774, -0.038684993982315063, -0.024392245337367058, -0.011357471346855164, 0.011518063955008984, 0.028210781514644623, -0.049355484545230865, -0.04760681092739105, -0.03204716369509697, -0.028103720396757126, -0.012767118401825428, -0.033171311020851135, 0.020216835662722588, -0.049426861107349396, -0.001484367181546986, 0.024749116972088814, 0.039470113813877106, -0.02589111030101776, -0.002341976622119546, -0.0738726332783699, -0.024071060121059418, -0.009617717936635017, -0.04303884133696556, 0.005875015631318092, 0.032992877066135406, -0.051603782922029495, -0.11084464192390442, 0.02653348073363304, -0.0038296894636005163, -0.018343253061175346, 0.061025220900774, -0.007623691577464342, -0.0503547303378582, 0.01335595827549696, 0.015015415847301483, -0.02137667126953602, 0.04671462997794151, -0.06024010106921196, 0.00019864981004502624, 0.004389533307403326, -0.0651649460196495, -0.004518899600952864, -0.0038319199811667204, 0.02601601555943489, -0.006334489211440086, 0.029905926436185837, -0.03174382075667381, 0.07372988760471344, 0.04303884133696556, 0.03732887655496597, -0.05049747973680496, 0.06759167462587357, 0.0034014424309134483, -0.041397225111722946, 0.013132913038134575, -0.03456311672925949, 0.016451828181743622, 0.0698399767279625, -0.0038453026209026575, 0.010608038865029812, -0.04971235990524292, -0.04311021417379379, -0.05406620353460312, -0.00020283191406633705, 0.008060860447585583, 0.013418410904705524, -0.00347504741512239, -0.010670491494238377, -0.009805075824260712, -0.01557749044150114, -0.04953392222523689, 0.0024958779104053974, -0.027122320607304573, -0.05656431242823601, 0.023535750806331635, 0.03450958430767059, -0.03768575191497803, -0.01850384660065174, -0.00044804243952967227, -0.03408133611083031, 0.0050319042056798935, -0.037864185869693756, -0.014649622142314911, 0.01319536566734314, 0.03602629154920578, 0.014158922247588634, -0.04225372150540352, 0.019681526347994804, -0.09935334324836731, -0.0005548254121094942, -0.024392245337367058, -0.051425348967313766, 0.03204716369509697, -0.06484375894069672, 0.015622099861502647, -0.010670491494238377, 0.02055586315691471, -0.022500820457935333, 0.007396185304969549, 0.017656274139881134, 0.010367150418460369, 0.06545044481754303, 0.036311790347099304, 0.000013077778930892237, 0.010982755571603775, -0.07351576536893845, 0.026997415348887444, 0.018896406516432762, 0.05181790888309479, -0.0034549732226878405, 0.0128741804510355, -0.027265070006251335, 0.04671462997794151, -0.0461079441010952, -0.007721831556409597, 0.021733542904257774, -0.04696444049477577, -0.03627610206604004, 0.0014319514157250524, 0.03693631663918495, -0.001213366980664432, -0.021412357687950134, -0.03575863689184189, 0.0006663481472060084, 0.024713430553674698, -0.004289162810891867, -0.03133341670036316, 0.041718412190675735, -0.014765605330467224, -0.03797124698758125, -0.05442307889461517, 0.030976545065641403, 0.020912736654281616, 0.024552837014198303, 0.03243972361087799, -0.01040283776819706, -0.01290986780077219, 0.056992560625076294, -0.003303302451968193, -0.005054208915680647, 0.00890843290835619, 0.02273278683423996, 0.002156849019229412, -0.004661648999899626, 0.024766961112618446, -0.03340327739715576, 0.02048449032008648, 0.03352818265557289, 0.023535750806331635, 0.043003153055906296, 0.043502774089574814, -0.04528713598847389, -0.0025538697373121977, -0.005875015631318092, -0.020591551437973976, 0.019110530614852905, 0.0033211458940058947, 0.03986267372965813, 0.022697100415825844, 0.03897049278020859, -0.03081595152616501, -0.06862660497426987, 0.041004665195941925, -0.016737326979637146, -0.07751273363828659, 0.02253650687634945, 0.0013561160303652287, -0.02216179110109806, 0.01848600246012211, 0.019039155915379524, -0.02112686075270176, 0.008591708727180958, 0.023732030764222145, 0.017772257328033447, 0.05499407276511192, -0.03404565155506134, -0.03483077138662338, 0.05317402258515358, 0.02344653196632862, 0.016103878617286682, -0.037471625953912735, -0.04803505539894104, -0.0578133687376976, 0.035544514656066895, -0.042289406061172485, 0.005072052590548992, -0.021947667002677917, -0.022072572261095047, -0.0016393837286159396, 0.008181305602192879, -0.03743594139814377, -0.0867200493812561, 0.008319593034684658, 0.09085977077484131, -0.009439281187951565, -0.05991891771554947, 0.00017230257799383253, 0.015631021931767464, -0.0026453183963894844, -0.017281558364629745, -0.01181248389184475, 0.013596847653388977, 0.015943285077810287, -0.035027049481868744, -0.011295018717646599, -0.08286582678556442, -0.007070539053529501, -0.04153997451066971, 0.07758411020040512, -0.027586255222558975, -0.007900267839431763, 0.035223327577114105, 0.00009765206050360575, 0.05724237114191055 ]
30,350
networkx.classes.function
add_path
Add a path to the Graph G_to_add_to. Parameters ---------- G_to_add_to : graph A NetworkX graph nodes_for_path : iterable container A container of nodes. A path will be constructed from the nodes (in order) and added to the graph. attr : keyword arguments, optional (default= no attributes) Attributes to add to every edge in path. See Also -------- add_star, add_cycle Examples -------- >>> G = nx.Graph() >>> nx.add_path(G, [0, 1, 2, 3]) >>> nx.add_path(G, [10, 11, 12], weight=7)
def add_path(G_to_add_to, nodes_for_path, **attr): """Add a path to the Graph G_to_add_to. Parameters ---------- G_to_add_to : graph A NetworkX graph nodes_for_path : iterable container A container of nodes. A path will be constructed from the nodes (in order) and added to the graph. attr : keyword arguments, optional (default= no attributes) Attributes to add to every edge in path. See Also -------- add_star, add_cycle Examples -------- >>> G = nx.Graph() >>> nx.add_path(G, [0, 1, 2, 3]) >>> nx.add_path(G, [10, 11, 12], weight=7) """ nlist = iter(nodes_for_path) try: first_node = next(nlist) except StopIteration: return G_to_add_to.add_node(first_node) G_to_add_to.add_edges_from(pairwise(chain((first_node,), nlist)), **attr)
(G_to_add_to, nodes_for_path, **attr)
[ -0.010828414000570774, 0.03764984384179115, -0.04200662299990654, 0.004742536693811417, -0.03772245720028877, -0.007606212515383959, -0.03076976165175438, 0.035852670669555664, 0.01737266220152378, 0.027447715401649475, 0.026558207347989082, -0.0006523824413307011, 0.049957748502492905, 0.052934881299734116, -0.026830505579710007, 0.012271597981452942, 0.02577761746942997, -0.06807469576597214, 0.016147317364811897, 0.017236512154340744, 0.00958491675555706, -0.007329375017434359, -0.0012809387408196926, 0.009575840085744858, 0.009358000941574574, 0.03764984384179115, 0.0015089890221133828, 0.04948576167225838, 0.0491953119635582, -0.03073345497250557, 0.0178083386272192, -0.06578738242387772, -0.08001953363418579, -0.01042904332280159, -0.0020660669542849064, 0.06509755551815033, -0.024325355887413025, 0.011191479861736298, 0.022963862866163254, 0.013242796994745731, 0.052789654582738876, 0.02221957966685295, 0.012416823767125607, 0.0037894912529736757, 0.05090171843767166, 0.0037055325228720903, -0.043495189398527145, 0.0407722033560276, 0.0015611796407029033, -0.019187986850738525, 0.0007913683075457811, -0.01586594246327877, 0.03127805143594742, -0.00686646718531847, 0.0238715261220932, 0.025124099105596542, -0.004942222498357296, 0.015130735002458096, -0.0014136844547465444, -0.014567984268069267, 0.05133739486336708, -0.035671137273311615, 0.026340367272496223, 0.03657880052924156, 0.007569905836135149, 0.009199160151183605, -0.04560096561908722, -0.02951718680560589, -0.0013036304153501987, 0.03494500741362572, -0.04879593849182129, 0.014132305979728699, -0.018824921920895576, -0.0422244630753994, 0.02904520183801651, 0.052825961261987686, 0.006975386757403612, 0.01586594246327877, 0.011808689683675766, 0.011382088996469975, -0.02287309616804123, -0.018271246924996376, -0.07769591361284256, -0.013406176120042801, -0.0016406000358983874, 0.046726468950510025, -0.03314783796668053, -0.03808552026748657, -0.00978460256010294, -0.03630650416016579, -0.028319071978330612, -0.025178559124469757, 0.015493799932301044, -0.013006804510951042, 0.07471878081560135, -0.029571646824479103, 0.017545117065310478, -0.04868701845407486, 0.016464998945593834, 0.014558907598257065, 0.016582995653152466, -0.030461154878139496, 0.0007681094575673342, -0.0407722033560276, 0.005972419865429401, -0.07141488790512085, -0.020731013268232346, -0.005082910414785147, -0.010456272400915623, 0.010991794057190418, -0.04447546601295471, 0.03033408336341381, 0.05787256360054016, -0.028319071978330612, -0.046799082309007645, 0.05529480427503586, 0.04850548878312111, 0.00045099484850652516, 0.009966135025024414, 0.007892126217484474, -0.018498163670301437, 0.02376260608434677, 0.023817066103219986, 0.0506838783621788, 0.04429393261671066, -0.0015248730778694153, -0.01589317061007023, 0.00267987372353673, -0.03271215781569481, -0.10194865614175797, -0.023381387814879417, -0.00763798039406538, -0.02236480638384819, 0.05115586146712303, 0.004390817601233721, -0.013142953626811504, -0.043749336153268814, -0.022038046270608902, 0.04872332513332367, 0.04465699940919876, 0.004018676001578569, -0.07036200165748596, 0.0009887849446386099, 0.017354508861899376, 0.002283905865624547, -0.00529621122404933, -0.0334201343357563, 0.011663463898003101, -0.027956007048487663, 0.00982090923935175, -0.004499737173318863, 0.01434106845408678, 0.006480710580945015, 0.007887587882578373, -0.015620872378349304, -0.026830505579710007, -0.04610925912857056, 0.027484022080898285, 0.05151892825961113, -0.03135066479444504, 0.020549479871988297, -0.010828414000570774, 0.05409668758511543, 0.033873967826366425, 0.011391164734959602, 0.06077708676457405, 0.05224505811929703, 0.05583940073847771, -0.03492685407400131, 0.035235460847616196, 0.012208061292767525, -0.04182508960366249, 0.005114678759127855, -0.002341769402846694, -0.01575702242553234, -0.0613216832280159, 0.025614237412810326, 0.04095373675227165, 0.014631520956754684, -0.03352905437350273, -0.0017075402429327369, 0.03866642713546753, -0.0011220978340134025, 0.04229707643389702, 0.0039029489271342754, 0.001379647059366107, -0.007896664552390575, 0.01721835881471634, 0.019587358459830284, -0.027012037113308907, 0.021856514737010002, 0.04142571985721588, 0.0181804820895195, 0.06222934648394585, 0.0003749780880752951, -0.022637104615569115, 0.01568440906703472, -0.016728220507502556, -0.046871695667505264, 0.17136669158935547, 0.05464128777384758, 0.018861228600144386, 0.02089439146220684, 0.006303716450929642, 0.04469330608844757, -0.05416930094361305, -0.002407575026154518, 0.01149100810289383, -0.026376673951745033, 0.010401813313364983, 0.01832570694386959, 0.01575702242553234, 0.06208411976695061, -0.008713560178875923, -0.056129854172468185, 0.04828764870762825, -0.026903118938207626, 0.017427120357751846, 0.008341418579220772, -0.008423108607530594, 0.021511603146791458, 0.037105247378349304, -0.02045871503651142, -0.043713029474020004, 0.04142571985721588, -0.05228136479854584, 0.014268455095589161, -0.022092506289482117, 0.05696490406990051, -0.02133006975054741, 0.06273763626813889, 0.050248198211193085, 0.018697848543524742, -0.020839933305978775, 0.03924733027815819, 0.020803626626729965, -0.013596785254776478, -0.005032988730818033, -0.015811482444405556, -0.011636233888566494, 0.0029158659745007753, -0.009721065871417522, -0.06077708676457405, -0.03826705366373062, 0.011109789833426476, 0.043567802757024765, -0.011019023135304451, -0.03443671762943268, 0.009190083481371403, -0.003156396560370922, 0.011282245628535748, 0.03884795680642128, -0.016755450516939163, 0.009603070095181465, -0.04178878292441368, 0.026630818843841553, -0.047125838696956635, -0.03614312410354614, -0.016138240694999695, -0.0012877462431788445, -0.006140337325632572, 0.025105945765972137, -0.008010121993720531, 0.04748890548944473, -0.01563902571797371, -0.010882874019443989, -0.003671495011076331, 0.005709197372198105, -0.020440561696887016, 0.015294114127755165, 0.06212042644619942, -0.026830505579710007, 0.05235397815704346, 0.003408272983506322, 0.07464616745710373, 0.029208581894636154, -0.04806980863213539, 0.043676722794771194, -0.030606381595134735, -0.011545468121767044, 0.006231103558093309, -0.012162677943706512, -0.01906091347336769, 0.008259729482233524, -0.02096700482070446, 0.03921102359890938, 0.007946585305035114, 0.04879593849182129, -0.026794198900461197, -0.029862098395824432, 0.06967218220233917, -0.008831556886434555, -0.015221500769257545, 0.05464128777384758, 0.028300918638706207, 0.05162784829735756, -0.022709717974066734, 0.029843945056200027, 0.018770461902022362, -0.02688496559858322, 0.06629567593336105, 0.008223422802984715, 0.007692440412938595, -0.03823074698448181, -0.008527489379048347, -0.02541455253958702, 0.017681267112493515, 0.03601605072617531, -0.04502006247639656, 0.01920614019036293, -0.06164843961596489, 0.013905390165746212, -0.015775175765156746, 0.02926304191350937, -0.027738168835639954, 0.0337832011282444, 0.017617730423808098, -0.03953777998685837, -0.05743688717484474, -0.0253419391810894, -0.06604152917861938, 0.015775175765156746, -0.05460498109459877, -0.010910104028880596, -0.05772734060883522, 0.050211891531944275, 0.04106265306472778, 0.03616127744317055, 0.002852329518646002, -0.021130384877324104, 0.013406176120042801, 0.046908002346754074, 0.0004336925339885056, 0.036887407302856445, -0.02695757895708084, 0.04164355993270874, 0.0023145396262407303, -0.02093069814145565, -0.029825791716575623, 0.040699589997529984, 0.01806248538196087, 0.008137194439768791, -0.02750217542052269, 0.020549479871988297, 0.02383521944284439, -0.03815813362598419, -0.0181804820895195, 0.02757478877902031, -0.026195142418146133, -0.0196418184787035, 0.020331641659140587, 0.014994585886597633, -0.05718274042010307, -0.03125989809632301, 0.004027752671390772, 0.07264931499958038, 0.016210854053497314, 0.0015101236058399081, 0.014114152640104294, -0.0011039446108043194, 0.01931506022810936, 0.03136881813406944, 0.03298445791006088, -0.01589317061007023, -0.025759464129805565, 0.04523790255188942, 0.050393424928188324, 0.04636340215802193, 0.03627019748091698, -0.05242659151554108, 0.02940826676785946, -0.001545295468531549, 0.06422620266675949, 0.05086541175842285, -0.03076976165175438, 0.06771162897348404, 0.04251491278409958, 0.02632221393287182, -0.05402407422661781, 0.04748890548944473, -0.000763571122661233, -0.07805898040533066, 0.004837841261178255, 0.0484691821038723, 0.07936601340770721, -0.026975732296705246, 0.12474914640188217, -0.030969446524977684, 0.011999298818409443, -0.02294570952653885, -0.030243316665291786, -0.026576360687613487, 0.025759464129805565, 0.01626531407237053, -0.031042059883475304, -0.10369136929512024, 0.04905008524656296, -0.005523126572370529, -0.047198452055454254, -0.03436410427093506, 0.015266884118318558, 0.019042760133743286, 0.013542325235903263, 0.030134396627545357, 0.03220386803150177, 0.019732583314180374, -0.043277349323034286, 0.02452504262328148, -0.0036919175181537867, 0.0356166772544384, -0.0049921441823244095, 0.0022997900377959013, -0.02298201620578766, 0.004334088880568743, 0.019115373492240906, -0.039828233420848846, -0.027447715401649475, 0.0023281543981283903, 0.012525743804872036, 0.0037667995784431696, -0.024924414232373238, -0.0036011512856930494, -0.0451652891933918, 0.025178559124469757, 0.04505636915564537, -0.00833688024431467, 0.022165119647979736, -0.01626531407237053, -0.0023984983563423157, 0.05268073454499245, -0.009829985909163952, 0.02316354773938656, 0.03443671762943268, -0.017599577084183693, -0.000053821553592570126, -0.015493799932301044, 0.01222621463239193, -0.07301237434148788, 0.0033810429740697145, 0.0019684932194650173, -0.010002441704273224, -0.019333213567733765, -0.04592772573232651, -0.027229877188801765, -0.07036200165748596, -0.09185545146465302, -0.031223591417074203, -0.006798392627388239, 0.07551752775907516, 0.005818116944283247, -0.00022776657715439796, -0.029698718339204788, 0.01956920512020588, 0.0613216832280159, -0.011082559823989868, 0.006380867678672075, 0.01832570694386959, -0.04447546601295471, -0.02559608407318592, 0.004801535047590733, 0.011518238112330437, 0.02761109545826912, 0.06546062231063843, -0.029208581894636154, 0.0240530576556921, -0.004363587591797113, 0.05137370154261589, -0.03080606833100319, 0.009439690969884396, 0.0037894912529736757, 0.04865071177482605, -0.03073345497250557, -0.04879593849182129, -0.05496804416179657, 0.08662731200456619, -0.013015881180763245, -0.01645592227578163, -0.034382257610559464, -0.05591201409697533, -0.056674450635910034, 0.023036476224660873, -0.04193400964140892, 0.04857810214161873, 0.01960551179945469, 0.02588653564453125, 0.03227648138999939, 0.04233338311314583, 0.029172275215387344, -0.007288530468940735, 0.012198984622955322, 0.06713072210550308, -0.04875963181257248, -0.043531496077775955, 0.03543514758348465, 0.02632221393287182, 0.03881165012717247, -0.02864583022892475, -0.04563727229833603, -0.011890379711985588, 0.014368298463523388, 0.006072262767702341, -0.010147667489945889, 0.013324486091732979, -0.0016315234825015068, -0.005491358693689108, 0.06843775510787964, -0.0024983412586152554, 0.020876238122582436, 0.013115723617374897, 0.022038046270608902, 0.030715301632881165, 0.04570988565683365, -0.018198633566498756, 0.0151488883420825, 0.04868701845407486, -0.04886855185031891, -0.003573921276256442, 0.011572698131203651, 0.020694706588983536, -0.006285563111305237, -0.004136672243475914, 0.023744452744722366, 0.008899631910026073, -0.037359390407800674, -0.04799719527363777, 0.03794029355049133, 0.006485248915851116, -0.049994055181741714, 0.012589279562234879, 0.04120787978172302, -0.010202127508819103, 0.09381600469350815, 0.004742536693811417, 0.053007494658231735, 0.017817415297031403, 0.02280048280954361, 0.05184568464756012, -0.021094078198075294, -0.04135310649871826, -0.043349962681531906, -0.014422758482396603, -0.00994798168540001, -0.026794198900461197, -0.0341462641954422, 0.0014307030942291021, 0.014014310203492641, 0.011826843023300171, -0.04389456287026405, 0.020476868376135826, -0.072721928358078, -0.024252744391560555, 0.008391340263187885, -0.07105182856321335, 0.07878511399030685, 0.03650618717074394, -0.021166691556572914, 0.019224293529987335, -0.023454001173377037, -0.011373012326657772, 0.0334201343357563, -0.06506125628948212, -0.06473449617624283, -0.020004883408546448, 0.01310664787888527, -0.0012162678176537156, -0.035852670669555664, -0.004715307150036097, -0.04948576167225838, -0.01177238393574953, -0.014549830928444862, 0.02053132653236389, -0.011182403191924095, -0.04574619233608246, -0.09439690411090851, -0.03935625031590462, -0.02746586874127388, -0.059324827045202255, 0.016328848898410797, 0.025087792426347733, -0.032675851136446, -0.11029915511608124, 0.07239516824483871, 0.02251003123819828, 0.01975073665380478, 0.04748890548944473, 0.013614938594400883, -0.03628835082054138, 0.03772245720028877, -0.018017102032899857, -0.059942036867141724, 0.015911323949694633, -0.04167986661195755, 0.02470657415688038, -0.016074704006314278, -0.038194440305233, -0.030642688274383545, 0.00552766490727663, 0.0006427385378628969, -0.03458194434642792, 0.035344380885362625, -0.037141550332307816, 0.027738168835639954, 0.017654037103056908, 0.03939255699515343, -0.030315930023789406, 0.0005749475094489753, 0.012462207116186619, 0.010891950689256191, -0.028010467067360878, -0.0003616468166001141, 0.04541943594813347, 0.07079768180847168, 0.02390783280134201, 0.014322915114462376, -0.04106265306472778, -0.05101063475012779, -0.06273763626813889, 0.021892821416258812, 0.02452504262328148, 0.005672891158610582, -0.04171617329120636, -0.035525914281606674, 0.009067549370229244, -0.01290696207433939, -0.027157263830304146, -0.017762957140803337, -0.0014091461198404431, -0.043821949511766434, -0.032294634729623795, 0.005904344841837883, -0.027556635439395905, -0.0756627544760704, 0.02782893367111683, -0.0334201343357563, -0.008255191147327423, -0.09563133120536804, 0.0009167391690425575, -0.02846429869532585, 0.03213125467300415, -0.024652116000652313, -0.09040319174528122, 0.015593643300235271, -0.1010046899318695, -0.040372829884290695, -0.0015611796407029033, -0.010692264884710312, -0.01534857414662838, -0.09592177718877792, 0.05485912412405014, -0.04825134202837944, 0.006834699306637049, -0.005795425269752741, -0.006008726079016924, 0.012162677943706512, 0.05845347046852112, 0.0547139011323452, 0.009294464252889156, -0.012080988846719265, 0.012652816250920296, -0.02688496559858322, -0.029626106843352318, -0.04266013950109482, 0.07696978747844696, 0.010528885759413242, -0.017272818833589554, -0.03062453493475914, 0.022038046270608902, -0.06212042644619942, 0.014685980044305325, -0.024761034175753593, -0.04458438605070114, -0.01913352683186531, -0.0025822999887168407, 0.04821503534913063, 0.018162328749895096, -0.022092506289482117, -0.01975073665380478, -0.03543514758348465, 0.0033333906903862953, -0.0448022224009037, -0.04875963181257248, 0.03953777998685837, 0.010093207471072674, -0.02448873594403267, -0.04879593849182129, 0.04785197228193283, 0.00432501221075654, 0.03076976165175438, 0.012616509571671486, 0.014713210053741932, -0.004615464247763157, -0.053443171083927155, 0.011672540567815304, 0.03449117764830589, -0.0048650712706148624, 0.01975073665380478, 0.01880676858127117, -0.010120437480509281, 0.024761034175753593, -0.023925986140966415, 0.027847087010741234, 0.06567846238613129, -0.004665385466068983, -0.00673939473927021, 0.004393086768686771, -0.056057240813970566, -0.02368999272584915, 0.011391164734959602, -0.06371790915727615, 0.010075054131448269, -0.015049044974148273, 0.0004178084200248122, 0.04157094657421112, -0.026648972183465958, 0.011854073032736778, -0.028264611959457397, 0.05231767147779465, -0.04875963181257248, -0.09737403690814972, -0.009575840085744858, 0.02713911049067974, -0.06629567593336105, 0.020113801583647728, -0.0035898054484277964, -0.026685278862714767, -0.03327491134405136, 0.006898235529661179, -0.04418501257896423, 0.06444404274225235, -0.03532622754573822, -0.06593260914087296, 0.05424191430211067, 0.021947281435132027, 0.05758211389183998, -0.00026549131143838167, -0.022818636149168015, -0.03950147330760956, 0.03294815123081207, -0.007297607138752937, 0.015176118351519108, 0.02229219302535057, 0.023617379367351532, 0.03957408666610718, -0.046799082309007645, -0.022746024653315544, -0.0877891257405281, 0.010410889983177185, 0.03576190397143364, -0.04128049314022064, -0.004381740931421518, 0.04240599647164345, 0.03062453493475914, -0.00027045508613809943, -0.028155691921710968, 0.034836091101169586, 0.028536910191178322, 0.028064927086234093, -0.04487483575940132, -0.00193445582408458, -0.0569285973906517, -0.07370220124721527, -0.029989171773195267, 0.03087867982685566, -0.009938905015587807, 0.040191300213336945, 0.05798148363828659, -0.08183486014604568, 0.059760503470897675 ]