For example ```scala val undirectedG = g.asUndirected() ``` ```python undirected_g = g.as_undirected() ``` Under the hood the method should union (edges.src, edges.dst) and (edges.dst, edges.src) as new edges.
For example
Under the hood the method should union (edges.src, edges.dst) and (edges.dst, edges.src) as new edges.