implemented limit outgoing edges per state