some basic graph analysis