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:328
const neighbourhood & get_in_neighbours(node u) const noexcept
Returns the in-neighbours of node u.
Definition: directed_graph.hpp:339
uint64_t get_num_nodes() const noexcept
Returns the number of ndoes.
Definition: graph.hpp:198
Rooted tree graph class.
Definition: rooted_tree.hpp:103
bool has_root() const noexcept
Definition: rooted_tree.hpp:479
node get_root() const noexcept
Return the root of this tree.
Definition: rooted_tree.hpp:471
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:315
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: basic_types.hpp:50
uint64_t node
Node type. See Node / Vertex page for further details.
Definition: basic_types.hpp:53