d3.layout.hierarchical advertised .links() and .nodes() APIs in the documentation, but doesn't have it in the code.

See API docs: https://github.com/mbostock/d3/wiki/Hierarchy-Layout#wiki-nodes

All hierarchical layouts have these, except d3.layout.hierarchy itself. Ran into this when changing some basic .links() code from using d3.layout.tree() to d3.layout.hierarchy() after reading the API docs.