Are there either blue hats or fences?
Yes, there is a blue hat.
    src        edge_attr  dst
0     0   to the left of   15
1     0  to the right of    9
2     0  to the right of   23
3     1   to the left of    3
4     1   to the left of   10
5     2  to the right of    8
6     3  to the right of    5
7     3  to the right of    1
8     3  to the right of   14
9     4   to the left of   12
10    4   to the left of   16
11    5   to the left of    3
12    7  to the right of   15
13    7  to the right of   12
14    7   to the left of   10
15    8   to the left of   14
16    8   to the left of    2
17    9   to the left of    0
18    9   to the left of   11
19    9   to the left of   20
20    9   to the left of   17
21    9   to the left of   19
22    9   to the left of   21
23   10  to the right of    1
24   10  to the right of    7
25   10  to the right of   18
26   10  to the right of   11
27   11  to the right of   23
28   11   to the left of   10
29   11  to the right of    9
30   12  to the right of   15
31   12   to the left of    7
32   12  to the right of    4
33   12   to the left of   16
34   12  to the right of   23
35   14  to the right of    8
36   14   to the left of    3
37   15  to the right of    0
38   15   to the left of    7
39   15   to the left of   12
40   16  to the right of    4
41   16  to the right of   12
42   17   to the left of   20
43   17  to the right of    9
44   18   to the left of   10
45   18  to the right of   20
46   18  to the right of   19
47   19  to the right of    9
48   19   to the left of   18
49   20  to the right of   17
50   20   to the left of   18
51   20  to the right of    9
52   20  to the right of   21
53   21   to the left of   20
54   21  to the right of    9
55   23   to the left of   12
56   23   to the left of   11
57   23   to the left of    0