-
Couldn't load subscription status.
- Fork 2
.NET Serialization
Mark Junker edited this page Jun 7, 2018
·
3 revisions
All graph data structure can be serialized using the .NET serialization mechanism. You can also use the SerializeToBinary extension methods.
var g = ...; // some graph
using(var stream = File.Open("graph.bin"))
g.SerializeToBinary(stream);AdjacencyGraph<TVertex,TEdge> g; // some graph
using(var stream = File.Open("graph.bin"))
g = stream.DeseralizeFromBinary();