Skip to content

DotTopologySerializer duplicating exported infos #93

Open
@remikey

Description

@remikey

Main Issue

I think that the DotTopologySerializer exports the links twice. Although not harmful, it is not correct.

Also, in this method, we use the directed links to perform the export. Since we don't use digraph-parser anymore, I suppose DOT would allow us to use the Topology's orientation (Topology.getLinks()).

Side note

For a specific project, I recently needed to modify the serializer outputs a Link. Since the exportToString method is very monolithic, I had to copy paste the whole class and modify it. Maybe segmenting it a bit into protected methods (at least something like exportLinkToString(Link)) could help?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions