Added basic graph pos computation