simplied interface for graph creation