|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Path search on directed graphs defined through a graph class (not a digraph). More...
#include <tpl_find_path.H>
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 |
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.
|
inline |
Definition at line 616 of file tpl_find_path.H.
|
inline |
Definition at line 618 of file tpl_find_path.H.
|
inline |
Definition at line 640 of file tpl_find_path.H.
|
inline |
Definition at line 634 of file tpl_find_path.H.
Referenced by Aleph::Directed_Find_Path< GT, Itor, SA >::bfs(), TEST_F(), TEST_F(), TEST_F(), and TYPED_TEST().
|
inline |
Definition at line 650 of file tpl_find_path.H.
References Aleph::Directed_Find_Path< GT, Itor, SA >::bfs().
|
inline |
Definition at line 628 of file tpl_find_path.H.
|
inline |
Definition at line 622 of file tpl_find_path.H.
Referenced by Aleph::Tarjan_Connected_Components< GT, Itor, SA >::build_path(), Aleph::Directed_Find_Path< GT, Itor, SA >::dfs(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TYPED_TEST().
|
inline |
Definition at line 645 of file tpl_find_path.H.
References Aleph::Directed_Find_Path< GT, Itor, SA >::dfs().
|
inlineprivate |
Definition at line 539 of file tpl_find_path.H.
References Aleph::Directed_Find_Path< GT, Itor, SA >::g, Aleph::Path< GT >::get_first_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::Path< GT >::init(), Aleph::Path< GT >::insert_directed(), NODE_COOKIE, Aleph::Processed, Aleph::Processing, GraphCommon< GT, Node, Arc >::reset_arcs(), GraphCommon< GT, Node, Arc >::reset_nodes(), Aleph::Directed_Find_Path< GT, Itor, SA >::sa, and GTNodeCommon< NodeInfo >::set_state().
|
private |
Definition at line 535 of file tpl_find_path.H.
Referenced by Aleph::Directed_Find_Path< GT, Itor, SA >::find().
|
private |
Definition at line 536 of file tpl_find_path.H.
Referenced by Aleph::Directed_Find_Path< GT, Itor, SA >::find().