basic graph alignment