# GraphScenePatch

Describes an atomic set of graph document changes that hosts and interactive adapters can exchange.

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[GraphScenePatch.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L12)

**Modifiers**

sealed

Describes an atomic set of graph document changes that hosts and interactive adapters can exchange.

## Inheritance

- object
- GraphScenePatch

## Usage

 Explore 2 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.

### Accepted by parameters 2

- Extension method [GraphScene.ApplyPatch](/api/chartforgex-interactivity-graphscene/#extension-applypatch-chartforgex-interactivity-graphscene-chartforgex-interactivity-graphscenepatch) parameter `patch`
- Method [GraphScenePatchExtensions.ApplyPatch](/api/chartforgex-interactivity-graphscenepatchextensions/#method-applypatch-chartforgex-interactivity-graphscene-chartforgex-interactivity-graphscenepatch) parameter `patch`

 Filter members   

    Show inherited   

 

## Constructors

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

[GraphScenePatch.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L12)

## 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 List<GraphSceneNode> UpsertNodes { get; }` [#](#property-upsertnodes) 

[GraphScenePatch.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L12)

Gets nodes to add or replace by stable id.

 `public List<GraphSceneEdge> UpsertEdges { get; }` [#](#property-upsertedges) 

[GraphScenePatch.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L15)

Gets edges to add or replace by stable id.

 `public List<GraphSceneCluster> UpsertClusters { get; }` [#](#property-upsertclusters) 

[GraphScenePatch.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L18)

Gets clusters to add or replace by stable id.

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

[GraphScenePatch.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L21)

Gets node ids to remove.

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

[GraphScenePatch.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L24)

Gets edge ids to remove.

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

[GraphScenePatch.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L27)

Gets cluster ids to remove.

 `public bool RemoveIncidentReferences { get; set; }` [#](#property-removeincidentreferences) 

[GraphScenePatch.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphScenePatch.cs#L30)

Gets or sets whether removing nodes also removes incident edges and cluster membership.

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