as.one.mode function

Conversion of a network matrix