IMP
2.2.1
The Integrative Modeling Platform
|
Represent a bond graph as a boost graph. More...
#include <IMP/atom/bond_graph.h>
Public Member Functions | |
BondGraph (Hierarchy bd) | |
The graph is on the leaves of the atom::Hierarchy. More... | |
Bond | get_bond (edge_descriptor d) const |
Property maps | |
Boost.Graph makes extensive use of property maps. We define a few maps which use the particle attributes to store their data. Each map is constructed by passing an appropriate attribute key, to specify the attribute used to store the data. Attempt to store to an attribute which the particle does not already have adds the attribute to the particle. More information about property maps can be found in the Boost.PropertyMap documentation. | |
VertexFloatPropertyMap | |
Provide boost access to a Float attribute each vertex. | |
VertexIntPropertyMap | |
Provide boost access to an Int attribute each vertex. | |
VertexVertexPropertyMap | |
Provide boost access to a kernel::Particle attribute each vertex. More... | |
EdgeFloatPropertyMap | |
Provide boost access to a Float attribute on the edges such as length. | |
EdgeIntPropertyMap | |
Provide boost access to an Int attribute on each edge. | |
VertexIntPropertyMap | get_vertex_index_map () const |
The BondGraph class implements the following boost graph concepts
See the Boost.Graph manual for more details and a list of algorithms.
The vertices are Bondeds. The type of the edge_descriptors is internal. You can use the get_bond() method to get the corresponding Bond.
And all vertices can be assumed to have internal boost vertex indices. The Boost.PropertyMap to access these can be accessed using the get_vertex_index_map() function.
Some usage examples
Definition at line 58 of file bond_graph.h.
IMP::atom::BondGraph::BondGraph | ( | Hierarchy | bd | ) |
All the leaves will be made Bonded particles if they are not already.
IMP::atom::BondGraph::VertexVertexPropertyMap |
The particles in question must be Bonded particles.
Definition at line 108 of file bond_graph.h.