added graph capability