/**
* @file tests/boost_graph/graph_defs.hpp
* @author The PARADEVS Development Team
* See the AUTHORS or Authors.txt file
*/
/*
* PARADEVS - the multimodeling and simulation environment
* This file is a part of the PARADEVS environment
*
* Copyright (C) 2013-2015 ULCO http://www.univ-litoral.fr
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#ifndef __TESTS_BOOST_GRAPH_GRAPH_DEFS_HPP
#define __TESTS_BOOST_GRAPH_GRAPH_DEFS_HPP 1
#include
namespace paradevs { namespace tests { namespace boost_graph {
struct VertexProperties
{
int _index;
double _weight;
int _type;
VertexProperties() : _index(0), _weight(0), _type(0)
{ }
VertexProperties(int index, double weight, int type) :
_index(index), _weight(weight), _type(type)
{ }
VertexProperties(const VertexProperties& vp) :
_index(vp._index), _weight(vp._weight), _type(vp._type)
{ }
};
struct EdgeProperties
{
double _weight;
EdgeProperties() : _weight(0)
{ }
EdgeProperties(double weight) : _weight(weight)
{ }
};
typedef boost::adjacency_list < boost::vecS,
boost::vecS,
boost::bidirectionalS,
VertexProperties,
EdgeProperties > OrientedGraph;
typedef boost::adjacency_list < boost::vecS,
boost::vecS,
boost::undirectedS,
VertexProperties,
EdgeProperties > UnorientedGraph;
} } } // namespace paradevs tests boost_graph
#endif