comp5: base_graph: add missing virtual desctructor

Thanks-to: Wouter Geraedts