31 #include "../../common/STLUtils.h" 32 #include "../../datatype/AbstractData.h" void setAttributeVecSize(int size)
This function is used to set the number of attributes associated with the vertex elements.
bool m_new
Flag used to indicate if this element is a new one.
bool isDirty()
Used to verify the vertex state.
std::set< int > & getPredecessors()
Returns the Predecessors vector.
void removeAttribute(int idx)
Remove a attribute associated with this element.
bool isNew()
Flag used to indicate that this element was a new one.
std::vector< te::dt::AbstractData * > & getAttributes()
It returns the vector of attributes associated with this element.
Vertex(int id, bool isNew=true)
Constructor.
std::set< int > m_predecessors
List of all input edges (used in bidirectional graph).
From the point of view of graph theory, vertices are treated as featureless and indivisible objects...
std::vector< te::dt::AbstractData * > m_attrs
This is the list of all vertex attributes.
bool m_dirty
Flag used to indicate that vertex was changed.
void setDirty(bool flag)
Flag used to indicate that this element was changed.
A base class for values that can be retrieved from the data access module.
std::set< int > & getSuccessors()
Returns the Successors vector.
From the point of view of graph theory, vertices are treated as featureless and indivisible objects...
~Vertex()
Default destructor.
std::set< int > & getNeighborhood()
Returns the Neighborhood vector.
int m_vertexId
This is the vertex unique identifier.
int getId()
It returns the vertex id.
void addAttribute(int idx, te::dt::AbstractData *ad)
Add a new attribute to this element.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
std::set< int > m_successors
List of all output edges (used in directional graph).
std::set< int > m_neighborhood
List of all neighbors edges (used in undirectional graph).