All graph data structure can be serialized using the .NET serialization mechanism. You can also use the SerializeToBinary extension methods.
SerializeToBinary
var graph = ...; // Some graph using (var stream = File.Open("graph.bin")) { graph.SerializeToBinary(stream); }
AdjacencyGraph<TVertex,TEdge> graph; // Some graph using (var stream = File.Open("graph.bin")) { graph = stream.DeserializeFromBinary(); }
There was an error while loading. Please reload this page.