# GraphClusterOptionsFluent

The fluent methods of GraphClusterOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Modifiers**

static

The fluent methods of [GraphClusterOptions](/api/chartforgex-interactivity-graphclusteroptions/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- GraphClusterOptionsFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static GraphClusterOptions Adaptive(GraphClusterOptions graphClusterOptions, bool value = true)` [#](#method-adaptive-chartforgex-interactivity-graphclusteroptions-boolean) 

Sets [GraphClusterOptions.Adaptive](/api/chartforgex-interactivity-graphclusteroptions/): Gets or sets whether adapters may create runtime clusters from graph structure when explicit clusters are not enough.

Parameters

**graphClusterOptions ChartForgeX.Interactivity.GraphClusterOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `GraphClusterOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.Interactivity.GraphClusterOptions { Adaptive = value };    graphClusterOptions.Adaptive(value);
```

 `public static GraphClusterOptions CollapseOnLoad(GraphClusterOptions graphClusterOptions, bool value = true)` [#](#method-collapseonload-chartforgex-interactivity-graphclusteroptions-boolean) 

Sets [GraphClusterOptions.CollapseOnLoad](/api/chartforgex-interactivity-graphclusteroptions/): Gets or sets whether cluster summaries should start collapsed when supported by the adapter.

Parameters

**graphClusterOptions ChartForgeX.Interactivity.GraphClusterOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `GraphClusterOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Interactivity.GraphClusterOptions { CollapseOnLoad = value };    graphClusterOptions.CollapseOnLoad(value);
```

 `public static GraphClusterOptions MinimumClusterSize(GraphClusterOptions graphClusterOptions, int value)` [#](#method-minimumclustersize-chartforgex-interactivity-graphclusteroptions-int32) 

Sets [GraphClusterOptions.MinimumClusterSize](/api/chartforgex-interactivity-graphclusteroptions/): Gets or sets the minimum member count before an adapter should present a cluster as collapsible.

Parameters

**graphClusterOptions ChartForgeX.Interactivity.GraphClusterOptions required**

The instance.

**value int required**

The value.

Returns

 `GraphClusterOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::ChartForgeX.Interactivity.GraphClusterOptions { MinimumClusterSize = value };    graphClusterOptions.MinimumClusterSize(value);
```

 `public static GraphClusterOptions Mode(GraphClusterOptions graphClusterOptions, GraphClusterMode value)` [#](#method-mode-chartforgex-interactivity-graphclusteroptions-chartforgex-interactivity-graphclustermode) 

Sets [GraphClusterOptions.Mode](/api/chartforgex-interactivity-graphclusteroptions/): Gets or sets how adapters should interpret clusters when the scene is rendered.

Parameters

**graphClusterOptions ChartForgeX.Interactivity.GraphClusterOptions required**

The instance.

**value ChartForgeX.Interactivity.GraphClusterMode required**

The value.

Returns

 `GraphClusterOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Interactivity.GraphClusterOptions { Mode = value };    graphClusterOptions.Mode(value);
```

 `public static GraphClusterOptions Rule(GraphClusterOptions graphClusterOptions, GraphClusterRule item)` [#](#method-rule-chartforgex-interactivity-graphclusteroptions-chartforgex-interactivity-graphclusterrule) 

Adds an item to [GraphClusterOptions.Rules](/api/chartforgex-interactivity-graphclusteroptions/): Gets hub, outlier, connection and host-predicate rules. They run in order after declared clusters and before group and adaptive clusters, in every [GraphClusterOptions.Mode](/api/chartforgex-interactivity-graphclusteroptions/), and produce the same cluster ids for the same graph.

Parameters

**graphClusterOptions ChartForgeX.Interactivity.GraphClusterOptions required**

The instance.

**item ChartForgeX.Interactivity.GraphClusterRule required**

The item.

Returns

 `GraphClusterOptions` The same instance. 

 `public static GraphClusterOptions Rules(GraphClusterOptions graphClusterOptions, IEnumerable<GraphClusterRule> items)` [#](#method-rules-chartforgex-interactivity-graphclusteroptions-collections-generic-ienumerable-chartforgex-interactivity-graphclusterrule) 

Adds items to [GraphClusterOptions.Rules](/api/chartforgex-interactivity-graphclusteroptions/): Gets hub, outlier, connection and host-predicate rules. They run in order after declared clusters and before group and adaptive clusters, in every [GraphClusterOptions.Mode](/api/chartforgex-interactivity-graphclusteroptions/), and produce the same cluster ids for the same graph.

Parameters

**graphClusterOptions ChartForgeX.Interactivity.GraphClusterOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<ChartForgeX.Interactivity.GraphClusterRule> required**

The items, in order.

Returns

 `GraphClusterOptions` The same instance. 

 `public static GraphClusterOptions TargetClusterSize(GraphClusterOptions graphClusterOptions, int value)` [#](#method-targetclustersize-chartforgex-interactivity-graphclusteroptions-int32) 

Sets [GraphClusterOptions.TargetClusterSize](/api/chartforgex-interactivity-graphclusteroptions/): Gets or sets the preferred maximum number of visible members before adaptive clustering should summarize a community.

Parameters

**graphClusterOptions ChartForgeX.Interactivity.GraphClusterOptions required**

The instance.

**value int required**

The value.

Returns

 `GraphClusterOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Interactivity.GraphClusterOptions { TargetClusterSize = value };    graphClusterOptions.TargetClusterSize(value);
```

## 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?` 

<!-- PowerForge markdown artifact sha256:4B0A108B88F4D68A3EB7E61DBDBC1A3D70EB5ED78F2EBDD2AF111CA06FA9EBB9 -->
