|
I'll state my question using Java terminology, but I'm curious as to whether there's a general name for this kind of data structure. Recently I came upon the need for a data structure that is a bit of a cross between a Map and a Set. I ended up calling it BinaryRelation<L, R>. Its most important methods are: code:
I've already written the Java code to implement this, so I'm not asking how it can be done, but I'm curious - is there a general name for this kind of data structure? Has it been implemented in any popular programming languages or libraries? I wasn't able to find anything like this after a bit of Googling and I was surprised because it seems like such a useful way of describing a relation between two sets of objects. I know for certain I'm going to use it in every web application I make from here on out.
|
# ¿ Feb 23, 2008 08:14 |
|
|
# ¿ May 7, 2024 19:15 |