Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Condition fullfilled to early "sometimes" Date: Wed, 02 Mar 2016 12:41:39 +0000 Organization: A noiseless patient Spider Lines: 52 Message-ID: <87oaaxhx18.fsf@bsb.me.uk> References: <6ed0a1f8-d173-4de6-aff6-3590b34072d4@googlegroups.com> <65c8fd95-aefc-452e-ba2b-c4a94b1e7e1d@googlegroups.com> <87si0ajtuk.fsf@bsb.me.uk> <07c551f4-7b92-4e60-afbe-d0bd2ff62962@googlegroups.com> <85aadccc-54fc-4136-a43b-8192fafcaf68@googlegroups.com> <5cb9c676-5153-4676-928b-355b386fe1ca@googlegroups.com> <8760x5jh1y.fsf@bsb.me.uk> <03e0e9f1-3f08-4e9a-aa69-f87d45ba8e0b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="7471"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/N9D4icvYPDAhEXPzjZAheCLKpOAuMBZ4=" Cancel-Lock: sha1:/N0D7WCGmWlsMYQLWOGaCSKI9H0= sha1:CEaK2Fx+5ZDYapdLDIavpUS/g4k= X-BSB-Auth: 1.533d7c0ef38b70c9f24d.20160302124139GMT.87oaaxhx18.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:29766 jonas.thornvall@gmail.com writes: > Den onsdag 2 mars 2016 kl. 11:59:36 UTC+1 skrev jonas.t...@gmail.com: >> Den onsdag 2 mars 2016 kl. 11:44:05 UTC+1 skrev Ben Bacarisse: >> > jonas.thornvall@gmail.com writes: >> > >> > >> > Why did you post all those old lines? It's better to cut your messages >> > down. >> > >> > > Phewww http://jt.node365.se/mydebug3.html >> > > >> > > Last minute rescue!!! At least i have not found any incorrect >> > > reports. I think it breaks and decide correct for any generated >> > > network. >> > >> > Not as far as I can see. One sample output: >> > >> > $ nodejs mydebug3.js >> > Hurray **failed** generate regular graph >> > >> > [ { nodelinks: [ 4, 2 ], nroflinks: 0 }, >> > { nodelinks: [ 2, 4 ], nroflinks: 0 }, >> > { nodelinks: [ 0, 1 ], nroflinks: 0 }, >> > { nodelinks: [], nroflinks: 0 }, >> > { nodelinks: [ 0, 1 ], nroflinks: 0 } ] >> > >> > >> > -- >> > Ben. >> >> Maybe you mean it did create a regular graph with 4 nodes? >> But the program looks for regular graphs with x nodes in this case 5. > > Maybe i have been unclear it look for regular graphs using the > specified number of nodes. > > Example chain. > 0,1 > 1,2 > 2,3 > 3,4 > 4,0 That's called a cycle (of length 5). You want to generate regular graphs of n nodes and degree d with no cycles of length 1? That can't be it because the program does not do that. We are probably just talking about different things. I'm glad it's doing whatever it is you want, but you should still get rid of all those globals. -- Ben.