Skip to content

Instantly share code, notes, and snippets.

View lushl9301's full-sized avatar
🙃
hi

˥n Sɥǝuƃlᴉɐuƃ lushl9301

🙃
hi
View GitHub Profile
@sampollard
sampollard / GraphFileFormats.md
Last active April 14, 2021 05:08
Comprehensive filename extension for graph file formats

There are almost as many graph file formats as there are graph processing platforms. Here, I attempt to provide a comprehensive listing. Some of these are nearly trivial, but yet, the standards are just not established. Whether the vertices are 0-indexed or 1-indexed is undefined. However, this does matter for some systems such as GraphMat. All the examples show the same directed, unweighted graph with the exception of .metis.

ASCII Text Formats

.el

This is the "edge list" format. The format is one edge per line of the form . For example,

1 2
2 1
1 3
@chenshuo
chenshuo / query_freq.cc
Created November 3, 2012 22:59
Sort queries by their frequencies.
// answer to http://weibo.com/1915548291/z2UtyzuvQ
// see also http://www.cnblogs.com/baiyanhuang/archive/2012/11/11/2764914.html
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <fstream>
#include <iostream>
@lotem
lotem / luna_pinyin.custom.yaml
Created April 6, 2012 15:46
【朙月拼音】模糊音定製模板
# luna_pinyin.custom.yaml
#
# 【朙月拼音】模糊音定製模板
# 佛振配製 :-)
#
# 位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
#