Skip to content

Add support for graphviz #105

@lgalke

Description

@lgalke

Hey @AndrewRadev
I really enjoy your plugin and the way you really quickly include new feature requests. Thus, in any circumstance I would want to split anything, I am thinking to request it here. Now I will do so for graphviz's dot language for graph specification. The syntax of edges is rather simple:

A -> B, C

creates two edges from the node A to both the node B and C.
Now, at some point you want to add a label to one specific edge. They have to be splitted.

A -> B;
A -> C [label="edgy"];

The other way round:

A -> B;
A -> C;

could be joined into A -> B,C.

Please note that multiple elements on the left-hand side are also allowed. This could make splitting things more difficult, but also simplify joining. Thus the following two variants are also equivalent.

A, B -> C, D
A -> C;
A -> D;
B -> C;
B -> D;

I propose to not split or join anything with a square bracket inside, since you can make no assumptions to which edge the attributes belong.

It is not very urgent, but just another nice use-case for your plug-in.
I could also try to work on it in the beginning of april by myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions