Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (860 Bytes)

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

    
22
    template <typename T>
23
    std::ostream& operator<<(std::ostream& os, const std::set<T>& s);
24
}
25

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

    
30
    template <typename Container>
31
    void id_of_vertices(const Graph& g, const Container& container, std::set<std::string>& r);
32
}
33

    
34

    
35

    
36
#include "utility.tpp"
37

    
38
#endif //GRAPH_PARSER_UTILITY_H
39