|
template<typename IS , typename Graph > |
void | readGraphRmfRandomOrder (Graph &g, int seed, IS &in) |
| Read a graph in RMF format. More...
|
|
template<typename IS , typename Graph > |
void | readGraphGraRandomOrder (Graph &g, int seed, IS &in) |
| Read a graph in GRA format. More...
|
|
template<typename IS = std::istream, typename Graph = lemon::SmartGraph> |
void | readGraphRandomOrder (Graph &g, int seed=0, GraphFormat f=RMF, IS &in=std::cin) |
| Read a graph in random order. More...
|
|
template<typename IS = std::istream, typename Graph = lemon::SmartGraph> |
void | readGraph (Graph &g, GraphFormat f=RMF, IS &in=std::cin) |
| Read a graph. More...
|
|
template<typename Graph > |
int | degree (const Graph &g, const typename Graph::Node &v) |
| Degree of a vertex. More...
|
|
template<typename Graph > |
int | maxDegree (const Graph &g) |
| Maximum degree of a graph. More...
|
|
template<typename T > |
int | posMax (const std::vector< T > &v) |
| Index of the maximum position. More...
|
|
std::vector< int > | nonNegative (const std::vector< int > &v) |
| Vector of non-negative indices. More...
|
|
Namespace for util functions and classes.
Namespace for functions and classes which are not strictly related to the MinLCA problem.
template<typename IS , typename Graph >
void minlca::utils::readGraphGraRandomOrder |
( |
Graph & |
g, |
|
|
int |
seed, |
|
|
IS & |
in |
|
) |
| |
Read a graph in GRA format.
Reads a graph in GRA format and allows randomising the order of adding the vertices to the data structure. When the seed
is 0, vertex order is not randomised
- Parameters
-
g | Graph where to save the input |
seed | Random seed to order the vertices |
in | Input stream |
Definition at line 77 of file graph_utils.hh.
template<typename IS , typename Graph >
void minlca::utils::readGraphRmfRandomOrder |
( |
Graph & |
g, |
|
|
int |
seed, |
|
|
IS & |
in |
|
) |
| |
Read a graph in RMF format.
Reads a graph in RMF format and allows randomising the order of adding the vertices to the data structure. When the seed
is 0, vertex order is not randomised
- Parameters
-
g | Graph where to save the input |
seed | Random seed to order the vertices |
in | Input stream |
Definition at line 31 of file graph_utils.hh.