ECommerce | Cell 1 | Cell 3 | Search

This Graphviz DOT file defines a directed graph named apply with a specified font, direction, and node properties, and includes subgraphs for cluster_available_plans with nested subclusters. The graph has a hierarchical structure with a main graph and subclusters containing nodes with specific shapes and labels.

Cell 2

%%
dot

digraph
apply
{
    label = 'High level architecture'
    rankdir = LR;
    fontname = Helvetica
    node[fontname = Helvetica, width = 1.8, height = 0.8]
    edge[fontname = Helvetica, fontsize = 12, fontcolor = blue, labeldistance = 1.8]

    subgraph
    cluster_available_plans
    {
        label = 'ECommerce.Core'

        subgraph
        cluster_available_plans
        {
            label = 'ECommerce.Entitlement'

            subgraph
            cluster_available_plans
            {
                label = 'ECommerce.Identity'

                integrations[shape = box, label = 'ECommerce.Integrations']
                myact[shape = box, label = 'ECommerce.MyAct']
            }
        }
    }

}

What the code could have been:

digraph high_level_architecture {
    label = 'High level architecture';
    rankdir = LR;
    fontname = Helvetica;

    node[fontname = Helvetica, width = 1.8, height = 0.8];
    edge[fontname = Helvetica, fontsize = 12, fontcolor = blue, labeldistance = 1.8];

    subgraph cluster_available_plans {
        label = 'ECommerce.Core';

        subgraph cluster_entitlement {
            label = 'ECommerce.Entitlement';

            subgraph cluster_identity {
                label = 'ECommerce.Identity';

                // Integrate with various services
                integrations[shape = box, label = 'ECommerce.Integrations | Integrations'];

                // Custom implementation
                myact[shape = box, label = 'ECommerce.MyAct | Custom Implementation'];
            }
        }
    }
}

Code Breakdown: Graphviz DOT File

This is a Graphviz DOT file that defines a directed graph with nodes and edges. Here's a breakdown of the code:

Graph Structure

The graph has the following structure: