add method to get the index of a object

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
add new command to dump a graph in text

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>