sknano.core.atoms.Bonds

class sknano.core.atoms.Bonds(bonds=None, copylist=True, deepcopy=False)[source][source]

Base class for collection of atom Bonds.

Parameters:

bonds : {None, sequence, Bonds}, optional

if not None, then a list of Bond instance objects

copylist : bool, optional

perform shallow copy of bonds list

deepcopy : bool, optional

perform deepcopy of bonds list

Attributes

Nbonds Number of Bonds in Bonds.
angles numpy.ndarray of Bond pair angles.
atoms Atoms set in Bonds.
bond_angle_pairs cyclic_pairs of Bonds.
lengths numpy.ndarray of lengths.
mean_angle Mean bond angle.
mean_length Mean bond length.
unit_vectors numpy.ndarray of unit_vectors.
vectors numpy.ndarray of vectors.

Methods

append(item)
clear()
copy()
count(item)
extend(other)
index(item, *args)
insert(i, item)
pop([i])
remove(item)
reverse()
sort([key, reverse])