Skip to main content

Interface: GenericGraphOptions

Defined in: mobjects/graph/graphTypes.ts:109

Options for creating a graph

Properties

edgeConfig?

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

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

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


edges?

optional edges: EdgeTuple[]

Defined in: mobjects/graph/graphTypes.ts:113

List of edges as [source, target] tuples


edgeStyle?

optional edgeStyle: EdgeStyleOptions

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

Default edge styling


labelFontSize?

optional labelFontSize: number

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

Label font size. Default: 24


layout?

optional layout: LayoutConfig | LayoutType

Defined in: mobjects/graph/graphTypes.ts:115

Layout configuration


showLabels?

optional showLabels: boolean

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

Whether to show vertex labels. Default: false


vertexConfig?

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

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

Per-vertex configuration


vertexStyle?

optional vertexStyle: VertexStyleOptions

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

Default vertex styling


vertices?

optional vertices: VertexId[]

Defined in: mobjects/graph/graphTypes.ts:111

List of vertex identifiers