SHARE
TWEET

Untitled

a guest Jun 19th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def simplify(g):
  2. g.simplify(multiple=True, loops=True, combine_edges=None)
  3. degree_zero_list=g.vs(_degree_eq=0).indices
  4. # 删除
  5. g.delete_vertices(degree_zero_list)
  6. return g
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top