Describe the bug
I have a graph of type UndirectedGraph<long, TaggedEdge<long, double>> that I am attempting to serialize. I'm using .NET 8. When serializing using either XML or GraphML both complain that serializing the EdgeEqualityComparer is not supported:
System.NotSupportedException: Serialization and deserialization of 'QuikGraph.EdgeEqualityComparer`1[[System.Int64, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' instances is not supported. The unsupported member type is located on type 'QuikGraph.EdgeEqualityComparer`1[System.Int64]'. Path: $.EdgeEqualityComparer.
Note I tried BinaryFormatter but .NET tells me that is no longer supported due to security vulnerabilites.
To Reproduce
Steps to reproduce the behavior:
Create an instance of UndirectedGraph<long, TaggedEdge<long, double>>
Sorry, my fault. Seems I was not even calling the lib's extensions so it was just attempting to serialize without the help of this lib. It's serializing fine now.
Describe the bug I have a graph of type
UndirectedGraph<long, TaggedEdge<long, double>>
that I am attempting to serialize. I'm using .NET 8. When serializing using either XML or GraphML both complain that serializing theEdgeEqualityComparer
is not supported:Note I tried BinaryFormatter but .NET tells me that is no longer supported due to security vulnerabilites.
To Reproduce Steps to reproduce the behavior:
UndirectedGraph<long, TaggedEdge<long, double>>
Expected behavior Should serialize to file.