Add dependency checking to hooke.plugin.load_graph