|
| bool | connect (Vertex source, Vertex target, EdgeData e) |
| | Connect two vertices.
|
| bool | connect (Vertex source, Vertex target) |
| | Connect two vertices using default constructed edge data.
|
| bool | disconnect (Vertex source, Vertex target) |
| | Disconnect two vertices.
|
| std::optional< EdgeData > | edge (Vertex source, Vertex target) const |
| | Return edge data between two vertices.
|
| bool | connected (Vertex source, Vertex target) const |
| | Check if two vertices are connected.
|
| auto | outVertices () const |
| | Range over vertices in the graph.
|
| auto | outVertices (Vertex source) const |
| | Range over target vertices.
|
| auto | outEdges (Vertex source) const |
| | Range of out edges.
|
| std::size_t | outDegree (Vertex source) const |
| | Vertex out-degree.
|
| template<class VertexName> |
| void | saveDot (std::ostream &out, VertexName &&vertexName) const |
| | Save GraphViz dot file.
|
| template<class VertexName> |
| void | saveDot (std::string const &fileName, VertexName &&vertexName) const |
template<class Vertex, class EdgeData = detail::NoEdgeData>
class xrpl::test::csf::Digraph< Vertex, EdgeData >
Directed graph.
Basic directed graph that uses an adjacency list to represent out edges.
Instances of Vertex uniquely identify vertices in the graph. Instances of EdgeData is any data to store in the edge connecting two vertices.
Both Vertex and EdgeData should be lightweight and cheap to copy.
Definition at line 34 of file Digraph.h.