Unverified Commit a970ecb3 authored by Felix's avatar Felix Committed by GitHub
Browse files

Update README.md

parent 53f0c309
......@@ -8,13 +8,16 @@ pip install cycle-analysis
```python
import networkx as nx
import cycle_analysis.cycle_coalescence as cc
import cycle_analysis.test as cat
# generate a dummy graph for testing
# put an edge weight distribution on the system, available are random/gradient/bigradient/nested_square
G=nx.grid_graph((7,7,1))
G=ag.generate_pattern(G,'nested_square')
G=cat.generate_pattern(G,'nested_square')
# merge all shortest cycles and calc the merging tree's asymmetry
asymmetry=ag.calc_cycle_asymmetry(G)
asymmetry=cc.calc_cycle_asymmetry(G)
print(asymmetry)
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment