18#ifndef LIMA_SYNTACTICANALYSIS_DEPENDENCYGRAPH_H
19#define LIMA_SYNTACTICANALYSIS_DEPENDENCYGRAPH_H
28#include <boost/graph/adjacency_list.hpp>
63typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS,
79typedef boost::property_map<DependencyGraph, boost::vertex_color_t >::type
87inline bool operator<(
const std::pair<DependencyGraphVertex, DependencyGraphVertex>& e1,
88 const std::pair<DependencyGraphVertex, DependencyGraphVertex>& e2)
90 return ( (e1.first < e2.first) || (e1.first == e2.first && e1.second < e2.second) );
94namespace LinguisticProcessing {
95namespace SyntacticAnalysis {
97#define SAPLOGINIT LOGINIT("LP::SyntacticAnalysis::Deps")
Lima::Common::MediaticData::SyntacticRelationId DepRelTypeProp
Property to identify the chain of the tokens graph concerned by the relation.
bool operator<(const std::pair< DependencyGraphVertex, DependencyGraphVertex > &e1, const std::pair< DependencyGraphVertex, DependencyGraphVertex > &e2)
Comparison operator to order pairs of dependency graph vertices.
DependencyGraph::edge_iterator DependencyGraphEdgeIt
DependencyGraph::edge_descriptor DependencyGraphEdge
typedefs to simplify the acces to various graphs elements
boost::property< edge_deprel_type_t, DepRelTypeProp > DepRelTypeProperty
DependencyGraph::in_edge_iterator DependencyGraphInEdgeIt
DependencyGraph::vertex_iterator DependencyGraphVertexIt
DependencyGraph::adjacency_iterator DependencyGraphAdjacencyIt
DependencyGraph::out_edge_iterator DependencyGraphOutEdgeIt
boost::property_map< DependencyGraph, edge_deprel_type_t >::type EdgeDepRelTypePropertyMap
VertexDependencyGraphColorProperty DepVertexProperties
Final declaration of the vertices properties.
DependencyGraph::vertex_descriptor DependencyGraphVertex
boost::property< boost::vertex_color_t, boost::default_color_type > VertexDependencyGraphColorProperty
Default color property to use in various algorithms.
boost::property_map< DependencyGraph, edge_deprel_type_t >::const_type CEdgeDepRelTypePropertyMap
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, DepVertexProperties, DepEdgeProperties > DependencyGraph
The dependency graph class.
DepRelTypeProperty DepEdgeProperties
Final declaration of the edges properties.
boost::property_map< DependencyGraph, boost::vertex_color_t >::type VertexColorDepGraphPropertyMap
A graph structure for linguistic analysis.
BOOST_INSTALL_PROPERTY(vertex, text)