Port of an older Graph library