Chemical Descriptors Library: make_adjacency_matrix()
Make Adjacency Matrix

make_adjacency_matrix()

Prototype

  template <class VertexDescSymmMatrix, class Molecule>
  void make_adjacency_matrix  (VertexDescSymmMatrix& am, Molecule& m);

Arguments

ParameterDescriptionModels
am The adjacency matrix to be filled UBlas matrix. value_type = vertex_descriptor
m The molecule CDL molecule

Description

Fill the matrix with the adjacency matrix of the molecule. The matrix must be properly sized.

Definition

#include <morpho/cdl/molecule/algorithms/mol_algo.hpp>

Preconditions

am.size1() == am.size2() == m.num_atoms().

Complexity

O(E)

References



Copyright © Vladimir Josef Sykora & Morphochem AG 2003
Copyright © Vladimir Josef Sykora 2003-2006