adding simple graph visit