基于graphstate的图形操作包

PyGraphine的Python项目详细描述


  1. 要在用户空间中安装,请运行:

$python setup.py安装–用户

或在全局空间中设置

$sudo setup.py安装

  1. 运行测试:

$cd graphine/test/;python graph_operations_test.py;cd../。 $cd graphine/test/;python graph_test.py;cd../。

执行测试后,您必须看到“确定”

  1. 从python cli界面运行简单示例:
>>> 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,), ))

四。此软件包的完整文档如下: http://graphstate-and-graphine.readthedocs.org/en/latest/

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java从Struts操作的钩子更改表单值(Liferay 6.2)   java如何改变Spring MVC处理url“点”字符的行为   Clojure中使用Java接口的问题   junit如何模拟comosDB azure java集成客户端?   运行函数时发生java错误   netbeans Java。jar文件和依赖项   Eclipse中文本字段中的java输入类型   在JAVA中,将集合变量从实时批处理运行时传递到调用批处理文件   java通过Bean验证API中的自定义消息管理异常   XML到json的转换,在Java中,同时保留数据类型   根据JAVA中的列名从Excel文件中获取单元格值   在AsyncTask的doInBackground中未调用java FirebaseMessagingService   java如何在数据库中插入一行?