basic graph initialization