Skip to content

Commit

Permalink
docd edges' magic methods (comparisons and hashing)
Browse files Browse the repository at this point in the history
  • Loading branch information
tscizzle committed Oct 4, 2016
1 parent baaef4c commit 4483f86
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/library.rst
Expand Up @@ -9,6 +9,12 @@ graphpy.edge
- **vertices** <tuple>
- tuple of length 2 of UndirectedVertex objects
- **attrs** <dict>
- *__eq__*
- equality is based on the `vertices` property
- *__ne__*
- non-equality is based on the `vertices` property
- *__hash__*
- hashing is based on the `vertices` property
- *property* **vertices**
- frozenset of the two UndirectedVertex objects this edge connects
- *property* **attrs**
Expand Down Expand Up @@ -42,6 +48,12 @@ graphpy.edge
- **vertices** <tuple>
- tuple of length 2 of DirectedVertex objects
- **attrs** <dict>
- *__eq__*
- equality is based on the `v_from` and `v_to` properties
- *__ne__*
- non-equality is based on the `v_from` and `v_to` properties
- *__hash__*
- hashing is based on the `v_from` and `v_to` properties
- *property* **v_from**
- DirectedVertex object from which this edge points (the tail)
- *property* **v_to**
Expand Down

0 comments on commit 4483f86

Please sign in to comment.