Skip to main content

Python graph (network) package

Project description

altgraph is a fork of graphlib: a graph (network) package for constructing graphs, BFS and DFS traversals, topological sort, shortest paths, etc. with graphviz output.

altgraph includes some additional usage of Python 2.3+ features and enhancements related to modulegraph and macholib.

Release history

0.9

This is a minor bugfix release

Features:

  • Added altgraph.ObjectGraph.ObjectGraph.nodes, a method yielding all nodes in an object graph.

Bugfixes:

  • The 0.8 release didn’t work with py2app when using python 3.x.

0.8

This is a minor feature release. The major new feature is a extensive set of unittests, which explains almost all other changes in this release.

Bugfixes:

  • Installing failed with Python 2.5 due to using a distutils class that isn’t available in that version of Python (issue #1 on the issue tracker)

  • altgraph.GraphStat.degree_dist now actually works

  • altgraph.Graph.add_edge(a, b, create_nodes=False) will no longer create the edge when one of the nodes doesn’t exist.

  • altgraph.Graph.forw_topo_sort failed for some sparse graphs.

  • altgraph.Graph.back_topo_sort was completely broken in previous releases.

  • altgraph.Graph.forw_bfs_subgraph now actually works.

  • altgraph.Graph.back_bfs_subgraph now actually works.

  • altgraph.Graph.iterdfs now returns the correct result when the forward argument is False.

  • altgraph.Graph.iterdata now returns the correct result when the forward argument is False.

Features:

  • The altgraph.Graph constructor now accepts an argument that contains 2- and 3-tuples instead of requireing that all items have the same size. The (optional) argument can now also be any iterator.

  • altgraph.Graph.Graph.add_node has no effect when you add a hidden node.

  • The private method altgraph.Graph._bfs is no longer present.

  • The private method altgraph.Graph._dfs is no longer present.

  • altgraph.ObjectGraph now has a __contains__ methods, which means you can use the in operator to check if a node is part of a graph.

  • altgraph.GraphUtil.generate_random_graph will raise GraphError instead of looping forever when it is impossible to create the requested graph.

  • altgraph.Dot.edge_style raises GraphError when one of the nodes is not present in the graph. The method silently added the tail in the past, but without ensuring a consistent graph state.

  • altgraph.Dot.save_img now works when the mode is "neato".

0.7.2

This is a minor bugfix release

Bugfixes:

  • distutils didn’t include the documentation subtree

0.7.1

This is a minor feature release

Features:

  • Documentation is now generated using sphinx and can be viewed at <http://packages.python.org/altgraph>.

  • The repository has moved to bitbucket

  • altgraph.GraphStat.avg_hops is no longer present, the function had no implementation and no specified behaviour.

  • the module altgraph.compat is gone, which means altgraph will no longer work with Python 2.3.

0.7.0

This is a minor feature release.

Features:

  • Support for Python 3

  • It is now possible to run tests using ‘python setup.py test’

    (The actual testsuite is still very minimal though)

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

altgraph-0.9.tar.gz (357.1 kB view details)

Uploaded Source

File details

Details for the file altgraph-0.9.tar.gz.

File metadata

  • Download URL: altgraph-0.9.tar.gz
  • Upload date:
  • Size: 357.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for altgraph-0.9.tar.gz
Algorithm Hash digest
SHA256 417bad62eaa554d8671b2268e0371a7853e0cd1054e0c6f613ada09e447c94d2
MD5 367015bf871815b632975a26d1750133
BLAKE2b-256 60c7ebeca36092bb8c05ed9b9c1c9421a690179863da21f0c610c54db3c02404

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page