English

Algorithms for Computing Wiener Indices of Acyclic and Unicyclic Graphs

Combinatorics 2022-04-25 v2

Abstract

Let G=(V(G),E(G))G=(V(G),E(G)) be a molecular graph, where V(G)V(G) and E(G)E(G) are the sets of vertices (atoms) and edges (bonds). A topological index of a molecular graph is a numerical quantity which helps to predict the chemical/physical properties of the molecules. The Wiener, Wiener polarity and the terminal Wiener indices are the distance based topological indices. In this paper, we described a linear time algorithm {\bf(LTA)} that computes the Wiener index for acyclic graphs and extended this algorithm for unicyclic graphs. The same algorithms are modified to compute the terminal Wiener index and the Wiener polarity index. All these algorithms compute the indices in time O(n)O(n).

Cite

@article{arxiv.1801.05146,
  title  = {Algorithms for Computing Wiener Indices of Acyclic and Unicyclic Graphs},
  author = {Bo Bi and Muhammad Kamran Jamil and Khawaja Muhammad Fahd and Tian-Le Sun and Imran Ahmad and Lei Ding},
  journal= {arXiv preprint arXiv:1801.05146},
  year   = {2022}
}
R2 v1 2026-06-22T23:46:22.184Z