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