mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
3a18409e9f
port is still needed by ports (eg. mail/cleanup-maildir) - While here add LICENSE - The distfile checksums differ due to some minor changes [1], therefore also bump PORTREVISION [1] --- distfile changes begin here --- diff -Nur google/python-graph-core-1.8.2/PKG-INFO cheeseshop/python-graph-core-1.8.2/PKG-INFO --- google/python-graph-core-1.8.2/PKG-INFO 2012-07-14 23:12:33.000000000 +0200 +++ cheeseshop/python-graph-core-1.8.2/PKG-INFO 2015-03-26 22:07:53.000000000 +0100 @@ -1,4 +1,4 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: python-graph-core Version: 1.8.2 Summary: A library for working with graphs in Python diff -Nur google/python-graph-core-1.8.2/pygraph/algorithms/minmax.py cheeseshop/python-graph-core-1.8.2/pygraph/algorithms/minmax.py --- google/python-graph-core-1.8.2/pygraph/algorithms/minmax.py 2012-02-19 20:36:08.000000000 +0100 +++ cheeseshop/python-graph-core-1.8.2/pygraph/algorithms/minmax.py 2014-03-11 00:04:22.000000000 +0100 @@ -132,6 +132,13 @@ # Shortest Path +def path(st, target): + if (target is None): + return [] + else: + return [target] + path(st, st[target]) + + def shortest_path(graph, source): """ Return the shortest path distance between source and all other nodes using Dijkstra's diff -Nur google/python-graph-core-1.8.2/python_graph_core.egg-info/PKG-INFO cheeseshop/python-graph-core-1.8.2/python_graph_core.egg-info/PKG-INFO --- google/python-graph-core-1.8.2/python_graph_core.egg-info/PKG-INFO 2012-07-14 23:12:33.000000000 +0200 +++ cheeseshop/python-graph-core-1.8.2/python_graph_core.egg-info/PKG-INFO 2015-03-26 22:07:51.000000000 +0100 @@ -1,4 +1,4 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: python-graph-core Version: 1.8.2 Summary: A library for working with graphs in Python diff -Nur google/python-graph-core-1.8.2/python_graph_core.egg-info/top_level.txt cheeseshop/python-graph-core-1.8.2/python_graph_core.egg-info/top_level.txt --- google/python-graph-core-1.8.2/python_graph_core.egg-info/top_level.txt 2012-07-14 23:12:33.000000000 +0200 +++ cheeseshop/python-graph-core-1.8.2/python_graph_core.egg-info/top_level.txt 2015-03-26 22:07:51.000000000 +0100 @@ -1,5 +1,5 @@ -pygraph/classes -pygraph/readwrite pygraph -pygraph/mixins pygraph/algorithms +pygraph/classes +pygraph/mixins +pygraph/readwrite --- distfile changes end here ---
21 lines
435 B
Makefile
21 lines
435 B
Makefile
# Created by: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= graph-core
|
|
PORTVERSION= 1.8.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= python-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
COMMENT= Library for working with graphs in Python, core module
|
|
|
|
LICENSE= MIT
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
.include <bsd.port.mk>
|