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
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
import easygraph as eg
G = eg.Graph()
G.add_edge(1, 2)
assert G.edges == [(1, 2, {})]
G.add_node("hello world")
G.add_node("Jack", node_attr={"age": 10, "gender": "M"})
assert G.nodes == {
1: {},
2: {},
"hello world": {},
"Jack": {"node_attr": {"age": 10, "gender": "M"}},
}