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 nickel; python nickel_test.py; cd .. $ cd graph_state; python graph_state_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,), ))
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.3.tar.gz
(11.4 kB
view hashes)