Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.2 KB

File metadata and controls

49 lines (31 loc) · 1.2 KB

SingnetLogo

CircleCI

The list of available servcies includes:

  • Identifying the minimum set of nodes or edges that need to be removed to block messages between two nodes in the network
  • Identify the most important nodes/edges between groups of nodes

User Guide

Please look at the user guide for a detailed spec of the services and how to use the services.

Running the service locally

Install preprequisites

pip install -r requirements.txt

Setup

Run the following commands to generate gRPC classes for Python

cd robustness
python3.6 -m grpc_tools.protoc -I. --python_out=.  --grpc_python_out=. service_spec_robustness/network_analytics_robustness.proto

Running unit tests

For testing the core functionalities

python3.6 test_robustness.py

For testing the gRPC wrapper code

python3.6 test_snet_grpc_wrapper_robustness.py

Usage

To start the gRPC server locally

python3.6 snet_grpc_wrapper_robustness.py