// File: AraKhachatryan[P]GraphAlgo/graph.cpp
// Function: GraphAlgo::graph::remove_edge(int, int)
void graph::
remove_edge( vertex s, vertex d )
{
	edges::iterator e_it = find( m_edges.begin(), m_edges.end(), edge(s, d) );
	if ( e_it != m_edges.end() ) 
	{
		m_edges.erase(e_it);
	}
	
	e_it = find( m_edges.begin(), m_edges.end(), edge(d, s) );
	if ( e_it != m_edges.end() ) 
	{
		m_edges.erase(e_it);
	}

	vertices::iterator v_it = find( m_neighborhood[s].begin(), m_neighborhood[s].end(), d );
	if ( v_it != m_neighborhood[s].end() ) 
	{
		m_neighborhood[s].erase(v_it);
	}
	
	v_it = find( m_neighborhood[d].begin(), m_neighborhood[d].end(), s );
	if ( v_it != m_neighborhood[d].end() ) 
	{
		m_neighborhood[d].erase(v_it);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x10480
movq -0xe8(%rbp), %rdi
movq %rax, -0x20(%rbp)
callq 0x10530
movq %rax, -0x28(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0xc(%rbp), %rsi
leaq -0x10(%rbp), %rdx
callq 0x17240
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x171f0
movq -0xe8(%rbp), %rdi
movq %rax, -0x18(%rbp)
callq 0x10530
movq %rax, -0x38(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x17270
testb $0x1, %al
jne 0x15b02
jmp 0x15b23
leaq -0x40(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x104b0
movq -0xe8(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x172b0
movq %rax, -0x48(%rbp)
movq -0xe8(%rbp), %rdi
callq 0x10480
movq -0xe8(%rbp), %rdi
movq %rax, -0x58(%rbp)
callq 0x10530
movq %rax, -0x60(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x10(%rbp), %rsi
leaq -0xc(%rbp), %rdx
callq 0x17240
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x171f0
movq -0xe8(%rbp), %rdi
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x18(%rbp)
callq 0x10530
movq %rax, -0x70(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x17270
testb $0x1, %al
jne 0x15b94
jmp 0x15bb5
leaq -0x78(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x104b0
movq -0xe8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x172b0
movq %rax, -0x80(%rbp)
movq -0xe8(%rbp), %rdi
addq $0x30, %rdi
leaq -0xc(%rbp), %rsi
callq 0x5f70
movq %rax, %rdi
callq 0x6050
movq -0xe8(%rbp), %rdi
movq %rax, -0x90(%rbp)
addq $0x30, %rdi
leaq -0xc(%rbp), %rsi
callq 0x5f70
movq %rax, %rdi
callq 0x6100
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0x10(%rbp), %rdx
callq 0x170f0
movq -0xe8(%rbp), %rdi
movq %rax, -0x88(%rbp)
addq $0x30, %rdi
leaq -0xc(%rbp), %rsi
callq 0x5f70
movq %rax, %rdi
callq 0x6100
movq %rax, -0xa0(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x17140
testb $0x1, %al
jne 0x15c55
jmp 0x15c9d
movq -0xe8(%rbp), %rdi
addq $0x30, %rdi
leaq -0xc(%rbp), %rsi
callq 0x5f70
movq %rax, -0xf0(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x6080
movq -0xf0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x17180
movq %rax, -0xb0(%rbp)
movq -0xe8(%rbp), %rdi
addq $0x30, %rdi
leaq -0x10(%rbp), %rsi
callq 0x5f70
movq %rax, %rdi
callq 0x6050
movq -0xe8(%rbp), %rdi
movq %rax, -0xc0(%rbp)
addq $0x30, %rdi
leaq -0x10(%rbp), %rsi
callq 0x5f70
movq %rax, %rdi
callq 0x6100
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
leaq -0xc(%rbp), %rdx
callq 0x170f0
movq -0xe8(%rbp), %rdi
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x88(%rbp)
addq $0x30, %rdi
leaq -0x10(%rbp), %rsi
callq 0x5f70
movq %rax, %rdi
callq 0x6100
movq %rax, -0xd0(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x17140
testb $0x1, %al
jne 0x15d4b
jmp 0x15d93
movq -0xe8(%rbp), %rdi
addq $0x30, %rdi
leaq -0x10(%rbp), %rsi
callq 0x5f70
movq %rax, -0xf8(%rbp)
leaq -0xd8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x6080
movq -0xf8(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x17180
movq %rax, -0xe0(%rbp)
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopl (%rax)