UndirectedEdges( gamma )
This function returns the set of undirected (unordered) edges of gamma, which must be a simple graph.
See also DirectedEdges.
gap> gamma := JohnsonGraph( 3, 2 );
rec(
isGraph := true,
order := 3,
group := Group( (1,3), (1,2) ),
schreierVector := [ -1, 2, 1 ],
adjacencies := [ [ 2, 3 ] ],
representatives := [ 1 ],
names := [ [ 1, 2 ], [ 1, 3 ], [ 2, 3 ] ],
isSimple := true )
gap> DirectedEdges( gamma );
[ [ 1, 2 ], [ 1, 3 ], [ 2, 1 ], [ 2, 3 ], [ 3, 1 ], [ 3, 2 ] ]
gap> UndirectedEdges( gamma );
[ [ 1, 2 ], [ 1, 3 ], [ 2, 3 ] ]
GAP 3.4.4