You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-7Lines changed: 53 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,61 @@
48
48
49
49
<br>
50
50
51
-
## :dart: About##
51
+
## :dart: About
52
52
53
53
Hypergraph-DB is a lightweight, flexible, and Python-based database designed to model and manage **hypergraphs**—a generalized graph structure where edges (hyperedges) can connect any number of vertices. This makes Hypergraph-DB an ideal solution for representing complex relationships between entities in various domains, such as knowledge graphs, social networks, and scientific data modeling.
54
54
55
55
Hypergraph-DB provides a high-level abstraction for working with vertices and hyperedges, making it easy to add, update, query, and manage hypergraph data. With built-in support for persistence, caching, and efficient operations, Hypergraph-DB simplifies the management of hypergraph data structures.
56
56
57
+
**:bar_chart: Performance Test Results**
58
+
59
+
To demonstrate the performance of **Hypergraph-DB**, let’s consider an example:
60
+
61
+
- Suppose we want to construct a **hypergraph** with **1,000,000 vertices** and **200,000 hyperedges**.
62
+
- Using Hypergraph-DB, it takes approximately:
63
+
-**1.75 seconds** to add **1,000,000 vertices**.
64
+
-**1.82 seconds** to add **200,000 hyperedges**.
65
+
- Querying this hypergraph:
66
+
- Retrieving information for **400,000 vertices** takes **0.51 seconds**.
67
+
- Retrieving information for **400,000 hyperedges** takes **2.52 seconds**.
68
+
69
+
This example demonstrates the efficiency of Hypergraph-DB, even when working with large-scale hypergraphs. Below is a detailed table showing how the performance scales as the size of the hypergraph increases.
70
+
71
+
**Detailed Performance Results**
72
+
73
+
The following table shows the results of stress tests performed on Hypergraph-DB with varying scales. The tests measure the time taken to add vertices, add hyperedges, and query vertices and hyperedges.
74
+
75
+
|**Number of Vertices**|**Number of Hyperedges**|**Add Vertices (s)**|**Add Edges (s)**|**Query Vertices (s/queries)**|**Query Edges (s/queries)**|**Total Time (s)**|
Hypergraph-DB scales efficiently with the number of vertices and hyperedges. The time to add vertices and hyperedges grows linearly with the size of the hypergraph.
92
+
93
+
2.**Query Performance**:
94
+
Querying vertices and hyperedges remains fast, even for large-scale hypergraphs. For instance:
95
+
- Querying **200,000 vertices** takes only **0.22 seconds**.
96
+
- Querying **200,000 hyperedges** takes only **1.20 seconds**.
97
+
98
+
3.**Total Time**:
99
+
The total time to construct and query a hypergraph with **1,000,000 vertices** and **200,000 hyperedges** is only **6.60 seconds**, showcasing the overall efficiency of Hypergraph-DB.
100
+
101
+
This performance makes **Hypergraph-DB** a great choice for applications requiring fast and scalable hypergraph data management.
This section provides a quick guide to get started with Hypergraph-DB, including iusage, and running basic operations. Below is an example of how to use Hypergraph-DB, based on the provided test cases.
Hypergraph-DB is open-source and licensed under the [Apache License 2.0](LICENSE). Feel free to use, modify, and distribute it as per the license terms.
196
242
197
243
198
244
---
199
245
200
-
## :email: Contact##
246
+
## :email: Contact
201
247
202
248
Hypergraph-DB is maintained by [iMoon-Lab](http://moon-lab.tech/), Tsinghua University. If you have any questions, please feel free to contact us via email: [Yifan Feng](mailto:[email protected]).
0 commit comments