create index to graph and find isomorphism

1 view (last 30 days)
Hello
I need to create index to graph like (G1,G2, G3, ....) and find isomorphism between them.

Accepted Answer

Steven Lord
Steven Lord on 30 Jun 2022
Can you dynamically create variables with numbered names like G1, G2, G3, etc.? Yes.
Should you do this? The general consensus is no. That Answers post explains why this is generally discouraged and offers several alternative approaches.
Instead make a cell array containing the graph objects then call the isomorphism function on pairs of elements from the cell array.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!