Handling simple graphs (no loops, no multiple edges, no directions) in Julia