Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test_remove_self_loops_01
Function · 0.95
Calls
2
Graph
Class · 0.85
filter
Method · 0.45
Tested by
1
test_remove_self_loops_01
Function · 0.76