STABLE: new functions in graph_metric