An open API service indexing awesome lists of open source software.

https://github.com/badr-1/degrees-of-separation

a re-make of https://github.com/Badr-1/Small-World-phenomenon
https://github.com/badr-1/degrees-of-separation

alogrithms bfs-algorithm kotlin

Last synced: 3 months ago
JSON representation

a re-make of https://github.com/Badr-1/Small-World-phenomenon

Awesome Lists containing this project

README

        

# Degrees of Separation

This is a re-make of the [Small-World-phenomenon](https://github.com/Badr-1/Small-World-phenomenon).

## Description

The original project used to take a list of movies and actors who played in them,
and answer queries about the Degree of Separation between two actors.

### Sample Input Format

tab-separated values (tsv), comma-separated values (csv), or slash-separated values (ssv)
```tsv
movie1 actor1 actor2 actor3
movie2 actor2 actor4 actor5
```

```csv
movie1,actor1,actor2,actor3
movie2,actor2,actor4,actor5
```

```ssv
movie1/actor1/actor2/actor3
movie2/actor2/actor4/actor5
```

## Modifications

- [x] make it modular, i.e., make it possible to use it with any dataset
- [x] make it cli-based
- [x] allow for verbose output

## Usage

You can either:
- load the dataset and query all at once
- load the dataset and query interactively

### Load the dataset and query all at once

```bash
dos -d -q
```

### Load the dataset and query interactively

```bash
dos -d
```

### Verbose Option

```bash
dos -d -v
# or
dos -d -q -v
```