Datasets:
prompt
stringclasses 1
value | response
stringclasses 2
values | motif_nodes
listlengths 0
5
| nodes
listlengths 8
20
| edges
listlengths 7
35
| nnodes
int64 8
20
| nedges
int64 7
35
|
|---|---|---|---|---|---|---|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
4,
5,
7,
8,
9
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
2,
6
],
[
0,
2
],
[
0,
6
],
[
3,
6
],
[
0,
3
],
[
5,
7
],
[
5,
9
],
[
5,
8
],
[
7,
8
],
[
4,
7
],
[
4,
9
],
[
3,
5
]
] | 10
| 12
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
] |
[
[
2,
5
],
[
2,
6
],
[
2,
8
],
[
1,
3
],
[
1,
10
],
[
1,
4
],
[
5,
10
],
[
5,
9
],
[
5,
6
],
[
5,
8
],
[
0,
9
],
[
0,
7
]
] | 11
| 12
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
3,
5,
6,
8
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
2,
4
],
[
4,
7
],
[
2,
9
],
[
0,
2
],
[
0,
7
],
[
1,
8
],
[
3,
8
],
[
6,
8
],
[
1,
6
],
[
1,
5
],
[
3,
5
],
[
8,
9
]
] | 10
| 12
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
] |
[
[
4,
10
],
[
3,
10
],
[
5,
10
],
[
7,
10
],
[
2,
10
],
[
10,
13
],
[
3,
4
],
[
0,
4
],
[
4,
9
],
[
4,
12
],
[
3,
7
],
[
0,
3
],
[
5,
8
],
[
1,
7
],
[
7,
12
],
[
0,
2
],
[
0,
6
],
[
0,
11
],
[
6,
9
],
[
6,
8
],
[
6,
13
],
[
6,
11
]
] | 14
| 22
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
2,
3,
4
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
6,
7
],
[
6,
8
],
[
5,
7
],
[
1,
4
],
[
0,
4
],
[
3,
4
],
[
1,
3
],
[
1,
2
],
[
0,
2
],
[
2,
8
]
] | 9
| 10
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
3,
4,
5,
6
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
1,
7
],
[
3,
4
],
[
4,
5
],
[
0,
4
],
[
0,
3
],
[
3,
6
],
[
5,
6
],
[
1,
4
]
] | 8
| 8
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
4,
6,
12,
13,
15
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
0,
9
],
[
0,
17
],
[
0,
1
],
[
0,
11
],
[
0,
2
],
[
0,
3
],
[
0,
7
],
[
1,
9
],
[
9,
10
],
[
9,
16
],
[
5,
17
],
[
5,
8
],
[
2,
17
],
[
17,
18
],
[
1,
10
],
[
1,
16
],
[
1,
14
],
[
1,
3
],
[
10,
11
],
[
8,
11
],
[
11,
14
],
[
3,
7
],
[
6,
12
],
[
4,
6
],
[
6,
15
],
[
12,
15
],
[
12,
13
],
[
4,
13
],
[
13,
17
]
] | 19
| 29
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
3,
16
],
[
3,
5
],
[
3,
10
],
[
3,
17
],
[
3,
14
],
[
1,
3
],
[
3,
15
],
[
0,
3
],
[
3,
18
],
[
3,
11
],
[
8,
14
],
[
7,
8
],
[
8,
12
],
[
6,
8
],
[
7,
16
],
[
5,
13
],
[
5,
12
],
[
10,
13
],
[
10,
11
],
[
2,
13
],
[
9,
17
],
[
0,
14
],
[
14,
18
],
[
1,
12
],
[
4,
12
],
[
12,
15
],
[
9,
18
]
] | 19
| 27
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
5,
6,
8,
10
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
] |
[
[
2,
7
],
[
2,
9
],
[
2,
4
],
[
0,
3
],
[
3,
9
],
[
3,
4
],
[
6,
8
],
[
5,
6
],
[
6,
10
],
[
8,
10
],
[
1,
8
],
[
1,
5
],
[
3,
10
]
] | 11
| 13
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
5,
9
],
[
6,
9
],
[
0,
9
],
[
2,
9
],
[
1,
9
],
[
3,
9
],
[
4,
7
],
[
5,
6
],
[
2,
5
],
[
5,
11
],
[
5,
8
],
[
5,
12
],
[
6,
10
],
[
0,
7
],
[
0,
8
],
[
2,
3
],
[
10,
11
],
[
8,
12
]
] | 13
| 18
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
4,
6,
7,
9
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
] |
[
[
12,
13
],
[
5,
12
],
[
3,
12
],
[
11,
12
],
[
5,
10
],
[
2,
13
],
[
1,
2
],
[
2,
3
],
[
1,
13
],
[
13,
14
],
[
8,
13
],
[
11,
13
],
[
4,
6
],
[
6,
9
],
[
6,
7
],
[
4,
7
],
[
0,
4
],
[
0,
9
],
[
3,
9
]
] | 15
| 19
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
5,
12
],
[
12,
14
],
[
9,
12
],
[
0,
12
],
[
10,
12
],
[
4,
12
],
[
6,
12
],
[
5,
13
],
[
3,
14
],
[
11,
14
],
[
7,
9
],
[
1,
9
],
[
3,
9
],
[
9,
11
],
[
8,
9
],
[
9,
16
],
[
0,
9
],
[
9,
10
],
[
9,
17
],
[
1,
13
],
[
13,
15
],
[
13,
18
],
[
2,
13
],
[
4,
13
],
[
6,
13
],
[
7,
16
],
[
1,
15
],
[
1,
18
],
[
1,
2
],
[
2,
17
]
] | 19
| 30
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
7,
9,
12
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
3,
4
],
[
4,
8
],
[
4,
6
],
[
3,
5
],
[
2,
5
],
[
5,
10
],
[
5,
8
],
[
2,
3
],
[
2,
11
],
[
6,
11
],
[
7,
9
],
[
9,
12
],
[
0,
9
],
[
0,
7
],
[
1,
7
],
[
1,
12
],
[
10,
12
]
] | 13
| 17
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
] |
[
[
4,
6
],
[
4,
9
],
[
4,
12
],
[
4,
8
],
[
1,
4
],
[
4,
11
],
[
3,
4
],
[
5,
6
],
[
5,
12
],
[
2,
5
],
[
5,
7
],
[
6,
9
],
[
6,
13
],
[
0,
9
],
[
8,
13
],
[
8,
10
],
[
0,
8
],
[
1,
2
],
[
10,
11
],
[
0,
7
],
[
0,
3
]
] | 14
| 21
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
2,
3,
6
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
4,
5
],
[
7,
8
],
[
4,
8
],
[
1,
2
],
[
2,
6
],
[
2,
3
],
[
1,
3
],
[
0,
1
],
[
0,
6
],
[
2,
4
]
] | 9
| 10
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
3,
6,
7,
9,
14
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
] |
[
[
0,
8
],
[
8,
11
],
[
8,
12
],
[
4,
8
],
[
1,
2
],
[
11,
12
],
[
10,
11
],
[
5,
11
],
[
1,
13
],
[
4,
12
],
[
6,
9
],
[
3,
6
],
[
6,
14
],
[
9,
14
],
[
7,
9
],
[
3,
7
],
[
0,
3
]
] | 15
| 17
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
6,
7
],
[
0,
2
],
[
2,
3
],
[
4,
9
],
[
0,
9
],
[
9,
16
],
[
5,
9
],
[
9,
13
],
[
1,
9
],
[
9,
19
],
[
8,
9
],
[
9,
11
],
[
3,
9
],
[
9,
14
],
[
4,
7
],
[
4,
17
],
[
4,
13
],
[
16,
17
],
[
1,
16
],
[
10,
16
],
[
15,
16
],
[
14,
16
],
[
12,
16
],
[
8,
17
],
[
5,
10
],
[
12,
13
],
[
10,
19
],
[
10,
18
],
[
8,
15
],
[
11,
18
]
] | 20
| 30
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
3,
6,
7,
8
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
1,
2
],
[
1,
5
],
[
2,
4
],
[
4,
5
],
[
6,
7
],
[
0,
6
],
[
3,
6
],
[
3,
7
],
[
7,
8
],
[
0,
8
],
[
4,
8
]
] | 9
| 11
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
2,
4,
8,
12
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16
] |
[
[
9,
16
],
[
10,
16
],
[
0,
16
],
[
6,
13
],
[
6,
9
],
[
6,
11
],
[
5,
6
],
[
6,
14
],
[
6,
7
],
[
13,
15
],
[
11,
13
],
[
7,
13
],
[
9,
10
],
[
3,
9
],
[
10,
15
],
[
5,
11
],
[
0,
11
],
[
3,
11
],
[
2,
4
],
[
1,
4
],
[
4,
8
],
[
2,
8
],
[
2,
12
],
[
1,
12
],
[
2,
7
]
] | 17
| 25
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
10,
17
],
[
8,
17
],
[
3,
17
],
[
0,
17
],
[
1,
17
],
[
17,
19
],
[
4,
17
],
[
5,
17
],
[
15,
17
],
[
14,
17
],
[
3,
10
],
[
0,
10
],
[
2,
10
],
[
5,
10
],
[
10,
11
],
[
8,
16
],
[
6,
8
],
[
8,
13
],
[
0,
2
],
[
0,
16
],
[
0,
19
],
[
0,
15
],
[
0,
12
],
[
1,
18
],
[
1,
4
],
[
7,
16
],
[
14,
19
],
[
7,
12
],
[
7,
9
],
[
4,
6
],
[
4,
13
],
[
4,
11
],
[
4,
9
]
] | 20
| 33
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
5,
14
],
[
5,
6
],
[
5,
17
],
[
5,
19
],
[
3,
5
],
[
5,
15
],
[
5,
8
],
[
14,
18
],
[
7,
18
],
[
9,
18
],
[
4,
18
],
[
2,
18
],
[
14,
16
],
[
1,
14
],
[
6,
10
],
[
4,
6
],
[
6,
12
],
[
2,
6
],
[
10,
19
],
[
9,
10
],
[
7,
16
],
[
7,
11
],
[
1,
7
],
[
7,
8
],
[
7,
13
],
[
16,
17
],
[
12,
16
],
[
0,
16
],
[
11,
17
],
[
13,
17
],
[
3,
11
],
[
11,
15
],
[
0,
2
]
] | 20
| 33
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
7,
8
],
[
0,
8
],
[
4,
8
],
[
2,
8
],
[
1,
6
],
[
0,
6
],
[
4,
6
],
[
3,
7
],
[
1,
3
],
[
0,
2
],
[
2,
5
]
] | 9
| 11
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
] |
[
[
0,
8
],
[
0,
2
],
[
0,
10
],
[
0,
6
],
[
2,
8
],
[
4,
8
],
[
6,
8
],
[
7,
8
],
[
5,
9
],
[
2,
3
],
[
4,
10
],
[
1,
4
],
[
4,
7
],
[
9,
10
],
[
3,
10
],
[
1,
3
]
] | 11
| 16
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
3,
4,
7,
18,
19
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
2,
11
],
[
11,
13
],
[
11,
15
],
[
11,
12
],
[
8,
11
],
[
11,
17
],
[
11,
16
],
[
0,
11
],
[
5,
11
],
[
9,
11
],
[
10,
11
],
[
11,
14
],
[
6,
13
],
[
6,
15
],
[
6,
12
],
[
6,
8
],
[
0,
6
],
[
1,
6
],
[
2,
14
],
[
12,
17
],
[
9,
12
],
[
10,
12
],
[
4,
19
],
[
4,
18
],
[
4,
7
],
[
7,
19
],
[
3,
19
],
[
3,
18
],
[
3,
17
]
] | 20
| 29
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
3,
7
],
[
3,
8
],
[
3,
11
],
[
9,
10
],
[
1,
7
],
[
7,
9
],
[
2,
7
],
[
6,
7
],
[
1,
11
],
[
9,
12
],
[
4,
9
],
[
5,
12
],
[
0,
12
],
[
6,
12
],
[
5,
8
],
[
2,
11
]
] | 13
| 16
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
8,
18
],
[
8,
10
],
[
8,
16
],
[
5,
8
],
[
6,
8
],
[
8,
9
],
[
0,
10
],
[
4,
10
],
[
10,
12
],
[
10,
11
],
[
7,
16
],
[
5,
16
],
[
2,
16
],
[
6,
16
],
[
0,
7
],
[
7,
11
],
[
0,
3
],
[
0,
14
],
[
0,
12
],
[
0,
19
],
[
0,
15
],
[
3,
14
],
[
1,
3
],
[
4,
5
],
[
5,
15
],
[
5,
13
],
[
2,
9
],
[
14,
19
],
[
14,
17
],
[
17,
19
],
[
13,
15
]
] | 20
| 31
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
2,
5,
6,
7
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
1,
3
],
[
3,
4
],
[
2,
7
],
[
0,
2
],
[
2,
5
],
[
5,
7
],
[
6,
7
],
[
0,
6
],
[
1,
7
]
] | 8
| 9
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
3,
4,
5
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
2,
6
],
[
1,
4
],
[
1,
3
],
[
0,
1
],
[
0,
4
],
[
4,
5
],
[
3,
5
],
[
1,
7
]
] | 8
| 8
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
] |
[
[
6,
10
],
[
6,
11
],
[
5,
10
],
[
5,
11
],
[
5,
8
],
[
4,
5
],
[
3,
5
],
[
2,
10
],
[
3,
10
],
[
0,
10
],
[
7,
10
],
[
1,
11
],
[
1,
8
],
[
4,
9
],
[
4,
7
],
[
0,
1
],
[
2,
9
]
] | 12
| 17
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
2,
6
],
[
2,
9
],
[
3,
7
],
[
4,
12
],
[
0,
12
],
[
1,
12
],
[
7,
12
],
[
8,
12
],
[
0,
4
],
[
1,
4
],
[
4,
6
],
[
4,
11
],
[
4,
5
],
[
6,
11
],
[
6,
10
],
[
9,
11
],
[
5,
11
],
[
8,
9
],
[
9,
10
]
] | 13
| 19
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
1,
12
],
[
10,
12
],
[
9,
12
],
[
11,
12
],
[
1,
8
],
[
0,
1
],
[
1,
10
],
[
1,
7
],
[
3,
8
],
[
7,
8
],
[
8,
11
],
[
2,
8
],
[
5,
8
],
[
0,
3
],
[
0,
6
],
[
4,
10
],
[
3,
9
],
[
6,
7
],
[
2,
9
],
[
4,
6
]
] | 13
| 20
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
1,
19
],
[
1,
18
],
[
1,
10
],
[
1,
15
],
[
1,
7
],
[
0,
17
],
[
14,
17
],
[
0,
8
],
[
0,
14
],
[
0,
5
],
[
0,
4
],
[
7,
19
],
[
8,
18
],
[
13,
18
],
[
16,
18
],
[
11,
18
],
[
3,
18
],
[
4,
18
],
[
9,
18
],
[
8,
15
],
[
11,
14
],
[
10,
14
],
[
12,
14
],
[
5,
16
],
[
6,
16
],
[
2,
16
],
[
3,
6
],
[
6,
9
],
[
2,
12
]
] | 20
| 29
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
2,
4,
6,
9
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
5,
7
],
[
7,
8
],
[
3,
7
],
[
5,
8
],
[
3,
5
],
[
2,
9
],
[
4,
9
],
[
6,
9
],
[
2,
6
],
[
1,
2
],
[
1,
4
],
[
5,
6
]
] | 10
| 12
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
0,
7
],
[
4,
7
],
[
6,
7
],
[
5,
7
],
[
0,
5
],
[
1,
4
],
[
2,
4
],
[
2,
6
],
[
1,
3
]
] | 8
| 9
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
3,
6
],
[
3,
11
],
[
3,
5
],
[
0,
3
],
[
3,
8
],
[
3,
4
],
[
3,
7
],
[
5,
17
],
[
2,
6
],
[
6,
14
],
[
6,
7
],
[
6,
9
],
[
1,
6
],
[
11,
16
],
[
0,
5
],
[
5,
14
],
[
2,
16
],
[
2,
12
],
[
2,
15
],
[
2,
9
],
[
2,
13
],
[
10,
16
],
[
4,
8
],
[
8,
12
],
[
8,
15
],
[
1,
8
],
[
12,
13
]
] | 18
| 27
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
2,
12
],
[
2,
3
],
[
2,
16
],
[
2,
14
],
[
2,
9
],
[
2,
11
],
[
2,
17
],
[
2,
18
],
[
3,
12
],
[
7,
12
],
[
8,
12
],
[
9,
12
],
[
11,
12
],
[
6,
12
],
[
4,
12
],
[
3,
5
],
[
3,
6
],
[
7,
16
],
[
14,
15
],
[
5,
15
],
[
13,
15
],
[
1,
15
],
[
15,
18
],
[
7,
8
],
[
0,
7
],
[
10,
14
],
[
8,
10
],
[
0,
1
],
[
4,
6
]
] | 19
| 29
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
] |
[
[
0,
8
],
[
0,
5
],
[
0,
2
],
[
4,
9
],
[
9,
10
],
[
1,
4
],
[
4,
8
],
[
2,
4
],
[
3,
4
],
[
5,
8
],
[
8,
10
],
[
6,
8
],
[
3,
8
],
[
7,
8
],
[
7,
10
]
] | 11
| 15
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
4,
6
],
[
4,
5
],
[
4,
8
],
[
0,
4
],
[
4,
9
],
[
3,
5
],
[
0,
8
],
[
7,
8
],
[
8,
9
],
[
3,
8
],
[
1,
8
],
[
0,
7
],
[
0,
2
]
] | 10
| 13
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
6,
7,
9
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
2,
5
],
[
5,
8
],
[
2,
3
],
[
3,
4
],
[
7,
9
],
[
6,
9
],
[
1,
9
],
[
1,
7
],
[
0,
7
],
[
0,
6
],
[
1,
4
]
] | 10
| 11
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
3,
4,
5,
6
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
0,
7
],
[
5,
6
],
[
4,
6
],
[
1,
6
],
[
1,
5
],
[
3,
5
],
[
3,
4
],
[
0,
4
]
] | 8
| 8
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
6,
8,
12
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
] |
[
[
5,
11
],
[
2,
11
],
[
3,
11
],
[
7,
11
],
[
4,
5
],
[
5,
14
],
[
3,
10
],
[
3,
9
],
[
7,
10
],
[
1,
8
],
[
6,
8
],
[
8,
12
],
[
1,
12
],
[
0,
1
],
[
0,
6
],
[
5,
12
]
] | 15
| 16
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
3,
4,
14,
15
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
0,
6
],
[
6,
13
],
[
6,
10
],
[
9,
11
],
[
9,
16
],
[
2,
9
],
[
9,
12
],
[
5,
9
],
[
9,
10
],
[
9,
18
],
[
0,
11
],
[
0,
13
],
[
0,
16
],
[
0,
2
],
[
0,
17
],
[
7,
13
],
[
16,
17
],
[
2,
12
],
[
2,
7
],
[
2,
5
],
[
2,
8
],
[
8,
10
],
[
8,
18
],
[
4,
14
],
[
1,
14
],
[
14,
15
],
[
4,
15
],
[
3,
4
],
[
1,
3
],
[
4,
8
]
] | 19
| 30
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
3,
14
],
[
1,
3
],
[
2,
3
],
[
3,
17
],
[
3,
11
],
[
3,
6
],
[
3,
13
],
[
3,
10
],
[
3,
15
],
[
3,
9
],
[
4,
14
],
[
1,
14
],
[
2,
14
],
[
11,
14
],
[
13,
14
],
[
8,
14
],
[
4,
17
],
[
4,
7
],
[
4,
8
],
[
4,
10
],
[
0,
4
],
[
1,
6
],
[
1,
7
],
[
1,
15
],
[
1,
12
],
[
1,
9
],
[
11,
16
],
[
5,
13
],
[
10,
16
],
[
5,
15
],
[
0,
12
]
] | 18
| 31
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
] |
[
[
2,
11
],
[
2,
13
],
[
2,
10
],
[
2,
5
],
[
2,
9
],
[
2,
4
],
[
2,
14
],
[
2,
6
],
[
13,
14
],
[
5,
10
],
[
7,
10
],
[
10,
12
],
[
5,
9
],
[
5,
6
],
[
3,
5
],
[
5,
15
],
[
4,
9
],
[
8,
9
],
[
0,
9
],
[
1,
9
],
[
3,
14
],
[
1,
6
],
[
12,
15
]
] | 16
| 23
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
2,
5,
7,
8
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
1,
3
],
[
1,
6
],
[
3,
4
],
[
4,
6
],
[
5,
8
],
[
0,
5
],
[
5,
7
],
[
7,
8
],
[
2,
8
],
[
0,
2
],
[
1,
2
]
] | 9
| 11
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
3,
5,
7,
8,
10
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
] |
[
[
1,
6
],
[
1,
4
],
[
1,
2
],
[
0,
1
],
[
6,
9
],
[
0,
9
],
[
2,
4
],
[
5,
10
],
[
3,
10
],
[
7,
10
],
[
5,
7
],
[
5,
8
],
[
3,
8
],
[
2,
8
]
] | 11
| 14
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
5,
6,
7,
15,
17
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
1,
4
],
[
1,
8
],
[
1,
11
],
[
1,
2
],
[
1,
9
],
[
1,
14
],
[
1,
12
],
[
4,
13
],
[
10,
16
],
[
2,
16
],
[
10,
13
],
[
12,
13
],
[
0,
13
],
[
9,
10
],
[
2,
14
],
[
3,
9
],
[
0,
9
],
[
15,
17
],
[
5,
17
],
[
7,
17
],
[
7,
15
],
[
6,
15
],
[
5,
6
],
[
13,
15
]
] | 18
| 24
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
1,
3
],
[
5,
7
],
[
3,
7
],
[
6,
7
],
[
2,
7
],
[
4,
7
],
[
2,
3
],
[
0,
3
],
[
2,
4
],
[
0,
4
]
] | 8
| 10
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
5,
8,
9
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
] |
[
[
7,
11
],
[
2,
11
],
[
6,
11
],
[
3,
11
],
[
6,
10
],
[
4,
10
],
[
1,
8
],
[
1,
5
],
[
0,
1
],
[
0,
8
],
[
8,
9
],
[
5,
9
],
[
7,
8
]
] | 12
| 13
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
2,
4,
8,
9
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
3,
7
],
[
0,
6
],
[
0,
5
],
[
5,
7
],
[
1,
2
],
[
1,
8
],
[
1,
4
],
[
2,
4
],
[
2,
9
],
[
8,
9
],
[
0,
8
]
] | 10
| 11
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
3,
5,
11,
13,
14
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
4,
15
],
[
0,
4
],
[
2,
4
],
[
4,
6
],
[
4,
17
],
[
4,
10
],
[
2,
15
],
[
7,
15
],
[
8,
15
],
[
0,
1
],
[
2,
6
],
[
6,
16
],
[
7,
12
],
[
7,
9
],
[
8,
9
],
[
1,
10
],
[
1,
16
],
[
5,
14
],
[
13,
14
],
[
11,
14
],
[
5,
11
],
[
3,
5
],
[
3,
13
],
[
0,
14
]
] | 18
| 24
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
5,
7,
8,
11,
12
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
] |
[
[
9,
10
],
[
3,
9
],
[
4,
9
],
[
1,
10
],
[
10,
13
],
[
0,
10
],
[
6,
10
],
[
1,
13
],
[
13,
14
],
[
3,
14
],
[
6,
14
],
[
2,
3
],
[
0,
3
],
[
5,
12
],
[
11,
12
],
[
8,
12
],
[
5,
8
],
[
5,
7
],
[
7,
11
],
[
2,
7
]
] | 15
| 20
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
2,
4
],
[
7,
13
],
[
9,
13
],
[
10,
13
],
[
13,
17
],
[
1,
13
],
[
8,
13
],
[
6,
13
],
[
7,
15
],
[
7,
14
],
[
0,
7
],
[
7,
16
],
[
4,
9
],
[
9,
16
],
[
10,
15
],
[
5,
15
],
[
8,
15
],
[
12,
15
],
[
11,
15
],
[
10,
17
],
[
1,
10
],
[
10,
11
],
[
3,
10
],
[
14,
17
],
[
1,
5
],
[
1,
6
],
[
1,
12
],
[
1,
3
]
] | 18
| 28
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
3,
14,
15,
16,
18
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
4,
5
],
[
4,
13
],
[
4,
11
],
[
4,
9
],
[
4,
17
],
[
4,
6
],
[
2,
5
],
[
5,
13
],
[
5,
8
],
[
5,
11
],
[
5,
17
],
[
0,
5
],
[
1,
5
],
[
5,
10
],
[
5,
12
],
[
5,
6
],
[
2,
9
],
[
2,
7
],
[
1,
2
],
[
7,
9
],
[
10,
17
],
[
3,
16
],
[
14,
16
],
[
15,
16
],
[
3,
15
],
[
3,
18
],
[
14,
18
],
[
1,
14
]
] | 19
| 28
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
6,
9,
12,
16
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
0,
17
],
[
3,
17
],
[
14,
17
],
[
7,
17
],
[
4,
17
],
[
0,
11
],
[
0,
14
],
[
0,
13
],
[
0,
10
],
[
0,
4
],
[
0,
15
],
[
3,
11
],
[
2,
11
],
[
2,
3
],
[
3,
13
],
[
3,
5
],
[
3,
15
],
[
2,
8
],
[
7,
14
],
[
5,
14
],
[
10,
13
],
[
13,
18
],
[
8,
10
],
[
4,
18
],
[
1,
16
],
[
6,
16
],
[
12,
16
],
[
1,
12
],
[
1,
9
],
[
6,
9
],
[
5,
16
]
] | 19
| 31
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
4,
7
],
[
2,
4
],
[
0,
4
],
[
1,
2
],
[
1,
5
],
[
1,
6
],
[
1,
3
],
[
0,
1
],
[
3,
6
]
] | 8
| 9
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
3,
5,
6
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
2,
7
],
[
5,
6
],
[
1,
5
],
[
0,
5
],
[
0,
6
],
[
3,
6
],
[
1,
3
],
[
4,
6
]
] | 8
| 8
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
12,
14
],
[
4,
12
],
[
2,
12
],
[
5,
14
],
[
0,
14
],
[
3,
14
],
[
14,
17
],
[
11,
14
],
[
14,
15
],
[
13,
14
],
[
1,
14
],
[
4,
14
],
[
9,
14
],
[
6,
14
],
[
14,
16
],
[
8,
14
],
[
10,
14
],
[
7,
14
],
[
0,
13
],
[
0,
8
],
[
0,
7
],
[
9,
17
],
[
15,
16
],
[
10,
15
]
] | 18
| 24
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
0,
4
],
[
0,
2
],
[
0,
1
],
[
0,
6
],
[
0,
7
],
[
4,
6
],
[
4,
5
],
[
2,
3
],
[
1,
2
],
[
3,
5
]
] | 8
| 10
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
3,
4,
5,
7
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
8,
9
],
[
1,
9
],
[
1,
2
],
[
0,
5
],
[
4,
5
],
[
5,
7
],
[
0,
7
],
[
0,
3
],
[
3,
4
],
[
1,
3
]
] | 10
| 10
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
0,
3
],
[
3,
6
],
[
3,
10
],
[
3,
4
],
[
3,
11
],
[
3,
12
],
[
3,
17
],
[
0,
18
],
[
0,
6
],
[
0,
4
],
[
0,
5
],
[
0,
7
],
[
0,
9
],
[
0,
14
],
[
0,
1
],
[
0,
13
],
[
0,
8
],
[
0,
2
],
[
7,
18
],
[
15,
18
],
[
6,
9
],
[
6,
19
],
[
10,
16
],
[
8,
10
],
[
5,
13
],
[
9,
15
],
[
14,
16
],
[
12,
16
],
[
14,
17
],
[
11,
15
],
[
1,
11
],
[
12,
19
],
[
2,
17
]
] | 20
| 33
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
10,
12
],
[
7,
13
],
[
1,
13
],
[
0,
13
],
[
13,
17
],
[
5,
13
],
[
1,
6
],
[
6,
11
],
[
6,
8
],
[
2,
6
],
[
1,
10
],
[
10,
11
],
[
9,
10
],
[
4,
10
],
[
3,
10
],
[
10,
17
],
[
10,
14
],
[
9,
11
],
[
9,
16
],
[
2,
9
],
[
0,
16
],
[
4,
16
],
[
5,
16
],
[
0,
15
],
[
3,
4
]
] | 18
| 25
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
2,
10,
12,
15,
17
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
3,
8
],
[
3,
9
],
[
1,
3
],
[
3,
13
],
[
3,
7
],
[
3,
4
],
[
3,
18
],
[
3,
16
],
[
3,
6
],
[
8,
11
],
[
8,
13
],
[
4,
8
],
[
6,
8
],
[
1,
11
],
[
1,
7
],
[
1,
5
],
[
11,
14
],
[
0,
13
],
[
13,
18
],
[
5,
13
],
[
0,
14
],
[
16,
18
],
[
2,
10
],
[
10,
17
],
[
10,
12
],
[
2,
12
],
[
2,
15
],
[
15,
17
],
[
10,
16
]
] | 19
| 29
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
] |
[
[
2,
7
],
[
2,
8
],
[
2,
5
],
[
2,
13
],
[
2,
6
],
[
2,
4
],
[
1,
2
],
[
2,
14
],
[
2,
9
],
[
2,
3
],
[
7,
8
],
[
4,
7
],
[
7,
14
],
[
7,
9
],
[
5,
8
],
[
8,
11
],
[
5,
11
],
[
10,
13
],
[
6,
12
],
[
0,
6
],
[
4,
12
],
[
1,
12
],
[
0,
14
]
] | 15
| 23
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
] |
[
[
7,
8
],
[
8,
10
],
[
6,
8
],
[
0,
8
],
[
1,
8
],
[
4,
8
],
[
5,
8
],
[
3,
7
],
[
7,
9
],
[
0,
7
],
[
3,
10
],
[
2,
10
],
[
3,
9
],
[
9,
11
],
[
2,
9
],
[
0,
5
],
[
1,
11
]
] | 12
| 17
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
2,
3,
5,
10,
12
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
7,
11
],
[
9,
11
],
[
1,
11
],
[
6,
7
],
[
4,
7
],
[
7,
9
],
[
0,
7
],
[
4,
6
],
[
3,
5
],
[
5,
10
],
[
2,
5
],
[
2,
3
],
[
3,
12
],
[
10,
12
],
[
11,
12
]
] | 13
| 15
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
3,
4,
5,
7
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
0,
6
],
[
2,
6
],
[
1,
4
],
[
1,
3
],
[
1,
5
],
[
4,
5
],
[
4,
7
],
[
3,
7
],
[
1,
6
]
] | 8
| 9
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
4,
5,
6,
7
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
0,
2
],
[
0,
3
],
[
2,
3
],
[
5,
7
],
[
4,
5
],
[
1,
5
],
[
1,
7
],
[
6,
7
],
[
4,
6
],
[
1,
2
]
] | 8
| 10
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16
] |
[
[
0,
15
],
[
14,
15
],
[
3,
15
],
[
11,
15
],
[
6,
15
],
[
4,
15
],
[
2,
15
],
[
0,
3
],
[
0,
11
],
[
0,
1
],
[
0,
16
],
[
10,
14
],
[
7,
14
],
[
4,
11
],
[
10,
11
],
[
8,
11
],
[
2,
11
],
[
5,
11
],
[
6,
9
],
[
6,
16
],
[
4,
7
],
[
4,
8
],
[
1,
13
],
[
12,
13
],
[
5,
13
],
[
7,
12
],
[
8,
9
]
] | 17
| 27
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
7,
8
],
[
2,
8
],
[
0,
5
],
[
5,
7
],
[
4,
5
],
[
3,
5
],
[
5,
6
],
[
0,
4
],
[
0,
2
],
[
1,
4
],
[
3,
6
]
] | 9
| 11
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
5,
6
],
[
5,
8
],
[
3,
5
],
[
1,
5
],
[
5,
7
],
[
6,
8
],
[
0,
6
],
[
1,
6
],
[
4,
6
],
[
0,
8
],
[
8,
9
],
[
0,
9
],
[
3,
9
],
[
7,
9
],
[
2,
9
],
[
1,
4
]
] | 10
| 16
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
] |
[
[
3,
9
],
[
8,
9
],
[
2,
9
],
[
4,
9
],
[
3,
6
],
[
6,
8
],
[
0,
6
],
[
6,
7
],
[
6,
12
],
[
6,
13
],
[
0,
3
],
[
8,
10
],
[
5,
8
],
[
4,
8
],
[
1,
8
],
[
0,
7
],
[
0,
10
],
[
0,
2
],
[
0,
11
],
[
0,
14
],
[
7,
13
],
[
1,
7
],
[
10,
12
],
[
5,
10
],
[
10,
11
]
] | 15
| 25
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
0,
12
],
[
2,
6
],
[
1,
6
],
[
6,
7
],
[
5,
6
],
[
3,
6
],
[
2,
9
],
[
0,
1
],
[
1,
9
],
[
1,
8
],
[
1,
4
],
[
0,
11
],
[
0,
8
],
[
0,
3
],
[
7,
9
],
[
5,
8
],
[
5,
10
],
[
3,
4
]
] | 13
| 18
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
6,
7,
8,
9
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
4,
5
],
[
0,
4
],
[
7,
8
],
[
1,
7
],
[
7,
9
],
[
8,
9
],
[
6,
8
],
[
1,
6
],
[
5,
8
]
] | 10
| 9
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
2,
8,
9,
11
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
] |
[
[
3,
4
],
[
3,
6
],
[
3,
10
],
[
3,
5
],
[
4,
6
],
[
4,
7
],
[
4,
5
],
[
7,
10
],
[
1,
8
],
[
8,
11
],
[
2,
8
],
[
1,
2
],
[
1,
9
],
[
9,
11
],
[
5,
9
]
] | 12
| 15
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
7,
8,
9,
10,
11
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
1,
2
],
[
2,
17
],
[
2,
14
],
[
2,
12
],
[
2,
3
],
[
2,
13
],
[
2,
15
],
[
0,
2
],
[
1,
6
],
[
6,
17
],
[
6,
12
],
[
5,
6
],
[
6,
13
],
[
6,
16
],
[
3,
5
],
[
5,
15
],
[
5,
16
],
[
0,
16
],
[
9,
11
],
[
7,
11
],
[
10,
11
],
[
9,
10
],
[
8,
9
],
[
7,
8
],
[
4,
11
]
] | 18
| 25
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16
] |
[
[
9,
16
],
[
11,
15
],
[
5,
15
],
[
0,
15
],
[
11,
12
],
[
5,
11
],
[
7,
11
],
[
4,
11
],
[
10,
12
],
[
1,
12
],
[
2,
12
],
[
6,
12
],
[
0,
12
],
[
9,
12
],
[
3,
12
],
[
8,
12
],
[
7,
12
],
[
12,
13
],
[
3,
5
],
[
2,
10
],
[
6,
10
],
[
10,
14
],
[
2,
4
],
[
0,
8
],
[
0,
13
]
] | 17
| 25
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16
] |
[
[
5,
8
],
[
4,
8
],
[
1,
8
],
[
6,
8
],
[
2,
8
],
[
0,
8
],
[
8,
11
],
[
9,
15
],
[
9,
14
],
[
5,
15
],
[
5,
10
],
[
4,
7
],
[
4,
13
],
[
4,
16
],
[
4,
12
],
[
1,
7
],
[
1,
3
],
[
1,
10
],
[
7,
13
],
[
7,
14
],
[
2,
7
],
[
13,
16
],
[
3,
13
],
[
6,
15
],
[
0,
15
],
[
6,
11
],
[
6,
12
]
] | 17
| 27
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
3,
4,
6,
8,
10
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
9,
12
],
[
0,
9
],
[
7,
9
],
[
2,
9
],
[
9,
11
],
[
1,
9
],
[
3,
8
],
[
8,
10
],
[
4,
8
],
[
3,
4
],
[
3,
6
],
[
6,
10
],
[
0,
10
]
] | 13
| 13
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
0,
11
],
[
0,
9
],
[
11,
12
],
[
4,
11
],
[
6,
11
],
[
5,
11
],
[
10,
11
],
[
4,
12
],
[
6,
12
],
[
3,
12
],
[
8,
12
],
[
5,
12
],
[
2,
12
],
[
7,
12
],
[
1,
6
],
[
1,
3
],
[
9,
10
],
[
2,
7
]
] | 13
| 18
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
4,
12,
13,
15,
19
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
0,
5
],
[
3,
6
],
[
3,
7
],
[
1,
6
],
[
1,
16
],
[
1,
11
],
[
1,
18
],
[
1,
17
],
[
6,
7
],
[
2,
6
],
[
6,
17
],
[
14,
16
],
[
7,
9
],
[
8,
14
],
[
9,
18
],
[
2,
8
],
[
0,
8
],
[
8,
10
],
[
0,
10
],
[
15,
19
],
[
12,
15
],
[
4,
15
],
[
4,
19
],
[
13,
19
],
[
12,
13
],
[
0,
15
]
] | 20
| 26
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
4,
8
],
[
0,
4
],
[
4,
7
],
[
1,
4
],
[
3,
4
],
[
2,
4
],
[
4,
5
],
[
4,
6
],
[
0,
1
],
[
0,
6
],
[
2,
7
],
[
1,
5
]
] | 9
| 12
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
] |
[
[
2,
15
],
[
2,
6
],
[
11,
15
],
[
3,
15
],
[
9,
15
],
[
8,
15
],
[
10,
15
],
[
1,
15
],
[
14,
15
],
[
3,
11
],
[
4,
11
],
[
5,
11
],
[
3,
4
],
[
3,
8
],
[
0,
3
],
[
3,
10
],
[
3,
7
],
[
1,
6
],
[
4,
13
],
[
5,
9
],
[
9,
13
],
[
9,
14
],
[
0,
8
],
[
1,
12
],
[
1,
7
]
] | 16
| 25
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
6,
10,
12,
16
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
3,
13
],
[
3,
17
],
[
0,
3
],
[
3,
18
],
[
3,
14
],
[
3,
15
],
[
3,
9
],
[
3,
4
],
[
3,
8
],
[
3,
5
],
[
2,
13
],
[
11,
13
],
[
0,
2
],
[
0,
14
],
[
2,
18
],
[
2,
11
],
[
2,
5
],
[
4,
18
],
[
7,
18
],
[
8,
11
],
[
7,
11
],
[
10,
16
],
[
12,
16
],
[
1,
16
],
[
1,
10
],
[
6,
10
],
[
6,
12
],
[
8,
12
]
] | 19
| 28
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
1,
5
],
[
5,
8
],
[
2,
5
],
[
5,
16
],
[
4,
5
],
[
5,
14
],
[
5,
18
],
[
5,
9
],
[
5,
7
],
[
0,
16
],
[
0,
13
],
[
0,
18
],
[
1,
17
],
[
2,
10
],
[
10,
17
],
[
10,
11
],
[
4,
10
],
[
10,
15
],
[
8,
15
],
[
11,
17
],
[
13,
17
],
[
3,
17
],
[
9,
17
],
[
6,
16
],
[
11,
12
],
[
11,
14
],
[
3,
13
],
[
4,
12
],
[
6,
12
],
[
7,
14
]
] | 19
| 30
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
2,
8
],
[
8,
14
],
[
8,
17
],
[
8,
9
],
[
5,
8
],
[
2,
13
],
[
2,
16
],
[
2,
4
],
[
2,
11
],
[
2,
7
],
[
2,
15
],
[
4,
13
],
[
12,
13
],
[
7,
13
],
[
13,
15
],
[
0,
13
],
[
5,
13
],
[
14,
16
],
[
14,
17
],
[
0,
14
],
[
16,
18
],
[
4,
11
],
[
1,
4
],
[
4,
6
],
[
10,
11
],
[
1,
12
],
[
10,
12
],
[
3,
12
],
[
6,
18
],
[
3,
18
],
[
9,
17
]
] | 19
| 31
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
5,
13
],
[
6,
13
],
[
5,
14
],
[
2,
14
],
[
10,
14
],
[
12,
14
],
[
14,
17
],
[
0,
14
],
[
2,
5
],
[
4,
5
],
[
5,
15
],
[
3,
5
],
[
5,
6
],
[
2,
4
],
[
2,
15
],
[
2,
16
],
[
3,
10
],
[
1,
4
],
[
1,
8
],
[
1,
17
],
[
1,
7
],
[
1,
11
],
[
3,
16
]
] | 18
| 23
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
5,
8,
13,
17
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
] |
[
[
0,
11
],
[
11,
16
],
[
11,
14
],
[
2,
15
],
[
2,
3
],
[
2,
12
],
[
2,
10
],
[
2,
7
],
[
2,
9
],
[
2,
14
],
[
15,
18
],
[
4,
15
],
[
3,
12
],
[
3,
10
],
[
3,
19
],
[
0,
6
],
[
12,
16
],
[
10,
18
],
[
7,
10
],
[
9,
10
],
[
16,
19
],
[
8,
13
],
[
5,
8
],
[
1,
8
],
[
1,
13
],
[
13,
17
],
[
5,
17
],
[
5,
12
]
] | 20
| 28
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
0,
1
],
[
0,
2
],
[
0,
7
],
[
3,
5
],
[
2,
3
],
[
1,
7
],
[
5,
6
],
[
4,
7
]
] | 8
| 8
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
3,
4,
9,
12
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
] |
[
[
6,
7
],
[
2,
7
],
[
1,
7
],
[
7,
11
],
[
2,
6
],
[
1,
6
],
[
2,
8
],
[
2,
13
],
[
5,
8
],
[
5,
13
],
[
1,
10
],
[
10,
11
],
[
3,
4
],
[
0,
4
],
[
4,
9
],
[
3,
9
],
[
3,
12
],
[
0,
12
],
[
9,
11
]
] | 14
| 19
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
2,
7,
10,
12
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
] |
[
[
0,
11
],
[
0,
4
],
[
6,
8
],
[
4,
8
],
[
5,
8
],
[
6,
9
],
[
9,
11
],
[
3,
5
],
[
2,
7
],
[
2,
10
],
[
1,
2
],
[
1,
7
],
[
7,
12
],
[
10,
12
],
[
3,
7
]
] | 13
| 15
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
9,
14,
16
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16
] |
[
[
6,
7
],
[
7,
10
],
[
6,
8
],
[
8,
12
],
[
8,
13
],
[
5,
6
],
[
6,
12
],
[
2,
6
],
[
2,
5
],
[
3,
5
],
[
5,
11
],
[
10,
12
],
[
4,
12
],
[
13,
15
],
[
4,
10
],
[
3,
11
],
[
0,
9
],
[
1,
9
],
[
9,
16
],
[
0,
16
],
[
0,
14
],
[
1,
14
],
[
0,
4
]
] | 17
| 23
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
1,
2,
3,
5,
10
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
] |
[
[
6,
8
],
[
4,
7
],
[
4,
9
],
[
0,
4
],
[
6,
9
],
[
0,
9
],
[
2,
10
],
[
1,
10
],
[
3,
10
],
[
2,
3
],
[
2,
5
],
[
1,
5
],
[
2,
4
]
] | 11
| 13
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
7,
8,
10,
14,
18
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
11,
15
],
[
5,
11
],
[
11,
17
],
[
3,
11
],
[
11,
13
],
[
6,
11
],
[
3,
15
],
[
6,
15
],
[
0,
15
],
[
4,
17
],
[
0,
17
],
[
3,
13
],
[
3,
4
],
[
1,
3
],
[
3,
9
],
[
3,
12
],
[
2,
3
],
[
13,
16
],
[
2,
4
],
[
4,
16
],
[
1,
9
],
[
7,
10
],
[
10,
18
],
[
8,
10
],
[
7,
8
],
[
7,
14
],
[
14,
18
],
[
16,
18
]
] | 19
| 28
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
3,
5
],
[
3,
7
],
[
3,
6
],
[
5,
7
],
[
5,
17
],
[
2,
5
],
[
5,
8
],
[
5,
6
],
[
7,
17
],
[
7,
12
],
[
7,
15
],
[
0,
7
],
[
4,
7
],
[
7,
11
],
[
7,
9
],
[
7,
13
],
[
2,
17
],
[
10,
17
],
[
4,
15
],
[
14,
15
],
[
0,
2
],
[
2,
14
],
[
0,
8
],
[
8,
9
],
[
11,
14
],
[
1,
14
],
[
14,
16
],
[
1,
10
],
[
13,
16
]
] | 18
| 29
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
] |
[
[
0,
4
],
[
2,
4
],
[
4,
9
],
[
1,
7
],
[
0,
9
],
[
5,
9
],
[
6,
7
],
[
3,
7
],
[
7,
8
],
[
6,
8
],
[
5,
6
]
] | 10
| 11
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
2,
3,
5,
6
] |
[
0,
1,
2,
3,
4,
5,
6,
7
] |
[
[
1,
7
],
[
4,
7
],
[
3,
6
],
[
5,
6
],
[
2,
6
],
[
2,
3
],
[
0,
3
],
[
0,
5
],
[
3,
4
]
] | 8
| 9
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17
] |
[
[
15,
17
],
[
9,
17
],
[
7,
17
],
[
11,
16
],
[
15,
16
],
[
14,
16
],
[
6,
16
],
[
2,
16
],
[
9,
16
],
[
12,
16
],
[
8,
16
],
[
7,
16
],
[
3,
16
],
[
13,
16
],
[
11,
14
],
[
6,
11
],
[
2,
11
],
[
10,
11
],
[
0,
11
],
[
1,
11
],
[
5,
11
],
[
1,
15
],
[
6,
8
],
[
6,
10
],
[
0,
2
],
[
9,
12
],
[
9,
13
],
[
4,
8
],
[
4,
10
],
[
1,
3
]
] | 18
| 30
|
Is there a house motif in this graph?
|
No, there is no motif.
|
[] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8
] |
[
[
0,
7
],
[
7,
8
],
[
3,
7
],
[
2,
7
],
[
0,
8
],
[
0,
5
],
[
0,
2
],
[
0,
6
],
[
3,
8
],
[
1,
8
],
[
4,
8
],
[
1,
5
],
[
1,
6
]
] | 9
| 13
|
Is there a house motif in this graph?
|
Yes, there is a motif.
|
[
0,
1,
3,
11,
17
] |
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
] |
[
[
7,
18
],
[
7,
8
],
[
2,
7
],
[
5,
7
],
[
7,
9
],
[
2,
12
],
[
6,
12
],
[
4,
18
],
[
8,
16
],
[
8,
13
],
[
2,
16
],
[
2,
13
],
[
2,
10
],
[
14,
16
],
[
4,
5
],
[
5,
14
],
[
5,
15
],
[
5,
10
],
[
6,
13
],
[
9,
14
],
[
3,
17
],
[
1,
17
],
[
11,
17
],
[
3,
11
],
[
0,
3
],
[
0,
1
],
[
0,
8
]
] | 19
| 27
|
MotifQA
Dataset Summary
MotifQA is a synthetic graph question-answering benchmark focused on detecting graph motifs inside small random graphs. Each example pairs a textual prompt with an answer sentence, a list of nodes highlighted as the motif (when present), and an explicit graph description(nodes and edges). In this QA dataset, all graphs are homogenous and undirected. Subsets cover both yes/no motif detection and motif-type classification (house vs 5-cycle).
Subsets
ba_shapes(default): Detect a five-node house motif inside Barabási–Albert graphs.tree_cycle: Detect a 6-node cycle inside random binary trees.tree_grid: Detect a 3×3 grid motif inside random binary trees.ba_two_motifs: Classify whether a Barabási–Albert graph contains a house motif or a 5-cycle motif (every graph has exactly one of the two).
Dataset Structure
Data Fields
prompt(string): Natural-language question about the presence of motif.response(string): Short-form answer sentence. e.g.,"Yes, there is a motif."or"No, there is no motif.".motif_nodes(List[int]): Node indices comprising the motif; empty list when the motif is absent.nodes(List[int]): Enumeration of all node identifiers in the graph (ranges from0tonnodes - 1).edges(List[List[int]]): List of undirected edges; every edge appears once as[min_node, max_node].nnodes(int): Total number of nodes.nedges(int): Total number of edges.
Data Splits
| Subset | Split | Total | Positive | Negative |
|---|---|---|---|---|
| ba_shapes | Train | 1000 | 511 | 489 |
| ba_shapes | Val | 500 | 246 | 254 |
| ba_shapes | Test | 500 | 243 | 257 |
| tree_cycle | Train | 1000 | 496 | 504 |
| tree_cycle | Val | 500 | 245 | 255 |
| tree_cycle | Test | 500 | 259 | 241 |
| tree_grid | Train | 1000 | 508 | 492 |
| tree_grid | Val | 500 | 242 | 258 |
| tree_grid | Test | 500 | 250 | 250 |
Detection subsets are approximately balanced across splits. The ba_two_motifs subset contains only motif-bearing graphs; label counts are:
| Subset | Split | Total | House | Cycle |
|---|---|---|---|---|
| ba_two_motifs | Train | 1000 | 513 | 487 |
| ba_two_motifs | Val | 500 | 241 | 259 |
| ba_two_motifs | Test | 500 | 246 | 254 |
Node Count Distribution
Node counts depend on the underlying base generator and motif size:
ba_shapes(Barabási–Albert,num_edges = 2): 8–20 nodes.tree_cycle(Prüfer trees + 6-cycle motif): 8–21 nodes.tree_grid(Prüfer trees + 3×3 grid motif): 8–24 nodes.ba_two_motifs(Barabási–Albert; house vs 5-cycle motifs): 8–20 nodes.
Observed frequencies across the full 2,000-example splits for each subset are shown in the per-subset histograms.
Data Creation
Source Data
All examples are synthetically generated using PyTorch Geometric (2.7.0) primitives:
- Detection subsets: positive samples start from certain base graphs whose node counts are drawn from a uniform distribution before a motif is injected, yielding final graphs with 8–20 nodes. Negative samples use the same process with node counts drawn from
range(MIN_NODES, MAX_NODES + 1)(default 8–20) and no motif. ba_two_motifs: both classes contain motifs injected into Barabási–Albert graphs—house motifs vs 5-cycle motifs—with final graphs spanning 8–20 nodes.
Generation Process
- Create class-specific graph pools (
ExplainerDatasetfor motif-bearing graphs andNegativeGraphsfor motif-free graphs, or two differentExplainerDatasetinstances forba_two_motifs). - Randomly shuffle node indices via the custom
ShuffleNodestransform to prevent positional bias. - Convert graphs to text QA format:
- Construct the prompt and answer sentence.
- Record motif node indices and extract the explicit graph topology.
- Shuffle and split into train/validation/test partitions (50/25/25).
- Serialize each subset to JSON Lines (
train.jsonl,val.jsonl,test.jsonl).
Visualization utilities (src/utils.py) can render example graphs with highlighted motifs;
pre-generated figures are stored in fig/.
Annotations
Annotations are automatically derived from the generation pipeline; no human annotation was performed.
Considerations for Using the Data
- Edges are stored once per undirected connection with node identifiers sorted; duplicate each entry if your pipeline expects bidirectional edges.
- Natural-language responses are templated sentences, so linguistic diversity is limited.
Usage
Loading with 🤗 Datasets
from datasets import load_dataset
ds = load_dataset("naoki/motif-qa", name="ba_shapes")
print(ds["train"][0]["response"])
Working with Graph Topology
import torch
from torch_geometric.data import Data
from src.utils import visualize_graph
example = ds["train"][0]
# Build a PyG data object from the serialized edge list.
edge_index = torch.tensor(example["edges"], dtype=torch.long).t().contiguous()
graph = Data(edge_index=edge_index, num_nodes=example["nnodes"])
# Attach the motif mask expected by `visualize_graph`.
graph.node_mask = torch.zeros(example["nnodes"])
graph.node_mask[example["motif_nodes"]] = 1
visualize_graph(graph, "motif_example.png")
The script saves a PNG with motif nodes highlighted in orange.
Use absolute imports (e.g., from motif_qa.src.utils import visualize_graph) if you install the project as a package.
Regenerating the Dataset Locally
python generator.py \
--num-pos-samples 1000 \
--num-neg-samples 1000 \
--out-dir data
This command reproduces 2,000 examples and overwrites the JSONL files.
Validating with datasets-cli
Run the standard Hugging Face check from the repository root:
datasets-cli test . --all_configs
The command materializes the ba_shapes subset via the built-in JSON loader.
Limitations and Biases
- Only a house motif is considered; absence of other motifs may bias models toward motif-specific heuristics.
- Graph topologies follow Barabási–Albert statistics; performance on other graph families is untested.
- Answers are deterministic and class-balanced, so real-world noise is not represented.
License
Released under the MIT License.
Citation
If you use this dataset, please cite the repository:
@software{motifqa2025,
author = {Naoki Shimoda},
title = {MotifQA: Synthetic Graph Motif Question Answering Dataset},
year = {2025},
url = {https://huggingface.co/datasets/naos-ku/motif-qa}
}
- Downloads last month
- 214