gen friend graph