graph methode in index