Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/filipinascimento/cxnetwork
Rewiring Code
https://github.com/filipinascimento/cxnetwork
Last synced: about 2 months ago
JSON representation
Rewiring Code
- Host: GitHub
- URL: https://github.com/filipinascimento/cxnetwork
- Owner: filipinascimento
- License: mit
- Created: 2020-02-09T05:50:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-10T04:53:10.000Z (almost 5 years ago)
- Last Synced: 2024-10-14T06:44:37.897Z (3 months ago)
- Language: C
- Size: 87.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cxnetwork
Experimental library to process and analyze complex networks## Requirements
- C11 compatible compiler (GCC, CLANG)## Compiling
run `pip install cxnetwork` on the project directory.## Usage
```python
import cxnetwork as cxcx.randomSeedDev();
edges = [(0,1),(1,2),(2,3),(3,4),(4,5),(5,6),(6,7),(7,8),(8,9),(9,10),(10,0)]
edges += [(0,2),(1,3),(2,4),(3,5),(4,6),(5,7),(6,8),(7,9),(8,10),(9,0),(10,1)]rewiredEdges = cx.rewire(edges,11,0.5);
print(rewiredEdges);
```