CXXGraph

Share on

Introduction

CXXGraph is a small library, header only, that manages the Graph and it's algorithms in C++. In other words a "Comprehensive C++ Graph Library".

Algorithm Explanation

Dijkstra

Graph Dijkstras Shortest Path Algorithm(Dijkstra's Shortest Path) Dijkstra's Algorithm is used to find the shortest path from a source node to all other reachable nodes in the graph. The algorithm initially assumes all the nodes are unreachable from the given source node so we mark the distances of all nodes as infinity. (infinity) from source node (INF / infinity denotes unable to reach).

Dial

Dial specialization of dijkstra’s algorithm.

When edge weights are small integers (bounded by a parameter C), specialized queues which take advantage of this fact can be used to speed up Dijkstra's algorithm. The first algorithm of this type was Dial's algorithm (Dial 1969) for graphs with positive integer edge weights, which uses a bucket queue to obtain a running time O(|E|+|V|C).(source wikipedia)

Below is complete algorithm:

1. Maintains some buckets, numbered 0, 1, 2,…,wV.
2. Bucket k contains all temporarily labeled nodes with distance equal to k.
3. Nodes in each bucket are represented by list of vertices.
4. Buckets 0, 1, 2,..wV are checked sequentially until the first non-empty bucket is found. Each node contained in the first non-empty bucket has the minimum distance label by definition.
5. One by one, these nodes with minimum distance label are permanently labeled and deleted from the bucket during the scanning process.
6. Thus operations involving vertex include:
• Checking if a bucket is empty
• Adding a vertex to a bucket
• Deleting a vertex from a bucket.
7. The position of a temporarily labeled vertex in the buckets is updated accordingly when the distance label of a vertex changes.
8. Process repeated until all vertices are permanently labeled (or distances of all vertices are finalized).

At this link you can find a step-by-step illustrations.

BFS

(Breadth First Search) Breadth First Search Algorithm(Breadth First Search) Breadth First Search, also quoted as BFS, is a Graph Traversal Algorithm. Time Complexity O(|V| + |E|) where V are the number of vertices and E are the number of edges in the graph. Applications of Breadth First Search are :

1. Finding shortest path between two vertices say u and v, with path length measured by number of edges (an advantage over depth first search algorithm)
2. Ford-Fulkerson Method for computing the maximum flow in a flow network.
3. Testing bipartiteness of a graph.
4. Cheney's Algorithm, Copying garbage collection.

And there are many more...

DFS

(Depth First Search) Depth First Search Algorithm (Depth First Search) Depth First Search, also quoted as DFS, is a Graph Traversal Algorithm. Time Complexity O(|V| + |E|) where V is number of vertices and E is number of edges in graph. Application of Depth First Search are:

1. Finding connected components
2. Finding 2-(edge or vertex)-connected components.
3. Finding 3-(edge or vertex)-connected components.
4. Finding the bridges of a graph.
5. Generating words in order to plot the limit set of a group.
6. Finding strongly connected components.

And there are many more...

Cycle Detection

Cycle (graph theory)

The existence of a cycle in directed and undirected graphs can be determined by whether depth-first search (DFS) finds an edge that points to an ancestor of the current vertex (it contains a back edge). All the back edges which DFS skips over are part of cycles. In an undirected graph, the edge to the parent of a node should not be counted as a back edge, but finding any other already visited vertex will indicate a back edge. In the case of undirected graphs, only O(n) time is required to find a cycle in an n-vertex graph, since at most n − 1 edges can be tree edges.

Many topological sorting algorithms will detect cycles too, since those are obstacles for topological order to exist. Also, if a directed graph has been divided into strongly connected components, cycles only exist within the components and not between them, since cycles are strongly connected.

For directed graphs, distributed message based algorithms can be used. These algorithms rely on the idea that a message sent by a vertex in a cycle will come back to itself. Distributed cycle detection algorithms are useful for processing large-scale graphs using a distributed graph processing system on a computer cluster (or supercomputer).

Applications of cycle detection include the use of wait-for graphs to detect deadlocks in concurrent systems.

WORK IN PROGRESS

Partition Algorithm Explanation

Vertex-Cut

A vertex-cut partitioning divides edges of a graph into equal size partitions. The vertices that hold the endpoints of an edge are also placed in the same partition as the edge itself. However, the vertices are not unique across partitions and might have to be replicated (cut), due to the distribution of their edge across different partitions.

Replication factor quantifies how many vertexes are replicated over computers compared with the the number of vertexes of the original input graph.

Greedy Vertex-Cut

This Algorithm is a simple vertex-cut in Round-Robin fashion. It takes the original graph edges and assign them to the partitions, dividing it in equal(or similar) size. This algorithm does not take care of optimization in vertex replication ( Replication Factor) but only balance the edge in the partitions.

Classes Explanation

The Classes Explanation can be found in the Doxygen Documentation, in the Classes Section

Requirements

The minimun C++ standard required is C++17 and a G++ compiler version greater than 7.3.0.

How to use

The use of the library is very simple, just put the header file where you need!

Unit-Test Execution

The Unit-Test required the CMake version greater than 3.9 and the google test library.

``````git clone https://github.com/google/googletest.git
cd googletest        # Main directory of the cloned repository.
mkdir build          # Create a directory to hold the build output.
cd build
cmake ..             # Generate native build scripts for GoogleTest.
make
sudo make install    # Install in /usr/local/ by default
``````

How to Compile Test

• If not exist create a directory "build" under the base directory.
• Enter the directory
• execute command `cmake ..`
• if all is succesfull execute the command `make`

How to Run Test

After the compilation, you can run the executable that is under the "build" directory with the name "test_exe", with the simple command `./test_exe`.

Benchmark Execution

The Benchmark required the CMake version greater than 3.9 and the google test and the google benchmark library.

``````# Check out the library.
# Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory.
# Go to the library root directory
\$ cd benchmark
# Make a build directory to place the build output.
\$ cmake -E make_directory "build"
# Generate build system files with cmake.
\$ cmake -E chdir "build" cmake -DCMAKE_BUILD_TYPE=Release ../
# or, starting with CMake 3.13, use a simpler form:
# cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build"
# Build the library.
\$ cmake --build "build" --config Release
# install library
\$ sudo cmake --build "build" --config Release --target install
``````

How to Compile Benchmark

• If not exist create a directory "build" under the base directory.
• Enter the directory
• execute command `cmake ..`
• if all is succesfull execute the command `make`

How to Run Benchmark

After the compilation, you can run the executable that is under the "build" directory with the name "benchmark", with the simple command `./benchmark`.

Benchmark Results

You can check benchmark result at this link

Packaging

Tarballs

To create tarballs package you need to follow the following steps:

``````# Enter Packaging Directory
\$ cd packaging
# execute the script to generate tarballs
\$ ./tarballs.sh
``````

RPM

(Fedora/CentOS/RedHat)

To create rpm package you need to follow the following steps:

``````# Enter Packaging Directory
\$ cd packaging/rpm
# execute the script to generate tarballs
\$ ./make_rpm.sh
``````

DEB

(Debian/Ubuntu)

To create deb package you need to follow the following steps:

``````# Enter Packaging Directory
\$ cd packaging/deb
# execute the script to generate tarballs
\$ ./make_deb.sh
``````

Install and Uninstall

Install Linux Tarballs

On Unix/Linux system you need to execute the following command to install:

`\$ sudo tar xjf CXXGraph-{version}.tar.bz2`

to uninstall:

`\$ sudo rm -f /usr/include/Graph.hpp /usr/include/CXXGraph*`

Install RPM

On Fedora/CentOS/RedHat system you need to execute the following command to install:

`\$ sudo rpm -ivh CXXGraph-{version}.noarch.rpm`

to uninstall:

`\$ sudo rpm -e CXXGraph-{version}`

Install DEB

On Debian/Ubuntu system you need to execute the following command to install:

`\$ sudo dpkg -i CXXGraph_{version}.deb`

to uninstall:

`\$ sudo apt-get remove CXXGraph`

Install From Source

You can install from source the library using CMake. After the compilation phase, you can use:

`\$ sudo make install`

to install the library.

Work in Progess

How to contribute

If you want give your support you can create a pull request or report an issue . If you want to change the code, or fix issue, or implement a new feature please read our CONTRIBUTING Guide

CXXGraph Site

Contact

E-Mail : [email protected]

Support

To get updated watch the project

References

We are referenced by:

Credits

Thanks to the community of TheAlgorithms for some algorithms ispiration.

Thanks to GeeksForGeeks for some algorithms inspiration.

We are Looking for...

We are looking for developers and committer, also at first experience, we will guide you step by step to the open-source world! If you are interested, please contact us at [email protected] or contribute to this project. We are waiting for you!

I actually implement a much more simple multithread-bfs with OpenMP at first, which is very similar to the pseudocode of the paper from the corresponding issue. But there are two problems with that version of implementation:

• pseudo-multi-thread (parameter num_threads = 1) has a performance advantage over true multi-thread in each benchmark test, even when a graph is large.
• it forces users to load the OpenMP package when they compile their projects

Finally, I change the code to a version with std::threads using condition_variable to synchronize threads and do some code optimization. Although the result of the benchmark is still not good as I expected, at least in the CitHepPh graph true multi-thread performs better than pseudo-multi-thread.

test core repo
opened by suncanghuai 9
• Implement best first search

Closes #239 Implement best first search algorithm and tests. @ZigRazor This is my first PR and it's not complete yet. I am working on the documentation and I am happy to get some early feedback, thanks.

test core
• Bug found in RWOutputTest test_22 and test_25 (at least)

Those 2 tests supposedly check that compressed files are created (.csv.gz and tsv.gz) and the normal .csv and .tsv are not. This is checked via ASSERT_FALSE(exists_test(filename)).

If we run test_exe and check the content in the folder, we can see that .csv and .tsv files have been created, exist in the folder and the test still passes. This is quite scaring because could be hiding other bugs

Steps to reproduce the behavior:

1. Build test_exe
2. Run ./test_exe and it will pass
3. Run ls
4. Check that supposed non-existing files are there and test still passed.

I would expect both:

• Files are not created
• Test fails if files exist

Test piece of code related to the files - expected results ASSERT_FALSE(exists_test("test_25.tsv")); --> This file exists and it passes = INCORRECT ASSERT_FALSE(exists_test("test_25_NodeFeat.tsv")); --> This file exists and it passes = INCORRECT ASSERT_FALSE(exists_test("test_25_EdgeWeight.tsv")); --> This file exists and it passes = INCORRECT ASSERT_TRUE(exists_test("test_25.tsv.gz")); --> This file exists and it passes = CORRECT ASSERT_TRUE(exists_test("test_25_NodeFeat.tsv.gz")); --> This file exists and it passes = CORRECT ASSERT_TRUE(exists_test("test_25_EdgeWeight.tsv.gz")); --> This file exists and it passes = CORRECT

bug test Priority:High
opened by AlfredCP 8

Resolves Refactoring: writeToStandardFile_tsv and writeToStandardFile_csv #168

• The writeToStandardFile_csv and writeToStandardFile_tsv is replaced with writeToStandardFile() with an additional parameter of type InputOutputFormat.

@ZigRazor @AlfredCP @sidml

enhancement core
opened by pavan-pan 6
• replace map with unordered_map

Resolves Use Unordered_map instead of map #157 Replaced all the instances of map with unordered_map. For instances of unordered_map where key is a std::pair, an implementation to calculate hash has been provided.

test core
opened by pavan-pan 6
• Sometimes BellmanFordTest.test_5 fails

BellmanFordTest.test_5 fails but not always

Steps to reproduce:

• Run tests several times, and som of them it fails under error:
``````BellmanFordTest.cpp:170: Failure
Value of: res.negativeCycle
Actual: true
Expected: false
``````
bug test core Priority:High
opened by AlfredCP 6
• Graph Slicing based on connectivity

Add graph slicing based on connectivity. E.g. given A -> B -> C <- D A -> E -> C -> F and the starting node A: A, B, and E can be sliced off. Mathematical definition of the problem: Let G be the set of nodes in a graph and n be a given node in that set. Let C be the non-strict subset of G containing both n and all nodes reachable from n, and let C' be its complement. There's a third set M, which is the non-strict subset of C containing all nodes that are reachable from any node in C'. The problem consists of finding all nodes that belong to C but not to M.

The reason why this problem is relevant is because it's used in garbage collection systems to decide which other objects need to be released, given that one object is about to be released.

enhancement help wanted good first issue development Priority:High hacktoberfest
opened by ZigRazor 6
• Refactoring: writeToStandardFile_tsv and writeToStandardFile_csv

The methods writeToStandardFile_tsv and writeToStandardFile_csv in Graph.hpp have duplicate code. Moving the duplicate code to a common method makes it easier to make future changes. Similar issue with readFromStandardFile_tsv and readFromStandardFile_csv.

enhancement good first issue core Priority:Low
opened by pavan-pan 5
• Add structs default niitial values

• Resolves https://github.com/ZigRazor/CXXGraph/issues/158
• Added initial values for the different structs and member variables not to have unexpected behaviors.
enhancement core
opened by AlfredCP 5
• Floyd Warshall Algorithm

enhancement hacktoberfest
opened by BharaniSri10 5
• Test_11 Failes if it is not the first time being run

Afted building tests, test_11 only passes the first time it is run in a clean build

Steps to reproduce the behavior:

1. From a clean checkout, follow steps to build tests
2. Run tests with './test_exe'
3. All of them will PASS
4. Run it again
5. Test_11 will fail

Expected test pass always

Suspect that a file is created during a test and it is not clean after the run since it is throwing the following message: "Value of: exists_test("graph.tsv") Actual: true Expected: false"

enhancement good first issue test Priority:Medium hacktoberfest
opened by AlfredCP 4
• Return type of Kosaraju

I'm writing some tests for Kosaraju's algorithm (these can potentially close #221), and this made me wonder about `kosaraju()` return type. Specifically, why does it return a `std::vector<std::vector<Node<T>>>`?

Wouldn't it be more appropriate to use `std::unordered_set`'s or something similar? While this could maybe slightly lower the performance, I think it would have much more sense:

• Kosaraju's algorithm returns the set of strongly connected components, that is, a partition of the vertices of the graph. These are just sets of vertices. And neither the sets in the partition or the vertices in each partition have some special ordering
• It would be consistent with the `T_EdgeSet` type (maybe we can even introduce a typedef for a set of vertices)
• It would allow for easier comparisons between vertex partitions and between individual components

What do you think about that?

enhancement good first issue core Priority:Medium
opened by dvd2000 3

What's Changed

• Documentation Update by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/181
• Introduced New Logo by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/184
• Added Author by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/185
• Introduced Boruvka Readme. by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/188
• Removed Useless Thread Safe Version of Graph. by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/189
• Introduced Graph Connectivity, also for Prim's Algorithm by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/190
• Update Image on README.md by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/192
• Updated README.md with some correction by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/193
• Test for Graph Connectivity by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/194
• Updated Readme by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/195
• 36 ford fulkerson algorithm for maximum flow problem by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/199
• Optimization ( Partial ) by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/201
• Fix Dijkstra can not work with DirectedWeightedEdge #205 by @aengusjiang in https://github.com/ZigRazor/CXXGraph/pull/206
• Fix errors causing some tests in PartitionTest to fail. by @daniepin in https://github.com/ZigRazor/CXXGraph/pull/207
• Added One Useful Resource Under Dijkstra Section by @arjunkumar09 in https://github.com/ZigRazor/CXXGraph/pull/210
• Issue 211 (Add Kosaraju Algorithm) by @sarthak17jain in https://github.com/ZigRazor/CXXGraph/pull/219
• Benchmark and optimization by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/223
• correcting spelling and gramatical errors in readme by @thesmartdeveloperr in https://github.com/ZigRazor/CXXGraph/pull/227
• Corrected Memory Leak in Partitioning by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/230
• Preparation for Release 0.4.0 by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/231

New Contributors

• @aengusjiang made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/206
• @daniepin made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/207
• @arjunkumar09 made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/210
• @sarthak17jain made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/219
• @thesmartdeveloperr made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/227

Full Changelog: https://github.com/ZigRazor/CXXGraph/compare/v0.3.0...v0.4.0

Source code(tar.gz)
Source code(zip)
CXXGraph-0.4-0.noarch.rpm(39.77 KB)
CXXGraph-0.4-0.tar.bz2(24.90 KB)
CXXGraph-0.4-0.zip(51.57 KB)
CXXGraph_0.4-0.deb(25.01 KB)

What's Changed

• Partitioning HDRF and Other by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/137
• Added examples using dijkstra and dial. by @joechai93 in https://github.com/ZigRazor/CXXGraph/pull/176
• Introduced EBV Partition Algorithm by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/179
• Release v0.3.0 by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/180

New Contributors

• @joechai93 made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/176

Full Changelog: https://github.com/ZigRazor/CXXGraph/compare/v0.2.2...v0.3.0

Source code(tar.gz)
Source code(zip)
CXXGraph-0.3-0.noarch.rpm(40.23 KB)
CXXGraph-0.3-0.tar.bz2(24.52 KB)
CXXGraph-0.3-0.zip(52.62 KB)
CXXGraph_0.3-0.deb(24.47 KB)

What's Changed

• Documentation Update by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/50
• Documentation Update by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/52
• Update README.md for Hacktoberfest by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/62
• Fixed typos by @SaloniThete in https://github.com/ZigRazor/CXXGraph/pull/63
• Update README.md by @sanson-robotics in https://github.com/ZigRazor/CXXGraph/pull/67
• Add CodeSee architecture diagram workflow to repository by @codesee-architecture-diagrams in https://github.com/ZigRazor/CXXGraph/pull/68
• Bellman-Ford algorithm by @sidml in https://github.com/ZigRazor/CXXGraph/pull/69
• Floyd Warshall Algorithm by @sidml in https://github.com/ZigRazor/CXXGraph/pull/72
• Update README.md by @Sandeep-BlackHat in https://github.com/ZigRazor/CXXGraph/pull/66
• Thread-Safe version of Bellman-Ford Algorithm by @Dishantdhillon in https://github.com/ZigRazor/CXXGraph/pull/73
• Thread-Safe version of Floyed-Warshall Algorithm by @Dishantdhillon in https://github.com/ZigRazor/CXXGraph/pull/77
• add bellman-ford description by @sidml in https://github.com/ZigRazor/CXXGraph/pull/79
• Graph Slicing based on connectivity by @sidml in https://github.com/ZigRazor/CXXGraph/pull/82
• Add more tests by @sidml in https://github.com/ZigRazor/CXXGraph/pull/85
• Update label.yml by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/92
• Prim's algorithm for finding minimum spanning tree by @sidml in https://github.com/ZigRazor/CXXGraph/pull/89
• Better Format for README by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/94
• Delete packaging/deb/CXXGraph/usr directory by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/98
• added prim's algorithm description. #95 by @oliviacarino in https://github.com/ZigRazor/CXXGraph/pull/96
• Update CMakeLists.txt by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/97
• Update README.md by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/99
• Update benchmark.yml by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/100
• Tests & Thread safe dijkstra by @sidml in https://github.com/ZigRazor/CXXGraph/pull/93
• Release version 0.2.0 (2021-10-15) by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/108
• Documentation Update by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/109
• Update of Haxelib config file by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/111
• Union-Find Data Structure by @sidml in https://github.com/ZigRazor/CXXGraph/pull/113
• Boruvka's Algorithm for MST by @sidml in https://github.com/ZigRazor/CXXGraph/pull/115
• Adding library name (CXXGRAPH) in header guards to avoid possible conflicts in include folders Node and Graph by @AlfredCP in https://github.com/ZigRazor/CXXGraph/pull/117
• Cycle check using Union-Find for Undirected Graphs by @sidml in https://github.com/ZigRazor/CXXGraph/pull/120
• Update contributing links by @AlfredCP in https://github.com/ZigRazor/CXXGraph/pull/124
• Clean up temporary test files by @AlfredCP in https://github.com/ZigRazor/CXXGraph/pull/126
• Kruskal's Algorithm for MST by @sidml in https://github.com/ZigRazor/CXXGraph/pull/127
• Remove intemediate files by @AlfredCP in https://github.com/ZigRazor/CXXGraph/pull/129
• Add kruskal algorithm description by @AlfredCP in https://github.com/ZigRazor/CXXGraph/pull/131
• Fix prim algorithm link by @AlfredCP in https://github.com/ZigRazor/CXXGraph/pull/135
• Add node tests by @AlfredCP in https://github.com/ZigRazor/CXXGraph/pull/136
• Resolves #106 by @sidml in https://github.com/ZigRazor/CXXGraph/pull/138
• Update benchmark.yml by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/139
• Create benchmark_pr.yml by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/141
• Removed Alert of LGTM for Graph.hpp by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/142

New Contributors

• @SaloniThete made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/63
• @sanson-robotics made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/67
• @codesee-architecture-diagrams made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/68
• @sidml made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/69
• @Sandeep-BlackHat made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/66
• @Dishantdhillon made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/73
• @oliviacarino made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/96
• @AlfredCP made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/117

Full Changelog: https://github.com/ZigRazor/CXXGraph/compare/v0.1.6...v0.2.1

Source code(tar.gz)
Source code(zip)

What's Changed

• Documentation Update by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/50
• Documentation Update by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/52
• Update README.md for Hacktoberfest by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/62
• Fixed typos by @SaloniThete in https://github.com/ZigRazor/CXXGraph/pull/63
• Update README.md by @sanson-robotics in https://github.com/ZigRazor/CXXGraph/pull/67
• Add CodeSee architecture diagram workflow to repository by @codesee-architecture-diagrams in https://github.com/ZigRazor/CXXGraph/pull/68
• Bellman-Ford algorithm by @sidml in https://github.com/ZigRazor/CXXGraph/pull/69
• Floyd Warshall Algorithm by @sidml in https://github.com/ZigRazor/CXXGraph/pull/72
• Update README.md by @Sandeep-BlackHat in https://github.com/ZigRazor/CXXGraph/pull/66
• Thread-Safe version of Bellman-Ford Algorithm by @Dishantdhillon in https://github.com/ZigRazor/CXXGraph/pull/73
• Thread-Safe version of Floyed-Warshall Algorithm by @Dishantdhillon in https://github.com/ZigRazor/CXXGraph/pull/77
• add bellman-ford description by @sidml in https://github.com/ZigRazor/CXXGraph/pull/79
• Graph Slicing based on connectivity by @sidml in https://github.com/ZigRazor/CXXGraph/pull/82
• Add more tests by @sidml in https://github.com/ZigRazor/CXXGraph/pull/85
• Update label.yml by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/92
• Prim's algorithm for finding minimum spanning tree by @sidml in https://github.com/ZigRazor/CXXGraph/pull/89
• Better Format for README by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/94
• Delete packaging/deb/CXXGraph/usr directory by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/98
• added prim's algorithm description. #95 by @oliviacarino in https://github.com/ZigRazor/CXXGraph/pull/96
• Update CMakeLists.txt by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/97
• Update README.md by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/99
• Update benchmark.yml by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/100
• Tests & Thread safe dijkstra by @sidml in https://github.com/ZigRazor/CXXGraph/pull/93
• Release version 0.2.0 (2021-10-15) by @ZigRazor in https://github.com/ZigRazor/CXXGraph/pull/108

New Contributors

• @SaloniThete made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/63
• @sanson-robotics made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/67
• @codesee-architecture-diagrams made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/68
• @sidml made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/69
• @Sandeep-BlackHat made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/66
• @Dishantdhillon made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/73
• @oliviacarino made their first contribution in https://github.com/ZigRazor/CXXGraph/pull/96

Full Changelog: https://github.com/ZigRazor/CXXGraph/compare/v0.1.6...v0.2.0

Source code(tar.gz)
Source code(zip)
CXXGraph-0.2-0.noarch.rpm(34.38 KB)
CXXGraph-0.2-0.tar.bz2(19.94 KB)
CXXGraph_0.2-0.deb(20.07 KB)

Commits

• 8062ce5: Corrected README Test and Benchmark sections (ZigRazor)
• b84f162: Update README.md for Packaging (ZigRazor)
• df17b76: introduced Install/uninstall section on README.md (ZigRazor)
• 129aeee: Introduced Compression/Decompression for Export/Import (ZigRazor)
• ec972e6: Merge branch 'master' of https://github.com/ZigRazor/CXXGraph (ZigRazor)
• 9a7c555: Introduced New Benchmark for remove Edge (ZigRazor)
• 7daeb9b: Solved a bug where the mutex are locked twice (ZigRazor)
• 8b6e56b: Fix #48 : (ZigRazor)
• 69262e6: Documentation update for WriteToFile Function (ZigRazor)
• d5c0a28: Updated Version to 0.1.6 (ZigRazor)

Source code(tar.gz)
Source code(zip)
CXXGraph-0.1-6.noarch.rpm(21.27 KB)
CXXGraph-0.1-6.tar.bz2(12.69 KB)
CXXGraph_0.1-6.deb(12.68 KB)

Commits

• 0441deb: Added installation of lib under /usr/include (ZigRazor)
• dd36b64: Introduced Script to create tarballs (ZigRazor)
• ef746b5: Introduced Generation of RPM (ZigRazor)
• ac6b443: Introduced Packaging for Debian/Ubuntu (ZigRazor)
• 3860594: Create automatic_tagged_release.yml (ZigRazor)
• 1a97f7b: Update Version to 0.1.5 (ZigRazor)
• 8ffb0fb: Documentation Update (#44) (ZigRazor) #44
• afec411: Update automatic_tagged_release.yml (ZigRazor)
• 9628bc0: Update Doxyfile (ZigRazor)
• a6f33d1: Update automatic_tagged_release.yml (ZigRazor)
• 70ee404: Update Doxyfile (ZigRazor)
• 1edefbb: Update automatic_tagged_release.yml (ZigRazor)
• 9312f03: Corrected Spec file (ZigRazor)
• 1285d8f: Merge branch 'master' of https://github.com/ZigRazor/CXXGraph (ZigRazor)
Source code(tar.gz)
Source code(zip)
CXXGraph-0.1-5.noarch.rpm(20.09 KB)
CXXGraph-0.1-5.tar.bz2(11.57 KB)
CXXGraph_0.1-5.deb(11.74 KB)

Introduced Features

• Introduced Benchmark
• Introduced ThreadSafe Graph Class (Graph_TS)
• Introduced Dial's Algorithm

Introduced Tests

• Introduced Tests for Thread Safe Graph
• Introduced Tests for Dial's Algorithm

• #33
• #37

Future Developments

• Implementation of other formats for Import/Export.
• New Algorthims
• New Partition Algorithms
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Introduced Features

• Partitioning Statistic, and enhanched Partition class

Introduced Tests

• Introduced Tests for Partitioning Statistic

• #29

Future Developments

• Implementation of other formats for Import/Export.
• New Algorthims
• New Partition Algorithms
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Introduced Features

• Added Partition with Greedy Vertex.Cut Algorithm

Introduced Tests

• Introduced Tests for Partition Algorithm

• #8

Future Developments

• Implementation of other formats for Import/Export.
• New Algorthims
• New Partition Algorithms
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Introduced Features

• Added Import/Export from/to .tsv files

Introduced Tests

• Introduced Tests for import/export tsv

• #20

Future Developments

• Implementation of other formats for Import/Export.
• New Algorthims
• Partition Algorithms
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Introduced Features

• Added Import from .csv files

Introduced Tests

• Introduced Tests for import

• #4

Resolved Major Bug

In this realese is solved a major bug that affects the "addEdge" functions. A good rework to substitute std:set with std::list container but manteining the uniqueness of the edge and the node.

Future Developments

• Implementation of other formats for Export.
• New Algorthims
• Partition Algorithms
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Introduced Features

• Added Working Directory to interface to Export the Graph

Introduced Tests

• Adapted Tests to new interface

• #16

Future Developments

• Implementation of other formats for Export.
• New Algorthims
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Introduced Features

Introduced Export for Standard Output File (.csv) of Node Features and Edge Weights

Introduced Tests

Introduced basic Test for Standard Output File (.csv) export

Future Developments

• Implementation of other formats for Export.
• New Algorthims
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Introduced Features

• Introduced basic implementation of writeToFile function.

Introduced Tests

• Introduced basic Test for writeToFile

Future Developments

• More detailed implementation of csv format for output file and other formats.
• New Algorthims
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Release Version 0.0.6

Introduced Features

``````Introduced Cycle Check for Directed Graph with BFS.
``````

Introduced Tests

``````Introduced Test for Cycle Checks
``````

Future Developments

• New Algorthims
• More in-depth tests
Source code(tar.gz)
Source code(zip)

Release Version 0.0.5

Introduced Features

Introduced Cycle Check for Directed Graph, DFS.

Introduced Tests

Introduced Test for Cycle Checks

Future Developments

• New Algorthims
• More in-depth tests
Source code(tar.gz)
Source code(zip)

• 0.0.3(Oct 16, 2020)

Added BFS algorithm. Tests on BFS. Added Test and some extreme cases correction in the Dijkstra algorithm. Added the funtion that return the node set from the graph and test for this functionalities.

Source code(tar.gz)
Source code(zip)

• v0.0-beta.1(Oct 15, 2020)

This pre-release is a beta with only the base structures for the manage of the Graph in C++. Added the Adjacency Matrix from the Graph. No algorithm over the graph implemented yet.

Source code(tar.gz)
Source code(zip)
Header-only C++ library for robotics, control, and path planning algorithms.

Header-only C++ library for robotics, control, and path planning algorithms.

360 Dec 13, 2022
C++17 (-O2) template for competitive programming algorithms, which contains numerous math algorithms.

cpplibForCP C++17 (-O2) template for competitive programming algorithms, which contains numerous math algorithms. Aims: build a stable, fast, easy-to-

33 Nov 25, 2022

2 Mar 26, 2022
A C++ implementation of the graph algorithm of finding all strongly connected components with DFS

SinkSCC A C++ implementation of the graph algorithm of finding all strongly connected components with DFS. Details Each SCC of a graph can be treated

2 Nov 2, 2021
Implementation of Dijkstra's algorithm for finding the shortest paths between nodes in a graph using Priority Queue data structure in C

Implementation of Dijkstra's algorithm for finding the shortest paths between nodes in a graph using Priority Queue data structure in C. File "airport

1 Jan 24, 2022
A library of common data structures and algorithms written in C.

C Algorithms The C programming language includes a very limited standard library in comparison to other modern programming languages. This is a coll

2.9k Jan 9, 2023
c++ library including few algorithms and datastructures

c++ library including few algorithms and datastructures

2 Dec 25, 2021
Library for building multi-level indoor routes using routing algorithms.

Library for building multi-level indoor routes using routing algorithms. You can easily construct routing graphs and find the shortest path for optimal indoor navigation.

5 Nov 21, 2022
IntX is a C++11 port of IntX arbitrary precision Integer library with speed, about O(N * log N) multiplication/division algorithms implementation.

IntX IntX is a C++11 port of IntX arbitrary precision Integer library with speed, about O(N * log N) multiplication/division algorithms implementation

8 Dec 22, 2022
Collection of algorithms and data structures in C++ and Java

Collection of algorithms and data structures in C++ and Java

1.7k Jan 2, 2023
Several algorithms and data structures implemented in C++ by me (credited to others where necessary).

Algorithms This repository contains my implementations of several algorithms and data structures in C++ (credited to others where necessary). It has i

589 Dec 19, 2022
C++ implementations of well-known (and some rare) algorithms, while following good software development practices

ProAlgos: C++ This project is focused on implementing algorithms and data structures in C++, while following good software engineering practices, such

485 Dec 7, 2022
Provide building blocks (software, hardware and algorithms) for implementing SLAM using small sensors

RemoteSLAM The purpose of this repo is to provide the building blocks (software drivers, hardware and algorithms) for implementing SLAM systems using

38 Jan 20, 2022
Fundamentals of Data structures and algorithms in c++

Data Structures & Algorithms About the repository: Contains theories and programming questions related to fundamentals of data structures and algorith

46 Dec 1, 2022
Every week exercises for Introduction to Algorithms and Programming

cen109-algorithms commands to compile and link C and C++ programs gcc filename.c -o executableFileName g++ filename.cpp -o executableFileName filename

2 Dec 19, 2022
c language's datastruct and algorithms.

cdsaa 介绍 学习数据结构与算法的C语言实现 主要数据结构 动态字符串 动态数组 单向链表 栈 主要算法 更新中. . . 目录结构 |-- include |---- CArray.h 动态数组 |---- CList.h 单向链表 |---- CStack.h 栈 |---- CString

1 Nov 24, 2021
Snowball compiler and stemming algorithms

Snowball is a small string processing language for creating stemming algorithms for use in Information Retrieval, plus a collection of stemming algorithms implemented using it.

611 Dec 30, 2022
Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.

The Algorithms - C # {#mainpage} Overview The repository is a collection of open-source implementation of a variety of algorithms implemented in C and

15.3k Jan 5, 2023
Algorithms & Data structures in C++.

Algorithms & Data Structures in C++ 目标 ( goal ) : 经典的算法实现 (classical algorithms implementations) 服务器端 (based on linux/gcc) 正确，易于使用和改造, 一个头文件一个算法，并附带一个

4.7k Dec 30, 2022