-
Notifications
You must be signed in to change notification settings - Fork 0
/
state_adjacency.js
63 lines (57 loc) · 1.54 KB
/
state_adjacency.js
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
const states = ["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY"];
const state_adjacency = [
[],
[25, 42, 10, 09],
[24, 42, 25, 18, 43, 36],
[04, 33, 44, 05, 32],
[37, 33, 03],
[50, 29, 16, 36, 32, 03, 44],
[34, 19, 39],
[20, 45],
[20, 38, 31],
[01, 10],
[09, 01, 42, 27, 40],
[],
[23, 48, 14, 24, 29, 41],
[26, 50, 44, 33, 37, 47],
[15, 17, 24, 12, 48],
[22, 35, 17, 14],
[29, 24, 36, 05],
[15, 35, 49, 45, 42, 24, 14],
[43, 02, 25],
[39, 06, 34, 30, 46],
[45, 49, 38, 07, 08],
[30],
[48, 15, 35],
[48, 12, 41, 28],
[12, 14, 17, 42, 02, 36, 16, 29],
[18, 02, 42, 01],
[28, 41, 50, 13],
[45, 42, 10, 40],
[23, 41, 26],
[41, 12, 24, 16, 05, 50],
[46, 21, 19],
[08, 38, 34],
[03, 44, 05, 36, 43],
[13, 44, 03, 04, 37],
[31, 38, 46, 19, 06],
[38, 49, 17, 15, 22],
[16, 24, 02, 43, 32, 05],
[04, 33, 13, 47],
[34, 31, 08, 20, 49, 35],
[06, 19],
[10, 27],
[28, 23, 12, 29, 50, 26],
[17, 45, 27, 10, 01, 25, 02, 24],
[32, 36, 02, 18],
[13, 50, 05, 32, 03, 33],
[27, 42, 17, 49, 20, 07],
[34, 30, 19],
[13, 37],
[22, 23, 12, 14],
[35, 38, 20, 45, 17],
[26, 41, 29, 05, 44, 13]
];
const state_adjacency_obj = {};
states.map( (state,i) => state_adjacency_obj[state] = state_adjacency[i].map(idx => states[idx]) );
export { states, state_adjacency, state_adjacency_obj };