The conversion between directed and undirected graphs is a fundamentally lossy process - directed graphs contain data that undirected graphs simply do not. This issue is to figure out the best approach for handling a conversion "from" one type into the other (like, in a builder context).
a perfectly valid answer would be to simply not allow it.
the question of going from directed to undirected is less difficult; in the event that two vertices are connected by directed edges in both directions, they can simply be conjoined into one. or maybe it can be configurable behavior. either way, it's not hard.
The conversion between directed and undirected graphs is a fundamentally lossy process - directed graphs contain data that undirected graphs simply do not. This issue is to figure out the best approach for handling a conversion "from" one type into the other (like, in a builder context).
a perfectly valid answer would be to simply not allow it.
the question of going from directed to undirected is less difficult; in the event that two vertices are connected by directed edges in both directions, they can simply be conjoined into one. or maybe it can be configurable behavior. either way, it's not hard.