Change int to locint. Remove extern variables except (__edge_is_symmetric__).
Let's debug............