Use edge_credit. close #262