more test refactoring
test add_edge
implement edge counting
implement graph_add_edge
fun with typecasting