Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/FedericoCinus/WoMG
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoCinus committed May 7, 2020
2 parents 102c013 + d7a7864 commit 92f8caf
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ $ git clone https://github.com/FedericoCinus/WoMG.git


## Usage
The WoMG package provides a Python module and a command-line method.<br/>

The WoMG package provides a Python module and a command-line executable.<br/>
1.
```python
from womg import womg
import networkx as nx
Expand All @@ -46,16 +46,28 @@ docs_path = '/this/is/an/example/documents_folder/'
prop = womg(graph=graph, docs_path=docs_path)

```
The **demo.ipynb** provides a tutorial.
2.
```bash
$ womg --docs_folder 'example/documents_folder/' --graph 'example/graph_folder/graph_edgelist.txt'

```

The [demo notebook](https://github.com/FedericoCinus/WoMG/blob/master/demo.ipynb) provides a tutorial.



#### Options
You can check out the other options available to use with *WoMG* using:<br/>
You can check out the other options available to use with *WoMG* from jupyter notebook using:<br/>

```python
?womg
```

or in the command-line typing:
```bash
$ womg --help
```

``numb_topics`` defines the dimension of topic space where documents and nodes are described <br />
``homophily`` modifies the interests similarity between connected nodes <br />
``gn_strength`` modifies the strength of influence exerted on each node at the initial time step <br />
Expand All @@ -74,3 +86,4 @@ This repository provides a reference implementation of *WoMG* as described in:<b
> Generating realistic interest-driven information cascades.<br>
> Federico Cinus, Francesco Bonchi, Corrado Monti, André Panisson.<br>
> <Insert paper link>

0 comments on commit 92f8caf

Please sign in to comment.