> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Collapse Vertices by Angle

<CardGroup cols={2}>
  <Card title="Graph, Scalar" href="#graph-scalar" />

  <Card title="Lattice, Scalar" href="#lattice-scalar" />
</CardGroup>

***

<h2 id="graph-scalar">
  Graph, Scalar
</h2>

Remove all of the intermediate vertices of a Graph where the vertex valency is equal to 2. All intermediate vertices will be removed by default, but an optional threshold angle may be used to preserve sharp vertices.

### Inputs

| Name | Type | Description |
| - | - | - |
| Graph | [Graph](../../../../block-documentation/types/graph) | The Graph of which to collapse the beams. |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar) | The maximum allowed angular difference between beams joined by a single vertex. Beam angles greater than this threshold will be removed, collapsing the neighboring beams into one. A value of 180 deg will preserve all vertices. |

### Outputs

| Type |
| - |
| [Graph](../../../../block-documentation/types/graph) |

***

<h2 id="lattice-scalar">
  Lattice, Scalar
</h2>

Remove all of the intermediate vertices of a Lattice where the vertex valency is equal to 2. All intermediate vertices will be removed by default, but an optional threshold angle may be used to preserve sharp vertices.

### Inputs

| Name | Type | Description |
| - | - | - |
| Lattice | [Lattice](../../../../block-documentation/types/lattice) | The Lattice of which to collapse the beams. |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar) | The maximum allowed angular difference between beams joined by a single vertex. Beam angles greater than this threshold will be removed, collapsing the neighboring beams into one. A value of 180 deg will preserve all vertices. |

### Outputs

| Type |
| - |
| [Lattice](../../../../block-documentation/types/lattice) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.