public static GraphExample ToGraphExample(BidirectionalGraph <DataVertex, DataEdge> oldGraph) { var graph = new GraphExample(); graph.AddVertexRange(oldGraph.Vertices); graph.AddEdgeRange(oldGraph.Edges); return(graph); }