MDLD/graph (function)