Options
All
  • Public
  • Public/Protected
  • All
Menu

Module cola

module

cola

Index

Functions

applyPacking

  • applyPacking(graphs: Array<any>, w: any, h: any, node_size: any, desired_ratio?: number): void
  • Parameters

    • graphs: Array<any>
    • w: any
    • h: any
    • node_size: any
    • Default value desired_ratio: number = 1

    Returns void

computeLinkLengths

  • computeLinkLengths<Link>(links: Link, w: number, f: function, la: LinkLengthAccessor<Link>): void
  • Type parameters

    • Link

    Parameters

    • links: Link
    • w: number
    • f: function
        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    • la: LinkLengthAccessor<Link>

    Returns void

generateDirectedEdgeConstraints

  • generate separation constraints for all edges unless both their source and sink are in the same strongly connected component

    class

    generateDirectedEdgeConstraints

    Type parameters

    • Link

    Parameters

    Returns IConstraint[]

getNeighbours

  • getNeighbours<Link>(links: Link, la: LinkAccessor<Link>): any
  • Type parameters

    • Link

    Parameters

    Returns any

intersectionCount

  • intersectionCount(a: number[], b: number[]): number
  • Parameters

    • a: number[]
    • b: number[]

    Returns number

jaccardLinkLengths

  • modify the specified links lengths based on the jaccard difference between their neighbours

    class

    jaccardLinkLengths

    Type parameters

    • Link

    Parameters

    Returns void

separateGraphs

  • separateGraphs(nodes: any, links: any): Array<any>
  • Parameters

    • nodes: any
    • links: any

    Returns Array<any>

stronglyConnectedComponents

  • stronglyConnectedComponents<Link>(numVertices: number, edges: Link, la: LinkAccessor<Link>): number[]
  • Type parameters

    • Link

    Parameters

    Returns number[]

symmetricDiffLinkLengths

  • symmetricDiffLinkLengths<Link>(links: Link, la: LinkLengthAccessor<Link>, w?: number): void
  • modify the specified link lengths based on the symmetric difference of their neighbours

    class

    symmetricDiffLinkLengths

    Type parameters

    • Link

    Parameters

    Returns void

unionCount

  • unionCount(a: any, b: any): number
  • Parameters

    • a: any
    • b: any

    Returns number

Object literals

packingOptions

packingOptions: object

FLOAT_EPSILON

FLOAT_EPSILON: number

GOLDEN_SECTION

GOLDEN_SECTION: number

MAX_INERATIONS

MAX_INERATIONS: number

PADDING

PADDING: number

Generated using TypeDoc