summaryrefslogtreecommitdiff
path: root/examples/subclass/plot_antigraph.py
Commit message (Collapse)AuthorAgeFilesLines
* Change exception varname e to err (#5130)Dan Schult2021-10-151-2/+2
| | | | A more descriptive variable name for exceptions. This reduces local var naming conflicts when \`e\` is used e.g. to represent edges as a loop variable.
* Changes to rst files to make doctests pass (#4947)Dan Schult2021-07-071-2/+2
| | | | | | | | | | | | | | | | | | | * rst double colons for example code * add nx. prefix to doctest function calls * Remove one line from 1->2 migration rst file the line shows code that works for 1.x *and* 2.x. But it no longer works for all v2.x code. Readers should just use the next line of code, so no reason to keep this in the file. * capture output from subplot and rename DiGraph as DG in introduction.rst * skip running the entire test suite as an example in old_release_log.rst * doctest of examples * remove changes to nexp files
* Refactor gallery (#4422)Jarrod Millman2020-12-061-4/+4
| | | | | | | | | | | | | | | * Add external directory * Move Javascript and JIT * Remove application section * Consolidate and move pygraphviz examples * Clean up imports * Reorder * Fix subclass examples
* Update adjacency_iter to adjacency (#4339)Jon Crall2020-11-121-4/+4
| | | | | | | | | | | | | * Update adjacency_iter to adjacency * Use faster adj * wip * Update plot_antigraph.py Remove benchmark * wip
* Add seeds to gallery examples for reproducibility (#4276)Ross Barnowski2020-10-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Seed layout basic/plot_properties. * Seed simple path example * Switch node cmap example to deterministic layout * Seed layout in edge_colormap example * Seed graph gen and layout in ego_graph example * Seed random_geometric_graph example. * Seed layout and pad axes w/ tight_layout. * Seed and modify colors for directed example. * Seeded graph gen and layout * Switch to plasma colormap for better contrast on light bgnd * Seed layout and tight_layout sampson example * Seed and pad axes for unix email example * Seed graph gen and layout for erdos_renyi example * Seed graph gen and layout of degree_seq example * Seed layout of football example * Seed layout for krackhardt centrality example * Seed davis club example * Seed and use np alias in blockmodel example * Seed beam search example. * Seed random graph in eigenval example * Seed heavy metal layout and pad axes * Use deterministic layout for rgraph example * Seed layout for printgraph example. * Add seed to antigraph example. * Use single rng seed value. For examples with multiple uses of rng's (e.g. one for generating a random graph, and another for layout) use a single integer value as the seed for both. * Remove unnecessary submodule paths from examples.
* Format w/ black==20.8b1Jarrod Millman2020-10-061-1/+1
|
* Fix exception causes and messages in 12 modules (#4012)Ram Rachum2020-06-221-2/+2
| | | | | | | * Fix exception causes and messages in 12 modules * Remove deprecated matplotlib.use(warn=False) that was default anyway. Co-authored-by: Dan Schult <dschult@colgate.edu>
* Upgrade to Py36 syntaxJarrod Millman2020-01-011-8/+7
| | | | $ find examples -name \*.py -exec pyupgrade --py36-plus {} \;
* Update examplesJarrod Millman2019-11-111-55/+65
|
* Update copyrightJarrod Millman2019-03-301-1/+1
|
* Update copyrightJarrod Millman2018-01-201-1/+1
|
* Fix typo in documentation (#2677)Charles Tapley Hoyt2017-09-211-1/+1
|
* Fix randomly occurring errorJarrod Millman2017-08-141-4/+4
| | | | Set seed.
* Refactor examples (#2527)Jarrod Millman2017-07-211-0/+182
* Fix unix_email and plot more examples * Fix doctest * Fix more examples * Fix AntiGraph.degree generator error in examples * Style/consistency changes and plot more examples