Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 435 Bytes

File metadata and controls

16 lines (14 loc) · 435 Bytes

.NET Serialization

All graph data structure can be serialized using the .NET serialization mechanism. You can also use the {{SerializeToBinary}} extension methods.

  • writing {{ var g = ...; // some graph using(var stream = File.Open("graph.bin")) g.SerializeToBinary(stream); }}
  • reading {{ AdjacencyGraph<TVertex,TEdge> g; // some graph using(var stream = File.Open("graph.bin")) g = stream.DeseralizeFromBinary(); }}