-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Andrea Vandin edited this page Jul 21, 2022
·
26 revisions
This repository contains code to process weighted graphs from Netzschleuder to export them in a CSV format supported by the ERODE tool
Please open the following jupyter lab notebook on Google colab and run it.
After following the link:
- Click on 'Copy to Drive' to create your own copy of this file on your Google drive
- highly suggested, otherwise you will loose any change applied and file created
- If you decide to copy the notebook, the next time open your local copy by accessing it from here, navigating to Colab Notebooks
- Add all graphs of interest in the list
model_names
model_names=["blumenau_drug"]
- You shall use the identifiers in the first column here
- E.g.:
model_names=["blumenau_drug","cattle"]
- In the notebook you find a list of all weighted graphs found on 21/07/22 sorted from smallest number of nodes to largest
- Set flags
download_file
andstore_on_gdrive
toTrue
orFalse
-
store_on_gdrive=True
implies that exported CSV files will be stored in your google drive -
store_on_gdrive=True
(and at the same timestore_on_gdrive=False
) implies that exported CSV files will be downloaded
-
- Run all cells.
- All installation steps will be performed
- The weighted graph
blumenau_drug
will be processed
Beware: not all graphs classified as weighted actually come with weights.
- E.g., hens does not actually come with weights. In these cases, we
- set all weights to 1
- add 'defaultWeights' to the name of every created file