Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29766

Re: Condition fullfilled to early "sometimes"

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: Condition fullfilled to early "sometimes"
Date 2016-03-02 12:41 +0000
Organization A noiseless patient Spider
Message-ID <87oaaxhx18.fsf@bsb.me.uk> (permalink)
References (5 earlier) <5cb9c676-5153-4676-928b-355b386fe1ca@googlegroups.com> <af964e6d-57d4-484c-a2b8-ecdecab8dd08@googlegroups.com> <8760x5jh1y.fsf@bsb.me.uk> <e579f6a6-f33d-4b4f-84ff-60c8dbb2ce95@googlegroups.com> <03e0e9f1-3f08-4e9a-aa69-f87d45ba8e0b@googlegroups.com>

Show all headers | View raw


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:
>> > 
>> > <snip>
>> > 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 } ]
>> > 
>> > <snip>
>> > -- 
>> > 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.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-02-29 21:31 -0800
  Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-01 01:03 -0800
    Re: Condition fullfilled to early "sometimes" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-01 11:55 +0000
      Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-01 05:28 -0800
        Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-01 07:49 -0800
          Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-01 23:24 -0800
            Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-02 00:41 -0800
              Re: Condition fullfilled to early "sometimes" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-02 10:43 +0000
                Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-02 02:57 -0800
                Re: Condition fullfilled to early "sometimes" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-02 11:08 +0000
                Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-02 05:53 -0800
                Re: Condition fullfilled to early "sometimes" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-02 16:27 +0000
                Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-02 09:25 -0800
                Re: Condition fullfilled to early "sometimes" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-02 20:22 +0000
                Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-02 02:59 -0800
                Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-02 03:10 -0800
                Re: Condition fullfilled to early "sometimes" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-02 12:41 +0000
      Re: Condition fullfilled to early "sometimes" jonas.thornvall@gmail.com - 2016-03-02 01:42 -0800
  Re: Condition fullfilled to early "sometimes" John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-01 10:47 +0000

csiph-web