GraphTracer.js 377 字节
Newer Older
J
Jason Park 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import { Tracer } from '/core/tracers';

class GraphTracer extends Tracer {
  constructor(title, options) {
    super(title, options);

    this.register(
      'visit',
      'leave',
      'log',
    );
  }
}

15 16 17 18 19 20 21 22
GraphTracer.LAYOUT = {
  CIRCLE: 'circle',
  TREE: 'tree',
  RANDOM: 'random',
  NONE: 'none',
  // FORCE_DIRECTED: 'force_directed',
};

J
Jason Park 已提交
23
export default GraphTracer;