      (typeof v === 'number' || v === null)
    ) {
      return <any>this.dfs$edu_princeton_cs_algs4_EdgeWeightedDigraph$int(G, v);
    }
    throw new Error('invalid overload');
  }

  private dfs$edu_princeton_cs_algs4_EdgeWeightedDigraph$int(