import { Cluster } from "https://deno.land/x/graphviz@v0.2.1/mod.ts";
Base class for clusters.
Properties
abstract
readonly
attributes: Readonly<IClusterCommonAttributes>Common attributes of objects in the cluster.
Methods
private
toEdgeTarget(target: EdgeTargetLike): EdgeTargetprivate
toEdgeTargets(targets: EdgeTargetsLike): EdgeTargetscreateEdge(targets: (EdgeTargetLike | EdgeTargetsLike)[], attributes?: EdgeAttributes): IEdge
Create Edge and add it to the cluster.
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.
subgraph(attributes?: ClusterSubgraphAttributes, callback?: (subgraph: ISubgraph) => void): ISubgraph