add core function: get euler circuit from graph