/* * PotentialSubgraph.hpp * * Created on: Oct 3, 2016 * Author: heber */ #ifndef POTENTIALS_POTENTIALSUBGRAPH_HPP_ #define POTENTIALS_POTENTIALSUBGRAPH_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include "Potentials/Subgraph/SubgraphEdge.hpp" /** This class contains the specific definition of a subgraph that a specific * empirical potential models. Note that the graph is undirected. */ class PotentialSubgraph { public: PotentialSubgraph(); ~PotentialSubgraph(); /** Adds an edge to the subgraph. * *\param _edge edge to add */ void add_edge(const SubgraphEdge &_edge) { edges.push_back(_edge); } /** Const getter for the edge set of the subgraph. * */ const edges_t & getEdges() const { return edges; } private: typedef std::vector edges_t; edges_t edges; }; #endif /* POTENTIALS_POTENTIALSUBGRAPH_HPP_ */