|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Educational examples for indexed graphs (fast O(log n) lookups) More...
Go to the source code of this file.
Functions | |
| int | main () |
Educational examples for indexed graphs (fast O(log n) lookups)
A graph wrapper that maintains search trees for:
Standard graph operations are O(n) linear search Indexed graphs provide O(log n) search - HUGE speedup for large graphs!
g++ -std=c++20 -I.. -o tpl_indexGraph_example tpl_indexGraph_example.cc ./tpl_indexGraph_example
Definition in file tpl_indexGraph_example.cc.
| int main | ( | ) |
Definition at line 43 of file tpl_indexGraph_example.cc.
References GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::Index_Graph< GT, Compare, Tree >::insert_arc(), Aleph::Index_Graph< GT, Compare, Tree >::insert_node(), log2(), Aleph::maps(), N, Aleph::Index_Graph< GT, Compare, Tree >::search_arc(), and Aleph::Index_Graph< GT, Compare, Tree >::search_node().