Tiny API for working with Graphs