Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Directed_Find_Path< GT, Itor, SA > Class Template Reference

Path search on directed graphs defined through a graph class (not a digraph). More...

#include <tpl_find_path.H>

Collaboration diagram for Aleph::Directed_Find_Path< GT, Itor, SA >:
[legend]

Public Member Functions

 Directed_Find_Path (const GT &__g, SA &__sa)
 
 Directed_Find_Path (const GT &__g, SA &&__sa=SA())
 
template<class Op >
Path< GT > dfs (typename GT::Node *start, Op &op)
 
template<class Op >
Path< GT > dfs (typename GT::Node *start, Op &&op)
 
template<class Op >
Path< GT > bfs (typename GT::Node *start, Op &op)
 
template<class Op >
Path< GT > bfs (typename GT::Node *start, Op &&op)
 
Path< GT > dfs (typename GT::Node *start, typename GT::Node *end)
 
Path< GT > bfs (typename GT::Node *start, typename GT::Node *end)
 

Private Member Functions

template<template< typename T > class Q, class Op >
Path< GT > find (typename GT::Node *start, Op &op)
 

Private Attributes

const GT & g
 
Kept_Filter< SA > sa
 

Detailed Description

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
class Aleph::Directed_Find_Path< GT, Itor, SA >

Path search on directed graphs defined through a graph class (not a digraph).

dfs() and bfs() give the path found, or an empty one. From a node to itself, or from a start that meets the criterion, the path is the start alone, with no arc, as that of Find_Path_Depth_First.

Definition at line 533 of file tpl_find_path.H.

Constructor & Destructor Documentation

◆ Directed_Find_Path() [1/2]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
Aleph::Directed_Find_Path< GT, Itor, SA >::Directed_Find_Path ( const GT &  __g,
SA &  __sa 
)
inline

Definition at line 616 of file tpl_find_path.H.

◆ Directed_Find_Path() [2/2]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
Aleph::Directed_Find_Path< GT, Itor, SA >::Directed_Find_Path ( const GT &  __g,
SA &&  __sa = SA() 
)
inline

Definition at line 618 of file tpl_find_path.H.

Member Function Documentation

◆ bfs() [1/3]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class Op >
Path< GT > Aleph::Directed_Find_Path< GT, Itor, SA >::bfs ( typename GT::Node *  start,
Op &&  op 
)
inline

Definition at line 640 of file tpl_find_path.H.

◆ bfs() [2/3]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class Op >
Path< GT > Aleph::Directed_Find_Path< GT, Itor, SA >::bfs ( typename GT::Node *  start,
Op &  op 
)
inline

◆ bfs() [3/3]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
Path< GT > Aleph::Directed_Find_Path< GT, Itor, SA >::bfs ( typename GT::Node *  start,
typename GT::Node *  end 
)
inline

Definition at line 650 of file tpl_find_path.H.

References Aleph::Directed_Find_Path< GT, Itor, SA >::bfs().

◆ dfs() [1/3]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class Op >
Path< GT > Aleph::Directed_Find_Path< GT, Itor, SA >::dfs ( typename GT::Node *  start,
Op &&  op 
)
inline

Definition at line 628 of file tpl_find_path.H.

◆ dfs() [2/3]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<class Op >
Path< GT > Aleph::Directed_Find_Path< GT, Itor, SA >::dfs ( typename GT::Node *  start,
Op &  op 
)
inline

◆ dfs() [3/3]

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
Path< GT > Aleph::Directed_Find_Path< GT, Itor, SA >::dfs ( typename GT::Node *  start,
typename GT::Node *  end 
)
inline

Definition at line 645 of file tpl_find_path.H.

References Aleph::Directed_Find_Path< GT, Itor, SA >::dfs().

◆ find()

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
template<template< typename T > class Q, class Op >
Path< GT > Aleph::Directed_Find_Path< GT, Itor, SA >::find ( typename GT::Node *  start,
Op &  op 
)
inlineprivate

Member Data Documentation

◆ g

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
const GT& Aleph::Directed_Find_Path< GT, Itor, SA >::g
private

Definition at line 535 of file tpl_find_path.H.

Referenced by Aleph::Directed_Find_Path< GT, Itor, SA >::find().

◆ sa

template<AlephGraph GT, template< typename, class > class Itor = Out_Iterator, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
Kept_Filter<SA> Aleph::Directed_Find_Path< GT, Itor, SA >::sa
private

Definition at line 536 of file tpl_find_path.H.

Referenced by Aleph::Directed_Find_Path< GT, Itor, SA >::find().


The documentation for this class was generated from the following file: