Graphs works with multi-endpoints