예제 #1
0
        public SaveGraph GetSaveGraph()
        {
            SaveGraph saveGraph = new SaveGraph();

            nodes.ForEach(p => saveGraph.nodes.Add(p.GetSaveNode()));
            return(saveGraph);
        }
예제 #2
0
 public Graph(SaveGraph graph)
 {
     nodes = graph.nodes.Select(p => new Node(p)).ToList();
 }