Skip to main content

Interface: GenericGraphOptions

Defined in: src/mobjects/graph/graphTypes.ts:117

Options for creating a graph

Properties​

edgeConfig?​

optional edgeConfig: Map<string, EdgeConfig> | Record<string, EdgeConfig>

Defined in: src/mobjects/graph/graphTypes.ts:131

Per-edge configuration (key is "source-target")


edges?​

optional edges: EdgeTuple[]

Defined in: src/mobjects/graph/graphTypes.ts:121

List of edges as [source, target] tuples


edgeStyle?​

optional edgeStyle: EdgeStyleOptions

Defined in: src/mobjects/graph/graphTypes.ts:127

Default edge styling


labelFontSize?​

optional labelFontSize: number

Defined in: src/mobjects/graph/graphTypes.ts:135

Label font size. Default: 24


layout?​

optional layout: LayoutConfig | LayoutType

Defined in: src/mobjects/graph/graphTypes.ts:123

Layout configuration


showLabels?​

optional showLabels: boolean

Defined in: src/mobjects/graph/graphTypes.ts:133

Whether to show vertex labels. Default: false


vertexConfig?​

optional vertexConfig: Map<VertexId, VertexConfig> | Record<string, VertexConfig>

Defined in: src/mobjects/graph/graphTypes.ts:129

Per-vertex configuration


vertexStyle?​

optional vertexStyle: VertexStyleOptions

Defined in: src/mobjects/graph/graphTypes.ts:125

Default vertex styling


vertices?​

optional vertices: VertexId[]

Defined in: src/mobjects/graph/graphTypes.ts:119

List of vertex identifiers