Skip to content

Commit

Permalink
Add problem description
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenTrokeBillard committed Sep 16, 2024
1 parent 4cc359a commit aaa0584
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,37 @@ Graphs can be directed or undirected.
- [x] Support edge labels
- [x] Graph trait

# What is subgraph isomorphism?

A graph is a structure consisting of a set of objects where some pairs of objects are connected. A graph isomorphism is
a one-to-one correspondence between two graphs such that objects connected in one are also connected in the other.

### Graph isomorphism

For two graphs to be isomorphic, there must be a one-to-one correspondence between nodes such that neighbors in one are
also neighbors in the other. The query and data graphs in the following image are isomorphic.

![graph-isomorphism.svg](/images/graph-isomorphism.svg)

### Subgraph isomorphism

It is often desirable to find instances of one graph within another. To do this, we search for subgraph isomorphisms. A
subgraph isomorphism is when one graph is isomorphic to a subgraph of another. There are two subgraph isomorphisms in
the following image.

![subgraph-isomorphism.svg](/images/subgraph-isomorphism.svg)

An induced subgraph isomorphism is the same as a subgraph isomorphism except that the subgraph must be induced, meaning
the query and data graphs must have the same edges.

### Induced subgraph isomorphism

![induced-subgraph-isomorphism.svg](/images/induced-subgraph-isomorphism.svg)

# Remaining work

- [ ] Implement VF2 cutting rules
- [ ] Implement VF2++ (only VF2 implemented so far)

# References

Expand Down
1 change: 1 addition & 0 deletions images/graph-isomorphism.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/induced-subgraph-isomorphism.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit aaa0584

Please sign in to comment.