public static IGraphModel ConfigureElements(this IGraphModel model, Func <IGraphElementModel, IGraphElementModel> transformation) { return(model .ConfigureVertices(transformation) .ConfigureEdges(transformation)); }