COIN-OR::LEMON - Graph Library

Ticket #539: lemon_c11.h

File lemon_c11.h, 700 bytes (added by fabianh, 10 years ago)
Line 
1/*
2 * lemon_c11.h
3 *
4 *  Created on: 09.12.2014
5 *      Author: fabian
6 */
7
8#ifndef SRC_LEMON_C11_H_
9#define SRC_LEMON_C11_H_
10
11#include <lemon/list_graph.h>
12
13using namespace lemon;
14
15namespace std
16{
17ListDigraph::NodeIt begin(ListDigraph &g)
18{
19        return ListDigraph::NodeIt(g);
20}
21
22ListDigraph::NodeIt end(ListDigraph &g)
23{
24        return INVALID;
25}
26
27ListGraph::NodeIt begin(ListGraph &g)
28{
29        return ListGraph::NodeIt(g);
30}
31
32ListGraph::NodeIt end(ListGraph &g)
33{
34        return INVALID;
35}
36}
37
38ListDigraph::Node operator*(ListDigraph::NodeIt &it)
39{
40        return static_cast<ListDigraph::Node>(it);
41}
42
43ListGraph::Node operator*(ListGraph::NodeIt &it)
44{
45        return static_cast<ListGraph::Node>(it);
46}
47
48#endif /* SRC_LEMON_C11_H_ */