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

#include <Planarity_Test.H>

Collaboration diagram for Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >:
[legend]

Classes

struct  Orient_Frame
 
struct  Test_Frame
 

Public Member Functions

 LR_Planarity_Checker (const GT &g, SA sa, Planarity_Test_Options options=Planarity_Test_Options())
 
Planarity_Test_Result< GT > run ()
 

Private Types

using Node = typename GT::Node
 
using Arc = typename GT::Arc
 

Private Member Functions

size_t add_oriented_edge (const size_t src, const size_t tgt)
 
size_t other_endpoint (const size_t edge_id, const size_t x) const
 
size_t count_components () const
 
bool compute_faces_from_rotation (const Array< Array< size_t > > &order, const size_t isolated_vertices, const size_t num_components, Array< Array< size_t > > &face_idx, size_t &global_faces, const bool enforce_euler=true) const
 
void fill_embedding_result (const Array< Array< size_t > > &order, const Array< Array< size_t > > &face_idx, const size_t global_faces, const bool is_lr_linear)
 
bool conflicting (const Interval &i, const size_t edge_id) const
 
long lowest (const Conflict_Pair &p) const
 
void finish_oriented_edge (const size_t v, const size_t e)
 
Orient_Frame orient_frame_of (const size_t v) const noexcept
 
void orient_dfs (const size_t root)
 
void sort_child_edges (const size_t v)
 
bool finish_child_edge (const size_t v, const size_t first, const size_t ei)
 
bool merge_child_edge (const size_t v, const size_t first, const size_t ei)
 
void finish_test (const size_t v)
 
Test_Frame test_frame_of (const size_t v)
 
void test_dfs (const size_t root)
 
bool fails_component_euler_bound () const
 
void build_underlying_simple_graph ()
 
bool run_lr_planarity_test ()
 
bool simple_edges_are_planar (const Array< Simple_Edge > &simple_edges) const
 
size_t find_simplified_edge_id (const size_t u, const size_t v) const
 
Planarity_Test_Result< GT >::Edge_Witness make_edge_witness (const size_t u, const size_t v) const
 
void fill_certificate_paths (const Array< size_t > &branches, const Array< Compressed_Path > &paths)
 
void build_nonplanar_certificate ()
 
bool build_combinatorial_embedding_linear_lr ()
 
bool build_combinatorial_embedding_bruteforce ()
 
bool build_combinatorial_embedding ()
 

Static Private Member Functions

static void sort_size_t_array (Array< size_t > &a)
 
static size_t factorial_bounded (const size_t n, const size_t cap)
 
static size_t find_in_array (const Array< size_t > &a, const size_t value)
 
static void generate_permutations (Array< size_t > &tail, const size_t pos, const size_t first, Array< Array< size_t > > &out)
 
static std::pair< const size_t *, const size_t * > range_of (const Array< size_t > &a) noexcept
 
template<class Key >
static void sort_by (Array< size_t > &E, const Key &key)
 
static bool classify_k5 (const Array< size_t > &branches, const Array< Compressed_Path > &paths)
 
static bool classify_k33 (const Array< size_t > &branches, const Array< Compressed_Path > &paths)
 

Private Attributes

const GT & g_
 
SA sa_
 
Planarity_Test_Options options_
 
Planarity_Test_Result< GT > result_
 
Array< Node * > nodes_
 
DynMapTree< Node *, size_t > node_to_idx_
 
Array< Simple_Edge > edges_
 
Array< Array< size_t > > incident_edges_
 
Array< Array< Arc * > > simplified_edge_input_arcs_
 
Array< long > height_
 
Array< size_t > parent_edge_
 
Array< Array< size_t > > child_edges_
 
Array< char > undirected_edge_seen_
 
Array< size_t > roots_
 
Array< size_t > oriented_src_
 
Array< size_t > oriented_tgt_
 
Array< long > side_
 
Array< long > lowpt_
 
Array< long > lowpt2_
 
Array< long > nesting_depth_
 
Array< size_t > undirected_to_oriented_
 
Array< size_t > lowpt_edge_
 
Array< size_t > ref_
 
Array< Conflict_Pair > stack_bottom_
 
Array< Conflict_Pair > stack_
 
bool planar_ = true
 

Detailed Description

template<AlephGraph GT, ArcFilter< GT > SA>
class Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >

Definition at line 726 of file Planarity_Test.H.

Member Typedef Documentation

◆ Arc

template<AlephGraph GT, ArcFilter< GT > SA>
using Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::Arc = typename GT::Arc
private

Definition at line 729 of file Planarity_Test.H.

◆ Node

template<AlephGraph GT, ArcFilter< GT > SA>
using Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::Node = typename GT::Node
private

Definition at line 728 of file Planarity_Test.H.

Constructor & Destructor Documentation

◆ LR_Planarity_Checker()

template<AlephGraph GT, ArcFilter< GT > SA>
Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::LR_Planarity_Checker ( const GT &  g,
SA  sa,
Planarity_Test_Options  options = Planarity_Test_Options() 
)
inline

Definition at line 2809 of file Planarity_Test.H.

Member Function Documentation

◆ add_oriented_edge()

◆ build_combinatorial_embedding()

◆ build_combinatorial_embedding_bruteforce()

◆ build_combinatorial_embedding_linear_lr()

template<AlephGraph GT, ArcFilter< GT > SA>
bool Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::build_combinatorial_embedding_linear_lr ( )
inlineprivate

Definition at line 2099 of file Planarity_Test.H.

References Aleph::and, Aleph::Array< T >::append(), chain(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::child_edges_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::compute_faces_from_rotation(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::count_components(), Aleph::Planarity_Test_Options::embedding_max_combinations, Aleph::Planarity_Test_Options::embedding_validate_with_euler, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::fill_embedding_result(), LocateFunctions< Container, Type >::get_it(), h, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::incident_edges_, Aleph::Array< T >::is_empty(), Aleph::Dfs_Stack< T >::is_empty(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::nesting_depth_, Aleph::next(), Aleph::planarity_detail::Null_Edge, num_nodes, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::options_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::oriented_src_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::oriented_tgt_, out, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::parent_edge_, Aleph::Dfs_Stack< T >::pop(), Aleph::Dfs_Stack< T >::push(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::range_of(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::ref_, Aleph::Array< T >::reserve(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::result_, root(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::roots_, seed, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::side_, Aleph::Array< T >::size(), Aleph::size(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::sort_by(), Aleph::Dfs_Stack< T >::top(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::undirected_to_oriented_, w, and y.

Referenced by Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::build_combinatorial_embedding().

◆ build_nonplanar_certificate()

template<AlephGraph GT, ArcFilter< GT > SA>
void Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::build_nonplanar_certificate ( )
inlineprivate

Definition at line 1758 of file Planarity_Test.H.

References Aleph::and, Aleph::Array< T >::append(), Aleph::Planarity_Test_Options::certificate_max_branch_nodes_search, Aleph::Planarity_Test_Options::certificate_max_edges, Aleph::Planarity_Test_Options::certificate_max_reduction_passes, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::classify_k33(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::classify_k5(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::edges_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::fill_certificate_paths(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::find_in_array(), LocateFunctions< Container, Type >::get_it(), Aleph::Array< T >::get_last(), Aleph::Array< T >::is_empty(), Aleph::K33_Subdivision, Aleph::K5_Subdivision, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::make_edge_witness(), Aleph::Minimal_NonPlanar_Obstruction, Aleph::planarity_detail::Compressed_Path::nodes, Aleph::planarity_detail::Null_Edge, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::options_, Aleph::Array< T >::reserve(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::result_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::simple_edges_are_planar(), Aleph::Array< T >::size(), Aleph::size(), Aleph::planarity_detail::Simple_Edge::u, Aleph::planarity_detail::Compressed_Path::u, Aleph::planarity_detail::Simple_Edge::v, and Aleph::planarity_detail::Compressed_Path::v.

Referenced by Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::run().

◆ build_underlying_simple_graph()

◆ classify_k33()

◆ classify_k5()

◆ compute_faces_from_rotation()

◆ conflicting()

◆ count_components()

◆ factorial_bounded()

template<AlephGraph GT, ArcFilter< GT > SA>
static size_t Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::factorial_bounded ( const size_t  n,
const size_t  cap 
)
inlinestaticprivate

◆ fails_component_euler_bound()

◆ fill_certificate_paths()

◆ fill_embedding_result()

◆ find_in_array()

◆ find_simplified_edge_id()

template<AlephGraph GT, ArcFilter< GT > SA>
size_t Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::find_simplified_edge_id ( const size_t  u,
const size_t  v 
) const
inlineprivate

◆ finish_child_edge()

◆ finish_oriented_edge()

◆ finish_test()

◆ generate_permutations()

◆ lowest()

◆ make_edge_witness()

◆ merge_child_edge()

◆ orient_dfs()

template<AlephGraph GT, ArcFilter< GT > SA>
void Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::orient_dfs ( const size_t  root)
inlineprivate

Definition at line 1098 of file Planarity_Test.H.

References Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::add_oriented_edge(), Aleph::Array< T >::append(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::child_edges_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::Orient_Frame::end, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::finish_oriented_edge(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::height_, Aleph::Dfs_Stack< T >::is_empty(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::lowpt2_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::lowpt_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::Orient_Frame::next, Aleph::planarity_detail::Null_Edge, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::orient_frame_of(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::other_endpoint(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::parent_edge_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::planar_, Aleph::Dfs_Stack< T >::pop(), Aleph::Dfs_Stack< T >::push(), root(), Aleph::Dfs_Stack< T >::top(), Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::undirected_edge_seen_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::undirected_to_oriented_, Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::Orient_Frame::v, w, and Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::Orient_Frame::waiting.

Referenced by Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::run_lr_planarity_test().

◆ orient_frame_of()

◆ other_endpoint()

◆ range_of()

template<AlephGraph GT, ArcFilter< GT > SA>
static std::pair< const size_t *, const size_t * > Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::range_of ( const Array< size_t > &  a)
inlinestaticprivatenoexcept

◆ run()

◆ run_lr_planarity_test()

◆ simple_edges_are_planar()

◆ sort_by()

template<AlephGraph GT, ArcFilter< GT > SA>
template<class Key >
static void Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::sort_by ( Array< size_t > &  E,
const Key &  key 
)
inlinestaticprivate

◆ sort_child_edges()

◆ sort_size_t_array()

template<AlephGraph GT, ArcFilter< GT > SA>
static void Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::sort_size_t_array ( Array< size_t > &  a)
inlinestaticprivate

◆ test_dfs()

template<AlephGraph GT, ArcFilter< GT > SA>
void Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::test_dfs ( const size_t  root)
inlineprivate

◆ test_frame_of()

Member Data Documentation

◆ child_edges_

◆ edges_

◆ g_

template<AlephGraph GT, ArcFilter< GT > SA>
const GT& Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::g_
private

◆ height_

◆ incident_edges_

◆ lowpt2_

◆ lowpt_

◆ lowpt_edge_

◆ nesting_depth_

◆ node_to_idx_

template<AlephGraph GT, ArcFilter< GT > SA>
DynMapTree<Node *, size_t> Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::node_to_idx_
private

◆ nodes_

◆ options_

◆ oriented_src_

◆ oriented_tgt_

◆ parent_edge_

◆ planar_

◆ ref_

◆ result_

◆ roots_

◆ sa_

template<AlephGraph GT, ArcFilter< GT > SA>
SA Aleph::planarity_detail::LR_Planarity_Checker< GT, SA >::sa_
private

◆ side_

◆ simplified_edge_input_arcs_

◆ stack_

◆ stack_bottom_

◆ undirected_edge_seen_

◆ undirected_to_oriented_


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