diff --git a/Dockerfile b/Dockerfile
index 4805f7e..4a1dc56 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,20 +1,25 @@
-FROM python:3.6-slim
-MAINTAINER Salvo Rinzivillo Instantiate a KerteszThreshold Model on the network bound to the provided token. The token. A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution. The initial percentage of infected nodes. The adopter rate. Fixed probability of self-infection per iteration. Percentage of blocked nodes. Instantiate a SI Model on the dynamic network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Instantiate a SIR Model on the dynamic network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Recovery rate. Instantiate a SIS Model on the Dynamic network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Recovery rate. Instantiate an Independent Cascades Model on the network bound to the provided token. The edge threshold is assumed equal to 0.1 divided for all edges: this behavior can be changed by using the advanced configuration endpoint. The token. The initial percentage of infected nodes. Instantiate a Profile Model on the network bound to the provided token. The token. A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution. Probability for a node that chose to not adopt to became blocked Probability of spontaneous adoption The initial percentage of infected nodes. Instantiate a Profile-Threshold Model on the network bound to the provided token. The token. A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution. A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution. Probability for a node that chose to not adopt to became blocked Probability of spontaneous adoption The initial percentage of infected nodes. Instantiate a SEIR Model on the network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Recovery rate. Incubation period. Instantiate a SEIS Model on the network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Recovery rate. Incubation period. Instantiate a SI Model on the network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Instantiate a SIR Model on the network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Recovery rate. Instantiate a SIS Model on the network bound to the provided token. The token. The initial percentage of infected nodes. Infection rate. Recovery rate. Instantiate a Threshold Model on the network bound to the provided token. The token. A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution. The initial percentage of infected nodes. This endpoint allows for an in-depth specification of the planned experiment. The advanced configuration regards:
The configuration will be applied to all the models attached to the experiment (if not specified otherwise). Pay attention: this endpoint should be called only after having instantiated both Network and Model resources.
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "status", "description": "JSON description of the node/edge attributes.
" } ] }, "examples": [ { "title": "Expected JSON Input (could be partially filled)", "content": "{\n 'nodes':\n {\n 'threshold': {\"node1\": 0.1, \"node2\": 0.05, \"node3\": 0.24 },\n 'profile': {\"node1\": 0.4, \"node2\": 0.5, \"node3\": 0.64}\n },\n 'edges':\n [\n {\n \"source\": \"node1\",\n \"target\": \"node2\",\n \"weight\": 0.2\n },\n {\n \"source\": \"node2\",\n \"target\": \"node3\",\n \"weight\": 0.7\n },\n ],\n 'model': {'model_parameter': parameter_value},\n 'status': {'status_name': [node1, node2, node3]}\n}", "type": "json" } ] }, "name": "configure", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Configure', data={'status': json, 'models': 'model1,model2','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Delete all the resources (the network and the models) attached to the specified experiment.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "name": "deleteexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Experiment', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Describe the resources (Network and Models) involved in the experiment.
", "version": "0.1.0", "name": "describeexp", "group": "Experiment", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[Python request] Example usage:", "content": "post('http://localhost:5000/api/ExperimentStatus')", "type": "python" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Setup a new experiment and generate a its unique identifier. An experiment is described by the Network (only one) and Models associated to it.
", "version": "0.1.0", "name": "getexp", "group": "Experiment", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Experiment')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Reset the status of models attached to the specified experiment. If no models are specified all the current experiment statuses will be reset.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String of comma separated model names.
" } ] } }, "name": "resetexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/ExperimentStatus', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Return the available network endpoints and their parameters
", "version": "0.6.0", "name": "listexploratory", "group": "Exploratory", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "exploratories", "description": "List of available exploratories.
" } ] }, "examples": [ { "title": "Response example: Available exploratories", "content": "{'exploratory':\n [\n {\n \"name\": \"Lastfm_rock\",\n \"network\": \"Lastfm\",\n \"node_attributes\": [\"profile\", \"threshold\"],\n \"edge_attributes\": [\"weight\"],\n \"description\": \"Diffusion threshold and profiles computed on rock listening data\"\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Load the configuration data for a specific exploratory.
", "version": "0.6.0", "name": "loadexploratory", "group": "Exploratory", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "exploratory", "description": "The exploratory name.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Return the next iteration for all the models bind to the provided token.
", "version": "0.1.0", "name": "iterator", "group": "Iterators", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n 'Model2':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n }\n }", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Iteration', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Iteration" } ] }, { "type": "post", "url": "/api/IterationBunch", "title": "Iteration Bunch", "description": "Return the next
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "bunch", "description": "Then number of iteration to return.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 1,\n 'node3': 0\n }\n }\n ],\n 'Model2':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 1\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/IterationBunch', data={'token': token, 'bunch': bunch, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/IterationBunch" } ] }, { "type": "put", "url": "/api/Generators/BarabasiAlbertGraph", "title": "Barabasi-Albert", "description": "Create a BA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" } ] } }, "name": "BAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/BarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/BarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/ClusteredBarabasiAlbertGraph", "title": "Clustered-Barabasi-Albert", "description": "Create a CBA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "Probability of adding a triangle after adding a random edge
" } ] } }, "name": "CBAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ClusteredBarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ClusteredBarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/CompleteGraph", "title": "Complete Graph", "description": "Create a complete graph of size n and bind it to the provided token
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "n", "description": "The number of nodes.
" } ] } }, "name": "CompleteGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/CompleteGraph', data={'n': n, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/CompleteGraph" } ] }, { "type": "put", "url": "/api/Generators/ERGraph", "title": "Erdos-Renyi", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The rewiring probability.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "t", "description": "Number of temporal snapshots If not specified an undirected graph will be generated.
" } ] } }, "name": "ERGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ERGraph', data={'n': n, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ERGraph" } ] }, { "type": "put", "url": "/api/Generators/PlantedPartition", "title": "Planted l-partitions", "description": "Create a Planted l-Parition graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "l", "description": "The number of groups.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "k", "description": "The number of nodes per group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pin", "description": "The probability of connecting vertices within a group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pout", "description": "The probability of connecting vertices between a group.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed. If not specified an undirected graph will be generated.
" } ] } }, "name": "PlantedPartition", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/PlantedPartition', data={'l': l, 'k': k, 'pin': pin, 'pout': pout, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/PlantedPartition" } ] }, { "type": "put", "url": "/api/Generators/WattsStrogatzGraph", "title": "Watts-Strogatz", "description": "Create a WS graph compliant to the specified parameters and bind it to the provided token
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "k", "description": "Each node is connected to k nearest neighbors in ring topology
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The probability of rewiring each edge
" } ] } }, "name": "WSGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/WattsStrogatzGraph', data={'n': n, 'k': k, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/WattsStrogatzGraph" } ] }, { "type": "post", "url": "/api/GetGraph", "title": "Get Network", "description": "Return the json representation of the network analyzed
", "version": "0.5.0", "name": "expgraphs", "group": "Networks", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "optional": false, "field": "token", "description": "The token
" } ] } }, "success": { "examples": [ { "title": "Response example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"barabasi_albert_graph(5,1)\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/GetGraph'data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/GetGraph" } ] }, { "type": "put", "url": "/api/Networks", "title": "Load real graph", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "name", "description": "The network name.
" } ] } }, "name": "loadgraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Networks', data={'name': 'Last.fm','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "put", "url": "/api/UploadNetwork", "title": "Upload Network", "description": "@apiVersion 0.9.0
", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph is directed
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "graph", "description": "JSON description of the graph attributes.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "dynamic", "description": "If the graph is a dynamic one.
" } ] }, "examples": [ { "title": "graph example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"graph_name\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "name": "upload", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/UploadNetwork', data={'file': JSON, 'directed': False, 'token': token})", "type": "json" } ], "version": "0.0.0", "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/UploadNetwork" } ] }, { "type": "put", "url": "/api/AlgorithmicBias", "title": "AlgorithmicBias", "description": "Instantiate a AlgorithmicBias Model on the network bound to the provided token.
", "version": "2.0.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "epsilon", "description": "Bounded confidence threshold.
" }, { "group": "Parameter", "type": "Number", "size": "0-100", "optional": false, "field": "gamma", "description": "Algorithmic bias.
" } ] } }, "name": "AlgorithmicBias", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/AlgorithmicBias', data={'token': token, 'epsilon': percentage, 'gamma': gamma})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/AlgorithmicBias" } ] }, { "type": "put", "url": "/api/CognitiveOpinionDynamic", "title": "CognitiveOpinionDynamic", "description": "Instantiate a CognitiveOpinionDynamic Model on the network bound to the provided token.
", "version": "0.9.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "I", "description": "External information.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_min", "description": "Minimum of the range of initial values for node parameter T.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_max", "description": "Maximum of the range of initial values for node parameter T. If T_range_min>T_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_min", "description": "Minimum of the range of initial values for node parameter B;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_max", "description": "Maximum of the range of initial values for node parameter B. If B_range_min>B_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_negative", "description": "Fraction of individuals having the node parameter R=-1;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_neutral", "description": "Fraction of individuals having the node parameter R=0;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_positive", "description": "Fraction of individuals having the node parameter R=1. The following relation should hold: R_fraction_negative+R_fraction_neutral+R_fraction_positive=1. To achieve this, the fractions selected will be normalised to sum 1.
" } ] } }, "name": "CognitiveOpinionDynamic", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/CognitiveOpinionDynamic', data={'token': token, 'infected': percentage, 'adopters_rate': adopters_rate, 'blocked': blocked, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/CognitiveOpinionDynamic" } ] }, { "type": "put", "url": "/api/MajorityRule", "title": "Majority Rule", "description": "Instantiate the Majority Rule Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-N", "optional": false, "field": "q", "description": "The group size.
" } ] } }, "name": "majority", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Majority', data={'token': token, 'infected': percentage, 'q': q})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/MajorityRule" } ] }, { "type": "put", "url": "/api/QVoter", "title": "QVoter", "description": "Instantiate the QVoter Model on the network bound to the provided token.
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "q", "description": "Number of neighbours that affect the opinion of an agent
" } ] } }, "name": "qvoter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/QVoter', data={'token': token, 'q': number,'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/QVoter" } ] }, { "type": "put", "url": "/api/Sznajd", "title": "Sznajd", "description": "Instantiate the Sznajd Model on the network bound to the provided token. The model is defined for complete graphs, however it can be applied to generic ones.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "sznajd", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Sznajd', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Sznajd" } ] }, { "type": "put", "url": "/api/Voter", "title": "Voter", "description": "Instantiate the Voter Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "voter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Voter', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Voter" } ] }, { "type": "delete", "url": "/api/Models", "title": "Models Destroy", "description": "Delete model resources attached to the specified token. If no models are specified all the ones bind to the experiment will be destroyed.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "name": "deletemodels", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Models', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "delete", "url": "/api/Networks", "title": "Network Destroy", "description": "Delete the graph resource attached to the specified token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" } ] } }, "name": "destroynetwork", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Networks', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Networks", "title": "Real Networks Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.4.0", "name": "getgraphs", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Available networks", "content": "{'networks':\n [\n {\n 'name': 'Lastfm',\n 'size':\n {\n 'nodes': 70000,\n 'edges': 389639\n },\n 'description': 'Undirected social graph involving UK users of Last.fm'\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Networks')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Models", "title": "Models Endpoints", "description": "Return the available models endpoints and their parameter specification
", "version": "0.1.0", "name": "getmodellist", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of model endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endponts':\n [\n {\n 'name': 'Threshold',\n 'uri': 'http://localhost:5000/api/Models/Threshold',\n 'params':\n {\n 'token': 'access token',\n }\n },\n {\n 'name': 'SIR',\n 'uri': 'http://localhost:5000/api/Models/SIR',\n 'params':\n {\n 'token': 'access token',\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Models')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "get", "url": "/api/Generators", "title": "Network Generator Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.1.0", "name": "getnetworks", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endpoints':\n [\n {\n 'name': 'Erdos Reny',\n 'uri': 'http://localhost:5000/api/Networks/ERGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'p': 'rewiring probability'\n }\n },\n {\n 'name': 'Barabasi Albert',\n 'uri': 'http://localhost:5000/api/Networks/BarabasiAlbertGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'm': 'Number of edges to attach from a new node to existing nodes'\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Generators')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators" } ] }, { "success": { "fields": { "Success 200": [ { "group": "Success 200", "optional": false, "field": "varname1", "description": "No type.
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "varname2", "description": "With type.
" } ] } }, "type": "", "url": "", "version": "0.0.0", "filename": "ndlib-rest/static/docs/main.js", "group": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "groupTitle": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "name": "" } ] }); +define({ "api": [ { "type": "put", "url": "/api/KerteszThreshold", "title": "KerteszThreshold", "description": "Instantiate a KerteszThreshold Model on the network bound to the provided token.
", "version": "0.9.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "The adopter rate. Fixed probability of self-infection per iteration.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Percentage of blocked nodes.
" } ] } }, "name": "KerteszThreshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/KerteszThreshold', data={'token': token, 'infected': percentage, 'adopters_rate': adopters_rate, 'blocked': blocked, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/KerteszThreshold" } ] }, { "type": "put", "url": "/api/dSI", "title": "DynSI", "description": "Instantiate a SI Model on the dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" } ] } }, "name": "dsi", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSI', data={'beta': beta, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSI" } ] }, { "type": "put", "url": "/api/dSIR", "title": "DynSIR", "description": "Instantiate a SIR Model on the dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" } ] } }, "name": "dsir", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSIR', data={'beta': beta, 'gamma': gamma, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSIR" } ] }, { "type": "put", "url": "/api/dSIS", "title": "DynSIS", "description": "Instantiate a SIS Model on the Dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" } ] } }, "name": "dsis", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSIS', data={'beta': beta, 'lambda': lambda, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSIS" } ] }, { "type": "put", "url": "/api/IndependentCascades", "title": "Independent Cascades", "description": "Instantiate an Independent Cascades Model on the network bound to the provided token. The edge threshold is assumed equal to 0.1 divided for all edges: this behavior can be changed by using the advanced configuration endpoint.
", "version": "0.5.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "indepcascades", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/IndependentCascades', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/IndependentCascades" } ] }, { "type": "put", "url": "/api/Profile", "title": "Profile", "description": "Instantiate a Profile Model on the network bound to the provided token.
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "profile", "description": "A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Probability for a node that chose to not adopt to became blocked
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "Probability of spontaneous adoption
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "profile", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Profile', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Profile" } ] }, { "type": "put", "url": "/api/ProfileThreshold", "title": "Profile-Threshold", "description": "Instantiate a Profile-Threshold Model on the network bound to the provided token.
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "profile", "description": "A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Probability for a node that chose to not adopt to became blocked
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "Probability of spontaneous adoption
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "profilethreshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/ProfileThreshold', data={'token': token, 'infected': percentage, 'threshold': threshold, 'profile': profile})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/ProfileThreshold" } ] }, { "type": "put", "url": "/api/SEIR", "title": "SEIR", "description": "Instantiate a SEIR Model on the network bound to the provided token.
", "version": "1.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "alpha", "description": "Incubation period.
" } ] } }, "name": "seir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SEIS', data={'beta': beta, 'gamma': gamma, 'alpha': alpha, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SEIR" } ] }, { "type": "put", "url": "/api/SEIS", "title": "SEIS", "description": "Instantiate a SEIS Model on the network bound to the provided token.
", "version": "1.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "alpha", "description": "Incubation period.
" } ] } }, "name": "seis", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SEIS', data={'beta': beta, 'lambda': lambda, 'alpha': alpha, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SEIS" } ] }, { "type": "put", "url": "/api/SI", "title": "SI", "description": "Instantiate a SI Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" } ] } }, "name": "si", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SI', data={'beta': beta, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SI" } ] }, { "type": "put", "url": "/api/SIR", "title": "SIR", "description": "Instantiate a SIR Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" } ] } }, "name": "sir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SIR', data={'beta': beta, 'gamma': gamma, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SIR" } ] }, { "type": "put", "url": "/api/SIS", "title": "SIS", "description": "Instantiate a SIS Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" } ] } }, "name": "sis", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SIS', data={'beta': beta, 'lambda': lambda, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SIS" } ] }, { "type": "put", "url": "/api/SWIR", "title": "SWIR", "description": "Instantiate a SWIR Model on the network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "kappa", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "mu", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "nu", "description": "Incubation period.
" } ] } }, "name": "swir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SWIR', data={'kappa': kappa, 'mu': mu, 'nu': nu, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SWIR" } ] }, { "type": "put", "url": "/api/Threshold", "title": "Threshold", "description": "Instantiate a Threshold Model on the network bound to the provided token.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "threshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Threshold', data={'token': token, 'infected': percentage, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Threshold" } ] }, { "type": "put", "url": "/api/Configure", "title": "Advanced Configuration", "description": "This endpoint allows for an in-depth specification of the planned experiment. The advanced configuration regards:
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "status", "description": "JSON description of the node/edge attributes.
" } ] }, "examples": [ { "title": "Expected JSON Input (could be partially filled)", "content": "{\n 'nodes':\n {\n 'threshold': {\"node1\": 0.1, \"node2\": 0.05, \"node3\": 0.24 },\n 'profile': {\"node1\": 0.4, \"node2\": 0.5, \"node3\": 0.64}\n },\n 'edges':\n [\n {\n \"source\": \"node1\",\n \"target\": \"node2\",\n \"weight\": 0.2\n },\n {\n \"source\": \"node2\",\n \"target\": \"node3\",\n \"weight\": 0.7\n },\n ],\n 'model': {'model_parameter': parameter_value},\n 'status': {'status_name': [node1, node2, node3]}\n}", "type": "json" } ] }, "name": "configure", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Configure', data={'status': json, 'models': 'model1,model2','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Delete all the resources (the network and the models) attached to the specified experiment.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "name": "deleteexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Experiment', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Describe the resources (Network and Models) involved in the experiment.
", "version": "0.1.0", "name": "describeexp", "group": "Experiment", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[Python request] Example usage:", "content": "post('http://localhost:5000/api/ExperimentStatus')", "type": "python" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Setup a new experiment and generate a its unique identifier. An experiment is described by the Network (only one) and Models associated to it.
", "version": "0.1.0", "name": "getexp", "group": "Experiment", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Experiment')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Reset the status of models attached to the specified experiment. If no models are specified all the current experiment statuses will be reset.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String of comma separated model names.
" } ] } }, "name": "resetexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/ExperimentStatus', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Return the available network endpoints and their parameters
", "version": "0.6.0", "name": "listexploratory", "group": "Exploratory", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "exploratories", "description": "List of available exploratories.
" } ] }, "examples": [ { "title": "Response example: Available exploratories", "content": "{'exploratory':\n [\n {\n \"name\": \"Lastfm_rock\",\n \"network\": \"Lastfm\",\n \"node_attributes\": [\"profile\", \"threshold\"],\n \"edge_attributes\": [\"weight\"],\n \"description\": \"Diffusion threshold and profiles computed on rock listening data\"\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Load the configuration data for a specific exploratory.
", "version": "0.6.0", "name": "loadexploratory", "group": "Exploratory", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "exploratory", "description": "The exploratory name.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Return the next iteration for all the models bind to the provided token.
", "version": "0.1.0", "name": "iterator", "group": "Iterators", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n 'Model2':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n }\n }", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Iteration', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Iteration" } ] }, { "type": "post", "url": "/api/IterationBunch", "title": "Iteration Bunch", "description": "Return the next
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "bunch", "description": "Then number of iteration to return.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 1,\n 'node3': 0\n }\n }\n ],\n 'Model2':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 1\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/IterationBunch', data={'token': token, 'bunch': bunch, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/IterationBunch" } ] }, { "type": "put", "url": "/api/Generators/BarabasiAlbertGraph", "title": "Barabasi-Albert", "description": "Create a BA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" } ] } }, "name": "BAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/BarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/BarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/ClusteredBarabasiAlbertGraph", "title": "Clustered-Barabasi-Albert", "description": "Create a CBA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "Probability of adding a triangle after adding a random edge
" } ] } }, "name": "CBAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ClusteredBarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ClusteredBarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/CompleteGraph", "title": "Complete Graph", "description": "Create a complete graph of size n and bind it to the provided token
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "n", "description": "The number of nodes.
" } ] } }, "name": "CompleteGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/CompleteGraph', data={'n': n, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/CompleteGraph" } ] }, { "type": "put", "url": "/api/Generators/ERGraph", "title": "Erdos-Renyi", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The rewiring probability.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "t", "description": "Number of temporal snapshots If not specified an undirected graph will be generated.
" } ] } }, "name": "ERGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ERGraph', data={'n': n, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ERGraph" } ] }, { "type": "put", "url": "/api/Generators/PlantedPartition", "title": "Planted l-partitions", "description": "Create a Planted l-Parition graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "l", "description": "The number of groups.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "k", "description": "The number of nodes per group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pin", "description": "The probability of connecting vertices within a group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pout", "description": "The probability of connecting vertices between a group.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed. If not specified an undirected graph will be generated.
" } ] } }, "name": "PlantedPartition", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/PlantedPartition', data={'l': l, 'k': k, 'pin': pin, 'pout': pout, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/PlantedPartition" } ] }, { "type": "put", "url": "/api/Generators/WattsStrogatzGraph", "title": "Watts-Strogatz", "description": "Create a WS graph compliant to the specified parameters and bind it to the provided token
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "k", "description": "Each node is connected to k nearest neighbors in ring topology
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The probability of rewiring each edge
" } ] } }, "name": "WSGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/WattsStrogatzGraph', data={'n': n, 'k': k, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/WattsStrogatzGraph" } ] }, { "type": "post", "url": "/api/GetGraph", "title": "Get Network", "description": "Return the json representation of the network analyzed
", "version": "0.5.0", "name": "expgraphs", "group": "Networks", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "optional": false, "field": "token", "description": "The token
" } ] } }, "success": { "examples": [ { "title": "Response example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"barabasi_albert_graph(5,1)\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/GetGraph'data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/GetGraph" } ] }, { "type": "put", "url": "/api/Networks", "title": "Load real graph", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "name", "description": "The network name.
" } ] } }, "name": "loadgraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Networks', data={'name': 'Last.fm','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "put", "url": "/api/UploadNetwork", "title": "Upload Network", "description": "@apiVersion 0.9.0
", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph is directed
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "graph", "description": "JSON description of the graph attributes.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "dynamic", "description": "If the graph is a dynamic one.
" } ] }, "examples": [ { "title": "graph example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"graph_name\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "name": "upload", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/UploadNetwork', data={'file': JSON, 'directed': False, 'token': token})", "type": "json" } ], "version": "0.0.0", "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/UploadNetwork" } ] }, { "type": "put", "url": "/api/AlgorithmicBias", "title": "AlgorithmicBias", "description": "Instantiate a AlgorithmicBias Model on the network bound to the provided token.
", "version": "2.0.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "epsilon", "description": "Bounded confidence threshold.
" }, { "group": "Parameter", "type": "Number", "size": "0-100", "optional": false, "field": "gamma", "description": "Algorithmic bias.
" } ] } }, "name": "AlgorithmicBias", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/AlgorithmicBias', data={'token': token, 'epsilon': percentage, 'gamma': gamma})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/AlgorithmicBias" } ] }, { "type": "put", "url": "/api/CognitiveOpinionDynamic", "title": "CognitiveOpinionDynamic", "description": "Instantiate a CognitiveOpinionDynamic Model on the network bound to the provided token.
", "version": "0.9.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "I", "description": "External information.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_min", "description": "Minimum of the range of initial values for node parameter T.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_max", "description": "Maximum of the range of initial values for node parameter T. If T_range_min>T_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_min", "description": "Minimum of the range of initial values for node parameter B;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_max", "description": "Maximum of the range of initial values for node parameter B. If B_range_min>B_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_negative", "description": "Fraction of individuals having the node parameter R=-1;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_neutral", "description": "Fraction of individuals having the node parameter R=0;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_positive", "description": "Fraction of individuals having the node parameter R=1. The following relation should hold: R_fraction_negative+R_fraction_neutral+R_fraction_positive=1. To achieve this, the fractions selected will be normalised to sum 1.
" } ] } }, "name": "CognitiveOpinionDynamic", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/CognitiveOpinionDynamic', data={'token': token, 'infected': percentage, 'adopters_rate': adopters_rate, 'blocked': blocked, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/CognitiveOpinionDynamic" } ] }, { "type": "put", "url": "/api/MajorityRule", "title": "Majority Rule", "description": "Instantiate the Majority Rule Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-N", "optional": false, "field": "q", "description": "The group size.
" } ] } }, "name": "majority", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Majority', data={'token': token, 'infected': percentage, 'q': q})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/MajorityRule" } ] }, { "type": "put", "url": "/api/QVoter", "title": "QVoter", "description": "Instantiate the QVoter Model on the network bound to the provided token.
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "q", "description": "Number of neighbours that affect the opinion of an agent
" } ] } }, "name": "qvoter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/QVoter', data={'token': token, 'q': number,'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/QVoter" } ] }, { "type": "put", "url": "/api/Sznajd", "title": "Sznajd", "description": "Instantiate the Sznajd Model on the network bound to the provided token. The model is defined for complete graphs, however it can be applied to generic ones.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "sznajd", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Sznajd', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Sznajd" } ] }, { "type": "put", "url": "/api/Voter", "title": "Voter", "description": "Instantiate the Voter Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "voter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Voter', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Voter" } ] }, { "type": "delete", "url": "/api/Models", "title": "Models Destroy", "description": "Delete model resources attached to the specified token. If no models are specified all the ones bind to the experiment will be destroyed.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "name": "deletemodels", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Models', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "delete", "url": "/api/Networks", "title": "Network Destroy", "description": "Delete the graph resource attached to the specified token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" } ] } }, "name": "destroynetwork", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Networks', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Networks", "title": "Real Networks Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.4.0", "name": "getgraphs", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Available networks", "content": "{'networks':\n [\n {\n 'name': 'Lastfm',\n 'size':\n {\n 'nodes': 70000,\n 'edges': 389639\n },\n 'description': 'Undirected social graph involving UK users of Last.fm'\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Networks')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Models", "title": "Models Endpoints", "description": "Return the available models endpoints and their parameter specification
", "version": "0.1.0", "name": "getmodellist", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of model endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endponts':\n [\n {\n 'name': 'Threshold',\n 'uri': 'http://localhost:5000/api/Models/Threshold',\n 'params':\n {\n 'token': 'access token',\n }\n },\n {\n 'name': 'SIR',\n 'uri': 'http://localhost:5000/api/Models/SIR',\n 'params':\n {\n 'token': 'access token',\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Models')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "get", "url": "/api/Generators", "title": "Network Generator Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.1.0", "name": "getnetworks", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endpoints':\n [\n {\n 'name': 'Erdos Reny',\n 'uri': 'http://localhost:5000/api/Networks/ERGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'p': 'rewiring probability'\n }\n },\n {\n 'name': 'Barabasi Albert',\n 'uri': 'http://localhost:5000/api/Networks/BarabasiAlbertGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'm': 'Number of edges to attach from a new node to existing nodes'\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Generators')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators" } ] }, { "success": { "fields": { "Success 200": [ { "group": "Success 200", "optional": false, "field": "varname1", "description": "No type.
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "varname2", "description": "With type.
" } ] } }, "type": "", "url": "", "version": "0.0.0", "filename": "ndlib-rest/static/docs/main.js", "group": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "groupTitle": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "name": "" } ] }); diff --git a/static/docs/api_data.json b/static/docs/api_data.json index 5734145..c92a96a 100644 --- a/static/docs/api_data.json +++ b/static/docs/api_data.json @@ -1 +1 @@ -[ { "type": "put", "url": "/api/KerteszThreshold", "title": "KerteszThreshold", "description": "Instantiate a KerteszThreshold Model on the network bound to the provided token.
", "version": "0.9.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "The adopter rate. Fixed probability of self-infection per iteration.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Percentage of blocked nodes.
" } ] } }, "name": "KerteszThreshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/KerteszThreshold', data={'token': token, 'infected': percentage, 'adopters_rate': adopters_rate, 'blocked': blocked, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/KerteszThreshold" } ] }, { "type": "put", "url": "/api/dSI", "title": "DynSI", "description": "Instantiate a SI Model on the dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" } ] } }, "name": "dsi", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSI', data={'beta': beta, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSI" } ] }, { "type": "put", "url": "/api/dSIR", "title": "DynSIR", "description": "Instantiate a SIR Model on the dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" } ] } }, "name": "dsir", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSIR', data={'beta': beta, 'gamma': gamma, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSIR" } ] }, { "type": "put", "url": "/api/dSIS", "title": "DynSIS", "description": "Instantiate a SIS Model on the Dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" } ] } }, "name": "dsis", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSIS', data={'beta': beta, 'lambda': lambda, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSIS" } ] }, { "type": "put", "url": "/api/IndependentCascades", "title": "Independent Cascades", "description": "Instantiate an Independent Cascades Model on the network bound to the provided token. The edge threshold is assumed equal to 0.1 divided for all edges: this behavior can be changed by using the advanced configuration endpoint.
", "version": "0.5.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "indepcascades", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/IndependentCascades', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/IndependentCascades" } ] }, { "type": "put", "url": "/api/Profile", "title": "Profile", "description": "Instantiate a Profile Model on the network bound to the provided token.
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "profile", "description": "A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Probability for a node that chose to not adopt to became blocked
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "Probability of spontaneous adoption
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "profile", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Profile', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Profile" } ] }, { "type": "put", "url": "/api/ProfileThreshold", "title": "Profile-Threshold", "description": "Instantiate a Profile-Threshold Model on the network bound to the provided token.
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "profile", "description": "A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Probability for a node that chose to not adopt to became blocked
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "Probability of spontaneous adoption
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "profilethreshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/ProfileThreshold', data={'token': token, 'infected': percentage, 'threshold': threshold, 'profile': profile})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/ProfileThreshold" } ] }, { "type": "put", "url": "/api/SEIR", "title": "SEIR", "description": "Instantiate a SEIR Model on the network bound to the provided token.
", "version": "1.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "alpha", "description": "Incubation period.
" } ] } }, "name": "seir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SEIS', data={'beta': beta, 'gamma': gamma, 'alpha': alpha, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SEIR" } ] }, { "type": "put", "url": "/api/SEIS", "title": "SEIS", "description": "Instantiate a SEIS Model on the network bound to the provided token.
", "version": "1.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "alpha", "description": "Incubation period.
" } ] } }, "name": "seis", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SEIS', data={'beta': beta, 'lambda': lambda, 'alpha': alpha, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SEIS" } ] }, { "type": "put", "url": "/api/SI", "title": "SI", "description": "Instantiate a SI Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" } ] } }, "name": "si", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SI', data={'beta': beta, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SI" } ] }, { "type": "put", "url": "/api/SIR", "title": "SIR", "description": "Instantiate a SIR Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" } ] } }, "name": "sir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SIR', data={'beta': beta, 'gamma': gamma, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SIR" } ] }, { "type": "put", "url": "/api/SIS", "title": "SIS", "description": "Instantiate a SIS Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" } ] } }, "name": "sis", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SIS', data={'beta': beta, 'lambda': lambda, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SIS" } ] }, { "type": "put", "url": "/api/Threshold", "title": "Threshold", "description": "Instantiate a Threshold Model on the network bound to the provided token.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "threshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Threshold', data={'token': token, 'infected': percentage, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Threshold" } ] }, { "type": "put", "url": "/api/Configure", "title": "Advanced Configuration", "description": "This endpoint allows for an in-depth specification of the planned experiment. The advanced configuration regards:
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "status", "description": "JSON description of the node/edge attributes.
" } ] }, "examples": [ { "title": "Expected JSON Input (could be partially filled)", "content": "{\n 'nodes':\n {\n 'threshold': {\"node1\": 0.1, \"node2\": 0.05, \"node3\": 0.24 },\n 'profile': {\"node1\": 0.4, \"node2\": 0.5, \"node3\": 0.64}\n },\n 'edges':\n [\n {\n \"source\": \"node1\",\n \"target\": \"node2\",\n \"weight\": 0.2\n },\n {\n \"source\": \"node2\",\n \"target\": \"node3\",\n \"weight\": 0.7\n },\n ],\n 'model': {'model_parameter': parameter_value},\n 'status': {'status_name': [node1, node2, node3]}\n}", "type": "json" } ] }, "name": "configure", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Configure', data={'status': json, 'models': 'model1,model2','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Delete all the resources (the network and the models) attached to the specified experiment.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "name": "deleteexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Experiment', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Describe the resources (Network and Models) involved in the experiment.
", "version": "0.1.0", "name": "describeexp", "group": "Experiment", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[Python request] Example usage:", "content": "post('http://localhost:5000/api/ExperimentStatus')", "type": "python" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Setup a new experiment and generate a its unique identifier. An experiment is described by the Network (only one) and Models associated to it.
", "version": "0.1.0", "name": "getexp", "group": "Experiment", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Experiment')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Reset the status of models attached to the specified experiment. If no models are specified all the current experiment statuses will be reset.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String of comma separated model names.
" } ] } }, "name": "resetexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/ExperimentStatus', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Return the available network endpoints and their parameters
", "version": "0.6.0", "name": "listexploratory", "group": "Exploratory", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "exploratories", "description": "List of available exploratories.
" } ] }, "examples": [ { "title": "Response example: Available exploratories", "content": "{'exploratory':\n [\n {\n \"name\": \"Lastfm_rock\",\n \"network\": \"Lastfm\",\n \"node_attributes\": [\"profile\", \"threshold\"],\n \"edge_attributes\": [\"weight\"],\n \"description\": \"Diffusion threshold and profiles computed on rock listening data\"\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Load the configuration data for a specific exploratory.
", "version": "0.6.0", "name": "loadexploratory", "group": "Exploratory", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "exploratory", "description": "The exploratory name.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Return the next iteration for all the models bind to the provided token.
", "version": "0.1.0", "name": "iterator", "group": "Iterators", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n 'Model2':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n }\n }", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Iteration', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Iteration" } ] }, { "type": "post", "url": "/api/IterationBunch", "title": "Iteration Bunch", "description": "Return the next
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "bunch", "description": "Then number of iteration to return.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 1,\n 'node3': 0\n }\n }\n ],\n 'Model2':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 1\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/IterationBunch', data={'token': token, 'bunch': bunch, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/IterationBunch" } ] }, { "type": "put", "url": "/api/Generators/BarabasiAlbertGraph", "title": "Barabasi-Albert", "description": "Create a BA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" } ] } }, "name": "BAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/BarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/BarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/ClusteredBarabasiAlbertGraph", "title": "Clustered-Barabasi-Albert", "description": "Create a CBA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "Probability of adding a triangle after adding a random edge
" } ] } }, "name": "CBAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ClusteredBarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ClusteredBarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/CompleteGraph", "title": "Complete Graph", "description": "Create a complete graph of size n and bind it to the provided token
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "n", "description": "The number of nodes.
" } ] } }, "name": "CompleteGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/CompleteGraph', data={'n': n, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/CompleteGraph" } ] }, { "type": "put", "url": "/api/Generators/ERGraph", "title": "Erdos-Renyi", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The rewiring probability.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "t", "description": "Number of temporal snapshots If not specified an undirected graph will be generated.
" } ] } }, "name": "ERGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ERGraph', data={'n': n, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ERGraph" } ] }, { "type": "put", "url": "/api/Generators/PlantedPartition", "title": "Planted l-partitions", "description": "Create a Planted l-Parition graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "l", "description": "The number of groups.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "k", "description": "The number of nodes per group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pin", "description": "The probability of connecting vertices within a group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pout", "description": "The probability of connecting vertices between a group.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed. If not specified an undirected graph will be generated.
" } ] } }, "name": "PlantedPartition", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/PlantedPartition', data={'l': l, 'k': k, 'pin': pin, 'pout': pout, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/PlantedPartition" } ] }, { "type": "put", "url": "/api/Generators/WattsStrogatzGraph", "title": "Watts-Strogatz", "description": "Create a WS graph compliant to the specified parameters and bind it to the provided token
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "k", "description": "Each node is connected to k nearest neighbors in ring topology
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The probability of rewiring each edge
" } ] } }, "name": "WSGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/WattsStrogatzGraph', data={'n': n, 'k': k, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/WattsStrogatzGraph" } ] }, { "type": "post", "url": "/api/GetGraph", "title": "Get Network", "description": "Return the json representation of the network analyzed
", "version": "0.5.0", "name": "expgraphs", "group": "Networks", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "optional": false, "field": "token", "description": "The token
" } ] } }, "success": { "examples": [ { "title": "Response example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"barabasi_albert_graph(5,1)\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/GetGraph'data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/GetGraph" } ] }, { "type": "put", "url": "/api/Networks", "title": "Load real graph", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "name", "description": "The network name.
" } ] } }, "name": "loadgraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Networks', data={'name': 'Last.fm','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "put", "url": "/api/UploadNetwork", "title": "Upload Network", "description": "@apiVersion 0.9.0
", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph is directed
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "graph", "description": "JSON description of the graph attributes.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "dynamic", "description": "If the graph is a dynamic one.
" } ] }, "examples": [ { "title": "graph example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"graph_name\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "name": "upload", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/UploadNetwork', data={'file': JSON, 'directed': False, 'token': token})", "type": "json" } ], "version": "0.0.0", "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/UploadNetwork" } ] }, { "type": "put", "url": "/api/AlgorithmicBias", "title": "AlgorithmicBias", "description": "Instantiate a AlgorithmicBias Model on the network bound to the provided token.
", "version": "2.0.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "epsilon", "description": "Bounded confidence threshold.
" }, { "group": "Parameter", "type": "Number", "size": "0-100", "optional": false, "field": "gamma", "description": "Algorithmic bias.
" } ] } }, "name": "AlgorithmicBias", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/AlgorithmicBias', data={'token': token, 'epsilon': percentage, 'gamma': gamma})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/AlgorithmicBias" } ] }, { "type": "put", "url": "/api/CognitiveOpinionDynamic", "title": "CognitiveOpinionDynamic", "description": "Instantiate a CognitiveOpinionDynamic Model on the network bound to the provided token.
", "version": "0.9.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "I", "description": "External information.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_min", "description": "Minimum of the range of initial values for node parameter T.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_max", "description": "Maximum of the range of initial values for node parameter T. If T_range_min>T_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_min", "description": "Minimum of the range of initial values for node parameter B;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_max", "description": "Maximum of the range of initial values for node parameter B. If B_range_min>B_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_negative", "description": "Fraction of individuals having the node parameter R=-1;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_neutral", "description": "Fraction of individuals having the node parameter R=0;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_positive", "description": "Fraction of individuals having the node parameter R=1. The following relation should hold: R_fraction_negative+R_fraction_neutral+R_fraction_positive=1. To achieve this, the fractions selected will be normalised to sum 1.
" } ] } }, "name": "CognitiveOpinionDynamic", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/CognitiveOpinionDynamic', data={'token': token, 'infected': percentage, 'adopters_rate': adopters_rate, 'blocked': blocked, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/CognitiveOpinionDynamic" } ] }, { "type": "put", "url": "/api/MajorityRule", "title": "Majority Rule", "description": "Instantiate the Majority Rule Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-N", "optional": false, "field": "q", "description": "The group size.
" } ] } }, "name": "majority", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Majority', data={'token': token, 'infected': percentage, 'q': q})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/MajorityRule" } ] }, { "type": "put", "url": "/api/QVoter", "title": "QVoter", "description": "Instantiate the QVoter Model on the network bound to the provided token.
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "q", "description": "Number of neighbours that affect the opinion of an agent
" } ] } }, "name": "qvoter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/QVoter', data={'token': token, 'q': number,'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/QVoter" } ] }, { "type": "put", "url": "/api/Sznajd", "title": "Sznajd", "description": "Instantiate the Sznajd Model on the network bound to the provided token. The model is defined for complete graphs, however it can be applied to generic ones.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "sznajd", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Sznajd', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Sznajd" } ] }, { "type": "put", "url": "/api/Voter", "title": "Voter", "description": "Instantiate the Voter Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "voter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Voter', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Voter" } ] }, { "type": "delete", "url": "/api/Models", "title": "Models Destroy", "description": "Delete model resources attached to the specified token. If no models are specified all the ones bind to the experiment will be destroyed.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "name": "deletemodels", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Models', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "delete", "url": "/api/Networks", "title": "Network Destroy", "description": "Delete the graph resource attached to the specified token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" } ] } }, "name": "destroynetwork", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Networks', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Networks", "title": "Real Networks Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.4.0", "name": "getgraphs", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Available networks", "content": "{'networks':\n [\n {\n 'name': 'Lastfm',\n 'size':\n {\n 'nodes': 70000,\n 'edges': 389639\n },\n 'description': 'Undirected social graph involving UK users of Last.fm'\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Networks')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Models", "title": "Models Endpoints", "description": "Return the available models endpoints and their parameter specification
", "version": "0.1.0", "name": "getmodellist", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of model endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endponts':\n [\n {\n 'name': 'Threshold',\n 'uri': 'http://localhost:5000/api/Models/Threshold',\n 'params':\n {\n 'token': 'access token',\n }\n },\n {\n 'name': 'SIR',\n 'uri': 'http://localhost:5000/api/Models/SIR',\n 'params':\n {\n 'token': 'access token',\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Models')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "get", "url": "/api/Generators", "title": "Network Generator Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.1.0", "name": "getnetworks", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endpoints':\n [\n {\n 'name': 'Erdos Reny',\n 'uri': 'http://localhost:5000/api/Networks/ERGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'p': 'rewiring probability'\n }\n },\n {\n 'name': 'Barabasi Albert',\n 'uri': 'http://localhost:5000/api/Networks/BarabasiAlbertGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'm': 'Number of edges to attach from a new node to existing nodes'\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Generators')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators" } ] }, { "success": { "fields": { "Success 200": [ { "group": "Success 200", "optional": false, "field": "varname1", "description": "No type.
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "varname2", "description": "With type.
" } ] } }, "type": "", "url": "", "version": "0.0.0", "filename": "ndlib-rest/static/docs/main.js", "group": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "groupTitle": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "name": "" } ] +[ { "type": "put", "url": "/api/KerteszThreshold", "title": "KerteszThreshold", "description": "Instantiate a KerteszThreshold Model on the network bound to the provided token.
", "version": "0.9.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "The adopter rate. Fixed probability of self-infection per iteration.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Percentage of blocked nodes.
" } ] } }, "name": "KerteszThreshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/KerteszThreshold', data={'token': token, 'infected': percentage, 'adopters_rate': adopters_rate, 'blocked': blocked, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/KerteszThreshold" } ] }, { "type": "put", "url": "/api/dSI", "title": "DynSI", "description": "Instantiate a SI Model on the dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" } ] } }, "name": "dsi", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSI', data={'beta': beta, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSI" } ] }, { "type": "put", "url": "/api/dSIR", "title": "DynSIR", "description": "Instantiate a SIR Model on the dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" } ] } }, "name": "dsir", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSIR', data={'beta': beta, 'gamma': gamma, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSIR" } ] }, { "type": "put", "url": "/api/dSIS", "title": "DynSIS", "description": "Instantiate a SIS Model on the Dynamic network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" } ] } }, "name": "dsis", "group": "Epidemics_Dynamic_Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/dSIS', data={'beta': beta, 'lambda': lambda, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics_Dynamic_Networks", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/dSIS" } ] }, { "type": "put", "url": "/api/IndependentCascades", "title": "Independent Cascades", "description": "Instantiate an Independent Cascades Model on the network bound to the provided token. The edge threshold is assumed equal to 0.1 divided for all edges: this behavior can be changed by using the advanced configuration endpoint.
", "version": "0.5.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "indepcascades", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/IndependentCascades', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/IndependentCascades" } ] }, { "type": "put", "url": "/api/Profile", "title": "Profile", "description": "Instantiate a Profile Model on the network bound to the provided token.
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "profile", "description": "A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Probability for a node that chose to not adopt to became blocked
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "Probability of spontaneous adoption
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "profile", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Profile', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Profile" } ] }, { "type": "put", "url": "/api/ProfileThreshold", "title": "Profile-Threshold", "description": "Instantiate a Profile-Threshold Model on the network bound to the provided token.
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "profile", "description": "A fixed profile value for all the nodes: if not specified the profile will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "blocked", "description": "Probability for a node that chose to not adopt to became blocked
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "adopter_rate", "description": "Probability of spontaneous adoption
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "profilethreshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/ProfileThreshold', data={'token': token, 'infected': percentage, 'threshold': threshold, 'profile': profile})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/ProfileThreshold" } ] }, { "type": "put", "url": "/api/SEIR", "title": "SEIR", "description": "Instantiate a SEIR Model on the network bound to the provided token.
", "version": "1.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "alpha", "description": "Incubation period.
" } ] } }, "name": "seir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SEIS', data={'beta': beta, 'gamma': gamma, 'alpha': alpha, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SEIR" } ] }, { "type": "put", "url": "/api/SEIS", "title": "SEIS", "description": "Instantiate a SEIS Model on the network bound to the provided token.
", "version": "1.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "alpha", "description": "Incubation period.
" } ] } }, "name": "seis", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SEIS', data={'beta': beta, 'lambda': lambda, 'alpha': alpha, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SEIS" } ] }, { "type": "put", "url": "/api/SI", "title": "SI", "description": "Instantiate a SI Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" } ] } }, "name": "si", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SI', data={'beta': beta, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SI" } ] }, { "type": "put", "url": "/api/SIR", "title": "SIR", "description": "Instantiate a SIR Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "gamma", "description": "Recovery rate.
" } ] } }, "name": "sir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SIR', data={'beta': beta, 'gamma': gamma, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SIR" } ] }, { "type": "put", "url": "/api/SIS", "title": "SIS", "description": "Instantiate a SIS Model on the network bound to the provided token.
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "beta", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "lambda", "description": "Recovery rate.
" } ] } }, "name": "sis", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SIS', data={'beta': beta, 'lambda': lambda, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SIS" } ] }, { "type": "put", "url": "/api/SWIR", "title": "SWIR", "description": "Instantiate a SWIR Model on the network bound to the provided token.
", "version": "2.0.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "kappa", "description": "Infection rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "mu", "description": "Recovery rate.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "nu", "description": "Incubation period.
" } ] } }, "name": "swir", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/SWIR', data={'kappa': kappa, 'mu': mu, 'nu': nu, 'infected': percentage, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/SWIR" } ] }, { "type": "put", "url": "/api/Threshold", "title": "Threshold", "description": "Instantiate a Threshold Model on the network bound to the provided token.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "threshold", "description": "A fixed threshold value for all the nodes: if not specified the thresholds will be assigned using a normal distribution.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "threshold", "group": "Epidemics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Threshold', data={'token': token, 'infected': percentage, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Epidemics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Threshold" } ] }, { "type": "put", "url": "/api/Configure", "title": "Advanced Configuration", "description": "This endpoint allows for an in-depth specification of the planned experiment. The advanced configuration regards:
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "status", "description": "JSON description of the node/edge attributes.
" } ] }, "examples": [ { "title": "Expected JSON Input (could be partially filled)", "content": "{\n 'nodes':\n {\n 'threshold': {\"node1\": 0.1, \"node2\": 0.05, \"node3\": 0.24 },\n 'profile': {\"node1\": 0.4, \"node2\": 0.5, \"node3\": 0.64}\n },\n 'edges':\n [\n {\n \"source\": \"node1\",\n \"target\": \"node2\",\n \"weight\": 0.2\n },\n {\n \"source\": \"node2\",\n \"target\": \"node3\",\n \"weight\": 0.7\n },\n ],\n 'model': {'model_parameter': parameter_value},\n 'status': {'status_name': [node1, node2, node3]}\n}", "type": "json" } ] }, "name": "configure", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Configure', data={'status': json, 'models': 'model1,model2','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Delete all the resources (the network and the models) attached to the specified experiment.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "name": "deleteexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Experiment', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Describe the resources (Network and Models) involved in the experiment.
", "version": "0.1.0", "name": "describeexp", "group": "Experiment", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[Python request] Example usage:", "content": "post('http://localhost:5000/api/ExperimentStatus')", "type": "python" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Setup a new experiment and generate a its unique identifier. An experiment is described by the Network (only one) and Models associated to it.
", "version": "0.1.0", "name": "getexp", "group": "Experiment", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Experiment')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Reset the status of models attached to the specified experiment. If no models are specified all the current experiment statuses will be reset.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token identifying the experiment.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String of comma separated model names.
" } ] } }, "name": "resetexp", "group": "Experiment", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/ExperimentStatus', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Experiment", "groupDescription": "An experiment represents the analytical unit of this REST API, it is composed by:
Return the available network endpoints and their parameters
", "version": "0.6.0", "name": "listexploratory", "group": "Exploratory", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "exploratories", "description": "List of available exploratories.
" } ] }, "examples": [ { "title": "Response example: Available exploratories", "content": "{'exploratory':\n [\n {\n \"name\": \"Lastfm_rock\",\n \"network\": \"Lastfm\",\n \"node_attributes\": [\"profile\", \"threshold\"],\n \"edge_attributes\": [\"weight\"],\n \"description\": \"Diffusion threshold and profiles computed on rock listening data\"\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Load the configuration data for a specific exploratory.
", "version": "0.6.0", "name": "loadexploratory", "group": "Exploratory", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "exploratory", "description": "The exploratory name.
" } ] } }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Exploratory')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Exploratory", "groupDescription": "An exploratory is a pre-configured experiments. It provides:
Return the next iteration for all the models bind to the provided token.
", "version": "0.1.0", "name": "iterator", "group": "Iterators", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n 'Model2':\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n }\n }", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/Iteration', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Iteration" } ] }, { "type": "post", "url": "/api/IterationBunch", "title": "Iteration Bunch", "description": "Return the next
The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "bunch", "description": "Then number of iteration to return.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "iteration", "description": "Nodes status after an iteration: 0=susceptible, 1=infected, 2=removed.
" } ] }, "examples": [ { "title": "Response example: iteration", "content": "{\n 'Model1':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 0,\n 'node2': 1,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 1,\n 'node3': 0\n }\n }\n ],\n 'Model2':\n [\n {\n 'iteration': 1,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 0\n }\n },\n {\n 'iteration': 2,\n 'status':\n {\n 'node0': 1,\n 'node1': 1,\n 'node2': 0,\n 'node3': 1\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/IterationBunch', data={'token': token, 'bunch': bunch, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Iterators", "groupDescription": "Endpoints belonging to this family allow the user to require step-by-step, partial as well as complete runs of the models attached to the experiment.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/IterationBunch" } ] }, { "type": "put", "url": "/api/Generators/BarabasiAlbertGraph", "title": "Barabasi-Albert", "description": "Create a BA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.2.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" } ] } }, "name": "BAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/BarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/BarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/ClusteredBarabasiAlbertGraph", "title": "Clustered-Barabasi-Albert", "description": "Create a CBA graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "m", "description": "The number of edges attached to each new node.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "Probability of adding a triangle after adding a random edge
" } ] } }, "name": "CBAGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ClusteredBarabasiAlbertGraph', data={'n': n, 'm': m, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ClusteredBarabasiAlbertGraph" } ] }, { "type": "put", "url": "/api/Generators/CompleteGraph", "title": "Complete Graph", "description": "Create a complete graph of size n and bind it to the provided token
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "n", "description": "The number of nodes.
" } ] } }, "name": "CompleteGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/CompleteGraph', data={'n': n, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/CompleteGraph" } ] }, { "type": "put", "url": "/api/Generators/ERGraph", "title": "Erdos-Renyi", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The rewiring probability.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "t", "description": "Number of temporal snapshots If not specified an undirected graph will be generated.
" } ] } }, "name": "ERGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/ERGraph', data={'n': n, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/ERGraph" } ] }, { "type": "put", "url": "/api/Generators/PlantedPartition", "title": "Planted l-partitions", "description": "Create a Planted l-Parition graph compliant to the specified parameters and bind it to the provided token
", "version": "0.9.2", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "l", "description": "The number of groups.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "k", "description": "The number of nodes per group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pin", "description": "The probability of connecting vertices within a group.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "pout", "description": "The probability of connecting vertices between a group.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph should be directed. If not specified an undirected graph will be generated.
" } ] } }, "name": "PlantedPartition", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/PlantedPartition', data={'l': l, 'k': k, 'pin': pin, 'pout': pout, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/PlantedPartition" } ] }, { "type": "put", "url": "/api/Generators/WattsStrogatzGraph", "title": "Watts-Strogatz", "description": "Create a WS graph compliant to the specified parameters and bind it to the provided token
", "version": "0.3.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "200..100000", "optional": false, "field": "n", "description": "The number of nodes.
" }, { "group": "Parameter", "type": "Number", "size": "1..", "optional": false, "field": "k", "description": "Each node is connected to k nearest neighbors in ring topology
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "p", "description": "The probability of rewiring each edge
" } ] } }, "name": "WSGraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Generators/WattsStrogatzGraph', data={'n': n, 'k': k, 'p': p, 'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators/WattsStrogatzGraph" } ] }, { "type": "post", "url": "/api/GetGraph", "title": "Get Network", "description": "Return the json representation of the network analyzed
", "version": "0.5.0", "name": "expgraphs", "group": "Networks", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "optional": false, "field": "token", "description": "The token
" } ] } }, "success": { "examples": [ { "title": "Response example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"barabasi_albert_graph(5,1)\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "post('http://localhost:5000/api/GetGraph'data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/GetGraph" } ] }, { "type": "put", "url": "/api/Networks", "title": "Load real graph", "description": "Create an ER graph compliant to the specified parameters and bind it to the provided token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "name", "description": "The network name.
" } ] } }, "name": "loadgraph", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Networks', data={'name': 'Last.fm','token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "put", "url": "/api/UploadNetwork", "title": "Upload Network", "description": "@apiVersion 0.9.0
", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "directed", "description": "If the graph is directed
" }, { "group": "Parameter", "type": "json", "optional": false, "field": "graph", "description": "JSON description of the graph attributes.
" }, { "group": "Parameter", "type": "Boolean", "optional": false, "field": "dynamic", "description": "If the graph is a dynamic one.
" } ] }, "examples": [ { "title": "graph example:", "content": " {\n \"directed\": false,\n \"graph\": {\n \"name\": \"graph_name\"\n },\n \"links\": [\n {\n \"source\": 0,\n \"target\": 1\n },\n {\n \"source\": 0,\n \"target\": 2\n },\n {\n \"source\": 0,\n \"target\": 3\n },\n {\n \"source\": 0,\n \"target\": 4\n }\n ],\n \"multigraph\": false,\n \"nodes\": [\n {\n \"id\": 0\n },\n {\n \"id\": 1\n },\n {\n \"id\": 2\n },\n {\n \"id\": 3\n },\n {\n \"id\": 4\n }\n ]\n}", "type": "json" } ] }, "name": "upload", "group": "Networks", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/UploadNetwork', data={'file': JSON, 'directed': False, 'token': token})", "type": "json" } ], "version": "0.0.0", "filename": "ndlib-rest/ndrest.py", "groupTitle": "Networks", "groupDescription": "Endpoints belonging to this family provide access to network resources. In particular they provide lookup facilities for both real world datasets and network generators. Moreover, the Get Network endpoint allows for the download of synthetic (i.e., generated) networks as well as all of those datasets for which are not specified access restriction.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/UploadNetwork" } ] }, { "type": "put", "url": "/api/AlgorithmicBias", "title": "AlgorithmicBias", "description": "Instantiate a AlgorithmicBias Model on the network bound to the provided token.
", "version": "2.0.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "epsilon", "description": "Bounded confidence threshold.
" }, { "group": "Parameter", "type": "Number", "size": "0-100", "optional": false, "field": "gamma", "description": "Algorithmic bias.
" } ] } }, "name": "AlgorithmicBias", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/AlgorithmicBias', data={'token': token, 'epsilon': percentage, 'gamma': gamma})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/AlgorithmicBias" } ] }, { "type": "put", "url": "/api/CognitiveOpinionDynamic", "title": "CognitiveOpinionDynamic", "description": "Instantiate a CognitiveOpinionDynamic Model on the network bound to the provided token.
", "version": "0.9.1", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "I", "description": "External information.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_min", "description": "Minimum of the range of initial values for node parameter T.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "T_range_max", "description": "Maximum of the range of initial values for node parameter T. If T_range_min>T_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_min", "description": "Minimum of the range of initial values for node parameter B;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "B_range_max", "description": "Maximum of the range of initial values for node parameter B. If B_range_min>B_range_max they are swapped;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_negative", "description": "Fraction of individuals having the node parameter R=-1;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_neutral", "description": "Fraction of individuals having the node parameter R=0;
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "R_fraction_positive", "description": "Fraction of individuals having the node parameter R=1. The following relation should hold: R_fraction_negative+R_fraction_neutral+R_fraction_positive=1. To achieve this, the fractions selected will be normalised to sum 1.
" } ] } }, "name": "CognitiveOpinionDynamic", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/CognitiveOpinionDynamic', data={'token': token, 'infected': percentage, 'adopters_rate': adopters_rate, 'blocked': blocked, 'threshold': threshold})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/CognitiveOpinionDynamic" } ] }, { "type": "put", "url": "/api/MajorityRule", "title": "Majority Rule", "description": "Instantiate the Majority Rule Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "size": "0-N", "optional": false, "field": "q", "description": "The group size.
" } ] } }, "name": "majority", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Majority', data={'token': token, 'infected': percentage, 'q': q})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/MajorityRule" } ] }, { "type": "put", "url": "/api/QVoter", "title": "QVoter", "description": "Instantiate the QVoter Model on the network bound to the provided token.
", "version": "0.9.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" }, { "group": "Parameter", "type": "Number", "optional": false, "field": "q", "description": "Number of neighbours that affect the opinion of an agent
" } ] } }, "name": "qvoter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/QVoter', data={'token': token, 'q': number,'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/QVoter" } ] }, { "type": "put", "url": "/api/Sznajd", "title": "Sznajd", "description": "Instantiate the Sznajd Model on the network bound to the provided token. The model is defined for complete graphs, however it can be applied to generic ones.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "sznajd", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Sznajd', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Sznajd" } ] }, { "type": "put", "url": "/api/Voter", "title": "Voter", "description": "Instantiate the Voter Model on the network bound to the provided token.
", "version": "0.7.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "Number", "size": "0-1", "optional": false, "field": "infected", "description": "The initial percentage of infected nodes.
" } ] } }, "name": "voter", "group": "Opinion_Dynamics", "examples": [ { "title": "[python request] Example usage:", "content": "put('http://localhost:5000/api/Voter', data={'token': token, 'infected': percentage})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Opinion_Dynamics", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Voter" } ] }, { "type": "delete", "url": "/api/Models", "title": "Models Destroy", "description": "Delete model resources attached to the specified token. If no models are specified all the ones bind to the experiment will be destroyed.
", "version": "0.1.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" }, { "group": "Parameter", "type": "String", "optional": false, "field": "models", "description": "String composed by comma separated model names.
" } ] } }, "name": "deletemodels", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Models', data={'token': token, 'models': 'model1,model2'})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "delete", "url": "/api/Networks", "title": "Network Destroy", "description": "Delete the graph resource attached to the specified token
", "version": "0.4.0", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": false, "field": "token", "description": "The token.
" } ] } }, "name": "destroynetwork", "group": "Resources", "examples": [ { "title": "[python request] Example usage:", "content": "delete('http://localhost:5000/api/Networks', data={'token': token})", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Networks", "title": "Real Networks Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.4.0", "name": "getgraphs", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Available networks", "content": "{'networks':\n [\n {\n 'name': 'Lastfm',\n 'size':\n {\n 'nodes': 70000,\n 'edges': 389639\n },\n 'description': 'Undirected social graph involving UK users of Last.fm'\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Networks')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Networks" } ] }, { "type": "get", "url": "/api/Models", "title": "Models Endpoints", "description": "Return the available models endpoints and their parameter specification
", "version": "0.1.0", "name": "getmodellist", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of model endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endponts':\n [\n {\n 'name': 'Threshold',\n 'uri': 'http://localhost:5000/api/Models/Threshold',\n 'params':\n {\n 'token': 'access token',\n }\n },\n {\n 'name': 'SIR',\n 'uri': 'http://localhost:5000/api/Models/SIR',\n 'params':\n {\n 'token': 'access token',\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Models')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Models" } ] }, { "type": "get", "url": "/api/Generators", "title": "Network Generator Endpoints", "description": "Return the available network endpoints and their parameters
", "version": "0.1.0", "name": "getnetworks", "group": "Resources", "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Object", "optional": false, "field": "endpoints", "description": "List of network endpoints.
" } ] }, "examples": [ { "title": "Response example: Endpoint List", "content": "{'endpoints':\n [\n {\n 'name': 'Erdos Reny',\n 'uri': 'http://localhost:5000/api/Networks/ERGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'p': 'rewiring probability'\n }\n },\n {\n 'name': 'Barabasi Albert',\n 'uri': 'http://localhost:5000/api/Networks/BarabasiAlbertGraph',\n 'params':\n {\n 'token': 'access token',\n 'n': 'number of nodes',\n 'm': 'Number of edges to attach from a new node to existing nodes'\n }\n }\n ]\n}", "type": "json" } ] }, "examples": [ { "title": "[python request] Example usage:", "content": "get('http://localhost:5000/api/Generators')", "type": "json" } ], "filename": "ndlib-rest/ndrest.py", "groupTitle": "Resources", "groupDescription": "Endpoints belonging to this family provide access to resources, networks and models, listing and lookup facilities. They also handle the destruction phase of experiment resources.
", "sampleRequest": [ { "url": "http://127.0.0.1:5000/api/Generators" } ] }, { "success": { "fields": { "Success 200": [ { "group": "Success 200", "optional": false, "field": "varname1", "description": "No type.
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "varname2", "description": "With type.
" } ] } }, "type": "", "url": "", "version": "0.0.0", "filename": "ndlib-rest/static/docs/main.js", "group": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "groupTitle": "_Volumes_DATA_git_ndlib_rest_static_docs_main_js", "name": "" } ] diff --git a/static/docs/api_project.js b/static/docs/api_project.js index f2c6f5d..16c1b5d 100644 --- a/static/docs/api_project.js +++ b/static/docs/api_project.js @@ -1 +1 @@ -define({ "name": "(N)etwork (D)iffusion library REST service", "version": "2.0.1", "description": "REST service for the simulation of diffusion models over networks.", "title": "NDlib REST", "url": "http://127.0.0.1:5000", "sampleUrl": "http://127.0.0.1:5000", "order": [ "Experiment", "getexp", "describeexp", "resetexp", "deleteexp", "configure", "Exploratory", "listexploratory", "loadexploratory", "Resources", "getgraphs", "getnetworks", "getmodellist", "destroynetwork", "deletemodels", "Networks", "CompleteGraph", "ERGraph", "BAGraph", "CBAGraph", "WSGraph", "PlantedPartition", "loadgraph", "upload", "expgraphs", "Models", "si", "sir", "sis", "seis", "seir", "threshold", "KerteszThreshold", "profile", "profilethreshold", "indepcascades", "voter", "qvoter", "majority", "sznajd", "AlgorithmicBias", "dsi", "dsis", "dsis", "Iterators", "iterator", "iteratorbunch" ], "apidoc": "0.2.0", "generator": { "name": "apidoc", "time": "2018-01-29T08:12:25.872Z", "url": "http://apidocjs.com", "version": "0.16.1" } }); +define({ "name": "(N)etwork (D)iffusion library REST service", "version": "2.0.1", "description": "REST service for the simulation of diffusion models over networks.", "title": "NDlib REST", "url": "http://127.0.0.1:5000", "sampleUrl": "http://127.0.0.1:5000", "order": [ "Experiment", "getexp", "describeexp", "resetexp", "deleteexp", "configure", "Exploratory", "listexploratory", "loadexploratory", "Resources", "getgraphs", "getnetworks", "getmodellist", "destroynetwork", "deletemodels", "Networks", "CompleteGraph", "ERGraph", "BAGraph", "CBAGraph", "WSGraph", "PlantedPartition", "loadgraph", "upload", "expgraphs", "Models", "si", "sir", "sis", "seis", "seir", "threshold", "KerteszThreshold", "profile", "profilethreshold", "indepcascades", "voter", "qvoter", "majority", "sznajd", "AlgorithmicBias", "dsi", "dsis", "dsis", "Iterators", "iterator", "iteratorbunch" ], "apidoc": "0.2.0", "generator": { "name": "apidoc", "time": "2018-02-15T09:37:33.089Z", "url": "http://apidocjs.com", "version": "0.16.1" } }); diff --git a/static/docs/api_project.json b/static/docs/api_project.json index 4110aad..1a64bfa 100644 --- a/static/docs/api_project.json +++ b/static/docs/api_project.json @@ -1 +1 @@ -{ "name": "(N)etwork (D)iffusion library REST service", "version": "2.0.1", "description": "REST service for the simulation of diffusion models over networks.", "title": "NDlib REST", "url": "http://127.0.0.1:5000", "sampleUrl": "http://127.0.0.1:5000", "order": [ "Experiment", "getexp", "describeexp", "resetexp", "deleteexp", "configure", "Exploratory", "listexploratory", "loadexploratory", "Resources", "getgraphs", "getnetworks", "getmodellist", "destroynetwork", "deletemodels", "Networks", "CompleteGraph", "ERGraph", "BAGraph", "CBAGraph", "WSGraph", "PlantedPartition", "loadgraph", "upload", "expgraphs", "Models", "si", "sir", "sis", "seis", "seir", "threshold", "KerteszThreshold", "profile", "profilethreshold", "indepcascades", "voter", "qvoter", "majority", "sznajd", "AlgorithmicBias", "dsi", "dsis", "dsis", "Iterators", "iterator", "iteratorbunch" ], "apidoc": "0.2.0", "generator": { "name": "apidoc", "time": "2018-01-29T08:12:25.872Z", "url": "http://apidocjs.com", "version": "0.16.1" } } +{ "name": "(N)etwork (D)iffusion library REST service", "version": "2.0.1", "description": "REST service for the simulation of diffusion models over networks.", "title": "NDlib REST", "url": "http://127.0.0.1:5000", "sampleUrl": "http://127.0.0.1:5000", "order": [ "Experiment", "getexp", "describeexp", "resetexp", "deleteexp", "configure", "Exploratory", "listexploratory", "loadexploratory", "Resources", "getgraphs", "getnetworks", "getmodellist", "destroynetwork", "deletemodels", "Networks", "CompleteGraph", "ERGraph", "BAGraph", "CBAGraph", "WSGraph", "PlantedPartition", "loadgraph", "upload", "expgraphs", "Models", "si", "sir", "sis", "seis", "seir", "threshold", "KerteszThreshold", "profile", "profilethreshold", "indepcascades", "voter", "qvoter", "majority", "sznajd", "AlgorithmicBias", "dsi", "dsis", "dsis", "Iterators", "iterator", "iteratorbunch" ], "apidoc": "0.2.0", "generator": { "name": "apidoc", "time": "2018-02-15T09:37:33.089Z", "url": "http://apidocjs.com", "version": "0.16.1" } }