File: randgrid.gr

package info (click to toggle)
algotutor 0.8.6-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 640 kB
  • sloc: perl: 2,563; makefile: 41; php: 24; sh: 1
file content (64 lines) | stat: -rw-r--r-- 1,337 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# generated by gengr

{
"-name" => "random grid",
-type => "graph",
-linear_transform => {
    -scale => [1, -1],
    -offset => [0, 300],
},
-directed => 0,

-init_data => {
    A => { -pos=>[40, 30],
   	B => 1,	E => 5,	F => 6,
    },
    B => { -pos=>[120, 30],
   	A => 1,	C => 1,	F => 5,
    },
    C => { -pos=>[200, 30],
   	B => 1,	D => 3,	F => 6,	G => 2,	H => 3,
    },
    D => { -pos=>[280, 30],
   	C => 3,	H => 7,
    },
    E => { -pos=>[40, 90],
   	A => 5,	F => 1,	I => 4,
    },
    F => { -pos=>[120, 90],
   	A => 6,	B => 5,	C => 6,	E => 1,	G => 3,	I => 1,	J => 8,	K => 3,
    },
    G => { -pos=>[200, 90],
   	C => 2,	F => 3,	H => 9,	K => 8,
    },
    H => { -pos=>[280, 90],
   	C => 3,	D => 7,	G => 9,	K => 3,	L => 1,
    },
    I => { -pos=>[40, 150],
   	E => 4,	F => 1,	J => 4,	M => 3,	N => 5,
    },
    J => { -pos=>[120, 150],
   	F => 8,	I => 4,	K => 9,	N => 6,
    },
    K => { -pos=>[200, 150],
   	F => 3,	G => 8,	H => 3,	J => 9,	L => 8,	N => 8,	O => 3,	P => 7,
    },
    L => { -pos=>[280, 150],
   	H => 1,	K => 8,	P => 6,
    },
    M => { -pos=>[40, 210],
   	I => 3,	N => 8,
    },
    N => { -pos=>[120, 210],
   	I => 5,	J => 6,	K => 8,	M => 8,	O => 3,
    },
    O => { -pos=>[200, 210],
   	K => 3,	N => 3,	P => 3,
    },
    P => { -pos=>[280, 210],
   	K => 7,	L => 6,	O => 3,
    },

}

}