-
-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Description
When upgrading the networkx package to 1.6, there arise a lot of doctest errors, see discussion on sage-devel.
This ticket should contain everything that is necessary to do so.
To get the doctests passing, the following modifications have been made:
- Fixed the calls in
graph.py
to conform to the new API forbetweennness_centrality
. Also exposed the new options. - Failing doctest in
digraph.py
was shocasing a bug that isn't there anymore. Fixed and documented it, and exposed the previously offending implementation to sage - Two failures in
graph_generators.py
were due to changes in randomized methods, so just changed the tests to conform to the new output, the rest were due to a bad-parameter case that was used to raise an exception but now degenerates gracefully. Fixed the corresponding doctests to account for that. - Failures in
graph_generic.py
were due to a change in the output of clustering coefficients for weighted graphs. Added an optional parameter to use the new output, implemented the old behaviour as it was in NetworkX 1.2, and set the old behaviour to default with a deprecation warning.
To review this ticket:
- Install this spkg
- Apply attachment: trac_12806_doctest_fixes.patch, attachment: trac_12806.reviewer.patch and attachment: trac_12806-docbuild-and-links-alt.patch
CC: @kini @kiwifb @sagetrac-brunellus @nathanncohen
Component: graph theory
Keywords: spkg networkx graphs
Author: Daniel Krenn, Javier López Peña
Reviewer: Keshav Kini, Karl-Dieter Crisman
Merged: sage-5.2.beta1
Issue created by migration from https://trac.sagemath.org/ticket/12806