<｜begin▁of▁sentence｜>### Instruction:
Given two graphs, g1 with edges [(0,1), (1,2), (2,0)] and g2 with edges [(0,1), (1,2), (2,3), (3,0)], can you use the isomorphic_vf2 function to determine if the graphs are isomorphic and provide mappings between their vertices if they are?
### Response:
from igraph import Graph

# Create two Graph instances
g1 = Graph(edges=[(0,1), (1,2), (2,0)])
g2 = Graph(edges=[(0,1), (1,2), (2,3), (3,0)])

# Check if g1 is isomorphic to g2
is_isomorphic, mapping_12, mapping_21 = g1.isomorphic_vf2(other=g2, return_mapping_12=True, return_mapping_21=True)

# Print whether the graphs are isomorphic
print('Isomorphic:', is_isomorphic)
# Print the mappings between the vertices if isomorphic
if is_isomorphic:
    print('Mapping from g1 to g2:', mapping_12)
    print('Mapping from g2 to g1:', mapping_21)
<|EOT|>
