Directed graph for device function (remake graphical schematics output using graphs)