to_smiles
¶
Converts a GraphData with the features of
from_smiles() to a (canonical, isomeric) SMILES string, as PyG's
to_smiles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
GraphData
|
The molecular graph. |
required |
kekulize
|
bool
|
Whether to convert the aromatic bonds to single and double
bonds. Default: |
False
|
Returns:
| Type | Description |
|---|---|
str
|
The SMILES string. |
Source code in mlx_graphs/utils/smiles.py
from mlx_graphs.utils import to_smiles · mlx_graphs/utils/smiles.py