Interfaces for graph with integer ids, creating nodes and edges from ids.