mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-17 22:22:13 -04:00
1e1a38e780
This is a straight reformat run using black as is, with no edits applied at all. The black run will format code consistently, however in some cases that are prevalent in SQLAlchemy code it produces too-long lines. The too-long lines will be resolved in the following commit that will resolve all remaining flake8 issues including shadowed builtins, long lines, import order, unused imports, duplicate imports, and docstring issues. Change-Id: I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9
14 lines
377 B
Python
14 lines
377 B
Python
"""An example of persistence for a directed graph structure. The
|
|
graph is stored as a collection of edges, each referencing both a
|
|
"lower" and an "upper" node in a table of nodes. Basic persistence
|
|
and querying for lower- and upper- neighbors are illustrated::
|
|
|
|
n2 = Node(2)
|
|
n5 = Node(5)
|
|
n2.add_neighbor(n5)
|
|
print n2.higher_neighbors()
|
|
|
|
.. autosource::
|
|
|
|
"""
|