Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
edge_utils.hpp File Reference
#include <common.hpp>
#include <graph/graph.hpp>
#include <meta/concepts.hpp>
#include <utility/functional.hpp>
#include <algorithm>

Go to the source code of this file.

Classes

struct  graphle::util::edge_field_filter< G, Field >
 

Namespaces

namespace  graphle
 
namespace  graphle::util
 

Typedefs

template<graph_ref G>
using graphle::util::edge_from_filter = edge_field_filter< G, &edge_of< G >::first >
 
template<graph_ref G>
using graphle::util::edge_to_filter = edge_field_filter< G, &edge_of< G >::second >
 

Functions

template<graph_ref G>
requires ( edge_list_graph<G> || in_edges_graph<G> || (non_directed_graph<G> && out_edges_graph<G>) )
constexpr auto graphle::util::in_edges (G &&graph, vertex_of< G > vertex)
 
template<graph_ref G>
requires ( edge_list_graph<G> || out_edges_graph<G> || (non_directed_graph<G> && in_edges_graph<G>) )
constexpr auto graphle::util::out_edges (G &&graph, vertex_of< G > vertex)
 
template<graph_ref G>
requires ( edge_list_graph<G> || in_edges_graph<G> || (non_directed_graph<G> && out_edges_graph<G>) )
constexpr std::size_t graphle::util::in_degree (G &&graph, vertex_of< G > vertex)
 
template<graph_ref G>
requires ( edge_list_graph<G> || out_edges_graph<G> || (non_directed_graph<G> && in_edges_graph<G>) )
constexpr std::size_t graphle::util::out_degree (G &&graph, vertex_of< G > vertex)
 
template<directed_graph G>
requires (edge_list_graph<G> || in_edges_graph<G>)
constexpr bool graphle::util::is_root (G &&graph, vertex_of< G > vertex)
 
template<directed_graph G>
requires (edge_list_graph<G> || out_edges_graph<G>)
constexpr bool graphle::util::is_branch (G &&graph, vertex_of< G > vertex)
 
template<directed_graph G>
requires (edge_list_graph<G> || out_edges_graph<G>)
constexpr bool graphle::util::is_leaf (G &&graph, vertex_of< G > vertex)