Port most features from TinkerGraph current source