Query Verties But Get Redundant Edges?

My query is :

match {as:a,class:V,where:(@rid in [#33:0 ,#33:1 ,#33:2 ,#34:0 ,#34:1 ,#34:2 ,#39:0 ,#39:1 ,#40:0 ,#40:1])}
return $pathelements;

i get this graph:

my puzzle is:
Is that any way to filter the redundant Edges?

Hi,
can you explain it better?
What version are you using?

Thanks

Regards,
Michela