Movatterモバイル変換


[0]ホーム

URL:


  • Preparing search index...
  • The search index is not available
algorithm-visualizer
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphTracer

Hierarchy

Index

Constructors

constructor

Methods

addEdge

  • addEdge(source:any, target:any, weight?:any):void
  • Add an edge.

    Parameters

    • source:any

      The id of the node where the edge starts.

    • target:any

      The id of the node where the edge ends.

    • Optional weight:any

    Returnsvoid

addNode

  • addNode(id:any, weight?:any, x?:undefined |number, y?:undefined |number):void
  • Add a node.

    Parameters

    • id:any
    • Optional weight:any
    • Optional x:undefined |number

      The x position between-160 and+160.

    • Optional y:undefined |number

      The y position between-160 and+160.

    Returnsvoid

deselect

  • deselect(target:any, source?:any):void
  • Stop selecting a node.

    Parameters

    • target:any

      The id of the node to stop selecting.

    • Optional source:any

      The id of the node to stop selecting from.

    Returnsvoid

destroy

  • destroy():void

directed

  • directed(isDirected?:undefined |false |true):this

layoutCircle

  • layoutCircle():this

layoutRandom

  • layoutRandom():this

layoutTree

  • layoutTree(root?:any, sorted?:undefined |false |true):this
  • Arrange nodes on a tree layout.

    Parameters

    • Optional root:any

      The id of a root node.

    • Optional sorted:undefined |false |true

      Whether to sort sibling nodes.

    Returnsthis

leave

  • leave(target:any, source?:any, weight?:any):void
  • Leave after visiting a node.

    Parameters

    • target:any

      The id of the node to leave.

    • Optional source:any

      The id of the node to leave to.

    • Optional weight:any

      The weight oftarget to set to.

    Returnsvoid

log

removeEdge

  • removeEdge(source:any, target:any):void
  • Remove an edge.

    Parameters

    • source:any

      The id of the node where the edge starts.

    • target:any

      The id of the node where the edge ends.

    Returnsvoid

removeNode

  • removeNode(id:any):void

reset

  • reset():void

select

  • select(target:any, source?:any):void
  • Select a node.

    Parameters

    • target:any

      The id of the node to select.

    • Optional source:any

      The id of the node to select from.

    Returnsvoid

set

  • set(array2d?:any[][]):void

updateEdge

  • updateEdge(source:any, target:any, weight?:any):void
  • Update an edge.

    Parameters

    • source:any

      The id of the node where the edge starts.

    • target:any

      The id of the node where the edge ends.

    • Optional weight:any

    Returnsvoid

updateNode

  • updateNode(id:any, weight?:any, x?:undefined |number, y?:undefined |number):void
  • Update a node.

    Parameters

    • id:any
    • Optional weight:any
    • Optional x:undefined |number

      The x position between-160 and+160.

    • Optional y:undefined |number

      The y position between-160 and+160.

    Returnsvoid

visit

  • visit(target:any, source?:any, weight?:any):void
  • Visit a node.

    Parameters

    • target:any

      The id of the node to visit.

    • Optional source:any

      The id of the node to visit from.

    • Optional weight:any

      The weight oftarget to set to.

    Returnsvoid

weighted

  • weighted(isWeighted?:undefined |false |true):this

Static delay

  • delay(lineNumber?:Number):void
  • Inherited fromTracer.delay

    Pause to show changes in all tracers.

    Parameters

    • Optional lineNumber:Number

      The line number to indicate when paused. If omitted, the line calling this method will be indicated.

    Returnsvoid

Generated usingTypeDoc


[8]ページ先頭

©2009-2025 Movatter.jp