Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance issue when drop large number of nodes #991

Closed
xieying opened this issue Nov 5, 2018 · 3 comments
Closed

performance issue when drop large number of nodes #991

xieying opened this issue Nov 5, 2018 · 3 comments
Labels

Comments

@xieying
Copy link

xieying commented Nov 5, 2018

I got a weird problem that when I drop the same batch of nodes there is a big difference in using time at the following different cases.
First case--the nodes's id is set by numeric string obtained in the database;
Second case--the nodes‘s id is set by random function in js, the random numbers have the same length with nodes‘s id in the first case.
I used 3221 nodes, and when I drop nodes in the first case it costs 25 seconds or so while in the second case it just costs 3 seconds. Has anyone met the same problem?

@Yomguithereal
Copy link
Collaborator

There might be issues concerning the memory layout of the lib leading to memory leaks. If you are adventurous you can try the now unereleased sigma v2 (on the v2 branch, check the examples folder) because this should be fixed.

@xieying
Copy link
Author

xieying commented Nov 6, 2018

Thanks for your replay. I make a mistake that I confused sigma.js and linkuris.js. I used linkuris.js yesterday...And I try sigma.js today, and the performance is much better than linkuris in the second case which costs just 7 or 8 seconds. However, there still a difference between the two cases--the first case costs 4 or 5 seconds while the second case costs 7 or 8 seconds(I have tried v1.2 and v2, and no difference).I really can not figure it out.. The following is the code which I modified based on basic.html in the examples folder.

`
//add a button in the dom area.

delete

//js code
var idArr = [
16019696,219934936,385147104,224960736,696340720,392220672,167833624,695238696,696647920,457236504,34648280,918954224,591675616,1207120112,1097773096,603398152,541581536,345411744,416145432,338264304,456003800,464621784,905416944,40599560,177201312,222752992,468889816,435290336,435708120,553468128,81506312,471764992,242741408,907854064,78987488,534364400,442745072,839717104,553939160,775700720,815697960,374763744,190177288,610443304,528367840,350531592,981192744,227193056,331218984,428085272,503599264,228855968,469446872,269295776,336551976,113094656,964161576,539590896,1170890792,420696064,601567448,1087762472,1048313896,263995608,133300224,246554784,50647256,475840512,682930416,47644912,149401608,1077616880,553803800,530857984,260722696,470396936,598556680,249692160,516047064,614735872,299847720,446722072,832573680,280424472,273387528,102629536,616587264,1226231848,41820376,519823576,1158586608,1215451376,236163096,302653448,341553312,384770056,594874608,473780264,816554224,440447200,1150922792,369831960,652869672,625877216,514101272,353779720,949174312,206082272,241254424,1160331304,470864112,125669400,525004800,531198168,1001676840,898252840,797454376,564211928,274771976,439820528,405012520,459980824,236204040,563446000,318259416,428957920,887914536,496218136,222953496,1010987248,80847008,253595656,335949864,545554432,280961240,322740448,380850176,151068712,367276032,1060729072,507760680,115933344,263930072,487166192,660832296,463839232,557346824,616697880,333324296,694972456,441647112,155369496,1031073832,124997656,465178840,256811008,79605768,627507416,1046323240,206622944,432418816,162754568,658493680,624214024,189538312,250794024,406438104,1239613480,461086760,496955432,506536096,994308336,595615984,987234544,1078780144,313675800,631685160,962760744,205664264,411910304,367534320,504434928,403804168,376389672,329011240,1091809520,404963488,161964256,500293792,829083688,638607400,733851688,606834928,818012400,976998440,173555712,849850608,98197544,757551144,623894536,274001920,375689456,487149576,414572704,177455144,736448552,1132716272,867832048,552042720,326152216,1247318256,429060096,463917296,367567072,358858912,1239953448,172970144,585928928,170913792,954405104,263208960,660033776,880738544,448098528,694128880,180130016,108343320,507465728,527622184,520876248,472772648,503066784,412090376,463601888,181829848,480583904,371257584,212254944,861114608,872312872,163016712,555901088,178974944,546042072,183034080,117379312,424476912,575324384,656281840,511176920,209633280,374341856,226443424,503775448,677687536,516841496,267096280,366321672,668508400,37883944,379506904,342622368,273682656,581771480,564166696,315850976,361914376,1241448488,599605248,415059976,60616928,79630496,404685024,295194784,372764712,161210376,182706336,23245024,399175840,218964008,586637472,1012617456,67748000,369959136,1128943856,141176872,380047400,359809048,524722392,544092184,1192427760,723550448,208986136,582795304,602079232,392655088,336289800,838242344,1194074152,534433952,1114583080,562978840,211709952,115867656,434442280,380170480,1085321456,321417432,504340488,530595864,265113824,571351048,985100328,58654936,432799768,157655048,325251288,1205141744,575049952,474247408,942874864,246632456,534732824,459796720,535789784,985800744,275132424,539979936,614141952,644309032,417779712,1142124584,293327008,668639472,889593896,912654576,162983936,429219848,709075184,585433304,186826752,213508136,274514144,599154696,561573896,1050624040,328798424,91087072,470671368,625086624,434790400,448819440,564019224,1012600872,469385432,153874432,463466520,818561064,1068241136,1220792360,902942960,319008768,520417288,418967768,583823576,121765912,506216448,534388776,382566400,92635352,792043560,196354048,523857928,832749808,282824944,248439000,373272584,800571632,800673832,182247424,224264200,1151467560,239386664,25153560,394940656,509644800,602939608,202715144,79298776,454098944,1012723752,1191805168,514514968,359632920,195404000,295272448,570007712,181948416,286671064,227250184,628334616,79192088,369840352,389837040,831488240,592908448,312782856,1102172200,313126936,573530328,36438016,701239336,86982664,562982952,593203424,649384176,771322096,131322072,581554336,1136431344,902828072,197148832,570982400,806580464,440115360,193355784,327807192,383672360,312901792,337784992,603701256,378978544,265162976,606150680,388112384,942412016,549327064,80908448,580300800,297599192,980365552,202317848,216236032,998400040,882090024,188109024,369598704,524222688,239693848,419766280,310939864,596230368,28463328,309919744,541913328,317726880,266485920,133636336,168235048,211501296,311599344,535077088,354722032,518410248,342966312,433135840,141639688,730099752,230760456,364838920,584429792,180576256,278884376,759275760,854839536,41586688,374821088,1135055088,501141544,989446384,533237920,1070338088,271118336,559390880,619950320,306847984,508395528,22310912,609427616,104743128,247988464,473784328,412508200,94851296,125296648,300470296,950866160,951382256,1085702384,589991976,512196768,1102553328,328577032,561262752,863052016,605700336,858681384,631513328,458203176,751325224,79466656,73670696,748454128,1005838376,244834520,862584872,1150423080,857284648,621625344,57548960,192536736,384336112,320454656,224018592,94552288,78200872,419696640,513761496,1114067184,917983272,666382576,479133856,435335384,166473888,511381512,584499200,262766616,573165808,366285040,473088216,701472808,989122600,1243279600,263499992,630690032,341549280,483188776,435826688,83681496,36151320,1238188272,406810648,1213133040,110022816,155504648,167796744,187596824,147238936,1035587624,226209792,174206984,316309528,543183064,720122096,596173040,710795504,127971368,329441440,629288984,161312928,444715048,589942784,175075544,295907568,518877224,1211490344,628695280,705519856,444280832,498769944,548085784,980488432,157167776,383856680,258002944,232067096,575561728,319340704,1089126640,306917600,417792000,443764760,279630064,406667304,443224088,1137029360,251429080,506449960,420806696,268824736,565780520,428335264,305377304,274022616,1244188712,577593384,746127600,601977056,523989032,219369472,67444960,446197768,170569768,547254296,296951848,25223392,638099496,164593672,121880576,643219696,58920960,190971928,383668264,225681448,169279496,175255552,285990952,531824856,530251936,1129939184,901136624,582492384,277930224,875843824,322224352,337756200,1105252392,101454064,1243234344,565125360,210964640,52805856,1196367912,57123032,451477744,198889496,561545440,825282600,528617472,301105160,1079861288,318247128,616321024,778117360,237031424,419332320,484806896,799355120,334688280,1120891120,958242856,493408416,189702168,248549592,277766152,651575536,320176152,718835752,165195800,417742848,318476504,188289024,313749504,347873288,459464728,615010528,1211728112,1179816176,693592304,1199353896,261742592,569618456,227426312,311779488,152903704,260923608,609869984,1127501864,369541144,484511968,779735280,428015624,613466112,539586720,1016950824,465944600,463577088,222638088,829915376,278482952,82993312,175407344,472965336,19374104,585064608,25075872,196907224,201424936,40747032,363864280,143560944,771875056,1198723112,133234912,213807144,525013032,608264408,906432552,300724224,581046496,373604576,148799512,499154984,229613592,347631616,197902576,283975840,210837664,470810784,727965936,555790496,347713544,282796256,517722352,616599712,456544296,1173463080,372420616,123326680,157437992,502255856,626528480,176677088,624898048,523726888,449171680,1205407984,341569576,412536856,550109192,421089520,442614000,485031944,530984968,534265864,450535648,28749832,368390304,604008456,468422664,376365080,529043464,1201561640,571736224,313352352,417186032,483278888,1104830504,569974808,112742640,342933728,412590104,427446488,840896752,371986592,971546664,481235168,537530392,480116960,1072451624,395317488,440750304,872890608,64315400,507326504,175902880,620015832,284664048,1127366896,138432752,383655976,436322544,142430208,201691352,192319648,149204992,842170608,1187393776,41508864,557187312,835821608,469745880,229060608,1163317288,512720904,927682600,601030664,164831448,311414808,376565784,179261464,185978904,548524056,427647200,667476208,538153000,303943896,568180960,1180864752,275632128,311644320,335630360,198115488,609890520,475541744,866791664,560406752,591978520,98582536,424448160,713662504,424263704,199749848,127012872,435200040,461701120,284688384,247255256,529961120,630661144,87744752,1136271400,368160776,448450720,94970096,126566408,298905816,566603784,220426456,116822056,238923992,563912864,352948448,456523784,620642544,1123639536,421920808,196501720,453791744,27205856,422433008,201478144,1235939568,161431576,349487328,438730912,74338304,244908032,203718664,426705136,708870184,503947264,548532448,192368640,905236520,290423000,1187098664,510173224,538423536,239783944,955015208,465297432,982892584,138059784,966410280,291020824,952348912,549888160,441999600,579117080,450871456,273924136,231079944,403161088,785510640,423125152,445771784,518893568,329138336,750481448,260444384,167362560,510898400,517246984,505327776,1197969648,399741144,1010102312,189808648,586395872,1099145256,891703336,573489160,282652680,382959624,1081544744,254099672,453873904,580882648,331706408,791638056,319185112,366391512,155529216,859021552,629600496,832958704,344826016,175403248,527126744,390479896,440000552,348000264,167071752,413180128,354168872,161218720,697548840,156377088,365559808,224251928,306467032,364605664,863051816,272433192,457846792,1188110376,461918368,463245552,282255384,26869784,291295240,807174384,988246056,438120688,502853848,1043222568,378351624,487493656,256618496,437739744,1238888688,372068376,476790792,32870408,444678360,40169496,23691488,230375584,484253720,469749784,470978584,445579480,228237472,318173408,332836888,626307096,461766696,610103320,352936152,503246848,1191833840,469168344,551579864,1219448872,416358424,365998104,548237312,1134080240,243392672,282734832,352215200,359657712,833708072,461742240,540684448,343957512,446722272,419860488,456929280,420896928,448421896,1130577960,425189592,999718952,406433792,294547464,742072560,1222775024,195108888,174964744,68227296,452223192,728211496,1155289128,418517208,100618456,1131044904,179712040,1054027816,479641840,437764120,435073184,426746072,1004560624,452464856,973066280,492797992,444723240,515977456,587419648,524832768,601587872,323100672,1235742760,511148248,708464680,89292840,1112400112,286560480,312467680,294215704,508489736,720781352,533667848,436080664,904896752,304402592,274591904,506568728,470597640,626598128,260714736,506658816,299409624,308764672,262168816,385175776,447918080,437547224,338604272,397340888,206770400,742051880,224440536,806400240,964456688,583876632,537993456,267890696,57487584,319217672,191627488,388628720,1181589744,1036308720,261234904,211234840,250773728,887869680,202752024,1215013104,415469784,369213680,186994928,1142255656,400347144,354848928,367726600,330629128,524763352,381034720,1168269352,612597976,528634016,284430552,281665536,208478232,466575360,177381600,350855392,446542048,542413040,823394344,368599280,234139872,1178706160,377073824,22323200,213151752,301953240,417288200,950284528,680448240,587550744,576868376,157126880,903122984,554049696,162701528,1128939760,197660896,588312584,383660072,329216000,587219168,397893632,303243272,1222852848,186912776,644952104,320618712,240509144,267829464,355008672,371396848,479412224,625795080,652669168,350302424,374530088,258285728,1124937768,483246120,1130508328,329072880,446828704,245755904,505159720,1225515048,192659496,625946648,226078744,136429808,880046320,521011224,621486320,282984664,93794328,578199792,839176232,533356544,1255120936,890712304,198017248,500642016,680579312,587817184,460521712,480321544,338165984,35504128,155070472,370958576,257933528,201986048,543154336,625148128,183120088,818253864,219664608,452653280,446423080,1083990056,129564896,295485440,418885792,561647832,224710664,412004576,291946496,302506208,538378400,523186336,756121840,88260616,268087304,447733920,530927776,554176520,621150208,309137408,813396208,1031688232,617598976,1065382128,625877232,577929256,343793688,357232640,463159512,598311136,66531544,544313344,286294232,447647744,566468608,490676264,117674024,608866528,492167208,974729456,83230720,153145384,624652528,313356512,532762784,546230512,1080180776,539971744,700489968,995926056,823021808,542449704,267108568,510795776,608891040,1149817072,418754776,615878696,106516504,355909848,127209480,535613480,315969560,815374576,338677800,171483352,336683168,525156352,666480680,396738600,1073262632,224501976,335564960,856354856,117244120,126849184,110526624,300052696,763514920,1186885872,594514160,550670376,868700200,282800352,33730560,794456104,153939976,420454624,105554080,279982296,250183688,435236864,1075527920,576323584,1093062696,996167920,344301808,269975768,266768600,428671216,82157592,311415008,321208360,355086360,380731616,1089462312,340553752,479485952,392634608,1012314352,221368480,1133367336,470310936,1215582448,518705176,304189440,931676200,512950272,353980424,694902824,197406744,254259416,999129128,603123720,576049368,489746648,558604512,890007792,498163712,230396128,268779736,424710144,436318432,44196056,442204400,58540056,153329704,495436016,1226043632,226791432,992092200,514596888,306524168,922890480,277307416,407674888,383533216,217149480,370016480,591278080,157638816,132493528,957554728,137035992,567554208,125505760,942219504,45461728,283713760,466927832,49103008,174276632,415674592,1177846000,237453528,1050591272,346452184,445386760,563064856,962564136,437076208,329298144,260792480,314445984,315891736,377602056,413237488,474628336,1210790128,299815152,386203656,190283936,22548696,691429616,348545032,397172896,457568256,128909320,940585200,920178928,491249688,400797936,819793960,328143088,1043832872,506114072,126898200,624980128,165642456,438112256,483790848,567451808,566436056,308490240,376889352,643231784,563032224,496931056,802492656,398602240,76132576,526983408,1168523304,96129048,966840360,644698352,848392232,37970080,206094336,432279768,264445952,722342128,246407328,419123440,161431768,669220904,234553560,281657560,456445992,791986416,594378968,213692416,899514408,596758688,262971416,482328584,359870504,420479192,418357272,205635800,1196888104,572182536,326901800,604926112,365052128,454844424,514826280,533156064,174813208,337785072,436977672,599654640,380125192,637747440,1230610672,451850264,291840240,574210264,337113312,382546144,527773736,357699592,553173016,673710120,515285216,281280536,258625536,1126904048,303366360,517226520,550506496,592830472,1170862120,80896160,658288680,253411352,437944544,244727816,402411520,456851616,166780936,587382808,1122607344,856936688,1091035176,283545824,162689184,539058392,314896384,915702000,464130272,511512792,463937536,191172832,590442520,551981272,184770800,581558312,820875304,178106392,592506920,339189976,596553968,720494632,1202606320,368734368,519999488,62824664,278704288,359460888,999809264,427974816,271724584,537149600,213917920,562704544,425459752,550227992,153809056,184996000,429113368,1209929768,30019592,312778912,761831464,168087768,372973608,273248416,653644016,242208928,238714904,521064472,423395488,1078898928,426504192,618213400,1245421608,383295712,111620336,517705768,625033376,1062289448,377520136,676552944,573391064,472338648,480620552,555778272,596177120,283590872,473825288,562233352,611569880,98963464,148643848,1255223336,713228328,148762632,475013336,541835424,288288808,323313904,144433312,251085016,880386288,1198854384,1090961448,34721816,1025310960,973402152,229519400,587530240,504676592,1194578160,202280984,582692888,295542808,1209041136,177201376,230817816,333312160,1230897392,460664856,283070624,571834592,590901256,469827744,922321136,376762608,972378152,452210712,685949168,122556632,940781808,511385840,358699232,389152984,165593248,441622752,1150738672,461357280,620003352,975568936,272441352,1079808240,573210848,1138073840,980447272,348778496,258404568,928948464,124133376,621723672,553775104,316379352,245555360,625803504,226312416,301142176,759939112,494448664,82792488,499740672,888610856,186269704,583258336,1212326128,873197608,497401880,397480160,135131176,452464664,462311464,124100832,422555656,538333344,147402776,1160773872,431358112,582909992,1143730416,297836768,927055912,487874584,389894168,750158064,366317784,505864432,540315672,779092208,972624112,1211113712,1084215336,607281312,585048072,428298400,297509088,172347552,1119224048,429723864,292577304,806457384,395411464,73224416,733888752,777380080,553435376,626917384,1191067688,157462688,880754728,256585944,337825792,66339040,589180928,43757608,528125992,546869288,335724552,470130728,930885872,216739864,457027624,214126816,1169985776,54829296,340037632,703447080,976519208,38482136,276259032,419295456,211632128,977149992,387285152,519057624,1086758952,496394480,360247520,102625440,1219817512,608555232,580812840,368885976,257208328,432365792,590946528,918085872,260628504,284192776,615084072,397222128,488243224,159449112,212463640,71475208,265695232,800469232,447180840,176943264,355577856,569843872,317849608,377438448,410648584,444399640,204042240,528592896,381890568,342630424,106574064,616534024,451739656,708690160,624091360,161902632,156340440,221810848,467431584,26509536,443175152,214147312,645087272,548442336,516214944,124817432,241361056,262287584,335863968,253063408,1200742640,515854336,393138184,184987672,479510744,202002432,393044008,1048740080,299900928,497942768,1105371376,382201856,597397504,387518704,530448392,182657240,478261472,202350592,508186784,381706280,473039072,1005309992,226955272,256294912,425017368,480112864,523596000,528388120,556024048,964620328,548028456,160235520,660914416,165892336,622186736,393126112,344567832,990867696,1224777768,143192064,197054488,387362856,284000472,420819168,417206280,535470080,502145264,541700320,814968872,498974960,411725832,489562272,128970912,178942168,365899784,62615560,244977688,720851184,1229803760,73986048,474476768,330875096,649752616,323141872,491872280,594870512,450174976,1204686888,447950888,621428896,562139376,872108272,436875288,907776040,253763584,541860056,458735640,360874024,191356952,435970072,262504488,625762528,438157336,1229680880,361611264,536957144,681869552,253243400,106160152,581550104,539795496,915681320,442613760,430927880,610557976,532848864,191836384,954409200,115474648,622448664,179056648,210637040,494051488,640651504,701751336,665759984,251818200,915599600,621949088,559444128,645030128,463806472,554160368,823202032,249884672,344129536,595267744,509284360,589381872,373149696,232042496,421167344,175202328,286687392,575660072,33132568,319324400,558981344,106983432,560295960,771313904,383758376,379219992,617304064,333213704,750047272,225562840,272642272,303325192,135213096,1029271792,172335264,248442888,167456984,117108976,1257074728,237883400,513826824,575733976,406573064,105513120,342753304,750190832,784961576,453181664,529428696,276394008,478453760,380854272,460468384,566767640,611786792,1076351016,309100760,1057280040,329597144,1136906280,629157896,233197568,891584752,523854064,132305056,288153608,187977736,498139144,209199144,362365088,541376520,660934896,812056816,1006075944,552005872,447393952,200548576,792772848,936271912,992202992,122277896,331464944,1138786544,579977432,244134048,758702120,763539696,1093411056,402792472,1019056368,1230721264,1082654760,569204952,99635240,82600176,523321584,243523592,270905352,481169624,662458408,45379824,1074352368,196477144,468299776,423538912,1078956072,779731184,306258144,410804224,425873416,827408424,936267816,633458928,457326592,244953096,354365664,204673184,291733504,824418544,398098672,165195784,325898480,425828360,1168842992,629870832,49889320,269979864,879419432,306274528,315473944,75710624,581939360,328044584,114270368,1107509288,545378344,768401648,595923168,188784664,246485016,257441800,898871336,217956392,1053495336,322089184,594149592,171630592,349855768,560377896,604688544,149086368,457900248,1050439920,171921408,466706456,1221345320,349036784,300298264,283238624,1240006896,204193816,555364512,512704536,1145102576,287174696,624853032,538161312,400654336,588882160,405139464,362225880,439525384,1167065128,1206083624,684097776,518459432,893431848,600604888,420106240,183111688,379031552,86462488,388309232,208388336,560058408,955195632,252559584,1218035752,33095840,1222848552,409092104,532803824,625598464,386236632,874787056,609198320,597618904,433729536,490700808,235937816,563409136,382758936,832782576,1235689512,210010336,191762432,197509336,957198376,842973224,648728616,615493632,272502944,421019672,614178856,1221996784,1173467176,1015259176,603840512,860659752,241410072,708452592,1190191144,329351192,432762888,474775592,524357640,114659568,1013362928,269447168,324690136,368918752,52928512,490864856,524312600,430076144,803737640,357589032,378650624,533274864,394506456,1210794224,427360472,608719008,489316392,1085624560,71037168,608260312,430272520,452431912,547069992,411586720,332402848,587378696,337698976,66916576,547463328,311660704,248553480,260153384,1073561840,448397336,417755176,503898352,643153960,304079064,533504000,566993112,385441800,1208168488,397574168,566042848,172552200,369152008,738590760,616902816,946274544,262971392,529670184,491868184,601636888,1163276528,580313304,592797936,994558192,320450568,87875608,200572936,25710752,524837080,398061568,44794080,173469856,215884000,297517216,641650928,377077976,253689856,390107144,474882048,20905992,98148568,609546400,397086760,1193291816,539484400,641978608,52834528,1246236912,428515488,589234336,191140064,381014176,596459544,225669160,348901384,933236976,754937896,88588296,424280104,476143616,290729984,1168838896,445444312,163323928,499843288,241033440,552743128,1027145768,1060245744,265232624,487108632,91799712,333910040,600215768,506232872,484020264,206139432,39477248,371630296,572022808,182808576,521228296,330301448,408305664,498278424,271880200,799265008,238944480,95105048,837337128,1059414256,488612064,440754400,86638808,194781192,949014768,456831216,916463656,197820424,193667096,272937184,298623200,962134256,226217984,499724448,857137192,71974936,174034944,170184864,565657816,1242747120,526872792,857559080,503951400,612433928,398864624,152285344,233468064,382509216,443224224,565604576,337805320,509559024,306348056,294535192,142999768,392564976,457981976,744325360,364581104,959729704,540327976,268021800,486506736,418525424,621506600,212840448,476168408,1233424424,171806720,479916192,1156362480,45195488,582328328,511951064,278884512,125063384,1114280176,824250608,223768736,461263008,474132720,589901824,363937832,290324640,420581616,447602928,620036096,302096408,719478824,1023185136,432435416,952750320,116375792,130068696,288866528,518750432,408014888,1196109864,165425376,312152280,107430048,520286368,927949040,557674536,504193184,609251568,322760944,571973872,242233344,589205744,501764336,173183000,500437016,745209896,577147096,381624360,295903472,1232048168,436642008,464072712,442061016,515264536,436379656,195653792,803492080,257839328,112406768,131301600,565420248,396214272,455274536,36388888,49057816,506376200,381825032,458653704,697807088,91398168,287043744,233947144,592117800,697638952,627687584,209150168,563642392,189128864,1000362224,106205344,756728048,193830936,132198624,678691056,1088225320,321630424,121078000,264167664,1181909232,555557024,200827040,394408152,296980696,405889264,482386160,38936736,31895768,289804504,524427504,661852200,367841520,374603936,334237936,352387096,476848368,508837928,351744024,706338856,421527776,813891624,1246879784,536522968,515653672,98590728,448745472,834306088,615383264,1004339240,517820440,340213768,294060032,257999064,24399872,706588712,480428272,508846120,53190656,339677184,651075624,793747496,444285152,618074328,585576448,256520200,528453848,91750624,218423456,217526272,530063384,439164968,55353504,250908696,572518624,986575088,470220808,883085552,944980008,747171880,105730288,527171624,548970520,509816856,700453104,306388992,1036935408,540127272,565284872,361910312,1103650856,409137312,324517912,475963608,585949208,355733504,696639728,607154400,436158688,574353632,419696856,475566104,50761888,337686688,1244983336,415285472,568750120,585851120,1239957544,302157848,363708632,356884720,588996832,545640608,1254514728,226980056,49016992,1123926256,80466160,485687320,329076976,168214536,150691864,120668160,839364648,401510424,371593216,211542016,170627112,783941872,511315992,1022042152,401817624,817008680,163360928,430584048,149090544,199815392,595902504,165728472,548597800,1132122152,385896456,385876184,153731080,312041512,800628976,559816920,492597464,118083824,450863128,175079584,175624416,244801760,512221400,1051238640,584364056,632557608,175304728,243577048,470118440,95907864,544080096,566169816,1102606376,389472280,814510120,172388576,295776472,929960176,243302408,205344776,437133352,248004832,568786968,815120424,247910400,92946456,411234544,1190367272,89051144,191914200,125300952,272949408,591036576,1217474800,885952552,412057640,245358600,593326296,407433216,376680608,482279584,611418136,440524960,476954840,232202248,1156182056,291397848,391483416,499663008,276648152,854905072,360517856,324280360,601686256,392712416,472801320,426635488,311758856,535650544,894976240,555667672,579153928,120639728,1202950184,367415512,412700672,622735584,397537320,557334552,956809256,1062477864,40480984,283996320,495550680,245592088,380158112,268750856,438226944,437878808,477491200,941424880,563527680,587415552,428535968,541962240,373436656,357797912,31965408,32997384,302104800,633397288,245252120,562962432,430862552,586862592,521269272,502034432,118903024,543694872,220143624,314122400,220438528,260702232,283898080,886477040,333959408,559128584,338276576,734900264,531787776,516976864,353476632,405454848,1159258152,450117872,436850848,39481384,1179201776,361873408,691179560,898453544,375078936,1110204656,355098864,499335168,344842456,1136988200,1064759336,551223296,1242296560,373342248,381972704,382517288,1078997232,525500424,897638640,383480032,350642216,247971880,470290656,160395272,927465712,1252761640,311943328,165855240,147857632,231833824,143351848,437014744,433430768,293322792,154988768,350662696,834949360,359886856,1065701416,603705344,83505368,252383256,523202600,343978224,184561704,65814752,625909920,345632768,33132544,865550376,211910880,80146656,272838680,105967776,700494064,902381608,937939184,1141747952,334659808,360435928,241844232,307859680,202575872,507928576,572084384,530362528,605974552,495517920,887619824,134140064,628949232,365236464,369172696,448950496,398647456,657661992,1079255280,201445400,252223488,435425304,449277960,262942744,335016152,556490912,994013224,326471704,752586992,114245656,1066881264,80023552,473243656,402608168,194576384,552005632,379912216,498446376,556904608,422920432,546337008,187625472,330572000,422277280,562561032,202862592,239243488,475050224,340426792,190038256,330084392,358166768,204644512,369512664,287977632,187867360,527167648,603517144,352837640,83214560,908410920,767373352,260923392,269000704,548167704,626266272,529068056,535797800,570228760,341418200,519278600,231579808,460832928,1194151976,141377544,166416408,139505904,440213528,582602752,503312392,522948768,230043656,549281800,867315752,1059082280,500170968,350969896,593809632,435109896,561999912,1127444720,610127912,169623576,385466408,594219048,564383768,365678816,714551336,385306624,190197760,1100247280,425877528,209002496,1149820968,484384768,476053720,1101127720,527249448,1022304496,198111392,1196884008,1003982888,392916992,1150222376,343625752,388636912,253427872,963645480,62328856,372441088,290889888,505974944,403394600,532766744,561803504,574324776,345968880,573280280,791961840,812814376,525692936,554684440,863055912,527835352,368922848,316272864,85843992,385990680,723554344,382685344,273199264,506478808,1015705640,349974536,217935912,557211888,167375008,296599712,1095557360,1075011624,333320232,423952408,701645040,330383520,235495640,1184387112,682180648,1157976104,450920456,99958824,398815472,449286168,326242328,161734896,569749664,224850136,800440560,802496752,474960096,752369704,162410496,1191428336,568614936,379904000,360488984,525504552,535052512,575221800,900296744,681459752,263163904,835027184,230928600,504909984,174731288,1232613416,88559640,1032933616,163647648,576585944,399220960,1125314600,1111711984,442318856,466321648,986636328,388235424,546447600,846184688,179146792,692428840,993607920,584114392,627179544,1009238056,225280000,211787936,545599704,462450848,168399072,246423560,371261680,313700592,274124840,276148384,180285464,640499752,302596336,568488152,285282312,263704576,560590872,486842592,359555296,603840752,293359624,626536608,381005984,35893472,182112472,257118248,505065496,445825240,62984232,1143832816,611549208,286474240,714260720,448585952,166170840,516399264,428474368,530006240,666578984,681750768,1235886120,547082480,405913600,437927976,279187464,284606504,1205539056,514556064,484892832,504611032,63766752,591544320,431202464,170266624,394027048,522178600,391122984,924147752,1236971760,391295200,339828760,403869936,464740360,431546368,259932160,1176227880,684859632,212734192,453406744,781488168,572059688,39592096,945893416,45551656,6731968752,817414184,367329304,361291784,331772144,1128575016,867803376,321118424,607924248,268366048,500072472,377458728,39850200,102690976,163004424,1020666096,172748960,421150944,708984872,491794472,595804160,728355056,738439408,535249136,484679920,305115360,572371184,207212768,180576416,603185368,1200889896,40947752,426565656,566095880,565084320,486240416,242851840,483602656,1083252776,302113008,725598448,772657392,881094896,353337344,246566912,823410928,445952008,492765208,186228744,203177992,33632472,111218728,407347208,548089856,580726944,521515232,32375008,91054088,394338528,100356320,28934144,317112344,187240672,288895000,426840288,427327496,506712304,179306720,200843480,889131248,482357248,423121112,1229578280,345276440,536088736,232120344,759664880,159051936,224497672,978161904,1001472240,613470368,172740824,502087704,645779696,267661336,508498136,447262960,588173312,20762648,220565544,363024600,235561200,601399320,720699432,653758704,289333288,407285920,340410368,423350432,423841792,590434328,343486488,1207365672,867962920,51146760,163667976,238407704,935653616,1057976560,481976536,418717696,178085888,335863808,1119445232,591397088,601661448,491438240,327286944,446791904,242483224,541749272,529600536,545575128,315084800,578842864,83640480,434942176,510799872,419909848,885501992,309420032,408965160,271737056,245256432,1237962792,1149075696,213610504,365260808,192606232,618676384,855511280,257966320,522973408,271687920,159305728,749519088,203706584,719216880,1208922352,297857032,536625392,390938624,950006000,68497632,262832152,290623648,537849864,1177587752,318586888,625008800,1120780328,807010544,21487616,549884064,125059312,1080353008,45109248,285257728,308998304,604741640,247595048,346497264,498184408,578683120,422473944,464592896,990486568,566468768,748572912,588898464,576536792,855154728,382984192,567558304,606286040,868749552,581959688,494825696,143491112,328802312,915120168,99242008,388800736,479269104,252293360,345915632,564609240,751300848,171204616,389296344,156102696,319586520,423117016,1199026416,483520552,620544040,422187008,792793128,566747144,369991904,439865568,513802264,1191079976,341307632,1207119912,432955552,381833376,1257181224,427970720,112398576,256335880,847438064,106946800,226689240,352682008,456392744,501063680,115503320,224993320,421843160,1001873448,560652296,350322688,252235936,480792792,157831392,744280104,617042136,545513472,891887856,957198576,342200328,630640680,972472360,491462680,1236336680,473948168,429957120,479653912,1097355304,371585248,1102610472,358055960,280219688,214409376,111104008,401985776,95850504,862568688,1136656424,730611952,408146160,203210776,500109528,190583000,1008128040,343662808,812318960,774328560,304001184,612307160,424636440,451735560,1039507696,494477336,364072968,1219924208,94470152,449016024,598958304,220639240,396706016,450945064,166838296,436330536,114159776,247758848,447148272,22851584,355975328,1056993320,877895720,208642272,424775920,541966360,416100592,873910312,363196576,878817320,480997600,283312352,1034350632,404123688,381948064,609189912,311734280,188424232,829305072
];
var randomIdArr = [],
i,
s,
N = 3221,
g = {
nodes: [],
edges: []
};

for (i =0; i <N; i++) {
randomIdArr.push(parseInt(Math.random()*1000000000, 10));
}

for (i = 0; i < N; i++)
g.nodes.push({
id: idArr[i],
// id: randomIdArr[i],
label: 'Node ' + i,
x: Math.random(),
y: Math.random(),
size: Math.random(),
color: '#666'
});

s = new sigma({
graph: g,
container: 'graph-container'
});

function deleteAll(){
console.log('start:'+new Date());
s.graph.nodes().forEach(function(n){
s.graph.dropNode(n.id);
});
console.log('end:'+new Date());
s.refresh();
};
`

@stale
Copy link

stale bot commented Oct 8, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 8, 2021
@stale stale bot closed this as completed Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants