|
andres::graph
|
Complete graph. More...
#include <complete-graph.hxx>
Public Types | |
| typedef VISITOR | Visitor |
| typedef Adjacency | AdjacencyType |
Public Member Functions | |
| CompleteGraph (const Visitor &=Visitor()) | |
| Construct a complete graph. | |
| CompleteGraph (const std::size_t, const Visitor &=Visitor()) | |
| Construct a complete graph with an initial number of vertices. | |
| void | assign (const Visitor &=Visitor()) |
| Clear a complete graph. | |
| void | assign (const std::size_t, const Visitor &=Visitor()) |
| Clear a complete graph with an initial number of vertices. | |
| VertexIterator | verticesFromVertexBegin (const std::size_t) const |
| Get an iterator to the beginning of the sequence of vertices reachable from a given vertex via a single edge. | |
| VertexIterator | verticesFromVertexEnd (const std::size_t) const |
| Get an iterator to the end of the sequence of vertices reachable from a given vertex via a single edge. | |
| VertexIterator | verticesToVertexBegin (const std::size_t) const |
| Get an iterator to the beginning of the sequence of vertices from which a given vertex is reachable via a single edge. | |
| VertexIterator | verticesToVertexEnd (const std::size_t) const |
| Get an iterator to the end of the sequence of vertices from which a given vertex is reachable via a single edge. | |
| EdgeIterator | edgesFromVertexBegin (const std::size_t) const |
| Get an iterator to the beginning of the sequence of edges that originate from a given vertex. | |
| EdgeIterator | edgesFromVertexEnd (const std::size_t) const |
| Get an iterator to the end of the sequence of edges that originate from a given vertex. | |
| EdgeIterator | edgesToVertexBegin (const std::size_t) const |
| Get an iterator to the beginning of the sequence of edges that are incident to a given vertex. | |
| EdgeIterator | edgesToVertexEnd (const std::size_t) const |
| Get an iterator to the end of the sequence of edges that are incident to a given vertex. | |
| AdjacencyIterator | adjacenciesFromVertexBegin (const std::size_t) const |
| Get an iterator to the beginning of the sequence of adjacencies that originate from a given vertex. | |
| AdjacencyIterator | adjacenciesFromVertexEnd (const std::size_t) const |
| Get an iterator to the end of the sequence of adjacencies that originate from a given vertex. | |
| AdjacencyIterator | adjacenciesToVertexBegin (const std::size_t) const |
| Get an iterator to the beginning of the sequence of adjacencies incident to a given vertex. | |
| AdjacencyIterator | adjacenciesToVertexEnd (const std::size_t) const |
| Get an iterator to the end of the sequence of adjacencies incident to a given vertex. | |
| std::size_t | numberOfVertices () const |
| Get the number of vertices. | |
| std::size_t | numberOfEdges () const |
| Get the number of edges. | |
| std::size_t | numberOfEdgesFromVertex (const std::size_t) const |
| Get the number of edges that originate from a given vertex. | |
| std::size_t | numberOfEdgesToVertex (const std::size_t) const |
| Get the number of edges that are incident to a given vertex. | |
| std::size_t | vertexOfEdge (const std::size_t, const std::size_t) const |
| Get the integer index of a vertex of an edge. | |
| std::size_t | edgeFromVertex (const std::size_t, const std::size_t) const |
| Get the integer index of an edge that originates from a given vertex. | |
| std::size_t | edgeToVertex (const std::size_t, const std::size_t) const |
| Get the integer index of an edge that is incident to a given vertex. | |
| std::size_t | vertexFromVertex (const std::size_t, const std::size_t) const |
| Get the integer index of a vertex reachable from a given vertex via a single edge. | |
| std::size_t | vertexToVertex (const std::size_t, const std::size_t) const |
| Get the integer index of a vertex from which a given vertex is reachable via a single edge. | |
| AdjacencyType | adjacencyFromVertex (const std::size_t, const std::size_t) const |
| Get the j-th adjacency from a vertex. | |
| AdjacencyType | adjacencyToVertex (const std::size_t, const std::size_t) const |
| Get the j-th adjacency to a vertex. | |
| std::pair< bool, std::size_t > | findEdge (const std::size_t, const std::size_t) const |
| Search for an edge (in constant time). | |
| bool | multipleEdgesEnabled () const |
| Indicate if multiple edges are enabled. | |
Complete graph.
Definition at line 18 of file complete-graph.hxx.
| typedef Adjacency andres::graph::CompleteGraph< VISITOR >::AdjacencyType |
Definition at line 21 of file complete-graph.hxx.
| typedef VISITOR andres::graph::CompleteGraph< VISITOR >::Visitor |
Definition at line 20 of file complete-graph.hxx.
|
inline |
Construct a complete graph.
| visitor | Visitor to follow changes of integer indices of vertices and edges. |
Definition at line 176 of file complete-graph.hxx.
|
inline |
Construct a complete graph with an initial number of vertices.
| numberOfVertices | Number of vertices. |
| visitor | Visitor to follow changes of integer indices of vertices and edges. |
Definition at line 190 of file complete-graph.hxx.
|
inline |
Get an iterator to the beginning of the sequence of adjacencies that originate from a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 355 of file complete-graph.hxx.
|
inline |
Get an iterator to the end of the sequence of adjacencies that originate from a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 370 of file complete-graph.hxx.
|
inline |
Get an iterator to the beginning of the sequence of adjacencies incident to a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 385 of file complete-graph.hxx.
|
inline |
Get an iterator to the end of the sequence of adjacencies incident to a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 400 of file complete-graph.hxx.
|
inline |
Get the j-th adjacency from a vertex.
| vertex | Vertex. |
| j | Number of the adjacency. |
Definition at line 565 of file complete-graph.hxx.
|
inline |
Get the j-th adjacency to a vertex.
| vertex | Vertex. |
| j | Number of the adjacency. |
Definition at line 589 of file complete-graph.hxx.
|
inline |
Clear a complete graph.
| visitor | Visitor to follow changes of integer indices of vertices and edges. |
Definition at line 204 of file complete-graph.hxx.
|
inline |
Clear a complete graph with an initial number of vertices.
| numberOfVertices | Number of vertices. |
| visitor | Visitor to follow changes of integer indices of vertices and edges. |
Definition at line 218 of file complete-graph.hxx.
|
inline |
Get the integer index of an edge that originates from a given vertex.
| vertex | Integer index of a vertex. |
| j | Number of the edge; between 0 and numberOfEdgesFromVertex(vertex) - 1. |
Definition at line 485 of file complete-graph.hxx.
|
inline |
Get an iterator to the beginning of the sequence of edges that originate from a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 295 of file complete-graph.hxx.
|
inline |
Get an iterator to the end of the sequence of edges that originate from a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 310 of file complete-graph.hxx.
|
inline |
Get an iterator to the beginning of the sequence of edges that are incident to a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 325 of file complete-graph.hxx.
|
inline |
Get an iterator to the end of the sequence of edges that are incident to a given vertex.
| vertex | Integer index of the vertex. |
Definition at line 340 of file complete-graph.hxx.
|
inline |
Get the integer index of an edge that is incident to a given vertex.
| vertex | Integer index of a vertex. |
| j | Number of the edge; between 0 and numberOfEdgesFromVertex(vertex) - 1. |
Definition at line 511 of file complete-graph.hxx.
|
inline |
Search for an edge (in constant time).
Indexing: findEdge(vertex0, vertex1)
| vertex0 | first vertex of the edge. |
| vertex1 | second vertex of the edge. |
Definition at line 612 of file complete-graph.hxx.
|
inline |
Indicate if multiple edges are enabled.
Definition at line 635 of file complete-graph.hxx.
|
inline |
Get the number of edges.
Definition at line 418 of file complete-graph.hxx.
|
inline |
Get the number of edges that originate from a given vertex.
| vertex | Integer index of a vertex. |
Definition at line 430 of file complete-graph.hxx.
|
inline |
Get the number of edges that are incident to a given vertex.
| vertex | Integer index of a vertex. |
Definition at line 445 of file complete-graph.hxx.
|
inline |
Get the number of vertices.
Definition at line 410 of file complete-graph.hxx.
|
inline |
Get the integer index of a vertex reachable from a given vertex via a single edge.
| vertex | Integer index of a vertex. |
| j | Number of the vertex; between 0 and numberOfEdgesFromVertex(vertex) - 1. |
Definition at line 528 of file complete-graph.hxx.
|
inline |
Get the integer index of a vertex of an edge.
| edge | Integer index of an edge. |
| j | Number of the vertex in the edge; either 0 or 1. |
Definition at line 459 of file complete-graph.hxx.
|
inline |
Get the integer index of a vertex from which a given vertex is reachable via a single edge.
| vertex | Integer index of a vertex. |
| j | Number of the vertex; between 0 and numberOfEdgesFromVertex(vertex) - 1. |
Definition at line 550 of file complete-graph.hxx.
|
inline |
Get an iterator to the beginning of the sequence of vertices reachable from a given vertex via a single edge.
| vertex | Integer index of the vertex. |
Definition at line 235 of file complete-graph.hxx.
|
inline |
Get an iterator to the end of the sequence of vertices reachable from a given vertex via a single edge.
| vertex | Integer index of the vertex. |
Definition at line 250 of file complete-graph.hxx.
|
inline |
Get an iterator to the beginning of the sequence of vertices from which a given vertex is reachable via a single edge.
| vertex | Integer index of the vertex. |
Definition at line 265 of file complete-graph.hxx.
|
inline |
Get an iterator to the end of the sequence of vertices from which a given vertex is reachable via a single edge.
| vertex | Integer index of the vertex. |
Definition at line 280 of file complete-graph.hxx.
1.8.1.2