Split nodes with more than two edges

split_multifurcations(graph)

Arguments

graph

An admixture graph

Value

A new admixture graph in which no node has more than two incoming or outgoing edges