34 #ifndef GRAPH_GRAPH_EDGE_H 
   35 #define GRAPH_GRAPH_EDGE_H 
   43 #ifndef GRAPH_GRAPH_GRAPHOBJECT_H 
  144         bool hasVertex(
const Vertex* vertex) 
const;
 
  210     virtual std::string 
type() const CARTO_OVERRIDE
 
  312         return _vertices[0] == vertex || _vertices[1] == vertex;
 
  320         return _vertices.
begin();
 
  328         return _vertices.
end();
 
  336         return _vertices.
begin();
 
  344         return _vertices.
end();
 
  352         return _vertices.
rbegin();
 
  360         return _vertices.
rend();
 
  368         return _vertices.
rbegin();
 
  376         return _vertices.
rend();
 
The abstract base class for all types of edges; edges are created and managed by Graphs.
iterator begin()
Get the beginning of the vertex collection of the graph.
VSet::reverse_iterator reverse_iterator
virtual bool isDirected() const =0
Is this edge directed?
virtual Edge * cloneEdge() const =0
The programmer should not clone.
Edge(const Edge &x)
The programmer should not call the copy constructor.
iterator end()
Get the end of the vertex collection of the graph.
VSet::const_iterator const_iterator
Edge(std::string s)
The programmer should not call the constructor.
size_t verticesSize() const
number of vertices
reverse_iterator rend()
Get the end of the reversed vertex collection of the graph.
VSet::reference reference
virtual bool isUndirected() const =0
Is this edge undirected?
reverse_iterator rbegin()
Get the beginning of the reversed vertex collection of the graph.
virtual std::string type() const CARTO_OVERRIDE
VSet::value_type value_type
bool hasVertex(const Vertex *vertex) const
Does this edge contain a given vertex?
VSet::const_reference const_reference
VSet::const_reverse_iterator const_reverse_iterator
The abstract base class for graphs, vertices and edges.
The base class for graphs.
void removeVertex(Vertex *vertex)
Delete and remove a vertex from the graph.
Vertices are created and managed by Graphs.
#define DECLARE_GENERIC_OBJECT_TYPE(T)
reverse_iterator rbegin()
std::reverse_iterator< const_iterator > const_reverse_iterator
const_pointer const_iterator
const value_type & const_reference
std::reverse_iterator< iterator > reverse_iterator