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

# get_graph_entities

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/get_graph_entities.rs#L26-L39)
pub async fn [get\_graph\_entities](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/get-graph-entities.md#method.get_graph_entities)( \&self, graph\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), offset: [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html), limit: [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[GetGraphEntitiesResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Retrieve graph nodes or edges.Retrieves node or edge entities from an existing graph, with pagination support via offset and limit. Use `/show/graph` to obtain the total number of nodes and edges.

##### Arguments

<ul>
  <li>`graph_name` - Name of the graph from which to retrieve entities.</li>
  <li>`offset` - Starting index of the entities to retrieve (0-based).</li>
  <li>`limit` - Number of entities to retrieve starting from `offset`. A value of -1 returns all entities from the offset to the end. Note: the `entities_int` or `entities_string` array size will be 2x this value for nodes (stride 2) or 4x for edges (stride 4).</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/get_graph_entities.rs#L57-L77)
pub async fn [get\_graph\_entities\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/get-graph-entities.md#method.get_graph_entities_with_opts)( \&self, graph\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), offset: [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html), limit: [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html), options: [GetGraphEntitiesRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[GetGraphEntitiesResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Retrieve graph nodes or edges.Retrieves node or edge entities from an existing graph, with pagination support via offset and limit. Use `/show/graph` to obtain the total number of nodes and edges.

##### Arguments

<ul>
  <li>`graph_name` - Name of the graph from which to retrieve entities.</li>
  <li>`offset` - Starting index of the entities to retrieve (0-based).</li>
  <li>`limit` - Number of entities to retrieve starting from `offset`. A value of -1 returns all entities from the offset to the end. Note: the `entities_int` or `entities_string` array size will be 2x this value for nodes (stride 2) or 4x for edges (stride 4).</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/get_graph_entities.rs#L80-L91)
pub async fn [get\_graph\_entities\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/get-graph-entities.md#method.get_graph_entities_raw)( \&self, request: &[GetGraphEntitiesRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[GetGraphEntitiesResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`GetGraphEntitiesRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesRequest) to the `/get/graph/entities` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/get_graph_entities.rs#L95-L107)
pub async fn [get\_graph\_entities\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/get-graph-entities.md#method.get_graph_entities_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[GetGraphEntitiesRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[GetGraphEntitiesResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`GetGraphEntitiesRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.GetGraphEntitiesRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


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