Counting Tree-Like Multigraphs with a Given Number of Vertices and Multiple Edges

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ilyas, Muhammad, Hayat, Seemab, Azam, Naveed Ahmed
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913683950534656
author Ilyas, Muhammad
Hayat, Seemab
Azam, Naveed Ahmed
author_facet Ilyas, Muhammad
Hayat, Seemab
Azam, Naveed Ahmed
contents The enumeration of chemical graphs is an important topic in cheminformatics and bioinformatics, particularly in the discovery of novel drugs. These graphs are typically either tree-like multigraphs or composed of tree-like multigraphs connected to a core structure. In both cases, the tree-like components play a significant role in determining the properties and activities of chemical compounds. This paper introduces a method based on dynamic programming to efficiently count tree-like multigraphs with a given number $n$ of vertices and $Δ$ multiple edges. The idea of our method is to consider multigraphs as rooted multigraphs by selecting their unicentroid or bicentroid as the root, and define their canonical representation based on maximal subgraphs rooted at the children of the root. This representation guarantees that our proposed method will not repeat a multigraph in the counting process. Finally, recursive relations are derived based on the number of vertices and multiple edges in the maximal subgraphs rooted at the children of roots. These relations lead to an algorithm with a time complexity of $\mathcal{O}(n^2(n + Δ(n + Δ^2 \cdot \min\{n, Δ\})))$ and a space complexity of $\mathcal{O}(n^2(Δ^3+1))$. Experimental results show that the proposed algorithm efficiently counts the desired multigraphs with up to 170 vertices and 50 multiple edges in approximately 930 seconds, confirming its effectiveness and potential as a valuable tool for exploring the chemical graph space in novel drug discovery.
format Preprint
id arxiv_https___arxiv_org_abs_2502_05529
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Counting Tree-Like Multigraphs with a Given Number of Vertices and Multiple Edges
Ilyas, Muhammad
Hayat, Seemab
Azam, Naveed Ahmed
Discrete Mathematics
The enumeration of chemical graphs is an important topic in cheminformatics and bioinformatics, particularly in the discovery of novel drugs. These graphs are typically either tree-like multigraphs or composed of tree-like multigraphs connected to a core structure. In both cases, the tree-like components play a significant role in determining the properties and activities of chemical compounds. This paper introduces a method based on dynamic programming to efficiently count tree-like multigraphs with a given number $n$ of vertices and $Δ$ multiple edges. The idea of our method is to consider multigraphs as rooted multigraphs by selecting their unicentroid or bicentroid as the root, and define their canonical representation based on maximal subgraphs rooted at the children of the root. This representation guarantees that our proposed method will not repeat a multigraph in the counting process. Finally, recursive relations are derived based on the number of vertices and multiple edges in the maximal subgraphs rooted at the children of roots. These relations lead to an algorithm with a time complexity of $\mathcal{O}(n^2(n + Δ(n + Δ^2 \cdot \min\{n, Δ\})))$ and a space complexity of $\mathcal{O}(n^2(Δ^3+1))$. Experimental results show that the proposed algorithm efficiently counts the desired multigraphs with up to 170 vertices and 50 multiple edges in approximately 930 seconds, confirming its effectiveness and potential as a valuable tool for exploring the chemical graph space in novel drug discovery.
title Counting Tree-Like Multigraphs with a Given Number of Vertices and Multiple Edges
topic Discrete Mathematics
url https://arxiv.org/abs/2502.05529