A graph-structured distance for heterogeneous datasets with meta variables