Add some graph logics.