Write some basic graph ops