Skip to content

Kind of subgraphs matched by VF3 #5

Description

@bkj

Hi --

Running the example command

./bin/vf3 ./test/bvg1.sub.grf ./test/bvg1.grf -s

gives you the following matches

0,0:19,1:12,2:17,3:
0,0:19,1:12,2:5,3:
0,0:2,1:12,2:17,3:
0,0:2,1:12,2:5,3:
0,0:2,1:5,2:12,3:
0,0:2,1:5,2:17,3:
13,0:9,1:14,2:16,3:
13,0:9,1:16,2:14,3:
5,0:0,1:7,2:19,3:
6,0:18,1:11,2:9,3:
6,0:18,1:9,2:11,3:
7,0:5,1:11,2:18,3:
7,0:5,1:18,2:11,3:

However, both edges 0 17 and 17 0 exist in the target graph, so the subgraph induced by 0 12 17 19 has four edges:

0 17
0 12
17 0
19 0

What kinds of subgraphs is VF3 trying to match? I thought it was "find a set of nodes in target s.t. the subgraph they induce is isomorphic to query" -- but the above example suggests it may be something different.

As another example -- the subgraph induced by 0,0:19,1:12,2:5,3: is not isomorphic to query -- there's an edge 5 19 in target that isn't in query.

(FWIW -- the VF2 implementation in networkx does not return either of the above examples, which IMO is the expected behavior.)

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions