Skip to content

Commit

Permalink
Minor docstring formatting updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Jan 17, 2024
1 parent 4f68658 commit d462fc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions networkx/generators/classic.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ def full_rary_tree(r, n, create_using=None):

@nx._dispatchable(graphs=None)
def kneser_graph(n, k):
"""Returns the Kneser Graph with parameters $n$ and $k$.
"""Returns the Kneser Graph with parameters `n` and `k`.
The Kneser Graph has nodes that are k-tuples (subsets) of the integers
between 0 and n-1. Nodes are adjacent if their corresponding sets are disjoint.
between 0 and ``n-1``. Nodes are adjacent if their corresponding sets are disjoint.
Parameters
----------
n: int
n: int
Total number of elements.
k: int
k: int
Size of the subsets.
Returns
Expand Down

0 comments on commit d462fc4

Please sign in to comment.