Representing graphs in Postgresql

databases