Skip to content

Commit 4baef30

Browse files
docs: add a note that subgraph recreates indexes (#1404)
* docs: add a note that subgraph recreates indexes * Update src/digraph.rs --------- Co-authored-by: Ivan Carvalho <[email protected]>
1 parent ae695d5 commit 4baef30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/digraph.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3003,7 +3003,8 @@ impl PyDiGraph {
30033003
/// It is worth noting that node and edge weight/data payloads are
30043004
/// passed by reference so if you update (not replace) an object used
30053005
/// as the weight in graph or the subgraph it will also be updated in
3006-
/// the other.
3006+
/// the other. Node and edge the indices will be recreated for the subgraph for compactness.
3007+
/// Therefore, do not access data using the original graph's indices.
30073008
/// :rtype: PyGraph
30083009
///
30093010
#[pyo3(signature=(nodes, preserve_attrs=false),text_signature = "(self, nodes, /, preserve_attrs=False)")]

0 commit comments

Comments
 (0)