Closed nshervt closed 5 years ago
nx.to_numpy_array(mol, weight='order')
should do what you want.
See also https://networkx.github.io/documentation/stable/reference/generated/networkx.convert_matrix.to_numpy_array.html#networkx.convert_matrix.to_numpy_array
Hello,
I was trying to use this code to find a graph representation for a given SMILE string. I tried
Apparently, this does not differ between single/double/triple bonds. Is there a way to enforce that? Thanks!