But i was an example for the kerberos must be sensible bet
In this case, users are stored as nodes or vertices and connections are made using relations or edges. Why would you bother writing that code, when some other databases provide transactions for free? Still you will have to handle your references manually.