# MermaidFlowchartSubgraph

Describes a Mermaid flowchart subgraph.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidFlowchartDocument.cs:267](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L267)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes a Mermaid flowchart subgraph.

## Inheritance

- [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)
- MermaidFlowchartSubgraph

## Usage

 Explore 3 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [MermaidFlowchartDocument.Subgraphs](/api/chartforgex-mermaid-mermaidflowchartdocument/#property-subgraphs)
- Property [MermaidSwimlaneDocument.Subgraphs](/api/chartforgex-mermaid-mermaidswimlanedocument/#property-subgraphs)
- Property [MermaidUseCaseDocument.Subgraphs](/api/chartforgex-mermaid-mermaidusecasedocument/#property-subgraphs)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidFlowchartSubgraph(string id, string title, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-chartforgex-mermaid-mermaidsourcespan) 

[MermaidFlowchartDocument.cs:267](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L267)

Initializes a parsed flowchart subgraph.

Parameters

**id string required**

**title string required**

**span ChartForgeX.Mermaid.MermaidSourceSpan required**

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public Dictionary<string, string> Properties { get; }` [#](#property-properties) 

[MermaidFlowchartDocument.cs:267](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L267)

Gets inert source properties associated with this canonical subgraph identity.

 `public string Id { get; set; }` [#](#property-id) 

[MermaidFlowchartDocument.cs:280](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L280)

Gets or sets the Mermaid subgraph identifier.

 `public string Title { get; set; }` [#](#property-title) 

[MermaidFlowchartDocument.cs:283](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L283)

Gets or sets the Mermaid subgraph title.

 `public string? ParentSubgraphId { get; set; }` [#](#property-parentsubgraphid) 

[MermaidFlowchartDocument.cs:286](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L286)

Gets or sets the containing subgraph id, or null for a root subgraph.

 `public MermaidFlowchartDirection Direction { get; set; }` [#](#property-direction) 

[MermaidFlowchartDocument.cs:289](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L289)

Gets or sets the locally declared direction; None inherits its parent.

 `public List<string> NodeIds { get; }` [#](#property-nodeids) 

[MermaidFlowchartDocument.cs:292](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L292)

Gets authored node references merged from this ID's declarations in close order; each node owns its resolved semantic membership.

 `public List<string> Classes { get; }` [#](#property-classes) 

[MermaidFlowchartDocument.cs:295](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L295)

Gets source classes assigned to this canonical subgraph identity.

 `public Dictionary<string, string> Styles { get; }` [#](#property-styles) 

[MermaidFlowchartDocument.cs:298](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartDocument.cs#L298)

Gets resolved source style declarations for this canonical subgraph identity.

## Inherited Properties

 `public MermaidSourceSpan Span { get; }` [#](#property-span) 

[MermaidAstNode.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidAstNode.cs#L13)

Inherited from [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)

<!-- PowerForge markdown artifact sha256:576BA0AEBE823A46937B5AED6F0AA7AF176CD880FE6FFD7D220D5F88294D0AD2 -->
