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 297 of file vertex.h.
 
 
◆ 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 
 
 
◆ 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 305 of file vertex.h.
 
 
◆ 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 | 
 
Same as outNeighbours. 
Still don't know why it works with directed edges! 
Definition at line 361 of file vertex.h.
References outNeighbours().
 
 
◆ 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 
 
 
◆ 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.
 
 
◆ 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.
 
 
◆ 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 | 
      
 
- 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} 
References __attribute__, and __deprecated__.
 
 
◆ size() [2/2]
◆ type()
  
  | 
        
          | virtual std::string Vertex::type | ( |  | ) | const |  | inlinevirtual | 
 
 
◆ Graph
export addEdge and removeEdge 
Definition at line 248 of file vertex.h.
 
 
◆ GraphFactory
export the constructors 
Definition at line 250 of file vertex.h.
 
 
The documentation for this class was generated from the following file: