VF2 algorithm steps with example

后端 未结 2 1799
野趣味
野趣味 2021-02-02 01:10

Can someone explain the steps of the VF2 algorithm for graph isomorphism in simple words? I am learning this algorithm, but it is harsh without a working example. Can someone le

2条回答
  •  醉话见心
    2021-02-02 01:44

    high-level overview of the VF algorithm is presented:

    PROCEDURE Match(s)
        INPUT: an intermediate state s; the initial state s0 has M(s0)=
        OUTPUT: the mappings between the two graphs
        IF M(s) covers all the nodes of G2 THEN
            OUTPUT M(s)
        ELSE
            Compute the set P(s) of the pairs candidate for inclusion in M(s)
            FOREACH (n, m) P(s)
                IF F(s, n, m) THEN
                    Compute the state s´ obtained by adding (n, m) to M(s)
                    CALL Match(s )
                END IF
            END FOREACH
             Restore data structures
        END IF
    END PROCEDURE
    

提交回复
热议问题