Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the Balaban J index of an undirected graph or a molecule
ResourceFunction["BalabanJ"][g] computes the Balaban J index of the graph g. | |
ResourceFunction["BalabanJ"][mol] computes the Balaban J index of the Molecule expression mol. |
The Balaban index of a Petersen graph:
In[1]:= |
Out[1]= |
Get the same result from GraphData:
In[2]:= |
Out[2]= |
Compute the Balaban indices of the order-1 buckyball graph of different classes:
In[3]:= |
Out[3]= |
Compute the Balaban indices of two different molecules:
In[4]:= |
Out[4]= |
Compute the Balaban index of a named entity:
In[5]:= |
Out[5]= |
Compute the Balaban index of the Balaban graph:
In[6]:= |
Out[6]= |
By default, hydrogens are ignored in the computation of the Balaban index:
In[7]:= |
Out[7]= |
Use IncludeHydrogens→All to account for hydrogens:
In[8]:= |
Out[8]= |
A list of straight-chain alkanes:
In[9]:= |
Get their corresponding boiling points:
In[10]:= |
Out[10]= |
Get their Balaban indices:
In[11]:= |
Out[11]= |
The Balaban index is strongly correlated with the logarithm of the boiling point. Visualize the trend:
In[12]:= |
Out[12]= |
Compute the correlation coefficient:
In[13]:= |
Out[13]= |
Generate all alkanes with 7 carbon atoms (heptanes) using the resource function AlkaneIsomers:
In[14]:= |
Out[14]= |
The Balaban index can be interpreted as a measure of the amount of branching within an isomeric set of alkanes. Sort the heptane isomers by their Balaban index:
In[15]:= |
Out[15]= |
The Balaban index of a disconnected graph is 0:
In[16]:= |
Out[16]= |
Wolfram Language 12.3 (May 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License