PGROUTING  3.1
pgr_costFlowGraph.hpp
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: pgr_costFlowGraph.hpp
3 
4 Copyright (c) 2015 pgRouting developers
5 Mail: project@pgrouting.org
6 
7 Copyright (c) 2018 Maoguang Wang
8 Mail: xjtumg1007@gmail.com
9 
10 ------
11 
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16 
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21 
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 
26  ********************************************************************PGR-GNU*/
27 
28 #ifndef INCLUDE_MAX_FLOW_PGR_COSTFLOWGRAPH_HPP_
29 #define INCLUDE_MAX_FLOW_PGR_COSTFLOWGRAPH_HPP_
30 #pragma once
31 
32 #include <boost/config.hpp>
33 #include <boost/graph/adjacency_list.hpp>
34 
35 
36 namespace pgrouting {
37 
38 typedef boost::adjacency_list_traits<boost::vecS, boost::vecS, boost::directedS>
40 typedef boost::adjacency_list < boost::vecS, boost::vecS, boost::directedS,
41  boost::no_property,
42  boost::property < boost::edge_capacity_t, double,
43  boost::property < boost::edge_residual_capacity_t, double,
44  boost::property < boost::edge_reverse_t,
45  Traits::edge_descriptor,
46  boost::property < boost::edge_weight_t, double>
47  >
48  >
50 typedef boost::property_map < CostFlowGraph, boost::edge_capacity_t >::type
52 typedef boost::property_map < CostFlowGraph,
53  boost::edge_residual_capacity_t >::type ResidualCapacity;
54 typedef boost::property_map < CostFlowGraph,
55  boost::edge_weight_t >::type Weight;
56 typedef boost::property_map < CostFlowGraph,
57  boost::edge_reverse_t >::type Reversed;
58 
59 } // namespace pgrouting
60 
61 #endif // INCLUDE_MAX_FLOW_PGR_COSTFLOWGRAPH_HPP_
boost::property_map< CostFlowGraph, boost::edge_weight_t >::type Weight
boost::adjacency_list< boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::property< boost::edge_capacity_t, double, boost::property< boost::edge_residual_capacity_t, double, boost::property< boost::edge_reverse_t, Traits::edge_descriptor, boost::property< boost::edge_weight_t, double > > > > > CostFlowGraph
boost::adjacency_list_traits< boost::vecS, boost::vecS, boost::directedS > Traits
Book keeping class for swapping orders between vehicles.
boost::property_map< CostFlowGraph, boost::edge_capacity_t >::type Capacity
boost::property_map< CostFlowGraph, boost::edge_reverse_t >::type Reversed
boost::property_map< CostFlowGraph, boost::edge_residual_capacity_t >::type ResidualCapacity