Interface: GenericGraphOptions
Defined in: mobjects/graph/graphTypes.ts:109
Options for creating a graph
Properties
edgeConfig?
optionaledgeConfig:Map<string,EdgeConfig> |Record<string,EdgeConfig>
Defined in: mobjects/graph/graphTypes.ts:123
Per-edge configuration (key is "source-target")
edges?
optionaledges:EdgeTuple[]
Defined in: mobjects/graph/graphTypes.ts:113
List of edges as [source, target] tuples
edgeStyle?
optionaledgeStyle:EdgeStyleOptions
Defined in: mobjects/graph/graphTypes.ts:119
Default edge styling
labelFontSize?
optionallabelFontSize:number
Defined in: mobjects/graph/graphTypes.ts:127
Label font size. Default: 24
layout?
optionallayout:LayoutConfig|LayoutType
Defined in: mobjects/graph/graphTypes.ts:115
Layout configuration
showLabels?
optionalshowLabels:boolean
Defined in: mobjects/graph/graphTypes.ts:125
Whether to show vertex labels. Default: false
vertexConfig?
optionalvertexConfig:Map<VertexId,VertexConfig> |Record<string,VertexConfig>
Defined in: mobjects/graph/graphTypes.ts:121
Per-vertex configuration
vertexStyle?
optionalvertexStyle:VertexStyleOptions
Defined in: mobjects/graph/graphTypes.ts:117
Default vertex styling
vertices?
optionalvertices:VertexId[]
Defined in: mobjects/graph/graphTypes.ts:111
List of vertex identifiers