# NetworkX Graph Generator Service
(TBD)
# NetworkX Random Graph Generator Service

## Quick Start

1. Install Docker: https://store.docker.com/search?type=edition&offering=community
1. (Optional) Install jq
1. Make sure you also have latest version of Docker Compose
1. From this directory, type ```docker-compose build && docker-compose up```
1. ```curl -d "@./sample-data/sample.cx" -H "Content-Type: application/json" -X POST localhost | jq .```
1. Now you should get a network with some new network attributes.


## Parameters
### Algorithm
You can select a graph generator by adding query-string `algorithm`

e.g. 
` curl -d "@./sample-data/sample.cx" -H "Content-Type: application/json" -X POST localhost?algorithm=gnm_random_graph" | jq
`

Random graph generator you can select are below.
- `fast_gnp_random_graph`
- `gnp_random_graph`
- `dense_gnm_random_graph`
- `gnm_random_graph`
- `erdos_renyi_graph`
- `binomial_graph`
- `newman_watts_strogatz_graph`
- `watts_strogatz_graph`
- `connected_watts_strogatz_graph`
- `random_regular_graph`
- `barabasi_albert_graph`
- `powerlaw_cluster_graph`
- `random_lobster`
- `random_powerlaw_tree`


### Generator's Parameters
You can also pass graph generator's parameters by adding query-string.
You can see parameters you can pass in the following link
https://networkx.github.io/documentation/development/reference/generators.html#module-networkx.generators.random_graphs

If you don't pass parameters, default parameters are passed.

Add readme of graph generator
Add readme of graph generator
