Inclusion of "sink nodes" in adjacency map #373
Labels
core
something about core
enhancement
New feature or request
Priority:Low
Priority Label for low priority issue
This issue is related to the discussion in issue #367.
When we build the adjacency matrix for a directed graph we only add an element for the source node.
This means that nodes that are only destination and never source of any edge are difficult to find using the adjacency matrix, because they are not in the set of keys.
We could maybe add empty vectors for destination nodes of directed edges, using something like
try_emplace
to avoid re-assignments. This would cause a small overhead when building the adjacency matrix, but would make populating the nodeSet as in issue #367 quicker and easier.Wdyt @nrkramer @ZigRazor ?
The text was updated successfully, but these errors were encountered: