Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hhromic/python-netstream
A NetStream implementation in Python for GraphStream
https://github.com/hhromic/python-netstream
Last synced: 27 days ago
JSON representation
A NetStream implementation in Python for GraphStream
- Host: GitHub
- URL: https://github.com/hhromic/python-netstream
- Owner: hhromic
- License: mit
- Created: 2015-01-28T00:43:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-28T02:53:48.000Z (almost 10 years ago)
- Last Synced: 2024-12-18T08:38:00.598Z (about 1 month ago)
- Language: Python
- Size: 141 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-netstream
A NetStream implementation in Python for GraphStreamExample Usage
=============```python
#!/usr/bin/env pythonimport netstream
import logginglogging.basicConfig(level=logging.DEBUG)
transport = netstream.BinaryNetStreamTransport("localhost", 2012)
sender = netstream.NetStreamSender(transport)
proxy = netstream.NetStreamProxyGraph(sender)style = "node{fill-mode:plain;fill-color:gray;size:1px;}"
proxy.add_attribute("stylesheet", style)proxy.add_attribute("ui.antialias", True)
proxy.add_attribute("layout.stabilization-limit", 0)for i in range(0,500):
proxy.add_node(str(i))
if i > 0:
proxy.add_edge(str(i) + "_" + str(i-1), str(i), str(i-1), False)
proxy.add_edge(str(i) + "__" + str(i/2), str(i), str(i/2), False)
```