diff --git a/docs/source/guide/graph-graphs-nodes-edges.rst b/docs/source/guide/graph-graphs-nodes-edges.rst index c66fd18e8e59..bd4d8e6ffec4 100644 --- a/docs/source/guide/graph-graphs-nodes-edges.rst +++ b/docs/source/guide/graph-graphs-nodes-edges.rst @@ -44,10 +44,10 @@ querying the graph's structure. >>> # Node IDs >>> print(g.nodes()) tensor([0, 1, 2, 3]) - >>> # Edge end nodes + >>> # Edge and nodes >>> print(g.edges()) (tensor([0, 0, 0, 1]), tensor([1, 2, 3, 3])) - >>> # Edge end nodes and edge IDs + >>> # Edge and nodes and edge IDs >>> print(g.edges(form='all')) (tensor([0, 0, 0, 1]), tensor([1, 2, 3, 3]), tensor([0, 1, 2, 3]))