Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

Methods

  • applySnapshot(snapshot: GraphSnapshot): void
  • applyTransform(transform: TransformFunction): void
  • assign copies the source graph into this graph, similar to Object.assign(target, source). assign uses Object.assign to merge propeties and replaces node styles. Useful when you get a Neo4j result and want to overlay it on the graph workspace.

    Parameters

    Returns LayoutGraph

  • clear(): void
  • findNeighbors(id: NodeId, options?: FindNeighborsOptions): Neighbor[]
  • getSnapshot(partialOptions?: GraphSnapshotOptions): GraphSnapshot
  • hideEdges(ids: EdgeId[]): void
  • hideNodes(ids: NodeId[]): void
  • merge takes a source graph and merges it into this graph. New nodes and edges from the source graph are added. Attributes (e.g. properties, styles, category) of nodes with same id are copied. Attributes (e.g. properties, styles, relationship) of edges with same id are copied. If deleteMissingNodesAndEdges is true, then any nodes and edges in the source graph that are not in the target graph (this graph) will be deleted. If deleteMissingNodesAndEdges is false, then any nodes and edges in the source graph that are not in the target graph (this graph) will be kept.

    Parameters

    Returns LayoutGraph

  • replace is like assign but deletes nodes from the target that are not in the source graph. replace calls merge with deleteMissingNodesAndEdges = true. Useful when you want to replace the target graph with a transformed one.

    Parameters

    Returns LayoutGraph

  • setNodeCategory(id: string, category: CategoryId): void
  • setNodeCollection(id: string, collection: NodeCollection): void
  • showEdges(ids: EdgeId[]): void
  • showNodes(ids: NodeId[]): void

Generated using TypeDoc