Skip to content

Commit 9d116a8

Browse files
authored
Update README.md
1 parent 87666d6 commit 9d116a8

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,46 @@ This set of scripts primarily implements the two signed whole graph embedding me
2121
* Perform classification tasks based on the embeddings extracted with our method.
2222

2323
In addition, these scripts reproduce the experiments described in our paper [[CLDA'24](#references)]. In particular, they compares the performance of our method with three alternatives from the literature:
24-
* `SiNE` [[WTAC'17](#references)]: a method that handles signed graphs, but only to represent individual vertices, and not the whole graph.
25-
* `Graph2vec` [[NCVC'17](#references)]: a method that handle whole-graphs, but only for unsigned graphs.
26-
* `SGCN` [[DMT'18](#references)]: like SiNE, a method that handles signed graphs, but only to represent individual vertices, and not the whole graph.
24+
* `SiNE` [[WTAC'17](#references)]: this method handles signed graphs, but only to represent individual vertices, and not the whole graph.
25+
* `Graph2vec` [[NCVC'17](#references)]: this method handle whole-graphs, but only for unsigned graphs.
26+
* `SGCN` [[DMT'18](#references)]: as for SiNE, this method handles signed graphs, but only to represent individual vertices, and not the whole graph.
2727

2828

2929
## Data
30-
We include a few graphs for each dataset in the `data` folder. The full datasets can be downloaded from [Zenodo](https://doi.org/10.5281/zenodo.13851362). Place the downloaded graphs directly into the corresponding folder in `data`.
30+
The scripts are meant to be applied to a corpus of three datasets constituted of signed networks annotated for graph classification. Because of GitHub's file size limit, we include only a few graphs from each dataset in the `data` folder. The full datasets can be downloaded from [Zenodo](https://doi.org/10.5281/zenodo.13851362). Place the downloaded graphs directly into the corresponding folders in `data`.
3131

3232

3333
## Organization
3434
This repository is composed of the following elements:
35-
3635
* Folder `data`: input signed networks.
37-
* Folder `out`: contains the files produced by our scripts.
38-
* `requirements.py`: List of Python packages used in SWGE.
39-
* There are 3 main scripts:
40-
* `SG2V.py`: Performs the representation learning step related to the Signed Graph2Vec methods.
41-
* `run_sgcn.py`: Performs the representation learning step related to the Signed Graph Convolutional Networks methods.
36+
* Folder `out`: files produced by the scripts.
37+
* Folder `SG2V`: implementation of our signed version of the Graph2vec method.
38+
* Folder `SGCN`: implementation of the standard Signed Graph Convolutional Network method, taken from repository [SGCN](https://github.com/benedekrozemberczki/SGCN).
39+
* Folder `SiNE`: implementation of the standard Signed Network Embeddings method.
40+
* Folder `WSGCN`: implementation of our whole-graph variant of the SGCN method.
41+
* File `requirements.txt`: list of `Python` packages used by the scripts.
42+
* The main scripts are:
43+
* `main.py`: learns the graph representations.
4244
* `evaluation.py`: Performs the classification task.
4345

4446

4547
## Installation
46-
* Install Python (tested with Python 3.6.9)
48+
* Install `Python` (tested with `Python` v3.6.9)
4749
* Install dependencies using the following command:
4850
```
4951
pip install -r requirements.txt
5052
```
51-
* The SGCN method is based on the code of [SGCN](https://github.com/benedekrozemberczki/SGCN).
52-
* Retrieve the data from Zenodo and place them into the `data` folder.
53+
* Retrieve the data from Zenodo and place them into the `data` folder (as nexplained in section [Data](#data)).
5354

5455

55-
## How to use ?
56-
In order to learn representations `Graph2Vec`-based representations, run the file `SG2V.py`. You can configure the `model_type` between the 3 versions proposed in our paper: `g2v`, `sg2vn` or `sg2vsb`. To learn representations `SGCN`-based representations, run the file `run_sgcn.py`. These scripts will export the learned representations into the `out` folder.
56+
## How to use
57+
In order to learn `Graph2Vec`-based representations, run the file `SG2V.py`. You can configure the `model_type` between the 3 versions proposed in our paper: `g2v`, `sg2vn` or `sg2vsb`. To learn representations `SGCN`-based representations, run the file `run_sgcn.py`. These scripts will export the learned representations into the `out` folder.
5758

5859
After running the previous scripts, you can perform the classification by running `evaluation.py`. You can configure the `path_emb` and `path_label` variables to change the dataset used. The `main.py` file can be used to run all the experiment with a single script.
5960

6061

6162
## References
62-
* **[CLDA'24]** N. Cécillon, V. Labatut, R. Dufour, N. Arınık: *Whole-Graph Representation Learning For the Classification of Signed Networks*, IEEE Access (in press), 2024. DOI: [xxxx](https://dx.doi.org/xxxx) [⟨hal-xxxxxxxx](https://hal.archives-ouvertes.fr/hal-xxxxxxxx)
63+
* **[CLDA'24]** N. Cécillon, V. Labatut, R. Dufour, N. Arınık: *Whole-Graph Representation Learning For the Classification of Signed Networks*, IEEE Access (in press), 2024. DOI: [xxxx](https://dx.doi.org/xxxx) [⟨hal-04712854](https://hal.archives-ouvertes.fr/hal-04712854)
6364
* **[NCVC'17]** A. Narayanan, M. Chandramohan, R. Venkatesan, L. Chen, Y. Liu, and S. Jaiswal: *graph2vec: Learning distributed representations of graphs*, International Workshop on Mining and Learning with Graphs, 2017. URL: [http://www.mlgworkshop.org/2017/paper/MLG2017_paper_21.pdf]
6465
* **[DMT'18]** T. Derr, Y. Ma, and J. Tang: *Signed graph convolutional network*, 18th International Conference on Data Mining, 2018, p.929-934. DOI: [10.1109/ICDM.2018.00113](https://doi.org/10.1109/ICDM.2018.00113).
6566
* **[WTAC'17]** S. Wang, J. Tang, C. Aggarwal, Y. Chang, and H. Liu. *Signed network embedding in social media*. 17th SIAM International Conference on Data Mining, 2017, p.327-335. DOI: [10.1137/1.9781611974973.37](https://doi.org/10.1137/1.9781611974973.37).

0 commit comments

Comments
 (0)