diff options
author | Salim BELHADDAD <17280667+salym@users.noreply.github.com> | 2021-06-06 14:49:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-06 05:49:41 -0700 |
commit | f5cb21f5408845944b373a49b176af3134504b00 (patch) | |
tree | 9531f3af220e509f14ea77cfdd430cca0db34b9d | |
parent | 82eba2f1b10d75464c8c1a0971b719abb234b33f (diff) | |
download | networkx-f5cb21f5408845944b373a49b176af3134504b00.tar.gz |
Reformatted table to address issue #4852 (#4875)
The grid table was not properly formatted using reStructuredText Markup which is required by Sphinx.
-rw-r--r-- | networkx/generators/sudoku.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/networkx/generators/sudoku.py b/networkx/generators/sudoku.py index 08ffffb2..4cc8df3d 100644 --- a/networkx/generators/sudoku.py +++ b/networkx/generators/sudoku.py @@ -6,17 +6,19 @@ algorithms for solving or generating Sudoku puzzles. A completed Sudoku grid is a 9x9 array of integers between 1 and 9, with no number appearing twice in the same row, column, or 3x3 box. - 8 6 4 | 3 7 1 | 2 5 9 - 3 2 5 | 8 4 9 | 7 6 1 - 9 7 1 | 2 6 5 | 8 4 3 - ------+-------+------ - 4 3 6 | 1 9 2 | 5 8 7 - 1 9 8 | 6 5 7 | 4 3 2 - 2 5 7 | 4 8 3 | 9 1 6 - ------+-------+------ - 6 8 9 | 7 3 4 | 1 2 5 - 7 1 3 | 5 2 8 | 6 9 4 - 5 4 2 | 9 1 6 | 3 7 8 ++---------+---------+---------+ +| | 8 6 4 | | 3 7 1 | | 2 5 9 | +| | 3 2 5 | | 8 4 9 | | 7 6 1 | +| | 9 7 1 | | 2 6 5 | | 8 4 3 | ++---------+---------+---------+ +| | 4 3 6 | | 1 9 2 | | 5 8 7 | +| | 1 9 8 | | 6 5 7 | | 4 3 2 | +| | 2 5 7 | | 4 8 3 | | 9 1 6 | ++---------+---------+---------+ +| | 6 8 9 | | 7 3 4 | | 1 2 5 | +| | 7 1 3 | | 5 2 8 | | 6 9 4 | +| | 5 4 2 | | 9 1 6 | | 3 7 8 | ++---------+---------+---------+ The Sudoku graph is an undirected graph with 81 vertices, corresponding to |