Graph manipulation package based on GraphState
Project description
1.to install in userspace run:
$ python setup.py install –user
or to setup in global space
$ sudo setup.py install
run tests:
$ cd graphine/test/; python graph_operations_test.py; cd ../.. $ cd graphine/test/; python graph_test.py; cd ../..
You must see “OK” after test execution
run simple example from python CLI interface:
>>> import graphine
>>> g = graphine.Graph.from_str("e11|e|")
>>> print g
e11|e|
>>> print g.edges(0, 1)
(((0, 1), ), ((0, 1), ))
>>> print g.external_edges
(((0,), ), ((1,), ))
you can see manual at https://readthedocs.org/projects/graphstate-and-graphine/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyGraphine-1.0.4.tar.gz
(11.5 kB
view details)
File details
Details for the file PyGraphine-1.0.4.tar.gz.
File metadata
- Download URL: PyGraphine-1.0.4.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b54a76b3234d041baa518ae73aab891c847fefbaf45acce6cd6b7e4c8160fe1
|
|
| MD5 |
a89a7009261f5898214ddb92b5a49fd6
|
|
| BLAKE2b-256 |
edc69fc7fcdb8139f32af74aa2ad7d4ccd8646b7370ace6d99d0eb029d3e2cab
|