dsalglib  1.0.0
dsalglib is a ready to use data structures and algorithms library written in C++ . Object Oriented Template implementations are written.
Classes | Public Member Functions | List of all members
dsa::graph< type > Class Template Reference

#include <graph.h>

Public Member Functions

 graph ()
 
bool add_vertex (type param)
 
bool add_arc (type from, type to, long long int weight=0)
 
bool dfstraverse (type param, void(fun)(type obj))
 
bool bfstraverse (type param, void(fun)(type obj))
 
bool remove_vertex (type param)
 

Detailed Description

template<class type>
class dsa::graph< type >

Definition at line 16 of file graph.h.

Constructor & Destructor Documentation

template<class type >
dsa::graph< type >::graph ( )
inline

Definition at line 87 of file graph.h.

Member Function Documentation

template<class type >
bool dsa::graph< type >::add_arc ( type  from,
type  to,
long long int  weight = 0 
)
inline

Definition at line 105 of file graph.h.

template<class type >
bool dsa::graph< type >::add_vertex ( type  param)
inline

Definition at line 93 of file graph.h.

template<class type >
bool dsa::graph< type >::bfstraverse ( type  param,
void(fun)(type obj)   
)
inline

Definition at line 156 of file graph.h.

template<class type >
bool dsa::graph< type >::dfstraverse ( type  param,
void(fun)(type obj)   
)
inline

Definition at line 127 of file graph.h.

template<class type >
bool dsa::graph< type >::remove_vertex ( type  param)
inline

Definition at line 185 of file graph.h.


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