C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::graph Namespace Reference

Classes

class  edge
 
class  edge< DirectedEdge, EdgeNodeIndexType >
 
class  edge< DirectedEdge, EdgeNodeIndexType, EdgeWeightType >
 
struct  edge_direction
 
struct  edge_plurality
 
class  graph
 

Functions

constexpr bool is_directed (int direction)
 
constexpr bool is_weighted (int weighted)
 
template<int EdgeDirected, typename EdgeIndexType , typename... EdgeTypes, template< typename, typename... > class ContainerType, typename... Types>
tpf::sstreamoperator<< (tpf::sstream &os, const ContainerType< edge< EdgeDirected, EdgeIndexType, EdgeTypes... >, Types... > &edges)
 
template<typename EdgeType , typename IndexType_1 , typename IndexType_2 , typename WeightType >
EdgeType make_edge (IndexType_1 index_1, IndexType_2 index_2, WeightType weight, bool bForceDirection=false)
 
template<typename EdgeType , typename IndexType_1 , typename IndexType_2 >
EdgeType make_edge (IndexType_1 index_1, IndexType_2 index_2, bool bForceDirection=false)
 

Function Documentation

◆ is_directed()

constexpr bool tpf::graph::is_directed ( int  direction)
constexpr

Definition at line 54 of file tpf_graph.hpp.

Here is the caller graph for this function:

◆ is_weighted()

constexpr bool tpf::graph::is_weighted ( int  weighted)
constexpr

Definition at line 59 of file tpf_graph.hpp.

Here is the caller graph for this function:

◆ make_edge() [1/2]

template<typename EdgeType , typename IndexType_1 , typename IndexType_2 >
EdgeType tpf::graph::make_edge ( IndexType_1  index_1,
IndexType_2  index_2,
bool  bForceDirection = false 
)

Definition at line 416 of file tpf_graph.hpp.

◆ make_edge() [2/2]

template<typename EdgeType , typename IndexType_1 , typename IndexType_2 , typename WeightType >
EdgeType tpf::graph::make_edge ( IndexType_1  index_1,
IndexType_2  index_2,
WeightType  weight,
bool  bForceDirection = false 
)

Definition at line 410 of file tpf_graph.hpp.

◆ operator<<()

template<int EdgeDirected, typename EdgeIndexType , typename... EdgeTypes, template< typename, typename... > class ContainerType, typename... Types>
tpf::sstream & tpf::graph::operator<< ( tpf::sstream os,
const ContainerType< edge< EdgeDirected, EdgeIndexType, EdgeTypes... >, Types... > &  edges 
)

Definition at line 388 of file tpf_graph.hpp.