MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / remove_selfloop

Method remove_selfloop

easygraph/classes/graph.py:340–344  ·  view source on GitHub ↗

r"""Remove all selfloops from the graph.

(self)

Source from the content-addressed store, hash-verified

338 self._clear_cache()
339
340 def remove_selfloop(self):
341 r"""Remove all selfloops from the graph."""
342 self._raw_selfloop_dict.clear()
343 self.remove_extra_selfloop()
344 self._clear_cache()
345
346 def nbr_v(self, v_idx: int) -> Tuple[List[int], List[float]]:
347 r"""Return a vertex list of the neighbors of the vertex ``v_idx``.

Callers

nothing calls this directly

Calls 3

remove_extra_selfloopMethod · 0.95
_clear_cacheMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected