Vertices are created and managed by Graphs.
More...
#include <graph/graph/vertex.h>
|
| virtual | ~Vertex () |
| |
| | Vertex (std::string s) |
| | The programmer should not call the constructor.
|
| |
| | Vertex (const Vertex &x) |
| | The programmer should not call the copy constructor.
|
| |
| virtual Vertex * | cloneVertex () const |
| | The programmer should not clone.
|
| |
|
| size_t | size () const __attribute__((__deprecated__("use edgesSize() for " "the number of edges. In a future release |
| |
| size_t | size () will return the " "number properties as it does in GenericObject"))) |
| |
| size_t | edgesSize () const |
| | The edgesSize of a vertex is the number of attached edges.
|
| |
| bool | hasEdge (const Edge *edge) const |
| | Is a given edge attached to this vertex?
|
| |
| std::set< Edge * > | edgesTo (const Vertex *vertex) const |
| | Returns the edges linking this vertex to a given vertex.
|
| |
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 |
◆ Vertex() [2/2]
| Vertex::Vertex |
( |
const Vertex & | x | ) |
|
|
protected |
The programmer should not call the copy constructor.
- Parameters
-
- See also
- Graph for creating vertices
References Vertex().
◆ begin() [1/2]
Get the beginning of the edge collection.
- Returns
- an iterator pointing to the beginning of the edge collection
Definition at line 297 of file vertex.h.
Referenced by edgesTo().
◆ 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 313 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
References Vertex().
◆ 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 |
◆ end() [1/2]
Get the end of the edge collection.
- Returns
- an iterator pointing to the end of the edge collection
Definition at line 305 of file vertex.h.
Referenced by edgesTo().
◆ 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 321 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
Referenced by neighbours().
◆ randomNeighbour()
| Vertex * Vertex::randomNeighbour |
( |
| ) |
const |
Return a random neighbour (CAUTION!
not perfectly random)
- Returns
- a random neighbour
References Vertex().
◆ 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 329 of file vertex.h.
Referenced by edgesTo().
◆ 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 345 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 337 of file vertex.h.
Referenced by edgesTo().
◆ 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 353 of file vertex.h.
◆ size() [1/2]
| size_t Vertex::size |
( |
| ) |
const |
◆ size() [2/2]
◆ type()
| virtual std::string Vertex::type |
( |
| ) |
const |
|
inlinevirtual |
◆ Graph
export addEdge and removeEdge
Definition at line 248 of file vertex.h.
References Graph.
Referenced by Graph.
◆ GraphFactory
The documentation for this class was generated from the following file: