I am implementing a graph data structure that will store arbitrary objects as vertices. I want to define an interface for things like getting the key for an object so that all vertices can have a key. In my mind, this sounds like where I might use an interface in a language like java.
interface Vertex {
String key (Vertex v);
// etc...
}
How can I emulate the behaviour of an interface in common lisp?