Skip to content

Instantly share code, notes, and snippets.

View likaiguo's full-sized avatar

likaiguo likaiguo

View GitHub Profile
This gist explains how a graph database can help for HR analytics. There are two files included:
- load the data.cql: this file contains the cypher statements that load the data into neo4j
- query the data.cql: this file has some sample queries that serve to demonstrate some of the concepts.
Hope this is useful.
Rik
@likaiguo
likaiguo / cluster
Last active August 29, 2015 14:06 — forked from jdeng/cluster
// generate [0..n-1]
auto seq = [](size_t n) -> std::vector<size_t> {
std::vector<size_t> v(n);
for (size_t i=0; i<n; ++i) v[i] = i;
return v;
};
auto index = seq(n);
// n * n distance matrix
std::vector<D> dists(n * n);