File: __init__.py

package info (click to toggle)
sqlalchemy 2.0.40%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 26,408 kB
  • sloc: python: 410,002; makefile: 230; sh: 7
file content (13 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""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::

"""