Ext1 = {0, 0}
Ext2 = {8, 0}
Vc1 = {2, 2}
Vc2 = {5, 2}
I1 = Table[i, {i, 1, 3}]
I2 = Table[i - 1, {i, 2, 7}]
Tuples[I1, 2]
int1 = Select[Tuples[I1, 2],
Last[#] == 3 && First[#] != 2 || Last[#] == 1 && First[#] == 2 &]
Tuples[I2, 2]
int2 = Select[Tuples[I2, 2],
Last[#] == 3 && First[#] != 5 && First[#] != 1 && First[#] != 2 && First[#] != 3
|| Last[#] == 1 && First[#] == 5 &]
Do[Graphics[{Black, Thick,
{Line[{Ext1, int1[[i]]}], Line[{Vc1, int1[[1]]}],
Line[{Vc1, int1[[2]]}], Line[{Vc1, int1[[3]]}],
Line[{Vc2, int2[[1]]}], Line[{Vc2, int2[[2]]}],
Line[{Vc2, int2[[3]]}], Line[{Ext2, int2[[j]]}],
If[i == 1, {If[j == 1, {Line[{int1[[i + 1]], int2[[j + 1]]}],
Line[{int1[[i + 2]], int2[[j + 2]]}]}],
If[j == 2, {Line[{int1[[i + 1]], int2[[j + 1]]}],
Line[{int1[[i + 2]], int2[[j - 1]]}]}],
If[j == 3, {Line[{int1[[i + 1]], int2[[j - 1]]}],
Line[{int1[[i + 2]], int2[[j - 2]]}]}]}],
If[i == 2, {If[j == 1, {Line[{int1[[i + 1]], int2[[j + 1]]}],
Line[{int1[[i - 1]], int2[[j + 2]]}]}],
If[j == 2, {Line[{int1[[i + 1]], int2[[j + 1]]}],
Line[{int1[[i - 1]], int2[[j - 1]]}]}],
If[j == 3, {Line[{int1[[i + 1]], int2[[j - 1]]}],
Line[{int1[[i - 1]], int2[[j - 2]]}]}]}],
If[i == 3, {If[j == 1, {Line[{int1[[i - 1]], int2[[j + 1]]}],
Line[{int1[[i - 2]], int2[[j + 2]]}]}],
If[j == 2, {Line[{int1[[i - 1]], int2[[j + 1]]}],
Line[{int1[[i - 2]], int2[[j - 1]]}]}],
If[j == 3, {Line[{int1[[i - 1]], int2[[j - 1]]}],
Line[{int1[[i - 2]], int2[[j - 2]]}]}]}]
}}]
Graphics[{Black, Thick,
{Line[{Ext1, int1[[i]]}], Line[{Vc1, int1[[1]]}],
Line[{Vc1, int1[[2]]}], Line[{Vc1, int1[[3]]}],
Line[{Vc2, int2[[1]]}], Line[{Vc2, int2[[2]]}],
Line[{Vc2, int2[[3]]}], Line[{Ext2, int2[[j]]}],
If[i == 1, {If[j == 1, {Line[{int1[[i + 1]], int2[[j + 2]]}],
Line[{int1[[i + 2]], int2[[j + 1]]}]}],
If[j == 2, {Line[{int1[[i + 1]], int2[[j - 1]]}],
Line[{int1[[i + 2]], int2[[j + 1]]}]}],
If[j == 3, {Line[{int1[[i + 1]], int2[[j - 2]]}],
Line[{int1[[i + 2]], int2[[j - 1]]}]}]}],
If[i == 2, {If[j == 1, {Line[{int1[[i + 1]], int2[[j + 2]]}],
Line[{int1[[i - 1]], int2[[j + 1]]}]}],
If[j == 2, {Line[{int1[[i + 1]], int2[[j - 1]]}],
Line[{int1[[i - 1]], int2[[j + 1]]}]}],
If[j == 3, {Line[{int1[[i + 1]], int2[[j - 2]]}],
Line[{int1[[i - 1]], int2[[j - 1]]}]}]}],
If[i == 3, {If[j == 1, {Line[{int1[[i - 1]], int2[[j + 2]]}],
Line[{int1[[i - 2]], int2[[j + 1]]}]}],
If[j == 2, {Line[{int1[[i - 1]], int2[[j - 1]]}],
Line[{int1[[i - 2]], int2[[j + 1]]}]}],
If[j == 3, {Line[{int1[[i - 1]], int2[[j - 2]]}],
Line[{int1[[i - 2]], int2[[j - 1]]}]}]}]
}}] // Print,
{i, 1, 3}, {j, 1, 3}]
I have attached the diagram though it's not good looking. need help
Graph
. Once you have this format, it's easy to tell which graphs are isomorphic withIsomorphicGraphQ
. After that, maybe the plotting functions for graphs are already good enough for your purposes? $\endgroup$ – Roman Apr 9 '19 at 9:37