示例#1
0
        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);
                    }
                }
            }
        }
示例#2
0
 public void Store(StreamWriter writer)
 {
     StoreX.StoreObj <NeuralNetworkNodeData>(this, writer);
 }