Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:38:55+00:00 2026-05-26T23:38:55+00:00

Can someone explain the steps of the VF2 algorithm for graph isomorphism in simple

  • 0

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 lead me the right direction? Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:38:56+00:00Added an answer on May 26, 2026 at 11:38 pm

    I will try to give you a quick explaination of my previous answer to this question :

    Any working example of VF2 algorithm?

    I will use the same example as the one in my previous answer :

    enter image description here

    The 2 graphs above are V and V’ .(V’ is not in the drawing but it’s the one on the right)

    The VF2 algorithm is described in the graph.

    Step by step

    I want to know if V and V’ are isomorphic.

    I will use the following notations : XV is the node X in V

    In the VF2 algorithm I will try to match each node in V with a node in V’.

    step 1 :

    I match empty V with empty V’ : it always works

    step 2 :
    I can match 1V with 1V’,2V’ or 3V’

    I match 1V with 1V’ : it always works

    step 3 :

    I can match 2V with 2V’ or 3V’

    I match 2V with 2V’ : it works because {1V 2V} and {1V’ 2V} are isomorphic

    step 4 :

    I try to match 3V with a node in V’ : I cannot! {it would be possible if there were an edge between node 3 and 2 in V’, and no edge between 3 and 1)

    So I go back to step 2

    step 5:

    I match 2V with 3V’

    step 6:

    same as step 4

    I go back to step 2. there is no solution in step 2 , I go back to step 1

    step 7:

    I match 1V with 2V’

    step 8:

    I match 2V with 1V’

    step 9 :

    I match 3V with 3V’

    it works I matched {1V 2V 3V} with { 2V’ 1V’ 3V’}

    The graphs are isomorphic.

    If I test all the solution and it never works the graph would not be isomorphic.

    Hope this helps


    About your question on “matching”, have a look at the wikipedia article on graph isomorphism :

    http://en.wikipedia.org/wiki/Graph_isomorphism

    this is a good example of a function f that matches graph G and H :
    enter image description here

    Hope you can better understand this algorithm with this illustration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone explain this result to me. The first test succeeds but the second
Can someone please explain the steps this program takes and the order in which
Can someone please explain to me why the recursive part of this algorithm has
Can someone explain what exactly the string 0 but true means in Perl? As
Can someone explain what this means? int (*data[2])[2];
Can someone please explain the steps I need to take in order to add
Can someone explain and give example code to do the following steps in my
Can someone explain the mechanics of a jump table and why is would be
Can someone explain to me the advantages of using an IOC container over simply
Can someone explain what are the benefits of using the @import syntax comparing to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.