34 #ifndef GRAPH_GRAPH_VERTEX_H 35 #define GRAPH_GRAPH_VERTEX_H 43 #ifndef GRAPH_GRAPH_GRAPHOBJECT_H 67 typedef std::set<Edge*> ESet;
101 #ifndef AIMS_GRAPH_SIZE_NO_DEPREC_WARNING 103 "the number of edges. In a future release, size() will return the " 104 "number properties as it does in GenericObject")))
110 size_t edgesSize()
const;
116 bool hasEdge(
const Edge* edge)
const;
123 std::set<Edge*> edgesTo(
const Vertex* vertex)
const;
148 const_iterator begin()
const;
154 const_iterator end()
const;
160 reverse_iterator rbegin();
166 reverse_iterator rend();
172 const_reverse_iterator rbegin()
const;
178 const_reverse_iterator rend()
const;
190 std::set<Vertex*> neighbours()
const;
195 std::set<Vertex*> inNeighbours()
const;
200 std::set<Vertex*> outNeighbours()
const;
205 Vertex* randomNeighbour()
const;
232 virtual Vertex * cloneVertex()
const;
259 void addEdge(
Edge* edge);
265 void removeEdge(
Edge* edge);
295 return _edges.begin();
311 return _edges.begin();
327 return _edges.rbegin();
335 return _edges.rend();
343 return _edges.rbegin();
351 return _edges.rend();
359 return outNeighbours();
#define DECLARE_GENERIC_OBJECT_TYPE(T)
#define __deprecated__(msg)
iterator end()
Get the end of the edge collection.
std::set< Vertex * > neighbours() const
Same as outNeighbours.
The base class for graphs.
iterator begin()
Get the beginning of the edge collection.
ESet::reference reference
ESet::pointer pointer
pointer is absent from MS Visual C++ / Intel Win32
reverse_iterator rend()
Get the end of the reversed edge collection.
The abstract base class for all types of edges; edges are created and managed by Graphs.
ESet::const_iterator const_iterator
ESet::const_reference const_reference
Default abstract factory for graphs.
ESet::const_reverse_iterator const_reverse_iterator
The abstract base class for graphs, vertices and edges.
reverse_iterator rbegin()
Get the beginning of the reversed edge collection.
ESet::value_type value_type
ESet::reverse_iterator reverse_iterator
Vertices are created and managed by Graphs.