reverse
Returns a copy of a directed graph with reversed edges.
sasviya.network.utils.utils.reverse(g, *, data=True)
Parameters
- g : SAS directed graph object
-
Specifies the input directed graph to reverse.
- data : bool, optional
-
Specifies whether or not to retain attributes. The default is True, meaning that the node and edge attributes of the graph are retained.
Returns
- directed graph object
-
Returns a directed graph that holds the reversed edges.
Last updated: July 28, 2026