public SaveGraph GetSaveGraph() { SaveGraph saveGraph = new SaveGraph(); nodes.ForEach(p => saveGraph.nodes.Add(p.GetSaveNode())); return(saveGraph); }
public Graph(SaveGraph graph) { nodes = graph.nodes.Select(p => new Node(p)).ToList(); }