Skip to content

Commit

Permalink
Fixed typo in tensor product documentation (Fixes networkx#7228) (net…
Browse files Browse the repository at this point in the history
…workx#7229)

Fixed typo
  • Loading branch information
max-seeli authored Jan 16, 2024
1 parent b2f98a4 commit 8682e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/algorithms/operators/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def tensor_product(G, H):
r"""Returns the tensor product of G and H.
The tensor product $P$ of the graphs $G$ and $H$ has a node set that
is the tensor product of the node sets, $V(P)=V(G) \times V(H)$.
is the Cartesian product of the node sets, $V(P)=V(G) \times V(H)$.
$P$ has an edge $((u,v), (x,y))$ if and only if $(u,x)$ is an edge in $G$
and $(v,y)$ is an edge in $H$.
Expand Down

0 comments on commit 8682e1b

Please sign in to comment.