|
nxpp
Header-only graph utilities on top of Boost Graph Library
|
Graph-construction helpers such as complete, path, and Erdos-Renyi graphs. More...
#include "graph.hpp"

Go to the source code of this file.
Functions | |
| template<typename GraphType = Graph<int>> | |
| GraphType | nxpp::complete_graph (size_t n) |
| Builds the complete graph on node IDs 0 through n - 1. | |
| template<typename GraphType = Graph<int>> | |
| GraphType | nxpp::path_graph (size_t n) |
| Builds a simple path on node IDs 0 through n - 1. | |
| template<typename GraphType = Graph<int>> | |
| GraphType | nxpp::erdos_renyi_graph (size_t n, double p, int seed=42) |
| Builds an Erdos-Renyi random graph on node IDs 0 through n - 1. | |
Graph-construction helpers such as complete, path, and Erdos-Renyi graphs.
| GraphType nxpp::complete_graph | ( | size_t | n | ) |
Builds the complete graph on node IDs 0 through n - 1.
| n | Number of nodes to generate. |
References nxpp::complete_graph().
Referenced by nxpp::complete_graph().
| GraphType nxpp::erdos_renyi_graph | ( | size_t | n, |
| double | p, | ||
| int | seed = 42 |
||
| ) |
Builds an Erdos-Renyi random graph on node IDs 0 through n - 1.
| n | Number of nodes to generate. |
| p | Probability of adding each candidate edge. |
| seed | Random seed used by the internal generator. |
References nxpp::erdos_renyi_graph().
Referenced by nxpp::erdos_renyi_graph().
| GraphType nxpp::path_graph | ( | size_t | n | ) |
Builds a simple path on node IDs 0 through n - 1.
| n | Number of nodes to generate. |
References nxpp::path_graph().
Referenced by nxpp::path_graph().