Generic purpose graph interfaces and implementations.