summaryrefslogtreecommitdiff
path: root/doc/reference/classes/multidigraph.rst
Commit message (Collapse)AuthorAgeFilesLines
* DOC: list pred method for MultiDiGraphs (#6409)Mridul Seth2023-02-031-1/+1
|
* Add method to clear edges only (#3477)Paolo Lammens2020-07-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * feat: `clear_edges` in `networkx.Graph` Method to clear all edges in a graph without altering nodes or graph attributes. Added corresponding test too. * tests: improve `test_clear` in `TestGraph` Added a graph attribute before clearing to test its proper deletion. too. * tests: add tests for `clear` and `clear_edges` specific to DiGraph To test that DiGraph-specific edge records are cleared as well. * fix: specific `clear_edges` for `DiGraph` So that DiGraph's pred/succ also get cleared. * Convert docstrings tests and docs reference links to add clear_edges Co-authored-by: Dan Schult <dschult@colgate.edu>
* Simplify the Graphview and SubGraphView system (#3073)Dan Schult2018-07-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify the Graphview and SubGraphView system - add tests to show that extensions of base graph classes (only add new functions) should be able to use the Graph.subgraph and Graph.copy methods easily - Remove ReadOnlyGraph class in favor of existing freeze() function - Switch all GraphView classes to generic_graph_view function - Switch all SubGraph classes to subgraph_view function - Introduce deprecated functions that act like the deprecated classes. Still need to: - add docs - add tests - make sure backward compatible and marked as deprecated - remove GraphView and SubGraph construct from rest of codebase - update release docs Fixes #2889 Fixes #2793 Fixes #2796 Fixes #2741 * Ease subclassing for to_(un)directed - add to_directed_class indicator functions to base classes - start deprecating G.fresh_copy - update function.to(un)directed * Remove G.fresh_copy from code replace with __class__ Add deprecation warnings for GraphView classes, ReverseView and SubGraph. Also for fresh_copy function.
* Add base class method `update` (#3028)Dan Schult2018-06-281-0/+1
| | | Part of #1393
* Review and update tutorial/docs due to 2.0 changes (#2650)Dan Schult2017-09-071-8/+12
| | | | | | | | | | * Revamp tutorial.rst * update docs and simpliy nbunch usage * Revise base class docs * Read-through and tweak rst files
* Fix docs (#2607)Jarrod Millman2017-08-121-7/+0
| | | Changes mostly due to PR #2604.
* Revise docs (#2524)Jarrod Millman2017-07-191-0/+90
* Finish directory reorg and make minor text edits * Remove cruft from conf.py * Fix broken links and comply with pep8