Added auto-naming for graph and its elements