1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//!
//! The problem being solved here is finding subgraphs matching
//! a given subgraph pattern in a larger base graph. The subgraph
//! pattern is a graph where each element weight is a condition on a base graph element.
//! A valid match is a subgraph of the base graph that is isomorphic to the
//! pattern where each element fulfils the condition of the corresponding
//! pattern element.
//!
//! It is also possible to add hidden subgraph elements, that are removed from the matches before returning them to the caller.
//!
//! While the architecture is designed to eventually support multiple matching
//! implementations, currently only one VF based algorithm is implemented. The
//! easiest way to use it is creating a new pattern with
//! [pattern_matching::new_pattern] and passing that pattern to
//! [pattern_matching::solve_vf]. Conditions in the pattern graph can be either constructed as function closures or with the [matcher] macro.
//!
//! For examples see the unit tests for this module (located in the `tests` folder of the crate source).
use VfState;
use crateGraph;
/// Module that contains an implementation for subgraph algorithms.
///
/// Goal: Contain Subgraph Isomorphism Algorithms based on the VF family (VF2, VF2+, VF3...).
/// Definition of matcher types.
pub use *;
/// Definition of pattern types.
pub use *;
/// trait specifying a generic algorithm for solving subgraph matching
pub use *;
/// Creates an empty new graph pattern.
/// Solve a graph matching problem instance using an approach based the VF algorithms.
///
/// The algorithm implementation used is provided by the [vf_algorithms] module.
///
/// See the [SubgraphAlgorithm::eval] documentation on how to use it.