The graphs and graphdrawing libraries included in PGF/TikZ 3.0 provide powerful tools for drawing graphs (with edges and nodes, not graphs of functions).
The graphs library provides much more convenient code for specifying graphs than previous versions of TikZ. The graphdrawing library (and its sub-libraries) use LuaTeX to provide graph-drawing algorithms that position nodes and edges automatically.