Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
ZigRazor edited this pageMar 18, 2022 ·7 revisions

CXXGraph

DOI

DOI

codecovCodeFactor

GitHub licenseGitHub release

LGTM AlertsLGTM Grade

Generic badgeGeneric badgeGeneric badge

Generic badgeGeneric badge

Share onTweet

Introduction

CXXGraph is a small library, header only, that manages the Graph and it's algorithms inC++. In other words a "Comprehensive C++ Graph Library".An alternative toBoost Graph Library (BGL).

We are Looking for...

We are looking for:

  • Site Developer for the development of the CXXGraph site ( for the moment on GitHub Page );
  • Developers and Committers, also atfirst experience, we will guide you step by step to the open-source world!

If you are interested, please contact us atzigrazor@gmail.com or contribute to this project. We are waiting for you!

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.

Classes Explanation

The Classes Explanation can be found in theDoxygen Documentation, in theClasses Section

Requirements

The minimun C++ standard required isC++17 and a G++ compiler version greater than 7.3.0.Are also requiredOpenSSL library

How to use

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

Example

Work in Progess

Unit-Test Execution

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

OpenSSL installation

OpenSSL

Ubuntu/Debian

sudo apt-get install openssl libssl-dev

RedHat/CentOS/RockyLinux/Fedora

yum install openssl-devel

Other System

You can find more information on how to install OpenSSL at thislink

Google Test Installation

GoogleTest

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

How to Compile Test

From the base directory:

mkdir -p build# Create a directory to hold the build output.cd build# Enter the build foldercmake ..# Generate native build scripts for GoogleTest.make# Compile

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 thegoogle test and thegoogle benchmark library.

Google Benchmark Installation

Google Benchmark

# Check out the library.$ git clone https://github.com/google/benchmark.git# Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory.$ git clone https://github.com/google/googletest.git benchmark/googletest# 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

From the base directory:

mkdir -p build# Create a directory to hold the build output.cd build# Enter the build foldercmake -DBENCHMARK=ON ..# Generate native build scripts for GoogleTest.make# Compile

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 thislink

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

How to contribute

GitHub contributorsIf you want give your support you can create apull requestGitHub pull-requests or report anissueGitHub issues.If you want to change the code, or fix issue, or implement a new feature please read ourCONTRIBUTING Guide

If you want to disscuss new feature or you have any question or suggestion about library please open aDiscussion.

Site

CXXGraph Site

Contact

E-Mail :zigrazor@gmail.com

GitHub ProfileProfile views

ZigRazor's github stats

Support

To support me just addStar the projectGitHub stars orfollow meGitHub followers

To get updatedwatch the projectGitHub watchers

References

We are referenced by:

Credits

Thanks to the community ofTheAlgorithms for some algorithms ispiration.

Thanks toGeeksForGeeks for some algorithms inspiration.

Contributors

Thank you to all the people who have already contributed to CXXGraph!

Contributors

Cite Us

If you use this software please follow theCITATION istruction.Thank you!

Hacktoberfest 2k21

We have been participated at Hacktoberfest 2021, thank you to all the contributors!

Other Details

View theEstimated Value of the Project

Author


@ZigRazor

footer

All right reserved

Clone this wiki locally


[8]ページ先頭

©2009-2026 Movatter.jp