graph_tool.perfect_prop_hash#

graph_tool.perfect_prop_hash(props, htype='int32_t')[source]#

Given a list of property maps props of the same type, a derived list of property maps with integral type htype is returned, where each value is replaced by a perfect (i.e. unique) hash value.

Note

The hash value is deterministic, but it will not be necessarily the same for different values of props.