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
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
@@ -73,15 +73,15 @@ This example demonstrates the efficiency of Hypergraph-DB, even when working wit
73
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
74
75
75
|**Number of Vertices**|**Number of Hyperedges**|**Add Vertices (s)**|**Add Edges (s)**|**Query Vertices (s/queries)**|**Query Edges (s/queries)**|**Total Time (s)**|
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 includes a built-in visualization tool that allows you to interactively explore your hypergraph data through a web-based interface.
263
+
264
+
```python
265
+
# Visualize the hypergraph in your browser
266
+
hg.draw()
267
+
```
268
+
269
+
The `draw()` function will:
249
270
250
-
---
271
+
- Start a local web server (default port: 8080)
272
+
- Automatically open your default web browser
273
+
- Display an interactive visualization of your hypergraph
274
+
- Show vertex degrees, relationships, and hyperedge information
275
+
- Allow you to explore the graph structure visually
251
276
277
+
**Features of the visualization:**
252
278
253
-
## :memo: License
279
+
-**Interactive HyperGraph View**: Navigate through vertices and hyperedges
280
+
-**Vertex Information**: View vertex properties, degrees, and descriptions
281
+
-**Hyperedge Details**: Explore hyperedge relationships and metadata
282
+
-**Degree-based Sorting**: Vertices are sorted by degree for easy identification of important nodes
283
+
-**Real-time Data**: The visualization reflects the current state of your hypergraph
254
284
255
-
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.
285
+
---
256
286
287
+
## :memo: License
288
+
289
+
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.
257
290
258
291
---
259
292
260
-
## :email: Contact
293
+
## :email: Contact
261
294
262
295
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]).
263
296
264
-
265
297
Made with :heart: by <ahref="https://github.com/yifanfeng97"target="_blank">Yifan Feng</a>
0 commit comments