Metric for comparing graphs with ordered vertices based on the maximum common subgraph
Prikladnaâ diskretnaâ matematika, no. 2 (2021), pp. 105-113

Voir la notice de l'article provenant de la source Math-Net.Ru

The paper is devoted to the methods of comparison and classification of graphs. This direction is known as graph matching. An overview of metrics for comparing graphs based on a maximum common subgraph is given. A graph $\text{mcs}(G, F)$ is a maximal common subgraph of graphs $G$ and $F$ if it is isomorphic to $G' \subseteq G$ and $F' \subseteq F$ and contains the maximum number of vertices. In some tasks (for example, comparing texts), it is important to take into account one more factor: vertex numbering. A modification of the distance based on the maximum common subgraph is proposed, taking into account this factor (each vertex has its own unique number). We determine a function of graphs $G$ and $F$ as follows: $d(G, F) = 1 - \min_{i=1,\dots,k}({|\text{mcs}(g_{\min(i,m)}, f_i)|}/{i})$. Here $|G|$ denotes the number of vertices in $G$, $|G|=m$, $|F|=k$, $m\leq k$; and $g_i$ is the subgraph of $G$ containing vertices with numbers from $1$ to $i$ and all edges of $G$ incident to these vertices (the graphs $f_i$ are defined similarly). It is shown that this function satisfies all the properties of the metric (nonnegativity, identity, symmetry, triangle inequality). This metric can be used to solve various problems of image recognition (for example, to establish the authorship of texts).
Keywords: graph, comparison, metric, maximum common subgraph, graph matching.
@article{PDM_2021_2_a6,
     author = {N. D. Moskin},
     title = {Metric for comparing graphs with ordered vertices based on the maximum common subgraph},
     journal = {Prikladna\^a diskretna\^a matematika},
     pages = {105--113},
     publisher = {mathdoc},
     number = {2},
     year = {2021},
     language = {ru},
     url = {http://geodesic.mathdoc.fr/item/PDM_2021_2_a6/}
}
TY  - JOUR
AU  - N. D. Moskin
TI  - Metric for comparing graphs with ordered vertices based on the maximum common subgraph
JO  - Prikladnaâ diskretnaâ matematika
PY  - 2021
SP  - 105
EP  - 113
IS  - 2
PB  - mathdoc
UR  - http://geodesic.mathdoc.fr/item/PDM_2021_2_a6/
LA  - ru
ID  - PDM_2021_2_a6
ER  - 
%0 Journal Article
%A N. D. Moskin
%T Metric for comparing graphs with ordered vertices based on the maximum common subgraph
%J Prikladnaâ diskretnaâ matematika
%D 2021
%P 105-113
%N 2
%I mathdoc
%U http://geodesic.mathdoc.fr/item/PDM_2021_2_a6/
%G ru
%F PDM_2021_2_a6
N. D. Moskin. Metric for comparing graphs with ordered vertices based on the maximum common subgraph. Prikladnaâ diskretnaâ matematika, no. 2 (2021), pp. 105-113. http://geodesic.mathdoc.fr/item/PDM_2021_2_a6/