What's the fastest/most performant way to add edges without duplicates to a digraph in Python's graph-tool?
The naive solution would be to call g.edge(u, v) before adding edges, but that seems like quite a performance hit, especially in scale-free networks. Does g.edge(u, v) do lookups in O(1) if g.set_fast_edge_removal() has been set? I imagine whatever additional data structure graph-tool allocates for that is something along the lines of an edge list.