We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
has_bond
1 parent 1a9a8cf commit 2605f8fCopy full SHA for 2605f8f
src/lib.rs
@@ -861,6 +861,12 @@ impl PyMolecule {
861
self.inner.remove_bond(i, j);
862
}
863
864
+ /// Returns true if the molcule contains bond between atom `i` and `j`
865
+ #[pyo3(text_signature = "($self, i, j, /)")]
866
+ pub fn has_bond(&self, i: usize, j: usize) -> bool {
867
+ self.inner.has_bond(i, j)
868
+ }
869
+
870
/// Return all directly bonded atoms in serial numbers with atom `n`.
871
#[pyo3(text_signature = "($self, n)")]
872
pub fn connected(&self, n: usize) -> Vec<usize> {
0 commit comments