chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:36:30 +08:00
commit 55ab4e4a73
473 changed files with 72932 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
from easygraph.utils import only_implemented_for_Directed_graph
__all__ = ["reverse_view"]
@only_implemented_for_Directed_graph
def reverse_view(G):
newG = G.__class__()
newG._graph = G
newG.graph = G.graph
newG._node = G._node
newG._succ, newG._pred = G._pred, G._succ
newG._adj = newG._succ
return newG