May look at graph lib.