<｜begin▁of▁sentence｜>### Instruction:
Given a pattern graph with edge set [(0, 1), (1, 2)] and a target graph with edge set [(0, 1), (1, 2), (2, 3), (3, 0)], how can we find and display all subgraph isomorphisms from the pattern graph to the target graph using the LAD algorithm in igraph?
### Response:
import igraph as ig

# Create two graphs
pattern = ig.Graph(edges=[(0, 1), (1, 2)])
target = ig.Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 0)])

# Find subisomorphisms from pattern to target graph using LAD algorithm
subisomorphisms = target.get_subisomorphisms_lad(pattern)

# Print all subisomorphisms
for iso in subisomorphisms:
    print(iso)
<|EOT|>
