public void FillGraph(IGraph <TItem, TEdge> graph, BasicGraphTestDataFactory <TItem, TEdge> data) { foreach (var edge in data.Edges) { graph.Add(edge); } }
void ResetAndFillGraph(IGraph <TItem, TEdge> graph, BasicGraphTestDataFactory <TItem, TEdge> data) { graph.Clear(); FillGraph(graph, data); }