Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29871
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-03-09 13:00 -0800 |
| References | <9c01e4ae-f564-4d42-91cb-3c0c858edd7a@googlegroups.com> <33306987-a34c-4c89-bfec-b53b021af527@googlegroups.com> <1b4bed87-c220-45dd-874e-df113093da65@googlegroups.com> <0835c492-4d75-41b2-af21-a8ddb3332265@googlegroups.com> <cca37ef9-a13a-48f9-8725-08be4ef89d59@googlegroups.com> |
| Message-ID | <eaba4b53-dbfe-4675-a46c-ace1cd9f446c@googlegroups.com> (permalink) |
| Subject | Re: Untangle node positions "logic problem" |
| From | jonas.thornvall@gmail.com |
Den onsdag 9 mars 2016 kl. 21:57:32 UTC+1 skrev jonas.t...@gmail.com:
> function untangle_links(){
> var j=0;var tempnode=0;
> var tnode=new Array();
> tnode[k]=0;
>
> for(var i=0;i<nodes.length-1;i++){
> for(var k=0;k<tnode.length;k++){
> if (arr[tempnode].nodelinks[j]==tnode[k]) {j++;}
> }
> tempnode=arr[tempnode].nodelinks[j];
> tnode[tnode.length+1]=tempnode;
> j=0;
> tempX=arr[tempnode].rposX;
> tempY=arr[tempnode].rposY;
> arr[tempnode].rposX=arr[i+1].rposX;
> arr[tempnode].rposY=arr[i+1].rposY;
> arr[i+1].rposX=tempX;
> arr[i+1].rposY=tempY;
> }
> }
This is an example where a stepwise turbo pascal debugger would do miracles.
Because i would be able to find first link that goes wrong.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 11:15 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 11:59 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 12:40 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 12:54 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 12:57 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 13:00 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 13:29 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 13:41 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 17:15 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 17:21 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 22:52 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-10 13:09 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 00:24 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 00:49 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 00:53 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:21 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:29 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:41 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:58 -0800
Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-13 04:19 -0700
Re: Untangle node positions "logic problem" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-13 17:22 +0100
csiph-web