moved 'get akmg from basic edges' to util method