MCPcopy Create free account
hub / github.com/pathwaycom/pathway / without_self_loops

Method without_self_loops

python/pathway/stdlib/graphs/graph.py:116–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 return _contract(self.E, full_clustering)
115
116 def without_self_loops(self) -> Graph:
117 return Graph(self.V, self.E.filter(self.E.u != self.E.v))
118
119
120@dataclass

Callers 1

Calls 2

GraphClass · 0.85
filterMethod · 0.45

Tested by 1