dgllife.utils.atom_degree

dgllife.utils.atom_degree(atom)[source]

Get the degree of an atom.

Note that the result will be different depending on whether the Hs are explicitly modeled in the graph.

Parameters

atom (rdkit.Chem.rdchem.Atom) – RDKit atom instance.

Returns

List containing one int only.

Return type

list