Vertices are created and managed by Graphs.
More...
#include <graph/graph/vertex.h>
Vertices are created and managed by Graphs.
See Graph for vertex creation.
Definition at line 63 of file vertex.h.
◆ const_iterator
◆ const_reference
◆ const_reverse_iterator
◆ iterator
◆ pointer
pointer is absent from MS Visual C++ / Intel Win32
Definition at line 74 of file vertex.h.
◆ reference
◆ reverse_iterator
◆ value_type
◆ ~Vertex()
virtual Vertex::~Vertex |
( |
| ) |
|
|
virtual |
◆ Vertex() [1/2]
Vertex::Vertex |
( |
std::string |
s | ) |
|
|
protected |
The programmer should not call the constructor.
- Parameters
-
s | syntactic attribute of the new vertex |
- See also
- Graph for creating vertices
◆ Vertex() [2/2]
Vertex::Vertex |
( |
const Vertex & |
x | ) |
|
|
protected |
The programmer should not call the copy constructor.
- Parameters
-
- See also
- Graph for creating vertices
◆ begin() [1/2]
Get the beginning of the edge collection.
- Returns
- an iterator pointing to the beginning of the edge collection
Definition at line 290 of file vertex.h.
References begin().
Referenced by begin(), and Edge::begin().
◆ begin() [2/2]
Get the beginning of the edge collection.
- Returns
- a const_iterator pointing to the beginning of the edge collection
Definition at line 306 of file vertex.h.
◆ cloneVertex()
virtual Vertex* Vertex::cloneVertex |
( |
| ) |
const |
|
protectedvirtual |
The programmer should not clone.
- Returns
- a copy of this vertex
- See also
- Graph for creating vertices
◆ edgesSize()
size_t Vertex::edgesSize |
( |
| ) |
const |
The edgesSize of a vertex is the number of attached edges.
- Returns
- the number of edges attached to the vertex
◆ edgesTo()
std::set<Edge*> Vertex::edgesTo |
( |
const Vertex * |
vertex | ) |
const |
Returns the edges linking this vertex to a given vertex.
- Parameters
-
- Returns
- the set of vertices for which this vertex is the source and vertex is the sink
◆ end() [1/2]
Get the end of the edge collection.
- Returns
- an iterator pointing to the end of the edge collection
Definition at line 298 of file vertex.h.
Referenced by Edge::end().
◆ end() [2/2]
Get the end of the edge collection.
- Returns
- a const_iterator pointing to the end of the edge collection
Definition at line 314 of file vertex.h.
◆ hasEdge()
bool Vertex::hasEdge |
( |
const Edge * |
edge | ) |
const |
Is a given edge attached to this vertex?
- Parameters
-
- Returns
- true if the edge is attached to this vertex
◆ inNeighbours()
std::set<Vertex*> Vertex::inNeighbours |
( |
| ) |
const |
Find the vertices for which this vertex is the sink.
- Returns
- the set of vertices for which this vertex is the sink
◆ neighbours()
std::set< Vertex * > Vertex::neighbours |
( |
| ) |
const |
|
inline |
◆ outNeighbours()
std::set<Vertex*> Vertex::outNeighbours |
( |
| ) |
const |
Find the vertices for which this vertex is the source.
- Returns
- the set of vertices for which this vertex is the source
◆ randomNeighbour()
Vertex* Vertex::randomNeighbour |
( |
| ) |
const |
Return a random neighbour (CAUTION! not perfectly random)
- Returns
- a random neighbour
◆ rbegin() [1/2]
Get the beginning of the reversed edge collection.
- Returns
- a reverse_iterator pointing to the beginning of the reversed edge collection
Definition at line 322 of file vertex.h.
◆ rbegin() [2/2]
Get the beginning of the reversed edge collection.
- Returns
- a const_reverse_iterator pointing to the end of the reversed edge collection
Definition at line 338 of file vertex.h.
◆ rend() [1/2]
Get the end of the reversed edge collection.
- Returns
- a reverse_iterator pointing to the end of the reversed edge collection
Definition at line 330 of file vertex.h.
◆ rend() [2/2]
Get the end of the reversed edge collection.
- Returns
- a const_reverse_iterator pointing to the end of the reversed edge collection
Definition at line 346 of file vertex.h.
◆ size() [1/2]
size_t Vertex::size |
( |
| ) |
const |
- Deprecated:
- {specialization deprecated because ambiguous: use edgeSize() for the number of edges.
In a future release, size() will return the number properties as it does in GenericObject}
◆ size() [2/2]
◆ Graph
export addEdge and removeEdge
Definition at line 241 of file vertex.h.
◆ GraphFactory
export the constructors
Definition at line 243 of file vertex.h.
The documentation for this class was generated from the following file: