simplified edge tracing.