Are there both hats and fences in this picture?
No, there is a hat but no fences.
    src        edge_attr  dst
0     2  to the right of   12
1     4               in    5
2     4   to the left of   12
3     4  to the right of   13
4     6  to the right of   12
5     8  to the right of   14
6     8  to the right of   10
7     9       walking in   17
8     9   to the left of   16
9    10   to the left of    8
10   12   to the left of    2
11   12  to the right of    4
12   12   to the left of    6
13   13   to the left of    4
14   14   to the left of   16
15   14           riding    9
16   14   to the left of    8
17   16  to the right of    9
18   16  to the right of   14
19   18               in    2
20   20               in    5
21   20               in    7
22   20               in   12
23   20               in   13
24   20               in    6