Statistics
| Branch: | Revision:

root / custompackages / graph-parser / src / utility.h @ ee0dd796

History | View | Annotate | Download (1.01 KB)

1
//
2
// Created by quynh on 12/15/15.
3
//
4

    
5
#ifndef GRAPH_PARSER_UTILITY_H
6
#define GRAPH_PARSER_UTILITY_H
7

    
8
#include <iostream>
9
#include <boost/graph/graph_traits.hpp>
10
#include <boost/graph/undirected_graph.hpp>
11
#include <boost/spirit/include/karma.hpp>
12
#include <boost/graph/iteration_macros.hpp>
13
#include "common.h"
14

    
15

    
16

    
17
void printGraph(Graph &g);
18

    
19
namespace outops {
20
    std::ostream& operator<<(std::ostream& os, const Graph& g);
21
    std::ostream& operator<<(std::ostream& os, const std::set<std::string>& s);
22
}
23

    
24
namespace outopserror {
25
    template <typename T>
26
    std::ostream& operator<<(std::ostream& os, const std::set<T>& s);
27
}
28

    
29
// non-member functions operating on Graph datatype.
30
namespace graphext {
31
    void id_of_vertices(const Graph& g, std::set<std::string>& r);
32

    
33
    // template <typename Container>
34
    // void id_of_vertices(const Graph& g, const Container& container, std::set<std::string>& r);
35
    void id_of_vertices(const Graph& g, const VertexVec& container, std::set<std::string>& r);
36
}
37
#endif //GRAPH_PARSER_UTILITY_H