Switches the edges so that tree layout can be calcuated

switchEdge(g)

Arguments

g

graph object

Value

graph object with edges switched