For a given matrix, this R script will generate its associated Graph depending on the composition.
R
version 3.5 or up is required
Install build utilities (https://gcc.gnu.org/install/binaries.html)
- Build dependencies (Debian based distros):
$ sudo apt update && apt install make build-essential gcc g++ gfortran
- Build dependencies (Arch based distros):
$ sudo pacman -Syu && pacman -S make build-essential gcc g++ gfortran
To setup properly please follow these steps:
- Run this to clone this repo:
$ git clone https://github.com/nemo256/Rproject
- Change to the Rproject directory:
$ cd Rproject
- Edit the matrix and composition (matrix.txt and composition.txt).
- And finally run the script using this command:
$ R < script.R matrix.txt composition.txt