Hi,
I'm trying to do a comparison between a main graph and a sub graph. Simply put, is there a native function to do this job or should I do search and compare in the the following way:
Triangular grid as a main grap:
a = ResourceFunction["WolframModel"][{{x, y}} -> {{x, y},{y, z},{z, x}}, {{1, 2}}, 2, "FinalState"]
Triangle:
b = ResourceFunction["WolframModel"][{{x, y}} -> {{x, y},{y, z},{z, x}}, {{1, 2}}, 1, "FinalState"]
Square:
c = ResourceFunction["WolframModel"][{{x, y}} -> {{x, y},{y, z},{z, u},{u, x}}, {{1, 2}}, 1, "FinalState"]
Looging for triangle:
s = Subgraph[b,b]
Subgraph[a,b] == s -> TRUE
Looginf for square:
Subgraph[a,c] == s -> FALSE
Before I'm going to write a function for the comparison, I'd like to know what is the best way doing this?