removed stack from edge tracing code; renamed queue operations.