]> granicus.if.org Git - graphviz/commit
fix: assign anonymous IDs to named entities
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 Aug 2020 19:29:28 +0000 (12:29 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 Aug 2020 01:49:22 +0000 (18:49 -0700)
commit2a9449a99b2a2146fce01fa1d9713e999ad3dd4e
tree9975c2de6eff8fa3e8a3b3930e133eebbc164444
parent9409324489a69557229d3d6f505857b9af85a913
fix: assign anonymous IDs to named entities

Instead of using string pointers as IDs, we now assign the IDs for named
entities exactly the same way we assign them for anonymous identities. This
works because we first check the internal map before creating any new ID, so
processing the same name twice will result in the same ID as before.

This fixes #1767. Now clusters within a graph are consistently processed in the
order in which they appear in the input file, rather than an order dependent on
pointers given out by the allocator.
CHANGELOG.md
lib/cgraph/id.c
rtest/1767.c [new file with mode: 0644]
rtest/1767.dot [new file with mode: 0644]
rtest/test_regression.py