import { type ICluster } from "https://deno.land/x/graphviz@v0.2.1/mod.ts";
Properties
readonly
attributes: Readonly<IClusterCommonAttributes>readonly
nodes: ReadonlyArray<INode>readonly
edges: ReadonlyArray<IEdge>readonly
subgraphs: ReadonlyArray<ISubgraph>Methods
createSubgraph(id?: string, attributes?: ClusterSubgraphAttributes): ISubgraph
Create a Subgraph and add it to the cluster.
createSubgraph(attributes?: ClusterSubgraphAttributes): ISubgraph
getSubgraph(id: string): ISubgraph | undefined
Get Subgraph in cluster by specifying id.
If there is no Subgraph with the specified id in the cluster, return undefined.
createEdge(targets: (EdgeTargetLike | EdgeTargetsLike)[], attributes?: EdgeAttributes): IEdge
Create Edge and add it to the cluster.
subgraph(): ISubgraph
subgraph(attributes?: ClusterSubgraphAttributes, callback?: (subgraph: ISubgraph) => void): ISubgraph
node(): INode
edge(targets: (EdgeTargetLike | EdgeTargetsLike)[], callback?: (edge: IEdge) => void): IEdge
Declarative API for Edge.
edge(): IEdge
targets: (EdgeTargetLike | EdgeTargetsLike)[],
attributes?: EdgeAttributes,
callback?: (edge: IEdge) => void,