te::graph::AddDeepAttribute Class Reference

This class defines a function used to add to a graph the deep information attribute. More...

#include <AddDeepAttribute.h>

Public Member Functions

 AddDeepAttribute (te::graph::BidirectionalGraph *graph, std::string attributeName)
 Default constructor. More...
 
virtual ~AddDeepAttribute ()
 Virtual destructor. More...
 

Protected Member Functions

void calculateDeepValue (te::graph::Vertex *v, te::graph::BidirectionalGraph *g, int &deepValue, std::set< int > &vertexIdSet)
 Recursive function used to calculate the deep attribute. More...
 

Detailed Description

This class defines a function used to add to a graph the deep information attribute.

Definition at line 53 of file AddDeepAttribute.h.

Constructor & Destructor Documentation

te::graph::AddDeepAttribute::AddDeepAttribute ( te::graph::BidirectionalGraph graph,
std::string  attributeName 
)

Default constructor.

Parameters
graphPointer to a bidirectional graph
attributeNameThe name used to represent the deep attribute
virtual te::graph::AddDeepAttribute::~AddDeepAttribute ( )
virtual

Virtual destructor.

Member Function Documentation

void te::graph::AddDeepAttribute::calculateDeepValue ( te::graph::Vertex v,
te::graph::BidirectionalGraph g,
int &  deepValue,
std::set< int > &  vertexIdSet 
)
protected

Recursive function used to calculate the deep attribute.

Parameters
vCurrent vertex in processing
gThe bidirection graph
deepValueCurrent value for deep attribute calculated
vertexIdSetThe set of vertex already visited

The documentation for this class was generated from the following file: