Create spanningtree