IGraph

53 篇文章 0 订阅
53 篇文章 0 订阅
IGraph
1. 建模时考虑的方面:
	1.1 查询性能
	1.2 存储空间
	1.3 更新成本
2. kv 还是 kkv
	2.1 a->b,b->c存储:
		额外的查询、更少的存储、更新更低成本。(适合属性规模大、有更新需求)
	2.2 a->bc存储:
		查询优、冗余存储、更新成本高。(适合查询性能要求高)
3. 关系召回:与我最近购买的商品相似的商品。
4. primary key:源端到关系hash定位,O(1)。
    secondary key:目标端meta信息。
    value:描述关系对应的属性信息,属性信息一个或者多个属性字段信息构成。
5. 内存索引结构:有序链表结构,跳表优化效能。1w的skey节点链长,引入跳表,skey随机查询qps从4w到120w。
6. 索引分层:类比LSM
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
iGraph is a popular library for network analysis and graph visualization. It provides a wide range of functions for creating, manipulating, and analyzing graphs. To use iGraph on Windows, you need to follow these steps: 1. Install Python: First, make sure you have Python installed on your Windows machine. You can download the latest Python installer from the official Python website (https://www.python.org/downloads/windows/). Choose the appropriate version (Python 2.x or Python 3.x) based on your requirements. 2. Install pip: Pip is a package manager for Python that allows you to install and manage software packages. The latest versions of Python include pip by default. Open a command prompt and type `pip --version` to check if pip is installed. If not, you can install it by following the instructions on the pip website (https://pip.pypa.io/en/stable/installing/). 3. Install iGraph: Once pip is installed, you can use it to install iGraph. Open a command prompt and type `pip install python-igraph`. This command will download and install the iGraph library along with its dependencies. 4. Verify the installation: After the installation is complete, you can verify if iGraph is installed correctly by importing it in a Python script or an interactive Python shell. Open a command prompt and type `python` to start the Python interpreter. Then, type `import igraph` and press Enter. If there are no errors, the installation was successful. That's it! Now you can start using iGraph in your Python projects on Windows. Remember to consult the iGraph documentation (https://igraph.org/python/) for detailed usage instructions and examples.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值