jrfonseca/xdot.py

Search function should also search in subgraph labels

yurivict opened this issue · 3 comments

Currently it only searches through node labels.
There is no easy way to find a subgraph when there are many of them.

xdot-1.2

tlk commented

Example graph with subgraph labels "Example", "WP01: FOO" and "WP02: BAR".

digraph G {
    rankdir="LR";
    node [style=filled,fillcolor=white];

    START -> aaaa;
    START -> dddd;

    subgraph cluster_container {
        style="rounded,filled";
        fillcolor="#eeeeee";
        label="Example";

        subgraph cluster_first {
            style="rounded,filled";
            label="WP01: FOO";
            fillcolor="#eeffee";
            
            aaaa -> bbbb -> cccc;
        }

        subgraph cluster_second {
            style="rounded,filled";
            label = "WP02: BAR";
            fillcolor="#eeffff";

            dddd -> eeee -> ffff;
        }

    }
}
tlk commented

This is what it looks like searching for subgraph labels after applying PR #114.

issue_90_example1

issue_90_example2

Fixed by #114