Graph construction and random graph generation for modeling protein structures