QSapecNG
 All Classes Functions Enumerations Properties
graph.h
00001 /*
00002     SapecNG - Next Generation Symbolic Analysis Program for Electric Circuit
00003     Copyright (C) 2009, Michele Caini
00004 
00005     This program is free software: you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation, either version 3 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 #ifndef GRAPH_H
00021 #define GRAPH_H
00022 
00023 
00024 #include "boost-sapecng/edge_properties.hpp"
00025 #include <boost/graph/adjacency_list.hpp>
00026 
00027 
00028 namespace sapecng
00029 {
00030 
00031 
00032 enum EdgeType
00033 {
00034   YREF, GREF,
00035   Z, Y, F,
00036 };
00037 
00038 
00039 typedef
00040 boost::adjacency_list
00041   <
00042     boost::vecS,        // OutEdgeList
00043     boost::vecS,        // VertexList
00044     boost::undirectedS, // Directed
00045     boost::no_property, // VertexProperties
00046     boost::property< boost::edge_type_t, EdgeType,
00047       boost::property< boost::edge_name_t, std::string,
00048       boost::property< boost::edge_weight_t, double,
00049       boost::property< boost::edge_degree_t, int,
00050       boost::property< boost::edge_symbolic_t, bool,
00051       boost::property< boost::edge_any_t, std::map< std::string, std::string >
00052         > > > > > >,    // EdgeProperties
00053     boost::no_property, // GraphProperties
00054     boost::listS        // EdgeList
00055   >
00056 Graph
00057 ;
00058 
00059 
00060 }
00061 
00062 
00063 #endif // GRAPH_H
 All Classes Functions Enumerations Properties