Skip to content

Choosing the algorithm state

Inno Fang edited this page Jun 3, 2019 · 2 revisions

We have two algorithm states:

Pass sourceGraph and targetGraph through constructors.

Also if you have ability to extend the State to implement another subgraph isomorphism alogrithm, welcome make a pull request!

...
for (Graph targetGraph : targetGraphs) {
    for (Graph sourceGraph : sourceGraphs) {
       // choosing an algorithm state
       State state = new UllmannState(sourceGraph, targetGraph);

       // the following code ...
   }
}
...