# GraphSceneNeighborhoodOptions

Controls a bounded, deterministic neighborhood of a graph node.

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[GraphSceneNeighborhoodOptions.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneNeighborhoodOptions.cs#L10)

**Modifiers**

sealed

**Attributes**

 `Fluent` 

Controls a bounded, deterministic neighborhood of a graph node.

## Inheritance

- object
- GraphSceneNeighborhoodOptions

## Usage

 Explore 21 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 9

- Extension method [GraphSceneNeighborhoodOptions.Hops](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-hops-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Extension method [GraphSceneNeighborhoodOptions.MaximumEdges](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-maximumedges-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Extension method [GraphSceneNeighborhoodOptions.MaximumNodes](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-maximumnodes-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Extension method [GraphSceneNeighborhoodOptions.NeighborOffset](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-neighboroffset-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Method [GraphSceneNeighborhoodOptionsFluent.Hops](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-hops-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Method [GraphSceneNeighborhoodOptionsFluent.MaximumEdges](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-maximumedges-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Method [GraphSceneNeighborhoodOptionsFluent.MaximumNodes](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-maximumnodes-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Method [GraphSceneNeighborhoodOptionsFluent.NeighborOffset](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-neighboroffset-chartforgex-interactivity-graphsceneneighborhoodoptions-int32)
- Property [GraphSceneOptions.Neighborhood](/api/chartforgex-interactivity-graphsceneoptions/#property-neighborhood)

### Accepted by parameters 12

- Extension method [GraphScene.CreateNeighborhood](/api/chartforgex-interactivity-graphscene/#extension-createneighborhood-chartforgex-interactivity-graphscene-string-action-chartforgex-interactivity-graphsceneneighborhoodoptions) parameter `configure`
- Extension method [GraphSceneNeighborhoodOptions.Hops](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-hops-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Extension method [GraphSceneNeighborhoodOptions.MaximumEdges](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-maximumedges-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Extension method [GraphSceneNeighborhoodOptions.MaximumNodes](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-maximumnodes-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Extension method [GraphSceneNeighborhoodOptions.NeighborOffset](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/#extension-neighboroffset-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Method [GraphSceneNeighborhoodOptionsFluent.Hops](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-hops-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Method [GraphSceneNeighborhoodOptionsFluent.MaximumEdges](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-maximumedges-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Method [GraphSceneNeighborhoodOptionsFluent.MaximumNodes](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-maximumnodes-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Method [GraphSceneNeighborhoodOptionsFluent.NeighborOffset](/api/chartforgex-interactivity-graphsceneneighborhoodoptionsfluent/#method-neighboroffset-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) parameter `graphSceneNeighborhoodOptions`
- Method [GraphSceneNeighborhoodPlanner.CreateNeighborhood](/api/chartforgex-interactivity-graphsceneneighborhoodplanner/#method-createneighborhood-chartforgex-interactivity-graphscene-string-action-chartforgex-interactivity-graphsceneneighborhoodoptions) parameter `configure`
- Extension method [GraphSceneOptions.Neighborhood](/api/chartforgex-interactivity-graphsceneoptions/#extension-neighborhood-chartforgex-interactivity-graphsceneoptions-action-chartforgex-interactivity-graphsceneneighborhoodoptions) parameter `configure`
- Method [GraphSceneOptionsFluent.Neighborhood](/api/chartforgex-interactivity-graphsceneoptionsfluent/#method-neighborhood-chartforgex-interactivity-graphsceneoptions-action-chartforgex-interactivity-graphsceneneighborhoodoptions) parameter `configure`

 Filter members   

    Show inherited   

 

## Constructors

 `public GraphSceneNeighborhoodOptions()` [#](#constructor-ctor) 

[GraphSceneNeighborhoodOptions.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneNeighborhoodOptions.cs#L10)

## 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 int Hops { get; set; }` [#](#property-hops) 

[GraphSceneNeighborhoodOptions.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneNeighborhoodOptions.cs#L10)

Gets or sets the maximum undirected relationship distance from the root. Defaults to one hop.

 `public int MaximumNodes { get; set; }` [#](#property-maximumnodes) 

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

Gets or sets the maximum number of visible nodes, including the root. Defaults to 13.

 `public int MaximumEdges { get; set; }` [#](#property-maximumedges) 

[GraphSceneNeighborhoodOptions.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneNeighborhoodOptions.cs#L16)

Gets or sets the maximum number of visible relationships. Defaults to 24; zero produces a node-only view.

 `public int NeighborOffset { get; set; }` [#](#property-neighboroffset) 

[GraphSceneNeighborhoodOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphSceneNeighborhoodOptions.cs#L19)

Gets or sets how many neighbors to skip before filling the view. The root is always retained. Neighbors are ordered by distance, then ordinal id.

## Extension Methods

 `public static GraphSceneNeighborhoodOptions Hops(GraphSceneNeighborhoodOptions graphSceneNeighborhoodOptions, int value)` [#](#extension-hops-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) 

Sets [GraphSceneNeighborhoodOptions.Hops](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/): Gets or sets the maximum undirected relationship distance from the root. Defaults to one hop.

Parameters

**graphSceneNeighborhoodOptions ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions required**

The instance.

**value int required**

The value.

Returns

 `GraphSceneNeighborhoodOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions { Hops = value };    graphSceneNeighborhoodOptions.Hops(value);
```

 `public static GraphSceneNeighborhoodOptions MaximumEdges(GraphSceneNeighborhoodOptions graphSceneNeighborhoodOptions, int value)` [#](#extension-maximumedges-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) 

Sets [GraphSceneNeighborhoodOptions.MaximumEdges](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/): Gets or sets the maximum number of visible relationships. Defaults to 24; zero produces a node-only view.

Parameters

**graphSceneNeighborhoodOptions ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions required**

The instance.

**value int required**

The value.

Returns

 `GraphSceneNeighborhoodOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions { MaximumEdges = value };    graphSceneNeighborhoodOptions.MaximumEdges(value);
```

 `public static GraphSceneNeighborhoodOptions MaximumNodes(GraphSceneNeighborhoodOptions graphSceneNeighborhoodOptions, int value)` [#](#extension-maximumnodes-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) 

Sets [GraphSceneNeighborhoodOptions.MaximumNodes](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/): Gets or sets the maximum number of visible nodes, including the root. Defaults to 13.

Parameters

**graphSceneNeighborhoodOptions ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions required**

The instance.

**value int required**

The value.

Returns

 `GraphSceneNeighborhoodOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions { MaximumNodes = value };    graphSceneNeighborhoodOptions.MaximumNodes(value);
```

 `public static GraphSceneNeighborhoodOptions NeighborOffset(GraphSceneNeighborhoodOptions graphSceneNeighborhoodOptions, int value)` [#](#extension-neighboroffset-chartforgex-interactivity-graphsceneneighborhoodoptions-int32) 

Sets [GraphSceneNeighborhoodOptions.NeighborOffset](/api/chartforgex-interactivity-graphsceneneighborhoodoptions/): Gets or sets how many neighbors to skip before filling the view. The root is always retained. Neighbors are ordered by distance, then ordinal id.

Parameters

**graphSceneNeighborhoodOptions ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions required**

The instance.

**value int required**

The value.

Returns

 `GraphSceneNeighborhoodOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                      // C# fluent
new global::ChartForgeX.Interactivity.GraphSceneNeighborhoodOptions { NeighborOffset = value };    graphSceneNeighborhoodOptions.NeighborOffset(value);
```

<!-- PowerForge markdown artifact sha256:C16D87E9884E4EC2CC5F771226C86B7129C78CA82E96625AD615B67DFB7E47D5 -->
