0%

Graph 基本概念 :

基本元素 :

  1. Nodes : 数据记录,对应实体,如一个人或一部电影就是一个Node。
  2. Relationships : Nodes 之间的关系,如两个人( Node ) 之间是 父子关系 ( Relationship )。
  3. Properties : 键值对属性集,如一个人的姓名( name = daniel ),或一个关系的描述,如朋友关系的亲密度 ( rateing= 10 )。
  4. Labels : (分组)标签,用于将多个 Nodes 归为一组,比如 Alice 和 Bob 都是学生,那么这两个 Nodes 可以都打上 Student Label。一个 Node 可能有 0-N Labels。 Labels 无 Properties。

与关系型数据库对应 :

  • Graph <–> Database
  • Label <–> Table
  • Node <–> Row
  • Propertie <–> Field / Column
  • Relationship <–> Join fields ??? (Not sure)
Read more »

Enable local search for hexo blog with next theme.

Install Local Search plugin.

1
npm install hexo-generator-searchdb --save
Read more »

pyenvvirtualenv 是两个目的不同的 python 环境管理工具。

pyenv版本切换。用于在多个不同的python版本之间进行切换并互不影响。

  • 需要临时引用/安装当前python版本不支持的模块/库;
  • 测试/验证不同python版本间兼容性;

virtualenv : site-packages隔离。为某个项目或目录创建一个独立的 python 环境,该环境不受当前系统已经安装的 python 包影响。同时,在该环境中安装 python 包也不会影响其他项目。

  • 需要使用某一个工具/模块/类库的不同版本;

virtaulenvwrapper 则是对 virtualenv 创建的虚拟环境进行管理的工具。

  • 快速激活/去激活某个 virtualenv 创建的虚拟环境;
Read more »

This is a post

Pydoc can be used to access the doc for python modules or classes easily. We will show the basic command for the pydoc.

Read more »