Assign edge labels in conversion to weight matrices.
Test edge labels in conversion to weight matrices.