public void Store(StreamWriter writer) { //Graph.Store(writer); StoreX.StoreObj <IGWGraph>(Graph, writer); foreach (var layer in Layers) { writer.WriteLine("layer:"); foreach (var node in layer) { writer.WriteLine("node:" + node.GraphId); foreach (var edgeIn in node.InEdges) { writer.WriteLine(" edge:" + edgeIn.Data.Weight + ":" + edgeIn.Foot.GraphId + ":" + edgeIn.Head.GraphId); } } } }
public void Store(StreamWriter writer) { StoreX.StoreObj <NeuralNetworkNodeData>(this, writer); }