Skip to content

Provide Unflatten Graphviz Command #149

@borango

Description

@borango

I am also interested in an Ecmascript (wasm?) port of Graphviz's unflatten tool.

Here is an example transformation:

graph {
	a -- 1;
	a -- 2;
	a -- 3;
	a -- 4;
	b;
	c;
	d;
	e;
}

unflatten -l 2 -c 1 unflatten-1-before.dot > unflatten-2-after.dot

graph {
	a -- 1	[minlen=1];
	a -- 2	[minlen=2];
	a -- 3	[minlen=1];
	a -- 4	[minlen=2];
	b -- c	[style=invis];
	d -- e	[style=invis];
}

... which looks something like this (styling added), before:

unflatten-1-before
... and after:
unflatten-2-after

Discussed in #71

Originally posted by saulshanabrook June 18, 2021
Does this library support the unflatten graphviz command that is useful for graphs with multiple unconnected parts? For example, it is provided by the a Python wrapper around Graphviz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions