Installation
API Reference
dgllife.utils.
atom_degree
Get the degree of an atom.
Note that the result will be different depending on whether the Hs are explicitly modeled in the graph.
atom (rdkit.Chem.rdchem.Atom) – RDKit atom instance.
List containing one int only.
list
See also
atom_degree_one_hot(), atom_total_degree(), atom_total_degree_one_hot()
atom_degree_one_hot()
atom_total_degree()
atom_total_degree_one_hot()