mode indlinks to Graph class, bug..