dot-defineInternalDistanceMetrics function

Define the distance metrics for multiple types at once