[graph-tool] distances and similarities as edge weights