# core/factories/graph.factory.ts

> 9 lines of code and 1 definition.

Tree: Bane's Lab Build Scripts
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-factories-graph-factory-ts
Source text: https://banes-lab.com/source/build-scripts/core/factories/graph.factory.ts.txt

Listed in [core/factories](https://banes-lab.com/api/source/build-scripts/core/factories.md), after [core/factories/certificate.factory.ts](https://banes-lab.com/source/build-scripts/core/factories/certificate.factory.ts.md) and before [core/factories/producer.factory.ts](https://banes-lab.com/source/build-scripts/core/factories/producer.factory.ts.md).

## Definitions

- `graphNode` (lexical_declaration, line 3, exported)

## Contained in

- [core/factories](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-factories.md)

## Used by

- [core/converters/graph.ontology.converter.ts](https://banes-lab.com/source/build-scripts/core/converters/graph.ontology.converter.ts.md)
- [core/converters/graph.source.converter.ts](https://banes-lab.com/source/build-scripts/core/converters/graph.source.converter.ts.md)

## Linked from

- [core/converters](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md)

## Source

```typescript
import type { GraphNode } from "@banes-lab/web/types/graph.types.js";

export const graphNode = function graphNode(
    ref: string,
    kind: string,
    layer: GraphNode["layer"],
    title: string,
): GraphNode {
    return { address: null, citation: null, fields: {}, href: null, kind, layer, number: null, ref, title };
};
```
