Digraphs in Laravel/Eloquent
git clone https://github.com/medilies/didata_coding_challenge
cd didata_coding_challenge
composer install
cp .\.env.example .\.env
- create a database and fill its credentials in
.env
php artisan key:generate
php artisan migrate
Create a random graph with nodes and random relations
php artisan graph:gen --nbNodes=<int>
Display a graph stats
php artisan graph:stats --gid=<int>
Delete all empty graphs
php artisan graph:clear
php artisan test
php artisan migrate:fresh --seed