48#include <lal/graphs/undirected_graph.hpp>
49#include <lal/graphs/directed_graph.hpp>
50#include <lal/graphs/rooted_tree.hpp>
66 for (
node u = 0; u < N; ++u) {
71 os << (u < N - 1 ?
"\n" :
"");
88 for (
node u = 0; u < N; ++u) {
93 os << (u < N - 1 ?
"\n" :
"");
95 os <<
"\n" <<
"in:" <<
"\n";
96 for (
node u = 0; u < N; ++u) {
101 os << (u < N - 1 ?
"\n" :
"");
116 const std::string pad = (g.
has_root() ?
" " :
"");
117 os <<
"out:" <<
"\n";
118 for (
node u = 0; u < N; ++u) {
123 os << (u < N - 1 ?
"\n" :
"");
125 os <<
"\n" <<
"in:" <<
"\n";
126 for (
node u = 0; u < N; ++u) {
131 os << (u < N - 1 ?
"\n" :
"");
Directed graph class.
Definition directed_graph.hpp:68
const neighbourhood & get_out_neighbours(node u) const noexcept
Returns the out-neighbours of node u.
Definition directed_graph.hpp:314
const neighbourhood & get_in_neighbours(node u) const noexcept
Returns the in-neighbours of node u.
Definition directed_graph.hpp:325
uint32_t get_num_nodes() const noexcept
Returns the number of ndoes.
Definition graph.hpp:194
Rooted tree graph class.
Definition rooted_tree.hpp:107
bool has_root() const noexcept
Definition rooted_tree.hpp:493
node get_root() const noexcept
Return the root of this tree.
Definition rooted_tree.hpp:485
Undirected graph class.
Definition undirected_graph.hpp:67
const neighbourhood & get_neighbours(node u) const noexcept
Returns the neighbourhood of node u.
Definition undirected_graph.hpp:301
std::ostream & operator<<(std::ostream &os, const undirected_graph &g)
Standard output operator for undirected graphs.
Definition output.hpp:63
Main namespace of the library.
Definition definitions.hpp:48
uint32_t node
Node type.
Definition definitions.hpp:51