Introduction

Transition metal (TM) porphyrins are widely used in a variety of technological applications, including sensors, pigment applications, cancer therapy, synthetic photosynthesis, nonlinear optics, and nanomaterials, as a result of their special features1. Their value for catalysis and biological significance is directly tied to this interest. The coordination characteristics and conformational flexibility of porphyrins have been extensively used over the past ten years in the quest for potential porphyrin isomers that can provide enhanced functionality in particular technological applications2. The nitrogen-confused porphyrins (NCPs), a unique and promising class of porphyrins with enhanced capabilities for application as acid catalysts and anion/cation sensors, are one such significant class of porphyrins3. The chemical structure, physical characteristics, and coordination properties of these porphyrin isomers are significantly different from those of the parent porphyrins. Such structures are great candidates for use in photodynamic therapy because of their effective singlet-oxygen sensitization4.

The information content of complex networks5 and graphs based on Shannon’s entropy6 work was first studied by researchers in the late 1990s. In discrete mathematics, computer science, information theory, statistics, chemistry, biology, and other domains, a large range of quantitative methods for studying complex networks have been developed7,8. For instance, graph entropy measurements have been extensively employed in the fields of mathematical chemistry, biology, and computer science to characterize the structure of graph-based systems9,10. To measure the structural complexity of graphs, the idea of graph entropy, created by Rashevsky11 and Trucco, has been employed12. Chemical indices are valuable resources for researching various physico-chemical characteristics of molecules without having to perform several tests. Quantitative structure-activity relationships (QSAR) are used in the study of drugs to understand the chemical properties using mathematical calculations13,14. The entropy of a graph was first described as an information-theoretic property by Mowshowitz15. Here, the complexity is clear. As stated by Shannon, uncertainty and information are two sides of the coin: a reduction in uncertainty is the same as the reception of a certain amount of information. Distinguished researchers have developed numerous techniques for efficiently computing structural descriptors, aimed at optimizing computational efficiency. Among these techniques, the polynomial representation of structural descriptors has garnered significant attention and widespread acceptance in the scientific literature16,17. Entropy has emerged as a comprehensive and overarching concept across a wide spectrum of disciplines, spanning from logic and biology to physics and engineering. It serves as the link between the ideas of randomness and uncertainty, connecting them with physical processes that are viewed as channels for the transformation of information18.

The visible-light-induced photo redox catalyst nickel(II) tetraphenyl porphyrin (NiTPP) is given as a reliable, affordable, and effective catalyst. Recently, it was demonstrated that a library of Ni(II) ligand-to-ligand charge transfer complexes has useful features as photosensitizers, but their use in conventional photoredox catalysis is still unexplored19,20. Porphyrins have a wide range of applications in various fields, including: Porphyrins have been investigated as potential agents for imaging and treating cancer due to their ability to selectively bind to tumor cells. They are also used in photodynamic therapy (PDT), a treatment method that uses light-sensitive compounds to destroy cancer cells21. Porphyrins and their derivatives have been widely studied as catalysts in organic chemistry, with applications in hydrogenation, oxidation, and cycloaddition reactions. Porphyrins have been used as sensors for a variety of analytes, including metal ions, pH, and gases22. Porphyrins have been used for the detection and removal of heavy metal ions from contaminated water23. Porphyrins have been used as natural pigments in plant breeding and as a growth regulator in crops24. Porphyrins have applications in biotechnology such as biosensors, bioimaging, and biocatalysis25.

Several well-known topological indices, or the values that help characterize a structure’s topological properties after it has been replicated, are used to calculate a structure’s degree-based entropy. Zhdanov examined the chemical processes involving organic compounds using entropy values26. Chen27 first defined the entropy of an edge-weighted graph in 2014. The information entropy is defined as:

$$\begin{aligned} E_{\phi }(\eta )=\log (I)-\frac{1}{I}\sum _{i=1}F_i\phi (a_ib_i)\log \phi (a_ib_i) \end{aligned}$$
(1)

In Eq. (1) \(\eta _{e}\) is the edge set, \(\eta _{v}\) is the vertex set, and \(\phi (ab)\) is the edge weight of the edge (ab) in \(\eta\) and \(\eta =NiP\) be a molecular graph of Nickel Porphyrin and logarithm to be presumed to be based 10.

Table 1 Vertex partition of the Ni(II) porphyrins.
Table 2 Topological characteristics and the edge’s (mn) weight are shown together.

Structure of nickel(II) porphyrins

Nickel(II) porphyrins are a class of coordination complexes composed of a central nickel atom coordinated to four nitrogen atoms of a porphyrin ring and two additional atoms or groups35. These compounds are known for their stability, strong absorption in the visible region of the electromagnetic spectrum, and potential applications in catalytic and biomedical fields. They have been studied as catalysts in a variety of organic reactions, such as hydrogenation, oxidation, and cycloaddition reactions. In addition, they have been investigated as potential agents for imaging and treating cancer due to their ability to selectively bind to tumor cells. The additional atoms or groups coordinated to the nickel atom in nickel(II) porphyrins are called ligands. The ligands can vary depending on the synthesis method and the specific compound. Common ligands include water, chloride, and various organic groups36. Nickel(II) porphyrins have strong absorption in the visible region of the electromagnetic spectrum, with the absorption maximum typically around 400 nm. This property is due to the porphyrin ring and is used in applications such as imaging and photodynamic therapy37. Nickel(II) porphyrins have a low-spin electron configuration and have no unpaired electrons, so they have no net magnetic moment. Porphyrins and similar tetrapyrrolic macrocycles are found abundantly in nature and serve vital roles across a diverse range of disciplines, spanning from medicine to materials science. These compounds, particularly their metal complexes known as metalloporphyrins, serve as essential active centers in numerous enzymes38.

Since Küsterover39 initially postulated the porphyrin macrocyclic structure a century ago, study in the area has increased significantly, leading to a massive body of literature that is still growing quickly. To give you an idea, the “Handbook of Porphyrin Science” series,40 which was started in 2010, currently consists of 44 volumes and 214 chapters. The use of X-ray crystallography (including synchrotron) and neutron crystallography to determine the crystal structures of porphyrins has greatly aided the development to date. Currently, the Cambridge Structural Database has far more than 4000 porphyrin crystal structures (CSD)41. The structure of the Ni-metallated version, which has an interlayer spacing of 3.347 and Ni that is coplanar with the macrocycle, is otherwise comparable to that of Porphyrins. Using nanoelectrodes, Yoon42 assessed the electrical conductivity of two varieties of porphyrin wires. One type included 48 Ni(II) porphyrin moieties in directly meso-meso-connected Ni(II) porphyrin arrays. Because of the orthogonal arrangement of these arrays, consecutive porphyrins are aligned along the chain at right angles to one another. By using X-ray diffraction and a combination of single-crystal and solution resonance Raman studies, the structure of nickel(II) [Ni(P)] has been identified. Both resonance Raman spectroscopy and X-ray diffraction are approaches that are effective for examining porphyrin structure.

Methodology

Firstly, we find the degree of all types of vertices for the structure of nickel(II) porphyrins like we have three types of vertices: degree 2,3 and 4 and then we formulate general formulas for [mn] dimensions and by utilizing these provided formulas in Table 1 we can compute vertices for any cell and by using same method we calculate the edge partition of nickel(II) porphyrins is shown in Table 3 and we have 4 types of edge partitions. The order and size of nickel(II) porphyrins for [mn] is \(37mn+6m+6n\) and \(48mn+6m+6n\) respectively. Furthermore, degree-based topological indices that are mentioned in Table 2 are computed for \(n\textrm{th}\) cell of nickel(II) porphyrins and entropy for these calculated indices by using Table 3 and explain it with numerical and graphical representation. And after that, we built-in function in MATLAB is used to create models between the Heat of Formation and each information entropy because it provides the lowest RMSE value, which indicates the best match. The Numerical Integrity of fit for entropy versus indices of Ni(II) porphyrins is depicted in Table 8. The unit structure of nickel(II) porphyrins (NiP) is shown in Fig. 1 and for more details about the structure of NiP(II) see the Figs. 2 and 3.

Figure 1
figure 1

Unit structure of nickel(II) porphyrins [m = 1, n = 1].

Figure 2
figure 2

The structure of nickel(II) porphyrins [m = 2, n = 2].

Figure 3
figure 3

The structure of nickel(II) porphyrins [m = 3, n = 3].

Using Table 3 and Equation the Randic6 and corresponding entropy for \(\alpha =1,-1,\frac{1}{2},\frac{-1}{2}\) is :

Table 3 Edge partition of the Ni(II) porphyrins.

Computation of degree based indices and entropy of nickel(II) porphyrins [m,n]

The Randi\(\acute{c}\) index and Randi\(\acute{c}\) entropy for Ni(II) porphyrins

Using Tables 2, 3 and Eq. (1) the Randic index28 and corresponding entropy is:

$$\begin{aligned} R_{\alpha }(NiP)=(8mn+6m+6n)\times (4)^{\alpha }+(16mn)\times (6)^{\alpha }+(20mn)\times (9)^{\alpha }+(4mn)\times (12)^{\alpha } \end{aligned}$$

\(\alpha =1\)

$$\begin{aligned} R_1(NiP)= & {} 356mn+24m+24n\\ E_{R_1}(NiP)= & {} \log [356mn+24m+24n]-\frac{(8mn+6m+6n) \log [4]^{4}}{(356mn+24m+24n)}-\frac{(16mn)\log [6]^{6}}{(356mn+24m+24n)}\\{} & {} - \frac{(20mn)\log [9]^{9}}{(356mn+24m+24n)}-\frac{(4mn)\log [12]^{12}}{(356mn+24m+24n)} \end{aligned}$$

\(\alpha = {-1}\)

$$\begin{aligned} R_{-1}(NiP)= & {} 7.2222222222mn+1.5m+1.5n\\ E_{R_{-1}}(NiP)= & {} \log [7.2222222222mn+1.5m+1.5n]-\frac{(8mn+6m+6n) \log \left[ (4)^{\left( \frac{-1}{4}\right) }\right] }{(7.2222222222mn+1.5m+1.5n)}\\{} & {} -\frac{(16mn)\log \left[ (6)^{\left( \frac{-1}{6}\right) }\right] }{(7.2222222222mn+1.5m+1.5n)}- \frac{(20mn)\log \left[ (9)^{\left( \frac{-1}{9}\right) }\right] }{(7.2222222222mn+1.5m+1.5n)}\\{} & {} -\frac{(4mn)\log \left[ (12)^{\left( \frac{-1}{12}\right) }\right] }{(7.2222222222mn+1.5m+1.5n)} \end{aligned}$$

\(\alpha = \frac{1}{2}\)

$$\begin{aligned} R_{\frac{1}{2}}(NiP)= & {} 129.0482424mn+12m+12n\\ E_{R_{\frac{1}{2}}}(NiP)= & {} \log \left[ 129.0482424mn+12m+12n\right] -\frac{(8mn+6m+6n)\log \left[ (4)^{\left( \frac{\sqrt{4}}{2}\right) }\right] }{(129.0482424mn+12m+12n)}\\{} & {} -\frac{(16mn)\log \left[ (6)^{\left( \frac{\sqrt{6}}{2}\right) }\right] }{(129.0482424mn+12m+12n)}- \frac{(20mn)\log \left[ (9)^{\left( \frac{\sqrt{9}}{2}\right) }\right] }{(129.0482424mn+12m+12n)}\\{} & {} -\frac{(4mn)\log \left[ (12)^{\left( \frac{\sqrt{12}}{2}\right) }\right] }{(129.0482424mn+12m+12n)} \end{aligned}$$

\(\alpha = \frac{-1}{2}\)

$$\begin{aligned} R_{\frac{-1}{2}}(NiP)= & {} 18.35333985mn+3.0m+3.0n\\ E_{R_{\frac{-1}{2}}}(NiP)= & {} \log [18.35333985mn+3.0m+3.0n] -\frac{(8mn+6m+6n)\log \left[ (4)^{\frac{-1}{2\sqrt{4}}}\right] }{(18.35333985mn+3.0m+3.0n)}\\{} & {} -\frac{(16mn)\log \left[ (6)^{\frac{-1}{2\sqrt{6}}}\right] }{(18.35333985mn+3.0m+3.0n)}- \frac{(20mn)\log \left[ (9)^{\frac{-1}{2\sqrt{9}}}\right] }{(18.35333985mn+3.0m+3.0n)}\\{} & {} -\frac{(4mn)\log \left[ (12)^{\frac{-1}{2\sqrt{12}}}\right] }{(18.35333985mn+3.0m+3.0n)} \end{aligned}$$

The atom bond connectivity index and atom bond connectivity entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the Atom bond connectivity index29,30 and corresponding entropy is:

$$\begin{aligned} ABC(NiP)= & {} 40.01062533mn+4.242640687m+4.242640687n \\ E_{ABC}(NiP)= & {} \log \left[ 40.01062533mn+4.242640687m+4.242640687n\right] \\{} & {} -\frac{(8mn+6m+6n)\log \left[ \left( \sqrt{\frac{4-2}{4}}\right) ^{\left( \sqrt{\frac{4-2}{4}}\right) }\right] }{40.01062533mn+4.242640687m+4.242640687n}\\{} & {} -\frac{(16mn)\log \left[ \left( \sqrt{\frac{6-2}{6}}\right) ^{\left( \sqrt{\frac{6-2}{6}}\right) }\right] }{40.01062533mn+4.242640687m+4.242640687n}\\{} & {} -\frac{(20mn)\log \left[ \left( \sqrt{\frac{9-2}{9}}\right) ^{\left( \sqrt{\frac{9-2}{9}}\right) }\right] }{40.01062533mn+4.242640687m+4.242640687n}\\{} & {} -\frac{(4mn)\log \left[ \left( \sqrt{\frac{12-2}{12}}\right) ^{\left( \sqrt{\frac{12-2}{12}}\right) }\right] }{40.01062533mn+4.242640687m+4.242640687n} \end{aligned}$$

The geometric arithmetic index and geometric arithmetic entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the Geometric Arithmetic index29,30 and corresponding entropy is:

$$\begin{aligned} GA(NiP)= & {} 36.70648944mn+6m+6n \\ E_{GA}(NiP)= & {} \log [36.70648944mn+6m+6n]-\frac{(8mn+6m+6n) \log \left[ \left( {\frac{2\sqrt{4}}{4}}\right) ^{ \left( \frac{2\sqrt{4}}{4}\right) }\right] }{36.70648944mn+6m+6n}\\{} & {} -\frac{(16mn)\log \left[ \left( {\frac{2\sqrt{6}}{6}}\right) ^{\left( \frac{2\sqrt{6}}{6}\right) }\right] }{36.70648944mn+6m+6n}-\frac{(20mn) \log \left[ \left( {\frac{2\sqrt{9}}{9}}\right) ^{\left( \frac{2\sqrt{9}}{9}\right) }\right] }{36.70648944mn+6m+6n}\\{} & {} -\frac{(4mn)\log \left[ \left( {\frac{2\sqrt{12}}{12}}\right) ^{\left( \frac{2\sqrt{12}}{12}\right) }\right] }{36.70648944mn+6m+6n} \end{aligned}$$

The first Zagreb index and first Zagreb entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the first Zagreb index29,30 and corresponding entropy is:

$$\begin{aligned} M_1(NiP)= & {} 260mn+24m+24n\\ E_{M_1}(NiP)= & {} \log [260mn+24m+24n]-\frac{(8mn+6m+6n)\log [4]^{4}}{(260mn+24m+24n)} -\frac{(16mn)\log [5]^{5}}{(260mn+24m+24n)}\\{} & {} - \frac{(20mn)\log [6]^{6}}{(356mn+24m+24n)}-\frac{(4mn)\log [7]^{7}}{(260mn+24m+24n)} \end{aligned}$$

The second Zagreb index and second Zagreb entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the second Zagreb index29 and corresponding entropy is:

$$\begin{aligned} M_2(NiP)= & {} 356mn+24m+24n\\ E_{M_2}(NiP)= & {} \log [356mn+24m+24n]-\frac{(8mn+6m+6n)\log [4]^{4}}{(356mn+24m+24n)}-\frac{(16mn)\log [6]^{6}}{(356mn+24m+24n)}\\{} & {} - \frac{(20mn)\log [9]^{9}}{(356mn+24m+24n)}-\frac{(4mn)\log [12]^{12}}{(356mn+24m+24n)} \end{aligned}$$

The Hyper Zagreb index and Hyper Zagreb entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the Hyper Zagreb index31 and corresponding entropy is:

$$\begin{aligned} HM(NiP)= & {} 1444mn+96m+96n \\ E_{HM}(NiP)= & {} \log [1444mn+96m+96n]-\frac{(8mn+6m+6n)\log [16]^{16}}{(1444mn+96m+96n)} -\frac{(16mn)\log [25]^{25}}{(1444mn+96m+96n)}\\{} & {} - \frac{(20mn)\log [36]^{36}}{(1444mn+96m+96n)} -\frac{(4mn)\log [49]^{49}}{(1444mn+96m+96n)} \end{aligned}$$

The forgotten index and forgotten entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the Forgotten index32 and corresponding entropy is:

$$\begin{aligned} F(NiP)= & {} 732mn+48m+48n\\ E_{F}(NiP)= & {} \log [732mn+48m+48n]-\frac{(8mn+6m+6n)\log [8]^{8}}{(732mn+48m+48n)} -\frac{(16mn)\log [13]^{13}}{(732mn+48m+48n)}\\{} & {} - \frac{(20mn)\log [18]^{18}}{(732mn+48m+48n)}-\frac{(4mn)\log [25]^{25}}{(732mn+48m+48n)} \end{aligned}$$

The augmented Zagreb index and augmented Zagreb entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the Augmented Zagreb index33 and corresponding entropy is:

$$\begin{aligned} AZI(NiP)= & {} 167.41928863mn+48m+48n\\ E_{AZI}(NiP)= & {} \log [167.41928863mn+48m+48n]-\frac{(8mn+6m+6n) \log [(\frac{64}{8})^{(\frac{64}{8})}]}{(167.41928863mn+48m+48n)}\\{} & {} -\frac{(16mn)\log [8]^{8}}{(167.41928863mn+48m+48n)}- \frac{(20mn)\log \left[ \left( \frac{729}{64}\right) ^{\left( \frac{729}{64}\right) }\right] }{(167.41928863mn+48m+48n)}\\{} & {} -\frac{(4mn)\log \left[ \left( \frac{1728}{125}\right) ^{\left( \frac{1728}{125}\right) }\right] }{(167.41928863mn+48m+48n)} \end{aligned}$$

The first redefined Zagreb index and first redefined Zagreb entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the first redefined Zagreb index34 and corresponding entropy is:

$$\begin{aligned} ReZG_1(NiP)= & {} 37mn+6m+6n\\ E_{ReZG_1}(NiP)= & {} \log [37mn+6m+6n]-\frac{(8mn+6m+6n) \log \left[ \left( \frac{4}{4}\right) ^{\left( \frac{4}{4}\right) }\right] }{(37mn+6m+6n)} -\frac{(16mn)\log \left[ \left( \frac{5}{6}\right) ^{\left( \frac{5}{6}\right) }\right] }{(37mn+6m+6n)}\\{} & {} - \frac{(20mn)\log \left[ \left( \frac{6}{9}\right) ^{\left( \frac{6}{9}\right) }\right] }{(37mn+6m+6n)} -\frac{(4mn)\log \left[ \left( \frac{7}{12}\right) ^{\left( \frac{7}{12}\right) }\right] }{(37mn+6m+6n)} \end{aligned}$$

The second redefined Zagreb index and second redefined Zagreb entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the second redefined Zagreb index34 and corresponding entropy is:

$$\begin{aligned} ReZG_2(NiP)= & {} 64.0571428571mn+6m+6n\\ E_{ReZG_2}(NiP)= & {} \log [64.0571428571mn+6m+6n] -\frac{(8mn+6m+6n)\log \left[ \left( \frac{4}{4}\right) ^{\left( \frac{4}{4}\right) }\right] }{(64.0571428571mn+6m+6n)}\\{} & {} -\frac{(16mn)\log \left[ \left( \frac{6}{5}\right) ^{\left( \frac{6}{5}\right) }\right] }{(64.0571428571mn+6m+6n)}- \frac{(20mn)\log \left[ \left( \frac{9}{6}\right) ^{\left( \frac{9}{6}\right) }\right] }{(64.0571428571mn+6m+6n)}\\{} & {} -\frac{(4mn)\log \left[ \left( \frac{12}{7}\right) ^{\left( \frac{12}{7}\right) }\right] }{(64.0571428571mn+6m+6n)} \end{aligned}$$

The third redefined Zagreb index and third redefined Zagreb entropy for Ni(II) porphyrins

By using Tables 2, 3 and Eq. (1) the third redefined Zagreb index34 and corresponding entropy is:

$$\begin{aligned} ReZG_3(NiP)= & {} 2024mn+96m+96n\\ E_{ReZG_3}(NiP)= & {} \log [2024mn+96m+96n]-\frac{(8mn+6m+6n) \log [16]^{16}}{(2024mn+96m+96n)}-\frac{(16mn)\log [30]^{30}}{(2024mn+96m+96n)}\\{} & {} - \frac{(20mn)\log [54]^{54}}{(2024mn+96m+96n)}-\frac{(4mn) \log [84]^{84}}{(2024mn+96m+96n)} \end{aligned}$$

Numerical and graphical representation of computed results

In this section, we represent the numerical and graphical representation of the computed results. In Table 4 we represent the numerical results and in Figs. 4, 5, 6, 7 we represent the graphical comparison of the Randi\(\acute{c}\) entropies for different values of \((\alpha =1,-1,\frac{1}{2}\, \,and\, \, \frac{-1}{2})\).

Table 5 shows the numerical results and in Figs. 8, 9, 10 and 11 we represent the graphical comparison of \(E_{ABC}\), \(E_{GA}\), \(E_{M_1}\) and \(E_{M_2}\) entropies. The numerical results for \(E_{HM}\), \(E_{F}\) and \(E_{AZI}\) entropies are depicted in Table 6, and graphical comparisons are shown in Figs. 12, 13 and 14 and Table 7 shows the numerical results of redefined Zagreb entropies and graphical comparisons are shown in Figs. 15,16 and 17.

Table 4 Numerical comparison of \(E_{R_1}\), \(E_{R_{-1}}\), \(E_{R_{\frac{1}{2}}}\) and \(E_{R_{\frac{-1}{2}}}\).
Figure 4
figure 4

Graphically representation of \(E_{R_1}\).

Figure 5
figure 5

Graphically representation of \(E_{R_{-1}}\).

Figure 6
figure 6

Graphically representation of \(E_{R_{\frac{1}{2}}}\).

Figure 7
figure 7

Graphically representation of \(E_{R_{\frac{-1}{2}}}\).

Table 5 Numerical comparison of \(E_{ABC}\), \(E_{GA}\), \(E_{M_1}\) and \(E_{M_2}\).
Figure 8
figure 8

Graphically representation of \(E_{ABC}\).

Figure 9
figure 9

Graphically representation of \(E_{GA}\).

Figure 10
figure 10

Graphically representation of \(E_{M_1}\).

Figure 11
figure 11

Graphically representation of \(E_{M_2}\).

Table 6 Numerical comparison of \(E_{HM}\), \(E_{F}\) and \(E_{AZI}\).
Figure 12
figure 12

Graphically representation of \(E_{HM}\).

Figure 13
figure 13

Graphically representation of \(E_{F}\).

Figure 14
figure 14

Graphically representation of \(E_{AZI}\).

Figure 15
figure 15

Graphically representation of \(E_{ReZG_1}\).

Table 7 Numerical comparison of \(E_{ReZG_1}\), \(E_{ReZG_2}\) and \(E_{ReZG_3}\).
Figure 16
figure 16

Graphically representation of \(E_{ReZG_2}\).

Figure 17
figure 17

Graphically representation of \(E_{ReZG_3}\).

We have examined degree-based molecular descriptors for the nickel(II) porphyrins Network. The Randic index has a strong correlation with a variety of physicochemical characteristics of alkanes, including chromatographic retention times, surface area, vapor pressure, and boiling temperature variables in the Antonie equation. The atom-bond connectivity (ABC) index proves highly effective in calculating the strain energy of molecules through correlation. A good quantitative structural property relationship (QSPR) model is created when the temperature of alkane production is described by using the ABC index with a high correlation coefficient (r = 0.9970). Moreover, the geometric arithmetic index is a stronger correlation coefficient across a range of physicochemical parameters for octanes. Zagreb indices have been utilized to investigate complexity and hetero systems. These indices are also applied for constructing multilinear regression models and are instrumental in studies related to Quantitative Structure-Property Relationship (QSPR) and Quantitative Structure-Activity Relationship (QSAR)43,44. The Forgotten index has demonstrated associations with numerous chemical attributes of molecules. The Augmented Zagreb index proves to be more effective in correlating with the measurement of strain energy in molecules. Additionally, the Balaban index exhibits greater predictive capability compared to the predictive capacity of the Randic index. The above calculation provides numerical representations of the entropy that are calculated using these degree-based topological indices in Tables 4, 5, 6, 7 and graphical representations in Figs. 4, 5, 6, 7, 8, 9, 10, 11, 12,13, 14, 15, 16 and 17. As depicted in Figures, the values of these indices are directly proportional to the values of [mn], where [mn] is plotted along the x-axes, and the resulting entropy is plotted along the y-axes. These graphs reveal the differences between each entropy for these topological indices for a specific structure. The computational outcomes underscore that the estimates of degree-based indices are significantly influenced by the values of m and n, or in other words, by the molecular structure.

Rational curve fitting between heat of formation and entropy of their corresponding indices

In this part, we explain the ideas of Information Entropy and Heat of Formation (Enthalpy) of nickel(II) porphyrins (NiP). The standard molar enthalpy (HoF) of Porphyrins is +629.8 kjmole\(^{-1}\). The following is a mathematical formula to determine Heat of Formation (HOF) for various formula units:

$$\begin{aligned} HOF= & {} \frac{Standard\, \,Molar\, \,HOF}{Avogadro's\, \,Number}\times Formula\, \,Units \end{aligned}$$

Based on the characteristics of its chemical graph structure, this could offer us an effective technique to comprehend the molecular structure of Ni(II) porphyrins. The rational built-in function in MATLAB is used to create models between the Heat of Formation and each information entropy because it provides the lowest RMSE value, which indicates the best match. The Numerical Integrity of fit for entropy versus indices of Ni(II) porphyrins is depicted in Table 8. Enthalpy is a property or state function that resembles energy as a result, it has the same dimensions as energy and is measured in joules or ergs.

Table 8 Goodness of fit for HoF versus entropy of indices for nickel(II) porphyrins.
$$\begin{aligned} HoF(R_1)=\frac{p_1(R_1)^4+p_2(R_1)^3+p_3(R_1)^2+p_4(R_1)+p_5}{(R_1)^3 +q_1(R_1)^2+q_2(R_1)+q_3} \end{aligned}$$
(2)

Where mean 6.9049 and standard deviation 1.4121 are used to normalize the \(R_1\) and coefficient (with \(95\%\) confidence bounds) are given in Table 9 and graphical representation in Fig. 18.

Table 9 Rational curve fitting of HoF versus \(E_{R_1}\).
$$\begin{aligned} HoF(R_{-1})= \frac{p_1(R_{-1})^4+p_2(R_{-1})^3+p_3(R_{-1})^2+p_4(R_{-1}) +p_5}{(R_{-1})^3+q_1(R_{-1})^2+q_2(R_{-1})+q_3} \end{aligned}$$
(3)

Where mean 6.8993 and standard deviation 1.4096 are used to normalize the \(R_{-1}\) and coefficient (with \(95\%\) confidence bounds) are given in Table 10 graphical representation in Fig. 19.

Table 10 Rational curve fitting of HoF versus \(E_{R_{-1}}\).
$$\begin{aligned} HoF(R_{\frac{1}{2}})= \frac{p_1(R_{\frac{1}{2}})^4+p_2(R_{\frac{1}{2}})^3+p_3(R_{\frac{1}{2}})^2+p_4(R_{\frac{1}{2}})+p_5}{(R_{\frac{1}{2}})^3+q_1(R_{\frac{1}{2}})^2+q_2(R_{\frac{1}{2}})+q_3} \end{aligned}$$
(4)

Where mean 6.9703 and standard deviation 1.4035 are used to normalize the \(R_{\frac{1}{2}}\) and coefficient (with \(95\%\) confidence bounds) are given in Table 11 graphical representation in Fig. 20.

Table 11 Rational curve fitting of HoF versus \(E_{R_{\frac{1}{2}}}\).
$$\begin{aligned} HoF(R_{\frac{-1}{2}})= \frac{p_1(R_{\frac{-1}{2}})^5+p_2(R_{\frac{-1}{2}})^4 +p_3(R_{\frac{-1}{2}})^3+p_4(R_{\frac{-1}{2}})^2+ p_5(R_{\frac{-1}{2}})+p_6}{(R_{\frac{-1}{2}})^2+q_1(R_{\frac{-1}{2}})+q_2} \end{aligned}$$
(5)

Where mean 3.7052 and standard deviation 1.3669 are used to normalize the \(R_{\frac{-1}{2}}\) and coefficient (with \(95\%\) confidence bounds) are given in Table 12 and graphical representation in Fig. 21.

Table 12 Rational curve fitting of HoF versus \(E_{R_{\frac{-1}{2}}}\).
$$\begin{aligned} HoF(ABC)= \frac{p_1(ABC)^3+p_2(ABC)^2+p_3(ABC)+p4}{(ABC)^2+q_1(ABC)+q_2} \end{aligned}$$
(6)

Where mean 6.9573 and standard deviation 1.4080 are used to normalize the ABC and coefficient (with \(95\%\) confidence bounds) are given in Table 13 and graphical representation in Fig. 22.

Table 13 Rational curve fitting of HoF versus \(E_{ABC}\).
$$\begin{aligned} HoF(GA)=\frac{p_1(GA)^4+p_2(GA)^3+p_3(GA)^2+p_4(GA)+p_5}{(GA)^3+q_1(GA)^2 +q_2(GA)+q_3} \end{aligned}$$
(7)

Where mean 6.7215 and standard deviation 1.3927 are used to normalize the GA and coefficient (with \(95\%\) confidence bounds) are given in Table 14 and graphical representation in Fig. 23.

Table 14 Rational curve fitting of HoF versus \(E_{GA}\).
$$\begin{aligned} HoF(M_1)= \frac{p_1(M_1)^4+p_2(M_1)^3+p_3(M_1)^2+p_4(M_1)+p_5}{(M_1)^4+ q_1(M_1)^3+q_2(M_1)^2+q_3(M_1)+q_4} \end{aligned}$$
(8)

Where mean 6.9465 and standard deviation 1.4087 are used to normalize the \(M_1\) and coefficient (with \(95\%\) confidence bounds) and given in Table 15 and graphical representation in Fig. 24.

Table 15 Rational curve fitting of HoF versus \(E_{M_1}\).
$$\begin{aligned} HoF(M_2)= \frac{p_1(M_2)^4+p_2(M_2)^3+p_3(M_2)^2+p_4(M_2)+p_5}{(M_2)^3+ q_1(M_2)^2+q_2(M_2)+q_3} \end{aligned}$$
(9)

Where mean 6.9049 and standard deviation 1.4121 are used to normalize the \(M_2\) and coefficient (with \(95\%\) confidence bounds) are given in Table 16 and graphical representation in Fig. 25.

Table 16 Rational curve fitting of HoF versus \(E_{M_2}\).
$$\begin{aligned} HoF(HM)= \frac{p_1(HM)^4+p_2(HM)^3+p_3(HM)^2+p_4(HM)+p_5}{(HM)^4 +q_1(HM)^3+q_2(HM)^2+q_3(HM)+q_4} \end{aligned}$$
(10)

Where mean 6.9059 and standard deviation 1.4124 are used to normalize the HM and coefficient (with \(95\%\) confidence bounds) are given in Table 17 and graphical representation in Fig. 26.

Table 17 Rational curve fitting of HoF versus \(E_{HM}\).
$$\begin{aligned} HoF(F)= \frac{p_1(F)^4+p_2(F)^3+p_3(F)^2+p_4(F)+p_5}{(F)^3+q_1(F)^2+ q_2(F)+q_3} \end{aligned}$$
(11)

Where mean 6.9070 and standard deviation 1.4129 are used to normalize the F and coefficient (with \(95\%\) confidence bounds) are given in Table 18 and graphical representation in Fig. 27.

Table 18 Rational curve fitting of HoF versus \(E_{F}\).
$$\begin{aligned} HoF(AZI)= \frac{p_1(AZI)^4+p_2(AZI)^3+p_3(AZI)^2+p_4(AZI)+p_5}{(AZI)^2 +q_1(AZI)+q_2} \end{aligned}$$
(12)

Where mean 3.0450 and standard deviation 0.8447 are used to normalize the AZI and coefficient (with \(95\%\) confidence bounds) are given in Table 19 and graphical representation in Fig. 28.

Table 19 Rational curve fitting of HoF versus \(E_{AZI}\).
$$\begin{aligned} HoF(ReZG_1)=\frac{p_1(ReZG_1)^3+p_2(ReZG_1)^2+p_3(ReZG_1)+p_4}{(ReZG_1)^2+q_1(ReZG_1)+q_2} \end{aligned}$$
(13)

Where mean 6.9454 and standard deviation 1.4082 are used to normalize the \(ReZG_1\) and coefficient (with \(95\%\) confidence bounds) are given in Table 20 and graphical representation in Fig. 29.

Table 20 Rational curve fitting of HoF versus \(E_{ReZG_1}\).
$$\begin{aligned} HoF(ReZG_2)=\frac{p_1(ReZG_2)^3+p_2(ReZG_2)^2+p_3(ReZG_2) +p_4}{(ReZG_2)^2+q_1(ReZG_2)+q_2} \end{aligned}$$
(14)

Where mean 6.9460 and standard deviation 1.4086 are used to normalize the \(ReZG_2\) and coefficient (with \(95\%\) confidence bounds) are given in Table 21 and graphical representation in Fig. 30.

Table 21 Rational curve fitting of HoF versus \(E_{ReZG_2}\).
$$\begin{aligned} HoF(ReZG_3)=\frac{p_1(ReZG_3)^3+p_2(ReZG_3)^2+p_3(ReZG_3)+p_4}{ (ReZG_3)^2+q_1(ReZG_3)+q_2} \end{aligned}$$
(15)

Where mean 6.8433 and standard deviation 1.4179 are used to normalize the \(ReZG_3\) and coefficient (with \(95\%\) confidence bounds) are given in Table 22 and graphical representation in Fig. 31.

Table 22 Rational curve fitting of HoF versus \(E_{ReZG_3}\).
Figure 18
figure 18

Heat of formation (HoF) versus \(E_{R_1}\) of nickel(II) porphyrins.

Figure 19
figure 19

Heat of formation (HoF) versus \(E_{R_{\frac{1}{2}}}\) of nickel(II) porphyrins.

Figure 20
figure 20

Heat of formation (HoF) versus \(E_{R_{\frac{1}{2}}}\) of nickel(II) porphyrins.

Figure 21
figure 21

Heat of formation (HoF) versus \(E_{R_{\frac{-1}{2}}}\) of nickel(II) porphyrins.

Figure 22
figure 22

Heat of formation (HoF) versus \(E_{ABC}\) of nickel(II) porphyrins.

Figure 23
figure 23

Heat of formation (HoF) versus \(E_{GA}\) of nickel(II) porphyrins.

Figure 24
figure 24

Heat of formation (HoF) versus \(E_{M_1}\) of nickel(II) porphyrins.

Figure 25
figure 25

Heat of formation (HoF) versus \(E_{M_2}\) of nickel(II) porphyrins.

Figure 26
figure 26

Heat of formation (HoF) versus \(E_{HM}\) of nickel(II) porphyrins.

Figure 27
figure 27

Heat of formation (HoF) versus \(E_{F}\) of nickel(II) porphyrins.

Figure 28
figure 28

Heat of formation (HoF) versus \(E_{AZI}\) of nickel(II) porphyrins.

Figure 29
figure 29

Heat of formation (HoF) versus \(E_{ReZG_1}\) of nickel(II) porphyrins.

Figure 30
figure 30

Heat of formation (HoF) versus \(E_{ReZG_2}\) of nickel(II) porphyrins.

Figure 31
figure 31

Heat of formation (HoF) versus \(E_{ReZG_3}\) of nickel(II) porphyrins.

Curve fitting of entropy and topological indices can provide insight into the relationship between the structural characteristics of a compound and its thermodynamic and topological properties. This can be useful for predicting the properties of new compounds, understanding the behavior of known compounds, and guiding the design of new materials with desired properties. The heat of formation stands as one of the fundamental physicochemical properties inherent to substances and molecules. We look at the relationship between the heat of formation and the degree-based topological indices (along with their respective entropies) for the nickel(II) porphyrins Network’s corresponding crystal structure. A mathematical connection between the heat of formation and the indices (entropies) is depicted in the data or analysis Tables 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 and 22. The above tables and graphs in the study provide both numerical data and graphical representations that show how the heat of formation is correlated with degree-based topological indices(entropies).

Conclusion

First, we calculate numerical values for various degree-based topological indices, and next by using the Shanon entropy formula, we calculated entropies by using these indices. After that, we determined the entropy’s graphical behavior using MATLAB and calculated numerical values using Maple. Utilizing MATLAB software, the rational fitting approach was used since it offered the lowest root mean squared error or sum of squared error of all the built-in methods. The findings provide a thorough explanation of the Ni(II) porphyrins crystal structure and demonstrate a strong link between system dimensions and a variety of properties. This research can be used as a theoretical tool to support more effective essential alterations for certain usages by understanding how the characteristics of (NiP) are affected by its shape.