Commit Graph

36 Commits

Author SHA1 Message Date
stefiosif
8e8cf23399 Add required data structures for DecrementalTC::init 2022-07-26 20:42:38 +03:00
stefiosif
48de05174a Add tests for DecrementalSCC::query and DecrementalSCC::remove 2022-07-26 20:42:02 +03:00
stefiosif
46cdadc758 Add tests for Digraph::V and Digraph::E 2022-07-26 20:39:57 +03:00
stefiosif
41e5bead43 Add new tests, remove duplicate tests (scc creation ~ tarjan's algorithm) 2022-07-20 23:46:50 +03:00
stefiosif
fe3bb68c18 Add single vertex contains method and replace vertices field with adjMatrix' keys 2022-07-20 23:43:15 +03:00
stefiosif
31567f9e57 Add BreadthFirstTree's to decremental maintenance algorithm and delete In/Out tree classes 2022-07-20 23:04:06 +03:00
stefiosif
227749b9e4 Make reverse() return type auto 2022-07-13 23:04:59 +03:00
stefiosif
31ba84dc2a Add remove and contain functions 2022-07-13 23:02:54 +03:00
stefiosif
0f857a6c9e Add new graph example 2022-07-12 14:44:43 +03:00
stefiosif
601f80c8d4 Fix includes and add some comments 2022-07-12 14:42:29 +03:00
stefiosif
e7ad824116 Put root of BFS tree as constructor parameter 2022-07-12 14:41:18 +03:00
stefiosif
77dee72317 Add license 2022-07-10 16:47:07 +03:00
stefiosif
b9cd1a1cbd Split graph folder into graph and tree 2022-07-10 15:32:13 +03:00
stefiosif
3fa6935b84 Add virtual class for the dynamic reachability algorithms 2022-07-10 15:31:00 +03:00
stefiosif
4a9cbe19f9 Make SCC inherit parent constructor to avoid duplicate code 2022-07-10 13:23:27 +03:00
stefiosif
6b1edfa164 Update final step of decremental scc algorithm 2022-06-29 17:58:52 +03:00
stefiosif
d199b7de17 Add tests for same SCC O(1) query 2022-06-29 17:33:27 +03:00
stefiosif
8d8e6ef831 Change project structure 2022-06-27 22:45:26 +03:00
stefiosif
e488b309c8 Update decremental maintenance of SCC algorithm 2022-06-27 17:45:47 +03:00
stefiosif
de29435933 Add reverse a digraph function and test 2022-06-13 17:04:43 +03:00
stefiosif
1e16e671ea Make RodittyZwick class abstract 2022-06-13 12:57:09 +03:00
stefiosif
cc79737ecc Add roditty and zwick class 2022-06-12 20:33:11 +03:00
stefiosif
4058c3f6fb Make bfs return a digraph since shortest-path in-out trees are directed graphs 2022-06-12 20:32:15 +03:00
stefiosif
2029900035 Update tarjan test cases and add BFS test case 2022-06-12 17:34:52 +03:00
stefiosif
72741a6a5b Make class Graph abstract and make derived classes Digraph and SCC 2022-06-12 00:49:42 +03:00
stefiosif
b5b031db7f Add BFS tree 2022-06-11 19:27:03 +03:00
stefiosif
dfa8e649ee Create variable instead of reference when accessing the stack 2022-06-11 19:17:37 +03:00
stefiosif
89a2a24f50 Add decremental maintenance of SCCs frame 2022-05-17 21:25:47 +03:00
stefiosif
c2c278784b Delete unused methods 2022-05-15 00:39:36 +03:00
stefiosif
8a52c80bc8 Finish Tarjan algorithm and add tests 2022-05-07 17:05:43 +03:00
stefiosif
122d11b189 Add base paper and tarjan's SCC algorithm 2022-05-06 12:25:04 +03:00
stefiosif
adb36adea7 Add core graph member functions 2022-05-02 17:57:04 +03:00
stefiosif
116d8831e2 Update gitignore and add relevant paper 2022-04-25 20:31:06 +03:00
stefiosif
0ab49de690 Add nanobench 2022-04-21 20:29:36 +03:00
stefiosif
550d83bb84 Add doctest 2022-04-21 20:28:11 +03:00
stefiosif
abcaa2662d Add project files. 2022-04-21 20:07:24 +03:00